@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
@@ -20,8 +20,9 @@ class Webhook {
20
20
  * @param {import("../PlatformAPIClient").Options} - Options
21
21
  * @returns {Promise<WebhookPlatformModel.CancelResponse>} - Success response
22
22
  * @name cancelJobByName
23
- * @summary: Cancel a report export
24
- * @description: Cancel the export of a specific report for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/cancelJobByName/).
23
+ * @summary: Cancel a report export.
24
+ * @description: Cancel the export of a specific report for a company.
25
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/cancelJobByName/).
25
26
  */
26
27
  async cancelJobByName(
27
28
  { filename, requestHeaders } = { requestHeaders: {} },
@@ -97,10 +98,11 @@ class Webhook {
97
98
  * @param {WebhookPlatformValidator.DownloadDeliveryReportParam} arg - Arg object
98
99
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
99
100
  * @param {import("../PlatformAPIClient").Options} - Options
100
- * @returns {Promise<Object>} - Success response
101
+ * @returns {Promise<WebhookPlatformModel.DownloadReportResponse>} - Success response
101
102
  * @name downloadDeliveryReport
102
- * @summary: Download processed events report for a company
103
- * @description: Download reports for a specific company based on the provided filters. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/downloadDeliveryReport/).
103
+ * @summary: Download processed events report for a company.
104
+ * @description: Download reports for a specific company based on the provided filters.
105
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/downloadDeliveryReport/).
104
106
  */
105
107
  async downloadDeliveryReport(
106
108
  { body, requestHeaders } = { requestHeaders: {} },
@@ -153,7 +155,9 @@ class Webhook {
153
155
  responseData = response[0];
154
156
  }
155
157
 
156
- const { error: res_error } = Joi.any().validate(responseData, {
158
+ const {
159
+ error: res_error,
160
+ } = WebhookPlatformModel.DownloadReportResponse().validate(responseData, {
157
161
  abortEarly: false,
158
162
  allowUnknown: true,
159
163
  });
@@ -176,10 +180,11 @@ class Webhook {
176
180
  * @param {WebhookPlatformValidator.FetchAllEventConfigurationsParam} arg - Arg object
177
181
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
178
182
  * @param {import("../PlatformAPIClient").Options} - Options
179
- * @returns {Promise<WebhookPlatformModel.EventConfigResponse>} - Success response
183
+ * @returns {Promise<Object>} - Success response
180
184
  * @name fetchAllEventConfigurations
181
- * @summary:
182
- * @description: Get All Webhook Events - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/fetchAllEventConfigurations/).
185
+ * @summary: Get All Webhook Events.
186
+ * @description: To fetch all webhook events.
187
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/fetchAllEventConfigurations/).
183
188
  */
184
189
  async fetchAllEventConfigurations(
185
190
  { requestHeaders } = { requestHeaders: {} },
@@ -228,9 +233,7 @@ class Webhook {
228
233
  responseData = response[0];
229
234
  }
230
235
 
231
- const {
232
- error: res_error,
233
- } = WebhookPlatformModel.EventConfigResponse().validate(responseData, {
236
+ const { error: res_error } = Joi.any().validate(responseData, {
234
237
  abortEarly: false,
235
238
  allowUnknown: true,
236
239
  });
@@ -255,8 +258,9 @@ class Webhook {
255
258
  * @param {import("../PlatformAPIClient").Options} - Options
256
259
  * @returns {Promise<WebhookPlatformModel.EventProcessReports>} - Success response
257
260
  * @name getDeliveryReports
258
- * @summary: Get processed events report for a company
259
- * @description: Retrieve a list of processed events for a specific company based on the provided filters. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getDeliveryReports/).
261
+ * @summary: Get processed events report for a company.
262
+ * @description: Retrieve a list of processed events for a specific company based on the provided filters.
263
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getDeliveryReports/).
260
264
  */
261
265
  async getDeliveryReports(
262
266
  { body, requestHeaders } = { requestHeaders: {} },
@@ -332,9 +336,7 @@ class Webhook {
332
336
  * @param {WebhookPlatformValidator.GetEventCountsParam} arg - Arg object
333
337
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
334
338
  * @param {import("../PlatformAPIClient").Options} - Options
335
- * @returns {Promise<WebhookPlatformModel.FailedEventsCountSuccessResponse>}
336
- * - Success response
337
- *
339
+ * @returns {Promise<WebhookPlatformModel.RetryCountResponse>} - Success response
338
340
  * @name getEventCounts
339
341
  * @summary: Get the count of failed events for a company within a specified date range.
340
342
  * @description: Retrieves the count of failed events for a specific company within the specified date range. The user can filter the count based on specific event types if provided.
@@ -391,10 +393,10 @@ class Webhook {
391
393
 
392
394
  const {
393
395
  error: res_error,
394
- } = WebhookPlatformModel.FailedEventsCountSuccessResponse().validate(
395
- responseData,
396
- { abortEarly: false, allowUnknown: true }
397
- );
396
+ } = WebhookPlatformModel.RetryCountResponse().validate(responseData, {
397
+ abortEarly: false,
398
+ allowUnknown: true,
399
+ });
398
400
 
399
401
  if (res_error) {
400
402
  if (this.config.options.strictResponseCheck === true) {
@@ -416,8 +418,9 @@ class Webhook {
416
418
  * @param {import("../PlatformAPIClient").Options} - Options
417
419
  * @returns {Promise<WebhookPlatformModel.HistoryResponse>} - Success response
418
420
  * @name getHistoricalReports
419
- * @summary: Get report download history
420
- * @description: Retrieve history reports for a specific company based on the provided filters. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getHistoricalReports/).
421
+ * @summary: Get report download history.
422
+ * @description: Retrieve history reports for a specific company based on the provided filters.
423
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getHistoricalReports/).
421
424
  */
422
425
  async getHistoricalReports(
423
426
  { body, requestHeaders } = { requestHeaders: {} },
@@ -569,10 +572,11 @@ class Webhook {
569
572
  * @param {WebhookPlatformValidator.GetReportFiltersParam} arg - Arg object
570
573
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
571
574
  * @param {import("../PlatformAPIClient").Options} - Options
572
- * @returns {Promise<WebhookPlatformModel.ReportFilterResponse>} - Success response
575
+ * @returns {Promise<WebhookPlatformModel.ReportFilterResponse[]>} - Success response
573
576
  * @name getReportFilters
574
- * @summary: Get filters for a company
575
- * @description: Retrieve filters for a specific company based on the provided subscriber IDs. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getReportFilters/).
577
+ * @summary: Get filters for a company.
578
+ * @description: Retrieve filters for a specific company based on the provided subscriber IDs.
579
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getReportFilters/).
576
580
  */
577
581
  async getReportFilters(
578
582
  { body, requestHeaders } = { requestHeaders: {} },
@@ -623,12 +627,9 @@ class Webhook {
623
627
  responseData = response[0];
624
628
  }
625
629
 
626
- const {
627
- error: res_error,
628
- } = WebhookPlatformModel.ReportFilterResponse().validate(responseData, {
629
- abortEarly: false,
630
- allowUnknown: true,
631
- });
630
+ const { error: res_error } = Joi.array()
631
+ .items(WebhookPlatformModel.ReportFilterResponse())
632
+ .validate(responseData, { abortEarly: false, allowUnknown: true });
632
633
 
633
634
  if (res_error) {
634
635
  if (this.config.options.strictResponseCheck === true) {
@@ -727,10 +728,11 @@ class Webhook {
727
728
  * @param {WebhookPlatformValidator.GetSubscribersByCompanyParam} arg - Arg object
728
729
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
729
730
  * @param {import("../PlatformAPIClient").Options} - Options
730
- * @returns {Promise<WebhookPlatformModel.SubscriberResponse>} - Success response
731
+ * @returns {Promise<WebhookPlatformModel.SubscriberConfigList>} - Success response
731
732
  * @name getSubscribersByCompany
732
- * @summary: Get Subscribers By Company ID
733
- * @description: Get Subscribers By CompanyId - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getSubscribersByCompany/).
733
+ * @summary: Get Subscribers By CompanyId.
734
+ * @description: Get Subscribers By Company ID.
735
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getSubscribersByCompany/).
734
736
  */
735
737
  async getSubscribersByCompany(
736
738
  { pageNo, pageSize, extensionId, requestHeaders } = { requestHeaders: {} },
@@ -778,7 +780,7 @@ class Webhook {
778
780
  const response = await PlatformAPIClient.execute(
779
781
  this.config,
780
782
  "get",
781
- `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber`,
783
+ `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber/`,
782
784
  query_params,
783
785
  undefined,
784
786
  { ...xHeaders, ...requestHeaders },
@@ -792,7 +794,7 @@ class Webhook {
792
794
 
793
795
  const {
794
796
  error: res_error,
795
- } = WebhookPlatformModel.SubscriberResponse().validate(responseData, {
797
+ } = WebhookPlatformModel.SubscriberConfigList().validate(responseData, {
796
798
  abortEarly: false,
797
799
  allowUnknown: true,
798
800
  });
@@ -865,7 +867,7 @@ class Webhook {
865
867
  const response = await PlatformAPIClient.execute(
866
868
  this.config,
867
869
  "get",
868
- `/service/platform/webhook/v1.0/company/${this.config.companyId}/extension/${extensionId}/subscriber`,
870
+ `/service/platform/webhook/v1.0/company/${this.config.companyId}/extension/${extensionId}/subscriber/`,
869
871
  query_params,
870
872
  undefined,
871
873
  { ...xHeaders, ...requestHeaders },
@@ -902,7 +904,7 @@ class Webhook {
902
904
  * @param {WebhookPlatformValidator.ManualRetryCancelParam} arg - Arg object
903
905
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
904
906
  * @param {import("../PlatformAPIClient").Options} - Options
905
- * @returns {Promise<WebhookPlatformModel.EventSuccessResponse>} - Success response
907
+ * @returns {Promise<string>} - Success response
906
908
  * @name manualRetryCancel
907
909
  * @summary: Cancel the active manual retry for a company's failed events.
908
910
  * @description: Cancels the active manual retry for a specific company's failed events. If a manual retry is currently in progress, it will be cancelled.
@@ -953,12 +955,9 @@ class Webhook {
953
955
  responseData = response[0];
954
956
  }
955
957
 
956
- const {
957
- error: res_error,
958
- } = WebhookPlatformModel.EventSuccessResponse().validate(responseData, {
959
- abortEarly: false,
960
- allowUnknown: true,
961
- });
958
+ const { error: res_error } = Joi.string()
959
+ .allow("")
960
+ .validate(responseData, { abortEarly: false, allowUnknown: true });
962
961
 
963
962
  if (res_error) {
964
963
  if (this.config.options.strictResponseCheck === true) {
@@ -978,8 +977,7 @@ class Webhook {
978
977
  * @param {WebhookPlatformValidator.ManualRetryOfFailedEventParam} arg - Arg object
979
978
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
980
979
  * @param {import("../PlatformAPIClient").Options} - Options
981
- * @returns {Promise<WebhookPlatformModel.EventProcessedSuccessResponse>} -
982
- * Success response
980
+ * @returns {Promise<WebhookPlatformModel.RetrySuccessResponse>} - Success response
983
981
  * @name manualRetryOfFailedEvent
984
982
  * @summary: Initiate a manual retry for event processing.
985
983
  * @description: Initiates a manual retry for event processing for a specific company. This endpoint allows the user to specify the date range (start_date and end_date) within which the events should be retried.
@@ -1038,10 +1036,10 @@ class Webhook {
1038
1036
 
1039
1037
  const {
1040
1038
  error: res_error,
1041
- } = WebhookPlatformModel.EventProcessedSuccessResponse().validate(
1042
- responseData,
1043
- { abortEarly: false, allowUnknown: true }
1044
- );
1039
+ } = WebhookPlatformModel.RetrySuccessResponse().validate(responseData, {
1040
+ abortEarly: false,
1041
+ allowUnknown: true,
1042
+ });
1045
1043
 
1046
1044
  if (res_error) {
1047
1045
  if (this.config.options.strictResponseCheck === true) {
@@ -1063,8 +1061,9 @@ class Webhook {
1063
1061
  * @param {import("../PlatformAPIClient").Options} - Options
1064
1062
  * @returns {Promise<WebhookPlatformModel.PingWebhookResponse>} - Success response
1065
1063
  * @name pingWebhook
1066
- * @summary: Ping and validate webhook url
1067
- * @description: Ping and validate webhook url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/pingWebhook/).
1064
+ * @summary: Ping and validate webhook url.
1065
+ * @description: Ping and validate webhook url.
1066
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/pingWebhook/).
1068
1067
  */
1069
1068
  async pingWebhook(
1070
1069
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1138,10 +1137,12 @@ class Webhook {
1138
1137
  * @param {WebhookPlatformValidator.RegisterSubscriberToEventParam} arg - Arg object
1139
1138
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1140
1139
  * @param {import("../PlatformAPIClient").Options} - Options
1141
- * @returns {Promise<WebhookPlatformModel.SubscriberConfig>} - Success response
1140
+ * @returns {Promise<WebhookPlatformModel.SubscriberConfigResponse>} -
1141
+ * Success response
1142
1142
  * @name registerSubscriberToEvent
1143
- * @summary: Register Subscriber
1144
- * @description: Register Subscriber - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/registerSubscriberToEvent/).
1143
+ * @summary: Register Subscriber.
1144
+ * @description: Register Subscriber.
1145
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/registerSubscriberToEvent/).
1145
1146
  */
1146
1147
  async registerSubscriberToEvent(
1147
1148
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1182,7 +1183,7 @@ class Webhook {
1182
1183
  const response = await PlatformAPIClient.execute(
1183
1184
  this.config,
1184
1185
  "post",
1185
- `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber`,
1186
+ `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber/`,
1186
1187
  query_params,
1187
1188
  body,
1188
1189
  { ...xHeaders, ...requestHeaders },
@@ -1196,7 +1197,7 @@ class Webhook {
1196
1197
 
1197
1198
  const {
1198
1199
  error: res_error,
1199
- } = WebhookPlatformModel.SubscriberConfig().validate(responseData, {
1200
+ } = WebhookPlatformModel.SubscriberConfigResponse().validate(responseData, {
1200
1201
  abortEarly: false,
1201
1202
  allowUnknown: true,
1202
1203
  });
@@ -1219,7 +1220,8 @@ class Webhook {
1219
1220
  * @param {WebhookPlatformValidator.UpdateSubscriberConfigParam} arg - Arg object
1220
1221
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1221
1222
  * @param {import("../PlatformAPIClient").Options} - Options
1222
- * @returns {Promise<WebhookPlatformModel.SubscriberConfig>} - Success response
1223
+ * @returns {Promise<WebhookPlatformModel.SubscriberConfigResponse>} -
1224
+ * Success response
1223
1225
  * @name updateSubscriberConfig
1224
1226
  * @summary: Update Subscriber
1225
1227
  * @description: Update Subscriber - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/updateSubscriberConfig/).
@@ -1263,7 +1265,7 @@ class Webhook {
1263
1265
  const response = await PlatformAPIClient.execute(
1264
1266
  this.config,
1265
1267
  "put",
1266
- `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber`,
1268
+ `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber/`,
1267
1269
  query_params,
1268
1270
  body,
1269
1271
  { ...xHeaders, ...requestHeaders },
@@ -1277,7 +1279,7 @@ class Webhook {
1277
1279
 
1278
1280
  const {
1279
1281
  error: res_error,
1280
- } = WebhookPlatformModel.SubscriberConfig().validate(responseData, {
1282
+ } = WebhookPlatformModel.SubscriberConfigResponse().validate(responseData, {
1281
1283
  abortEarly: false,
1282
1284
  allowUnknown: true,
1283
1285
  });