@gofynd/fdk-client-javascript 1.2.0 → 1.3.1-beta.1

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 +6 -4
  12. package/sdk/application/Cart/CartApplicationModel.js +6 -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 +90 -7
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +113 -3
  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
@@ -86,13 +86,17 @@ class User {
86
86
 
87
87
  /**
88
88
  * @param {UserApplicationValidator.AddEmailParam} arg - Arg object.
89
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
89
90
  * @param {import("../ApplicationAPIClient").Options} - Options
90
91
  * @returns {Promise<UserApplicationModel.VerifyEmailOTPSuccess>} - Success response
91
92
  * @name addEmail
92
93
  * @summary: Add email to profile
93
94
  * @description: Use this API to add a new email address to a profile - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/addEmail/).
94
95
  */
95
- async addEmail({ body, platform } = {}, { headers } = { headers: false }) {
96
+ async addEmail(
97
+ { body, platform, requestHeaders } = { requestHeaders: {} },
98
+ { responseHeaders } = { responseHeaders: false }
99
+ ) {
96
100
  const { error } = UserApplicationValidator.addEmail().validate(
97
101
  { body, platform },
98
102
  { abortEarly: false, allowUnknown: true }
@@ -127,12 +131,12 @@ class User {
127
131
  }),
128
132
  query_params,
129
133
  body,
130
- xHeaders,
131
- { headers }
134
+ { ...xHeaders, ...requestHeaders },
135
+ { responseHeaders }
132
136
  );
133
137
 
134
138
  let responseData = response;
135
- if (headers) {
139
+ if (responseHeaders) {
136
140
  responseData = response[0];
137
141
  }
138
142
 
@@ -155,6 +159,7 @@ class User {
155
159
 
156
160
  /**
157
161
  * @param {UserApplicationValidator.AddMobileNumberParam} arg - Arg object.
162
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
158
163
  * @param {import("../ApplicationAPIClient").Options} - Options
159
164
  * @returns {Promise<UserApplicationModel.VerifyMobileOTPSuccess>} - Success response
160
165
  * @name addMobileNumber
@@ -162,8 +167,8 @@ class User {
162
167
  * @description: Use this API to add a new mobile number to a profile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/addMobileNumber/).
163
168
  */
164
169
  async addMobileNumber(
165
- { body, platform } = {},
166
- { headers } = { headers: false }
170
+ { body, platform, requestHeaders } = { requestHeaders: {} },
171
+ { responseHeaders } = { responseHeaders: false }
167
172
  ) {
168
173
  const { error } = UserApplicationValidator.addMobileNumber().validate(
169
174
  { body, platform },
@@ -201,12 +206,12 @@ class User {
201
206
  }),
202
207
  query_params,
203
208
  body,
204
- xHeaders,
205
- { headers }
209
+ { ...xHeaders, ...requestHeaders },
210
+ { responseHeaders }
206
211
  );
207
212
 
208
213
  let responseData = response;
209
- if (headers) {
214
+ if (responseHeaders) {
210
215
  responseData = response[0];
211
216
  }
212
217
 
@@ -229,6 +234,7 @@ class User {
229
234
 
230
235
  /**
231
236
  * @param {UserApplicationValidator.DeleteEmailParam} arg - Arg object.
237
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
232
238
  * @param {import("../ApplicationAPIClient").Options} - Options
233
239
  * @returns {Promise<UserApplicationModel.LoginSuccess>} - Success response
234
240
  * @name deleteEmail
@@ -236,8 +242,10 @@ class User {
236
242
  * @description: Use this API to delete an email address from a profile - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/deleteEmail/).
237
243
  */
238
244
  async deleteEmail(
239
- { active, primary, verified, email, platform } = {},
240
- { headers } = { headers: false }
245
+ { active, primary, verified, email, platform, requestHeaders } = {
246
+ requestHeaders: {},
247
+ },
248
+ { responseHeaders } = { responseHeaders: false }
241
249
  ) {
242
250
  const { error } = UserApplicationValidator.deleteEmail().validate(
243
251
  { active, primary, verified, email, platform },
@@ -277,12 +285,12 @@ class User {
277
285
  }),
278
286
  query_params,
279
287
  undefined,
280
- xHeaders,
281
- { headers }
288
+ { ...xHeaders, ...requestHeaders },
289
+ { responseHeaders }
282
290
  );
283
291
 
284
292
  let responseData = response;
285
- if (headers) {
293
+ if (responseHeaders) {
286
294
  responseData = response[0];
287
295
  }
288
296
 
@@ -305,6 +313,7 @@ class User {
305
313
 
306
314
  /**
307
315
  * @param {UserApplicationValidator.DeleteMobileNumberParam} arg - Arg object.
316
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
308
317
  * @param {import("../ApplicationAPIClient").Options} - Options
309
318
  * @returns {Promise<UserApplicationModel.LoginSuccess>} - Success response
310
319
  * @name deleteMobileNumber
@@ -312,8 +321,16 @@ class User {
312
321
  * @description: Use this API to delete a mobile number from a profile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/deleteMobileNumber/).
313
322
  */
314
323
  async deleteMobileNumber(
315
- { active, primary, verified, countryCode, phone, platform } = {},
316
- { headers } = { headers: false }
324
+ {
325
+ active,
326
+ primary,
327
+ verified,
328
+ countryCode,
329
+ phone,
330
+ platform,
331
+ requestHeaders,
332
+ } = { requestHeaders: {} },
333
+ { responseHeaders } = { responseHeaders: false }
317
334
  ) {
318
335
  const { error } = UserApplicationValidator.deleteMobileNumber().validate(
319
336
  { active, primary, verified, countryCode, phone, platform },
@@ -356,12 +373,12 @@ class User {
356
373
  }),
357
374
  query_params,
358
375
  undefined,
359
- xHeaders,
360
- { headers }
376
+ { ...xHeaders, ...requestHeaders },
377
+ { responseHeaders }
361
378
  );
362
379
 
363
380
  let responseData = response;
364
- if (headers) {
381
+ if (responseHeaders) {
365
382
  responseData = response[0];
366
383
  }
367
384
 
@@ -384,13 +401,17 @@ class User {
384
401
 
385
402
  /**
386
403
  * @param {UserApplicationValidator.DeleteUserParam} arg - Arg object.
404
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
387
405
  * @param {import("../ApplicationAPIClient").Options} - Options
388
406
  * @returns {Promise<UserApplicationModel.DeleteUserSuccess>} - Success response
389
407
  * @name deleteUser
390
408
  * @summary: verify otp and delete user
391
409
  * @description: verify otp and delete user - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/deleteUser/).
392
410
  */
393
- async deleteUser({ body } = {}, { headers } = { headers: false }) {
411
+ async deleteUser(
412
+ { body, requestHeaders } = { requestHeaders: {} },
413
+ { responseHeaders } = { responseHeaders: false }
414
+ ) {
394
415
  const { error } = UserApplicationValidator.deleteUser().validate(
395
416
  { body },
396
417
  { abortEarly: false, allowUnknown: true }
@@ -424,12 +445,12 @@ class User {
424
445
  }),
425
446
  query_params,
426
447
  body,
427
- xHeaders,
428
- { headers }
448
+ { ...xHeaders, ...requestHeaders },
449
+ { responseHeaders }
429
450
  );
430
451
 
431
452
  let responseData = response;
432
- if (headers) {
453
+ if (responseHeaders) {
433
454
  responseData = response[0];
434
455
  }
435
456
 
@@ -452,13 +473,17 @@ class User {
452
473
 
453
474
  /**
454
475
  * @param {UserApplicationValidator.ForgotPasswordParam} arg - Arg object.
476
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
455
477
  * @param {import("../ApplicationAPIClient").Options} - Options
456
478
  * @returns {Promise<UserApplicationModel.LoginSuccess>} - Success response
457
479
  * @name forgotPassword
458
480
  * @summary: Forgot Password
459
481
  * @description: Use this API to reset a password using the code sent on email or SMS. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/forgotPassword/).
460
482
  */
461
- async forgotPassword({ body } = {}, { headers } = { headers: false }) {
483
+ async forgotPassword(
484
+ { body, requestHeaders } = { requestHeaders: {} },
485
+ { responseHeaders } = { responseHeaders: false }
486
+ ) {
462
487
  const { error } = UserApplicationValidator.forgotPassword().validate(
463
488
  { body },
464
489
  { abortEarly: false, allowUnknown: true }
@@ -494,12 +519,12 @@ class User {
494
519
  }),
495
520
  query_params,
496
521
  body,
497
- xHeaders,
498
- { headers }
522
+ { ...xHeaders, ...requestHeaders },
523
+ { responseHeaders }
499
524
  );
500
525
 
501
526
  let responseData = response;
502
- if (headers) {
527
+ if (responseHeaders) {
503
528
  responseData = response[0];
504
529
  }
505
530
 
@@ -521,13 +546,18 @@ class User {
521
546
  }
522
547
 
523
548
  /**
549
+ * @param {UserApplicationValidator.GetListOfActiveSessionsParam} arg - Arg object.
550
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
524
551
  * @param {import("../ApplicationAPIClient").Options} - Options
525
552
  * @returns {Promise<UserApplicationModel.SessionListSuccess>} - Success response
526
553
  * @name getListOfActiveSessions
527
554
  * @summary: Get list of sessions
528
555
  * @description: Use this API to retrieve all active sessions of a user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/getListOfActiveSessions/).
529
556
  */
530
- async getListOfActiveSessions({ headers } = { headers: false }) {
557
+ async getListOfActiveSessions(
558
+ { requestHeaders } = { requestHeaders: {} },
559
+ { responseHeaders } = { responseHeaders: false }
560
+ ) {
531
561
  const {
532
562
  error,
533
563
  } = UserApplicationValidator.getListOfActiveSessions().validate(
@@ -565,12 +595,12 @@ class User {
565
595
  }),
566
596
  query_params,
567
597
  undefined,
568
- xHeaders,
569
- { headers }
598
+ { ...xHeaders, ...requestHeaders },
599
+ { responseHeaders }
570
600
  );
571
601
 
572
602
  let responseData = response;
573
- if (headers) {
603
+ if (responseHeaders) {
574
604
  responseData = response[0];
575
605
  }
576
606
 
@@ -592,13 +622,18 @@ class User {
592
622
  }
593
623
 
594
624
  /**
625
+ * @param {UserApplicationValidator.GetLoggedInUserParam} arg - Arg object.
626
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
595
627
  * @param {import("../ApplicationAPIClient").Options} - Options
596
628
  * @returns {Promise<UserApplicationModel.UserObjectSchema>} - Success response
597
629
  * @name getLoggedInUser
598
630
  * @summary: Get logged in user
599
631
  * @description: Use this API to get the details of a logged in user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/getLoggedInUser/).
600
632
  */
601
- async getLoggedInUser({ headers } = { headers: false }) {
633
+ async getLoggedInUser(
634
+ { requestHeaders } = { requestHeaders: {} },
635
+ { responseHeaders } = { responseHeaders: false }
636
+ ) {
602
637
  const { error } = UserApplicationValidator.getLoggedInUser().validate(
603
638
  {},
604
639
  { abortEarly: false, allowUnknown: true }
@@ -634,12 +669,12 @@ class User {
634
669
  }),
635
670
  query_params,
636
671
  undefined,
637
- xHeaders,
638
- { headers }
672
+ { ...xHeaders, ...requestHeaders },
673
+ { responseHeaders }
639
674
  );
640
675
 
641
676
  let responseData = response;
642
- if (headers) {
677
+ if (responseHeaders) {
643
678
  responseData = response[0];
644
679
  }
645
680
 
@@ -662,13 +697,17 @@ class User {
662
697
 
663
698
  /**
664
699
  * @param {UserApplicationValidator.GetPlatformConfigParam} arg - Arg object.
700
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
665
701
  * @param {import("../ApplicationAPIClient").Options} - Options
666
702
  * @returns {Promise<UserApplicationModel.PlatformSchema>} - Success response
667
703
  * @name getPlatformConfig
668
704
  * @summary: Get platform configurations
669
705
  * @description: Use this API to get all the platform configurations such as mobile image, desktop image, social logins, and all other text. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/getPlatformConfig/).
670
706
  */
671
- async getPlatformConfig({ name } = {}, { headers } = { headers: false }) {
707
+ async getPlatformConfig(
708
+ { name, requestHeaders } = { requestHeaders: {} },
709
+ { responseHeaders } = { responseHeaders: false }
710
+ ) {
672
711
  const { error } = UserApplicationValidator.getPlatformConfig().validate(
673
712
  { name },
674
713
  { abortEarly: false, allowUnknown: true }
@@ -705,12 +744,12 @@ class User {
705
744
  }),
706
745
  query_params,
707
746
  undefined,
708
- xHeaders,
709
- { headers }
747
+ { ...xHeaders, ...requestHeaders },
748
+ { responseHeaders }
710
749
  );
711
750
 
712
751
  let responseData = response;
713
- if (headers) {
752
+ if (responseHeaders) {
714
753
  responseData = response[0];
715
754
  }
716
755
 
@@ -732,13 +771,18 @@ class User {
732
771
  }
733
772
 
734
773
  /**
774
+ * @param {UserApplicationValidator.HasPasswordParam} arg - Arg object.
775
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
735
776
  * @param {import("../ApplicationAPIClient").Options} - Options
736
777
  * @returns {Promise<UserApplicationModel.HasPasswordSuccess>} - Success response
737
778
  * @name hasPassword
738
779
  * @summary: Check password
739
780
  * @description: Use this API to check if user has created a password for login. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/hasPassword/).
740
781
  */
741
- async hasPassword({ headers } = { headers: false }) {
782
+ async hasPassword(
783
+ { requestHeaders } = { requestHeaders: {} },
784
+ { responseHeaders } = { responseHeaders: false }
785
+ ) {
742
786
  const { error } = UserApplicationValidator.hasPassword().validate(
743
787
  {},
744
788
  { abortEarly: false, allowUnknown: true }
@@ -772,12 +816,12 @@ class User {
772
816
  }),
773
817
  query_params,
774
818
  undefined,
775
- xHeaders,
776
- { headers }
819
+ { ...xHeaders, ...requestHeaders },
820
+ { responseHeaders }
777
821
  );
778
822
 
779
823
  let responseData = response;
780
- if (headers) {
824
+ if (responseHeaders) {
781
825
  responseData = response[0];
782
826
  }
783
827
 
@@ -800,6 +844,7 @@ class User {
800
844
 
801
845
  /**
802
846
  * @param {UserApplicationValidator.LoginWithAppleIOSParam} arg - Arg object.
847
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
803
848
  * @param {import("../ApplicationAPIClient").Options} - Options
804
849
  * @returns {Promise<UserApplicationModel.AuthSuccess>} - Success response
805
850
  * @name loginWithAppleIOS
@@ -807,8 +852,8 @@ class User {
807
852
  * @description: Use this API to login or register in iOS app using Apple Account credentials. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithAppleIOS/).
808
853
  */
809
854
  async loginWithAppleIOS(
810
- { body, platform } = {},
811
- { headers } = { headers: false }
855
+ { body, platform, requestHeaders } = { requestHeaders: {} },
856
+ { responseHeaders } = { responseHeaders: false }
812
857
  ) {
813
858
  const { error } = UserApplicationValidator.loginWithAppleIOS().validate(
814
859
  { body, platform },
@@ -846,12 +891,12 @@ class User {
846
891
  }),
847
892
  query_params,
848
893
  body,
849
- xHeaders,
850
- { headers }
894
+ { ...xHeaders, ...requestHeaders },
895
+ { responseHeaders }
851
896
  );
852
897
 
853
898
  let responseData = response;
854
- if (headers) {
899
+ if (responseHeaders) {
855
900
  responseData = response[0];
856
901
  }
857
902
 
@@ -874,6 +919,7 @@ class User {
874
919
 
875
920
  /**
876
921
  * @param {UserApplicationValidator.LoginWithEmailAndPasswordParam} arg - Arg object.
922
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
877
923
  * @param {import("../ApplicationAPIClient").Options} - Options
878
924
  * @returns {Promise<UserApplicationModel.LoginSuccess>} - Success response
879
925
  * @name loginWithEmailAndPassword
@@ -881,8 +927,8 @@ class User {
881
927
  * @description: Use this API to login or register using an email address and password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithEmailAndPassword/).
882
928
  */
883
929
  async loginWithEmailAndPassword(
884
- { body } = {},
885
- { headers } = { headers: false }
930
+ { body, requestHeaders } = { requestHeaders: {} },
931
+ { responseHeaders } = { responseHeaders: false }
886
932
  ) {
887
933
  const {
888
934
  error,
@@ -921,12 +967,12 @@ class User {
921
967
  }),
922
968
  query_params,
923
969
  body,
924
- xHeaders,
925
- { headers }
970
+ { ...xHeaders, ...requestHeaders },
971
+ { responseHeaders }
926
972
  );
927
973
 
928
974
  let responseData = response;
929
- if (headers) {
975
+ if (responseHeaders) {
930
976
  responseData = response[0];
931
977
  }
932
978
 
@@ -949,6 +995,7 @@ class User {
949
995
 
950
996
  /**
951
997
  * @param {UserApplicationValidator.LoginWithFacebookParam} arg - Arg object.
998
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
952
999
  * @param {import("../ApplicationAPIClient").Options} - Options
953
1000
  * @returns {Promise<UserApplicationModel.AuthSuccess>} - Success response
954
1001
  * @name loginWithFacebook
@@ -956,8 +1003,8 @@ class User {
956
1003
  * @description: Use this API to login or register using Facebook credentials. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithFacebook/).
957
1004
  */
958
1005
  async loginWithFacebook(
959
- { body, platform } = {},
960
- { headers } = { headers: false }
1006
+ { body, platform, requestHeaders } = { requestHeaders: {} },
1007
+ { responseHeaders } = { responseHeaders: false }
961
1008
  ) {
962
1009
  const { error } = UserApplicationValidator.loginWithFacebook().validate(
963
1010
  { body, platform },
@@ -995,12 +1042,12 @@ class User {
995
1042
  }),
996
1043
  query_params,
997
1044
  body,
998
- xHeaders,
999
- { headers }
1045
+ { ...xHeaders, ...requestHeaders },
1046
+ { responseHeaders }
1000
1047
  );
1001
1048
 
1002
1049
  let responseData = response;
1003
- if (headers) {
1050
+ if (responseHeaders) {
1004
1051
  responseData = response[0];
1005
1052
  }
1006
1053
 
@@ -1023,6 +1070,7 @@ class User {
1023
1070
 
1024
1071
  /**
1025
1072
  * @param {UserApplicationValidator.LoginWithGoogleParam} arg - Arg object.
1073
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1026
1074
  * @param {import("../ApplicationAPIClient").Options} - Options
1027
1075
  * @returns {Promise<UserApplicationModel.AuthSuccess>} - Success response
1028
1076
  * @name loginWithGoogle
@@ -1030,8 +1078,8 @@ class User {
1030
1078
  * @description: Use this API to login or register using Google Account credentials. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithGoogle/).
1031
1079
  */
1032
1080
  async loginWithGoogle(
1033
- { body, platform } = {},
1034
- { headers } = { headers: false }
1081
+ { body, platform, requestHeaders } = { requestHeaders: {} },
1082
+ { responseHeaders } = { responseHeaders: false }
1035
1083
  ) {
1036
1084
  const { error } = UserApplicationValidator.loginWithGoogle().validate(
1037
1085
  { body, platform },
@@ -1069,12 +1117,12 @@ class User {
1069
1117
  }),
1070
1118
  query_params,
1071
1119
  body,
1072
- xHeaders,
1073
- { headers }
1120
+ { ...xHeaders, ...requestHeaders },
1121
+ { responseHeaders }
1074
1122
  );
1075
1123
 
1076
1124
  let responseData = response;
1077
- if (headers) {
1125
+ if (responseHeaders) {
1078
1126
  responseData = response[0];
1079
1127
  }
1080
1128
 
@@ -1097,6 +1145,7 @@ class User {
1097
1145
 
1098
1146
  /**
1099
1147
  * @param {UserApplicationValidator.LoginWithGoogleAndroidParam} arg - Arg object.
1148
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1100
1149
  * @param {import("../ApplicationAPIClient").Options} - Options
1101
1150
  * @returns {Promise<UserApplicationModel.AuthSuccess>} - Success response
1102
1151
  * @name loginWithGoogleAndroid
@@ -1104,8 +1153,8 @@ class User {
1104
1153
  * @description: Use this API to login or register in Android app using Google Account credentials. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithGoogleAndroid/).
1105
1154
  */
1106
1155
  async loginWithGoogleAndroid(
1107
- { body, platform } = {},
1108
- { headers } = { headers: false }
1156
+ { body, platform, requestHeaders } = { requestHeaders: {} },
1157
+ { responseHeaders } = { responseHeaders: false }
1109
1158
  ) {
1110
1159
  const {
1111
1160
  error,
@@ -1145,12 +1194,12 @@ class User {
1145
1194
  }),
1146
1195
  query_params,
1147
1196
  body,
1148
- xHeaders,
1149
- { headers }
1197
+ { ...xHeaders, ...requestHeaders },
1198
+ { responseHeaders }
1150
1199
  );
1151
1200
 
1152
1201
  let responseData = response;
1153
- if (headers) {
1202
+ if (responseHeaders) {
1154
1203
  responseData = response[0];
1155
1204
  }
1156
1205
 
@@ -1173,6 +1222,7 @@ class User {
1173
1222
 
1174
1223
  /**
1175
1224
  * @param {UserApplicationValidator.LoginWithGoogleIOSParam} arg - Arg object.
1225
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1176
1226
  * @param {import("../ApplicationAPIClient").Options} - Options
1177
1227
  * @returns {Promise<UserApplicationModel.AuthSuccess>} - Success response
1178
1228
  * @name loginWithGoogleIOS
@@ -1180,8 +1230,8 @@ class User {
1180
1230
  * @description: Use this API to login or register in iOS app using Google Account credentials. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithGoogleIOS/).
1181
1231
  */
1182
1232
  async loginWithGoogleIOS(
1183
- { body, platform } = {},
1184
- { headers } = { headers: false }
1233
+ { body, platform, requestHeaders } = { requestHeaders: {} },
1234
+ { responseHeaders } = { responseHeaders: false }
1185
1235
  ) {
1186
1236
  const { error } = UserApplicationValidator.loginWithGoogleIOS().validate(
1187
1237
  { body, platform },
@@ -1219,12 +1269,12 @@ class User {
1219
1269
  }),
1220
1270
  query_params,
1221
1271
  body,
1222
- xHeaders,
1223
- { headers }
1272
+ { ...xHeaders, ...requestHeaders },
1273
+ { responseHeaders }
1224
1274
  );
1225
1275
 
1226
1276
  let responseData = response;
1227
- if (headers) {
1277
+ if (responseHeaders) {
1228
1278
  responseData = response[0];
1229
1279
  }
1230
1280
 
@@ -1247,6 +1297,7 @@ class User {
1247
1297
 
1248
1298
  /**
1249
1299
  * @param {UserApplicationValidator.LoginWithOTPParam} arg - Arg object.
1300
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1250
1301
  * @param {import("../ApplicationAPIClient").Options} - Options
1251
1302
  * @returns {Promise<UserApplicationModel.SendOtpResponse>} - Success response
1252
1303
  * @name loginWithOTP
@@ -1254,8 +1305,8 @@ class User {
1254
1305
  * @description: Use this API to login or register with a One-time Password (OTP) sent via Email or SMS. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithOTP/).
1255
1306
  */
1256
1307
  async loginWithOTP(
1257
- { body, platform } = {},
1258
- { headers } = { headers: false }
1308
+ { body, platform, requestHeaders } = { requestHeaders: {} },
1309
+ { responseHeaders } = { responseHeaders: false }
1259
1310
  ) {
1260
1311
  const { error } = UserApplicationValidator.loginWithOTP().validate(
1261
1312
  { body, platform },
@@ -1293,12 +1344,12 @@ class User {
1293
1344
  }),
1294
1345
  query_params,
1295
1346
  body,
1296
- xHeaders,
1297
- { headers }
1347
+ { ...xHeaders, ...requestHeaders },
1348
+ { responseHeaders }
1298
1349
  );
1299
1350
 
1300
1351
  let responseData = response;
1301
- if (headers) {
1352
+ if (responseHeaders) {
1302
1353
  responseData = response[0];
1303
1354
  }
1304
1355
 
@@ -1321,13 +1372,17 @@ class User {
1321
1372
 
1322
1373
  /**
1323
1374
  * @param {UserApplicationValidator.LoginWithTokenParam} arg - Arg object.
1375
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1324
1376
  * @param {import("../ApplicationAPIClient").Options} - Options
1325
1377
  * @returns {Promise<UserApplicationModel.LoginSuccess>} - Success response
1326
1378
  * @name loginWithToken
1327
1379
  * @summary: Login or Register with token
1328
1380
  * @description: Use this API to login or register using a token for authentication. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithToken/).
1329
1381
  */
1330
- async loginWithToken({ body } = {}, { headers } = { headers: false }) {
1382
+ async loginWithToken(
1383
+ { body, requestHeaders } = { requestHeaders: {} },
1384
+ { responseHeaders } = { responseHeaders: false }
1385
+ ) {
1331
1386
  const { error } = UserApplicationValidator.loginWithToken().validate(
1332
1387
  { body },
1333
1388
  { abortEarly: false, allowUnknown: true }
@@ -1363,12 +1418,12 @@ class User {
1363
1418
  }),
1364
1419
  query_params,
1365
1420
  body,
1366
- xHeaders,
1367
- { headers }
1421
+ { ...xHeaders, ...requestHeaders },
1422
+ { responseHeaders }
1368
1423
  );
1369
1424
 
1370
1425
  let responseData = response;
1371
- if (headers) {
1426
+ if (responseHeaders) {
1372
1427
  responseData = response[0];
1373
1428
  }
1374
1429
 
@@ -1390,13 +1445,18 @@ class User {
1390
1445
  }
1391
1446
 
1392
1447
  /**
1448
+ * @param {UserApplicationValidator.LogoutParam} arg - Arg object.
1449
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1393
1450
  * @param {import("../ApplicationAPIClient").Options} - Options
1394
1451
  * @returns {Promise<UserApplicationModel.LogoutSuccess>} - Success response
1395
1452
  * @name logout
1396
1453
  * @summary: Logs out currently logged in user
1397
1454
  * @description: Use this API to check to logout a user from the app. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/logout/).
1398
1455
  */
1399
- async logout({ headers } = { headers: false }) {
1456
+ async logout(
1457
+ { requestHeaders } = { requestHeaders: {} },
1458
+ { responseHeaders } = { responseHeaders: false }
1459
+ ) {
1400
1460
  const { error } = UserApplicationValidator.logout().validate(
1401
1461
  {},
1402
1462
  { abortEarly: false, allowUnknown: true }
@@ -1430,12 +1490,12 @@ class User {
1430
1490
  }),
1431
1491
  query_params,
1432
1492
  undefined,
1433
- xHeaders,
1434
- { headers }
1493
+ { ...xHeaders, ...requestHeaders },
1494
+ { responseHeaders }
1435
1495
  );
1436
1496
 
1437
1497
  let responseData = response;
1438
- if (headers) {
1498
+ if (responseHeaders) {
1439
1499
  responseData = response[0];
1440
1500
  }
1441
1501
 
@@ -1458,6 +1518,7 @@ class User {
1458
1518
 
1459
1519
  /**
1460
1520
  * @param {UserApplicationValidator.RegisterWithFormParam} arg - Arg object.
1521
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1461
1522
  * @param {import("../ApplicationAPIClient").Options} - Options
1462
1523
  * @returns {Promise<UserApplicationModel.RegisterFormSuccess>} - Success response
1463
1524
  * @name registerWithForm
@@ -1465,8 +1526,8 @@ class User {
1465
1526
  * @description: Use this API to perform user registration by sending form data in the request body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/registerWithForm/).
1466
1527
  */
1467
1528
  async registerWithForm(
1468
- { body, platform } = {},
1469
- { headers } = { headers: false }
1529
+ { body, platform, requestHeaders } = { requestHeaders: {} },
1530
+ { responseHeaders } = { responseHeaders: false }
1470
1531
  ) {
1471
1532
  const { error } = UserApplicationValidator.registerWithForm().validate(
1472
1533
  { body, platform },
@@ -1504,12 +1565,12 @@ class User {
1504
1565
  }),
1505
1566
  query_params,
1506
1567
  body,
1507
- xHeaders,
1508
- { headers }
1568
+ { ...xHeaders, ...requestHeaders },
1569
+ { responseHeaders }
1509
1570
  );
1510
1571
 
1511
1572
  let responseData = response;
1512
- if (headers) {
1573
+ if (responseHeaders) {
1513
1574
  responseData = response[0];
1514
1575
  }
1515
1576
 
@@ -1532,6 +1593,7 @@ class User {
1532
1593
 
1533
1594
  /**
1534
1595
  * @param {UserApplicationValidator.SendOTPOnEmailParam} arg - Arg object.
1596
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1535
1597
  * @param {import("../ApplicationAPIClient").Options} - Options
1536
1598
  * @returns {Promise<UserApplicationModel.EmailOtpSuccess>} - Success response
1537
1599
  * @name sendOTPOnEmail
@@ -1539,8 +1601,8 @@ class User {
1539
1601
  * @description: Use this API to send an OTP to an email ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendOTPOnEmail/).
1540
1602
  */
1541
1603
  async sendOTPOnEmail(
1542
- { body, platform } = {},
1543
- { headers } = { headers: false }
1604
+ { body, platform, requestHeaders } = { requestHeaders: {} },
1605
+ { responseHeaders } = { responseHeaders: false }
1544
1606
  ) {
1545
1607
  const { error } = UserApplicationValidator.sendOTPOnEmail().validate(
1546
1608
  { body, platform },
@@ -1578,12 +1640,12 @@ class User {
1578
1640
  }),
1579
1641
  query_params,
1580
1642
  body,
1581
- xHeaders,
1582
- { headers }
1643
+ { ...xHeaders, ...requestHeaders },
1644
+ { responseHeaders }
1583
1645
  );
1584
1646
 
1585
1647
  let responseData = response;
1586
- if (headers) {
1648
+ if (responseHeaders) {
1587
1649
  responseData = response[0];
1588
1650
  }
1589
1651
 
@@ -1606,6 +1668,7 @@ class User {
1606
1668
 
1607
1669
  /**
1608
1670
  * @param {UserApplicationValidator.SendOTPOnMobileParam} arg - Arg object.
1671
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1609
1672
  * @param {import("../ApplicationAPIClient").Options} - Options
1610
1673
  * @returns {Promise<UserApplicationModel.OtpSuccess>} - Success response
1611
1674
  * @name sendOTPOnMobile
@@ -1613,8 +1676,8 @@ class User {
1613
1676
  * @description: Use this API to send an OTP to a mobile number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendOTPOnMobile/).
1614
1677
  */
1615
1678
  async sendOTPOnMobile(
1616
- { body, platform } = {},
1617
- { headers } = { headers: false }
1679
+ { body, platform, requestHeaders } = { requestHeaders: {} },
1680
+ { responseHeaders } = { responseHeaders: false }
1618
1681
  ) {
1619
1682
  const { error } = UserApplicationValidator.sendOTPOnMobile().validate(
1620
1683
  { body, platform },
@@ -1652,12 +1715,12 @@ class User {
1652
1715
  }),
1653
1716
  query_params,
1654
1717
  body,
1655
- xHeaders,
1656
- { headers }
1718
+ { ...xHeaders, ...requestHeaders },
1719
+ { responseHeaders }
1657
1720
  );
1658
1721
 
1659
1722
  let responseData = response;
1660
- if (headers) {
1723
+ if (responseHeaders) {
1661
1724
  responseData = response[0];
1662
1725
  }
1663
1726
 
@@ -1680,6 +1743,7 @@ class User {
1680
1743
 
1681
1744
  /**
1682
1745
  * @param {UserApplicationValidator.SendResetPasswordEmailParam} arg - Arg object.
1746
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1683
1747
  * @param {import("../ApplicationAPIClient").Options} - Options
1684
1748
  * @returns {Promise<UserApplicationModel.ResetPasswordSuccess>} - Success response
1685
1749
  * @name sendResetPasswordEmail
@@ -1687,8 +1751,8 @@ class User {
1687
1751
  * @description: Use this API to reset a password using the link sent on email. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendResetPasswordEmail/).
1688
1752
  */
1689
1753
  async sendResetPasswordEmail(
1690
- { body, platform } = {},
1691
- { headers } = { headers: false }
1754
+ { body, platform, requestHeaders } = { requestHeaders: {} },
1755
+ { responseHeaders } = { responseHeaders: false }
1692
1756
  ) {
1693
1757
  const {
1694
1758
  error,
@@ -1728,12 +1792,12 @@ class User {
1728
1792
  }),
1729
1793
  query_params,
1730
1794
  body,
1731
- xHeaders,
1732
- { headers }
1795
+ { ...xHeaders, ...requestHeaders },
1796
+ { responseHeaders }
1733
1797
  );
1734
1798
 
1735
1799
  let responseData = response;
1736
- if (headers) {
1800
+ if (responseHeaders) {
1737
1801
  responseData = response[0];
1738
1802
  }
1739
1803
 
@@ -1756,6 +1820,7 @@ class User {
1756
1820
 
1757
1821
  /**
1758
1822
  * @param {UserApplicationValidator.SendResetPasswordMobileParam} arg - Arg object.
1823
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1759
1824
  * @param {import("../ApplicationAPIClient").Options} - Options
1760
1825
  * @returns {Promise<UserApplicationModel.ResetPasswordSuccess>} - Success response
1761
1826
  * @name sendResetPasswordMobile
@@ -1763,8 +1828,8 @@ class User {
1763
1828
  * @description: Use this API to reset a password using the link sent on mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendResetPasswordMobile/).
1764
1829
  */
1765
1830
  async sendResetPasswordMobile(
1766
- { body, platform } = {},
1767
- { headers } = { headers: false }
1831
+ { body, platform, requestHeaders } = { requestHeaders: {} },
1832
+ { responseHeaders } = { responseHeaders: false }
1768
1833
  ) {
1769
1834
  const {
1770
1835
  error,
@@ -1804,12 +1869,12 @@ class User {
1804
1869
  }),
1805
1870
  query_params,
1806
1871
  body,
1807
- xHeaders,
1808
- { headers }
1872
+ { ...xHeaders, ...requestHeaders },
1873
+ { responseHeaders }
1809
1874
  );
1810
1875
 
1811
1876
  let responseData = response;
1812
- if (headers) {
1877
+ if (responseHeaders) {
1813
1878
  responseData = response[0];
1814
1879
  }
1815
1880
 
@@ -1832,13 +1897,17 @@ class User {
1832
1897
 
1833
1898
  /**
1834
1899
  * @param {UserApplicationValidator.SendResetTokenParam} arg - Arg object.
1900
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1835
1901
  * @param {import("../ApplicationAPIClient").Options} - Options
1836
1902
  * @returns {Promise<UserApplicationModel.ResetPasswordSuccess>} - Success response
1837
1903
  * @name sendResetToken
1838
1904
  * @summary: Reset Password using token
1839
1905
  * @description: Use this API to send code to reset password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendResetToken/).
1840
1906
  */
1841
- async sendResetToken({ body } = {}, { headers } = { headers: false }) {
1907
+ async sendResetToken(
1908
+ { body, requestHeaders } = { requestHeaders: {} },
1909
+ { responseHeaders } = { responseHeaders: false }
1910
+ ) {
1842
1911
  const { error } = UserApplicationValidator.sendResetToken().validate(
1843
1912
  { body },
1844
1913
  { abortEarly: false, allowUnknown: true }
@@ -1874,12 +1943,12 @@ class User {
1874
1943
  }),
1875
1944
  query_params,
1876
1945
  body,
1877
- xHeaders,
1878
- { headers }
1946
+ { ...xHeaders, ...requestHeaders },
1947
+ { responseHeaders }
1879
1948
  );
1880
1949
 
1881
1950
  let responseData = response;
1882
- if (headers) {
1951
+ if (responseHeaders) {
1883
1952
  responseData = response[0];
1884
1953
  }
1885
1954
 
@@ -1903,6 +1972,7 @@ class User {
1903
1972
  /**
1904
1973
  * @param {UserApplicationValidator.SendVerificationLinkToEmailParam} arg -
1905
1974
  * Arg object.
1975
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1906
1976
  * @param {import("../ApplicationAPIClient").Options} - Options
1907
1977
  * @returns {Promise<UserApplicationModel.SendEmailVerifyLinkSuccess>} -
1908
1978
  * Success response
@@ -1911,8 +1981,8 @@ class User {
1911
1981
  * @description: Use this API to send verification link to an email address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendVerificationLinkToEmail/).
1912
1982
  */
1913
1983
  async sendVerificationLinkToEmail(
1914
- { body, platform } = {},
1915
- { headers } = { headers: false }
1984
+ { body, platform, requestHeaders } = { requestHeaders: {} },
1985
+ { responseHeaders } = { responseHeaders: false }
1916
1986
  ) {
1917
1987
  const {
1918
1988
  error,
@@ -1952,12 +2022,12 @@ class User {
1952
2022
  }),
1953
2023
  query_params,
1954
2024
  body,
1955
- xHeaders,
1956
- { headers }
2025
+ { ...xHeaders, ...requestHeaders },
2026
+ { responseHeaders }
1957
2027
  );
1958
2028
 
1959
2029
  let responseData = response;
1960
- if (headers) {
2030
+ if (responseHeaders) {
1961
2031
  responseData = response[0];
1962
2032
  }
1963
2033
 
@@ -1982,6 +2052,7 @@ class User {
1982
2052
  * @param {UserApplicationValidator.SendVerificationLinkToMobileParam} arg
1983
2053
  * - Arg object.
1984
2054
  *
2055
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1985
2056
  * @param {import("../ApplicationAPIClient").Options} - Options
1986
2057
  * @returns {Promise<UserApplicationModel.SendMobileVerifyLinkSuccess>} -
1987
2058
  * Success response
@@ -1990,8 +2061,8 @@ class User {
1990
2061
  * @description: Use this API to send a verification link to a mobile number - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendVerificationLinkToMobile/).
1991
2062
  */
1992
2063
  async sendVerificationLinkToMobile(
1993
- { body, platform } = {},
1994
- { headers } = { headers: false }
2064
+ { body, platform, requestHeaders } = { requestHeaders: {} },
2065
+ { responseHeaders } = { responseHeaders: false }
1995
2066
  ) {
1996
2067
  const {
1997
2068
  error,
@@ -2031,12 +2102,12 @@ class User {
2031
2102
  }),
2032
2103
  query_params,
2033
2104
  body,
2034
- xHeaders,
2035
- { headers }
2105
+ { ...xHeaders, ...requestHeaders },
2106
+ { responseHeaders }
2036
2107
  );
2037
2108
 
2038
2109
  let responseData = response;
2039
- if (headers) {
2110
+ if (responseHeaders) {
2040
2111
  responseData = response[0];
2041
2112
  }
2042
2113
 
@@ -2059,13 +2130,17 @@ class User {
2059
2130
 
2060
2131
  /**
2061
2132
  * @param {UserApplicationValidator.SetEmailAsPrimaryParam} arg - Arg object.
2133
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2062
2134
  * @param {import("../ApplicationAPIClient").Options} - Options
2063
2135
  * @returns {Promise<UserApplicationModel.LoginSuccess>} - Success response
2064
2136
  * @name setEmailAsPrimary
2065
2137
  * @summary: Set email as primary
2066
2138
  * @description: Use this API to set an email address as primary. Primary email ID is a email address used for all future communications. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/setEmailAsPrimary/).
2067
2139
  */
2068
- async setEmailAsPrimary({ body } = {}, { headers } = { headers: false }) {
2140
+ async setEmailAsPrimary(
2141
+ { body, requestHeaders } = { requestHeaders: {} },
2142
+ { responseHeaders } = { responseHeaders: false }
2143
+ ) {
2069
2144
  const { error } = UserApplicationValidator.setEmailAsPrimary().validate(
2070
2145
  { body },
2071
2146
  { abortEarly: false, allowUnknown: true }
@@ -2101,12 +2176,12 @@ class User {
2101
2176
  }),
2102
2177
  query_params,
2103
2178
  body,
2104
- xHeaders,
2105
- { headers }
2179
+ { ...xHeaders, ...requestHeaders },
2180
+ { responseHeaders }
2106
2181
  );
2107
2182
 
2108
2183
  let responseData = response;
2109
- if (headers) {
2184
+ if (responseHeaders) {
2110
2185
  responseData = response[0];
2111
2186
  }
2112
2187
 
@@ -2129,6 +2204,7 @@ class User {
2129
2204
 
2130
2205
  /**
2131
2206
  * @param {UserApplicationValidator.SetMobileNumberAsPrimaryParam} arg - Arg object.
2207
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2132
2208
  * @param {import("../ApplicationAPIClient").Options} - Options
2133
2209
  * @returns {Promise<UserApplicationModel.LoginSuccess>} - Success response
2134
2210
  * @name setMobileNumberAsPrimary
@@ -2136,8 +2212,8 @@ class User {
2136
2212
  * @description: Use this API to set a mobile number as primary. Primary number is a verified number used for all future communications. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/setMobileNumberAsPrimary/).
2137
2213
  */
2138
2214
  async setMobileNumberAsPrimary(
2139
- { body } = {},
2140
- { headers } = { headers: false }
2215
+ { body, requestHeaders } = { requestHeaders: {} },
2216
+ { responseHeaders } = { responseHeaders: false }
2141
2217
  ) {
2142
2218
  const {
2143
2219
  error,
@@ -2176,12 +2252,12 @@ class User {
2176
2252
  }),
2177
2253
  query_params,
2178
2254
  body,
2179
- xHeaders,
2180
- { headers }
2255
+ { ...xHeaders, ...requestHeaders },
2256
+ { responseHeaders }
2181
2257
  );
2182
2258
 
2183
2259
  let responseData = response;
2184
- if (headers) {
2260
+ if (responseHeaders) {
2185
2261
  responseData = response[0];
2186
2262
  }
2187
2263
 
@@ -2204,13 +2280,17 @@ class User {
2204
2280
 
2205
2281
  /**
2206
2282
  * @param {UserApplicationValidator.UpdatePasswordParam} arg - Arg object.
2283
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2207
2284
  * @param {import("../ApplicationAPIClient").Options} - Options
2208
2285
  * @returns {Promise<UserApplicationModel.VerifyEmailSuccess>} - Success response
2209
2286
  * @name updatePassword
2210
2287
  * @summary: Update user password
2211
2288
  * @description: Use this API to update the password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/updatePassword/).
2212
2289
  */
2213
- async updatePassword({ body } = {}, { headers } = { headers: false }) {
2290
+ async updatePassword(
2291
+ { body, requestHeaders } = { requestHeaders: {} },
2292
+ { responseHeaders } = { responseHeaders: false }
2293
+ ) {
2214
2294
  const { error } = UserApplicationValidator.updatePassword().validate(
2215
2295
  { body },
2216
2296
  { abortEarly: false, allowUnknown: true }
@@ -2246,12 +2326,12 @@ class User {
2246
2326
  }),
2247
2327
  query_params,
2248
2328
  body,
2249
- xHeaders,
2250
- { headers }
2329
+ { ...xHeaders, ...requestHeaders },
2330
+ { responseHeaders }
2251
2331
  );
2252
2332
 
2253
2333
  let responseData = response;
2254
- if (headers) {
2334
+ if (responseHeaders) {
2255
2335
  responseData = response[0];
2256
2336
  }
2257
2337
 
@@ -2274,6 +2354,7 @@ class User {
2274
2354
 
2275
2355
  /**
2276
2356
  * @param {UserApplicationValidator.UpdateProfileParam} arg - Arg object.
2357
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2277
2358
  * @param {import("../ApplicationAPIClient").Options} - Options
2278
2359
  * @returns {Promise<UserApplicationModel.ProfileEditSuccess>} - Success response
2279
2360
  * @name updateProfile
@@ -2281,8 +2362,8 @@ class User {
2281
2362
  * @description: Use this API to update details in the user profile. Details can be first name, last name, gender, email, phone number, or profile picture. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/updateProfile/).
2282
2363
  */
2283
2364
  async updateProfile(
2284
- { body, platform } = {},
2285
- { headers } = { headers: false }
2365
+ { body, platform, requestHeaders } = { requestHeaders: {} },
2366
+ { responseHeaders } = { responseHeaders: false }
2286
2367
  ) {
2287
2368
  const { error } = UserApplicationValidator.updateProfile().validate(
2288
2369
  { body, platform },
@@ -2320,12 +2401,12 @@ class User {
2320
2401
  }),
2321
2402
  query_params,
2322
2403
  body,
2323
- xHeaders,
2324
- { headers }
2404
+ { ...xHeaders, ...requestHeaders },
2405
+ { responseHeaders }
2325
2406
  );
2326
2407
 
2327
2408
  let responseData = response;
2328
- if (headers) {
2409
+ if (responseHeaders) {
2329
2410
  responseData = response[0];
2330
2411
  }
2331
2412
 
@@ -2348,13 +2429,17 @@ class User {
2348
2429
 
2349
2430
  /**
2350
2431
  * @param {UserApplicationValidator.VerifyEmailParam} arg - Arg object.
2432
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2351
2433
  * @param {import("../ApplicationAPIClient").Options} - Options
2352
2434
  * @returns {Promise<UserApplicationModel.VerifyEmailSuccess>} - Success response
2353
2435
  * @name verifyEmail
2354
2436
  * @summary: Verify email
2355
2437
  * @description: Use this API to send a verification code to verify an email. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyEmail/).
2356
2438
  */
2357
- async verifyEmail({ body } = {}, { headers } = { headers: false }) {
2439
+ async verifyEmail(
2440
+ { body, requestHeaders } = { requestHeaders: {} },
2441
+ { responseHeaders } = { responseHeaders: false }
2442
+ ) {
2358
2443
  const { error } = UserApplicationValidator.verifyEmail().validate(
2359
2444
  { body },
2360
2445
  { abortEarly: false, allowUnknown: true }
@@ -2388,12 +2473,12 @@ class User {
2388
2473
  }),
2389
2474
  query_params,
2390
2475
  body,
2391
- xHeaders,
2392
- { headers }
2476
+ { ...xHeaders, ...requestHeaders },
2477
+ { responseHeaders }
2393
2478
  );
2394
2479
 
2395
2480
  let responseData = response;
2396
- if (headers) {
2481
+ if (responseHeaders) {
2397
2482
  responseData = response[0];
2398
2483
  }
2399
2484
 
@@ -2416,6 +2501,7 @@ class User {
2416
2501
 
2417
2502
  /**
2418
2503
  * @param {UserApplicationValidator.VerifyEmailOTPParam} arg - Arg object.
2504
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2419
2505
  * @param {import("../ApplicationAPIClient").Options} - Options
2420
2506
  * @returns {Promise<UserApplicationModel.VerifyOtpSuccess>} - Success response
2421
2507
  * @name verifyEmailOTP
@@ -2423,8 +2509,8 @@ class User {
2423
2509
  * @description: Use this API to verify the OTP received on an email ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyEmailOTP/).
2424
2510
  */
2425
2511
  async verifyEmailOTP(
2426
- { body, platform } = {},
2427
- { headers } = { headers: false }
2512
+ { body, platform, requestHeaders } = { requestHeaders: {} },
2513
+ { responseHeaders } = { responseHeaders: false }
2428
2514
  ) {
2429
2515
  const { error } = UserApplicationValidator.verifyEmailOTP().validate(
2430
2516
  { body, platform },
@@ -2462,12 +2548,12 @@ class User {
2462
2548
  }),
2463
2549
  query_params,
2464
2550
  body,
2465
- xHeaders,
2466
- { headers }
2551
+ { ...xHeaders, ...requestHeaders },
2552
+ { responseHeaders }
2467
2553
  );
2468
2554
 
2469
2555
  let responseData = response;
2470
- if (headers) {
2556
+ if (responseHeaders) {
2471
2557
  responseData = response[0];
2472
2558
  }
2473
2559
 
@@ -2490,13 +2576,17 @@ class User {
2490
2576
 
2491
2577
  /**
2492
2578
  * @param {UserApplicationValidator.VerifyMobileParam} arg - Arg object.
2579
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2493
2580
  * @param {import("../ApplicationAPIClient").Options} - Options
2494
2581
  * @returns {Promise<UserApplicationModel.VerifyEmailSuccess>} - Success response
2495
2582
  * @name verifyMobile
2496
2583
  * @summary: Verify mobile
2497
2584
  * @description: Use this API to send a verification code to verify a mobile number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobile/).
2498
2585
  */
2499
- async verifyMobile({ body } = {}, { headers } = { headers: false }) {
2586
+ async verifyMobile(
2587
+ { body, requestHeaders } = { requestHeaders: {} },
2588
+ { responseHeaders } = { responseHeaders: false }
2589
+ ) {
2500
2590
  const { error } = UserApplicationValidator.verifyMobile().validate(
2501
2591
  { body },
2502
2592
  { abortEarly: false, allowUnknown: true }
@@ -2532,12 +2622,12 @@ class User {
2532
2622
  }),
2533
2623
  query_params,
2534
2624
  body,
2535
- xHeaders,
2536
- { headers }
2625
+ { ...xHeaders, ...requestHeaders },
2626
+ { responseHeaders }
2537
2627
  );
2538
2628
 
2539
2629
  let responseData = response;
2540
- if (headers) {
2630
+ if (responseHeaders) {
2541
2631
  responseData = response[0];
2542
2632
  }
2543
2633
 
@@ -2560,6 +2650,7 @@ class User {
2560
2650
 
2561
2651
  /**
2562
2652
  * @param {UserApplicationValidator.VerifyMobileOTPParam} arg - Arg object.
2653
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2563
2654
  * @param {import("../ApplicationAPIClient").Options} - Options
2564
2655
  * @returns {Promise<UserApplicationModel.VerifyOtpSuccess>} - Success response
2565
2656
  * @name verifyMobileOTP
@@ -2567,8 +2658,8 @@ class User {
2567
2658
  * @description: Use this API to verify the OTP received on a mobile number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobileOTP/).
2568
2659
  */
2569
2660
  async verifyMobileOTP(
2570
- { body, platform } = {},
2571
- { headers } = { headers: false }
2661
+ { body, platform, requestHeaders } = { requestHeaders: {} },
2662
+ { responseHeaders } = { responseHeaders: false }
2572
2663
  ) {
2573
2664
  const { error } = UserApplicationValidator.verifyMobileOTP().validate(
2574
2665
  { body, platform },
@@ -2606,12 +2697,12 @@ class User {
2606
2697
  }),
2607
2698
  query_params,
2608
2699
  body,
2609
- xHeaders,
2610
- { headers }
2700
+ { ...xHeaders, ...requestHeaders },
2701
+ { responseHeaders }
2611
2702
  );
2612
2703
 
2613
2704
  let responseData = response;
2614
- if (headers) {
2705
+ if (responseHeaders) {
2615
2706
  responseData = response[0];
2616
2707
  }
2617
2708