@gofynd/fdk-client-javascript 1.2.0 → 1.3.0

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 (262) hide show
  1. package/README.md +44 -7
  2. package/package.json +1 -2
  3. package/sdk/application/ApplicationAPIClient.d.ts +3 -3
  4. package/sdk/application/ApplicationAPIClient.js +6 -4
  5. package/sdk/application/ApplicationClient.d.ts +2 -3
  6. package/sdk/application/ApplicationClient.js +1 -45
  7. package/sdk/application/ApplicationConfig.d.ts +46 -6
  8. package/sdk/application/ApplicationConfig.js +15 -16
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
  10. package/sdk/application/Cart/CartApplicationClient.js +225 -134
  11. package/sdk/application/Cart/CartApplicationModel.d.ts +4 -4
  12. package/sdk/application/Cart/CartApplicationModel.js +4 -4
  13. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
  14. package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
  15. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
  16. package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
  18. package/sdk/application/Common/CommonApplicationClient.js +13 -11
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
  20. package/sdk/application/Common/CommonApplicationModel.js +2 -58
  21. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
  22. package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
  23. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
  24. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
  25. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
  26. package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
  27. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
  28. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
  29. package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
  30. package/sdk/application/Content/ContentApplicationClient.js +159 -80
  31. package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
  32. package/sdk/application/Content/ContentApplicationModel.js +11 -763
  33. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
  34. package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
  35. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
  36. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
  37. package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
  38. package/sdk/application/Lead/LeadApplicationClient.js +50 -31
  39. package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
  40. package/sdk/application/Lead/LeadApplicationModel.js +21 -481
  41. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
  42. package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
  43. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
  44. package/sdk/application/Order/OrderApplicationClient.js +88 -56
  45. package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
  46. package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
  47. package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
  48. package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
  49. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
  50. package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
  51. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
  52. package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
  53. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
  54. package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
  55. package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
  56. package/sdk/application/Share/ShareApplicationClient.js +51 -31
  57. package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
  58. package/sdk/application/Share/ShareApplicationModel.js +0 -38
  59. package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
  60. package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
  61. package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
  62. package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
  63. package/sdk/application/User/UserApplicationClient.d.ts +74 -35
  64. package/sdk/application/User/UserApplicationClient.js +252 -161
  65. package/sdk/application/User/UserApplicationModel.d.ts +3 -401
  66. package/sdk/application/User/UserApplicationModel.js +2 -490
  67. package/sdk/common/AxiosHelper.js +1 -2
  68. package/sdk/common/FDKError.d.ts +3 -0
  69. package/sdk/common/FDKError.js +8 -0
  70. package/sdk/common/utils.d.ts +3 -0
  71. package/sdk/common/utils.js +29 -0
  72. package/sdk/partner/PartnerAPIClient.d.ts +5 -4
  73. package/sdk/partner/PartnerAPIClient.js +7 -4
  74. package/sdk/partner/PartnerClient.d.ts +2 -0
  75. package/sdk/partner/PartnerClient.js +3 -0
  76. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  77. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  78. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  79. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  80. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  81. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  82. package/sdk/partner/index.d.ts +3 -1
  83. package/sdk/partner/index.js +3 -1
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
  87. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
  88. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
  90. package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
  91. package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
  92. package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
  93. package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
  94. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
  95. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
  96. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
  97. package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
  98. package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
  99. package/sdk/platform/Cart/CartPlatformModel.js +104 -54
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
  108. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
  109. package/sdk/platform/Common/CommonPlatformClient.js +13 -11
  110. package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
  111. package/sdk/platform/Common/CommonPlatformModel.js +23 -57
  112. package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
  113. package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
  117. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
  118. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  119. package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
  120. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
  121. package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
  132. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
  134. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
  136. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
  137. package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
  139. package/sdk/platform/Content/ContentPlatformModel.js +8 -231
  140. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
  141. package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
  142. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
  143. package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
  144. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
  145. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
  148. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
  149. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
  150. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
  151. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
  152. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
  153. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
  154. package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
  155. package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
  156. package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
  157. package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
  158. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
  159. package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
  160. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
  161. package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
  162. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
  163. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
  164. package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
  165. package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
  166. package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
  167. package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
  168. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
  169. package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
  170. package/sdk/platform/OAuthClient.js +6 -2
  171. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
  172. package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
  173. package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
  174. package/sdk/platform/Order/OrderPlatformClient.js +738 -205
  175. package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
  176. package/sdk/platform/Order/OrderPlatformModel.js +225 -2
  177. package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
  178. package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
  179. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
  180. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
  181. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
  182. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
  183. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
  184. package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
  185. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
  186. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
  187. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
  188. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
  189. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
  190. package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
  191. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
  192. package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
  193. package/sdk/platform/PlatformAPIClient.d.ts +3 -3
  194. package/sdk/platform/PlatformAPIClient.js +2 -2
  195. package/sdk/platform/PlatformClient.d.ts +2 -2
  196. package/sdk/platform/PlatformClient.js +4 -4
  197. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
  198. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
  199. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
  200. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
  203. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
  204. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
  205. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
  206. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
  209. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
  210. package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
  211. package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
  212. package/sdk/platform/Share/SharePlatformModel.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
  214. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
  215. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
  216. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
  217. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  218. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  219. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
  220. package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
  221. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  222. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  223. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
  224. package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
  225. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
  226. package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
  227. package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
  228. package/sdk/platform/User/UserPlatformModel.js +3 -899
  229. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
  230. package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
  231. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
  232. package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
  233. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +96 -9
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +117 -5
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
  239. package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
  240. package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
  241. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  242. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  243. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  244. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  245. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  246. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  247. package/sdk/public/PublicAPIClient.d.ts +14 -1
  248. package/sdk/public/PublicAPIClient.js +7 -1
  249. package/sdk/public/PublicClient.d.ts +2 -0
  250. package/sdk/public/PublicClient.js +4 -0
  251. package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
  252. package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
  253. package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
  254. package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
  255. package/sdk/public/index.d.ts +1 -0
  256. package/sdk/public/index.js +2 -0
  257. package/sdk/application/ApplicationModels.d.ts +0 -48
  258. package/sdk/application/ApplicationModels.js +0 -38
  259. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
  260. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
  261. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
  262. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
@@ -16,6 +16,7 @@ class Catalog {
16
16
  * @param {CatalogPlatformApplicationValidator.AddCollectionItemsParam} arg
17
17
  * - Arg object
18
18
  *
19
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
19
20
  * @param {import("../PlatformAPIClient").Options} - Options
20
21
  * @returns {Promise<CatalogPlatformModel.UpdatedResponse>} - Success response
21
22
  * @name addCollectionItems
@@ -23,8 +24,8 @@ class Catalog {
23
24
  * @description: Adds items to a collection specified by its `id`. See `CollectionItemRequest` for the list of attributes needed to add items to an collection. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/addCollectionItems/).
24
25
  */
25
26
  async addCollectionItems(
26
- { id, body } = {},
27
- { headers } = { headers: false }
27
+ { id, body, requestHeaders } = { requestHeaders: {} },
28
+ { responseHeaders } = { responseHeaders: false }
28
29
  ) {
29
30
  const {
30
31
  error,
@@ -64,12 +65,12 @@ class Catalog {
64
65
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${id}/items/`,
65
66
  query_params,
66
67
  body,
67
- undefined,
68
- { headers }
68
+ requestHeaders,
69
+ { responseHeaders }
69
70
  );
70
71
 
71
72
  let responseData = response;
72
- if (headers) {
73
+ if (responseHeaders) {
73
74
  responseData = response[0];
74
75
  }
75
76
 
@@ -92,6 +93,7 @@ class Catalog {
92
93
 
93
94
  /**
94
95
  * @param {CatalogPlatformApplicationValidator.CreateCollectionParam} arg - Arg object
96
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
95
97
  * @param {import("../PlatformAPIClient").Options} - Options
96
98
  * @returns {Promise<CatalogPlatformModel.CollectionCreateResponse>} -
97
99
  * Success response
@@ -99,7 +101,10 @@ class Catalog {
99
101
  * @summary: Add a Collection
100
102
  * @description: Create a collection. See `CreateCollectionRequestSchema` for the list of attributes needed to create a collection and collections/query-options for the available options to create a collection. On successful request, returns a paginated list of collections specified in `CollectionCreateResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createCollection/).
101
103
  */
102
- async createCollection({ body } = {}, { headers } = { headers: false }) {
104
+ async createCollection(
105
+ { body, requestHeaders } = { requestHeaders: {} },
106
+ { responseHeaders } = { responseHeaders: false }
107
+ ) {
103
108
  const {
104
109
  error,
105
110
  } = CatalogPlatformApplicationValidator.createCollection().validate(
@@ -136,12 +141,12 @@ class Catalog {
136
141
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/`,
137
142
  query_params,
138
143
  body,
139
- undefined,
140
- { headers }
144
+ requestHeaders,
145
+ { responseHeaders }
141
146
  );
142
147
 
143
148
  let responseData = response;
144
- if (headers) {
149
+ if (responseHeaders) {
145
150
  responseData = response[0];
146
151
  }
147
152
 
@@ -166,6 +171,7 @@ class Catalog {
166
171
  * @param {CatalogPlatformApplicationValidator.CreateConfigurationByTypeParam} arg
167
172
  * - Arg object
168
173
  *
174
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
169
175
  * @param {import("../PlatformAPIClient").Options} - Options
170
176
  * @returns {Promise<CatalogPlatformModel.GetAppCatalogConfiguration>} -
171
177
  * Success response
@@ -174,8 +180,8 @@ class Catalog {
174
180
  * @description: Add configuration for categories & brands. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createConfigurationByType/).
175
181
  */
176
182
  async createConfigurationByType(
177
- { type, body } = {},
178
- { headers } = { headers: false }
183
+ { type, body, requestHeaders } = { requestHeaders: {} },
184
+ { responseHeaders } = { responseHeaders: false }
179
185
  ) {
180
186
  const {
181
187
  error,
@@ -215,12 +221,12 @@ class Catalog {
215
221
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${type}/`,
216
222
  query_params,
217
223
  body,
218
- undefined,
219
- { headers }
224
+ requestHeaders,
225
+ { responseHeaders }
220
226
  );
221
227
 
222
228
  let responseData = response;
223
- if (headers) {
229
+ if (responseHeaders) {
224
230
  responseData = response[0];
225
231
  }
226
232
 
@@ -245,6 +251,7 @@ class Catalog {
245
251
  * @param {CatalogPlatformApplicationValidator.CreateConfigurationProductListingParam} arg
246
252
  * - Arg object
247
253
  *
254
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
248
255
  * @param {import("../PlatformAPIClient").Options} - Options
249
256
  * @returns {Promise<CatalogPlatformModel.GetAppCatalogConfiguration>} -
250
257
  * Success response
@@ -253,8 +260,8 @@ class Catalog {
253
260
  * @description: Add configuration for products & listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createConfigurationProductListing/).
254
261
  */
255
262
  async createConfigurationProductListing(
256
- { body } = {},
257
- { headers } = { headers: false }
263
+ { body, requestHeaders } = { requestHeaders: {} },
264
+ { responseHeaders } = { responseHeaders: false }
258
265
  ) {
259
266
  const {
260
267
  error,
@@ -292,12 +299,12 @@ class Catalog {
292
299
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/`,
293
300
  query_params,
294
301
  body,
295
- undefined,
296
- { headers }
302
+ requestHeaders,
303
+ { responseHeaders }
297
304
  );
298
305
 
299
306
  let responseData = response;
300
- if (headers) {
307
+ if (responseHeaders) {
301
308
  responseData = response[0];
302
309
  }
303
310
 
@@ -322,6 +329,7 @@ class Catalog {
322
329
  * @param {CatalogPlatformApplicationValidator.CreateCustomAutocompleteRuleParam} arg
323
330
  * - Arg object
324
331
  *
332
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
325
333
  * @param {import("../PlatformAPIClient").Options} - Options
326
334
  * @returns {Promise<CatalogPlatformModel.CreateAutocompleteWordsResponse>}
327
335
  * - Success response
@@ -331,8 +339,8 @@ class Catalog {
331
339
  * @description: Create a Custom Autocomplete Keywords. See `CreateAutocompleteKeywordSchema` for the list of attributes needed to create a mapping and /collections/query-options for the available options to create a rule. On successful request, returns a paginated list of collections specified in `CreateAutocompleteKeywordSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createCustomAutocompleteRule/).
332
340
  */
333
341
  async createCustomAutocompleteRule(
334
- { body } = {},
335
- { headers } = { headers: false }
342
+ { body, requestHeaders } = { requestHeaders: {} },
343
+ { responseHeaders } = { responseHeaders: false }
336
344
  ) {
337
345
  const {
338
346
  error,
@@ -370,12 +378,12 @@ class Catalog {
370
378
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/`,
371
379
  query_params,
372
380
  body,
373
- undefined,
374
- { headers }
381
+ requestHeaders,
382
+ { responseHeaders }
375
383
  );
376
384
 
377
385
  let responseData = response;
378
- if (headers) {
386
+ if (responseHeaders) {
379
387
  responseData = response[0];
380
388
  }
381
389
 
@@ -400,13 +408,17 @@ class Catalog {
400
408
  * @param {CatalogPlatformApplicationValidator.CreateCustomKeywordParam} arg
401
409
  * - Arg object
402
410
  *
411
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
403
412
  * @param {import("../PlatformAPIClient").Options} - Options
404
413
  * @returns {Promise<CatalogPlatformModel.GetSearchWordsData>} - Success response
405
414
  * @name createCustomKeyword
406
415
  * @summary: Add a Custom Search Keywords
407
416
  * @description: Create a Custom Search Keywords. See `CreateSearchKeywordSchema` for the list of attributes needed to create a mapping and /collections/query-options for the available options to create a rule. On successful request, returns a paginated list of collections specified in `CreateSearchKeywordSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createCustomKeyword/).
408
417
  */
409
- async createCustomKeyword({ body } = {}, { headers } = { headers: false }) {
418
+ async createCustomKeyword(
419
+ { body, requestHeaders } = { requestHeaders: {} },
420
+ { responseHeaders } = { responseHeaders: false }
421
+ ) {
410
422
  const {
411
423
  error,
412
424
  } = CatalogPlatformApplicationValidator.createCustomKeyword().validate(
@@ -443,12 +455,12 @@ class Catalog {
443
455
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/`,
444
456
  query_params,
445
457
  body,
446
- undefined,
447
- { headers }
458
+ requestHeaders,
459
+ { responseHeaders }
448
460
  );
449
461
 
450
462
  let responseData = response;
451
- if (headers) {
463
+ if (responseHeaders) {
452
464
  responseData = response[0];
453
465
  }
454
466
 
@@ -473,6 +485,7 @@ class Catalog {
473
485
  * @param {CatalogPlatformApplicationValidator.CreateGroupConfigurationParam} arg
474
486
  * - Arg object
475
487
  *
488
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
476
489
  * @param {import("../PlatformAPIClient").Options} - Options
477
490
  * @returns {Promise<CatalogPlatformModel.AppConfigurationDetail>} - Success response
478
491
  * @name createGroupConfiguration
@@ -480,8 +493,8 @@ class Catalog {
480
493
  * @description: Create configuration for Group config types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createGroupConfiguration/).
481
494
  */
482
495
  async createGroupConfiguration(
483
- { configType, body } = {},
484
- { headers } = { headers: false }
496
+ { configType, body, requestHeaders } = { requestHeaders: {} },
497
+ { responseHeaders } = { responseHeaders: false }
485
498
  ) {
486
499
  const {
487
500
  error,
@@ -521,12 +534,12 @@ class Catalog {
521
534
  `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/groups`,
522
535
  query_params,
523
536
  body,
524
- undefined,
525
- { headers }
537
+ requestHeaders,
538
+ { responseHeaders }
526
539
  );
527
540
 
528
541
  let responseData = response;
529
- if (headers) {
542
+ if (responseHeaders) {
530
543
  responseData = response[0];
531
544
  }
532
545
 
@@ -551,6 +564,7 @@ class Catalog {
551
564
  * @param {CatalogPlatformApplicationValidator.CreateListingConfigurationParam} arg
552
565
  * - Arg object
553
566
  *
567
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
554
568
  * @param {import("../PlatformAPIClient").Options} - Options
555
569
  * @returns {Promise<CatalogPlatformModel.AppConfigurationsSort>} - Success response
556
570
  * @name createListingConfiguration
@@ -558,8 +572,8 @@ class Catalog {
558
572
  * @description: Add configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createListingConfiguration/).
559
573
  */
560
574
  async createListingConfiguration(
561
- { configType, body } = {},
562
- { headers } = { headers: false }
575
+ { configType, body, requestHeaders } = { requestHeaders: {} },
576
+ { responseHeaders } = { responseHeaders: false }
563
577
  ) {
564
578
  const {
565
579
  error,
@@ -599,12 +613,12 @@ class Catalog {
599
613
  `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/`,
600
614
  query_params,
601
615
  body,
602
- undefined,
603
- { headers }
616
+ requestHeaders,
617
+ { responseHeaders }
604
618
  );
605
619
 
606
620
  let responseData = response;
607
- if (headers) {
621
+ if (responseHeaders) {
608
622
  responseData = response[0];
609
623
  }
610
624
 
@@ -629,6 +643,7 @@ class Catalog {
629
643
  * @param {CatalogPlatformApplicationValidator.DeleteAutocompleteKeywordParam} arg
630
644
  * - Arg object
631
645
  *
646
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
632
647
  * @param {import("../PlatformAPIClient").Options} - Options
633
648
  * @returns {Promise<CatalogPlatformModel.DeleteResponse>} - Success response
634
649
  * @name deleteAutocompleteKeyword
@@ -636,8 +651,8 @@ class Catalog {
636
651
  * @description: Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteAutocompleteKeyword/).
637
652
  */
638
653
  async deleteAutocompleteKeyword(
639
- { id } = {},
640
- { headers } = { headers: false }
654
+ { id, requestHeaders } = { requestHeaders: {} },
655
+ { responseHeaders } = { responseHeaders: false }
641
656
  ) {
642
657
  const {
643
658
  error,
@@ -675,12 +690,12 @@ class Catalog {
675
690
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/${id}/`,
676
691
  query_params,
677
692
  undefined,
678
- undefined,
679
- { headers }
693
+ requestHeaders,
694
+ { responseHeaders }
680
695
  );
681
696
 
682
697
  let responseData = response;
683
- if (headers) {
698
+ if (responseHeaders) {
684
699
  responseData = response[0];
685
700
  }
686
701
 
@@ -703,13 +718,17 @@ class Catalog {
703
718
 
704
719
  /**
705
720
  * @param {CatalogPlatformApplicationValidator.DeleteCollectionParam} arg - Arg object
721
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
706
722
  * @param {import("../PlatformAPIClient").Options} - Options
707
723
  * @returns {Promise<CatalogPlatformModel.DeleteResponse>} - Success response
708
724
  * @name deleteCollection
709
725
  * @summary: Delete a Collection
710
726
  * @description: Delete a collection by it's id. Returns an object that tells whether the collection was deleted successfully - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteCollection/).
711
727
  */
712
- async deleteCollection({ id } = {}, { headers } = { headers: false }) {
728
+ async deleteCollection(
729
+ { id, requestHeaders } = { requestHeaders: {} },
730
+ { responseHeaders } = { responseHeaders: false }
731
+ ) {
713
732
  const {
714
733
  error,
715
734
  } = CatalogPlatformApplicationValidator.deleteCollection().validate(
@@ -746,12 +765,12 @@ class Catalog {
746
765
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${id}/`,
747
766
  query_params,
748
767
  undefined,
749
- undefined,
750
- { headers }
768
+ requestHeaders,
769
+ { responseHeaders }
751
770
  );
752
771
 
753
772
  let responseData = response;
754
- if (headers) {
773
+ if (responseHeaders) {
755
774
  responseData = response[0];
756
775
  }
757
776
 
@@ -776,6 +795,7 @@ class Catalog {
776
795
  * @param {CatalogPlatformApplicationValidator.DeleteGroupConfigurationParam} arg
777
796
  * - Arg object
778
797
  *
798
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
779
799
  * @param {import("../PlatformAPIClient").Options} - Options
780
800
  * @returns {Promise<CatalogPlatformModel.ConfigSuccessResponse>} - Success response
781
801
  * @name deleteGroupConfiguration
@@ -783,8 +803,8 @@ class Catalog {
783
803
  * @description: Delete configuration of the product config type of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteGroupConfiguration/).
784
804
  */
785
805
  async deleteGroupConfiguration(
786
- { configType, groupSlug } = {},
787
- { headers } = { headers: false }
806
+ { configType, groupSlug, requestHeaders } = { requestHeaders: {} },
807
+ { responseHeaders } = { responseHeaders: false }
788
808
  ) {
789
809
  const {
790
810
  error,
@@ -824,12 +844,12 @@ class Catalog {
824
844
  `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/groups/${groupSlug}`,
825
845
  query_params,
826
846
  undefined,
827
- undefined,
828
- { headers }
847
+ requestHeaders,
848
+ { responseHeaders }
829
849
  );
830
850
 
831
851
  let responseData = response;
832
- if (headers) {
852
+ if (responseHeaders) {
833
853
  responseData = response[0];
834
854
  }
835
855
 
@@ -854,6 +874,7 @@ class Catalog {
854
874
  * @param {CatalogPlatformApplicationValidator.DeleteListingConfigurationParam} arg
855
875
  * - Arg object
856
876
  *
877
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
857
878
  * @param {import("../PlatformAPIClient").Options} - Options
858
879
  * @returns {Promise<CatalogPlatformModel.ConfigSuccessResponse>} - Success response
859
880
  * @name deleteListingConfiguration
@@ -861,8 +882,8 @@ class Catalog {
861
882
  * @description: Delete configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteListingConfiguration/).
862
883
  */
863
884
  async deleteListingConfiguration(
864
- { configType, configId } = {},
865
- { headers } = { headers: false }
885
+ { configType, configId, requestHeaders } = { requestHeaders: {} },
886
+ { responseHeaders } = { responseHeaders: false }
866
887
  ) {
867
888
  const {
868
889
  error,
@@ -902,12 +923,12 @@ class Catalog {
902
923
  `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/item/${configId}/`,
903
924
  query_params,
904
925
  undefined,
905
- undefined,
906
- { headers }
926
+ requestHeaders,
927
+ { responseHeaders }
907
928
  );
908
929
 
909
930
  let responseData = response;
910
- if (headers) {
931
+ if (responseHeaders) {
911
932
  responseData = response[0];
912
933
  }
913
934
 
@@ -932,13 +953,17 @@ class Catalog {
932
953
  * @param {CatalogPlatformApplicationValidator.DeleteSearchKeywordsParam} arg
933
954
  * - Arg object
934
955
  *
956
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
935
957
  * @param {import("../PlatformAPIClient").Options} - Options
936
958
  * @returns {Promise<CatalogPlatformModel.DeleteResponse>} - Success response
937
959
  * @name deleteSearchKeywords
938
960
  * @summary: Delete a Search Keywords
939
961
  * @description: Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSearchKeywords/).
940
962
  */
941
- async deleteSearchKeywords({ id } = {}, { headers } = { headers: false }) {
963
+ async deleteSearchKeywords(
964
+ { id, requestHeaders } = { requestHeaders: {} },
965
+ { responseHeaders } = { responseHeaders: false }
966
+ ) {
942
967
  const {
943
968
  error,
944
969
  } = CatalogPlatformApplicationValidator.deleteSearchKeywords().validate(
@@ -975,12 +1000,12 @@ class Catalog {
975
1000
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/${id}/`,
976
1001
  query_params,
977
1002
  undefined,
978
- undefined,
979
- { headers }
1003
+ requestHeaders,
1004
+ { responseHeaders }
980
1005
  );
981
1006
 
982
1007
  let responseData = response;
983
- if (headers) {
1008
+ if (responseHeaders) {
984
1009
  responseData = response[0];
985
1010
  }
986
1011
 
@@ -1005,6 +1030,7 @@ class Catalog {
1005
1030
  * @param {CatalogPlatformApplicationValidator.GetAllCollectionsParam} arg
1006
1031
  * - Arg object
1007
1032
  *
1033
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1008
1034
  * @param {import("../PlatformAPIClient").Options} - Options
1009
1035
  * @returns {Promise<CatalogPlatformModel.GetCollectionListingResponse>} -
1010
1036
  * Success response
@@ -1013,8 +1039,17 @@ class Catalog {
1013
1039
  * @description: A Collection allows you to organize your products into hierarchical groups. For example, a dress might be in the category _Clothing_, the individual product might also be in the collection _Summer_. On successful request, returns all the collections as specified in `CollectionListingSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllCollections/).
1014
1040
  */
1015
1041
  async getAllCollections(
1016
- { q, scheduleStatus, type, tags, isActive, pageNo, pageSize } = {},
1017
- { headers } = { headers: false }
1042
+ {
1043
+ q,
1044
+ scheduleStatus,
1045
+ type,
1046
+ tags,
1047
+ isActive,
1048
+ pageNo,
1049
+ pageSize,
1050
+ requestHeaders,
1051
+ } = { requestHeaders: {} },
1052
+ { responseHeaders } = { responseHeaders: false }
1018
1053
  ) {
1019
1054
  const {
1020
1055
  error,
@@ -1071,12 +1106,12 @@ class Catalog {
1071
1106
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/`,
1072
1107
  query_params,
1073
1108
  undefined,
1074
- undefined,
1075
- { headers }
1109
+ requestHeaders,
1110
+ { responseHeaders }
1076
1111
  );
1077
1112
 
1078
1113
  let responseData = response;
1079
- if (headers) {
1114
+ if (responseHeaders) {
1080
1115
  responseData = response[0];
1081
1116
  }
1082
1117
 
@@ -1098,13 +1133,20 @@ class Catalog {
1098
1133
  }
1099
1134
 
1100
1135
  /**
1136
+ * @param {CatalogPlatformApplicationValidator.GetAllSearchKeywordParam} arg
1137
+ * - Arg object
1138
+ *
1139
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1101
1140
  * @param {import("../PlatformAPIClient").Options} - Options
1102
1141
  * @returns {Promise<CatalogPlatformModel.GetSearchWordsResponse>} - Success response
1103
1142
  * @name getAllSearchKeyword
1104
1143
  * @summary: List all Search Custom Keyword Listing
1105
1144
  * @description: Custom Search Keyword allows you to map conditions with keywords to give you the ultimate results - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllSearchKeyword/).
1106
1145
  */
1107
- async getAllSearchKeyword({ headers } = { headers: false }) {
1146
+ async getAllSearchKeyword(
1147
+ { requestHeaders } = { requestHeaders: {} },
1148
+ { responseHeaders } = { responseHeaders: false }
1149
+ ) {
1108
1150
  const {
1109
1151
  error,
1110
1152
  } = CatalogPlatformApplicationValidator.getAllSearchKeyword().validate(
@@ -1137,12 +1179,12 @@ class Catalog {
1137
1179
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/`,
1138
1180
  query_params,
1139
1181
  undefined,
1140
- undefined,
1141
- { headers }
1182
+ requestHeaders,
1183
+ { responseHeaders }
1142
1184
  );
1143
1185
 
1144
1186
  let responseData = response;
1145
- if (headers) {
1187
+ if (responseHeaders) {
1146
1188
  responseData = response[0];
1147
1189
  }
1148
1190
 
@@ -1165,6 +1207,7 @@ class Catalog {
1165
1207
 
1166
1208
  /**
1167
1209
  * @param {CatalogPlatformApplicationValidator.GetAppInventoryParam} arg - Arg object
1210
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1168
1211
  * @param {import("../PlatformAPIClient").Options} - Options
1169
1212
  * @returns {Promise<CatalogPlatformModel.InventoryStockResponse>} - Success response
1170
1213
  * @name getAppInventory
@@ -1180,8 +1223,9 @@ class Catalog {
1180
1223
  timestamp,
1181
1224
  pageSize,
1182
1225
  pageId,
1183
- } = {},
1184
- { headers } = { headers: false }
1226
+ requestHeaders,
1227
+ } = { requestHeaders: {} },
1228
+ { responseHeaders } = { responseHeaders: false }
1185
1229
  ) {
1186
1230
  const {
1187
1231
  error,
@@ -1238,12 +1282,12 @@ class Catalog {
1238
1282
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/inventory/`,
1239
1283
  query_params,
1240
1284
  undefined,
1241
- undefined,
1242
- { headers }
1285
+ requestHeaders,
1286
+ { responseHeaders }
1243
1287
  );
1244
1288
 
1245
1289
  let responseData = response;
1246
- if (headers) {
1290
+ if (responseHeaders) {
1247
1291
  responseData = response[0];
1248
1292
  }
1249
1293
 
@@ -1266,6 +1310,7 @@ class Catalog {
1266
1310
 
1267
1311
  /**
1268
1312
  * @param {CatalogPlatformApplicationValidator.GetAppLocationsParam} arg - Arg object
1313
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1269
1314
  * @param {import("../PlatformAPIClient").Options} - Options
1270
1315
  * @returns {Promise<CatalogPlatformModel.LocationListSerializer>} - Success response
1271
1316
  * @name getAppLocations
@@ -1273,8 +1318,10 @@ class Catalog {
1273
1318
  * @description: This API allows to view all the locations asscoiated to a application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppLocations/).
1274
1319
  */
1275
1320
  async getAppLocations(
1276
- { storeType, uid, q, stage, pageNo, pageSize } = {},
1277
- { headers } = { headers: false }
1321
+ { storeType, uid, q, stage, pageNo, pageSize, requestHeaders } = {
1322
+ requestHeaders: {},
1323
+ },
1324
+ { responseHeaders } = { responseHeaders: false }
1278
1325
  ) {
1279
1326
  const {
1280
1327
  error,
@@ -1328,12 +1375,12 @@ class Catalog {
1328
1375
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/locations`,
1329
1376
  query_params,
1330
1377
  undefined,
1331
- undefined,
1332
- { headers }
1378
+ requestHeaders,
1379
+ { responseHeaders }
1333
1380
  );
1334
1381
 
1335
1382
  let responseData = response;
1336
- if (headers) {
1383
+ if (responseHeaders) {
1337
1384
  responseData = response[0];
1338
1385
  }
1339
1386
 
@@ -1408,13 +1455,17 @@ class Catalog {
1408
1455
 
1409
1456
  /**
1410
1457
  * @param {CatalogPlatformApplicationValidator.GetAppProductParam} arg - Arg object
1458
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1411
1459
  * @param {import("../PlatformAPIClient").Options} - Options
1412
1460
  * @returns {Promise<CatalogPlatformModel.OwnerAppItemResponse>} - Success response
1413
1461
  * @name getAppProduct
1414
1462
  * @summary: Get company application product data.
1415
1463
  * @description: Products are the core resource of an application. If successful, returns a Company Application Product resource in the response body depending upon filter sent. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppProduct/).
1416
1464
  */
1417
- async getAppProduct({ itemId } = {}, { headers } = { headers: false }) {
1465
+ async getAppProduct(
1466
+ { itemId, requestHeaders } = { requestHeaders: {} },
1467
+ { responseHeaders } = { responseHeaders: false }
1468
+ ) {
1418
1469
  const {
1419
1470
  error,
1420
1471
  } = CatalogPlatformApplicationValidator.getAppProduct().validate(
@@ -1451,12 +1502,12 @@ class Catalog {
1451
1502
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product/${itemId}/`,
1452
1503
  query_params,
1453
1504
  undefined,
1454
- undefined,
1455
- { headers }
1505
+ requestHeaders,
1506
+ { responseHeaders }
1456
1507
  );
1457
1508
 
1458
1509
  let responseData = response;
1459
- if (headers) {
1510
+ if (responseHeaders) {
1460
1511
  responseData = response[0];
1461
1512
  }
1462
1513
 
@@ -1479,6 +1530,7 @@ class Catalog {
1479
1530
 
1480
1531
  /**
1481
1532
  * @param {CatalogPlatformApplicationValidator.GetAppProductsParam} arg - Arg object
1533
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1482
1534
  * @param {import("../PlatformAPIClient").Options} - Options
1483
1535
  * @returns {Promise<CatalogPlatformModel.ProductListingResponse>} - Success response
1484
1536
  * @name getAppProducts
@@ -1495,8 +1547,9 @@ class Catalog {
1495
1547
  pageNo,
1496
1548
  pageSize,
1497
1549
  q,
1498
- } = {},
1499
- { headers } = { headers: false }
1550
+ requestHeaders,
1551
+ } = { requestHeaders: {} },
1552
+ { responseHeaders } = { responseHeaders: false }
1500
1553
  ) {
1501
1554
  const {
1502
1555
  error,
@@ -1556,12 +1609,12 @@ class Catalog {
1556
1609
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/raw-products/`,
1557
1610
  query_params,
1558
1611
  undefined,
1559
- undefined,
1560
- { headers }
1612
+ requestHeaders,
1613
+ { responseHeaders }
1561
1614
  );
1562
1615
 
1563
1616
  let responseData = response;
1564
- if (headers) {
1617
+ if (responseHeaders) {
1565
1618
  responseData = response[0];
1566
1619
  }
1567
1620
 
@@ -1586,6 +1639,7 @@ class Catalog {
1586
1639
  * @param {CatalogPlatformApplicationValidator.GetAppicationProductsParam} arg
1587
1640
  * - Arg object
1588
1641
  *
1642
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1589
1643
  * @param {import("../PlatformAPIClient").Options} - Options
1590
1644
  * @returns {Promise<CatalogPlatformModel.ApplicationProductListingResponse>}
1591
1645
  * - Success response
@@ -1607,8 +1661,9 @@ class Catalog {
1607
1661
  pageNo,
1608
1662
  pageType,
1609
1663
  itemIds,
1610
- } = {},
1611
- { headers } = { headers: false }
1664
+ requestHeaders,
1665
+ } = { requestHeaders: {} },
1666
+ { responseHeaders } = { responseHeaders: false }
1612
1667
  ) {
1613
1668
  const {
1614
1669
  error,
@@ -1677,12 +1732,12 @@ class Catalog {
1677
1732
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/products`,
1678
1733
  query_params,
1679
1734
  undefined,
1680
- undefined,
1681
- { headers }
1735
+ requestHeaders,
1736
+ { responseHeaders }
1682
1737
  );
1683
1738
 
1684
1739
  let responseData = response;
1685
- if (headers) {
1740
+ if (responseHeaders) {
1686
1741
  responseData = response[0];
1687
1742
  }
1688
1743
 
@@ -1779,6 +1834,7 @@ class Catalog {
1779
1834
  * @param {CatalogPlatformApplicationValidator.GetApplicationBrandListingParam} arg
1780
1835
  * - Arg object
1781
1836
  *
1837
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1782
1838
  * @param {import("../PlatformAPIClient").Options} - Options
1783
1839
  * @returns {Promise<CatalogPlatformModel.BrandListingResponse>} - Success response
1784
1840
  * @name getApplicationBrandListing
@@ -1786,8 +1842,8 @@ class Catalog {
1786
1842
  * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrandListing/).
1787
1843
  */
1788
1844
  async getApplicationBrandListing(
1789
- { pageNo, pageSize, q } = {},
1790
- { headers } = { headers: false }
1845
+ { pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
1846
+ { responseHeaders } = { responseHeaders: false }
1791
1847
  ) {
1792
1848
  const {
1793
1849
  error,
@@ -1832,12 +1888,12 @@ class Catalog {
1832
1888
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/brand`,
1833
1889
  query_params,
1834
1890
  undefined,
1835
- undefined,
1836
- { headers }
1891
+ requestHeaders,
1892
+ { responseHeaders }
1837
1893
  );
1838
1894
 
1839
1895
  let responseData = response;
1840
- if (headers) {
1896
+ if (responseHeaders) {
1841
1897
  responseData = response[0];
1842
1898
  }
1843
1899
 
@@ -1904,6 +1960,7 @@ class Catalog {
1904
1960
  * @param {CatalogPlatformApplicationValidator.GetApplicationBrandsParam} arg
1905
1961
  * - Arg object
1906
1962
  *
1963
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1907
1964
  * @param {import("../PlatformAPIClient").Options} - Options
1908
1965
  * @returns {Promise<CatalogPlatformModel.BrandListingResponse>} - Success response
1909
1966
  * @name getApplicationBrands
@@ -1911,8 +1968,10 @@ class Catalog {
1911
1968
  * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrands/).
1912
1969
  */
1913
1970
  async getApplicationBrands(
1914
- { department, pageNo, pageSize, q, brandId } = {},
1915
- { headers } = { headers: false }
1971
+ { department, pageNo, pageSize, q, brandId, requestHeaders } = {
1972
+ requestHeaders: {},
1973
+ },
1974
+ { responseHeaders } = { responseHeaders: false }
1916
1975
  ) {
1917
1976
  const {
1918
1977
  error,
@@ -1963,12 +2022,12 @@ class Catalog {
1963
2022
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/brands`,
1964
2023
  query_params,
1965
2024
  undefined,
1966
- undefined,
1967
- { headers }
2025
+ requestHeaders,
2026
+ { responseHeaders }
1968
2027
  );
1969
2028
 
1970
2029
  let responseData = response;
1971
- if (headers) {
2030
+ if (responseHeaders) {
1972
2031
  responseData = response[0];
1973
2032
  }
1974
2033
 
@@ -2045,6 +2104,7 @@ class Catalog {
2045
2104
  * @param {CatalogPlatformApplicationValidator.GetApplicationCategoryListingParam} arg
2046
2105
  * - Arg object
2047
2106
  *
2107
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2048
2108
  * @param {import("../PlatformAPIClient").Options} - Options
2049
2109
  * @returns {Promise<CatalogPlatformModel.BrandListingResponse>} - Success response
2050
2110
  * @name getApplicationCategoryListing
@@ -2052,8 +2112,10 @@ class Catalog {
2052
2112
  * @description: A brand is the name under which a product is being sold. Use this API to list all the brands. You can pass optionally filter the brands by the department. If successful, returns a paginated list of brands specified in `BrandListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationCategoryListing/).
2053
2113
  */
2054
2114
  async getApplicationCategoryListing(
2055
- { departmentId, pageNo, pageSize, q } = {},
2056
- { headers } = { headers: false }
2115
+ { departmentId, pageNo, pageSize, q, requestHeaders } = {
2116
+ requestHeaders: {},
2117
+ },
2118
+ { responseHeaders } = { responseHeaders: false }
2057
2119
  ) {
2058
2120
  const {
2059
2121
  error,
@@ -2101,12 +2163,12 @@ class Catalog {
2101
2163
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/category`,
2102
2164
  query_params,
2103
2165
  undefined,
2104
- undefined,
2105
- { headers }
2166
+ requestHeaders,
2167
+ { responseHeaders }
2106
2168
  );
2107
2169
 
2108
2170
  let responseData = response;
2109
- if (headers) {
2171
+ if (responseHeaders) {
2110
2172
  responseData = response[0];
2111
2173
  }
2112
2174
 
@@ -2177,6 +2239,7 @@ class Catalog {
2177
2239
  * @param {CatalogPlatformApplicationValidator.GetApplicationDepartmentListingParam} arg
2178
2240
  * - Arg object
2179
2241
  *
2242
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2180
2243
  * @param {import("../PlatformAPIClient").Options} - Options
2181
2244
  * @returns {Promise<CatalogPlatformModel.ApplicationDepartmentListingResponse>}
2182
2245
  * - Success response
@@ -2186,8 +2249,8 @@ class Catalog {
2186
2249
  * @description: Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the application departments. If successful, returns the list of departments specified in `ApplicationDepartmentListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationDepartmentListing/).
2187
2250
  */
2188
2251
  async getApplicationDepartmentListing(
2189
- { pageNo, pageSize, q } = {},
2190
- { headers } = { headers: false }
2252
+ { pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
2253
+ { responseHeaders } = { responseHeaders: false }
2191
2254
  ) {
2192
2255
  const {
2193
2256
  error,
@@ -2232,12 +2295,12 @@ class Catalog {
2232
2295
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/department`,
2233
2296
  query_params,
2234
2297
  undefined,
2235
- undefined,
2236
- { headers }
2298
+ requestHeaders,
2299
+ { responseHeaders }
2237
2300
  );
2238
2301
 
2239
2302
  let responseData = response;
2240
- if (headers) {
2303
+ if (responseHeaders) {
2241
2304
  responseData = response[0];
2242
2305
  }
2243
2306
 
@@ -2301,6 +2364,10 @@ class Catalog {
2301
2364
  }
2302
2365
 
2303
2366
  /**
2367
+ * @param {CatalogPlatformApplicationValidator.GetAutocompleteConfigParam} arg
2368
+ * - Arg object
2369
+ *
2370
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2304
2371
  * @param {import("../PlatformAPIClient").Options} - Options
2305
2372
  * @returns {Promise<CatalogPlatformModel.GetAutocompleteWordsResponse>} -
2306
2373
  * Success response
@@ -2308,7 +2375,10 @@ class Catalog {
2308
2375
  * @summary: List all Autocomplete Keyword Listing
2309
2376
  * @description: Custom Autocomplete Keyword allows you to map conditions with keywords to give you the ultimate results - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteConfig/).
2310
2377
  */
2311
- async getAutocompleteConfig({ headers } = { headers: false }) {
2378
+ async getAutocompleteConfig(
2379
+ { requestHeaders } = { requestHeaders: {} },
2380
+ { responseHeaders } = { responseHeaders: false }
2381
+ ) {
2312
2382
  const {
2313
2383
  error,
2314
2384
  } = CatalogPlatformApplicationValidator.getAutocompleteConfig().validate(
@@ -2341,12 +2411,12 @@ class Catalog {
2341
2411
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/`,
2342
2412
  query_params,
2343
2413
  undefined,
2344
- undefined,
2345
- { headers }
2414
+ requestHeaders,
2415
+ { responseHeaders }
2346
2416
  );
2347
2417
 
2348
2418
  let responseData = response;
2349
- if (headers) {
2419
+ if (responseHeaders) {
2350
2420
  responseData = response[0];
2351
2421
  }
2352
2422
 
@@ -2371,6 +2441,7 @@ class Catalog {
2371
2441
  * @param {CatalogPlatformApplicationValidator.GetAutocompleteKeywordDetailParam} arg
2372
2442
  * - Arg object
2373
2443
  *
2444
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2374
2445
  * @param {import("../PlatformAPIClient").Options} - Options
2375
2446
  * @returns {Promise<CatalogPlatformModel.GetAutocompleteWordsResponse>} -
2376
2447
  * Success response
@@ -2379,8 +2450,8 @@ class Catalog {
2379
2450
  * @description: Get the details of a words by its `id`. If successful, returns a keywords resource in the response body specified in `GetAutocompleteWordsResponseSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteKeywordDetail/).
2380
2451
  */
2381
2452
  async getAutocompleteKeywordDetail(
2382
- { id } = {},
2383
- { headers } = { headers: false }
2453
+ { id, requestHeaders } = { requestHeaders: {} },
2454
+ { responseHeaders } = { responseHeaders: false }
2384
2455
  ) {
2385
2456
  const {
2386
2457
  error,
@@ -2418,12 +2489,12 @@ class Catalog {
2418
2489
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/${id}/`,
2419
2490
  query_params,
2420
2491
  undefined,
2421
- undefined,
2422
- { headers }
2492
+ requestHeaders,
2493
+ { responseHeaders }
2423
2494
  );
2424
2495
 
2425
2496
  let responseData = response;
2426
- if (headers) {
2497
+ if (responseHeaders) {
2427
2498
  responseData = response[0];
2428
2499
  }
2429
2500
 
@@ -2445,6 +2516,10 @@ class Catalog {
2445
2516
  }
2446
2517
 
2447
2518
  /**
2519
+ * @param {CatalogPlatformApplicationValidator.GetCatalogConfigurationParam} arg
2520
+ * - Arg object
2521
+ *
2522
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2448
2523
  * @param {import("../PlatformAPIClient").Options} - Options
2449
2524
  * @returns {Promise<CatalogPlatformModel.GetCatalogConfigurationMetaData>}
2450
2525
  * - Success response
@@ -2453,7 +2528,10 @@ class Catalog {
2453
2528
  * @summary: Get configuration meta details for catalog for admin panel
2454
2529
  * @description: configuration meta details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCatalogConfiguration/).
2455
2530
  */
2456
- async getCatalogConfiguration({ headers } = { headers: false }) {
2531
+ async getCatalogConfiguration(
2532
+ { requestHeaders } = { requestHeaders: {} },
2533
+ { responseHeaders } = { responseHeaders: false }
2534
+ ) {
2457
2535
  const {
2458
2536
  error,
2459
2537
  } = CatalogPlatformApplicationValidator.getCatalogConfiguration().validate(
@@ -2486,12 +2564,12 @@ class Catalog {
2486
2564
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/metadata/`,
2487
2565
  query_params,
2488
2566
  undefined,
2489
- undefined,
2490
- { headers }
2567
+ requestHeaders,
2568
+ { responseHeaders }
2491
2569
  );
2492
2570
 
2493
2571
  let responseData = response;
2494
- if (headers) {
2572
+ if (responseHeaders) {
2495
2573
  responseData = response[0];
2496
2574
  }
2497
2575
 
@@ -2516,13 +2594,17 @@ class Catalog {
2516
2594
  * @param {CatalogPlatformApplicationValidator.GetCatalogInsightsParam} arg
2517
2595
  * - Arg object
2518
2596
  *
2597
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2519
2598
  * @param {import("../PlatformAPIClient").Options} - Options
2520
2599
  * @returns {Promise<CatalogPlatformModel.CatalogInsightResponse>} - Success response
2521
2600
  * @name getCatalogInsights
2522
2601
  * @summary: Analytics data of catalog and inventory.
2523
2602
  * @description: Catalog Insights api returns the count of catalog related data like products, brands, departments and categories that have been made live as per configuration of the app. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCatalogInsights/).
2524
2603
  */
2525
- async getCatalogInsights({ brand } = {}, { headers } = { headers: false }) {
2604
+ async getCatalogInsights(
2605
+ { brand, requestHeaders } = { requestHeaders: {} },
2606
+ { responseHeaders } = { responseHeaders: false }
2607
+ ) {
2526
2608
  const {
2527
2609
  error,
2528
2610
  } = CatalogPlatformApplicationValidator.getCatalogInsights().validate(
@@ -2560,12 +2642,12 @@ class Catalog {
2560
2642
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/analytics/insights/`,
2561
2643
  query_params,
2562
2644
  undefined,
2563
- undefined,
2564
- { headers }
2645
+ requestHeaders,
2646
+ { responseHeaders }
2565
2647
  );
2566
2648
 
2567
2649
  let responseData = response;
2568
- if (headers) {
2650
+ if (responseHeaders) {
2569
2651
  responseData = response[0];
2570
2652
  }
2571
2653
 
@@ -2588,13 +2670,17 @@ class Catalog {
2588
2670
 
2589
2671
  /**
2590
2672
  * @param {CatalogPlatformApplicationValidator.GetCategoriesParam} arg - Arg object
2673
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2591
2674
  * @param {import("../PlatformAPIClient").Options} - Options
2592
2675
  * @returns {Promise<CatalogPlatformModel.CategoryListingResponse>} - Success response
2593
2676
  * @name getCategories
2594
2677
  * @summary: List all the categories
2595
2678
  * @description: List all the categories. You can optionally pass filter the brands by the department. If successful, returns a paginated list of brands specified in `CategoryListingResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCategories/).
2596
2679
  */
2597
- async getCategories({ department } = {}, { headers } = { headers: false }) {
2680
+ async getCategories(
2681
+ { department, requestHeaders } = { requestHeaders: {} },
2682
+ { responseHeaders } = { responseHeaders: false }
2683
+ ) {
2598
2684
  const {
2599
2685
  error,
2600
2686
  } = CatalogPlatformApplicationValidator.getCategories().validate(
@@ -2632,12 +2718,12 @@ class Catalog {
2632
2718
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/categories`,
2633
2719
  query_params,
2634
2720
  undefined,
2635
- undefined,
2636
- { headers }
2721
+ requestHeaders,
2722
+ { responseHeaders }
2637
2723
  );
2638
2724
 
2639
2725
  let responseData = response;
2640
- if (headers) {
2726
+ if (responseHeaders) {
2641
2727
  responseData = response[0];
2642
2728
  }
2643
2729
 
@@ -2662,6 +2748,7 @@ class Catalog {
2662
2748
  * @param {CatalogPlatformApplicationValidator.GetCollectionDetailParam} arg
2663
2749
  * - Arg object
2664
2750
  *
2751
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2665
2752
  * @param {import("../PlatformAPIClient").Options} - Options
2666
2753
  * @returns {Promise<CatalogPlatformModel.CollectionDetailResponse>} -
2667
2754
  * Success response
@@ -2669,7 +2756,10 @@ class Catalog {
2669
2756
  * @summary: Get a particular collection
2670
2757
  * @description: Get the details of a collection by its `slug`. If successful, returns a Collection resource in the response body specified in `CollectionDetailResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCollectionDetail/).
2671
2758
  */
2672
- async getCollectionDetail({ slug } = {}, { headers } = { headers: false }) {
2759
+ async getCollectionDetail(
2760
+ { slug, requestHeaders } = { requestHeaders: {} },
2761
+ { responseHeaders } = { responseHeaders: false }
2762
+ ) {
2673
2763
  const {
2674
2764
  error,
2675
2765
  } = CatalogPlatformApplicationValidator.getCollectionDetail().validate(
@@ -2706,12 +2796,12 @@ class Catalog {
2706
2796
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${slug}/`,
2707
2797
  query_params,
2708
2798
  undefined,
2709
- undefined,
2710
- { headers }
2799
+ requestHeaders,
2800
+ { responseHeaders }
2711
2801
  );
2712
2802
 
2713
2803
  let responseData = response;
2714
- if (headers) {
2804
+ if (responseHeaders) {
2715
2805
  responseData = response[0];
2716
2806
  }
2717
2807
 
@@ -2736,6 +2826,7 @@ class Catalog {
2736
2826
  * @param {CatalogPlatformApplicationValidator.GetCollectionItemsParam} arg
2737
2827
  * - Arg object
2738
2828
  *
2829
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2739
2830
  * @param {import("../PlatformAPIClient").Options} - Options
2740
2831
  * @returns {Promise<CatalogPlatformModel.GetCollectionItemsResponse>} -
2741
2832
  * Success response
@@ -2744,8 +2835,8 @@ class Catalog {
2744
2835
  * @description: Get items from a collection specified by its `id`. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCollectionItems/).
2745
2836
  */
2746
2837
  async getCollectionItems(
2747
- { id, sortOn, pageId, pageSize } = {},
2748
- { headers } = { headers: false }
2838
+ { id, sortOn, pageId, pageSize, requestHeaders } = { requestHeaders: {} },
2839
+ { responseHeaders } = { responseHeaders: false }
2749
2840
  ) {
2750
2841
  const {
2751
2842
  error,
@@ -2792,12 +2883,12 @@ class Catalog {
2792
2883
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${id}/items/`,
2793
2884
  query_params,
2794
2885
  undefined,
2795
- undefined,
2796
- { headers }
2886
+ requestHeaders,
2887
+ { responseHeaders }
2797
2888
  );
2798
2889
 
2799
2890
  let responseData = response;
2800
- if (headers) {
2891
+ if (responseHeaders) {
2801
2892
  responseData = response[0];
2802
2893
  }
2803
2894
 
@@ -2822,6 +2913,7 @@ class Catalog {
2822
2913
  * @param {CatalogPlatformApplicationValidator.GetConfigurationByTypeParam} arg
2823
2914
  * - Arg object
2824
2915
  *
2916
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2825
2917
  * @param {import("../PlatformAPIClient").Options} - Options
2826
2918
  * @returns {Promise<CatalogPlatformModel.GetAppCatalogEntityConfiguration>}
2827
2919
  * - Success response
@@ -2831,8 +2923,8 @@ class Catalog {
2831
2923
  * @description: configured details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurationByType/).
2832
2924
  */
2833
2925
  async getConfigurationByType(
2834
- { type } = {},
2835
- { headers } = { headers: false }
2926
+ { type, requestHeaders } = { requestHeaders: {} },
2927
+ { responseHeaders } = { responseHeaders: false }
2836
2928
  ) {
2837
2929
  const {
2838
2930
  error,
@@ -2870,12 +2962,12 @@ class Catalog {
2870
2962
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${type}/`,
2871
2963
  query_params,
2872
2964
  undefined,
2873
- undefined,
2874
- { headers }
2965
+ requestHeaders,
2966
+ { responseHeaders }
2875
2967
  );
2876
2968
 
2877
2969
  let responseData = response;
2878
- if (headers) {
2970
+ if (responseHeaders) {
2879
2971
  responseData = response[0];
2880
2972
  }
2881
2973
 
@@ -2900,6 +2992,7 @@ class Catalog {
2900
2992
  * @param {CatalogPlatformApplicationValidator.GetConfigurationMetadataParam} arg
2901
2993
  * - Arg object
2902
2994
  *
2995
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2903
2996
  * @param {import("../PlatformAPIClient").Options} - Options
2904
2997
  * @returns {Promise<CatalogPlatformModel.GetConfigMetadataResponse>} -
2905
2998
  * Success response
@@ -2908,8 +3001,8 @@ class Catalog {
2908
3001
  * @description: Get the configuraion metadata details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurationMetadata/).
2909
3002
  */
2910
3003
  async getConfigurationMetadata(
2911
- { configType, templateSlug } = {},
2912
- { headers } = { headers: false }
3004
+ { configType, templateSlug, requestHeaders } = { requestHeaders: {} },
3005
+ { responseHeaders } = { responseHeaders: false }
2913
3006
  ) {
2914
3007
  const {
2915
3008
  error,
@@ -2950,12 +3043,12 @@ class Catalog {
2950
3043
  `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/metadata/`,
2951
3044
  query_params,
2952
3045
  undefined,
2953
- undefined,
2954
- { headers }
3046
+ requestHeaders,
3047
+ { responseHeaders }
2955
3048
  );
2956
3049
 
2957
3050
  let responseData = response;
2958
- if (headers) {
3051
+ if (responseHeaders) {
2959
3052
  responseData = response[0];
2960
3053
  }
2961
3054
 
@@ -2977,6 +3070,10 @@ class Catalog {
2977
3070
  }
2978
3071
 
2979
3072
  /**
3073
+ * @param {CatalogPlatformApplicationValidator.GetConfigurationsParam} arg
3074
+ * - Arg object
3075
+ *
3076
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2980
3077
  * @param {import("../PlatformAPIClient").Options} - Options
2981
3078
  * @returns {Promise<CatalogPlatformModel.GetAppCatalogConfiguration>} -
2982
3079
  * Success response
@@ -2984,7 +3081,10 @@ class Catalog {
2984
3081
  * @summary: Get configured details for catalog
2985
3082
  * @description: configured details for catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurations/).
2986
3083
  */
2987
- async getConfigurations({ headers } = { headers: false }) {
3084
+ async getConfigurations(
3085
+ { requestHeaders } = { requestHeaders: {} },
3086
+ { responseHeaders } = { responseHeaders: false }
3087
+ ) {
2988
3088
  const {
2989
3089
  error,
2990
3090
  } = CatalogPlatformApplicationValidator.getConfigurations().validate(
@@ -3017,12 +3117,12 @@ class Catalog {
3017
3117
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/`,
3018
3118
  query_params,
3019
3119
  undefined,
3020
- undefined,
3021
- { headers }
3120
+ requestHeaders,
3121
+ { responseHeaders }
3022
3122
  );
3023
3123
 
3024
3124
  let responseData = response;
3025
- if (headers) {
3125
+ if (responseHeaders) {
3026
3126
  responseData = response[0];
3027
3127
  }
3028
3128
 
@@ -3044,13 +3144,18 @@ class Catalog {
3044
3144
  }
3045
3145
 
3046
3146
  /**
3147
+ * @param {CatalogPlatformApplicationValidator.GetDepartmentsParam} arg - Arg object
3148
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3047
3149
  * @param {import("../PlatformAPIClient").Options} - Options
3048
3150
  * @returns {Promise<CatalogPlatformModel.DepartmentResponse>} - Success response
3049
3151
  * @name getDepartments
3050
3152
  * @summary: List all the departments
3051
3153
  * @description: Departments are a way to categorise similar products. A product can lie in multiple departments. For example, a skirt can below to the 'Women's Fashion' Department while a handbag can lie in 'Women's Accessories' Department. Use this API to list all the departments. If successful, returns the list of departments specified in `DepartmentResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDepartments/).
3052
3154
  */
3053
- async getDepartments({ headers } = { headers: false }) {
3155
+ async getDepartments(
3156
+ { requestHeaders } = { requestHeaders: {} },
3157
+ { responseHeaders } = { responseHeaders: false }
3158
+ ) {
3054
3159
  const {
3055
3160
  error,
3056
3161
  } = CatalogPlatformApplicationValidator.getDepartments().validate(
@@ -3083,12 +3188,12 @@ class Catalog {
3083
3188
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/departments`,
3084
3189
  query_params,
3085
3190
  undefined,
3086
- undefined,
3087
- { headers }
3191
+ requestHeaders,
3192
+ { responseHeaders }
3088
3193
  );
3089
3194
 
3090
3195
  let responseData = response;
3091
- if (headers) {
3196
+ if (responseHeaders) {
3092
3197
  responseData = response[0];
3093
3198
  }
3094
3199
 
@@ -3113,6 +3218,7 @@ class Catalog {
3113
3218
  * @param {CatalogPlatformApplicationValidator.GetDiscountedInventoryBySizeIdentifierParam} arg
3114
3219
  * - Arg object
3115
3220
  *
3221
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3116
3222
  * @param {import("../PlatformAPIClient").Options} - Options
3117
3223
  * @returns {Promise<CatalogPlatformModel.InventorySellerIdentifierResponsePaginated>}
3118
3224
  * - Success response
@@ -3122,8 +3228,16 @@ class Catalog {
3122
3228
  * @description: This API allows get Inventory data for particular company grouped by size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDiscountedInventoryBySizeIdentifier/).
3123
3229
  */
3124
3230
  async getDiscountedInventoryBySizeIdentifier(
3125
- { itemId, sizeIdentifier, pageNo, pageSize, q, locationIds } = {},
3126
- { headers } = { headers: false }
3231
+ {
3232
+ itemId,
3233
+ sizeIdentifier,
3234
+ pageNo,
3235
+ pageSize,
3236
+ q,
3237
+ locationIds,
3238
+ requestHeaders,
3239
+ } = { requestHeaders: {} },
3240
+ { responseHeaders } = { responseHeaders: false }
3127
3241
  ) {
3128
3242
  const {
3129
3243
  error,
@@ -3175,12 +3289,12 @@ class Catalog {
3175
3289
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/products/${itemId}/inventory/${sizeIdentifier}`,
3176
3290
  query_params,
3177
3291
  undefined,
3178
- undefined,
3179
- { headers }
3292
+ requestHeaders,
3293
+ { responseHeaders }
3180
3294
  );
3181
3295
 
3182
3296
  let responseData = response;
3183
- if (headers) {
3297
+ if (responseHeaders) {
3184
3298
  responseData = response[0];
3185
3299
  }
3186
3300
 
@@ -3205,6 +3319,7 @@ class Catalog {
3205
3319
  * @param {CatalogPlatformApplicationValidator.GetGroupConfigurationsParam} arg
3206
3320
  * - Arg object
3207
3321
  *
3322
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3208
3323
  * @param {import("../PlatformAPIClient").Options} - Options
3209
3324
  * @returns {Promise<CatalogPlatformModel.GetConfigResponse>} - Success response
3210
3325
  * @name getGroupConfigurations
@@ -3212,8 +3327,10 @@ class Catalog {
3212
3327
  * @description: Get the details of the application configured configurations of group config types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getGroupConfigurations/).
3213
3328
  */
3214
3329
  async getGroupConfigurations(
3215
- { configType, pageNo, pageSize, search, templateSlug } = {},
3216
- { headers } = { headers: false }
3330
+ { configType, pageNo, pageSize, search, templateSlug, requestHeaders } = {
3331
+ requestHeaders: {},
3332
+ },
3333
+ { responseHeaders } = { responseHeaders: false }
3217
3334
  ) {
3218
3335
  const {
3219
3336
  error,
@@ -3263,12 +3380,12 @@ class Catalog {
3263
3380
  `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/groups`,
3264
3381
  query_params,
3265
3382
  undefined,
3266
- undefined,
3267
- { headers }
3383
+ requestHeaders,
3384
+ { responseHeaders }
3268
3385
  );
3269
3386
 
3270
3387
  let responseData = response;
3271
- if (headers) {
3388
+ if (responseHeaders) {
3272
3389
  responseData = response[0];
3273
3390
  }
3274
3391
 
@@ -3293,6 +3410,7 @@ class Catalog {
3293
3410
  * @param {CatalogPlatformApplicationValidator.GetListingConfigurationsParam} arg
3294
3411
  * - Arg object
3295
3412
  *
3413
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3296
3414
  * @param {import("../PlatformAPIClient").Options} - Options
3297
3415
  * @returns {Promise<CatalogPlatformModel.GetConfigResponse>} - Success response
3298
3416
  * @name getListingConfigurations
@@ -3300,8 +3418,10 @@ class Catalog {
3300
3418
  * @description: Get the details of the application configured configurations of listing config types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getListingConfigurations/).
3301
3419
  */
3302
3420
  async getListingConfigurations(
3303
- { configType, pageNo, pageSize, search } = {},
3304
- { headers } = { headers: false }
3421
+ { configType, pageNo, pageSize, search, requestHeaders } = {
3422
+ requestHeaders: {},
3423
+ },
3424
+ { responseHeaders } = { responseHeaders: false }
3305
3425
  ) {
3306
3426
  const {
3307
3427
  error,
@@ -3348,12 +3468,12 @@ class Catalog {
3348
3468
  `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/`,
3349
3469
  query_params,
3350
3470
  undefined,
3351
- undefined,
3352
- { headers }
3471
+ requestHeaders,
3472
+ { responseHeaders }
3353
3473
  );
3354
3474
 
3355
3475
  let responseData = response;
3356
- if (headers) {
3476
+ if (responseHeaders) {
3357
3477
  responseData = response[0];
3358
3478
  }
3359
3479
 
@@ -3378,6 +3498,7 @@ class Catalog {
3378
3498
  * @param {CatalogPlatformApplicationValidator.GetProductDetailBySlugParam} arg
3379
3499
  * - Arg object
3380
3500
  *
3501
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3381
3502
  * @param {import("../PlatformAPIClient").Options} - Options
3382
3503
  * @returns {Promise<CatalogPlatformModel.ProductDetail>} - Success response
3383
3504
  * @name getProductDetailBySlug
@@ -3385,8 +3506,8 @@ class Catalog {
3385
3506
  * @description: Products are the core resource of an application. Products can be associated by categories, collections, brands and more. This API retrieves the product specified by the given **slug**. If successful, returns a Product resource in the response body specified in `ProductDetail` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductDetailBySlug/).
3386
3507
  */
3387
3508
  async getProductDetailBySlug(
3388
- { slug } = {},
3389
- { headers } = { headers: false }
3509
+ { slug, requestHeaders } = { requestHeaders: {} },
3510
+ { responseHeaders } = { responseHeaders: false }
3390
3511
  ) {
3391
3512
  const {
3392
3513
  error,
@@ -3424,12 +3545,12 @@ class Catalog {
3424
3545
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/products/${slug}`,
3425
3546
  query_params,
3426
3547
  undefined,
3427
- undefined,
3428
- { headers }
3548
+ requestHeaders,
3549
+ { responseHeaders }
3429
3550
  );
3430
3551
 
3431
3552
  let responseData = response;
3432
- if (headers) {
3553
+ if (responseHeaders) {
3433
3554
  responseData = response[0];
3434
3555
  }
3435
3556
 
@@ -3451,6 +3572,8 @@ class Catalog {
3451
3572
  }
3452
3573
 
3453
3574
  /**
3575
+ * @param {CatalogPlatformApplicationValidator.GetQueryFiltersParam} arg - Arg object
3576
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3454
3577
  * @param {import("../PlatformAPIClient").Options} - Options
3455
3578
  * @returns {Promise<CatalogPlatformModel.GetCollectionQueryOptionResponse>}
3456
3579
  * - Success response
@@ -3459,7 +3582,10 @@ class Catalog {
3459
3582
  * @summary: Get query filters to configure a collection
3460
3583
  * @description: Get query filters to configure a collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getQueryFilters/).
3461
3584
  */
3462
- async getQueryFilters({ headers } = { headers: false }) {
3585
+ async getQueryFilters(
3586
+ { requestHeaders } = { requestHeaders: {} },
3587
+ { responseHeaders } = { responseHeaders: false }
3588
+ ) {
3463
3589
  const {
3464
3590
  error,
3465
3591
  } = CatalogPlatformApplicationValidator.getQueryFilters().validate(
@@ -3492,12 +3618,12 @@ class Catalog {
3492
3618
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/query-options/`,
3493
3619
  query_params,
3494
3620
  undefined,
3495
- undefined,
3496
- { headers }
3621
+ requestHeaders,
3622
+ { responseHeaders }
3497
3623
  );
3498
3624
 
3499
3625
  let responseData = response;
3500
- if (headers) {
3626
+ if (responseHeaders) {
3501
3627
  responseData = response[0];
3502
3628
  }
3503
3629
 
@@ -3522,6 +3648,7 @@ class Catalog {
3522
3648
  * @param {CatalogPlatformApplicationValidator.GetSearchKeywordsParam} arg
3523
3649
  * - Arg object
3524
3650
  *
3651
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3525
3652
  * @param {import("../PlatformAPIClient").Options} - Options
3526
3653
  * @returns {Promise<CatalogPlatformModel.GetSearchWordsDetailResponse>} -
3527
3654
  * Success response
@@ -3529,7 +3656,10 @@ class Catalog {
3529
3656
  * @summary: Get a Search Keywords Details
3530
3657
  * @description: Get the details of a words by its `id`. If successful, returns a Collection resource in the response body specified in `GetSearchWordsDetailResponseSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSearchKeywords/).
3531
3658
  */
3532
- async getSearchKeywords({ id } = {}, { headers } = { headers: false }) {
3659
+ async getSearchKeywords(
3660
+ { id, requestHeaders } = { requestHeaders: {} },
3661
+ { responseHeaders } = { responseHeaders: false }
3662
+ ) {
3533
3663
  const {
3534
3664
  error,
3535
3665
  } = CatalogPlatformApplicationValidator.getSearchKeywords().validate(
@@ -3566,12 +3696,12 @@ class Catalog {
3566
3696
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/${id}/`,
3567
3697
  query_params,
3568
3698
  undefined,
3569
- undefined,
3570
- { headers }
3699
+ requestHeaders,
3700
+ { responseHeaders }
3571
3701
  );
3572
3702
 
3573
3703
  let responseData = response;
3574
- if (headers) {
3704
+ if (responseHeaders) {
3575
3705
  responseData = response[0];
3576
3706
  }
3577
3707
 
@@ -3596,13 +3726,17 @@ class Catalog {
3596
3726
  * @param {CatalogPlatformApplicationValidator.UpdateAllowSingleParam} arg
3597
3727
  * - Arg object
3598
3728
  *
3729
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3599
3730
  * @param {import("../PlatformAPIClient").Options} - Options
3600
3731
  * @returns {Promise<CatalogPlatformModel.ConfigSuccessResponse>} - Success response
3601
3732
  * @name updateAllowSingle
3602
3733
  * @summary: Update allow single flag for filters of the application.
3603
3734
  * @description: Update allow single flag for filters of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAllowSingle/).
3604
3735
  */
3605
- async updateAllowSingle({ body } = {}, { headers } = { headers: false }) {
3736
+ async updateAllowSingle(
3737
+ { body, requestHeaders } = { requestHeaders: {} },
3738
+ { responseHeaders } = { responseHeaders: false }
3739
+ ) {
3606
3740
  const {
3607
3741
  error,
3608
3742
  } = CatalogPlatformApplicationValidator.updateAllowSingle().validate(
@@ -3639,12 +3773,12 @@ class Catalog {
3639
3773
  `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/filter/allow_single`,
3640
3774
  query_params,
3641
3775
  body,
3642
- undefined,
3643
- { headers }
3776
+ requestHeaders,
3777
+ { responseHeaders }
3644
3778
  );
3645
3779
 
3646
3780
  let responseData = response;
3647
- if (headers) {
3781
+ if (responseHeaders) {
3648
3782
  responseData = response[0];
3649
3783
  }
3650
3784
 
@@ -3667,6 +3801,7 @@ class Catalog {
3667
3801
 
3668
3802
  /**
3669
3803
  * @param {CatalogPlatformApplicationValidator.UpdateAppBrandParam} arg - Arg object
3804
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3670
3805
  * @param {import("../PlatformAPIClient").Options} - Options
3671
3806
  * @returns {Promise<CatalogPlatformModel.SuccessResponse1>} - Success response
3672
3807
  * @name updateAppBrand
@@ -3674,8 +3809,8 @@ class Catalog {
3674
3809
  * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppBrand/).
3675
3810
  */
3676
3811
  async updateAppBrand(
3677
- { brandUid, body } = {},
3678
- { headers } = { headers: false }
3812
+ { brandUid, body, requestHeaders } = { requestHeaders: {} },
3813
+ { responseHeaders } = { responseHeaders: false }
3679
3814
  ) {
3680
3815
  const {
3681
3816
  error,
@@ -3715,12 +3850,12 @@ class Catalog {
3715
3850
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/brand/${brandUid}`,
3716
3851
  query_params,
3717
3852
  body,
3718
- undefined,
3719
- { headers }
3853
+ requestHeaders,
3854
+ { responseHeaders }
3720
3855
  );
3721
3856
 
3722
3857
  let responseData = response;
3723
- if (headers) {
3858
+ if (responseHeaders) {
3724
3859
  responseData = response[0];
3725
3860
  }
3726
3861
 
@@ -3745,6 +3880,7 @@ class Catalog {
3745
3880
  * @param {CatalogPlatformApplicationValidator.UpdateAppCategoryParam} arg
3746
3881
  * - Arg object
3747
3882
  *
3883
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3748
3884
  * @param {import("../PlatformAPIClient").Options} - Options
3749
3885
  * @returns {Promise<CatalogPlatformModel.SuccessResponse1>} - Success response
3750
3886
  * @name updateAppCategory
@@ -3752,8 +3888,8 @@ class Catalog {
3752
3888
  * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppCategory/).
3753
3889
  */
3754
3890
  async updateAppCategory(
3755
- { categoryUid, body } = {},
3756
- { headers } = { headers: false }
3891
+ { categoryUid, body, requestHeaders } = { requestHeaders: {} },
3892
+ { responseHeaders } = { responseHeaders: false }
3757
3893
  ) {
3758
3894
  const {
3759
3895
  error,
@@ -3793,12 +3929,12 @@ class Catalog {
3793
3929
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/category/${categoryUid}`,
3794
3930
  query_params,
3795
3931
  body,
3796
- undefined,
3797
- { headers }
3932
+ requestHeaders,
3933
+ { responseHeaders }
3798
3934
  );
3799
3935
 
3800
3936
  let responseData = response;
3801
- if (headers) {
3937
+ if (responseHeaders) {
3802
3938
  responseData = response[0];
3803
3939
  }
3804
3940
 
@@ -3823,6 +3959,7 @@ class Catalog {
3823
3959
  * @param {CatalogPlatformApplicationValidator.UpdateAppDepartmentParam} arg
3824
3960
  * - Arg object
3825
3961
  *
3962
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3826
3963
  * @param {import("../PlatformAPIClient").Options} - Options
3827
3964
  * @returns {Promise<CatalogPlatformModel.SuccessResponse1>} - Success response
3828
3965
  * @name updateAppDepartment
@@ -3830,8 +3967,8 @@ class Catalog {
3830
3967
  * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppDepartment/).
3831
3968
  */
3832
3969
  async updateAppDepartment(
3833
- { departmentUid, body } = {},
3834
- { headers } = { headers: false }
3970
+ { departmentUid, body, requestHeaders } = { requestHeaders: {} },
3971
+ { responseHeaders } = { responseHeaders: false }
3835
3972
  ) {
3836
3973
  const {
3837
3974
  error,
@@ -3871,12 +4008,12 @@ class Catalog {
3871
4008
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/department/${departmentUid}`,
3872
4009
  query_params,
3873
4010
  body,
3874
- undefined,
3875
- { headers }
4011
+ requestHeaders,
4012
+ { responseHeaders }
3876
4013
  );
3877
4014
 
3878
4015
  let responseData = response;
3879
- if (headers) {
4016
+ if (responseHeaders) {
3880
4017
  responseData = response[0];
3881
4018
  }
3882
4019
 
@@ -3901,6 +4038,7 @@ class Catalog {
3901
4038
  * @param {CatalogPlatformApplicationValidator.UpdateAppLocationParam} arg
3902
4039
  * - Arg object
3903
4040
  *
4041
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3904
4042
  * @param {import("../PlatformAPIClient").Options} - Options
3905
4043
  * @returns {Promise<CatalogPlatformModel.SuccessResponse1>} - Success response
3906
4044
  * @name updateAppLocation
@@ -3908,8 +4046,8 @@ class Catalog {
3908
4046
  * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppLocation/).
3909
4047
  */
3910
4048
  async updateAppLocation(
3911
- { storeUid, body } = {},
3912
- { headers } = { headers: false }
4049
+ { storeUid, body, requestHeaders } = { requestHeaders: {} },
4050
+ { responseHeaders } = { responseHeaders: false }
3913
4051
  ) {
3914
4052
  const {
3915
4053
  error,
@@ -3949,12 +4087,12 @@ class Catalog {
3949
4087
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/${storeUid}`,
3950
4088
  query_params,
3951
4089
  body,
3952
- undefined,
3953
- { headers }
4090
+ requestHeaders,
4091
+ { responseHeaders }
3954
4092
  );
3955
4093
 
3956
4094
  let responseData = response;
3957
- if (headers) {
4095
+ if (responseHeaders) {
3958
4096
  responseData = response[0];
3959
4097
  }
3960
4098
 
@@ -3977,6 +4115,7 @@ class Catalog {
3977
4115
 
3978
4116
  /**
3979
4117
  * @param {CatalogPlatformApplicationValidator.UpdateAppProductParam} arg - Arg object
4118
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3980
4119
  * @param {import("../PlatformAPIClient").Options} - Options
3981
4120
  * @returns {Promise<CatalogPlatformModel.SuccessResponse1>} - Success response
3982
4121
  * @name updateAppProduct
@@ -3984,8 +4123,8 @@ class Catalog {
3984
4123
  * @description: This API helps to update data associated to a item custom meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppProduct/).
3985
4124
  */
3986
4125
  async updateAppProduct(
3987
- { itemId, body } = {},
3988
- { headers } = { headers: false }
4126
+ { itemId, body, requestHeaders } = { requestHeaders: {} },
4127
+ { responseHeaders } = { responseHeaders: false }
3989
4128
  ) {
3990
4129
  const {
3991
4130
  error,
@@ -4025,12 +4164,12 @@ class Catalog {
4025
4164
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/product/${itemId}/`,
4026
4165
  query_params,
4027
4166
  body,
4028
- undefined,
4029
- { headers }
4167
+ requestHeaders,
4168
+ { responseHeaders }
4030
4169
  );
4031
4170
 
4032
4171
  let responseData = response;
4033
- if (headers) {
4172
+ if (responseHeaders) {
4034
4173
  responseData = response[0];
4035
4174
  }
4036
4175
 
@@ -4055,6 +4194,7 @@ class Catalog {
4055
4194
  * @param {CatalogPlatformApplicationValidator.UpdateAutocompleteKeywordParam} arg
4056
4195
  * - Arg object
4057
4196
  *
4197
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4058
4198
  * @param {import("../PlatformAPIClient").Options} - Options
4059
4199
  * @returns {Promise<CatalogPlatformModel.GetAutocompleteWordsResponse>} -
4060
4200
  * Success response
@@ -4063,8 +4203,8 @@ class Catalog {
4063
4203
  * @description: Update a mapping by it's id. On successful request, returns the updated Keyword mapping - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAutocompleteKeyword/).
4064
4204
  */
4065
4205
  async updateAutocompleteKeyword(
4066
- { id, body } = {},
4067
- { headers } = { headers: false }
4206
+ { id, body, requestHeaders } = { requestHeaders: {} },
4207
+ { responseHeaders } = { responseHeaders: false }
4068
4208
  ) {
4069
4209
  const {
4070
4210
  error,
@@ -4104,12 +4244,12 @@ class Catalog {
4104
4244
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/autocomplete/${id}/`,
4105
4245
  query_params,
4106
4246
  body,
4107
- undefined,
4108
- { headers }
4247
+ requestHeaders,
4248
+ { responseHeaders }
4109
4249
  );
4110
4250
 
4111
4251
  let responseData = response;
4112
- if (headers) {
4252
+ if (responseHeaders) {
4113
4253
  responseData = response[0];
4114
4254
  }
4115
4255
 
@@ -4132,13 +4272,17 @@ class Catalog {
4132
4272
 
4133
4273
  /**
4134
4274
  * @param {CatalogPlatformApplicationValidator.UpdateCollectionParam} arg - Arg object
4275
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4135
4276
  * @param {import("../PlatformAPIClient").Options} - Options
4136
4277
  * @returns {Promise<CatalogPlatformModel.UpdateCollection>} - Success response
4137
4278
  * @name updateCollection
4138
4279
  * @summary: Update a collection
4139
4280
  * @description: Update a collection by it's id. On successful request, returns the updated collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateCollection/).
4140
4281
  */
4141
- async updateCollection({ id, body } = {}, { headers } = { headers: false }) {
4282
+ async updateCollection(
4283
+ { id, body, requestHeaders } = { requestHeaders: {} },
4284
+ { responseHeaders } = { responseHeaders: false }
4285
+ ) {
4142
4286
  const {
4143
4287
  error,
4144
4288
  } = CatalogPlatformApplicationValidator.updateCollection().validate(
@@ -4177,12 +4321,12 @@ class Catalog {
4177
4321
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/collections/${id}/`,
4178
4322
  query_params,
4179
4323
  body,
4180
- undefined,
4181
- { headers }
4324
+ requestHeaders,
4325
+ { responseHeaders }
4182
4326
  );
4183
4327
 
4184
4328
  let responseData = response;
4185
- if (headers) {
4329
+ if (responseHeaders) {
4186
4330
  responseData = response[0];
4187
4331
  }
4188
4332
 
@@ -4207,13 +4351,17 @@ class Catalog {
4207
4351
  * @param {CatalogPlatformApplicationValidator.UpdateDefaultSortParam} arg
4208
4352
  * - Arg object
4209
4353
  *
4354
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4210
4355
  * @param {import("../PlatformAPIClient").Options} - Options
4211
4356
  * @returns {Promise<CatalogPlatformModel.ConfigSuccessResponse>} - Success response
4212
4357
  * @name updateDefaultSort
4213
4358
  * @summary: Update the default sort key configuration for the application.
4214
4359
  * @description: Update the default sort key configuration for the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateDefaultSort/).
4215
4360
  */
4216
- async updateDefaultSort({ body } = {}, { headers } = { headers: false }) {
4361
+ async updateDefaultSort(
4362
+ { body, requestHeaders } = { requestHeaders: {} },
4363
+ { responseHeaders } = { responseHeaders: false }
4364
+ ) {
4217
4365
  const {
4218
4366
  error,
4219
4367
  } = CatalogPlatformApplicationValidator.updateDefaultSort().validate(
@@ -4250,12 +4398,12 @@ class Catalog {
4250
4398
  `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/sort/default_key`,
4251
4399
  query_params,
4252
4400
  body,
4253
- undefined,
4254
- { headers }
4401
+ requestHeaders,
4402
+ { responseHeaders }
4255
4403
  );
4256
4404
 
4257
4405
  let responseData = response;
4258
- if (headers) {
4406
+ if (responseHeaders) {
4259
4407
  responseData = response[0];
4260
4408
  }
4261
4409
 
@@ -4280,6 +4428,7 @@ class Catalog {
4280
4428
  * @param {CatalogPlatformApplicationValidator.UpdateGroupConfigurationParam} arg
4281
4429
  * - Arg object
4282
4430
  *
4431
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4283
4432
  * @param {import("../PlatformAPIClient").Options} - Options
4284
4433
  * @returns {Promise<CatalogPlatformModel.AppConfigurationDetail>} - Success response
4285
4434
  * @name updateGroupConfiguration
@@ -4287,8 +4436,8 @@ class Catalog {
4287
4436
  * @description: Update the group configurations for the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateGroupConfiguration/).
4288
4437
  */
4289
4438
  async updateGroupConfiguration(
4290
- { configType, groupSlug, body } = {},
4291
- { headers } = { headers: false }
4439
+ { configType, groupSlug, body, requestHeaders } = { requestHeaders: {} },
4440
+ { responseHeaders } = { responseHeaders: false }
4292
4441
  ) {
4293
4442
  const {
4294
4443
  error,
@@ -4330,12 +4479,12 @@ class Catalog {
4330
4479
  `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/groups/${groupSlug}`,
4331
4480
  query_params,
4332
4481
  body,
4333
- undefined,
4334
- { headers }
4482
+ requestHeaders,
4483
+ { responseHeaders }
4335
4484
  );
4336
4485
 
4337
4486
  let responseData = response;
4338
- if (headers) {
4487
+ if (responseHeaders) {
4339
4488
  responseData = response[0];
4340
4489
  }
4341
4490
 
@@ -4360,6 +4509,7 @@ class Catalog {
4360
4509
  * @param {CatalogPlatformApplicationValidator.UpdateListingConfigurationParam} arg
4361
4510
  * - Arg object
4362
4511
  *
4512
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4363
4513
  * @param {import("../PlatformAPIClient").Options} - Options
4364
4514
  * @returns {Promise<CatalogPlatformModel.AppConfigurationsSort>} - Success response
4365
4515
  * @name updateListingConfiguration
@@ -4367,8 +4517,8 @@ class Catalog {
4367
4517
  * @description: Update configuration for listing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateListingConfiguration/).
4368
4518
  */
4369
4519
  async updateListingConfiguration(
4370
- { configType, configId, body } = {},
4371
- { headers } = { headers: false }
4520
+ { configType, configId, body, requestHeaders } = { requestHeaders: {} },
4521
+ { responseHeaders } = { responseHeaders: false }
4372
4522
  ) {
4373
4523
  const {
4374
4524
  error,
@@ -4410,12 +4560,12 @@ class Catalog {
4410
4560
  `/service/platform/catalog/v2.0/company/${this.config.companyId}/application/${this.applicationId}/product-configuration/${configType}/item/${configId}/`,
4411
4561
  query_params,
4412
4562
  body,
4413
- undefined,
4414
- { headers }
4563
+ requestHeaders,
4564
+ { responseHeaders }
4415
4565
  );
4416
4566
 
4417
4567
  let responseData = response;
4418
- if (headers) {
4568
+ if (responseHeaders) {
4419
4569
  responseData = response[0];
4420
4570
  }
4421
4571
 
@@ -4440,6 +4590,7 @@ class Catalog {
4440
4590
  * @param {CatalogPlatformApplicationValidator.UpdateSearchKeywordsParam} arg
4441
4591
  * - Arg object
4442
4592
  *
4593
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4443
4594
  * @param {import("../PlatformAPIClient").Options} - Options
4444
4595
  * @returns {Promise<CatalogPlatformModel.GetSearchWordsData>} - Success response
4445
4596
  * @name updateSearchKeywords
@@ -4447,8 +4598,8 @@ class Catalog {
4447
4598
  * @description: Update Search Keyword by its id. On successful request, returns the updated collection - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSearchKeywords/).
4448
4599
  */
4449
4600
  async updateSearchKeywords(
4450
- { id, body } = {},
4451
- { headers } = { headers: false }
4601
+ { id, body, requestHeaders } = { requestHeaders: {} },
4602
+ { responseHeaders } = { responseHeaders: false }
4452
4603
  ) {
4453
4604
  const {
4454
4605
  error,
@@ -4488,12 +4639,12 @@ class Catalog {
4488
4639
  `/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/search/keyword/${id}/`,
4489
4640
  query_params,
4490
4641
  body,
4491
- undefined,
4492
- { headers }
4642
+ requestHeaders,
4643
+ { responseHeaders }
4493
4644
  );
4494
4645
 
4495
4646
  let responseData = response;
4496
- if (headers) {
4647
+ if (responseHeaders) {
4497
4648
  responseData = response[0];
4498
4649
  }
4499
4650