@pushwoosh/rpc-v2-http-api-data 0.1.883 → 0.1.885

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.
Files changed (45) hide show
  1. package/account_groups.d.ts +9 -0
  2. package/account_invites.d.ts +2 -0
  3. package/account_overview.d.ts +21 -0
  4. package/account_users.d.ts +3 -0
  5. package/accounts.d.ts +29 -0
  6. package/accounts_get_auth_info.d.ts +4 -0
  7. package/api_tokens.d.ts +1 -0
  8. package/applications.d.ts +7 -0
  9. package/applications_alerts.d.ts +7 -1
  10. package/applications_groups.d.ts +2 -0
  11. package/applications_statistics.d.ts +28 -0
  12. package/categories.d.ts +1 -0
  13. package/cloud_pages.d.ts +2 -0
  14. package/data.js +330 -1314
  15. package/deeplinks.d.ts +3 -0
  16. package/devices.d.ts +5 -0
  17. package/email_categories.d.ts +3 -0
  18. package/emails_configurations.d.ts +1 -0
  19. package/events.d.ts +3 -0
  20. package/filters.d.ts +28 -0
  21. package/inapp_messages.d.ts +13 -0
  22. package/integrations.d.ts +38 -0
  23. package/ios_categories.d.ts +1 -0
  24. package/kakao_presets.d.ts +2 -0
  25. package/line_presets.d.ts +5 -0
  26. package/messages.d.ts +15 -2
  27. package/package.json +1 -1
  28. package/presets.d.ts +71 -0
  29. package/pushwoosh_accounts_alerts_v1.d.ts +2 -0
  30. package/pushwoosh_channels_messagingApi_v2.d.ts +51 -2
  31. package/pushwoosh_export_messages_v2.d.ts +17 -2
  32. package/pushwoosh_objects_filters_v1.d.ts +70 -11
  33. package/pushwoosh_objects_restrictionValues_v1.d.ts +86 -427
  34. package/pushwoosh_rpc_errors_v3.d.ts +20 -0
  35. package/pushwoosh_rpc_popup_forms_contents_v3.d.ts +48 -0
  36. package/pushwoosh_rpc_segments_v3.d.ts +54 -0
  37. package/referral_partners.d.ts +1 -0
  38. package/rich_medias.d.ts +6 -0
  39. package/sms_presets.d.ts +5 -0
  40. package/statistics_dashboards_widgets.d.ts +291 -3
  41. package/tags.d.ts +3 -0
  42. package/test_devices.d.ts +37 -0
  43. package/types.d.ts +6 -0
  44. package/whatsapp.d.ts +10 -0
  45. package/whatsapp_presets.d.ts +3 -0
@@ -2,16 +2,36 @@ export type I18NOptions = {
2
2
  args: Record<string, string>;
3
3
  };
4
4
  export type BadRequest_FieldViolation = {
5
+ /**
6
+ * A path that leads to a field in the request body. The value will be a
7
+ * sequence of dot-separated identifiers that identify a protocol buffer
8
+ * field.
9
+ */
5
10
  field: string;
11
+ /** A description of the violation. This will be a concise human-readable summary */
6
12
  description: string;
13
+ /**
14
+ * A machine-readable code that identifies the error. This will be a constant value.
15
+ * Each service defined its own set of error codes.
16
+ */
7
17
  reason: string;
18
+ /**
19
+ * Optional arguments for error localization.
20
+ * For each reason, the set of args is fixed and cannot be changed after release.
21
+ */
8
22
  args: Record<string, string>;
9
23
  };
10
24
  export type BadRequest = {
25
+ /** The list of field violations that caused the error. */
11
26
  fieldViolations: BadRequest_FieldViolation[];
12
27
  };
13
28
  export type FailedPrecondition = {
29
+ /**
30
+ * A machine-readable code that identifies the error. This will be a constant value.
31
+ * Each service defined its own set of error codes.
32
+ */
14
33
  Type: string;
34
+ /** A human-readable description of the error. This will be a concise summary of the error. */
15
35
  Description: string;
16
36
  };
17
37
  export type Common_FailedPreconditions = {
@@ -91,10 +91,15 @@ export type PopupFormsContentsService_Delete = RpcMethodV3<DeleteRequest, Delete
91
91
  failedPreconditions?: pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
92
92
  }>;
93
93
  export interface PopupFormsContentsService {
94
+ /** List Popup Forms Contents for given application and filters. */
94
95
  List: PopupFormsContentsService_List;
96
+ /** Get Popup Form Content by code. */
95
97
  Get: PopupFormsContentsService_Get;
98
+ /** Create new Popup Form Content. Popup Form Content code will be generated by server and returned in response. */
96
99
  Create: PopupFormsContentsService_Create;
100
+ /** Update Popup Form Content. */
97
101
  Update: PopupFormsContentsService_Update;
102
+ /** Delete Popup Form Content. */
98
103
  Delete: PopupFormsContentsService_Delete;
99
104
  }
100
105
  export type PopupFormsContentsService_Errors = {
@@ -116,60 +121,103 @@ export type PopupFormsContentsService_Errors = {
116
121
  };
117
122
  };
118
123
  export type PopupFormContent = {
124
+ /** Popup Form Content code. */
119
125
  code: string;
126
+ /**
127
+ * Name of Popup Form Content.
128
+ * Must be unique within the application.
129
+ */
120
130
  name: string;
131
+ /**
132
+ * Json of Popup Form Content.
133
+ * This string is generated and used only on the frontend side.
134
+ */
121
135
  json: string;
136
+ /**
137
+ * Html of Popup Form Content.
138
+ * This string is generated and used only on the frontend side.
139
+ */
122
140
  html?: string;
141
+ /** Popup Form Content created timestamp. */
123
142
  created: Date;
143
+ /** Popup Form Content updated timestamp. */
124
144
  updated: Date;
125
145
  };
126
146
  export type ListRequest_OrderBy = 'UPDATED' | 'NAME';
127
147
  export type ListRequest_OrderDirection = 'DESC' | 'ASC';
128
148
  export type ListRequest = {
149
+ /** Application code to filter by. */
129
150
  application?: string;
151
+ /** Search query to filter by name or code. */
130
152
  search?: string;
153
+ /** Field to order results by. */
131
154
  orderBy?: ListRequest_OrderBy;
155
+ /** Order direction. */
132
156
  orderDirection?: ListRequest_OrderDirection;
157
+ /** Page number. Pagination start from 0 */
133
158
  page?: number;
159
+ /** Number of items per page. */
134
160
  perPage?: number;
135
161
  };
136
162
  export type ListResponse_ListItem = {
163
+ /** Similar to the PopupFormContent. */
137
164
  code: string;
165
+ /** Similar to the PopupFormContent. */
138
166
  name: string;
167
+ /** Similar to the PopupFormContent. */
139
168
  json: string;
169
+ /** Similar to the PopupFormContent. */
140
170
  html?: string;
171
+ /** Similar to the PopupFormContent. */
141
172
  updated: Date;
142
173
  };
143
174
  export type ListResponse = {
175
+ /** List of Popup Form Contents for the current page. */
144
176
  items: ListResponse_ListItem[];
177
+ /** Current page number. Pagination start from 0 */
145
178
  page: number;
179
+ /** Number of items per page. */
146
180
  perPage: number;
181
+ /** Total number of pages. */
147
182
  totalPages: number;
183
+ /** Total number of items across all pages. */
148
184
  total: number;
149
185
  };
150
186
  export type GetRequest = {
187
+ /** Similar to the PopupFormContent. */
151
188
  code?: string;
152
189
  };
153
190
  export type GetResponse = {
191
+ /** Popup Form Content. */
154
192
  item: PopupFormContent;
155
193
  };
156
194
  export type CreateRequest = {
195
+ /** Application code to which Popup Form Content belongs. */
157
196
  application?: string;
197
+ /** Similar to the PopupFormContent. */
158
198
  name?: string;
199
+ /** Similar to the PopupFormContent. */
159
200
  json?: string;
201
+ /** Similar to the PopupFormContent. */
160
202
  html?: string;
161
203
  };
162
204
  export type CreateResponse = {
205
+ /** Similar to the PopupFormContent. */
163
206
  code: string;
164
207
  };
165
208
  export type UpdateRequest = {
209
+ /** Similar to the PopupFormContent. */
166
210
  code?: string;
211
+ /** Similar to the PopupFormContent. */
167
212
  name?: string;
213
+ /** Similar to the PopupFormContent. */
168
214
  json?: string;
215
+ /** Similar to the PopupFormContent. */
169
216
  html?: string;
170
217
  };
171
218
  export type UpdateResponse = {};
172
219
  export type DeleteRequest = {
220
+ /** Similar to the PopupFormContent. */
173
221
  code?: string;
174
222
  };
175
223
  export type DeleteResponse = {};
@@ -134,10 +134,15 @@ export type SegmentsService_Delete = RpcMethodV3<DeleteRequest, DeleteResponse,
134
134
  failedPreconditions?: SegmentsService_Delete_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
135
135
  }>;
136
136
  export interface SegmentsService {
137
+ /** List segments for given application. */
137
138
  List: SegmentsService_List;
139
+ /** Get segment by code. */
138
140
  Get: SegmentsService_Get;
141
+ /** Create new segment. Segment code will be generated by server and returned in response. */
139
142
  Create: SegmentsService_Create;
143
+ /** Update segment. */
140
144
  Update: SegmentsService_Update;
145
+ /** Delete segment. */
141
146
  Delete: SegmentsService_Delete;
142
147
  }
143
148
  export type SegmentsService_Errors = {
@@ -158,6 +163,11 @@ export type SegmentsService_Errors = {
158
163
  failedPreconditions: SegmentsService_Delete_FailedPreconditions | pushwoosh_rpc_errors_v3_Common_FailedPreconditions;
159
164
  };
160
165
  };
166
+ /**
167
+ * DeviceLoadPolicy defines which devices will be loaded into segment during segmentation process.
168
+ * FILTER - only devices matching the filter. This is the default.
169
+ * ALL - all user's devices.
170
+ */
161
171
  export type DeviceLoadPolicy = 'FILTER' | 'ALL';
162
172
  export type ListRequest = {
163
173
  application?: string;
@@ -166,14 +176,23 @@ export type ListResponse = {};
166
176
  export type GetRequest = {
167
177
  segment?: string;
168
178
  };
179
+ /** Get segment response. Segment conditions are returned in both seglang and filter expression formats. */
169
180
  export type GetResponse = {
181
+ /** Owning application code. */
170
182
  application: string;
183
+ /** Segment code. */
171
184
  code: string;
185
+ /** Segment name. */
172
186
  name: string;
187
+ /** Segment conditions in seglang format. */
173
188
  seglang: string;
189
+ /** Segment conditions in filter expression format. */
174
190
  filterExpression: pushwoosh_objects_filters_v1_FilterExpression;
191
+ /** Device load policy. See DeviceLoadPolicy description for details. */
175
192
  deviceLoadPolicy: DeviceLoadPolicy;
193
+ /** Whether segment is high-speed. See CreateRequest for details. */
176
194
  highSpeed: boolean;
195
+ /** Whether high-speed segment is ready to use. See CreateRequest for details. */
177
196
  highSpeedReady: boolean;
178
197
  highSpeedPreparedAt: Date;
179
198
  createdAt: Date;
@@ -189,24 +208,57 @@ export type CreateRequest_conditions_filterExpression = {
189
208
  };
190
209
  export type CreateRequest_conditions = CreateRequest_conditions_seglang | CreateRequest_conditions_filterExpression;
191
210
  export type CreateRequest = {
211
+ /** Application code to which segment belongs to. */
192
212
  application?: string;
213
+ /**
214
+ * Segment name. Must be unique within account.
215
+ * todo: make uniqueness per application, not account when all filters are migrated to applications.
216
+ */
193
217
  name?: string;
218
+ /** See DeviceLoadPolicy description for details. If not set, it defaults to FILTER. */
194
219
  deviceLoadPolicy?: DeviceLoadPolicy;
220
+ /**
221
+ * Whether segment will use high-speed infrastructure. High-speed segment will not return real-time data, but
222
+ * they allow to omit segmentation process during sending and thus significantly increase sending speed.
223
+ * High-speed segments are updated in background periodically. Typically every 15 minutes.
224
+ * If high-speed segment is not updated in 3 hours, it becomes invalid until next successful update.
225
+ * After creation high-speed segment will be unusable until the initial segmentation process is completed,
226
+ * so it's recommended to create high-speed segments in advance before they are actually needed.
227
+ * You can check whether the segment is ready by calling GetSegment and checking high_speed_ready flag.
228
+ * Once segment is created with high-speed option, it cannot be changed.
229
+ */
195
230
  highSpeed?: boolean;
231
+ /**
232
+ * Segment expiration date.
233
+ * If set, segment will be automatically deleted after given date.
234
+ * Deletion process is performed in background and may take up to 1 hour after expiration date.
235
+ * Expiration time is in UTC timezone and cannot be changed after creation.
236
+ */
196
237
  expireAt?: Date;
197
238
  conditions: CreateRequest_conditions;
198
239
  };
199
240
  export type CreateResponse = {
241
+ /** Owning application code. */
200
242
  application: string;
243
+ /** Segment code. */
201
244
  code: string;
245
+ /** Segment name. */
202
246
  name: string;
247
+ /** Segment conditions in seglang format. */
203
248
  seglang: string;
249
+ /** Segment conditions in filter expression format. */
204
250
  filterExpression: pushwoosh_objects_filters_v1_FilterExpression;
251
+ /** Device load policy. See DeviceLoadPolicy description for details. */
205
252
  deviceLoadPolicy: DeviceLoadPolicy;
253
+ /** Whether segment is high-speed. See CreateRequest for details. */
206
254
  highSpeed: boolean;
255
+ /** Whether high-speed segment is ready to use. See CreateRequest for details. */
207
256
  highSpeedReady: boolean;
257
+ /** Last time when high-speed segment was successfully updated and is ready to use. */
208
258
  highSpeedPreparedAt: Date;
259
+ /** Segment creation time. */
209
260
  createdAt: Date;
261
+ /** Segment expiration time. */
210
262
  expireAt: Date;
211
263
  };
212
264
  export type UpdateRequest_conditions_seglang = {
@@ -219,7 +271,9 @@ export type UpdateRequest_conditions_filterExpression = {
219
271
  };
220
272
  export type UpdateRequest_conditions = UpdateRequest_conditions_seglang | UpdateRequest_conditions_filterExpression;
221
273
  export type UpdateRequest = {
274
+ /** Segment code. */
222
275
  segment?: string;
276
+ /** New segment name. If set, it must not be empty string and must be unique within account. */
223
277
  name?: string;
224
278
  conditions: UpdateRequest_conditions;
225
279
  };
@@ -31,6 +31,7 @@ export type GetWithdrawalsHistoryResponse_Status = 'UNKNOWN' | 'CREATED' | 'IN_P
31
31
  export type GetWithdrawalsHistoryResponse_Withdrawal = {
32
32
  date: Date;
33
33
  status: GetWithdrawalsHistoryResponse_Status;
34
+ /** create withdrawal structure */
34
35
  withdrawalInfo: string;
35
36
  amount: number;
36
37
  };
package/rich_medias.d.ts CHANGED
@@ -72,6 +72,7 @@ export type ListRequest = {
72
72
  viewType?: ListRequest_ListView;
73
73
  withMetrics?: boolean;
74
74
  withContent?: boolean;
75
+ /** in ['category'] */
75
76
  searchByCategory?: string[];
76
77
  codes?: string[];
77
78
  orderBy?: ListRequest_OrderBy;
@@ -89,6 +90,7 @@ export type ListResponse = {
89
90
  total: number;
90
91
  };
91
92
  export type GetDetailedStatisticsRequest = {
93
+ /** rich media code */
92
94
  code?: string;
93
95
  application?: string;
94
96
  dateFrom?: Date;
@@ -110,6 +112,7 @@ export type GetDetailedStatisticsResponse = {
110
112
  totals: GetDetailedStatisticsResponse_MetricsWithTimestamp[];
111
113
  };
112
114
  export type GetDetailedActionStatisticsRequest = {
115
+ /** rich media code */
113
116
  code?: string;
114
117
  application?: string;
115
118
  dateFrom?: Date;
@@ -138,6 +141,7 @@ export type GetDetailedActionStatisticsResponse = {
138
141
  totals: Action[];
139
142
  };
140
143
  export type GetSendChannelsRequest = {
144
+ /** rich media code */
141
145
  code?: string;
142
146
  application?: string;
143
147
  dateFrom?: Date;
@@ -164,6 +168,7 @@ export type GetSendChannelsResponse = {
164
168
  items: GetSendChannelsResponse_SendChannel[];
165
169
  };
166
170
  export type GetDevicesRequest = {
171
+ /** rich media code */
167
172
  code?: string;
168
173
  application?: string;
169
174
  dateFrom?: Date;
@@ -186,6 +191,7 @@ export type GetDevicesResponse = {
186
191
  items: GetDevicesResponse_Device[];
187
192
  };
188
193
  export type GetEventsRequest = {
194
+ /** rich media code */
189
195
  code?: string;
190
196
  application?: string;
191
197
  dateFrom?: Date;
package/sms_presets.d.ts CHANGED
@@ -19,13 +19,16 @@ export type ListSmsPresetsRequest = {
19
19
  orderDirection?: ListSmsPresetsRequest_OrderDirection;
20
20
  page?: number;
21
21
  perPage?: number;
22
+ /** like %name% */
22
23
  searchByName?: string;
24
+ /** in ['category'] */
23
25
  searchByCategory?: string[];
24
26
  };
25
27
  export type SmsPreset = {
26
28
  name: string;
27
29
  code: string;
28
30
  categories: string[];
31
+ /** content map {"en": "content"...} */
29
32
  localizedContent: Record<string, string>;
30
33
  created: Date;
31
34
  updated: Date;
@@ -46,6 +49,7 @@ export type CreateSmsPresetRequest = {
46
49
  application?: string;
47
50
  name?: string;
48
51
  categories?: string[];
52
+ /** content map {"en": "content"...} */
49
53
  localizedContent?: Record<string, string>;
50
54
  };
51
55
  export type CreateSmsPresetResponse = {
@@ -55,6 +59,7 @@ export type UpdateSmsPresetRequest = {
55
59
  code?: string;
56
60
  name?: string;
57
61
  categories?: string[];
62
+ /** content map {"en": "content"...} */
58
63
  localizedContent?: Record<string, string>;
59
64
  };
60
65
  export type UpdateSmsPresetResponse = {