@gofynd/fdk-client-javascript 1.3.11-beta.6 → 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 +1030 -468
  163. package/sdk/platform/Order/OrderPlatformModel.js +1176 -523
  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
@@ -1529,5 +1529,85 @@ class Theme {
1529
1529
 
1530
1530
  return response;
1531
1531
  }
1532
+
1533
+ /**
1534
+ * @param {ThemePartnerValidator.CreateThemeParam} arg - Arg object.
1535
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1536
+ * @param {import("../PartnerAPIClient").Options} - Options
1537
+ * @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
1538
+ * @name createTheme
1539
+ * @summary: Create a new theme
1540
+ * @description: Themes improve the look and appearance of a website. Use this API to create a theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createTheme/).
1541
+ */
1542
+ async createTheme(
1543
+ { companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
1544
+ { responseHeaders } = { responseHeaders: false }
1545
+ ) {
1546
+ const { error } = ThemePartnerValidator.createTheme().validate(
1547
+ {
1548
+ companyId,
1549
+ applicationId,
1550
+ body,
1551
+ },
1552
+ { abortEarly: false, allowUnknown: true }
1553
+ );
1554
+ if (error) {
1555
+ return Promise.reject(new FDKClientValidationError(error));
1556
+ }
1557
+
1558
+ // Showing warrnings if extra unknown parameters are found
1559
+ const { error: warrning } = ThemePartnerValidator.createTheme().validate(
1560
+ {
1561
+ companyId,
1562
+ applicationId,
1563
+
1564
+ body,
1565
+ },
1566
+ { abortEarly: false, allowUnknown: false }
1567
+ );
1568
+ if (warrning) {
1569
+ Logger({
1570
+ level: "WARN",
1571
+ message: `Parameter Validation warrnings for partner > Theme > createTheme \n ${warrning}`,
1572
+ });
1573
+ }
1574
+
1575
+ const query_params = {};
1576
+
1577
+ const response = await PartnerAPIClient.execute(
1578
+ this.config,
1579
+ "post",
1580
+ `/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}`,
1581
+ query_params,
1582
+ body,
1583
+ requestHeaders,
1584
+ { responseHeaders }
1585
+ );
1586
+
1587
+ let responseData = response;
1588
+ if (responseHeaders) {
1589
+ responseData = response[0];
1590
+ }
1591
+
1592
+ const {
1593
+ error: res_error,
1594
+ } = ThemePartnerModel.ThemesSchema().validate(responseData, {
1595
+ abortEarly: false,
1596
+ allowUnknown: true,
1597
+ });
1598
+
1599
+ if (res_error) {
1600
+ if (this.config.options.strictResponseCheck === true) {
1601
+ return Promise.reject(new FDKResponseValidationError(res_error));
1602
+ } else {
1603
+ Logger({
1604
+ level: "WARN",
1605
+ message: `Response Validation Warnings for partner > Theme > createTheme \n ${res_error}`,
1606
+ });
1607
+ }
1608
+ }
1609
+
1610
+ return response;
1611
+ }
1532
1612
  }
1533
1613
  module.exports = Theme;
@@ -145,6 +145,18 @@ export = ThemePartnerModel;
145
145
  * @property {string[]} [developer_contact] - Developer contact information
146
146
  * @property {string} [seller_contact] - Seller contact information
147
147
  */
148
+ /**
149
+ * @typedef CreateNewTheme
150
+ * @property {SectionItem[]} available_sections - Available sections information
151
+ * @property {string} [current] - The current configuration
152
+ * @property {GlobalSchema} [global_schema]
153
+ * @property {ThemeConfiguration[]} [list] - A list of configurations
154
+ * @property {string} name - The name of the theme
155
+ * @property {Page[]} [pages]
156
+ * @property {Preset} [preset]
157
+ * @property {string} theme_type - Type of the Theme
158
+ * @property {string} version - The version of the theme
159
+ */
148
160
  /**
149
161
  * @typedef CSS
150
162
  * @property {string[]} [links]
@@ -324,16 +336,6 @@ export = ThemePartnerModel;
324
336
  * @property {PaginationSchema} [page]
325
337
  * @property {MarketplaceTheme[]} [themes]
326
338
  */
327
- /**
328
- * @typedef Meta
329
- * @property {string} [description] - The description of the theme
330
- * @property {Images} [images]
331
- * @property {string[]} [industry] - An array of industries associated with the theme
332
- * @property {string} [name] - The name of the theme
333
- * @property {ThemePayment} [payment]
334
- * @property {Release} [release]
335
- * @property {string} [slug] - The slug of the theme
336
- */
337
339
  /**
338
340
  * @typedef OverlayPopupSetting
339
341
  * @property {string} [dialog_backgroung] - The dialog background color
@@ -341,8 +343,13 @@ export = ThemePartnerModel;
341
343
  */
342
344
  /**
343
345
  * @typedef Page
344
- * @property {Section[]} [sections]
345
- * @property {string} [value] - The value of the page.
346
+ * @property {number} [current]
347
+ * @property {boolean} [has_next]
348
+ * @property {boolean} [has_previous]
349
+ * @property {number} [item_total]
350
+ * @property {string} [next_id]
351
+ * @property {number} [size]
352
+ * @property {string} type
346
353
  */
347
354
  /**
348
355
  * @typedef PaginationSchema
@@ -462,6 +469,16 @@ export = ThemePartnerModel;
462
469
  * @property {string} [name] - The name of the configuration
463
470
  * @property {string[]} [page] - An array of pages
464
471
  */
472
+ /**
473
+ * @typedef ThemeMeta
474
+ * @property {string} [description] - The description of the theme
475
+ * @property {Images} [images]
476
+ * @property {string[]} [industry] - An array of industries associated with the theme
477
+ * @property {string} [name] - The name of the theme
478
+ * @property {ThemePayment} [payment]
479
+ * @property {Release} [release]
480
+ * @property {string} [slug] - The slug of the theme
481
+ */
465
482
  /**
466
483
  * @typedef ThemePayment
467
484
  * @property {number} [amount] - The amount of the theme
@@ -494,16 +511,18 @@ export = ThemePartnerModel;
494
511
  * @property {boolean} [applied] - Whether the theme has been applied or not
495
512
  * @property {Assets} [assets]
496
513
  * @property {SectionItem[]} [available_sections] - Available sections information
514
+ * @property {number} [company_id] - The company id in which sales channel exists
497
515
  * @property {Config} [config]
498
516
  * @property {string} [created_at] - The creation timestamp of the theme
499
517
  * @property {Font} [font]
500
518
  * @property {boolean} [is_private] - Whether the theme is private or not
501
519
  * @property {string} [marketplace_theme_id] - The ID of the theme in the marketplace
502
- * @property {Meta} [meta]
520
+ * @property {ThemeMeta} [meta]
503
521
  * @property {string} [name] - The name of the theme
504
522
  * @property {Object} [styles] - The styles associated with the theme
505
523
  * @property {string[]} [tags] - An array of tags associated with the theme
506
524
  * @property {string} [template_theme_id] - The ID of the template theme
525
+ * @property {string} [theme_type]
507
526
  * @property {string} [updated_at] - The last update timestamp of the theme
508
527
  * @property {string} [version] - The version of the theme
509
528
  */
@@ -545,7 +564,7 @@ export = ThemePartnerModel;
545
564
  declare class ThemePartnerModel {
546
565
  }
547
566
  declare namespace ThemePartnerModel {
548
- export { AdvanceSetting, AllAvailablePageSchema, Assets, AuthConfig, AvailablePagePredicate, AvailablePageRoutePredicate, AvailablePageSchema, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageSectionMetaAttributes, AvailablePageSeo, AvailablePageUserPredicate, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, Block, BlockProps, ButtonSetting, CarouselItem, CatalogSize, CheckboxProp, Colors, Comments, CommonJS, Config, ContactInfo, CSS, CustomConfig, CustomProps, DividerStrokeHighlightSetting, Documentation, ExploreInfo, Feature, FeatureItem, Font, FontVariant, FontVariants, FooterSetting, GeneralSetting, GlobalConfig, GlobalSchema, HeaderSetting, Highlight, ImagePickerProp, Images, MarketplaceTheme, MarketplaceThemeImages, MarketplaceThemeSchema, Meta, OverlayPopupSetting, Page, PaginationSchema, PaletteConfig, PaymentInfo, Predicate, Preset, Prop, RangeProp, Release, Route, SaleDiscountSetting, Screen, Section, SectionItem, SectionPreset, SectionProps, StaticConfig, StaticProps, TextProp, TextSetting, ThemeConfiguration, ThemePayment, ThemeRejectionReasons, ThemeSetting, ThemesSchema, ThemeUserSchema, UMDJs, UpdateThemeRequestBody, UrlProp, UserAlertsSetting, Variation };
567
+ export { AdvanceSetting, AllAvailablePageSchema, Assets, AuthConfig, AvailablePagePredicate, AvailablePageRoutePredicate, AvailablePageSchema, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageSectionMetaAttributes, AvailablePageSeo, AvailablePageUserPredicate, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, Block, BlockProps, ButtonSetting, CarouselItem, CatalogSize, CheckboxProp, Colors, Comments, CommonJS, Config, ContactInfo, CreateNewTheme, CSS, CustomConfig, CustomProps, DividerStrokeHighlightSetting, Documentation, ExploreInfo, Feature, FeatureItem, Font, FontVariant, FontVariants, FooterSetting, GeneralSetting, GlobalConfig, GlobalSchema, HeaderSetting, Highlight, ImagePickerProp, Images, MarketplaceTheme, MarketplaceThemeImages, MarketplaceThemeSchema, OverlayPopupSetting, Page, PaginationSchema, PaletteConfig, PaymentInfo, Predicate, Preset, Prop, RangeProp, Release, Route, SaleDiscountSetting, Screen, Section, SectionItem, SectionPreset, SectionProps, StaticConfig, StaticProps, TextProp, TextSetting, ThemeConfiguration, ThemeMeta, ThemePayment, ThemeRejectionReasons, ThemeSetting, ThemesSchema, ThemeUserSchema, UMDJs, UpdateThemeRequestBody, UrlProp, UserAlertsSetting, Variation };
549
568
  }
550
569
  /** @returns {AdvanceSetting} */
551
570
  declare function AdvanceSetting(): AdvanceSetting;
@@ -793,6 +812,37 @@ type ContactInfo = {
793
812
  */
794
813
  seller_contact?: string;
795
814
  };
815
+ /** @returns {CreateNewTheme} */
816
+ declare function CreateNewTheme(): CreateNewTheme;
817
+ type CreateNewTheme = {
818
+ /**
819
+ * - Available sections information
820
+ */
821
+ available_sections: SectionItem[];
822
+ /**
823
+ * - The current configuration
824
+ */
825
+ current?: string;
826
+ global_schema?: GlobalSchema;
827
+ /**
828
+ * - A list of configurations
829
+ */
830
+ list?: ThemeConfiguration[];
831
+ /**
832
+ * - The name of the theme
833
+ */
834
+ name: string;
835
+ pages?: Page[];
836
+ preset?: Preset;
837
+ /**
838
+ * - Type of the Theme
839
+ */
840
+ theme_type: string;
841
+ /**
842
+ * - The version of the theme
843
+ */
844
+ version: string;
845
+ };
796
846
  /** @returns {CSS} */
797
847
  declare function CSS(): CSS;
798
848
  type CSS = {
@@ -1219,29 +1269,6 @@ type MarketplaceThemeSchema = {
1219
1269
  page?: PaginationSchema;
1220
1270
  themes?: MarketplaceTheme[];
1221
1271
  };
1222
- /** @returns {Meta} */
1223
- declare function Meta(): Meta;
1224
- type Meta = {
1225
- /**
1226
- * - The description of the theme
1227
- */
1228
- description?: string;
1229
- images?: Images;
1230
- /**
1231
- * - An array of industries associated with the theme
1232
- */
1233
- industry?: string[];
1234
- /**
1235
- * - The name of the theme
1236
- */
1237
- name?: string;
1238
- payment?: ThemePayment;
1239
- release?: Release;
1240
- /**
1241
- * - The slug of the theme
1242
- */
1243
- slug?: string;
1244
- };
1245
1272
  /** @returns {OverlayPopupSetting} */
1246
1273
  declare function OverlayPopupSetting(): OverlayPopupSetting;
1247
1274
  type OverlayPopupSetting = {
@@ -1257,11 +1284,13 @@ type OverlayPopupSetting = {
1257
1284
  /** @returns {Page} */
1258
1285
  declare function Page(): Page;
1259
1286
  type Page = {
1260
- sections?: Section[];
1261
- /**
1262
- * - The value of the page.
1263
- */
1264
- value?: string;
1287
+ current?: number;
1288
+ has_next?: boolean;
1289
+ has_previous?: boolean;
1290
+ item_total?: number;
1291
+ next_id?: string;
1292
+ size?: number;
1293
+ type: string;
1265
1294
  };
1266
1295
  /** @returns {PaginationSchema} */
1267
1296
  declare function PaginationSchema(): PaginationSchema;
@@ -1497,6 +1526,29 @@ type ThemeConfiguration = {
1497
1526
  */
1498
1527
  page?: string[];
1499
1528
  };
1529
+ /** @returns {ThemeMeta} */
1530
+ declare function ThemeMeta(): ThemeMeta;
1531
+ type ThemeMeta = {
1532
+ /**
1533
+ * - The description of the theme
1534
+ */
1535
+ description?: string;
1536
+ images?: Images;
1537
+ /**
1538
+ * - An array of industries associated with the theme
1539
+ */
1540
+ industry?: string[];
1541
+ /**
1542
+ * - The name of the theme
1543
+ */
1544
+ name?: string;
1545
+ payment?: ThemePayment;
1546
+ release?: Release;
1547
+ /**
1548
+ * - The slug of the theme
1549
+ */
1550
+ slug?: string;
1551
+ };
1500
1552
  /** @returns {ThemePayment} */
1501
1553
  declare function ThemePayment(): ThemePayment;
1502
1554
  type ThemePayment = {
@@ -1584,6 +1636,10 @@ type ThemesSchema = {
1584
1636
  * - Available sections information
1585
1637
  */
1586
1638
  available_sections?: SectionItem[];
1639
+ /**
1640
+ * - The company id in which sales channel exists
1641
+ */
1642
+ company_id?: number;
1587
1643
  config?: Config;
1588
1644
  /**
1589
1645
  * - The creation timestamp of the theme
@@ -1598,7 +1654,7 @@ type ThemesSchema = {
1598
1654
  * - The ID of the theme in the marketplace
1599
1655
  */
1600
1656
  marketplace_theme_id?: string;
1601
- meta?: Meta;
1657
+ meta?: ThemeMeta;
1602
1658
  /**
1603
1659
  * - The name of the theme
1604
1660
  */
@@ -1615,6 +1671,7 @@ type ThemesSchema = {
1615
1671
  * - The ID of the template theme
1616
1672
  */
1617
1673
  template_theme_id?: string;
1674
+ theme_type?: string;
1618
1675
  /**
1619
1676
  * - The last update timestamp of the theme
1620
1677
  */
@@ -171,6 +171,19 @@ const Joi = require("joi");
171
171
  * @property {string} [seller_contact] - Seller contact information
172
172
  */
173
173
 
174
+ /**
175
+ * @typedef CreateNewTheme
176
+ * @property {SectionItem[]} available_sections - Available sections information
177
+ * @property {string} [current] - The current configuration
178
+ * @property {GlobalSchema} [global_schema]
179
+ * @property {ThemeConfiguration[]} [list] - A list of configurations
180
+ * @property {string} name - The name of the theme
181
+ * @property {Page[]} [pages]
182
+ * @property {Preset} [preset]
183
+ * @property {string} theme_type - Type of the Theme
184
+ * @property {string} version - The version of the theme
185
+ */
186
+
174
187
  /**
175
188
  * @typedef CSS
176
189
  * @property {string[]} [links]
@@ -372,17 +385,6 @@ const Joi = require("joi");
372
385
  * @property {MarketplaceTheme[]} [themes]
373
386
  */
374
387
 
375
- /**
376
- * @typedef Meta
377
- * @property {string} [description] - The description of the theme
378
- * @property {Images} [images]
379
- * @property {string[]} [industry] - An array of industries associated with the theme
380
- * @property {string} [name] - The name of the theme
381
- * @property {ThemePayment} [payment]
382
- * @property {Release} [release]
383
- * @property {string} [slug] - The slug of the theme
384
- */
385
-
386
388
  /**
387
389
  * @typedef OverlayPopupSetting
388
390
  * @property {string} [dialog_backgroung] - The dialog background color
@@ -391,8 +393,13 @@ const Joi = require("joi");
391
393
 
392
394
  /**
393
395
  * @typedef Page
394
- * @property {Section[]} [sections]
395
- * @property {string} [value] - The value of the page.
396
+ * @property {number} [current]
397
+ * @property {boolean} [has_next]
398
+ * @property {boolean} [has_previous]
399
+ * @property {number} [item_total]
400
+ * @property {string} [next_id]
401
+ * @property {number} [size]
402
+ * @property {string} type
396
403
  */
397
404
 
398
405
  /**
@@ -533,6 +540,17 @@ const Joi = require("joi");
533
540
  * @property {string[]} [page] - An array of pages
534
541
  */
535
542
 
543
+ /**
544
+ * @typedef ThemeMeta
545
+ * @property {string} [description] - The description of the theme
546
+ * @property {Images} [images]
547
+ * @property {string[]} [industry] - An array of industries associated with the theme
548
+ * @property {string} [name] - The name of the theme
549
+ * @property {ThemePayment} [payment]
550
+ * @property {Release} [release]
551
+ * @property {string} [slug] - The slug of the theme
552
+ */
553
+
536
554
  /**
537
555
  * @typedef ThemePayment
538
556
  * @property {number} [amount] - The amount of the theme
@@ -568,16 +586,18 @@ const Joi = require("joi");
568
586
  * @property {boolean} [applied] - Whether the theme has been applied or not
569
587
  * @property {Assets} [assets]
570
588
  * @property {SectionItem[]} [available_sections] - Available sections information
589
+ * @property {number} [company_id] - The company id in which sales channel exists
571
590
  * @property {Config} [config]
572
591
  * @property {string} [created_at] - The creation timestamp of the theme
573
592
  * @property {Font} [font]
574
593
  * @property {boolean} [is_private] - Whether the theme is private or not
575
594
  * @property {string} [marketplace_theme_id] - The ID of the theme in the marketplace
576
- * @property {Meta} [meta]
595
+ * @property {ThemeMeta} [meta]
577
596
  * @property {string} [name] - The name of the theme
578
597
  * @property {Object} [styles] - The styles associated with the theme
579
598
  * @property {string[]} [tags] - An array of tags associated with the theme
580
599
  * @property {string} [template_theme_id] - The ID of the template theme
600
+ * @property {string} [theme_type]
581
601
  * @property {string} [updated_at] - The last update timestamp of the theme
582
602
  * @property {string} [version] - The version of the theme
583
603
  */
@@ -851,6 +871,23 @@ class ThemePartnerModel {
851
871
  });
852
872
  }
853
873
 
874
+ /** @returns {CreateNewTheme} */
875
+ static CreateNewTheme() {
876
+ return Joi.object({
877
+ available_sections: Joi.array()
878
+ .items(ThemePartnerModel.SectionItem())
879
+ .required(),
880
+ current: Joi.string().allow(""),
881
+ global_schema: ThemePartnerModel.GlobalSchema(),
882
+ list: Joi.array().items(ThemePartnerModel.ThemeConfiguration()),
883
+ name: Joi.string().allow("").required(),
884
+ pages: Joi.array().items(ThemePartnerModel.Page()),
885
+ preset: ThemePartnerModel.Preset(),
886
+ theme_type: Joi.string().allow("").required(),
887
+ version: Joi.string().allow("").required(),
888
+ });
889
+ }
890
+
854
891
  /** @returns {CSS} */
855
892
  static CSS() {
856
893
  return Joi.object({
@@ -1091,19 +1128,6 @@ class ThemePartnerModel {
1091
1128
  });
1092
1129
  }
1093
1130
 
1094
- /** @returns {Meta} */
1095
- static Meta() {
1096
- return Joi.object({
1097
- description: Joi.string().allow(""),
1098
- images: ThemePartnerModel.Images(),
1099
- industry: Joi.array().items(Joi.string().allow("")),
1100
- name: Joi.string().allow(""),
1101
- payment: ThemePartnerModel.ThemePayment(),
1102
- release: ThemePartnerModel.Release(),
1103
- slug: Joi.string().allow(""),
1104
- });
1105
- }
1106
-
1107
1131
  /** @returns {OverlayPopupSetting} */
1108
1132
  static OverlayPopupSetting() {
1109
1133
  return Joi.object({
@@ -1115,8 +1139,13 @@ class ThemePartnerModel {
1115
1139
  /** @returns {Page} */
1116
1140
  static Page() {
1117
1141
  return Joi.object({
1118
- sections: Joi.array().items(ThemePartnerModel.Section()),
1119
- value: Joi.string().allow(""),
1142
+ current: Joi.number(),
1143
+ has_next: Joi.boolean(),
1144
+ has_previous: Joi.boolean(),
1145
+ item_total: Joi.number(),
1146
+ next_id: Joi.string().allow(""),
1147
+ size: Joi.number(),
1148
+ type: Joi.string().allow("").required(),
1120
1149
  });
1121
1150
  }
1122
1151
 
@@ -1298,6 +1327,19 @@ class ThemePartnerModel {
1298
1327
  });
1299
1328
  }
1300
1329
 
1330
+ /** @returns {ThemeMeta} */
1331
+ static ThemeMeta() {
1332
+ return Joi.object({
1333
+ description: Joi.string().allow(""),
1334
+ images: ThemePartnerModel.Images(),
1335
+ industry: Joi.array().items(Joi.string().allow("")),
1336
+ name: Joi.string().allow(""),
1337
+ payment: ThemePartnerModel.ThemePayment(),
1338
+ release: ThemePartnerModel.Release(),
1339
+ slug: Joi.string().allow(""),
1340
+ });
1341
+ }
1342
+
1301
1343
  /** @returns {ThemePayment} */
1302
1344
  static ThemePayment() {
1303
1345
  return Joi.object({
@@ -1338,16 +1380,18 @@ class ThemePartnerModel {
1338
1380
  applied: Joi.boolean(),
1339
1381
  assets: ThemePartnerModel.Assets(),
1340
1382
  available_sections: Joi.array().items(ThemePartnerModel.SectionItem()),
1383
+ company_id: Joi.number(),
1341
1384
  config: ThemePartnerModel.Config(),
1342
1385
  created_at: Joi.string().allow(""),
1343
1386
  font: ThemePartnerModel.Font(),
1344
1387
  is_private: Joi.boolean(),
1345
1388
  marketplace_theme_id: Joi.string().allow(""),
1346
- meta: ThemePartnerModel.Meta(),
1389
+ meta: ThemePartnerModel.ThemeMeta(),
1347
1390
  name: Joi.string().allow(""),
1348
1391
  styles: Joi.any(),
1349
1392
  tags: Joi.array().items(Joi.string().allow("")),
1350
1393
  template_theme_id: Joi.string().allow(""),
1394
+ theme_type: Joi.string().allow(""),
1351
1395
  updated_at: Joi.string().allow(""),
1352
1396
  version: Joi.string().allow(""),
1353
1397
  });
@@ -19,4 +19,5 @@ declare class ThemeValidator {
19
19
  static createNewThemeInOrganization(): any;
20
20
  static getThemeRejectionReasons(): any;
21
21
  static getThemeVersions(): any;
22
+ static createTheme(): any;
22
23
  }
@@ -152,6 +152,15 @@ class ThemeValidator {
152
152
  pageNo: Joi.number(),
153
153
  }).required();
154
154
  }
155
+
156
+ static createTheme() {
157
+ return Joi.object({
158
+ companyId: Joi.number().required(),
159
+ applicationId: Joi.string().allow("").required(),
160
+
161
+ body: ThemeModel.CreateNewTheme().required(),
162
+ }).required();
163
+ }
155
164
  }
156
165
 
157
166
  module.exports = ThemeValidator;
@@ -0,0 +1,99 @@
1
+ export = Webhook;
2
+ declare class Webhook {
3
+ constructor(config: any);
4
+ config: any;
5
+ /**
6
+ * @param {WebhookPartnerValidator.FetchDeliverySummaryParam} arg - Arg object.
7
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
8
+ * @param {import("../PartnerAPIClient").Options} - Options
9
+ * @returns {Promise<WebhookPartnerModel.DeliverySummaryResponse>} - Success response
10
+ * @name fetchDeliverySummary
11
+ * @summary: Webhook delivery summary
12
+ * @description: Webhook delivery summary - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchDeliverySummary/).
13
+ */
14
+ fetchDeliverySummary({ extensionId, startDate, endDate, requestHeaders }?: WebhookPartnerValidator.FetchDeliverySummaryParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.DeliverySummaryResponse>;
15
+ /**
16
+ * @param {WebhookPartnerValidator.GetDeliveryDetailInsightsParam} arg - Arg object.
17
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
18
+ * @param {import("../PartnerAPIClient").Options} - Options
19
+ * @returns {Promise<WebhookPartnerModel.DeliveryDetailsResponse>} - Success response
20
+ * @name getDeliveryDetailInsights
21
+ * @summary: Get the insights of delivery details of the events that was pushed to subscribers
22
+ * @description: Get the delivery details insights - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/getDeliveryDetailInsights/).
23
+ */
24
+ getDeliveryDetailInsights({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.GetDeliveryDetailInsightsParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.DeliveryDetailsResponse>;
25
+ /**
26
+ * @param {WebhookPartnerValidator.FetchDeliveryTsParam} arg - Arg object.
27
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
28
+ * @param {import("../PartnerAPIClient").Options} - Options
29
+ * @returns {Promise<WebhookPartnerModel.DeliveryTsResponse>} - Success response
30
+ * @name fetchDeliveryTs
31
+ * @summary: Webhook delivery ts
32
+ * @description: Webhook delivery ts - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchDeliveryTs/).
33
+ */
34
+ fetchDeliveryTs({ extensionId, startDate, endDate, requestHeaders }?: WebhookPartnerValidator.FetchDeliveryTsParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.DeliveryTsResponse>;
35
+ /**
36
+ * @param {WebhookPartnerValidator.FetchReportFiltersParam} arg - Arg object.
37
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
38
+ * @param {import("../PartnerAPIClient").Options} - Options
39
+ * @returns {Promise<WebhookPartnerModel.FilterReportResponse[]>} - Success response
40
+ * @name fetchReportFilters
41
+ * @summary: Fetch webhook report filters
42
+ * @description: Fetch webhook report filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchReportFilters/).
43
+ */
44
+ fetchReportFilters({ extensionId, startDate, endDate, pageNo, pageSize, requestHeaders }?: WebhookPartnerValidator.FetchReportFiltersParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.FilterReportResponse[]>;
45
+ /**
46
+ * @param {WebhookPartnerValidator.CancelReportDownloadParam} arg - Arg object.
47
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
48
+ * @param {import("../PartnerAPIClient").Options} - Options
49
+ * @returns {Promise<WebhookPartnerModel.CancelDownloadResponse>} - Success response
50
+ * @name cancelReportDownload
51
+ * @summary: Cancel report download job
52
+ * @description: Cancel report download job - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/cancelReportDownload/).
53
+ */
54
+ cancelReportDownload({ extensionId, filename, requestHeaders }?: WebhookPartnerValidator.CancelReportDownloadParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.CancelDownloadResponse>;
55
+ /**
56
+ * @param {WebhookPartnerValidator.GetHistoricalReportsParam} arg - Arg object.
57
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
58
+ * @param {import("../PartnerAPIClient").Options} - Options
59
+ * @returns {Promise<WebhookPartnerModel.HistoryResponse>} - Success response
60
+ * @name getHistoricalReports
61
+ * @summary: Get report download history.
62
+ * @description: Retrieve history reports for a specific company based on the provided filters.
63
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/getHistoricalReports/).
64
+ */
65
+ getHistoricalReports({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.GetHistoricalReportsParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.HistoryResponse>;
66
+ /**
67
+ * @param {WebhookPartnerValidator.GetInvalidEventListParam} arg - Arg object.
68
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
69
+ * @param {import("../PartnerAPIClient").Options} - Options
70
+ * @returns {Promise<WebhookPartnerModel.InvalidEventsResponse[]>} - Success response
71
+ * @name getInvalidEventList
72
+ * @summary: Get invalid event list
73
+ * @description: Get invalid event list.
74
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/getInvalidEventList/).
75
+ */
76
+ getInvalidEventList({ extensionId, body, requestHeaders }?: WebhookPartnerValidator.GetInvalidEventListParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.InvalidEventsResponse[]>;
77
+ /**
78
+ * @param {WebhookPartnerValidator.FetchSubscribersParam} arg - Arg object.
79
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
80
+ * @param {import("../PartnerAPIClient").Options} - Options
81
+ * @returns {Promise<WebhookPartnerModel.SubscriberConfigResponse>} - Success response
82
+ * @name fetchSubscribers
83
+ * @summary: Fetch subscriber by filters
84
+ * @description: Fetch subscriber by filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchSubscribers/).
85
+ */
86
+ fetchSubscribers({ extensionId, requestHeaders }?: WebhookPartnerValidator.FetchSubscribersParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.SubscriberConfigResponse>;
87
+ /**
88
+ * @param {WebhookPartnerValidator.UpdateSubscriberParam} arg - Arg object.
89
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
90
+ * @param {import("../PartnerAPIClient").Options} - Options
91
+ * @returns {Promise<WebhookPartnerModel.UpdateSubscriberResponse>} - Success response
92
+ * @name updateSubscriber
93
+ * @summary: Update subscriber status by id.
94
+ * @description: Update subscriber status by id.
95
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/updateSubscriber/).
96
+ */
97
+ updateSubscriber({ extensionId, subscriberId, body, requestHeaders }?: WebhookPartnerValidator.UpdateSubscriberParam, { responseHeaders }?: object): Promise<WebhookPartnerModel.UpdateSubscriberResponse>;
98
+ }
99
+ import WebhookPartnerModel = require("./WebhookPartnerModel");