@gofynd/fdk-client-javascript 1.4.6 → 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 +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- 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 +10 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +10 -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 +7 -18
- package/sdk/application/Content/ContentApplicationModel.js +6 -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 +72 -9
- package/sdk/application/Order/OrderApplicationModel.js +45 -7
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +27 -20
- package/sdk/application/Payment/PaymentApplicationModel.js +23 -20
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
- package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +22 -0
- package/sdk/application/Webhook/WebhookApplicationClient.js +115 -0
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +37 -0
- package/sdk/application/Webhook/WebhookApplicationModel.js +46 -0
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +16 -0
- package/sdk/application/Webhook/WebhookApplicationValidator.js +19 -0
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.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/partner/Webhook/WebhookPartnerClient.d.ts +2 -2
- package/sdk/partner/Webhook/WebhookPartnerClient.js +2 -2
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +23 -19
- package/sdk/partner/Webhook/WebhookPartnerModel.js +19 -22
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +43 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +257 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +39 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +45 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +60 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +57 -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 +36 -3
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +276 -3
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +93 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +60 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +216 -40
- package/sdk/platform/Cart/CartPlatformModel.js +166 -24
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +11 -7
- package/sdk/platform/Catalog/CatalogPlatformClient.js +37 -14
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +122 -17
- package/sdk/platform/Catalog/CatalogPlatformModel.js +141 -15
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -7
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -5
- 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 +8 -4
- package/sdk/platform/Content/ContentPlatformModel.js +8 -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/OrderPlatformClient.d.ts +11 -1
- package/sdk/platform/Order/OrderPlatformClient.js +82 -5
- package/sdk/platform/Order/OrderPlatformModel.d.ts +270 -29
- package/sdk/platform/Order/OrderPlatformModel.js +139 -28
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +58 -17
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -16
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +14 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +7 -2
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -0
- package/sdk/platform/PlatformApplicationClient.js +4 -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 +24 -40
- package/sdk/platform/Webhook/WebhookPlatformClient.js +78 -221
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +168 -167
- package/sdk/platform/Webhook/WebhookPlatformModel.js +180 -178
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +23 -31
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +28 -42
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- 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/WebhookPublicClient.d.ts +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +24 -22
- package/sdk/public/Webhook/WebhookPublicModel.js +24 -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.
|
|
@@ -107,6 +62,14 @@ export = WebhookPlatformModel;
|
|
|
107
62
|
* @property {string} [message] - An optional message related to the ping.
|
|
108
63
|
* @property {number} [code] - The HTTP status code of the ping response (e.g., 200).
|
|
109
64
|
*/
|
|
65
|
+
/**
|
|
66
|
+
* @typedef SubscriberEventMapping
|
|
67
|
+
* @property {number} [id]
|
|
68
|
+
* @property {number} [event_id]
|
|
69
|
+
* @property {number} [subscriber_id]
|
|
70
|
+
* @property {string} [topic]
|
|
71
|
+
* @property {string} [created_on]
|
|
72
|
+
*/
|
|
110
73
|
/**
|
|
111
74
|
* @typedef EventConfig
|
|
112
75
|
* @property {number} [id]
|
|
@@ -115,6 +78,7 @@ export = WebhookPlatformModel;
|
|
|
115
78
|
* @property {string} [event_category]
|
|
116
79
|
* @property {SubscriberEventMapping} [subscriber_event_mapping]
|
|
117
80
|
* @property {Object} [event_schema]
|
|
81
|
+
* @property {string} [group]
|
|
118
82
|
* @property {string} [version]
|
|
119
83
|
* @property {string} [display_name]
|
|
120
84
|
* @property {string} [description]
|
|
@@ -127,7 +91,7 @@ export = WebhookPlatformModel;
|
|
|
127
91
|
*/
|
|
128
92
|
/**
|
|
129
93
|
* @typedef ReportFiltersPayload
|
|
130
|
-
* @property {number[]}
|
|
94
|
+
* @property {number[]} subscriber_ids - An array of subscriber IDs for
|
|
131
95
|
* filtering filters (optional).
|
|
132
96
|
*/
|
|
133
97
|
/**
|
|
@@ -137,7 +101,7 @@ export = WebhookPlatformModel;
|
|
|
137
101
|
*/
|
|
138
102
|
/**
|
|
139
103
|
* @typedef HistoryPayload
|
|
140
|
-
* @property {string}
|
|
104
|
+
* @property {string} type - The type of history report (e.g., "platform").
|
|
141
105
|
* @property {number} [page_no] - The page number of the history report.
|
|
142
106
|
* @property {number} [page_size] - The number of records per page.
|
|
143
107
|
*/
|
|
@@ -150,6 +114,8 @@ export = WebhookPlatformModel;
|
|
|
150
114
|
* @property {string} [start_date] - The start date and time of the history report.
|
|
151
115
|
* @property {number[]} [subscribers] - An array of subscriber IDs associated
|
|
152
116
|
* with the history report.
|
|
117
|
+
* @property {string[]} [webhook_type] - An array of webhook type to identify
|
|
118
|
+
* thetype of subscriber i.e (KAFKA or REST).
|
|
153
119
|
*/
|
|
154
120
|
/**
|
|
155
121
|
* @typedef Url
|
|
@@ -194,6 +160,12 @@ export = WebhookPlatformModel;
|
|
|
194
160
|
*/
|
|
195
161
|
/**
|
|
196
162
|
* @typedef Association
|
|
163
|
+
* @property {string[]} [application_id]
|
|
164
|
+
* @property {string} [extension_id]
|
|
165
|
+
* @property {string} [criteria]
|
|
166
|
+
*/
|
|
167
|
+
/**
|
|
168
|
+
* @typedef AssociationResp
|
|
197
169
|
* @property {number} [company_id]
|
|
198
170
|
* @property {string[]} [application_id]
|
|
199
171
|
* @property {string} [extension_id]
|
|
@@ -204,20 +176,14 @@ export = WebhookPlatformModel;
|
|
|
204
176
|
* @property {string} [type]
|
|
205
177
|
* @property {string} [secret]
|
|
206
178
|
*/
|
|
207
|
-
/**
|
|
208
|
-
* @typedef SubscriberEventMapping
|
|
209
|
-
* @property {number} [id]
|
|
210
|
-
* @property {number} [event_id]
|
|
211
|
-
* @property {number} [subscriber_id]
|
|
212
|
-
* @property {string} [created_on]
|
|
213
|
-
*/
|
|
214
179
|
/**
|
|
215
180
|
* @typedef SubscriberResponse
|
|
216
181
|
* @property {number} [id]
|
|
217
182
|
* @property {string} [modified_by]
|
|
218
183
|
* @property {string} [name]
|
|
184
|
+
* @property {string} [provider]
|
|
219
185
|
* @property {string} [webhook_url]
|
|
220
|
-
* @property {
|
|
186
|
+
* @property {AssociationResp} [association]
|
|
221
187
|
* @property {Object} [custom_headers]
|
|
222
188
|
* @property {SubscriberStatus} [status]
|
|
223
189
|
* @property {string} [email_id]
|
|
@@ -228,16 +194,57 @@ export = WebhookPlatformModel;
|
|
|
228
194
|
* @property {EventConfig[]} [event_configs]
|
|
229
195
|
*/
|
|
230
196
|
/**
|
|
231
|
-
* @typedef
|
|
232
|
-
* @property {
|
|
197
|
+
* @typedef Events
|
|
198
|
+
* @property {string} [slug]
|
|
199
|
+
* @property {string} [topic]
|
|
200
|
+
*/
|
|
201
|
+
/**
|
|
202
|
+
* @typedef SubscriberConfigPostRequestV2
|
|
233
203
|
* @property {string} [name]
|
|
234
204
|
* @property {string} [webhook_url]
|
|
235
|
-
* @property {
|
|
205
|
+
* @property {string} provider
|
|
206
|
+
* @property {Association} association
|
|
236
207
|
* @property {Object} [custom_headers]
|
|
237
|
-
* @property {SubscriberStatus}
|
|
238
|
-
* @property {string}
|
|
208
|
+
* @property {SubscriberStatus} status
|
|
209
|
+
* @property {string} email_id
|
|
239
210
|
* @property {AuthMeta} [auth_meta]
|
|
240
|
-
* @property {
|
|
211
|
+
* @property {Events[]} [events]
|
|
212
|
+
*/
|
|
213
|
+
/**
|
|
214
|
+
* @typedef SubscriberConfigUpdateRequestV2
|
|
215
|
+
* @property {number} id
|
|
216
|
+
* @property {string} [name]
|
|
217
|
+
* @property {string} [webhook_url]
|
|
218
|
+
* @property {string} provider
|
|
219
|
+
* @property {Association} association
|
|
220
|
+
* @property {Object} [custom_headers]
|
|
221
|
+
* @property {SubscriberStatus} status
|
|
222
|
+
* @property {string} email_id
|
|
223
|
+
* @property {AuthMeta} [auth_meta]
|
|
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
|
|
241
248
|
*/
|
|
242
249
|
/**
|
|
243
250
|
* @typedef SubscriberConfigResponse
|
|
@@ -245,7 +252,8 @@ export = WebhookPlatformModel;
|
|
|
245
252
|
* @property {string} [modified_by]
|
|
246
253
|
* @property {string} [name]
|
|
247
254
|
* @property {string} [webhook_url]
|
|
248
|
-
* @property {
|
|
255
|
+
* @property {string} [provider]
|
|
256
|
+
* @property {AssociationResp} [association]
|
|
249
257
|
* @property {Object} [custom_headers]
|
|
250
258
|
* @property {SubscriberStatus} [status]
|
|
251
259
|
* @property {string} [email_id]
|
|
@@ -260,20 +268,12 @@ export = WebhookPlatformModel;
|
|
|
260
268
|
* @property {SubscriberResponse[]} [items]
|
|
261
269
|
* @property {Page} [page]
|
|
262
270
|
*/
|
|
263
|
-
/** @typedef {"active" | "inactive"
|
|
271
|
+
/** @typedef {"active" | "inactive"} SubscriberStatus */
|
|
264
272
|
declare class WebhookPlatformModel {
|
|
265
273
|
}
|
|
266
274
|
declare namespace WebhookPlatformModel {
|
|
267
|
-
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 };
|
|
268
276
|
}
|
|
269
|
-
/** @returns {Error} */
|
|
270
|
-
declare function Error(): Error;
|
|
271
|
-
type Error = {
|
|
272
|
-
/**
|
|
273
|
-
* - Error message describing the reason for the failure.
|
|
274
|
-
*/
|
|
275
|
-
error?: string;
|
|
276
|
-
};
|
|
277
277
|
/** @returns {Event} */
|
|
278
278
|
declare function Event(): Event;
|
|
279
279
|
type Event = {
|
|
@@ -282,75 +282,15 @@ type Event = {
|
|
|
282
282
|
event_category?: string;
|
|
283
283
|
version?: string;
|
|
284
284
|
};
|
|
285
|
-
/** @returns {RetryEventRequest} */
|
|
286
|
-
declare function RetryEventRequest(): RetryEventRequest;
|
|
287
|
-
type RetryEventRequest = {
|
|
288
|
-
search_text?: string;
|
|
289
|
-
end_date?: string;
|
|
290
|
-
start_date?: string;
|
|
291
|
-
subscriber_ids?: number[];
|
|
292
|
-
event?: Event[];
|
|
293
|
-
status?: string;
|
|
294
|
-
};
|
|
295
|
-
/** @returns {Item} */
|
|
296
|
-
declare function Item(): Item;
|
|
297
|
-
type Item = {
|
|
298
|
-
status?: string;
|
|
299
|
-
count?: number;
|
|
300
|
-
};
|
|
301
|
-
/** @returns {RetryCountResponse} */
|
|
302
|
-
declare function RetryCountResponse(): RetryCountResponse;
|
|
303
|
-
type RetryCountResponse = {
|
|
304
|
-
items?: Item[];
|
|
305
|
-
};
|
|
306
|
-
/** @returns {RetrySuccessResponse} */
|
|
307
|
-
declare function RetrySuccessResponse(): RetrySuccessResponse;
|
|
308
|
-
type RetrySuccessResponse = {
|
|
309
|
-
success?: boolean;
|
|
310
|
-
message?: string;
|
|
311
|
-
};
|
|
312
|
-
/** @returns {Err} */
|
|
313
|
-
declare function Err(): Err;
|
|
314
|
-
type Err = {
|
|
315
|
-
msg?: string;
|
|
316
|
-
param?: string;
|
|
317
|
-
location?: string;
|
|
318
|
-
};
|
|
319
|
-
/** @returns {RetryFailureResponse} */
|
|
320
|
-
declare function RetryFailureResponse(): RetryFailureResponse;
|
|
321
|
-
type RetryFailureResponse = {
|
|
322
|
-
err?: Err[];
|
|
323
|
-
};
|
|
324
|
-
/** @returns {RetryStatusResponse} */
|
|
325
|
-
declare function RetryStatusResponse(): RetryStatusResponse;
|
|
326
|
-
type RetryStatusResponse = {
|
|
327
|
-
/**
|
|
328
|
-
* - The total number of events that require retry.
|
|
329
|
-
*/
|
|
330
|
-
total_event?: number;
|
|
331
|
-
/**
|
|
332
|
-
* - The count of successfully retried events.
|
|
333
|
-
*/
|
|
334
|
-
success_count?: number;
|
|
335
|
-
/**
|
|
336
|
-
* - The count of failed retry attempts.
|
|
337
|
-
*/
|
|
338
|
-
failure_count?: number;
|
|
339
|
-
/**
|
|
340
|
-
* - The overall status of the retry process (e.g.,
|
|
341
|
-
* "completed").
|
|
342
|
-
*/
|
|
343
|
-
status?: string;
|
|
344
|
-
};
|
|
345
285
|
/** @returns {EventProcessRequest} */
|
|
346
286
|
declare function EventProcessRequest(): EventProcessRequest;
|
|
347
287
|
type EventProcessRequest = {
|
|
348
|
-
search_text
|
|
349
|
-
end_date
|
|
350
|
-
start_date
|
|
351
|
-
subscriber_ids
|
|
352
|
-
status
|
|
353
|
-
event
|
|
288
|
+
search_text: string;
|
|
289
|
+
end_date: string;
|
|
290
|
+
start_date: string;
|
|
291
|
+
subscriber_ids: number[];
|
|
292
|
+
status: string;
|
|
293
|
+
event: Event[];
|
|
354
294
|
};
|
|
355
295
|
/** @returns {DownloadReportResponse} */
|
|
356
296
|
declare function DownloadReportResponse(): DownloadReportResponse;
|
|
@@ -426,7 +366,7 @@ type PingWebhook = {
|
|
|
426
366
|
/**
|
|
427
367
|
* - The URL of the subscriber's webhook to ping.
|
|
428
368
|
*/
|
|
429
|
-
webhook_url
|
|
369
|
+
webhook_url: string;
|
|
430
370
|
/**
|
|
431
371
|
* - Authentication metadata (if required by the
|
|
432
372
|
* subscriber).
|
|
@@ -453,6 +393,15 @@ type PingWebhookResponse = {
|
|
|
453
393
|
*/
|
|
454
394
|
code?: number;
|
|
455
395
|
};
|
|
396
|
+
/** @returns {SubscriberEventMapping} */
|
|
397
|
+
declare function SubscriberEventMapping(): SubscriberEventMapping;
|
|
398
|
+
type SubscriberEventMapping = {
|
|
399
|
+
id?: number;
|
|
400
|
+
event_id?: number;
|
|
401
|
+
subscriber_id?: number;
|
|
402
|
+
topic?: string;
|
|
403
|
+
created_on?: string;
|
|
404
|
+
};
|
|
456
405
|
/** @returns {EventConfig} */
|
|
457
406
|
declare function EventConfig(): EventConfig;
|
|
458
407
|
type EventConfig = {
|
|
@@ -462,6 +411,7 @@ type EventConfig = {
|
|
|
462
411
|
event_category?: string;
|
|
463
412
|
subscriber_event_mapping?: SubscriberEventMapping;
|
|
464
413
|
event_schema?: any;
|
|
414
|
+
group?: string;
|
|
465
415
|
version?: string;
|
|
466
416
|
display_name?: string;
|
|
467
417
|
description?: string;
|
|
@@ -480,7 +430,7 @@ type ReportFiltersPayload = {
|
|
|
480
430
|
* - An array of subscriber IDs for
|
|
481
431
|
* filtering filters (optional).
|
|
482
432
|
*/
|
|
483
|
-
subscriber_ids
|
|
433
|
+
subscriber_ids: number[];
|
|
484
434
|
};
|
|
485
435
|
/** @returns {ReportFilterResponse} */
|
|
486
436
|
declare function ReportFilterResponse(): ReportFilterResponse;
|
|
@@ -497,7 +447,7 @@ type HistoryPayload = {
|
|
|
497
447
|
/**
|
|
498
448
|
* - The type of history report (e.g., "platform").
|
|
499
449
|
*/
|
|
500
|
-
type
|
|
450
|
+
type: string;
|
|
501
451
|
/**
|
|
502
452
|
* - The page number of the history report.
|
|
503
453
|
*/
|
|
@@ -529,6 +479,11 @@ type HistoryFilters = {
|
|
|
529
479
|
* with the history report.
|
|
530
480
|
*/
|
|
531
481
|
subscribers?: number[];
|
|
482
|
+
/**
|
|
483
|
+
* - An array of webhook type to identify
|
|
484
|
+
* thetype of subscriber i.e (KAFKA or REST).
|
|
485
|
+
*/
|
|
486
|
+
webhook_type?: string[];
|
|
532
487
|
};
|
|
533
488
|
/** @returns {Url} */
|
|
534
489
|
declare function Url(): Url;
|
|
@@ -608,6 +563,13 @@ type CancelResponse = {
|
|
|
608
563
|
/** @returns {Association} */
|
|
609
564
|
declare function Association(): Association;
|
|
610
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 = {
|
|
611
573
|
company_id?: number;
|
|
612
574
|
application_id?: string[];
|
|
613
575
|
extension_id?: string;
|
|
@@ -619,22 +581,15 @@ type AuthMeta = {
|
|
|
619
581
|
type?: string;
|
|
620
582
|
secret?: string;
|
|
621
583
|
};
|
|
622
|
-
/** @returns {SubscriberEventMapping} */
|
|
623
|
-
declare function SubscriberEventMapping(): SubscriberEventMapping;
|
|
624
|
-
type SubscriberEventMapping = {
|
|
625
|
-
id?: number;
|
|
626
|
-
event_id?: number;
|
|
627
|
-
subscriber_id?: number;
|
|
628
|
-
created_on?: string;
|
|
629
|
-
};
|
|
630
584
|
/** @returns {SubscriberResponse} */
|
|
631
585
|
declare function SubscriberResponse(): SubscriberResponse;
|
|
632
586
|
type SubscriberResponse = {
|
|
633
587
|
id?: number;
|
|
634
588
|
modified_by?: string;
|
|
635
589
|
name?: string;
|
|
590
|
+
provider?: string;
|
|
636
591
|
webhook_url?: string;
|
|
637
|
-
association?:
|
|
592
|
+
association?: AssociationResp;
|
|
638
593
|
custom_headers?: any;
|
|
639
594
|
status?: SubscriberStatus;
|
|
640
595
|
email_id?: string;
|
|
@@ -644,18 +599,63 @@ type SubscriberResponse = {
|
|
|
644
599
|
auth_meta?: AuthMeta;
|
|
645
600
|
event_configs?: EventConfig[];
|
|
646
601
|
};
|
|
647
|
-
/** @returns {
|
|
648
|
-
declare function
|
|
649
|
-
type
|
|
650
|
-
|
|
602
|
+
/** @returns {Events} */
|
|
603
|
+
declare function Events(): Events;
|
|
604
|
+
type Events = {
|
|
605
|
+
slug?: string;
|
|
606
|
+
topic?: string;
|
|
607
|
+
};
|
|
608
|
+
/** @returns {SubscriberConfigPostRequestV2} */
|
|
609
|
+
declare function SubscriberConfigPostRequestV2(): SubscriberConfigPostRequestV2;
|
|
610
|
+
type SubscriberConfigPostRequestV2 = {
|
|
651
611
|
name?: string;
|
|
652
612
|
webhook_url?: string;
|
|
653
|
-
|
|
613
|
+
provider: string;
|
|
614
|
+
association: Association;
|
|
654
615
|
custom_headers?: any;
|
|
655
|
-
status
|
|
656
|
-
email_id
|
|
616
|
+
status: SubscriberStatus;
|
|
617
|
+
email_id: string;
|
|
657
618
|
auth_meta?: AuthMeta;
|
|
658
|
-
|
|
619
|
+
events?: Events[];
|
|
620
|
+
};
|
|
621
|
+
/** @returns {SubscriberConfigUpdateRequestV2} */
|
|
622
|
+
declare function SubscriberConfigUpdateRequestV2(): SubscriberConfigUpdateRequestV2;
|
|
623
|
+
type SubscriberConfigUpdateRequestV2 = {
|
|
624
|
+
id: number;
|
|
625
|
+
name?: string;
|
|
626
|
+
webhook_url?: string;
|
|
627
|
+
provider: string;
|
|
628
|
+
association: Association;
|
|
629
|
+
custom_headers?: any;
|
|
630
|
+
status: SubscriberStatus;
|
|
631
|
+
email_id: string;
|
|
632
|
+
auth_meta?: AuthMeta;
|
|
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[];
|
|
659
659
|
};
|
|
660
660
|
/** @returns {SubscriberConfigResponse} */
|
|
661
661
|
declare function SubscriberConfigResponse(): SubscriberConfigResponse;
|
|
@@ -664,7 +664,8 @@ type SubscriberConfigResponse = {
|
|
|
664
664
|
modified_by?: string;
|
|
665
665
|
name?: string;
|
|
666
666
|
webhook_url?: string;
|
|
667
|
-
|
|
667
|
+
provider?: string;
|
|
668
|
+
association?: AssociationResp;
|
|
668
669
|
custom_headers?: any;
|
|
669
670
|
status?: SubscriberStatus;
|
|
670
671
|
email_id?: string;
|
|
@@ -686,4 +687,4 @@ type SubscriberConfigList = {
|
|
|
686
687
|
* @returns {SubscriberStatus}
|
|
687
688
|
*/
|
|
688
689
|
declare function SubscriberStatus(): SubscriberStatus;
|
|
689
|
-
type SubscriberStatus = "active" | "inactive"
|
|
690
|
+
type SubscriberStatus = "active" | "inactive";
|