@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.
Files changed (140) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
  6. package/sdk/application/Cart/CartApplicationClient.js +118 -13
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
  8. package/sdk/application/Cart/CartApplicationModel.js +98 -26
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
  10. package/sdk/application/Cart/CartApplicationValidator.js +26 -0
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +10 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +10 -2
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
  14. package/sdk/application/Content/ContentApplicationClient.js +5 -3
  15. package/sdk/application/Content/ContentApplicationModel.d.ts +7 -18
  16. package/sdk/application/Content/ContentApplicationModel.js +6 -20
  17. package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
  18. package/sdk/application/Content/ContentApplicationValidator.js +4 -0
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
  20. package/sdk/application/Lead/LeadApplicationClient.js +0 -167
  21. package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
  22. package/sdk/application/Lead/LeadApplicationModel.js +0 -126
  23. package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
  24. package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
  25. package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
  27. package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
  28. package/sdk/application/Order/OrderApplicationModel.d.ts +72 -9
  29. package/sdk/application/Order/OrderApplicationModel.js +45 -7
  30. package/sdk/application/Payment/PaymentApplicationModel.d.ts +27 -20
  31. package/sdk/application/Payment/PaymentApplicationModel.js +23 -20
  32. package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
  33. package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
  34. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +22 -0
  35. package/sdk/application/Webhook/WebhookApplicationClient.js +115 -0
  36. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +37 -0
  37. package/sdk/application/Webhook/WebhookApplicationModel.js +46 -0
  38. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +16 -0
  39. package/sdk/application/Webhook/WebhookApplicationValidator.js +19 -0
  40. package/sdk/application/index.d.ts +1 -0
  41. package/sdk/application/index.js +2 -0
  42. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
  43. package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
  44. package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
  45. package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
  46. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
  47. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
  48. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
  49. package/sdk/partner/Logistics/LogisticsPartnerModel.js +4 -4
  50. package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
  51. package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
  52. package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
  53. package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
  54. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  55. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +2 -2
  57. package/sdk/partner/Webhook/WebhookPartnerClient.js +2 -2
  58. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +23 -19
  59. package/sdk/partner/Webhook/WebhookPartnerModel.js +19 -22
  60. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +43 -0
  61. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +257 -0
  62. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +39 -0
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +45 -0
  64. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +60 -0
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +57 -0
  66. package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
  67. package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
  68. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
  69. package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
  70. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
  71. package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
  72. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +36 -3
  73. package/sdk/platform/Cart/CartPlatformApplicationClient.js +276 -3
  74. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +93 -1
  75. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +60 -0
  76. package/sdk/platform/Cart/CartPlatformModel.d.ts +216 -40
  77. package/sdk/platform/Cart/CartPlatformModel.js +166 -24
  78. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +11 -7
  79. package/sdk/platform/Catalog/CatalogPlatformClient.js +37 -14
  80. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +122 -17
  81. package/sdk/platform/Catalog/CatalogPlatformModel.js +141 -15
  82. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -7
  83. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -5
  84. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
  85. package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
  86. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
  87. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
  88. package/sdk/platform/Content/ContentPlatformModel.d.ts +8 -4
  89. package/sdk/platform/Content/ContentPlatformModel.js +8 -4
  90. package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
  91. package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
  92. package/sdk/platform/Finance/FinancePlatformModel.d.ts +350 -127
  93. package/sdk/platform/Finance/FinancePlatformModel.js +378 -108
  94. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
  95. package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
  96. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
  97. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
  98. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
  99. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
  100. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
  101. package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
  102. package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
  103. package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
  104. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
  105. package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
  106. package/sdk/platform/Order/OrderPlatformClient.d.ts +11 -1
  107. package/sdk/platform/Order/OrderPlatformClient.js +82 -5
  108. package/sdk/platform/Order/OrderPlatformModel.d.ts +270 -29
  109. package/sdk/platform/Order/OrderPlatformModel.js +139 -28
  110. package/sdk/platform/Order/OrderPlatformValidator.d.ts +58 -17
  111. package/sdk/platform/Order/OrderPlatformValidator.js +28 -16
  112. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +14 -2
  113. package/sdk/platform/Payment/PaymentPlatformModel.js +7 -2
  114. package/sdk/platform/PlatformApplicationClient.d.ts +2 -0
  115. package/sdk/platform/PlatformApplicationClient.js +4 -0
  116. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -4
  117. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
  118. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
  119. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
  120. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
  121. package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
  122. package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
  123. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +24 -40
  124. package/sdk/platform/Webhook/WebhookPlatformClient.js +78 -221
  125. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +168 -167
  126. package/sdk/platform/Webhook/WebhookPlatformModel.js +180 -178
  127. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +23 -31
  128. package/sdk/platform/Webhook/WebhookPlatformValidator.js +28 -42
  129. package/sdk/platform/index.d.ts +1 -0
  130. package/sdk/platform/index.js +2 -0
  131. package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
  132. package/sdk/public/Billing/BillingPublicClient.js +156 -3
  133. package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
  134. package/sdk/public/Billing/BillingPublicModel.js +317 -18
  135. package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
  136. package/sdk/public/Billing/BillingPublicValidator.js +22 -3
  137. package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
  138. package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
  139. package/sdk/public/Webhook/WebhookPublicModel.d.ts +24 -22
  140. 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} [search_text]
57
- * @property {string} [end_date]
58
- * @property {string} [start_date]
59
- * @property {number[]} [subscriber_ids]
60
- * @property {string} [status]
61
- * @property {Event[]} [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} [webhook_url] - The URL of the subscriber's webhook to ping.
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[]} [subscriber_ids] - An array of subscriber IDs for
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} [type] - The type of history report (e.g., "platform").
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 {Association} [association]
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 SubscriberConfig
232
- * @property {number} [id]
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 {Association} [association]
205
+ * @property {string} provider
206
+ * @property {Association} association
236
207
  * @property {Object} [custom_headers]
237
- * @property {SubscriberStatus} [status]
238
- * @property {string} [email_id]
208
+ * @property {SubscriberStatus} status
209
+ * @property {string} email_id
239
210
  * @property {AuthMeta} [auth_meta]
240
- * @property {number[]} [event_id]
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 {Association} [association]
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" | "blocked"} SubscriberStatus */
271
+ /** @typedef {"active" | "inactive"} SubscriberStatus */
264
272
  declare class WebhookPlatformModel {
265
273
  }
266
274
  declare namespace WebhookPlatformModel {
267
- export { Error, Event, RetryEventRequest, Item, RetryCountResponse, RetrySuccessResponse, Err, RetryFailureResponse, RetryStatusResponse, EventProcessRequest, DownloadReportResponse, EventProcessReports, EventProcessReportObject, Page, PingWebhook, PingWebhookResponse, EventConfig, EventConfigResponse, ReportFiltersPayload, ReportFilterResponse, HistoryPayload, HistoryFilters, Url, CdnObject, UploadServiceObject, HistoryAssociation, HistoryItems, HistoryResponse, CancelResponse, Association, AuthMeta, SubscriberEventMapping, SubscriberResponse, SubscriberConfig, SubscriberConfigResponse, SubscriberConfigList, SubscriberStatus };
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?: string;
349
- end_date?: string;
350
- start_date?: string;
351
- subscriber_ids?: number[];
352
- status?: string;
353
- event?: 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?: string;
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?: number[];
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?: string;
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?: 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 {SubscriberConfig} */
648
- declare function SubscriberConfig(): SubscriberConfig;
649
- type SubscriberConfig = {
650
- id?: number;
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
- association?: Association;
613
+ provider: string;
614
+ association: Association;
654
615
  custom_headers?: any;
655
- status?: SubscriberStatus;
656
- email_id?: string;
616
+ status: SubscriberStatus;
617
+ email_id: string;
657
618
  auth_meta?: AuthMeta;
658
- event_id?: number[];
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
- association?: Association;
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" | "blocked";
690
+ type SubscriberStatus = "active" | "inactive";