@gofynd/fdk-client-javascript 1.4.7 → 1.4.8-beta.2
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/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
- package/sdk/application/Cart/CartApplicationClient.js +118 -13
- package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
- package/sdk/application/Cart/CartApplicationModel.js +98 -26
- package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
- package/sdk/application/Cart/CartApplicationValidator.js +26 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +4 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +4 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
- package/sdk/application/Content/ContentApplicationClient.js +5 -3
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -18
- package/sdk/application/Content/ContentApplicationModel.js +4 -20
- package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
- package/sdk/application/Content/ContentApplicationValidator.js +4 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
- package/sdk/application/Lead/LeadApplicationClient.js +0 -167
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
- package/sdk/application/Lead/LeadApplicationModel.js +0 -126
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
- package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +2 -0
- package/sdk/application/Order/OrderApplicationModel.js +2 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +9 -2
- package/sdk/application/Payment/PaymentApplicationModel.js +5 -2
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
- package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
- package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +4 -4
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
- package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
- package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
- package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +28 -5
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +198 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +81 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +214 -40
- package/sdk/platform/Cart/CartPlatformModel.js +164 -24
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +18 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +4 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +28 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +12 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +6 -4
- package/sdk/platform/Content/ContentPlatformModel.js +6 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +350 -127
- package/sdk/platform/Finance/FinancePlatformModel.js +378 -108
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
- package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
- package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
- package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
- package/sdk/platform/Order/OrderPlatformModel.d.ts +108 -15
- package/sdk/platform/Order/OrderPlatformModel.js +47 -14
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +5 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
- package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +0 -40
- package/sdk/platform/Webhook/WebhookPlatformClient.js +0 -307
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +112 -164
- package/sdk/platform/Webhook/WebhookPlatformModel.js +118 -169
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +9 -35
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +8 -46
- package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
- package/sdk/public/Billing/BillingPublicClient.js +156 -3
- package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
- package/sdk/public/Billing/BillingPublicModel.js +317 -18
- package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
- package/sdk/public/Billing/BillingPublicValidator.js +22 -3
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +22 -22
- package/sdk/public/Webhook/WebhookPublicModel.js +22 -22
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export = WebhookPlatformModel;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef Error
|
|
4
|
-
* @property {string} [error] - Error message describing the reason for the failure.
|
|
5
|
-
*/
|
|
6
2
|
/**
|
|
7
3
|
* @typedef Event
|
|
8
4
|
* @property {string} [event_name]
|
|
@@ -10,55 +6,14 @@ export = WebhookPlatformModel;
|
|
|
10
6
|
* @property {string} [event_category]
|
|
11
7
|
* @property {string} [version]
|
|
12
8
|
*/
|
|
13
|
-
/**
|
|
14
|
-
* @typedef RetryEventRequest
|
|
15
|
-
* @property {string} [search_text]
|
|
16
|
-
* @property {string} [end_date]
|
|
17
|
-
* @property {string} [start_date]
|
|
18
|
-
* @property {number[]} [subscriber_ids]
|
|
19
|
-
* @property {Event[]} [event]
|
|
20
|
-
* @property {string} [status]
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* @typedef Item
|
|
24
|
-
* @property {string} [status]
|
|
25
|
-
* @property {number} [count]
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* @typedef RetryCountResponse
|
|
29
|
-
* @property {Item[]} [items]
|
|
30
|
-
*/
|
|
31
|
-
/**
|
|
32
|
-
* @typedef RetrySuccessResponse
|
|
33
|
-
* @property {boolean} [success]
|
|
34
|
-
* @property {string} [message]
|
|
35
|
-
*/
|
|
36
|
-
/**
|
|
37
|
-
* @typedef Err
|
|
38
|
-
* @property {string} [msg]
|
|
39
|
-
* @property {string} [param]
|
|
40
|
-
* @property {string} [location]
|
|
41
|
-
*/
|
|
42
|
-
/**
|
|
43
|
-
* @typedef RetryFailureResponse
|
|
44
|
-
* @property {Err[]} [err]
|
|
45
|
-
*/
|
|
46
|
-
/**
|
|
47
|
-
* @typedef RetryStatusResponse
|
|
48
|
-
* @property {number} [total_event] - The total number of events that require retry.
|
|
49
|
-
* @property {number} [success_count] - The count of successfully retried events.
|
|
50
|
-
* @property {number} [failure_count] - The count of failed retry attempts.
|
|
51
|
-
* @property {string} [status] - The overall status of the retry process (e.g.,
|
|
52
|
-
* "completed").
|
|
53
|
-
*/
|
|
54
9
|
/**
|
|
55
10
|
* @typedef EventProcessRequest
|
|
56
|
-
* @property {string}
|
|
57
|
-
* @property {string}
|
|
58
|
-
* @property {string}
|
|
59
|
-
* @property {number[]}
|
|
60
|
-
* @property {string}
|
|
61
|
-
* @property {Event[]}
|
|
11
|
+
* @property {string} search_text
|
|
12
|
+
* @property {string} end_date
|
|
13
|
+
* @property {string} start_date
|
|
14
|
+
* @property {number[]} subscriber_ids
|
|
15
|
+
* @property {string} status
|
|
16
|
+
* @property {Event[]} event
|
|
62
17
|
*/
|
|
63
18
|
/**
|
|
64
19
|
* @typedef DownloadReportResponse
|
|
@@ -96,7 +51,7 @@ export = WebhookPlatformModel;
|
|
|
96
51
|
*/
|
|
97
52
|
/**
|
|
98
53
|
* @typedef PingWebhook
|
|
99
|
-
* @property {string}
|
|
54
|
+
* @property {string} webhook_url - The URL of the subscriber's webhook to ping.
|
|
100
55
|
* @property {Object} [auth_meta] - Authentication metadata (if required by the
|
|
101
56
|
* subscriber).
|
|
102
57
|
* @property {Object} [custom_headers] - Custom headers to include in the ping request.
|
|
@@ -136,7 +91,7 @@ export = WebhookPlatformModel;
|
|
|
136
91
|
*/
|
|
137
92
|
/**
|
|
138
93
|
* @typedef ReportFiltersPayload
|
|
139
|
-
* @property {number[]}
|
|
94
|
+
* @property {number[]} subscriber_ids - An array of subscriber IDs for
|
|
140
95
|
* filtering filters (optional).
|
|
141
96
|
*/
|
|
142
97
|
/**
|
|
@@ -146,7 +101,7 @@ export = WebhookPlatformModel;
|
|
|
146
101
|
*/
|
|
147
102
|
/**
|
|
148
103
|
* @typedef HistoryPayload
|
|
149
|
-
* @property {string}
|
|
104
|
+
* @property {string} type - The type of history report (e.g., "platform").
|
|
150
105
|
* @property {number} [page_no] - The page number of the history report.
|
|
151
106
|
* @property {number} [page_size] - The number of records per page.
|
|
152
107
|
*/
|
|
@@ -205,6 +160,12 @@ export = WebhookPlatformModel;
|
|
|
205
160
|
*/
|
|
206
161
|
/**
|
|
207
162
|
* @typedef Association
|
|
163
|
+
* @property {string[]} [application_id]
|
|
164
|
+
* @property {string} [extension_id]
|
|
165
|
+
* @property {string} [criteria]
|
|
166
|
+
*/
|
|
167
|
+
/**
|
|
168
|
+
* @typedef AssociationResp
|
|
208
169
|
* @property {number} [company_id]
|
|
209
170
|
* @property {string[]} [application_id]
|
|
210
171
|
* @property {string} [extension_id]
|
|
@@ -222,7 +183,7 @@ export = WebhookPlatformModel;
|
|
|
222
183
|
* @property {string} [name]
|
|
223
184
|
* @property {string} [provider]
|
|
224
185
|
* @property {string} [webhook_url]
|
|
225
|
-
* @property {
|
|
186
|
+
* @property {AssociationResp} [association]
|
|
226
187
|
* @property {Object} [custom_headers]
|
|
227
188
|
* @property {SubscriberStatus} [status]
|
|
228
189
|
* @property {string} [email_id]
|
|
@@ -238,29 +199,52 @@ export = WebhookPlatformModel;
|
|
|
238
199
|
* @property {string} [topic]
|
|
239
200
|
*/
|
|
240
201
|
/**
|
|
241
|
-
* @typedef
|
|
242
|
-
* @property {number} [id]
|
|
202
|
+
* @typedef SubscriberConfigPostRequestV2
|
|
243
203
|
* @property {string} [name]
|
|
244
204
|
* @property {string} [webhook_url]
|
|
245
|
-
* @property {string}
|
|
246
|
-
* @property {Association}
|
|
205
|
+
* @property {string} provider
|
|
206
|
+
* @property {Association} association
|
|
247
207
|
* @property {Object} [custom_headers]
|
|
248
|
-
* @property {SubscriberStatus}
|
|
249
|
-
* @property {string}
|
|
208
|
+
* @property {SubscriberStatus} status
|
|
209
|
+
* @property {string} email_id
|
|
250
210
|
* @property {AuthMeta} [auth_meta]
|
|
251
211
|
* @property {Events[]} [events]
|
|
252
212
|
*/
|
|
253
213
|
/**
|
|
254
|
-
* @typedef
|
|
255
|
-
* @property {number}
|
|
214
|
+
* @typedef SubscriberConfigUpdateRequestV2
|
|
215
|
+
* @property {number} id
|
|
256
216
|
* @property {string} [name]
|
|
257
217
|
* @property {string} [webhook_url]
|
|
258
|
-
* @property {
|
|
218
|
+
* @property {string} provider
|
|
219
|
+
* @property {Association} association
|
|
259
220
|
* @property {Object} [custom_headers]
|
|
260
|
-
* @property {SubscriberStatus}
|
|
261
|
-
* @property {string}
|
|
221
|
+
* @property {SubscriberStatus} status
|
|
222
|
+
* @property {string} email_id
|
|
262
223
|
* @property {AuthMeta} [auth_meta]
|
|
263
|
-
* @property {
|
|
224
|
+
* @property {Events[]} [events]
|
|
225
|
+
*/
|
|
226
|
+
/**
|
|
227
|
+
* @typedef SubscriberConfigPost
|
|
228
|
+
* @property {string} [name]
|
|
229
|
+
* @property {string} webhook_url
|
|
230
|
+
* @property {Association} association
|
|
231
|
+
* @property {Object} [custom_headers]
|
|
232
|
+
* @property {SubscriberStatus} status
|
|
233
|
+
* @property {string} email_id
|
|
234
|
+
* @property {AuthMeta} [auth_meta]
|
|
235
|
+
* @property {number[]} event_id
|
|
236
|
+
*/
|
|
237
|
+
/**
|
|
238
|
+
* @typedef SubscriberConfigUpdate
|
|
239
|
+
* @property {number} id
|
|
240
|
+
* @property {string} [name]
|
|
241
|
+
* @property {string} webhook_url
|
|
242
|
+
* @property {Association} association
|
|
243
|
+
* @property {Object} [custom_headers]
|
|
244
|
+
* @property {SubscriberStatus} status
|
|
245
|
+
* @property {string} email_id
|
|
246
|
+
* @property {AuthMeta} [auth_meta]
|
|
247
|
+
* @property {number[]} event_id
|
|
264
248
|
*/
|
|
265
249
|
/**
|
|
266
250
|
* @typedef SubscriberConfigResponse
|
|
@@ -269,7 +253,7 @@ export = WebhookPlatformModel;
|
|
|
269
253
|
* @property {string} [name]
|
|
270
254
|
* @property {string} [webhook_url]
|
|
271
255
|
* @property {string} [provider]
|
|
272
|
-
* @property {
|
|
256
|
+
* @property {AssociationResp} [association]
|
|
273
257
|
* @property {Object} [custom_headers]
|
|
274
258
|
* @property {SubscriberStatus} [status]
|
|
275
259
|
* @property {string} [email_id]
|
|
@@ -288,16 +272,8 @@ export = WebhookPlatformModel;
|
|
|
288
272
|
declare class WebhookPlatformModel {
|
|
289
273
|
}
|
|
290
274
|
declare namespace WebhookPlatformModel {
|
|
291
|
-
export {
|
|
275
|
+
export { Event, EventProcessRequest, DownloadReportResponse, EventProcessReports, EventProcessReportObject, Page, PingWebhook, PingWebhookResponse, SubscriberEventMapping, EventConfig, EventConfigResponse, ReportFiltersPayload, ReportFilterResponse, HistoryPayload, HistoryFilters, Url, CdnObject, UploadServiceObject, HistoryAssociation, HistoryItems, HistoryResponse, CancelResponse, Association, AssociationResp, AuthMeta, SubscriberResponse, Events, SubscriberConfigPostRequestV2, SubscriberConfigUpdateRequestV2, SubscriberConfigPost, SubscriberConfigUpdate, SubscriberConfigResponse, SubscriberConfigList, SubscriberStatus };
|
|
292
276
|
}
|
|
293
|
-
/** @returns {Error} */
|
|
294
|
-
declare function Error(): Error;
|
|
295
|
-
type Error = {
|
|
296
|
-
/**
|
|
297
|
-
* - Error message describing the reason for the failure.
|
|
298
|
-
*/
|
|
299
|
-
error?: string;
|
|
300
|
-
};
|
|
301
277
|
/** @returns {Event} */
|
|
302
278
|
declare function Event(): Event;
|
|
303
279
|
type Event = {
|
|
@@ -306,75 +282,15 @@ type Event = {
|
|
|
306
282
|
event_category?: string;
|
|
307
283
|
version?: string;
|
|
308
284
|
};
|
|
309
|
-
/** @returns {RetryEventRequest} */
|
|
310
|
-
declare function RetryEventRequest(): RetryEventRequest;
|
|
311
|
-
type RetryEventRequest = {
|
|
312
|
-
search_text?: string;
|
|
313
|
-
end_date?: string;
|
|
314
|
-
start_date?: string;
|
|
315
|
-
subscriber_ids?: number[];
|
|
316
|
-
event?: Event[];
|
|
317
|
-
status?: string;
|
|
318
|
-
};
|
|
319
|
-
/** @returns {Item} */
|
|
320
|
-
declare function Item(): Item;
|
|
321
|
-
type Item = {
|
|
322
|
-
status?: string;
|
|
323
|
-
count?: number;
|
|
324
|
-
};
|
|
325
|
-
/** @returns {RetryCountResponse} */
|
|
326
|
-
declare function RetryCountResponse(): RetryCountResponse;
|
|
327
|
-
type RetryCountResponse = {
|
|
328
|
-
items?: Item[];
|
|
329
|
-
};
|
|
330
|
-
/** @returns {RetrySuccessResponse} */
|
|
331
|
-
declare function RetrySuccessResponse(): RetrySuccessResponse;
|
|
332
|
-
type RetrySuccessResponse = {
|
|
333
|
-
success?: boolean;
|
|
334
|
-
message?: string;
|
|
335
|
-
};
|
|
336
|
-
/** @returns {Err} */
|
|
337
|
-
declare function Err(): Err;
|
|
338
|
-
type Err = {
|
|
339
|
-
msg?: string;
|
|
340
|
-
param?: string;
|
|
341
|
-
location?: string;
|
|
342
|
-
};
|
|
343
|
-
/** @returns {RetryFailureResponse} */
|
|
344
|
-
declare function RetryFailureResponse(): RetryFailureResponse;
|
|
345
|
-
type RetryFailureResponse = {
|
|
346
|
-
err?: Err[];
|
|
347
|
-
};
|
|
348
|
-
/** @returns {RetryStatusResponse} */
|
|
349
|
-
declare function RetryStatusResponse(): RetryStatusResponse;
|
|
350
|
-
type RetryStatusResponse = {
|
|
351
|
-
/**
|
|
352
|
-
* - The total number of events that require retry.
|
|
353
|
-
*/
|
|
354
|
-
total_event?: number;
|
|
355
|
-
/**
|
|
356
|
-
* - The count of successfully retried events.
|
|
357
|
-
*/
|
|
358
|
-
success_count?: number;
|
|
359
|
-
/**
|
|
360
|
-
* - The count of failed retry attempts.
|
|
361
|
-
*/
|
|
362
|
-
failure_count?: number;
|
|
363
|
-
/**
|
|
364
|
-
* - The overall status of the retry process (e.g.,
|
|
365
|
-
* "completed").
|
|
366
|
-
*/
|
|
367
|
-
status?: string;
|
|
368
|
-
};
|
|
369
285
|
/** @returns {EventProcessRequest} */
|
|
370
286
|
declare function EventProcessRequest(): EventProcessRequest;
|
|
371
287
|
type EventProcessRequest = {
|
|
372
|
-
search_text
|
|
373
|
-
end_date
|
|
374
|
-
start_date
|
|
375
|
-
subscriber_ids
|
|
376
|
-
status
|
|
377
|
-
event
|
|
288
|
+
search_text: string;
|
|
289
|
+
end_date: string;
|
|
290
|
+
start_date: string;
|
|
291
|
+
subscriber_ids: number[];
|
|
292
|
+
status: string;
|
|
293
|
+
event: Event[];
|
|
378
294
|
};
|
|
379
295
|
/** @returns {DownloadReportResponse} */
|
|
380
296
|
declare function DownloadReportResponse(): DownloadReportResponse;
|
|
@@ -450,7 +366,7 @@ type PingWebhook = {
|
|
|
450
366
|
/**
|
|
451
367
|
* - The URL of the subscriber's webhook to ping.
|
|
452
368
|
*/
|
|
453
|
-
webhook_url
|
|
369
|
+
webhook_url: string;
|
|
454
370
|
/**
|
|
455
371
|
* - Authentication metadata (if required by the
|
|
456
372
|
* subscriber).
|
|
@@ -514,7 +430,7 @@ type ReportFiltersPayload = {
|
|
|
514
430
|
* - An array of subscriber IDs for
|
|
515
431
|
* filtering filters (optional).
|
|
516
432
|
*/
|
|
517
|
-
subscriber_ids
|
|
433
|
+
subscriber_ids: number[];
|
|
518
434
|
};
|
|
519
435
|
/** @returns {ReportFilterResponse} */
|
|
520
436
|
declare function ReportFilterResponse(): ReportFilterResponse;
|
|
@@ -531,7 +447,7 @@ type HistoryPayload = {
|
|
|
531
447
|
/**
|
|
532
448
|
* - The type of history report (e.g., "platform").
|
|
533
449
|
*/
|
|
534
|
-
type
|
|
450
|
+
type: string;
|
|
535
451
|
/**
|
|
536
452
|
* - The page number of the history report.
|
|
537
453
|
*/
|
|
@@ -647,6 +563,13 @@ type CancelResponse = {
|
|
|
647
563
|
/** @returns {Association} */
|
|
648
564
|
declare function Association(): Association;
|
|
649
565
|
type Association = {
|
|
566
|
+
application_id?: string[];
|
|
567
|
+
extension_id?: string;
|
|
568
|
+
criteria?: string;
|
|
569
|
+
};
|
|
570
|
+
/** @returns {AssociationResp} */
|
|
571
|
+
declare function AssociationResp(): AssociationResp;
|
|
572
|
+
type AssociationResp = {
|
|
650
573
|
company_id?: number;
|
|
651
574
|
application_id?: string[];
|
|
652
575
|
extension_id?: string;
|
|
@@ -666,7 +589,7 @@ type SubscriberResponse = {
|
|
|
666
589
|
name?: string;
|
|
667
590
|
provider?: string;
|
|
668
591
|
webhook_url?: string;
|
|
669
|
-
association?:
|
|
592
|
+
association?: AssociationResp;
|
|
670
593
|
custom_headers?: any;
|
|
671
594
|
status?: SubscriberStatus;
|
|
672
595
|
email_id?: string;
|
|
@@ -682,32 +605,57 @@ type Events = {
|
|
|
682
605
|
slug?: string;
|
|
683
606
|
topic?: string;
|
|
684
607
|
};
|
|
685
|
-
/** @returns {
|
|
686
|
-
declare function
|
|
687
|
-
type
|
|
688
|
-
id?: number;
|
|
608
|
+
/** @returns {SubscriberConfigPostRequestV2} */
|
|
609
|
+
declare function SubscriberConfigPostRequestV2(): SubscriberConfigPostRequestV2;
|
|
610
|
+
type SubscriberConfigPostRequestV2 = {
|
|
689
611
|
name?: string;
|
|
690
612
|
webhook_url?: string;
|
|
691
|
-
provider
|
|
692
|
-
association
|
|
613
|
+
provider: string;
|
|
614
|
+
association: Association;
|
|
693
615
|
custom_headers?: any;
|
|
694
|
-
status
|
|
695
|
-
email_id
|
|
616
|
+
status: SubscriberStatus;
|
|
617
|
+
email_id: string;
|
|
696
618
|
auth_meta?: AuthMeta;
|
|
697
619
|
events?: Events[];
|
|
698
620
|
};
|
|
699
|
-
/** @returns {
|
|
700
|
-
declare function
|
|
701
|
-
type
|
|
702
|
-
id
|
|
621
|
+
/** @returns {SubscriberConfigUpdateRequestV2} */
|
|
622
|
+
declare function SubscriberConfigUpdateRequestV2(): SubscriberConfigUpdateRequestV2;
|
|
623
|
+
type SubscriberConfigUpdateRequestV2 = {
|
|
624
|
+
id: number;
|
|
703
625
|
name?: string;
|
|
704
626
|
webhook_url?: string;
|
|
705
|
-
|
|
627
|
+
provider: string;
|
|
628
|
+
association: Association;
|
|
706
629
|
custom_headers?: any;
|
|
707
|
-
status
|
|
708
|
-
email_id
|
|
630
|
+
status: SubscriberStatus;
|
|
631
|
+
email_id: string;
|
|
709
632
|
auth_meta?: AuthMeta;
|
|
710
|
-
|
|
633
|
+
events?: Events[];
|
|
634
|
+
};
|
|
635
|
+
/** @returns {SubscriberConfigPost} */
|
|
636
|
+
declare function SubscriberConfigPost(): SubscriberConfigPost;
|
|
637
|
+
type SubscriberConfigPost = {
|
|
638
|
+
name?: string;
|
|
639
|
+
webhook_url: string;
|
|
640
|
+
association: Association;
|
|
641
|
+
custom_headers?: any;
|
|
642
|
+
status: SubscriberStatus;
|
|
643
|
+
email_id: string;
|
|
644
|
+
auth_meta?: AuthMeta;
|
|
645
|
+
event_id: number[];
|
|
646
|
+
};
|
|
647
|
+
/** @returns {SubscriberConfigUpdate} */
|
|
648
|
+
declare function SubscriberConfigUpdate(): SubscriberConfigUpdate;
|
|
649
|
+
type SubscriberConfigUpdate = {
|
|
650
|
+
id: number;
|
|
651
|
+
name?: string;
|
|
652
|
+
webhook_url: string;
|
|
653
|
+
association: Association;
|
|
654
|
+
custom_headers?: any;
|
|
655
|
+
status: SubscriberStatus;
|
|
656
|
+
email_id: string;
|
|
657
|
+
auth_meta?: AuthMeta;
|
|
658
|
+
event_id: number[];
|
|
711
659
|
};
|
|
712
660
|
/** @returns {SubscriberConfigResponse} */
|
|
713
661
|
declare function SubscriberConfigResponse(): SubscriberConfigResponse;
|
|
@@ -717,7 +665,7 @@ type SubscriberConfigResponse = {
|
|
|
717
665
|
name?: string;
|
|
718
666
|
webhook_url?: string;
|
|
719
667
|
provider?: string;
|
|
720
|
-
association?:
|
|
668
|
+
association?: AssociationResp;
|
|
721
669
|
custom_headers?: any;
|
|
722
670
|
status?: SubscriberStatus;
|
|
723
671
|
email_id?: string;
|