@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.3.11-beta.8

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 (229) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  4. package/sdk/application/Cart/CartApplicationClient.js +5 -3
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
  6. package/sdk/application/Cart/CartApplicationModel.js +74 -0
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
  8. package/sdk/application/Cart/CartApplicationValidator.js +4 -0
  9. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
  13. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
  14. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
  15. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
  16. package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
  17. package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
  18. package/sdk/application/Content/ContentApplicationClient.js +246 -0
  19. package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
  20. package/sdk/application/Content/ContentApplicationModel.js +252 -0
  21. package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
  22. package/sdk/application/Content/ContentApplicationValidator.js +41 -0
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
  27. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
  28. package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  30. package/sdk/application/Order/OrderApplicationClient.js +32 -8
  31. package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
  32. package/sdk/application/Order/OrderApplicationModel.js +6 -0
  33. package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
  34. package/sdk/application/Order/OrderApplicationValidator.js +8 -0
  35. package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
  36. package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
  37. package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
  38. package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
  39. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
  40. package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
  41. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
  42. package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
  43. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  44. package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
  45. package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
  46. package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
  47. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
  48. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
  49. package/sdk/application/User/UserApplicationClient.d.ts +33 -0
  50. package/sdk/application/User/UserApplicationClient.js +239 -0
  51. package/sdk/application/User/UserApplicationModel.d.ts +28 -13
  52. package/sdk/application/User/UserApplicationModel.js +36 -12
  53. package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
  54. package/sdk/application/User/UserApplicationValidator.js +36 -0
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
  56. package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
  58. package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
  59. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
  60. package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
  61. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
  62. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
  63. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
  64. package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
  65. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
  66. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
  67. package/sdk/partner/PartnerClient.d.ts +6 -0
  68. package/sdk/partner/PartnerClient.js +9 -0
  69. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
  70. package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
  71. package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
  72. package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
  73. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
  74. package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
  75. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
  76. package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
  77. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
  78. package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
  79. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
  80. package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
  81. package/sdk/partner/index.d.ts +3 -0
  82. package/sdk/partner/index.js +6 -0
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
  85. package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
  86. package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
  87. package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
  88. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
  89. package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
  90. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  91. package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
  92. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
  93. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
  94. package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
  95. package/sdk/platform/Cart/CartPlatformModel.js +71 -4
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
  97. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
  100. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
  101. package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
  102. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
  103. package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
  104. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
  105. package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
  106. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
  110. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
  111. package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
  112. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
  113. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
  118. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  119. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  120. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
  121. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
  122. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  123. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  124. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
  125. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3630 -1059
  126. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
  127. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
  128. package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
  129. package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
  130. package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
  131. package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
  132. package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
  133. package/sdk/platform/Content/ContentPlatformValidator.js +310 -0
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -5
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
  145. package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
  147. package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
  150. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
  151. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
  152. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
  153. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
  154. package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
  155. package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
  156. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
  157. package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
  158. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
  159. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
  160. package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
  161. package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
  162. package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
  163. package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
  164. package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
  165. package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
  166. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
  167. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
  168. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
  169. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
  170. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  171. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  172. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
  173. package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
  174. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  175. package/sdk/platform/PlatformApplicationClient.js +4 -4
  176. package/sdk/platform/PlatformClient.d.ts +4 -2
  177. package/sdk/platform/PlatformClient.js +8 -4
  178. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
  179. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
  180. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
  181. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
  188. package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
  189. package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
  190. package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
  191. package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
  192. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
  193. package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
  194. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
  195. package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
  196. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
  197. package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
  198. package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
  199. package/sdk/platform/User/UserPlatformModel.js +256 -5
  200. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
  201. package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
  202. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
  203. package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
  204. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
  205. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  206. package/sdk/platform/index.d.ts +1 -1
  207. package/sdk/platform/index.js +2 -2
  208. package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
  209. package/sdk/public/Billing/BillingPublicClient.js +116 -0
  210. package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
  211. package/sdk/public/Billing/BillingPublicModel.js +96 -0
  212. package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
  213. package/sdk/public/Billing/BillingPublicValidator.js +19 -0
  214. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  215. package/sdk/public/Content/ContentPublicClient.js +114 -0
  216. package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
  217. package/sdk/public/Content/ContentPublicModel.js +60 -0
  218. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
  219. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  220. package/sdk/public/PublicClient.d.ts +4 -0
  221. package/sdk/public/PublicClient.js +8 -0
  222. package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
  223. package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
  224. package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
  225. package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
  226. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
  227. package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
  228. package/sdk/public/index.d.ts +2 -0
  229. package/sdk/public/index.js +4 -0
@@ -6,10 +6,6 @@ export = WebhookPlatformModel;
6
6
  * @property {string} [criteria]
7
7
  * @property {string} [extension_id]
8
8
  */
9
- /**
10
- * @typedef AssociationDetails
11
- * @property {number} [company_id]
12
- */
13
9
  /**
14
10
  * @typedef AuthMeta
15
11
  * @property {string} [secret]
@@ -17,12 +13,22 @@ export = WebhookPlatformModel;
17
13
  */
18
14
  /**
19
15
  * @typedef CancelResponse
20
- * @property {number} [code] - The HTTP status code of the response (e.g., 200).
16
+ * @property {string} [message] - The HTTP status code of the response (e.g., 200).
21
17
  */
22
18
  /**
23
19
  * @typedef CdnObject
24
20
  * @property {Url[]} [urls]
25
21
  */
22
+ /**
23
+ * @typedef DownloadReportResponse
24
+ * @property {string} [file_name]
25
+ */
26
+ /**
27
+ * @typedef Err
28
+ * @property {string} [location]
29
+ * @property {string} [msg]
30
+ * @property {string} [param]
31
+ */
26
32
  /**
27
33
  * @typedef Error
28
34
  * @property {string} [error] - Error message describing the reason for the failure.
@@ -47,24 +53,39 @@ export = WebhookPlatformModel;
47
53
  */
48
54
  /**
49
55
  * @typedef EventConfigResponse
50
- * @property {EventConfig[]} [event_configs]
51
- */
52
- /**
53
- * @typedef EventCountItem
54
- * @property {number} [count] - The count of events with the specified status
55
- * @property {string} [status] - The status of the event (e.g., "FAILED").
56
+ * @property {string} [created_on]
57
+ * @property {string} [description]
58
+ * @property {string} [display_name]
59
+ * @property {string} [event_category]
60
+ * @property {string} [event_name]
61
+ * @property {Object} [event_schema]
62
+ * @property {string} [event_type]
63
+ * @property {number} [id]
64
+ * @property {string} [updated_on]
65
+ * @property {string} [version]
56
66
  */
57
67
  /**
58
- * @typedef EventProcessedSuccessResponse
59
- * @property {string} [message]
60
- * @property {boolean} [success]
68
+ * @typedef EventConfigs
69
+ * @property {string} [created_on]
70
+ * @property {string} [description]
71
+ * @property {string} [display_name]
72
+ * @property {string} [event_category]
73
+ * @property {string} [event_name]
74
+ * @property {Object} [event_schema]
75
+ * @property {string} [event_type]
76
+ * @property {number} [id]
77
+ * @property {SubscriberEventMapping} [subscriber_event_mapping]
78
+ * @property {string} [updated_on]
79
+ * @property {string} [version]
61
80
  */
62
81
  /**
63
82
  * @typedef EventProcessReportObject
64
83
  * @property {number} [attempt] - The attempt number of the event.
65
- * @property {string} [data] - The data associated with the event.
84
+ * @property {Object} [data] - The data associated with the event.
66
85
  * @property {string} [event_name] - The name of the processed event.
86
+ * @property {string} [event_trace_id]
67
87
  * @property {number} [last_attempted_on] - The timestamp of the last attempted event.
88
+ * @property {string} [message_id]
68
89
  * @property {string} [name] - The name of the event.
69
90
  * @property {number} [response_code] - The response code of the event.
70
91
  * @property {string} [response_message] - The response message of the event.
@@ -83,48 +104,27 @@ export = WebhookPlatformModel;
83
104
  * @property {Event[]} [event]
84
105
  * @property {string} [search_text]
85
106
  * @property {string} [start_date]
107
+ * @property {string} [status]
86
108
  * @property {number[]} [subscriber_ids]
87
109
  */
88
110
  /**
89
- * @typedef EventSuccessResponse
90
- * @property {string} [message]
91
- * @property {boolean} [success]
92
- */
93
- /**
94
- * @typedef FailedEventsCountSuccessResponse
95
- * @property {EventCountItem[]} [items]
96
- */
97
- /**
98
- * @typedef FilterResponseObject
99
- * @property {string} [filter_name] - The name of the filter.
100
- * @property {FilterValues[]} [values]
101
- */
102
- /**
103
- * @typedef FilterValues
104
- * @property {string} [text] - The display text for the filter value.
105
- * @property {Object} [value] - The value associated with the filter value.
111
+ * @typedef HistoryAssociation
112
+ * @property {number} [company_id]
113
+ * @property {number[]} [subscriber_ids]
106
114
  */
107
115
  /**
108
116
  * @typedef HistoryFilters
109
117
  * @property {string} [end_date] - The end date and time of the history report.
118
+ * @property {string[]} [events]
119
+ * @property {string} [search_text]
110
120
  * @property {string} [start_date] - The start date and time of the history report.
111
121
  * @property {string} [status] - The status of the history report (e.g., "FAILED").
112
122
  * @property {number[]} [subscribers] - An array of subscriber IDs associated
113
123
  * with the history report.
114
124
  */
115
125
  /**
116
- * @typedef HistoryPayload
117
- * @property {number} [page_no] - The page number of the history report.
118
- * @property {number} [page_size] - The number of records per page.
119
- * @property {string} [type] - The type of history report (e.g., "platform").
120
- */
121
- /**
122
- * @typedef HistoryResponse
123
- * @property {HistoryResponseObject[]} [items]
124
- */
125
- /**
126
- * @typedef HistoryResponseObject
127
- * @property {AssociationDetails} [association]
126
+ * @typedef HistoryItems
127
+ * @property {HistoryAssociation} [association]
128
128
  * @property {string} [created_on] - The date and time when the history report
129
129
  * was created.
130
130
  * @property {string} [filename] - The filename of the history report.
@@ -137,12 +137,20 @@ export = WebhookPlatformModel;
137
137
  * @property {UploadServiceObject} [upload_service_response]
138
138
  */
139
139
  /**
140
- * @typedef ManualRetryFailedResponse
141
- * @property {string} [message]
142
- * @property {Object} [meta]
143
- * @property {string} [request_id]
144
- * @property {string} [stack_trace]
145
- * @property {boolean} [success]
140
+ * @typedef HistoryPayload
141
+ * @property {number} [page_no] - The page number of the history report.
142
+ * @property {number} [page_size] - The number of records per page.
143
+ * @property {string} [type] - The type of history report (e.g., "platform").
144
+ */
145
+ /**
146
+ * @typedef HistoryResponse
147
+ * @property {HistoryItems[]} [items]
148
+ * @property {Page} [page]
149
+ */
150
+ /**
151
+ * @typedef Item
152
+ * @property {number} [count]
153
+ * @property {string} [status]
146
154
  */
147
155
  /**
148
156
  * @typedef Page
@@ -169,13 +177,31 @@ export = WebhookPlatformModel;
169
177
  */
170
178
  /**
171
179
  * @typedef ReportFilterResponse
172
- * @property {FilterResponseObject[]} [items]
180
+ * @property {string} [filter_name] - The name of the filter.
181
+ * @property {Object[]} [values]
173
182
  */
174
183
  /**
175
184
  * @typedef ReportFiltersPayload
176
185
  * @property {number[]} [subscriber_ids] - An array of subscriber IDs for
177
186
  * filtering filters (optional).
178
187
  */
188
+ /**
189
+ * @typedef RetryCountResponse
190
+ * @property {Item[]} [items]
191
+ */
192
+ /**
193
+ * @typedef RetryEventRequest
194
+ * @property {string} [end_date]
195
+ * @property {Event[]} [event]
196
+ * @property {string} [search_text]
197
+ * @property {string} [start_date]
198
+ * @property {string} [status]
199
+ * @property {number[]} [subscriber_ids]
200
+ */
201
+ /**
202
+ * @typedef RetryFailureResponse
203
+ * @property {Err[]} [err]
204
+ */
179
205
  /**
180
206
  * @typedef RetryStatusResponse
181
207
  * @property {number} [failure_count] - The count of failed retry attempts.
@@ -184,6 +210,11 @@ export = WebhookPlatformModel;
184
210
  * @property {number} [success_count] - The count of successfully retried events.
185
211
  * @property {number} [total_event] - The total number of events that require retry.
186
212
  */
213
+ /**
214
+ * @typedef RetrySuccessResponse
215
+ * @property {string} [message]
216
+ * @property {boolean} [success]
217
+ */
187
218
  /**
188
219
  * @typedef SubscriberConfig
189
220
  * @property {Association} [association]
@@ -193,7 +224,7 @@ export = WebhookPlatformModel;
193
224
  * @property {number[]} [event_id]
194
225
  * @property {number} [id]
195
226
  * @property {string} [name]
196
- * @property {SubscriberStatus} [status]
227
+ * @property {string} [status]
197
228
  * @property {string} [webhook_url]
198
229
  */
199
230
  /**
@@ -201,6 +232,35 @@ export = WebhookPlatformModel;
201
232
  * @property {SubscriberResponse[]} [items]
202
233
  * @property {Page} [page]
203
234
  */
235
+ /**
236
+ * @typedef SubscriberConfigResponse
237
+ * @property {Association} [association]
238
+ * @property {AuthMeta} [auth_meta]
239
+ * @property {string} [created_on]
240
+ * @property {Object} [custom_headers]
241
+ * @property {string} [email_id]
242
+ * @property {number[]} [event_id]
243
+ * @property {number} [id]
244
+ * @property {string} [modified_by]
245
+ * @property {string} [name]
246
+ * @property {string} [status]
247
+ * @property {string} [type]
248
+ * @property {string} [updated_on]
249
+ * @property {string} [webhook_url]
250
+ */
251
+ /**
252
+ * @typedef SubscriberEventMapping
253
+ * @property {string} [created_on]
254
+ * @property {number} [event_id]
255
+ * @property {number} [id]
256
+ * @property {number} [subscriber_id]
257
+ */
258
+ /**
259
+ * @typedef SubscriberFailureResponse
260
+ * @property {string} [code]
261
+ * @property {string} [message]
262
+ * @property {string} [stack]
263
+ */
204
264
  /**
205
265
  * @typedef SubscriberResponse
206
266
  * @property {Association} [association]
@@ -208,10 +268,12 @@ export = WebhookPlatformModel;
208
268
  * @property {string} [created_on]
209
269
  * @property {Object} [custom_headers]
210
270
  * @property {string} [email_id]
211
- * @property {EventConfig[]} [event_configs]
271
+ * @property {EventConfigs[]} [event_configs]
212
272
  * @property {number} [id]
273
+ * @property {string} [modified_by]
213
274
  * @property {string} [name]
214
- * @property {SubscriberStatus} [status]
275
+ * @property {string} [status]
276
+ * @property {string} [type]
215
277
  * @property {string} [updated_on]
216
278
  * @property {string} [webhook_url]
217
279
  */
@@ -224,11 +286,10 @@ export = WebhookPlatformModel;
224
286
  * @property {string} [name] - The name of the uploaded report file.
225
287
  * @property {string} [url] - The URL of the uploaded report file.
226
288
  */
227
- /** @typedef {"active" | "inactive" | "blocked"} SubscriberStatus */
228
289
  declare class WebhookPlatformModel {
229
290
  }
230
291
  declare namespace WebhookPlatformModel {
231
- export { Association, AssociationDetails, AuthMeta, CancelResponse, CdnObject, Error, Event, EventConfig, EventConfigResponse, EventCountItem, EventProcessedSuccessResponse, EventProcessReportObject, EventProcessReports, EventProcessRequest, EventSuccessResponse, FailedEventsCountSuccessResponse, FilterResponseObject, FilterValues, HistoryFilters, HistoryPayload, HistoryResponse, HistoryResponseObject, ManualRetryFailedResponse, Page, PingWebhook, PingWebhookResponse, ReportFilterResponse, ReportFiltersPayload, RetryStatusResponse, SubscriberConfig, SubscriberConfigList, SubscriberResponse, UploadServiceObject, Url, SubscriberStatus };
292
+ export { Association, AuthMeta, CancelResponse, CdnObject, DownloadReportResponse, Err, Error, Event, EventConfig, EventConfigResponse, EventConfigs, EventProcessReportObject, EventProcessReports, EventProcessRequest, HistoryAssociation, HistoryFilters, HistoryItems, HistoryPayload, HistoryResponse, Item, Page, PingWebhook, PingWebhookResponse, ReportFilterResponse, ReportFiltersPayload, RetryCountResponse, RetryEventRequest, RetryFailureResponse, RetryStatusResponse, RetrySuccessResponse, SubscriberConfig, SubscriberConfigList, SubscriberConfigResponse, SubscriberEventMapping, SubscriberFailureResponse, SubscriberResponse, UploadServiceObject, Url };
232
293
  }
233
294
  /** @returns {Association} */
234
295
  declare function Association(): Association;
@@ -238,11 +299,6 @@ type Association = {
238
299
  criteria?: string;
239
300
  extension_id?: string;
240
301
  };
241
- /** @returns {AssociationDetails} */
242
- declare function AssociationDetails(): AssociationDetails;
243
- type AssociationDetails = {
244
- company_id?: number;
245
- };
246
302
  /** @returns {AuthMeta} */
247
303
  declare function AuthMeta(): AuthMeta;
248
304
  type AuthMeta = {
@@ -255,13 +311,25 @@ type CancelResponse = {
255
311
  /**
256
312
  * - The HTTP status code of the response (e.g., 200).
257
313
  */
258
- code?: number;
314
+ message?: string;
259
315
  };
260
316
  /** @returns {CdnObject} */
261
317
  declare function CdnObject(): CdnObject;
262
318
  type CdnObject = {
263
319
  urls?: Url[];
264
320
  };
321
+ /** @returns {DownloadReportResponse} */
322
+ declare function DownloadReportResponse(): DownloadReportResponse;
323
+ type DownloadReportResponse = {
324
+ file_name?: string;
325
+ };
326
+ /** @returns {Err} */
327
+ declare function Err(): Err;
328
+ type Err = {
329
+ location?: string;
330
+ msg?: string;
331
+ param?: string;
332
+ };
265
333
  /** @returns {Error} */
266
334
  declare function Error(): Error;
267
335
  type Error = {
@@ -293,25 +361,31 @@ type EventConfig = {
293
361
  /** @returns {EventConfigResponse} */
294
362
  declare function EventConfigResponse(): EventConfigResponse;
295
363
  type EventConfigResponse = {
296
- event_configs?: EventConfig[];
297
- };
298
- /** @returns {EventCountItem} */
299
- declare function EventCountItem(): EventCountItem;
300
- type EventCountItem = {
301
- /**
302
- * - The count of events with the specified status
303
- */
304
- count?: number;
305
- /**
306
- * - The status of the event (e.g., "FAILED").
307
- */
308
- status?: string;
364
+ created_on?: string;
365
+ description?: string;
366
+ display_name?: string;
367
+ event_category?: string;
368
+ event_name?: string;
369
+ event_schema?: any;
370
+ event_type?: string;
371
+ id?: number;
372
+ updated_on?: string;
373
+ version?: string;
309
374
  };
310
- /** @returns {EventProcessedSuccessResponse} */
311
- declare function EventProcessedSuccessResponse(): EventProcessedSuccessResponse;
312
- type EventProcessedSuccessResponse = {
313
- message?: string;
314
- success?: boolean;
375
+ /** @returns {EventConfigs} */
376
+ declare function EventConfigs(): EventConfigs;
377
+ type EventConfigs = {
378
+ created_on?: string;
379
+ description?: string;
380
+ display_name?: string;
381
+ event_category?: string;
382
+ event_name?: string;
383
+ event_schema?: any;
384
+ event_type?: string;
385
+ id?: number;
386
+ subscriber_event_mapping?: SubscriberEventMapping;
387
+ updated_on?: string;
388
+ version?: string;
315
389
  };
316
390
  /** @returns {EventProcessReportObject} */
317
391
  declare function EventProcessReportObject(): EventProcessReportObject;
@@ -323,15 +397,17 @@ type EventProcessReportObject = {
323
397
  /**
324
398
  * - The data associated with the event.
325
399
  */
326
- data?: string;
400
+ data?: any;
327
401
  /**
328
402
  * - The name of the processed event.
329
403
  */
330
404
  event_name?: string;
405
+ event_trace_id?: string;
331
406
  /**
332
407
  * - The timestamp of the last attempted event.
333
408
  */
334
409
  last_attempted_on?: number;
410
+ message_id?: string;
335
411
  /**
336
412
  * - The name of the event.
337
413
  */
@@ -370,39 +446,14 @@ type EventProcessRequest = {
370
446
  event?: Event[];
371
447
  search_text?: string;
372
448
  start_date?: string;
449
+ status?: string;
373
450
  subscriber_ids?: number[];
374
451
  };
375
- /** @returns {EventSuccessResponse} */
376
- declare function EventSuccessResponse(): EventSuccessResponse;
377
- type EventSuccessResponse = {
378
- message?: string;
379
- success?: boolean;
380
- };
381
- /** @returns {FailedEventsCountSuccessResponse} */
382
- declare function FailedEventsCountSuccessResponse(): FailedEventsCountSuccessResponse;
383
- type FailedEventsCountSuccessResponse = {
384
- items?: EventCountItem[];
385
- };
386
- /** @returns {FilterResponseObject} */
387
- declare function FilterResponseObject(): FilterResponseObject;
388
- type FilterResponseObject = {
389
- /**
390
- * - The name of the filter.
391
- */
392
- filter_name?: string;
393
- values?: FilterValues[];
394
- };
395
- /** @returns {FilterValues} */
396
- declare function FilterValues(): FilterValues;
397
- type FilterValues = {
398
- /**
399
- * - The display text for the filter value.
400
- */
401
- text?: string;
402
- /**
403
- * - The value associated with the filter value.
404
- */
405
- value?: any;
452
+ /** @returns {HistoryAssociation} */
453
+ declare function HistoryAssociation(): HistoryAssociation;
454
+ type HistoryAssociation = {
455
+ company_id?: number;
456
+ subscriber_ids?: number[];
406
457
  };
407
458
  /** @returns {HistoryFilters} */
408
459
  declare function HistoryFilters(): HistoryFilters;
@@ -411,6 +462,8 @@ type HistoryFilters = {
411
462
  * - The end date and time of the history report.
412
463
  */
413
464
  end_date?: string;
465
+ events?: string[];
466
+ search_text?: string;
414
467
  /**
415
468
  * - The start date and time of the history report.
416
469
  */
@@ -425,31 +478,10 @@ type HistoryFilters = {
425
478
  */
426
479
  subscribers?: number[];
427
480
  };
428
- /** @returns {HistoryPayload} */
429
- declare function HistoryPayload(): HistoryPayload;
430
- type HistoryPayload = {
431
- /**
432
- * - The page number of the history report.
433
- */
434
- page_no?: number;
435
- /**
436
- * - The number of records per page.
437
- */
438
- page_size?: number;
439
- /**
440
- * - The type of history report (e.g., "platform").
441
- */
442
- type?: string;
443
- };
444
- /** @returns {HistoryResponse} */
445
- declare function HistoryResponse(): HistoryResponse;
446
- type HistoryResponse = {
447
- items?: HistoryResponseObject[];
448
- };
449
- /** @returns {HistoryResponseObject} */
450
- declare function HistoryResponseObject(): HistoryResponseObject;
451
- type HistoryResponseObject = {
452
- association?: AssociationDetails;
481
+ /** @returns {HistoryItems} */
482
+ declare function HistoryItems(): HistoryItems;
483
+ type HistoryItems = {
484
+ association?: HistoryAssociation;
453
485
  /**
454
486
  * - The date and time when the history report
455
487
  * was created.
@@ -479,14 +511,33 @@ type HistoryResponseObject = {
479
511
  updated_on?: string;
480
512
  upload_service_response?: UploadServiceObject;
481
513
  };
482
- /** @returns {ManualRetryFailedResponse} */
483
- declare function ManualRetryFailedResponse(): ManualRetryFailedResponse;
484
- type ManualRetryFailedResponse = {
485
- message?: string;
486
- meta?: any;
487
- request_id?: string;
488
- stack_trace?: string;
489
- success?: boolean;
514
+ /** @returns {HistoryPayload} */
515
+ declare function HistoryPayload(): HistoryPayload;
516
+ type HistoryPayload = {
517
+ /**
518
+ * - The page number of the history report.
519
+ */
520
+ page_no?: number;
521
+ /**
522
+ * - The number of records per page.
523
+ */
524
+ page_size?: number;
525
+ /**
526
+ * - The type of history report (e.g., "platform").
527
+ */
528
+ type?: string;
529
+ };
530
+ /** @returns {HistoryResponse} */
531
+ declare function HistoryResponse(): HistoryResponse;
532
+ type HistoryResponse = {
533
+ items?: HistoryItems[];
534
+ page?: Page;
535
+ };
536
+ /** @returns {Item} */
537
+ declare function Item(): Item;
538
+ type Item = {
539
+ count?: number;
540
+ status?: string;
490
541
  };
491
542
  /** @returns {Page} */
492
543
  declare function Page(): Page;
@@ -535,7 +586,11 @@ type PingWebhookResponse = {
535
586
  /** @returns {ReportFilterResponse} */
536
587
  declare function ReportFilterResponse(): ReportFilterResponse;
537
588
  type ReportFilterResponse = {
538
- items?: FilterResponseObject[];
589
+ /**
590
+ * - The name of the filter.
591
+ */
592
+ filter_name?: string;
593
+ values?: any[];
539
594
  };
540
595
  /** @returns {ReportFiltersPayload} */
541
596
  declare function ReportFiltersPayload(): ReportFiltersPayload;
@@ -546,6 +601,26 @@ type ReportFiltersPayload = {
546
601
  */
547
602
  subscriber_ids?: number[];
548
603
  };
604
+ /** @returns {RetryCountResponse} */
605
+ declare function RetryCountResponse(): RetryCountResponse;
606
+ type RetryCountResponse = {
607
+ items?: Item[];
608
+ };
609
+ /** @returns {RetryEventRequest} */
610
+ declare function RetryEventRequest(): RetryEventRequest;
611
+ type RetryEventRequest = {
612
+ end_date?: string;
613
+ event?: Event[];
614
+ search_text?: string;
615
+ start_date?: string;
616
+ status?: string;
617
+ subscriber_ids?: number[];
618
+ };
619
+ /** @returns {RetryFailureResponse} */
620
+ declare function RetryFailureResponse(): RetryFailureResponse;
621
+ type RetryFailureResponse = {
622
+ err?: Err[];
623
+ };
549
624
  /** @returns {RetryStatusResponse} */
550
625
  declare function RetryStatusResponse(): RetryStatusResponse;
551
626
  type RetryStatusResponse = {
@@ -567,6 +642,12 @@ type RetryStatusResponse = {
567
642
  */
568
643
  total_event?: number;
569
644
  };
645
+ /** @returns {RetrySuccessResponse} */
646
+ declare function RetrySuccessResponse(): RetrySuccessResponse;
647
+ type RetrySuccessResponse = {
648
+ message?: string;
649
+ success?: boolean;
650
+ };
570
651
  /** @returns {SubscriberConfig} */
571
652
  declare function SubscriberConfig(): SubscriberConfig;
572
653
  type SubscriberConfig = {
@@ -577,7 +658,7 @@ type SubscriberConfig = {
577
658
  event_id?: number[];
578
659
  id?: number;
579
660
  name?: string;
580
- status?: SubscriberStatus;
661
+ status?: string;
581
662
  webhook_url?: string;
582
663
  };
583
664
  /** @returns {SubscriberConfigList} */
@@ -586,6 +667,38 @@ type SubscriberConfigList = {
586
667
  items?: SubscriberResponse[];
587
668
  page?: Page;
588
669
  };
670
+ /** @returns {SubscriberConfigResponse} */
671
+ declare function SubscriberConfigResponse(): SubscriberConfigResponse;
672
+ type SubscriberConfigResponse = {
673
+ association?: Association;
674
+ auth_meta?: AuthMeta;
675
+ created_on?: string;
676
+ custom_headers?: any;
677
+ email_id?: string;
678
+ event_id?: number[];
679
+ id?: number;
680
+ modified_by?: string;
681
+ name?: string;
682
+ status?: string;
683
+ type?: string;
684
+ updated_on?: string;
685
+ webhook_url?: string;
686
+ };
687
+ /** @returns {SubscriberEventMapping} */
688
+ declare function SubscriberEventMapping(): SubscriberEventMapping;
689
+ type SubscriberEventMapping = {
690
+ created_on?: string;
691
+ event_id?: number;
692
+ id?: number;
693
+ subscriber_id?: number;
694
+ };
695
+ /** @returns {SubscriberFailureResponse} */
696
+ declare function SubscriberFailureResponse(): SubscriberFailureResponse;
697
+ type SubscriberFailureResponse = {
698
+ code?: string;
699
+ message?: string;
700
+ stack?: string;
701
+ };
589
702
  /** @returns {SubscriberResponse} */
590
703
  declare function SubscriberResponse(): SubscriberResponse;
591
704
  type SubscriberResponse = {
@@ -594,10 +707,12 @@ type SubscriberResponse = {
594
707
  created_on?: string;
595
708
  custom_headers?: any;
596
709
  email_id?: string;
597
- event_configs?: EventConfig[];
710
+ event_configs?: EventConfigs[];
598
711
  id?: number;
712
+ modified_by?: string;
599
713
  name?: string;
600
- status?: SubscriberStatus;
714
+ status?: string;
715
+ type?: string;
601
716
  updated_on?: string;
602
717
  webhook_url?: string;
603
718
  };
@@ -618,10 +733,3 @@ type Url = {
618
733
  */
619
734
  url?: string;
620
735
  };
621
- /**
622
- * Enum: SubscriberStatus Used By: Webhook
623
- *
624
- * @returns {SubscriberStatus}
625
- */
626
- declare function SubscriberStatus(): SubscriberStatus;
627
- type SubscriberStatus = "active" | "inactive" | "blocked";