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

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,19 +218,23 @@ export type EmailContent_Raw = {
218
218
  html: Record<string, string>;
219
219
  };
220
220
  export type EmailContent_kind_unlayer = {
221
+ $: 'unlayer';
221
222
  unlayer: EmailContent_Unlayer;
222
223
  };
223
224
  export type EmailContent_kind_pushwoosh = {
225
+ $: 'pushwoosh';
224
226
  pushwoosh: EmailContent_Pushwoosh;
225
227
  };
226
228
  export type EmailContent_kind_raw = {
229
+ $: 'raw';
227
230
  raw: EmailContent_Raw;
228
231
  };
229
232
  export type EmailContent_kind = EmailContent_kind_unlayer | EmailContent_kind_pushwoosh | EmailContent_kind_raw;
230
233
  export type EmailContent = {
231
234
  senderInfo: EmailContent_SenderInfo;
232
235
  subject: Record<string, string>;
233
- } & EmailContent_kind;
236
+ kind: EmailContent_kind;
237
+ };
234
238
  export type GetEmailTemplateRequest = {
235
239
  code?: string;
236
240
  };
package/api_tokens.d.ts CHANGED
@@ -82,25 +82,33 @@ export type GrantRightOnApplicationRequest_MessageGroups = {
82
82
  applicationGroupCode: string;
83
83
  };
84
84
  export type GrantRightOnApplicationRequest_kind_modifyAccount = {
85
+ $: 'modifyAccount';
85
86
  modifyAccount: GrantRightOnApplicationRequest_ModifyAccount;
86
87
  };
87
88
  export type GrantRightOnApplicationRequest_kind_modifyApplication = {
89
+ $: 'modifyApplication';
88
90
  modifyApplication: GrantRightOnApplicationRequest_ModifyApplication;
89
91
  };
90
92
  export type GrantRightOnApplicationRequest_kind_modifyTag = {
93
+ $: 'modifyTag';
91
94
  modifyTag: GrantRightOnApplicationRequest_ModifyTag;
92
95
  };
93
96
  export type GrantRightOnApplicationRequest_kind_modifyMessage = {
97
+ $: 'modifyMessage';
94
98
  modifyMessage: GrantRightOnApplicationRequest_ModifyMessage;
95
99
  };
96
100
  export type GrantRightOnApplicationRequest_kind_messageApplications = {
101
+ $: 'messageApplications';
97
102
  messageApplications: GrantRightOnApplicationRequest_MessageApplications;
98
103
  };
99
104
  export type GrantRightOnApplicationRequest_kind_messageGroups = {
105
+ $: 'messageGroups';
100
106
  messageGroups: GrantRightOnApplicationRequest_MessageGroups;
101
107
  };
102
108
  export type GrantRightOnApplicationRequest_kind = GrantRightOnApplicationRequest_kind_modifyAccount | GrantRightOnApplicationRequest_kind_modifyApplication | GrantRightOnApplicationRequest_kind_modifyTag | GrantRightOnApplicationRequest_kind_modifyMessage | GrantRightOnApplicationRequest_kind_messageApplications | GrantRightOnApplicationRequest_kind_messageGroups;
103
- export type GrantRightOnApplicationRequest = {} & GrantRightOnApplicationRequest_kind;
109
+ export type GrantRightOnApplicationRequest = {
110
+ kind: GrantRightOnApplicationRequest_kind;
111
+ };
104
112
  export type GrantRightOnApplicationResponse = {};
105
113
  export type GrantMessageRightAllRequest = {
106
114
  code?: string;
@@ -71,45 +71,58 @@ export type FirefoxConfiguration = {
71
71
  firefoxFcmServiceAccount: string;
72
72
  };
73
73
  export type ConfigurationRequest_kind_iosTokenConfiguration = {
74
+ $: 'iosTokenConfiguration';
74
75
  iosTokenConfiguration: IOSTokenConfiguration;
75
76
  };
76
77
  export type ConfigurationRequest_kind_androidConfiguration = {
78
+ $: 'androidConfiguration';
77
79
  androidConfiguration: AndroidConfiguration;
78
80
  };
79
81
  export type ConfigurationRequest_kind_chromeConfiguration = {
82
+ $: 'chromeConfiguration';
80
83
  chromeConfiguration: ChromeConfiguration;
81
84
  };
82
85
  export type ConfigurationRequest_kind_emailConfiguration = {
86
+ $: 'emailConfiguration';
83
87
  emailConfiguration: EmailConfiguration;
84
88
  };
85
89
  export type ConfigurationRequest_kind_xiaomiConfiguration = {
90
+ $: 'xiaomiConfiguration';
86
91
  xiaomiConfiguration: XiaomiConfiguration;
87
92
  };
88
93
  export type ConfigurationRequest_kind_huaweiConfiguration = {
94
+ $: 'huaweiConfiguration';
89
95
  huaweiConfiguration: HuaweiConfiguration;
90
96
  };
91
97
  export type ConfigurationRequest_kind_safariConfiguration = {
98
+ $: 'safariConfiguration';
92
99
  safariConfiguration: SafariConfiguration;
93
100
  };
94
101
  export type ConfigurationRequest_kind_windowsConfiguration = {
102
+ $: 'windowsConfiguration';
95
103
  windowsConfiguration: WindowsConfiguration;
96
104
  };
97
105
  export type ConfigurationRequest_kind_amazonConfiguration = {
106
+ $: 'amazonConfiguration';
98
107
  amazonConfiguration: AmazonConfiguration;
99
108
  };
100
109
  export type ConfigurationRequest_kind_osxConfiguration = {
110
+ $: 'osxConfiguration';
101
111
  osxConfiguration: OSXConfiguration;
102
112
  };
103
113
  export type ConfigurationRequest_kind_iosConfiguration = {
114
+ $: 'iosConfiguration';
104
115
  iosConfiguration: IOSConfiguration;
105
116
  };
106
117
  export type ConfigurationRequest_kind_firefoxConfiguration = {
118
+ $: 'firefoxConfiguration';
107
119
  firefoxConfiguration: FirefoxConfiguration;
108
120
  };
109
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;
110
122
  export type ConfigurationRequest = {
111
123
  code?: string;
112
- } & ConfigurationRequest_kind;
124
+ kind: ConfigurationRequest_kind;
125
+ };
113
126
  export type ConfigurationResponse = {};
114
127
  export type EnablePlatformRequest = {
115
128
  code?: string;
package/events.d.ts CHANGED
@@ -91,25 +91,33 @@ export type ListOfValues = {
91
91
  values: string[];
92
92
  };
93
93
  export type Value_kind_string = {
94
+ $: 'string';
94
95
  string: string;
95
96
  };
96
97
  export type Value_kind_integer = {
98
+ $: 'integer';
97
99
  integer: number;
98
100
  };
99
101
  export type Value_kind_float = {
102
+ $: 'float';
100
103
  float: number;
101
104
  };
102
105
  export type Value_kind_bool = {
106
+ $: 'bool';
103
107
  bool: boolean;
104
108
  };
105
109
  export type Value_kind_list = {
110
+ $: 'list';
106
111
  list: ListOfValues;
107
112
  };
108
113
  export type Value_kind_timestamp = {
114
+ $: 'timestamp';
109
115
  timestamp: Date;
110
116
  };
111
117
  export type Value_kind = Value_kind_string | Value_kind_integer | Value_kind_float | Value_kind_bool | Value_kind_list | Value_kind_timestamp;
112
- export type Value = {} & Value_kind;
118
+ export type Value = {
119
+ kind: Value_kind;
120
+ };
113
121
  export type AttributeCondition_Operator = 'OPERATOR_UNSPECIFIED' | 'EQ' | 'NOT_EQ' | 'GTE' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN';
114
122
  export type AttributeCondition = {
115
123
  name: string;
package/filters.d.ts CHANGED
@@ -38,9 +38,11 @@ export type Filter_Compiling = {
38
38
  totalWhatsapp: number;
39
39
  };
40
40
  export type Filter_type_compiling = {
41
+ $: 'compiling';
41
42
  compiling: Filter_Compiling;
42
43
  };
43
44
  export type Filter_type_empty = {
45
+ $: 'empty';
44
46
  empty: {};
45
47
  };
46
48
  export type Filter_type = Filter_type_compiling | Filter_type_empty;
@@ -53,7 +55,8 @@ export type Filter = {
53
55
  highspeedReady: boolean;
54
56
  highspeedSubscribersTotal: number;
55
57
  hasRightAceModify: boolean;
56
- } & Filter_type;
58
+ type: Filter_type;
59
+ };
57
60
  export type ListFiltersResponse = {
58
61
  filters: Filter[];
59
62
  page: number;
package/google_api.d.ts CHANGED
@@ -3,21 +3,27 @@ export type Http = {
3
3
  fullyDecodeReservedExpansion: boolean;
4
4
  };
5
5
  export type HttpRule_pattern_get = {
6
+ $: 'get';
6
7
  get: string;
7
8
  };
8
9
  export type HttpRule_pattern_put = {
10
+ $: 'put';
9
11
  put: string;
10
12
  };
11
13
  export type HttpRule_pattern_post = {
14
+ $: 'post';
12
15
  post: string;
13
16
  };
14
17
  export type HttpRule_pattern_delete = {
18
+ $: 'delete';
15
19
  delete: string;
16
20
  };
17
21
  export type HttpRule_pattern_patch = {
22
+ $: 'patch';
18
23
  patch: string;
19
24
  };
20
25
  export type HttpRule_pattern_custom = {
26
+ $: 'custom';
21
27
  custom: CustomHttpPattern;
22
28
  };
23
29
  export type HttpRule_pattern = HttpRule_pattern_get | HttpRule_pattern_put | HttpRule_pattern_post | HttpRule_pattern_delete | HttpRule_pattern_patch | HttpRule_pattern_custom;
@@ -26,7 +32,8 @@ export type HttpRule = {
26
32
  body: string;
27
33
  responseBody: string;
28
34
  additionalBindings: HttpRule[];
29
- } & HttpRule_pattern;
35
+ pattern: HttpRule_pattern;
36
+ };
30
37
  export type CustomHttpPattern = {
31
38
  kind: string;
32
39
  path: string;
@@ -195,25 +195,33 @@ export type Struct = {
195
195
  fields: Record<string, Value>;
196
196
  };
197
197
  export type Value_kind_nullValue = {
198
+ $: 'nullValue';
198
199
  nullValue: NullValue;
199
200
  };
200
201
  export type Value_kind_numberValue = {
202
+ $: 'numberValue';
201
203
  numberValue: number;
202
204
  };
203
205
  export type Value_kind_stringValue = {
206
+ $: 'stringValue';
204
207
  stringValue: string;
205
208
  };
206
209
  export type Value_kind_boolValue = {
210
+ $: 'boolValue';
207
211
  boolValue: boolean;
208
212
  };
209
213
  export type Value_kind_structValue = {
214
+ $: 'structValue';
210
215
  structValue: Struct;
211
216
  };
212
217
  export type Value_kind_listValue = {
218
+ $: 'listValue';
213
219
  listValue: ListValue;
214
220
  };
215
221
  export type Value_kind = Value_kind_nullValue | Value_kind_numberValue | Value_kind_stringValue | Value_kind_boolValue | Value_kind_structValue | Value_kind_listValue;
216
- export type Value = {} & Value_kind;
222
+ export type Value = {
223
+ kind: Value_kind;
224
+ };
217
225
  export type NullValue = 'NULL_VALUE';
218
226
  export type ListValue = {
219
227
  values: Value[];
package/messages.d.ts CHANGED
@@ -24,9 +24,11 @@ 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';
27
28
  pushInfo: PushInfo;
28
29
  };
29
30
  export type Message_info_emailInfo = {
31
+ $: 'emailInfo';
30
32
  emailInfo: EmailInfo;
31
33
  };
32
34
  export type Message_info = Message_info_pushInfo | Message_info_emailInfo;
@@ -41,7 +43,8 @@ export type Message = {
41
43
  createdDate: Date;
42
44
  properties: Record<string, string>;
43
45
  schedulingType: Message_SchedulingType;
44
- } & Message_info;
46
+ info: Message_info;
47
+ };
45
48
  export type ListMessagesRequest_OrderBy = 'NAME' | 'CREATED' | 'SEND_DATE';
46
49
  export type ListMessagesRequest_OrderDirection = 'ASC' | 'DESC';
47
50
  export type ListMessagesRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.403",
3
+ "version": "0.1.405",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -7,13 +7,17 @@ export interface MessagingService {
7
7
  NotifyStream(request: NotifyStreamRequest): Promise<NotifyStreamResponse>;
8
8
  }
9
9
  export type NotifyRequest_kind_segment = {
10
+ $: 'segment';
10
11
  segment: NotifySegment;
11
12
  };
12
13
  export type NotifyRequest_kind_transactional = {
14
+ $: 'transactional';
13
15
  transactional: NotifyTransactional;
14
16
  };
15
17
  export type NotifyRequest_kind = NotifyRequest_kind_segment | NotifyRequest_kind_transactional;
16
- export type NotifyRequest = {} & NotifyRequest_kind;
18
+ export type NotifyRequest = {
19
+ kind: NotifyRequest_kind;
20
+ };
17
21
  export type NotifyResponse = {
18
22
  result: NotifyResult;
19
23
  };
@@ -33,12 +37,15 @@ export type NotifyResult = {
33
37
  };
34
38
  export type Platform = 'UNKNOWN' | 'IOS' | 'ANDROID' | 'OSX' | 'WINDOWS' | 'AMAZON' | 'SAFARI' | 'CHROME' | 'FIREFOX' | 'IE' | 'EMAIL' | 'BAIDU_ANDROID' | 'HUAWEI_ANDROID' | 'SMS' | 'XIAOMI';
35
39
  export type NotifySegment_target_code = {
40
+ $: 'code';
36
41
  code: string;
37
42
  };
38
43
  export type NotifySegment_target_expression = {
44
+ $: 'expression';
39
45
  expression: string;
40
46
  };
41
47
  export type NotifySegment_target_filterExpression = {
48
+ $: 'filterExpression';
42
49
  filterExpression: pushwoosh_objects_filters_v1_FilterExpression;
43
50
  };
44
51
  export type NotifySegment_target = NotifySegment_target_code | NotifySegment_target_expression | NotifySegment_target_filterExpression;
@@ -49,7 +56,8 @@ export type NotifySegment = {
49
56
  payload: Payload;
50
57
  frequencyCapping: FrequencyCapping;
51
58
  campaign: string;
52
- } & NotifySegment_target;
59
+ target: NotifySegment_target;
60
+ };
53
61
  export type NotifyTransactional_HwidsList = {
54
62
  list: string[];
55
63
  };
@@ -60,15 +68,19 @@ export type NotifyTransactional_PushTokensList = {
60
68
  list: string[];
61
69
  };
62
70
  export type NotifyTransactional_target_testDevices = {
71
+ $: 'testDevices';
63
72
  testDevices: boolean;
64
73
  };
65
74
  export type NotifyTransactional_target_hwids = {
75
+ $: 'hwids';
66
76
  hwids: NotifyTransactional_HwidsList;
67
77
  };
68
78
  export type NotifyTransactional_target_users = {
79
+ $: 'users';
69
80
  users: NotifyTransactional_UsersList;
70
81
  };
71
82
  export type NotifyTransactional_target_pushTokens = {
83
+ $: 'pushTokens';
72
84
  pushTokens: NotifyTransactional_PushTokensList;
73
85
  };
74
86
  export type NotifyTransactional_target = NotifyTransactional_target_testDevices | NotifyTransactional_target_hwids | NotifyTransactional_target_users | NotifyTransactional_target_pushTokens;
@@ -80,19 +92,23 @@ export type NotifyTransactional = {
80
92
  returnUnknownIdentifiers: boolean;
81
93
  frequencyCapping: FrequencyCapping;
82
94
  campaign: string;
83
- } & NotifyTransactional_target;
95
+ target: NotifyTransactional_target;
96
+ };
84
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';
85
98
  export type Schedule_sendDate_at = {
99
+ $: 'at';
86
100
  at: Date;
87
101
  };
88
102
  export type Schedule_sendDate_after = {
103
+ $: 'after';
89
104
  after: Duration;
90
105
  };
91
106
  export type Schedule_sendDate = Schedule_sendDate_at | Schedule_sendDate_after;
92
107
  export type Schedule = {
93
108
  followUserTimezone: boolean;
94
109
  pastTimezonesBehaviour: Schedule_PastTimezonesBehaviour;
95
- } & Schedule_sendDate;
110
+ sendDate: Schedule_sendDate;
111
+ };
96
112
  export type FrequencyCapping = {
97
113
  days: number;
98
114
  count: number;
@@ -112,28 +128,37 @@ export type Link = {
112
128
  shortener: Link_Shortener;
113
129
  };
114
130
  export type RichMedia_kind_code = {
131
+ $: 'code';
115
132
  code: string;
116
133
  };
117
134
  export type RichMedia_kind_url = {
135
+ $: 'url';
118
136
  url: string;
119
137
  };
120
138
  export type RichMedia_kind = RichMedia_kind_code | RichMedia_kind_url;
121
- export type RichMedia = {} & RichMedia_kind;
139
+ export type RichMedia = {
140
+ kind: RichMedia_kind;
141
+ };
122
142
  export type DeepLink = {
123
143
  code: string;
124
144
  params: Record<string, string>;
125
145
  };
126
146
  export type OpenAction_kind_richMedia = {
147
+ $: 'richMedia';
127
148
  richMedia: RichMedia;
128
149
  };
129
150
  export type OpenAction_kind_deepLink = {
151
+ $: 'deepLink';
130
152
  deepLink: DeepLink;
131
153
  };
132
154
  export type OpenAction_kind_link = {
155
+ $: 'link';
133
156
  link: Link;
134
157
  };
135
158
  export type OpenAction_kind = OpenAction_kind_richMedia | OpenAction_kind_deepLink | OpenAction_kind_link;
136
- export type OpenAction = {} & OpenAction_kind;
159
+ export type OpenAction = {
160
+ kind: OpenAction_kind;
161
+ };
137
162
  export type Inbox = {
138
163
  imageUrl: string;
139
164
  expirationDate: Date;
@@ -318,9 +343,11 @@ export type Content_PlatformPropertiesWindows_Template = {
318
343
  };
319
344
  export type Content_PlatformPropertiesWindows_Type = 'TILE' | 'TOAST' | 'BADGE';
320
345
  export type Content_PlatformPropertiesWindows_content_raw = {
346
+ $: 'raw';
321
347
  raw: Content_PlatformPropertiesWindows_Raw;
322
348
  };
323
349
  export type Content_PlatformPropertiesWindows_content_template = {
350
+ $: 'template';
324
351
  template: Content_PlatformPropertiesWindows_Template;
325
352
  };
326
353
  export type Content_PlatformPropertiesWindows_content = Content_PlatformPropertiesWindows_content_raw | Content_PlatformPropertiesWindows_content_template;
@@ -331,7 +358,8 @@ export type Content_PlatformPropertiesWindows = {
331
358
  timeToLive: Duration;
332
359
  openAction: OpenAction;
333
360
  customData: object;
334
- } & Content_PlatformPropertiesWindows_content;
361
+ content: Content_PlatformPropertiesWindows_content;
362
+ };
335
363
  export type Content_PlatformPropertiesEmail = {};
336
364
  export type Content_PlatformPropertiesSMS = {};
337
365
  export type Content = {
@@ -352,9 +380,11 @@ export type LocalizedContent = {
352
380
  localizedContent: Record<string, Content>;
353
381
  };
354
382
  export type Payload_kind_content = {
383
+ $: 'content';
355
384
  content: LocalizedContent;
356
385
  };
357
386
  export type Payload_kind_silent = {
387
+ $: 'silent';
358
388
  silent: boolean;
359
389
  };
360
390
  export type Payload_kind = Payload_kind_content | Payload_kind_silent;
@@ -362,4 +392,5 @@ export type Payload = {
362
392
  preset: string;
363
393
  metaData: object;
364
394
  dynamicContentPlaceholders: Record<string, string>;
365
- } & Payload_kind;
395
+ kind: Payload_kind;
396
+ };