|
9 | 9 | * Do not edit the class manually. |
10 | 10 | */ |
11 | 11 |
|
12 | | -import { RequestFile } from './models'; |
13 | 12 | import { CustomTimeframe } from './customTimeframe'; |
14 | 13 | import { Timeframe } from './timeframe'; |
15 | 14 |
|
16 | 15 | /** |
17 | 16 | * The timeframe to query for data within. The max length a timeframe can be is 1 year |
18 | 17 | */ |
19 | | -export class CampaignValuesRequestDTOResourceObjectAttributesTimeframe { |
20 | | - /** |
21 | | - * Pre-defined key that represents a set timeframe |
22 | | - */ |
23 | | - 'key': CampaignValuesRequestDTOResourceObjectAttributesTimeframe.KeyEnum | 'last_12_months' | 'last_30_days' | 'last_365_days' | 'last_3_months' | 'last_7_days' | 'last_90_days' | 'last_month' | 'last_week' | 'last_year' | 'this_month' | 'this_week' | 'this_year' | 'today' | 'yesterday'; |
24 | | - 'start': Date; |
25 | | - 'end': Date; |
| 18 | +export type CampaignValuesRequestDTOResourceObjectAttributesTimeframe = CustomTimeframe | Timeframe; |
26 | 19 |
|
27 | | - |
28 | | - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ |
29 | | - { |
30 | | - "name": "key", |
31 | | - "baseName": "key", |
32 | | - "type": "CampaignValuesRequestDTOResourceObjectAttributesTimeframe.KeyEnum" |
33 | | - }, |
34 | | - { |
35 | | - "name": "start", |
36 | | - "baseName": "start", |
37 | | - "type": "Date" |
38 | | - }, |
39 | | - { |
40 | | - "name": "end", |
41 | | - "baseName": "end", |
42 | | - "type": "Date" |
43 | | - } ]; |
44 | | - |
45 | | - static getAttributeTypeMap() { |
46 | | - return CampaignValuesRequestDTOResourceObjectAttributesTimeframe.attributeTypeMap; |
47 | | - } |
48 | | -} |
49 | | - |
50 | | -export namespace CampaignValuesRequestDTOResourceObjectAttributesTimeframe { |
51 | | - export enum KeyEnum { |
52 | | - Last12Months = <any> 'last_12_months', |
53 | | - Last30Days = <any> 'last_30_days', |
54 | | - Last365Days = <any> 'last_365_days', |
55 | | - Last3Months = <any> 'last_3_months', |
56 | | - Last7Days = <any> 'last_7_days', |
57 | | - Last90Days = <any> 'last_90_days', |
58 | | - LastMonth = <any> 'last_month', |
59 | | - LastWeek = <any> 'last_week', |
60 | | - LastYear = <any> 'last_year', |
61 | | - ThisMonth = <any> 'this_month', |
62 | | - ThisWeek = <any> 'this_week', |
63 | | - ThisYear = <any> 'this_year', |
64 | | - Today = <any> 'today', |
65 | | - Yesterday = <any> 'yesterday' |
66 | | - } |
67 | | -} |
0 commit comments