@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
@@ -13,13 +13,17 @@ class Configuration {
13
13
 
14
14
  /**
15
15
  * @param {ConfigurationPlatformValidator.CreateApplicationParam} arg - Arg object
16
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
16
17
  * @param {import("../PlatformAPIClient").Options} - Options
17
18
  * @returns {Promise<ConfigurationPlatformModel.CreateAppResponse>} - Success response
18
19
  * @name createApplication
19
20
  * @summary: Create a new sales channel
20
21
  * @description: Applications are sales channel websites which can be configured, personalized and customized. Use this API to create a new application in the current company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/createApplication/).
21
22
  */
22
- async createApplication({ body } = {}, { headers } = { headers: false }) {
23
+ async createApplication(
24
+ { body, requestHeaders } = { requestHeaders: {} },
25
+ { responseHeaders } = { responseHeaders: false }
26
+ ) {
23
27
  const {
24
28
  error,
25
29
  } = ConfigurationPlatformValidator.createApplication().validate(
@@ -58,12 +62,12 @@ class Configuration {
58
62
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application`,
59
63
  query_params,
60
64
  body,
61
- xHeaders,
62
- { headers }
65
+ { ...xHeaders, ...requestHeaders },
66
+ { responseHeaders }
63
67
  );
64
68
 
65
69
  let responseData = response;
66
- if (headers) {
70
+ if (responseHeaders) {
67
71
  responseData = response[0];
68
72
  }
69
73
 
@@ -86,6 +90,7 @@ class Configuration {
86
90
 
87
91
  /**
88
92
  * @param {ConfigurationPlatformValidator.GetApplicationsParam} arg - Arg object
93
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
89
94
  * @param {import("../PlatformAPIClient").Options} - Options
90
95
  * @returns {Promise<ConfigurationPlatformModel.ApplicationsResponse>} -
91
96
  * Success response
@@ -94,8 +99,8 @@ class Configuration {
94
99
  * @description: Applications are sales channel websites which can be configured, personalized and customised. Use this API to fetch a list of applications created within a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getApplications/).
95
100
  */
96
101
  async getApplications(
97
- { pageNo, pageSize, q } = {},
98
- { headers } = { headers: false }
102
+ { pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
103
+ { responseHeaders } = { responseHeaders: false }
99
104
  ) {
100
105
  const { error } = ConfigurationPlatformValidator.getApplications().validate(
101
106
  {
@@ -140,12 +145,12 @@ class Configuration {
140
145
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application`,
141
146
  query_params,
142
147
  undefined,
143
- xHeaders,
144
- { headers }
148
+ { ...xHeaders, ...requestHeaders },
149
+ { responseHeaders }
145
150
  );
146
151
 
147
152
  let responseData = response;
148
- if (headers) {
153
+ if (responseHeaders) {
149
154
  responseData = response[0];
150
155
  }
151
156
 
@@ -197,6 +202,7 @@ class Configuration {
197
202
 
198
203
  /**
199
204
  * @param {ConfigurationPlatformValidator.GetAvailableOptInsParam} arg - Arg object
205
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
200
206
  * @param {import("../PlatformAPIClient").Options} - Options
201
207
  * @returns {Promise<ConfigurationPlatformModel.GetIntegrationsOptInsResponse>}
202
208
  * - Success response
@@ -206,8 +212,8 @@ class Configuration {
206
212
  * @description: Use this API to get a list of all available integrations in a company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAvailableOptIns/).
207
213
  */
208
214
  async getAvailableOptIns(
209
- { pageNo, pageSize } = {},
210
- { headers } = { headers: false }
215
+ { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
216
+ { responseHeaders } = { responseHeaders: false }
211
217
  ) {
212
218
  const {
213
219
  error,
@@ -251,12 +257,12 @@ class Configuration {
251
257
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/integration-opt-in/available`,
252
258
  query_params,
253
259
  undefined,
254
- xHeaders,
255
- { headers }
260
+ { ...xHeaders, ...requestHeaders },
261
+ { responseHeaders }
256
262
  );
257
263
 
258
264
  let responseData = response;
259
- if (headers) {
265
+ if (responseHeaders) {
260
266
  responseData = response[0];
261
267
  }
262
268
 
@@ -307,6 +313,7 @@ class Configuration {
307
313
 
308
314
  /**
309
315
  * @param {ConfigurationPlatformValidator.GetBrandsByCompanyParam} arg - Arg object
316
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
310
317
  * @param {import("../PlatformAPIClient").Options} - Options
311
318
  * @returns {Promise<ConfigurationPlatformModel.BrandsByCompanyResponse>} -
312
319
  * Success response
@@ -314,7 +321,10 @@ class Configuration {
314
321
  * @summary: Get brands by company.
315
322
  * @description: Use this API to get all the brands added in a company. Get all the brand names, along with URLs of their logo, banner, and portrait image. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getBrandsByCompany/).
316
323
  */
317
- async getBrandsByCompany({ q } = {}, { headers } = { headers: false }) {
324
+ async getBrandsByCompany(
325
+ { q, requestHeaders } = { requestHeaders: {} },
326
+ { responseHeaders } = { responseHeaders: false }
327
+ ) {
318
328
  const {
319
329
  error,
320
330
  } = ConfigurationPlatformValidator.getBrandsByCompany().validate(
@@ -354,12 +364,12 @@ class Configuration {
354
364
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/inventory/brands-by-companies`,
355
365
  query_params,
356
366
  undefined,
357
- xHeaders,
358
- { headers }
367
+ { ...xHeaders, ...requestHeaders },
368
+ { responseHeaders }
359
369
  );
360
370
 
361
371
  let responseData = response;
362
- if (headers) {
372
+ if (responseHeaders) {
363
373
  responseData = response[0];
364
374
  }
365
375
 
@@ -382,6 +392,7 @@ class Configuration {
382
392
 
383
393
  /**
384
394
  * @param {ConfigurationPlatformValidator.GetCompanyByBrandsParam} arg - Arg object
395
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
385
396
  * @param {import("../PlatformAPIClient").Options} - Options
386
397
  * @returns {Promise<ConfigurationPlatformModel.CompanyByBrandsResponse>} -
387
398
  * Success response
@@ -390,8 +401,8 @@ class Configuration {
390
401
  * @description: Use this API to get a list of companies by the brands they deal - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getCompanyByBrands/).
391
402
  */
392
403
  async getCompanyByBrands(
393
- { body, pageNo, pageSize } = {},
394
- { headers } = { headers: false }
404
+ { body, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
405
+ { responseHeaders } = { responseHeaders: false }
395
406
  ) {
396
407
  const {
397
408
  error,
@@ -437,12 +448,12 @@ class Configuration {
437
448
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/inventory/companies-by-brands`,
438
449
  query_params,
439
450
  body,
440
- xHeaders,
441
- { headers }
451
+ { ...xHeaders, ...requestHeaders },
452
+ { responseHeaders }
442
453
  );
443
454
 
444
455
  let responseData = response;
445
- if (headers) {
456
+ if (responseHeaders) {
446
457
  responseData = response[0];
447
458
  }
448
459
 
@@ -495,6 +506,7 @@ class Configuration {
495
506
 
496
507
  /**
497
508
  * @param {ConfigurationPlatformValidator.GetCurrenciesParam} arg - Arg object
509
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
498
510
  * @param {import("../PlatformAPIClient").Options} - Options
499
511
  * @returns {Promise<ConfigurationPlatformModel.CurrenciesResponse>} -
500
512
  * Success response
@@ -502,7 +514,10 @@ class Configuration {
502
514
  * @summary: Get all currencies
503
515
  * @description: Use this API to get a list of currencies allowed in the company. Moreover, get the name, code, symbol, and the decimal digits of the currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getCurrencies/).
504
516
  */
505
- async getCurrencies({ headers } = { headers: false }) {
517
+ async getCurrencies(
518
+ { requestHeaders } = { requestHeaders: {} },
519
+ { responseHeaders } = { responseHeaders: false }
520
+ ) {
506
521
  const { error } = ConfigurationPlatformValidator.getCurrencies().validate(
507
522
  {},
508
523
  { abortEarly: false, allowUnknown: true }
@@ -535,12 +550,12 @@ class Configuration {
535
550
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/currencies`,
536
551
  query_params,
537
552
  undefined,
538
- xHeaders,
539
- { headers }
553
+ { ...xHeaders, ...requestHeaders },
554
+ { responseHeaders }
540
555
  );
541
556
 
542
557
  let responseData = response;
543
- if (headers) {
558
+ if (responseHeaders) {
544
559
  responseData = response[0];
545
560
  }
546
561
 
@@ -563,6 +578,7 @@ class Configuration {
563
578
 
564
579
  /**
565
580
  * @param {ConfigurationPlatformValidator.GetDomainAvailibilityParam} arg - Arg object
581
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
566
582
  * @param {import("../PlatformAPIClient").Options} - Options
567
583
  * @returns {Promise<ConfigurationPlatformModel.DomainSuggestionsResponse>}
568
584
  * - Success response
@@ -571,7 +587,10 @@ class Configuration {
571
587
  * @summary: Check domain availability before linking to application
572
588
  * @description: Use this API to check the domain availability before linking it to application. Also sends domain suggestions that are similar to the queried domain. Note - Custom domain search is currently powered by GoDaddy provider. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getDomainAvailibility/).
573
589
  */
574
- async getDomainAvailibility({ body } = {}, { headers } = { headers: false }) {
590
+ async getDomainAvailibility(
591
+ { body, requestHeaders } = { requestHeaders: {} },
592
+ { responseHeaders } = { responseHeaders: false }
593
+ ) {
575
594
  const {
576
595
  error,
577
596
  } = ConfigurationPlatformValidator.getDomainAvailibility().validate(
@@ -610,12 +629,12 @@ class Configuration {
610
629
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/domain/suggestions`,
611
630
  query_params,
612
631
  body,
613
- xHeaders,
614
- { headers }
632
+ { ...xHeaders, ...requestHeaders },
633
+ { responseHeaders }
615
634
  );
616
635
 
617
636
  let responseData = response;
618
- if (headers) {
637
+ if (responseHeaders) {
619
638
  responseData = response[0];
620
639
  }
621
640
 
@@ -638,13 +657,17 @@ class Configuration {
638
657
 
639
658
  /**
640
659
  * @param {ConfigurationPlatformValidator.GetIntegrationByIdParam} arg - Arg object
660
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
641
661
  * @param {import("../PlatformAPIClient").Options} - Options
642
662
  * @returns {Promise<ConfigurationPlatformModel.Integration>} - Success response
643
663
  * @name getIntegrationById
644
664
  * @summary: Get integration data by its ID
645
665
  * @description: Use this API to fetch the details of an integration (such as Ginesys, SAP, etc.) using its ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getIntegrationById/).
646
666
  */
647
- async getIntegrationById({ id } = {}, { headers } = { headers: false }) {
667
+ async getIntegrationById(
668
+ { id, requestHeaders } = { requestHeaders: {} },
669
+ { responseHeaders } = { responseHeaders: false }
670
+ ) {
648
671
  const {
649
672
  error,
650
673
  } = ConfigurationPlatformValidator.getIntegrationById().validate(
@@ -683,12 +706,12 @@ class Configuration {
683
706
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/integration/${id}`,
684
707
  query_params,
685
708
  undefined,
686
- xHeaders,
687
- { headers }
709
+ { ...xHeaders, ...requestHeaders },
710
+ { responseHeaders }
688
711
  );
689
712
 
690
713
  let responseData = response;
691
- if (headers) {
714
+ if (responseHeaders) {
692
715
  responseData = response[0];
693
716
  }
694
717
 
@@ -713,6 +736,7 @@ class Configuration {
713
736
  * @param {ConfigurationPlatformValidator.GetIntegrationByLevelIdParam} arg
714
737
  * - Arg object
715
738
  *
739
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
716
740
  * @param {import("../PlatformAPIClient").Options} - Options
717
741
  * @returns {Promise<ConfigurationPlatformModel.IntegrationLevel>} - Success response
718
742
  * @name getIntegrationByLevelId
@@ -720,8 +744,8 @@ class Configuration {
720
744
  * @description: Use this API to get the configuration details of an integration such as token, permissions, level, opted value, uid, meta, location ID, etc. at a particular level (store/company). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getIntegrationByLevelId/).
721
745
  */
722
746
  async getIntegrationByLevelId(
723
- { id, level, uid } = {},
724
- { headers } = { headers: false }
747
+ { id, level, uid, requestHeaders } = { requestHeaders: {} },
748
+ { responseHeaders } = { responseHeaders: false }
725
749
  ) {
726
750
  const {
727
751
  error,
@@ -765,12 +789,12 @@ class Configuration {
765
789
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/integration-opt-in/configuration/${id}/${level}/${uid}`,
766
790
  query_params,
767
791
  undefined,
768
- xHeaders,
769
- { headers }
792
+ { ...xHeaders, ...requestHeaders },
793
+ { responseHeaders }
770
794
  );
771
795
 
772
796
  let responseData = response;
773
- if (headers) {
797
+ if (responseHeaders) {
774
798
  responseData = response[0];
775
799
  }
776
800
 
@@ -795,6 +819,7 @@ class Configuration {
795
819
  * @param {ConfigurationPlatformValidator.GetIntegrationLevelConfigParam} arg
796
820
  * - Arg object
797
821
  *
822
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
798
823
  * @param {import("../PlatformAPIClient").Options} - Options
799
824
  * @returns {Promise<ConfigurationPlatformModel.IntegrationConfigResponse>}
800
825
  * - Success response
@@ -804,8 +829,10 @@ class Configuration {
804
829
  * @description: Use this API to get the configuration details of an integration such as token, permissions, level, opted value, uid, meta, location ID, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getIntegrationLevelConfig/).
805
830
  */
806
831
  async getIntegrationLevelConfig(
807
- { id, level, opted, checkPermission } = {},
808
- { headers } = { headers: false }
832
+ { id, level, opted, checkPermission, requestHeaders } = {
833
+ requestHeaders: {},
834
+ },
835
+ { responseHeaders } = { responseHeaders: false }
809
836
  ) {
810
837
  const {
811
838
  error,
@@ -853,12 +880,12 @@ class Configuration {
853
880
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/integration-opt-in/configuration/${id}/${level}`,
854
881
  query_params,
855
882
  undefined,
856
- xHeaders,
857
- { headers }
883
+ { ...xHeaders, ...requestHeaders },
884
+ { responseHeaders }
858
885
  );
859
886
 
860
887
  let responseData = response;
861
- if (headers) {
888
+ if (responseHeaders) {
862
889
  responseData = response[0];
863
890
  }
864
891
 
@@ -883,6 +910,7 @@ class Configuration {
883
910
  * @param {ConfigurationPlatformValidator.GetLevelActiveIntegrationsParam} arg
884
911
  * - Arg object
885
912
  *
913
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
886
914
  * @param {import("../PlatformAPIClient").Options} - Options
887
915
  * @returns {Promise<ConfigurationPlatformModel.OptedStoreIntegration>} -
888
916
  * Success response
@@ -891,8 +919,8 @@ class Configuration {
891
919
  * @description: Use this API to check if a store is already opted-in for any integration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getLevelActiveIntegrations/).
892
920
  */
893
921
  async getLevelActiveIntegrations(
894
- { id, level, uid } = {},
895
- { headers } = { headers: false }
922
+ { id, level, uid, requestHeaders } = { requestHeaders: {} },
923
+ { responseHeaders } = { responseHeaders: false }
896
924
  ) {
897
925
  const {
898
926
  error,
@@ -936,12 +964,12 @@ class Configuration {
936
964
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/integration-opt-in/check/configuration/${id}/${level}/${uid}`,
937
965
  query_params,
938
966
  undefined,
939
- xHeaders,
940
- { headers }
967
+ { ...xHeaders, ...requestHeaders },
968
+ { responseHeaders }
941
969
  );
942
970
 
943
971
  let responseData = response;
944
- if (headers) {
972
+ if (responseHeaders) {
945
973
  responseData = response[0];
946
974
  }
947
975
 
@@ -966,6 +994,7 @@ class Configuration {
966
994
  * @param {ConfigurationPlatformValidator.GetOtherSellerApplicationByIdParam} arg
967
995
  * - Arg object
968
996
  *
997
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
969
998
  * @param {import("../PlatformAPIClient").Options} - Options
970
999
  * @returns {Promise<ConfigurationPlatformModel.OptedApplicationResponse>}
971
1000
  * - Success response
@@ -975,8 +1004,8 @@ class Configuration {
975
1004
  * @description: Use application ID to fetch details of a seller application that was not created within the current company. but has opted for the current company's inventory - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOtherSellerApplicationById/).
976
1005
  */
977
1006
  async getOtherSellerApplicationById(
978
- { id } = {},
979
- { headers } = { headers: false }
1007
+ { id, requestHeaders } = { requestHeaders: {} },
1008
+ { responseHeaders } = { responseHeaders: false }
980
1009
  ) {
981
1010
  const {
982
1011
  error,
@@ -1016,12 +1045,12 @@ class Configuration {
1016
1045
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/other-seller-applications/${id}`,
1017
1046
  query_params,
1018
1047
  undefined,
1019
- xHeaders,
1020
- { headers }
1048
+ { ...xHeaders, ...requestHeaders },
1049
+ { responseHeaders }
1021
1050
  );
1022
1051
 
1023
1052
  let responseData = response;
1024
- if (headers) {
1053
+ if (responseHeaders) {
1025
1054
  responseData = response[0];
1026
1055
  }
1027
1056
 
@@ -1046,6 +1075,7 @@ class Configuration {
1046
1075
  * @param {ConfigurationPlatformValidator.GetOtherSellerApplicationsParam} arg
1047
1076
  * - Arg object
1048
1077
  *
1078
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1049
1079
  * @param {import("../PlatformAPIClient").Options} - Options
1050
1080
  * @returns {Promise<ConfigurationPlatformModel.OtherSellerApplications>} -
1051
1081
  * Success response
@@ -1054,8 +1084,8 @@ class Configuration {
1054
1084
  * @description: Use this API to fetch all other seller applications that were not created within the current company. but have opted for the current company's inventory - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOtherSellerApplications/).
1055
1085
  */
1056
1086
  async getOtherSellerApplications(
1057
- { pageNo, pageSize } = {},
1058
- { headers } = { headers: false }
1087
+ { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
1088
+ { responseHeaders } = { responseHeaders: false }
1059
1089
  ) {
1060
1090
  const {
1061
1091
  error,
@@ -1096,15 +1126,15 @@ class Configuration {
1096
1126
  const response = await PlatformAPIClient.execute(
1097
1127
  this.config,
1098
1128
  "get",
1099
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/other-seller-applications/`,
1129
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/other-seller-applications`,
1100
1130
  query_params,
1101
1131
  undefined,
1102
- xHeaders,
1103
- { headers }
1132
+ { ...xHeaders, ...requestHeaders },
1133
+ { responseHeaders }
1104
1134
  );
1105
1135
 
1106
1136
  let responseData = response;
1107
- if (headers) {
1137
+ if (responseHeaders) {
1108
1138
  responseData = response[0];
1109
1139
  }
1110
1140
 
@@ -1155,6 +1185,7 @@ class Configuration {
1155
1185
 
1156
1186
  /**
1157
1187
  * @param {ConfigurationPlatformValidator.GetSelectedOptInsParam} arg - Arg object
1188
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1158
1189
  * @param {import("../PlatformAPIClient").Options} - Options
1159
1190
  * @returns {Promise<ConfigurationPlatformModel.GetIntegrationsOptInsResponse>}
1160
1191
  * - Success response
@@ -1164,8 +1195,8 @@ class Configuration {
1164
1195
  * @description: Use this API to get the store-level/company-level integrations configured in a company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getSelectedOptIns/).
1165
1196
  */
1166
1197
  async getSelectedOptIns(
1167
- { level, uid, pageNo, pageSize } = {},
1168
- { headers } = { headers: false }
1198
+ { level, uid, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
1199
+ { responseHeaders } = { responseHeaders: false }
1169
1200
  ) {
1170
1201
  const {
1171
1202
  error,
@@ -1213,12 +1244,12 @@ class Configuration {
1213
1244
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/integration-opt-in/selected/${level}/${uid}`,
1214
1245
  query_params,
1215
1246
  undefined,
1216
- xHeaders,
1217
- { headers }
1247
+ { ...xHeaders, ...requestHeaders },
1248
+ { responseHeaders }
1218
1249
  );
1219
1250
 
1220
1251
  let responseData = response;
1221
- if (headers) {
1252
+ if (responseHeaders) {
1222
1253
  responseData = response[0];
1223
1254
  }
1224
1255
 
@@ -1273,6 +1304,7 @@ class Configuration {
1273
1304
 
1274
1305
  /**
1275
1306
  * @param {ConfigurationPlatformValidator.GetStoreByBrandsParam} arg - Arg object
1307
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1276
1308
  * @param {import("../PlatformAPIClient").Options} - Options
1277
1309
  * @returns {Promise<ConfigurationPlatformModel.StoreByBrandsResponse>} -
1278
1310
  * Success response
@@ -1281,8 +1313,8 @@ class Configuration {
1281
1313
  * @description: Use this API to get a list of selling locations (stores) by the brands they deal. Store has information about store name, store type, store code, store address, and company detail. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getStoreByBrands/).
1282
1314
  */
1283
1315
  async getStoreByBrands(
1284
- { body, pageNo, pageSize } = {},
1285
- { headers } = { headers: false }
1316
+ { body, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
1317
+ { responseHeaders } = { responseHeaders: false }
1286
1318
  ) {
1287
1319
  const {
1288
1320
  error,
@@ -1328,12 +1360,12 @@ class Configuration {
1328
1360
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/inventory/stores-by-brands`,
1329
1361
  query_params,
1330
1362
  body,
1331
- xHeaders,
1332
- { headers }
1363
+ { ...xHeaders, ...requestHeaders },
1364
+ { responseHeaders }
1333
1365
  );
1334
1366
 
1335
1367
  let responseData = response;
1336
- if (headers) {
1368
+ if (responseHeaders) {
1337
1369
  responseData = response[0];
1338
1370
  }
1339
1371
 
@@ -1386,6 +1418,7 @@ class Configuration {
1386
1418
 
1387
1419
  /**
1388
1420
  * @param {ConfigurationPlatformValidator.OptOutFromApplicationParam} arg - Arg object
1421
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1389
1422
  * @param {import("../PlatformAPIClient").Options} - Options
1390
1423
  * @returns {Promise<ConfigurationPlatformModel.SuccessMessageResponse>} -
1391
1424
  * Success response
@@ -1394,8 +1427,8 @@ class Configuration {
1394
1427
  * @description: Use this API to opt-out your company or store from other seller application. The specific seller application will no longer fetch inventory from your company or store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/optOutFromApplication/).
1395
1428
  */
1396
1429
  async optOutFromApplication(
1397
- { id, body } = {},
1398
- { headers } = { headers: false }
1430
+ { id, body, requestHeaders } = { requestHeaders: {} },
1431
+ { responseHeaders } = { responseHeaders: false }
1399
1432
  ) {
1400
1433
  const {
1401
1434
  error,
@@ -1437,12 +1470,12 @@ class Configuration {
1437
1470
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/other-seller-applications/${id}/opt_out`,
1438
1471
  query_params,
1439
1472
  body,
1440
- xHeaders,
1441
- { headers }
1473
+ { ...xHeaders, ...requestHeaders },
1474
+ { responseHeaders }
1442
1475
  );
1443
1476
 
1444
1477
  let responseData = response;
1445
- if (headers) {
1478
+ if (responseHeaders) {
1446
1479
  responseData = response[0];
1447
1480
  }
1448
1481
 
@@ -1467,6 +1500,7 @@ class Configuration {
1467
1500
  * @param {ConfigurationPlatformValidator.UpdateLevelIntegrationParam} arg
1468
1501
  * - Arg object
1469
1502
  *
1503
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1470
1504
  * @param {import("../PlatformAPIClient").Options} - Options
1471
1505
  * @returns {Promise<ConfigurationPlatformModel.IntegrationLevel>} - Success response
1472
1506
  * @name updateLevelIntegration
@@ -1474,8 +1508,8 @@ class Configuration {
1474
1508
  * @description: Use this API to update the configuration details of an integration such as token, permissions, level, opted value, uid, meta, location ID, etc. at a particular level (store/company). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateLevelIntegration/).
1475
1509
  */
1476
1510
  async updateLevelIntegration(
1477
- { id, level, body } = {},
1478
- { headers } = { headers: false }
1511
+ { id, level, body, requestHeaders } = { requestHeaders: {} },
1512
+ { responseHeaders } = { responseHeaders: false }
1479
1513
  ) {
1480
1514
  const {
1481
1515
  error,
@@ -1519,12 +1553,12 @@ class Configuration {
1519
1553
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/integration-opt-in/configuration/${id}/${level}`,
1520
1554
  query_params,
1521
1555
  body,
1522
- xHeaders,
1523
- { headers }
1556
+ { ...xHeaders, ...requestHeaders },
1557
+ { responseHeaders }
1524
1558
  );
1525
1559
 
1526
1560
  let responseData = response;
1527
- if (headers) {
1561
+ if (responseHeaders) {
1528
1562
  responseData = response[0];
1529
1563
  }
1530
1564
 
@@ -1549,6 +1583,7 @@ class Configuration {
1549
1583
  * @param {ConfigurationPlatformValidator.UpdateLevelUidIntegrationParam} arg
1550
1584
  * - Arg object
1551
1585
  *
1586
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1552
1587
  * @param {import("../PlatformAPIClient").Options} - Options
1553
1588
  * @returns {Promise<ConfigurationPlatformModel.IntegrationLevel>} - Success response
1554
1589
  * @name updateLevelUidIntegration
@@ -1556,8 +1591,8 @@ class Configuration {
1556
1591
  * @description: Update the level of integration by store UID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateLevelUidIntegration/).
1557
1592
  */
1558
1593
  async updateLevelUidIntegration(
1559
- { id, level, uid, body } = {},
1560
- { headers } = { headers: false }
1594
+ { id, level, uid, body, requestHeaders } = { requestHeaders: {} },
1595
+ { responseHeaders } = { responseHeaders: false }
1561
1596
  ) {
1562
1597
  const {
1563
1598
  error,
@@ -1603,12 +1638,12 @@ class Configuration {
1603
1638
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/integration-opt-in/configuration/${id}/${level}/${uid}`,
1604
1639
  query_params,
1605
1640
  body,
1606
- xHeaders,
1607
- { headers }
1641
+ { ...xHeaders, ...requestHeaders },
1642
+ { responseHeaders }
1608
1643
  );
1609
1644
 
1610
1645
  let responseData = response;
1611
- if (headers) {
1646
+ if (responseHeaders) {
1612
1647
  responseData = response[0];
1613
1648
  }
1614
1649