@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
@@ -49,6 +49,8 @@ class Configuration {
49
49
  }
50
50
 
51
51
  /**
52
+ * @param {ConfigurationApplicationValidator.GetAppCurrenciesParam} arg - Arg object.
53
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
52
54
  * @param {import("../ApplicationAPIClient").Options} - Options
53
55
  * @returns {Promise<ConfigurationApplicationModel.AppCurrencyResponse>} -
54
56
  * Success response
@@ -56,7 +58,10 @@ class Configuration {
56
58
  * @summary: Get currencies enabled in the application
57
59
  * @description: Use this API to get a list of currencies allowed in the current application. Moreover, get the name, code, symbol, and the decimal digits of the currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppCurrencies/).
58
60
  */
59
- async getAppCurrencies({ headers } = { headers: false }) {
61
+ async getAppCurrencies(
62
+ { requestHeaders } = { requestHeaders: {} },
63
+ { responseHeaders } = { responseHeaders: false }
64
+ ) {
60
65
  const {
61
66
  error,
62
67
  } = ConfigurationApplicationValidator.getAppCurrencies().validate(
@@ -94,12 +99,12 @@ class Configuration {
94
99
  }),
95
100
  query_params,
96
101
  undefined,
97
- xHeaders,
98
- { headers }
102
+ { ...xHeaders, ...requestHeaders },
103
+ { responseHeaders }
99
104
  );
100
105
 
101
106
  let responseData = response;
102
- if (headers) {
107
+ if (responseHeaders) {
103
108
  responseData = response[0];
104
109
  }
105
110
 
@@ -122,6 +127,7 @@ class Configuration {
122
127
 
123
128
  /**
124
129
  * @param {ConfigurationApplicationValidator.GetAppStaffListParam} arg - Arg object.
130
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
125
131
  * @param {import("../ApplicationAPIClient").Options} - Options
126
132
  * @returns {Promise<ConfigurationApplicationModel.AppStaffListResponse>} -
127
133
  * Success response
@@ -130,8 +136,16 @@ class Configuration {
130
136
  * @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffList/).
131
137
  */
132
138
  async getAppStaffList(
133
- { pageNo, pageSize, orderIncent, orderingStore, user, userName } = {},
134
- { headers } = { headers: false }
139
+ {
140
+ pageNo,
141
+ pageSize,
142
+ orderIncent,
143
+ orderingStore,
144
+ user,
145
+ userName,
146
+ requestHeaders,
147
+ } = { requestHeaders: {} },
148
+ { responseHeaders } = { responseHeaders: false }
135
149
  ) {
136
150
  const {
137
151
  error,
@@ -176,12 +190,12 @@ class Configuration {
176
190
  }),
177
191
  query_params,
178
192
  undefined,
179
- xHeaders,
180
- { headers }
193
+ { ...xHeaders, ...requestHeaders },
194
+ { responseHeaders }
181
195
  );
182
196
 
183
197
  let responseData = response;
184
- if (headers) {
198
+ if (responseHeaders) {
185
199
  responseData = response[0];
186
200
  }
187
201
 
@@ -248,6 +262,7 @@ class Configuration {
248
262
 
249
263
  /**
250
264
  * @param {ConfigurationApplicationValidator.GetAppStaffsParam} arg - Arg object.
265
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
251
266
  * @param {import("../ApplicationAPIClient").Options} - Options
252
267
  * @returns {Promise<ConfigurationApplicationModel.AppStaffResponse>} -
253
268
  * Success response
@@ -256,8 +271,10 @@ class Configuration {
256
271
  * @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffs/).
257
272
  */
258
273
  async getAppStaffs(
259
- { orderIncent, orderingStore, user } = {},
260
- { headers } = { headers: false }
274
+ { orderIncent, orderingStore, user, requestHeaders } = {
275
+ requestHeaders: {},
276
+ },
277
+ { responseHeaders } = { responseHeaders: false }
261
278
  ) {
262
279
  const { error } = ConfigurationApplicationValidator.getAppStaffs().validate(
263
280
  { orderIncent, orderingStore, user },
@@ -297,12 +314,12 @@ class Configuration {
297
314
  }),
298
315
  query_params,
299
316
  undefined,
300
- xHeaders,
301
- { headers }
317
+ { ...xHeaders, ...requestHeaders },
318
+ { responseHeaders }
302
319
  );
303
320
 
304
321
  let responseData = response;
305
- if (headers) {
322
+ if (responseHeaders) {
306
323
  responseData = response[0];
307
324
  }
308
325
 
@@ -324,13 +341,18 @@ class Configuration {
324
341
  }
325
342
 
326
343
  /**
344
+ * @param {ConfigurationApplicationValidator.GetApplicationParam} arg - Arg object.
345
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
327
346
  * @param {import("../ApplicationAPIClient").Options} - Options
328
347
  * @returns {Promise<ConfigurationApplicationModel.Application>} - Success response
329
348
  * @name getApplication
330
349
  * @summary: Get current sales channel details
331
350
  * @description: Use this API to get the current sales channel details which includes configurations that indicate the status of the website, domain, ID, tokens, images, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getApplication/).
332
351
  */
333
- async getApplication({ headers } = { headers: false }) {
352
+ async getApplication(
353
+ { requestHeaders } = { requestHeaders: {} },
354
+ { responseHeaders } = { responseHeaders: false }
355
+ ) {
334
356
  const {
335
357
  error,
336
358
  } = ConfigurationApplicationValidator.getApplication().validate(
@@ -368,12 +390,12 @@ class Configuration {
368
390
  }),
369
391
  query_params,
370
392
  undefined,
371
- xHeaders,
372
- { headers }
393
+ { ...xHeaders, ...requestHeaders },
394
+ { responseHeaders }
373
395
  );
374
396
 
375
397
  let responseData = response;
376
- if (headers) {
398
+ if (responseHeaders) {
377
399
  responseData = response[0];
378
400
  }
379
401
 
@@ -395,6 +417,8 @@ class Configuration {
395
417
  }
396
418
 
397
419
  /**
420
+ * @param {ConfigurationApplicationValidator.GetBasicDetailsParam} arg - Arg object.
421
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
398
422
  * @param {import("../ApplicationAPIClient").Options} - Options
399
423
  * @returns {Promise<ConfigurationApplicationModel.ApplicationDetail>} -
400
424
  * Success response
@@ -402,7 +426,10 @@ class Configuration {
402
426
  * @summary: Get basic details of the application
403
427
  * @description: Use this API to retrieve only the basic details of the application which includes channel name, description, banner, logo, favicon, domain details, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getBasicDetails/).
404
428
  */
405
- async getBasicDetails({ headers } = { headers: false }) {
429
+ async getBasicDetails(
430
+ { requestHeaders } = { requestHeaders: {} },
431
+ { responseHeaders } = { responseHeaders: false }
432
+ ) {
406
433
  const {
407
434
  error,
408
435
  } = ConfigurationApplicationValidator.getBasicDetails().validate(
@@ -440,12 +467,12 @@ class Configuration {
440
467
  }),
441
468
  query_params,
442
469
  undefined,
443
- xHeaders,
444
- { headers }
470
+ { ...xHeaders, ...requestHeaders },
471
+ { responseHeaders }
445
472
  );
446
473
 
447
474
  let responseData = response;
448
- if (headers) {
475
+ if (responseHeaders) {
449
476
  responseData = response[0];
450
477
  }
451
478
 
@@ -467,6 +494,8 @@ class Configuration {
467
494
  }
468
495
 
469
496
  /**
497
+ * @param {ConfigurationApplicationValidator.GetContactInfoParam} arg - Arg object.
498
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
470
499
  * @param {import("../ApplicationAPIClient").Options} - Options
471
500
  * @returns {Promise<ConfigurationApplicationModel.ApplicationInformation>}
472
501
  * - Success response
@@ -475,7 +504,10 @@ class Configuration {
475
504
  * @summary: Get application information
476
505
  * @description: Use this API to retrieve information about the social links, address and contact information of the company/seller/brand operating the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getContactInfo/).
477
506
  */
478
- async getContactInfo({ headers } = { headers: false }) {
507
+ async getContactInfo(
508
+ { requestHeaders } = { requestHeaders: {} },
509
+ { responseHeaders } = { responseHeaders: false }
510
+ ) {
479
511
  const {
480
512
  error,
481
513
  } = ConfigurationApplicationValidator.getContactInfo().validate(
@@ -513,12 +545,12 @@ class Configuration {
513
545
  }),
514
546
  query_params,
515
547
  undefined,
516
- xHeaders,
517
- { headers }
548
+ { ...xHeaders, ...requestHeaders },
549
+ { responseHeaders }
518
550
  );
519
551
 
520
552
  let responseData = response;
521
- if (headers) {
553
+ if (responseHeaders) {
522
554
  responseData = response[0];
523
555
  }
524
556
 
@@ -540,6 +572,8 @@ class Configuration {
540
572
  }
541
573
 
542
574
  /**
575
+ * @param {ConfigurationApplicationValidator.GetCurrenciesParam} arg - Arg object.
576
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
543
577
  * @param {import("../ApplicationAPIClient").Options} - Options
544
578
  * @returns {Promise<ConfigurationApplicationModel.CurrenciesResponse>} -
545
579
  * Success response
@@ -547,7 +581,10 @@ class Configuration {
547
581
  * @summary: Get all currencies list
548
582
  * @description: Use this API to get a list of currencies available. Moreover, get the name, code, symbol, and the decimal digits of the currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getCurrencies/).
549
583
  */
550
- async getCurrencies({ headers } = { headers: false }) {
584
+ async getCurrencies(
585
+ { requestHeaders } = { requestHeaders: {} },
586
+ { responseHeaders } = { responseHeaders: false }
587
+ ) {
551
588
  const {
552
589
  error,
553
590
  } = ConfigurationApplicationValidator.getCurrencies().validate(
@@ -585,12 +622,12 @@ class Configuration {
585
622
  }),
586
623
  query_params,
587
624
  undefined,
588
- xHeaders,
589
- { headers }
625
+ { ...xHeaders, ...requestHeaders },
626
+ { responseHeaders }
590
627
  );
591
628
 
592
629
  let responseData = response;
593
- if (headers) {
630
+ if (responseHeaders) {
594
631
  responseData = response[0];
595
632
  }
596
633
 
@@ -613,13 +650,17 @@ class Configuration {
613
650
 
614
651
  /**
615
652
  * @param {ConfigurationApplicationValidator.GetCurrencyByIdParam} arg - Arg object.
653
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
616
654
  * @param {import("../ApplicationAPIClient").Options} - Options
617
655
  * @returns {Promise<ConfigurationApplicationModel.Currency>} - Success response
618
656
  * @name getCurrencyById
619
657
  * @summary: Get currency by its ID
620
658
  * @description: Use this API to retrieve a currency using its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getCurrencyById/).
621
659
  */
622
- async getCurrencyById({ id } = {}, { headers } = { headers: false }) {
660
+ async getCurrencyById(
661
+ { id, requestHeaders } = { requestHeaders: {} },
662
+ { responseHeaders } = { responseHeaders: false }
663
+ ) {
623
664
  const {
624
665
  error,
625
666
  } = ConfigurationApplicationValidator.getCurrencyById().validate(
@@ -657,12 +698,12 @@ class Configuration {
657
698
  }),
658
699
  query_params,
659
700
  undefined,
660
- xHeaders,
661
- { headers }
701
+ { ...xHeaders, ...requestHeaders },
702
+ { responseHeaders }
662
703
  );
663
704
 
664
705
  let responseData = response;
665
- if (headers) {
706
+ if (responseHeaders) {
666
707
  responseData = response[0];
667
708
  }
668
709
 
@@ -684,6 +725,8 @@ class Configuration {
684
725
  }
685
726
 
686
727
  /**
728
+ * @param {ConfigurationApplicationValidator.GetFeaturesParam} arg - Arg object.
729
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
687
730
  * @param {import("../ApplicationAPIClient").Options} - Options
688
731
  * @returns {Promise<ConfigurationApplicationModel.AppFeatureResponse>} -
689
732
  * Success response
@@ -691,7 +734,10 @@ class Configuration {
691
734
  * @summary: Get features of application
692
735
  * @description: Use this API to retrieve the configuration of features such as product detail, landing page, options in the login/registration screen, communication opt-in, cart options and many more. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getFeatures/).
693
736
  */
694
- async getFeatures({ headers } = { headers: false }) {
737
+ async getFeatures(
738
+ { requestHeaders } = { requestHeaders: {} },
739
+ { responseHeaders } = { responseHeaders: false }
740
+ ) {
695
741
  const { error } = ConfigurationApplicationValidator.getFeatures().validate(
696
742
  {},
697
743
  { abortEarly: false, allowUnknown: true }
@@ -727,12 +773,12 @@ class Configuration {
727
773
  }),
728
774
  query_params,
729
775
  undefined,
730
- xHeaders,
731
- { headers }
776
+ { ...xHeaders, ...requestHeaders },
777
+ { responseHeaders }
732
778
  );
733
779
 
734
780
  let responseData = response;
735
- if (headers) {
781
+ if (responseHeaders) {
736
782
  responseData = response[0];
737
783
  }
738
784
 
@@ -754,6 +800,10 @@ class Configuration {
754
800
  }
755
801
 
756
802
  /**
803
+ * @param {ConfigurationApplicationValidator.GetIntegrationTokensParam} arg
804
+ * - Arg object.
805
+ *
806
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
757
807
  * @param {import("../ApplicationAPIClient").Options} - Options
758
808
  * @returns {Promise<ConfigurationApplicationModel.AppTokenResponse>} -
759
809
  * Success response
@@ -761,7 +811,10 @@ class Configuration {
761
811
  * @summary: Get integration tokens
762
812
  * @description: Use this API to retrieve the tokens used while integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map and Facebook. **Note** - Token values are encrypted with AES encryption using a secret key. Kindly reach out to the developers for obtaining the secret key. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getIntegrationTokens/).
763
813
  */
764
- async getIntegrationTokens({ headers } = { headers: false }) {
814
+ async getIntegrationTokens(
815
+ { requestHeaders } = { requestHeaders: {} },
816
+ { responseHeaders } = { responseHeaders: false }
817
+ ) {
765
818
  const {
766
819
  error,
767
820
  } = ConfigurationApplicationValidator.getIntegrationTokens().validate(
@@ -799,12 +852,12 @@ class Configuration {
799
852
  }),
800
853
  query_params,
801
854
  undefined,
802
- xHeaders,
803
- { headers }
855
+ { ...xHeaders, ...requestHeaders },
856
+ { responseHeaders }
804
857
  );
805
858
 
806
859
  let responseData = response;
807
- if (headers) {
860
+ if (responseHeaders) {
808
861
  responseData = response[0];
809
862
  }
810
863
 
@@ -826,6 +879,8 @@ class Configuration {
826
879
  }
827
880
 
828
881
  /**
882
+ * @param {ConfigurationApplicationValidator.GetLanguagesParam} arg - Arg object.
883
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
829
884
  * @param {import("../ApplicationAPIClient").Options} - Options
830
885
  * @returns {Promise<ConfigurationApplicationModel.LanguageResponse>} -
831
886
  * Success response
@@ -833,7 +888,10 @@ class Configuration {
833
888
  * @summary: Get list of languages
834
889
  * @description: Use this API to get a list of languages supported in the application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getLanguages/).
835
890
  */
836
- async getLanguages({ headers } = { headers: false }) {
891
+ async getLanguages(
892
+ { requestHeaders } = { requestHeaders: {} },
893
+ { responseHeaders } = { responseHeaders: false }
894
+ ) {
837
895
  const { error } = ConfigurationApplicationValidator.getLanguages().validate(
838
896
  {},
839
897
  { abortEarly: false, allowUnknown: true }
@@ -869,12 +927,12 @@ class Configuration {
869
927
  }),
870
928
  query_params,
871
929
  undefined,
872
- xHeaders,
873
- { headers }
930
+ { ...xHeaders, ...requestHeaders },
931
+ { responseHeaders }
874
932
  );
875
933
 
876
934
  let responseData = response;
877
- if (headers) {
935
+ if (responseHeaders) {
878
936
  responseData = response[0];
879
937
  }
880
938
 
@@ -899,6 +957,7 @@ class Configuration {
899
957
  * @param {ConfigurationApplicationValidator.GetOrderingStoreCookieParam} arg
900
958
  * - Arg object.
901
959
  *
960
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
902
961
  * @param {import("../ApplicationAPIClient").Options} - Options
903
962
  * @returns {Promise<ConfigurationApplicationModel.SuccessMessageResponse>}
904
963
  * - Success response
@@ -908,8 +967,8 @@ class Configuration {
908
967
  * @description: Use this API to get an Ordering Store signed cookie upon selecting an ordering store. This will be used by the cart service to verify a coupon against the selected ordering store in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOrderingStoreCookie/).
909
968
  */
910
969
  async getOrderingStoreCookie(
911
- { body } = {},
912
- { headers } = { headers: false }
970
+ { body, requestHeaders } = { requestHeaders: {} },
971
+ { responseHeaders } = { responseHeaders: false }
913
972
  ) {
914
973
  const {
915
974
  error,
@@ -948,12 +1007,12 @@ class Configuration {
948
1007
  }),
949
1008
  query_params,
950
1009
  body,
951
- xHeaders,
952
- { headers }
1010
+ { ...xHeaders, ...requestHeaders },
1011
+ { responseHeaders }
953
1012
  );
954
1013
 
955
1014
  let responseData = response;
956
- if (headers) {
1015
+ if (responseHeaders) {
957
1016
  responseData = response[0];
958
1017
  }
959
1018
 
@@ -976,6 +1035,7 @@ class Configuration {
976
1035
 
977
1036
  /**
978
1037
  * @param {ConfigurationApplicationValidator.GetOrderingStoresParam} arg - Arg object.
1038
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
979
1039
  * @param {import("../ApplicationAPIClient").Options} - Options
980
1040
  * @returns {Promise<ConfigurationApplicationModel.OrderingStores>} - Success response
981
1041
  * @name getOrderingStores
@@ -983,8 +1043,8 @@ class Configuration {
983
1043
  * @description: Use this API to retrieve the details of all the deployment stores (the selling locations where the application will be utilized for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOrderingStores/).
984
1044
  */
985
1045
  async getOrderingStores(
986
- { pageNo, pageSize, q } = {},
987
- { headers } = { headers: false }
1046
+ { pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
1047
+ { responseHeaders } = { responseHeaders: false }
988
1048
  ) {
989
1049
  const {
990
1050
  error,
@@ -1026,12 +1086,12 @@ class Configuration {
1026
1086
  }),
1027
1087
  query_params,
1028
1088
  undefined,
1029
- xHeaders,
1030
- { headers }
1089
+ { ...xHeaders, ...requestHeaders },
1090
+ { responseHeaders }
1031
1091
  );
1032
1092
 
1033
1093
  let responseData = response;
1034
- if (headers) {
1094
+ if (responseHeaders) {
1035
1095
  responseData = response[0];
1036
1096
  }
1037
1097
 
@@ -1083,6 +1143,8 @@ class Configuration {
1083
1143
  }
1084
1144
 
1085
1145
  /**
1146
+ * @param {ConfigurationApplicationValidator.GetOwnerInfoParam} arg - Arg object.
1147
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1086
1148
  * @param {import("../ApplicationAPIClient").Options} - Options
1087
1149
  * @returns {Promise<ConfigurationApplicationModel.ApplicationAboutResponse>}
1088
1150
  * - Success response
@@ -1091,7 +1153,10 @@ class Configuration {
1091
1153
  * @summary: Get sales channel, owner and seller information
1092
1154
  * @description: Use this API to get the current sales channel details which includes channel name, description, banner, logo, favicon, domain details, etc. This API also retrieves the seller and owner information such as address, email address, and phone number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOwnerInfo/).
1093
1155
  */
1094
- async getOwnerInfo({ headers } = { headers: false }) {
1156
+ async getOwnerInfo(
1157
+ { requestHeaders } = { requestHeaders: {} },
1158
+ { responseHeaders } = { responseHeaders: false }
1159
+ ) {
1095
1160
  const { error } = ConfigurationApplicationValidator.getOwnerInfo().validate(
1096
1161
  {},
1097
1162
  { abortEarly: false, allowUnknown: true }
@@ -1127,12 +1192,12 @@ class Configuration {
1127
1192
  }),
1128
1193
  query_params,
1129
1194
  undefined,
1130
- xHeaders,
1131
- { headers }
1195
+ { ...xHeaders, ...requestHeaders },
1196
+ { responseHeaders }
1132
1197
  );
1133
1198
 
1134
1199
  let responseData = response;
1135
- if (headers) {
1200
+ if (responseHeaders) {
1136
1201
  responseData = response[0];
1137
1202
  }
1138
1203
 
@@ -1156,13 +1221,17 @@ class Configuration {
1156
1221
  /**
1157
1222
  * @param {ConfigurationApplicationValidator.GetStoreDetailByIdParam} arg -
1158
1223
  * Arg object.
1224
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1159
1225
  * @param {import("../ApplicationAPIClient").Options} - Options
1160
1226
  * @returns {Promise<ConfigurationApplicationModel.OrderingStore>} - Success response
1161
1227
  * @name getStoreDetailById
1162
1228
  * @summary: Get ordering store details
1163
1229
  * @description: Use this API to retrieve the details of given stores uid (the selling locations where the application will be utilized for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getStoreDetailById/).
1164
1230
  */
1165
- async getStoreDetailById({ storeId } = {}, { headers } = { headers: false }) {
1231
+ async getStoreDetailById(
1232
+ { storeId, requestHeaders } = { requestHeaders: {} },
1233
+ { responseHeaders } = { responseHeaders: false }
1234
+ ) {
1166
1235
  const {
1167
1236
  error,
1168
1237
  } = ConfigurationApplicationValidator.getStoreDetailById().validate(
@@ -1200,12 +1269,12 @@ class Configuration {
1200
1269
  }),
1201
1270
  query_params,
1202
1271
  undefined,
1203
- xHeaders,
1204
- { headers }
1272
+ { ...xHeaders, ...requestHeaders },
1273
+ { responseHeaders }
1205
1274
  );
1206
1275
 
1207
1276
  let responseData = response;
1208
- if (headers) {
1277
+ if (responseHeaders) {
1209
1278
  responseData = response[0];
1210
1279
  }
1211
1280
 
@@ -1227,6 +1296,10 @@ class Configuration {
1227
1296
  }
1228
1297
 
1229
1298
  /**
1299
+ * @param {ConfigurationApplicationValidator.RemoveOrderingStoreCookieParam} arg
1300
+ * - Arg object.
1301
+ *
1302
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1230
1303
  * @param {import("../ApplicationAPIClient").Options} - Options
1231
1304
  * @returns {Promise<ConfigurationApplicationModel.SuccessMessageResponse>}
1232
1305
  * - Success response
@@ -1235,7 +1308,10 @@ class Configuration {
1235
1308
  * @summary: Unset the Ordering Store signed cookie.
1236
1309
  * @description: Use this API to unset the Ordering Store cookie upon changing the sales channel, by its domain URL, in the Universal Fynd Store app. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/removeOrderingStoreCookie/).
1237
1310
  */
1238
- async removeOrderingStoreCookie({ headers } = { headers: false }) {
1311
+ async removeOrderingStoreCookie(
1312
+ { requestHeaders } = { requestHeaders: {} },
1313
+ { responseHeaders } = { responseHeaders: false }
1314
+ ) {
1239
1315
  const {
1240
1316
  error,
1241
1317
  } = ConfigurationApplicationValidator.removeOrderingStoreCookie().validate(
@@ -1273,12 +1349,12 @@ class Configuration {
1273
1349
  }),
1274
1350
  query_params,
1275
1351
  undefined,
1276
- xHeaders,
1277
- { headers }
1352
+ { ...xHeaders, ...requestHeaders },
1353
+ { responseHeaders }
1278
1354
  );
1279
1355
 
1280
1356
  let responseData = response;
1281
- if (headers) {
1357
+ if (responseHeaders) {
1282
1358
  responseData = response[0];
1283
1359
  }
1284
1360