@pushwoosh/rpc-v2-http-api-data 0.1.405 → 0.1.406

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/accounts.d.ts CHANGED
@@ -218,16 +218,16 @@ export type EmailContent_Raw = {
218
218
  html: Record<string, string>;
219
219
  };
220
220
  export type EmailContent_kind_unlayer = {
221
- $: 'unlayer';
222
- unlayer: EmailContent_Unlayer;
221
+ type: 'unlayer';
222
+ data: EmailContent_Unlayer;
223
223
  };
224
224
  export type EmailContent_kind_pushwoosh = {
225
- $: 'pushwoosh';
226
- pushwoosh: EmailContent_Pushwoosh;
225
+ type: 'pushwoosh';
226
+ data: EmailContent_Pushwoosh;
227
227
  };
228
228
  export type EmailContent_kind_raw = {
229
- $: 'raw';
230
- raw: EmailContent_Raw;
229
+ type: 'raw';
230
+ data: EmailContent_Raw;
231
231
  };
232
232
  export type EmailContent_kind = EmailContent_kind_unlayer | EmailContent_kind_pushwoosh | EmailContent_kind_raw;
233
233
  export type EmailContent = {
package/api_tokens.d.ts CHANGED
@@ -82,28 +82,28 @@ export type GrantRightOnApplicationRequest_MessageGroups = {
82
82
  applicationGroupCode: string;
83
83
  };
84
84
  export type GrantRightOnApplicationRequest_kind_modifyAccount = {
85
- $: 'modifyAccount';
86
- modifyAccount: GrantRightOnApplicationRequest_ModifyAccount;
85
+ type: 'modifyAccount';
86
+ data: GrantRightOnApplicationRequest_ModifyAccount;
87
87
  };
88
88
  export type GrantRightOnApplicationRequest_kind_modifyApplication = {
89
- $: 'modifyApplication';
90
- modifyApplication: GrantRightOnApplicationRequest_ModifyApplication;
89
+ type: 'modifyApplication';
90
+ data: GrantRightOnApplicationRequest_ModifyApplication;
91
91
  };
92
92
  export type GrantRightOnApplicationRequest_kind_modifyTag = {
93
- $: 'modifyTag';
94
- modifyTag: GrantRightOnApplicationRequest_ModifyTag;
93
+ type: 'modifyTag';
94
+ data: GrantRightOnApplicationRequest_ModifyTag;
95
95
  };
96
96
  export type GrantRightOnApplicationRequest_kind_modifyMessage = {
97
- $: 'modifyMessage';
98
- modifyMessage: GrantRightOnApplicationRequest_ModifyMessage;
97
+ type: 'modifyMessage';
98
+ data: GrantRightOnApplicationRequest_ModifyMessage;
99
99
  };
100
100
  export type GrantRightOnApplicationRequest_kind_messageApplications = {
101
- $: 'messageApplications';
102
- messageApplications: GrantRightOnApplicationRequest_MessageApplications;
101
+ type: 'messageApplications';
102
+ data: GrantRightOnApplicationRequest_MessageApplications;
103
103
  };
104
104
  export type GrantRightOnApplicationRequest_kind_messageGroups = {
105
- $: 'messageGroups';
106
- messageGroups: GrantRightOnApplicationRequest_MessageGroups;
105
+ type: 'messageGroups';
106
+ data: GrantRightOnApplicationRequest_MessageGroups;
107
107
  };
108
108
  export type GrantRightOnApplicationRequest_kind = GrantRightOnApplicationRequest_kind_modifyAccount | GrantRightOnApplicationRequest_kind_modifyApplication | GrantRightOnApplicationRequest_kind_modifyTag | GrantRightOnApplicationRequest_kind_modifyMessage | GrantRightOnApplicationRequest_kind_messageApplications | GrantRightOnApplicationRequest_kind_messageGroups;
109
109
  export type GrantRightOnApplicationRequest = {
@@ -71,52 +71,52 @@ export type FirefoxConfiguration = {
71
71
  firefoxFcmServiceAccount: string;
72
72
  };
73
73
  export type ConfigurationRequest_kind_iosTokenConfiguration = {
74
- $: 'iosTokenConfiguration';
75
- iosTokenConfiguration: IOSTokenConfiguration;
74
+ type: 'iosTokenConfiguration';
75
+ data: IOSTokenConfiguration;
76
76
  };
77
77
  export type ConfigurationRequest_kind_androidConfiguration = {
78
- $: 'androidConfiguration';
79
- androidConfiguration: AndroidConfiguration;
78
+ type: 'androidConfiguration';
79
+ data: AndroidConfiguration;
80
80
  };
81
81
  export type ConfigurationRequest_kind_chromeConfiguration = {
82
- $: 'chromeConfiguration';
83
- chromeConfiguration: ChromeConfiguration;
82
+ type: 'chromeConfiguration';
83
+ data: ChromeConfiguration;
84
84
  };
85
85
  export type ConfigurationRequest_kind_emailConfiguration = {
86
- $: 'emailConfiguration';
87
- emailConfiguration: EmailConfiguration;
86
+ type: 'emailConfiguration';
87
+ data: EmailConfiguration;
88
88
  };
89
89
  export type ConfigurationRequest_kind_xiaomiConfiguration = {
90
- $: 'xiaomiConfiguration';
91
- xiaomiConfiguration: XiaomiConfiguration;
90
+ type: 'xiaomiConfiguration';
91
+ data: XiaomiConfiguration;
92
92
  };
93
93
  export type ConfigurationRequest_kind_huaweiConfiguration = {
94
- $: 'huaweiConfiguration';
95
- huaweiConfiguration: HuaweiConfiguration;
94
+ type: 'huaweiConfiguration';
95
+ data: HuaweiConfiguration;
96
96
  };
97
97
  export type ConfigurationRequest_kind_safariConfiguration = {
98
- $: 'safariConfiguration';
99
- safariConfiguration: SafariConfiguration;
98
+ type: 'safariConfiguration';
99
+ data: SafariConfiguration;
100
100
  };
101
101
  export type ConfigurationRequest_kind_windowsConfiguration = {
102
- $: 'windowsConfiguration';
103
- windowsConfiguration: WindowsConfiguration;
102
+ type: 'windowsConfiguration';
103
+ data: WindowsConfiguration;
104
104
  };
105
105
  export type ConfigurationRequest_kind_amazonConfiguration = {
106
- $: 'amazonConfiguration';
107
- amazonConfiguration: AmazonConfiguration;
106
+ type: 'amazonConfiguration';
107
+ data: AmazonConfiguration;
108
108
  };
109
109
  export type ConfigurationRequest_kind_osxConfiguration = {
110
- $: 'osxConfiguration';
111
- osxConfiguration: OSXConfiguration;
110
+ type: 'osxConfiguration';
111
+ data: OSXConfiguration;
112
112
  };
113
113
  export type ConfigurationRequest_kind_iosConfiguration = {
114
- $: 'iosConfiguration';
115
- iosConfiguration: IOSConfiguration;
114
+ type: 'iosConfiguration';
115
+ data: IOSConfiguration;
116
116
  };
117
117
  export type ConfigurationRequest_kind_firefoxConfiguration = {
118
- $: 'firefoxConfiguration';
119
- firefoxConfiguration: FirefoxConfiguration;
118
+ type: 'firefoxConfiguration';
119
+ data: FirefoxConfiguration;
120
120
  };
121
121
  export type ConfigurationRequest_kind = ConfigurationRequest_kind_iosTokenConfiguration | ConfigurationRequest_kind_androidConfiguration | ConfigurationRequest_kind_chromeConfiguration | ConfigurationRequest_kind_emailConfiguration | ConfigurationRequest_kind_xiaomiConfiguration | ConfigurationRequest_kind_huaweiConfiguration | ConfigurationRequest_kind_safariConfiguration | ConfigurationRequest_kind_windowsConfiguration | ConfigurationRequest_kind_amazonConfiguration | ConfigurationRequest_kind_osxConfiguration | ConfigurationRequest_kind_iosConfiguration | ConfigurationRequest_kind_firefoxConfiguration;
122
122
  export type ConfigurationRequest = {
package/events.d.ts CHANGED
@@ -91,28 +91,28 @@ export type ListOfValues = {
91
91
  values: string[];
92
92
  };
93
93
  export type Value_kind_string = {
94
- $: 'string';
95
- string: string;
94
+ type: 'string';
95
+ data: string;
96
96
  };
97
97
  export type Value_kind_integer = {
98
- $: 'integer';
99
- integer: number;
98
+ type: 'integer';
99
+ data: number;
100
100
  };
101
101
  export type Value_kind_float = {
102
- $: 'float';
103
- float: number;
102
+ type: 'float';
103
+ data: number;
104
104
  };
105
105
  export type Value_kind_bool = {
106
- $: 'bool';
107
- bool: boolean;
106
+ type: 'bool';
107
+ data: boolean;
108
108
  };
109
109
  export type Value_kind_list = {
110
- $: 'list';
111
- list: ListOfValues;
110
+ type: 'list';
111
+ data: ListOfValues;
112
112
  };
113
113
  export type Value_kind_timestamp = {
114
- $: 'timestamp';
115
- timestamp: Date;
114
+ type: 'timestamp';
115
+ data: Date;
116
116
  };
117
117
  export type Value_kind = Value_kind_string | Value_kind_integer | Value_kind_float | Value_kind_bool | Value_kind_list | Value_kind_timestamp;
118
118
  export type Value = {
package/filters.d.ts CHANGED
@@ -38,12 +38,12 @@ export type Filter_Compiling = {
38
38
  totalWhatsapp: number;
39
39
  };
40
40
  export type Filter_type_compiling = {
41
- $: 'compiling';
42
- compiling: Filter_Compiling;
41
+ type: 'compiling';
42
+ data: Filter_Compiling;
43
43
  };
44
44
  export type Filter_type_empty = {
45
- $: 'empty';
46
- empty: {};
45
+ type: 'empty';
46
+ data: {};
47
47
  };
48
48
  export type Filter_type = Filter_type_compiling | Filter_type_empty;
49
49
  export type Filter = {
package/google_api.d.ts CHANGED
@@ -3,28 +3,28 @@ export type Http = {
3
3
  fullyDecodeReservedExpansion: boolean;
4
4
  };
5
5
  export type HttpRule_pattern_get = {
6
- $: 'get';
7
- get: string;
6
+ type: 'get';
7
+ data: string;
8
8
  };
9
9
  export type HttpRule_pattern_put = {
10
- $: 'put';
11
- put: string;
10
+ type: 'put';
11
+ data: string;
12
12
  };
13
13
  export type HttpRule_pattern_post = {
14
- $: 'post';
15
- post: string;
14
+ type: 'post';
15
+ data: string;
16
16
  };
17
17
  export type HttpRule_pattern_delete = {
18
- $: 'delete';
19
- delete: string;
18
+ type: 'delete';
19
+ data: string;
20
20
  };
21
21
  export type HttpRule_pattern_patch = {
22
- $: 'patch';
23
- patch: string;
22
+ type: 'patch';
23
+ data: string;
24
24
  };
25
25
  export type HttpRule_pattern_custom = {
26
- $: 'custom';
27
- custom: CustomHttpPattern;
26
+ type: 'custom';
27
+ data: CustomHttpPattern;
28
28
  };
29
29
  export type HttpRule_pattern = HttpRule_pattern_get | HttpRule_pattern_put | HttpRule_pattern_post | HttpRule_pattern_delete | HttpRule_pattern_patch | HttpRule_pattern_custom;
30
30
  export type HttpRule = {
@@ -195,28 +195,28 @@ export type Struct = {
195
195
  fields: Record<string, Value>;
196
196
  };
197
197
  export type Value_kind_nullValue = {
198
- $: 'nullValue';
199
- nullValue: NullValue;
198
+ type: 'nullValue';
199
+ data: NullValue;
200
200
  };
201
201
  export type Value_kind_numberValue = {
202
- $: 'numberValue';
203
- numberValue: number;
202
+ type: 'numberValue';
203
+ data: number;
204
204
  };
205
205
  export type Value_kind_stringValue = {
206
- $: 'stringValue';
207
- stringValue: string;
206
+ type: 'stringValue';
207
+ data: string;
208
208
  };
209
209
  export type Value_kind_boolValue = {
210
- $: 'boolValue';
211
- boolValue: boolean;
210
+ type: 'boolValue';
211
+ data: boolean;
212
212
  };
213
213
  export type Value_kind_structValue = {
214
- $: 'structValue';
215
- structValue: Struct;
214
+ type: 'structValue';
215
+ data: Struct;
216
216
  };
217
217
  export type Value_kind_listValue = {
218
- $: 'listValue';
219
- listValue: ListValue;
218
+ type: 'listValue';
219
+ data: ListValue;
220
220
  };
221
221
  export type Value_kind = Value_kind_nullValue | Value_kind_numberValue | Value_kind_stringValue | Value_kind_boolValue | Value_kind_structValue | Value_kind_listValue;
222
222
  export type Value = {
package/messages.d.ts CHANGED
@@ -24,12 +24,12 @@ export type EmailInfo = {
24
24
  export type Message_SchedulingType = 'now' | 'device_tz' | 'custom_tz' | 'optimal_time';
25
25
  export type Message_Status = 'status_unknown' | 'creating' | 'waiting' | 'pending' | 'processing' | 'done' | 'canceled' | 'fail';
26
26
  export type Message_info_pushInfo = {
27
- $: 'pushInfo';
28
- pushInfo: PushInfo;
27
+ type: 'pushInfo';
28
+ data: PushInfo;
29
29
  };
30
30
  export type Message_info_emailInfo = {
31
- $: 'emailInfo';
32
- emailInfo: EmailInfo;
31
+ type: 'emailInfo';
32
+ data: EmailInfo;
33
33
  };
34
34
  export type Message_info = Message_info_pushInfo | Message_info_emailInfo;
35
35
  export type Message = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.405",
3
+ "version": "0.1.406",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -7,12 +7,12 @@ export interface MessagingService {
7
7
  NotifyStream(request: NotifyStreamRequest): Promise<NotifyStreamResponse>;
8
8
  }
9
9
  export type NotifyRequest_kind_segment = {
10
- $: 'segment';
11
- segment: NotifySegment;
10
+ type: 'segment';
11
+ data: NotifySegment;
12
12
  };
13
13
  export type NotifyRequest_kind_transactional = {
14
- $: 'transactional';
15
- transactional: NotifyTransactional;
14
+ type: 'transactional';
15
+ data: NotifyTransactional;
16
16
  };
17
17
  export type NotifyRequest_kind = NotifyRequest_kind_segment | NotifyRequest_kind_transactional;
18
18
  export type NotifyRequest = {
@@ -37,16 +37,16 @@ export type NotifyResult = {
37
37
  };
38
38
  export type Platform = 'UNKNOWN' | 'IOS' | 'ANDROID' | 'OSX' | 'WINDOWS' | 'AMAZON' | 'SAFARI' | 'CHROME' | 'FIREFOX' | 'IE' | 'EMAIL' | 'BAIDU_ANDROID' | 'HUAWEI_ANDROID' | 'SMS' | 'XIAOMI';
39
39
  export type NotifySegment_target_code = {
40
- $: 'code';
41
- code: string;
40
+ type: 'code';
41
+ data: string;
42
42
  };
43
43
  export type NotifySegment_target_expression = {
44
- $: 'expression';
45
- expression: string;
44
+ type: 'expression';
45
+ data: string;
46
46
  };
47
47
  export type NotifySegment_target_filterExpression = {
48
- $: 'filterExpression';
49
- filterExpression: pushwoosh_objects_filters_v1_FilterExpression;
48
+ type: 'filterExpression';
49
+ data: pushwoosh_objects_filters_v1_FilterExpression;
50
50
  };
51
51
  export type NotifySegment_target = NotifySegment_target_code | NotifySegment_target_expression | NotifySegment_target_filterExpression;
52
52
  export type NotifySegment = {
@@ -68,20 +68,20 @@ export type NotifyTransactional_PushTokensList = {
68
68
  list: string[];
69
69
  };
70
70
  export type NotifyTransactional_target_testDevices = {
71
- $: 'testDevices';
72
- testDevices: boolean;
71
+ type: 'testDevices';
72
+ data: boolean;
73
73
  };
74
74
  export type NotifyTransactional_target_hwids = {
75
- $: 'hwids';
76
- hwids: NotifyTransactional_HwidsList;
75
+ type: 'hwids';
76
+ data: NotifyTransactional_HwidsList;
77
77
  };
78
78
  export type NotifyTransactional_target_users = {
79
- $: 'users';
80
- users: NotifyTransactional_UsersList;
79
+ type: 'users';
80
+ data: NotifyTransactional_UsersList;
81
81
  };
82
82
  export type NotifyTransactional_target_pushTokens = {
83
- $: 'pushTokens';
84
- pushTokens: NotifyTransactional_PushTokensList;
83
+ type: 'pushTokens';
84
+ data: NotifyTransactional_PushTokensList;
85
85
  };
86
86
  export type NotifyTransactional_target = NotifyTransactional_target_testDevices | NotifyTransactional_target_hwids | NotifyTransactional_target_users | NotifyTransactional_target_pushTokens;
87
87
  export type NotifyTransactional = {
@@ -96,12 +96,12 @@ export type NotifyTransactional = {
96
96
  };
97
97
  export type Schedule_PastTimezonesBehaviour = 'PAST_TIMEZONES_BEHAVIOUR_DEFAULT' | 'PAST_TIMEZONES_BEHAVIOUR_SEND_IMMEDIATELY' | 'PAST_TIMEZONES_BEHAVIOUR_DO_NOT_SEND' | 'PAST_TIMEZONES_BEHAVIOUR_NEXT_DAY';
98
98
  export type Schedule_sendDate_at = {
99
- $: 'at';
100
- at: Date;
99
+ type: 'at';
100
+ data: Date;
101
101
  };
102
102
  export type Schedule_sendDate_after = {
103
- $: 'after';
104
- after: Duration;
103
+ type: 'after';
104
+ data: Duration;
105
105
  };
106
106
  export type Schedule_sendDate = Schedule_sendDate_at | Schedule_sendDate_after;
107
107
  export type Schedule = {
@@ -128,12 +128,12 @@ export type Link = {
128
128
  shortener: Link_Shortener;
129
129
  };
130
130
  export type RichMedia_kind_code = {
131
- $: 'code';
132
- code: string;
131
+ type: 'code';
132
+ data: string;
133
133
  };
134
134
  export type RichMedia_kind_url = {
135
- $: 'url';
136
- url: string;
135
+ type: 'url';
136
+ data: string;
137
137
  };
138
138
  export type RichMedia_kind = RichMedia_kind_code | RichMedia_kind_url;
139
139
  export type RichMedia = {
@@ -144,16 +144,16 @@ export type DeepLink = {
144
144
  params: Record<string, string>;
145
145
  };
146
146
  export type OpenAction_kind_richMedia = {
147
- $: 'richMedia';
148
- richMedia: RichMedia;
147
+ type: 'richMedia';
148
+ data: RichMedia;
149
149
  };
150
150
  export type OpenAction_kind_deepLink = {
151
- $: 'deepLink';
152
- deepLink: DeepLink;
151
+ type: 'deepLink';
152
+ data: DeepLink;
153
153
  };
154
154
  export type OpenAction_kind_link = {
155
- $: 'link';
156
- link: Link;
155
+ type: 'link';
156
+ data: Link;
157
157
  };
158
158
  export type OpenAction_kind = OpenAction_kind_richMedia | OpenAction_kind_deepLink | OpenAction_kind_link;
159
159
  export type OpenAction = {
@@ -343,12 +343,12 @@ export type Content_PlatformPropertiesWindows_Template = {
343
343
  };
344
344
  export type Content_PlatformPropertiesWindows_Type = 'TILE' | 'TOAST' | 'BADGE';
345
345
  export type Content_PlatformPropertiesWindows_content_raw = {
346
- $: 'raw';
347
- raw: Content_PlatformPropertiesWindows_Raw;
346
+ type: 'raw';
347
+ data: Content_PlatformPropertiesWindows_Raw;
348
348
  };
349
349
  export type Content_PlatformPropertiesWindows_content_template = {
350
- $: 'template';
351
- template: Content_PlatformPropertiesWindows_Template;
350
+ type: 'template';
351
+ data: Content_PlatformPropertiesWindows_Template;
352
352
  };
353
353
  export type Content_PlatformPropertiesWindows_content = Content_PlatformPropertiesWindows_content_raw | Content_PlatformPropertiesWindows_content_template;
354
354
  export type Content_PlatformPropertiesWindows = {
@@ -380,12 +380,12 @@ export type LocalizedContent = {
380
380
  localizedContent: Record<string, Content>;
381
381
  };
382
382
  export type Payload_kind_content = {
383
- $: 'content';
384
- content: LocalizedContent;
383
+ type: 'content';
384
+ data: LocalizedContent;
385
385
  };
386
386
  export type Payload_kind_silent = {
387
- $: 'silent';
388
- silent: boolean;
387
+ type: 'silent';
388
+ data: boolean;
389
389
  };
390
390
  export type Payload_kind = Payload_kind_content | Payload_kind_silent;
391
391
  export type Payload = {