@gofynd/fdk-client-javascript 1.4.15-beta.13 → 1.4.15-beta.15

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 (278) hide show
  1. package/README.md +23 -26
  2. package/package.json +5 -1
  3. package/sdk/application/ApplicationClient.d.ts +5 -6
  4. package/sdk/application/ApplicationClient.js +24 -20
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
  6. package/sdk/application/Cart/CartApplicationClient.js +444 -76
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
  16. package/sdk/application/Content/ContentApplicationClient.js +274 -111
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
  22. package/sdk/application/Lead/LeadApplicationClient.js +6 -6
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
  26. package/sdk/application/Order/OrderApplicationClient.js +217 -17
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
  28. package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
  32. package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
  33. package/sdk/application/User/UserApplicationClient.d.ts +103 -53
  34. package/sdk/application/User/UserApplicationClient.js +308 -49
  35. package/sdk/common/AxiosHelper.js +11 -4
  36. package/sdk/common/Constant.d.ts +27 -4
  37. package/sdk/common/Constant.js +33 -6
  38. package/sdk/common/utils.d.ts +10 -0
  39. package/sdk/common/utils.js +24 -3
  40. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
  41. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
  43. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
  44. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
  45. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
  46. package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
  47. package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
  48. package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
  49. package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
  50. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
  51. package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
  52. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
  53. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
  54. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
  55. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
  56. package/sdk/partner/PartnerClient.d.ts +5 -2
  57. package/sdk/partner/PartnerClient.js +21 -7
  58. package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
  59. package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
  60. package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
  61. package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
  62. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  63. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
  64. package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
  65. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
  66. package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
  67. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
  68. package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
  69. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
  70. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
  71. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  73. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
  75. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  81. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
  82. package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
  83. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  84. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  85. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  86. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  87. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
  89. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
  91. package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
  92. package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
  93. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
  97. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
  98. package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
  99. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9571 -2674
  100. package/sdk/platform/Catalog/CatalogPlatformModel.js +5081 -2019
  101. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
  103. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
  104. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  105. package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
  106. package/sdk/platform/Common/CommonPlatformModel.js +25 -14
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
  111. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  112. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
  114. package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
  124. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
  126. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
  128. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  130. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
  132. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
  134. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
  135. package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
  136. package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
  137. package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
  138. package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
  139. package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
  140. package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
  141. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
  142. package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
  143. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
  144. package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  146. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
  150. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
  152. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
  154. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  156. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  159. package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
  160. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  161. package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
  162. package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
  163. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
  164. package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
  165. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
  166. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
  167. package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
  168. package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
  169. package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
  170. package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
  171. package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
  172. package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
  173. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
  175. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
  177. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
  178. package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
  179. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
  180. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
  181. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
  182. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
  183. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
  184. package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
  185. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
  186. package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
  187. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  188. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  189. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  190. package/sdk/platform/PlatformApplicationClient.js +0 -4
  191. package/sdk/platform/PlatformClient.d.ts +5 -4
  192. package/sdk/platform/PlatformClient.js +32 -22
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
  203. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  204. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
  206. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  212. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
  214. package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
  215. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
  216. package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
  217. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
  218. package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
  219. package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
  220. package/sdk/platform/User/UserPlatformModel.js +607 -46
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  226. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  227. package/sdk/platform/index.d.ts +0 -2
  228. package/sdk/platform/index.js +0 -4
  229. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  230. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  231. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  232. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  233. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  234. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
  239. package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
  240. package/sdk/public/Content/ContentPublicClient.js +1067 -17
  241. package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
  242. package/sdk/public/Content/ContentPublicModel.js +751 -3
  243. package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
  244. package/sdk/public/Content/ContentPublicValidator.js +119 -2
  245. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  246. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  247. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  248. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  249. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  250. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  251. package/sdk/public/PublicClient.d.ts +5 -2
  252. package/sdk/public/PublicClient.js +16 -6
  253. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
  254. package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
  255. package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
  256. package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
  257. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  258. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  259. package/sdk/public/index.d.ts +1 -0
  260. package/sdk/public/index.js +2 -0
  261. package/utility.d.ts +3 -0
  262. package/utility.js +7 -0
  263. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  264. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  265. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
  266. package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
  267. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  268. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  269. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  270. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  271. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  272. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
@@ -19,6 +19,8 @@ class User {
19
19
  deleteUser: "/service/application/user/authentication/v1.0/delete",
20
20
  forgotPassword:
21
21
  "/service/application/user/authentication/v1.0/login/password/reset/forgot",
22
+ getAttributesDefinition:
23
+ "/service/application/user/profile/v1.0/attributes/definition",
22
24
  getListOfActiveSessions:
23
25
  "/service/application/user/authentication/v1.0/sessions",
24
26
  getLoggedInUser: "/service/application/user/authentication/v1.0/session",
@@ -50,10 +52,14 @@ class User {
50
52
  "/service/application/user/authentication/v1.0/otp/forgot/email/send",
51
53
  sendForgotOTPOnMobile:
52
54
  "/service/application/user/authentication/v1.0/otp/forgot/mobile/send",
55
+ sendOTPForUpdate:
56
+ "/service/application/user/profile/v2.0/{entity}/otp/send",
53
57
  sendOTPOnEmail:
54
58
  "/service/application/user/authentication/v1.0/otp/email/send",
55
59
  sendOTPOnMobile:
56
60
  "/service/application/user/authentication/v1.0/otp/mobile/send",
61
+ sendOTPOnPrimary:
62
+ "/service/application/user/profile/v2.0/{entity}/primary/otp/send",
57
63
  sendResetPasswordEmail:
58
64
  "/service/application/user/authentication/v1.0/login/password/reset",
59
65
  sendResetPasswordMobile:
@@ -83,6 +89,10 @@ class User {
83
89
  "/service/application/user/authentication/v1.0/otp/forgot/mobile/verify",
84
90
  verifyMobileOTP:
85
91
  "/service/application/user/authentication/v1.0/otp/mobile/verify",
92
+ verifyOTPForUpdate:
93
+ "/service/application/user/profile/v2.0/{entity}/otp/verify",
94
+ verifyOTPonPrimary:
95
+ "/service/application/user/profile/v2.0/{entity}/primary/otp/verify",
86
96
  };
87
97
  this._urls = Object.entries(this._relativeUrls).reduce(
88
98
  (urls, [method, relativeUrl]) => {
@@ -106,7 +116,7 @@ class User {
106
116
  * @returns {Promise<VerifyEmailOTPSuccess>} - Success response
107
117
  * @name addEmail
108
118
  * @summary: Add Email to Profile
109
- * @description: Add a new email address to the user's profile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/addEmail/).
119
+ * @description: Add a new email address to the user's profile. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/addEmail/).
110
120
  */
111
121
  async addEmail(
112
122
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -144,7 +154,7 @@ class User {
144
154
  * @returns {Promise<VerifyMobileOTPSuccess>} - Success response
145
155
  * @name addMobileNumber
146
156
  * @summary: Add Mobile Number to Profile
147
- * @description: Add a new mobile number to the user's profile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/addMobileNumber/).
157
+ * @description: Add a new mobile number to the user's profile. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/addMobileNumber/).
148
158
  */
149
159
  async addMobileNumber(
150
160
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -182,7 +192,7 @@ class User {
182
192
  * @returns {Promise<LoginSuccess>} - Success response
183
193
  * @name deleteEmail
184
194
  * @summary: Delete Email From Profile
185
- * @description: Delete email from profile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/deleteEmail/).
195
+ * @description: Delete email from profile. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/deleteEmail/).
186
196
  */
187
197
  async deleteEmail(
188
198
  { active, primary, verified, email, platform, requestHeaders } = {
@@ -226,7 +236,7 @@ class User {
226
236
  * @returns {Promise<LoginSuccess>} - Success response
227
237
  * @name deleteMobileNumber
228
238
  * @summary: Delete Mobile Number From Profile
229
- * @description: Delete mobile number from profile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/deleteMobileNumber/).
239
+ * @description: Delete mobile number from profile. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/deleteMobileNumber/).
230
240
  */
231
241
  async deleteMobileNumber(
232
242
  {
@@ -277,7 +287,7 @@ class User {
277
287
  * @returns {Promise<DeleteUserSuccess>} - Success response
278
288
  * @name deleteUser
279
289
  * @summary: Verify OTP and Delete User
280
- * @description: Verify OTP sent to mobile/email and delete the user's account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/deleteUser/).
290
+ * @description: Verify OTP sent to mobile/email and delete the user's account. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/deleteUser/).
281
291
  */
282
292
  async deleteUser(
283
293
  { body, requestHeaders } = { requestHeaders: {} },
@@ -314,7 +324,7 @@ class User {
314
324
  * @returns {Promise<LoginSuccess>} - Success response
315
325
  * @name forgotPassword
316
326
  * @summary: Reset Password via Code and login
317
- * @description: Reset a password using the code sent on email or sms the login. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/forgotPassword/).
327
+ * @description: Reset a password using the code sent on email or sms the login. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/forgotPassword/).
318
328
  */
319
329
  async forgotPassword(
320
330
  { body, requestHeaders } = { requestHeaders: {} },
@@ -345,13 +355,78 @@ class User {
345
355
  return response;
346
356
  }
347
357
 
358
+ /**
359
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
360
+ * @param {import("../ApplicationAPIClient").Options} - Options
361
+ * @returns {Promise<Object>} - Success response
362
+ * @name getAttributesDefinition
363
+ * @summary: Get User Attribute Definitions
364
+ * @description: Retrieve user attribute definitions. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/getAttributesDefinition/).
365
+ */
366
+ async getAttributesDefinition(
367
+ {
368
+ excludingIds,
369
+ slug,
370
+ type,
371
+ customerEditable,
372
+ encrypted,
373
+ pinned,
374
+ pinOrder,
375
+ isLocked,
376
+ name,
377
+ registrationEnabled,
378
+ registrationType,
379
+ pageSize,
380
+ pageNo,
381
+ requestHeaders,
382
+ } = { requestHeaders: {} },
383
+ { responseHeaders } = { responseHeaders: false }
384
+ ) {
385
+ const query_params = {};
386
+ query_params["excluding_ids"] = excludingIds;
387
+ query_params["slug"] = slug;
388
+ query_params["type"] = type;
389
+ query_params["customer_editable"] = customerEditable;
390
+ query_params["encrypted"] = encrypted;
391
+ query_params["pinned"] = pinned;
392
+ query_params["pin_order"] = pinOrder;
393
+ query_params["is_locked"] = isLocked;
394
+ query_params["name"] = name;
395
+ query_params["registration_enabled"] = registrationEnabled;
396
+ query_params["registration_type"] = registrationType;
397
+ query_params["page_size"] = pageSize;
398
+ query_params["page_no"] = pageNo;
399
+
400
+ const xHeaders = {};
401
+
402
+ const response = await ApplicationAPIClient.execute(
403
+ this._conf,
404
+ "get",
405
+ constructUrl({
406
+ url: this._urls["getAttributesDefinition"],
407
+ params: {},
408
+ }),
409
+ query_params,
410
+ undefined,
411
+ { ...xHeaders, ...requestHeaders },
412
+ { responseHeaders }
413
+ );
414
+
415
+ let responseData = response;
416
+ if (responseHeaders) {
417
+ responseData = response[0];
418
+ }
419
+
420
+ return response;
421
+ }
422
+
348
423
  /**
349
424
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
350
425
  * @param {import("../ApplicationAPIClient").Options} - Options
351
426
  * @returns {Promise<SessionListSuccess>} - Success response
352
427
  * @name getListOfActiveSessions
353
428
  * @summary: Get List OF Active Sessions
354
- * @description: Retrieve all active sessions of a user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/getListOfActiveSessions/).
429
+ * @description: Retrieve all active sessions of a user. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/getListOfActiveSessions/).
355
430
  */
356
431
  async getListOfActiveSessions(
357
432
  { requestHeaders } = { requestHeaders: {} },
@@ -388,7 +463,7 @@ class User {
388
463
  * @returns {Promise<UserObjectSchema>} - Success response
389
464
  * @name getLoggedInUser
390
465
  * @summary: Get Logged in User
391
- * @description: Retrieve information about the currently logged-in user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/getLoggedInUser/).
466
+ * @description: Retrieve information about the currently logged-in user. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/getLoggedInUser/).
392
467
  */
393
468
  async getLoggedInUser(
394
469
  { requestHeaders } = { requestHeaders: {} },
@@ -425,7 +500,7 @@ class User {
425
500
  * @returns {Promise<PlatformSchema>} - Success response
426
501
  * @name getPlatformConfig
427
502
  * @summary: Get Platform Configuration
428
- * @description: Retrieve platform sales channel authentication configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/getPlatformConfig/).
503
+ * @description: Retrieve platform sales channel authentication configuration. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/getPlatformConfig/).
429
504
  */
430
505
  async getPlatformConfig(
431
506
  { name, requestHeaders } = { requestHeaders: {} },
@@ -463,7 +538,7 @@ class User {
463
538
  * @returns {Promise<UserAttributes>} - Success response
464
539
  * @name getUserAttributes
465
540
  * @summary: Get User Attributes
466
- * @description: Get the list of user attributes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/getUserAttributes/).
541
+ * @description: Get the list of user attributes. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/getUserAttributes/).
467
542
  */
468
543
  async getUserAttributes(
469
544
  { slug, requestHeaders } = { requestHeaders: {} },
@@ -501,7 +576,7 @@ class User {
501
576
  * @returns {Promise<HasPasswordSuccess>} - Success response
502
577
  * @name hasPassword
503
578
  * @summary: Check Password Existence
504
- * @description: Check if user has set an account password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/hasPassword/).
579
+ * @description: Check if user has set an account password. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/hasPassword/).
505
580
  */
506
581
  async hasPassword(
507
582
  { requestHeaders } = { requestHeaders: {} },
@@ -538,7 +613,7 @@ class User {
538
613
  * @returns {Promise<AuthSuccess>} - Success response
539
614
  * @name loginWithAppleIOS
540
615
  * @summary: iOS Login with Apple
541
- * @description: Enable ios users to log in to the system using their apple id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithAppleIOS/).
616
+ * @description: Enable ios users to log in to the system using their apple id. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/loginWithAppleIOS/).
542
617
  */
543
618
  async loginWithAppleIOS(
544
619
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -576,7 +651,7 @@ class User {
576
651
  * @returns {Promise<LoginSuccess>} - Success response
577
652
  * @name loginWithEmailAndPassword
578
653
  * @summary: Email and Password Login
579
- * @description: Allow login using an email and password combination. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithEmailAndPassword/).
654
+ * @description: Allow login using an email and password combination. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/loginWithEmailAndPassword/).
580
655
  */
581
656
  async loginWithEmailAndPassword(
582
657
  { body, requestHeaders } = { requestHeaders: {} },
@@ -613,7 +688,7 @@ class User {
613
688
  * @returns {Promise<AuthSuccess>} - Success response
614
689
  * @name loginWithFacebook
615
690
  * @summary: Login with Facebook
616
- * @description: Enable users to log in to the system using their facebook accounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithFacebook/).
691
+ * @description: Enable users to log in to the system using their facebook accounts. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/loginWithFacebook/).
617
692
  */
618
693
  async loginWithFacebook(
619
694
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -651,7 +726,7 @@ class User {
651
726
  * @returns {Promise<AuthSuccess>} - Success response
652
727
  * @name loginWithGoogle
653
728
  * @summary: Login with Google
654
- * @description: Enable website users to log in to the system using their google accounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithGoogle/).
729
+ * @description: Enable website users to log in to the system using their google accounts. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/loginWithGoogle/).
655
730
  */
656
731
  async loginWithGoogle(
657
732
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -689,7 +764,7 @@ class User {
689
764
  * @returns {Promise<AuthSuccess>} - Success response
690
765
  * @name loginWithGoogleAndroid
691
766
  * @summary: Android Login with Google
692
- * @description: Enable android users to log in to the system using their facebook accounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithGoogleAndroid/).
767
+ * @description: Enable android users to log in to the system using their facebook accounts. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/loginWithGoogleAndroid/).
693
768
  */
694
769
  async loginWithGoogleAndroid(
695
770
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -727,7 +802,7 @@ class User {
727
802
  * @returns {Promise<AuthSuccess>} - Success response
728
803
  * @name loginWithGoogleIOS
729
804
  * @summary: iOS Login with Google
730
- * @description: Enable ios users to log in to the system using their facebook accounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithGoogleIOS/).
805
+ * @description: Enable ios users to log in to the system using their facebook accounts. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/loginWithGoogleIOS/).
731
806
  */
732
807
  async loginWithGoogleIOS(
733
808
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -762,10 +837,10 @@ class User {
762
837
  /**
763
838
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
764
839
  * @param {import("../ApplicationAPIClient").Options} - Options
765
- * @returns {Promise<SendOtpResponse>} - Success response
840
+ * @returns {Promise<SendOtp>} - Success response
766
841
  * @name loginWithOTP
767
842
  * @summary: Login with Mobile OTP
768
- * @description: Allow users to log in using a one-time password sent to their mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithOTP/).
843
+ * @description: Allow users to log in using a one-time password sent to their mobile. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/loginWithOTP/).
769
844
  */
770
845
  async loginWithOTP(
771
846
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -803,7 +878,7 @@ class User {
803
878
  * @returns {Promise<LoginSuccess>} - Success response
804
879
  * @name loginWithToken
805
880
  * @summary: Login with Token
806
- * @description: Login user using a token for authentication. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithToken/).
881
+ * @description: Login user using a token for authentication. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/loginWithToken/).
807
882
  */
808
883
  async loginWithToken(
809
884
  { body, requestHeaders } = { requestHeaders: {} },
@@ -840,7 +915,7 @@ class User {
840
915
  * @returns {Promise<LogoutSuccess>} - Success response
841
916
  * @name logout
842
917
  * @summary: Logout Current User
843
- * @description: Logout currently logged-in user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/logout/).
918
+ * @description: Logout currently logged-in user. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/logout/).
844
919
  */
845
920
  async logout(
846
921
  { requestHeaders } = { requestHeaders: {} },
@@ -877,7 +952,7 @@ class User {
877
952
  * @returns {Promise<RegisterFormSuccess>} - Success response
878
953
  * @name registerWithForm
879
954
  * @summary: Register User with Form
880
- * @description: Enable new users to register using a form. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/registerWithForm/).
955
+ * @description: Enable new users to register using a form. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/registerWithForm/).
881
956
  */
882
957
  async registerWithForm(
883
958
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -915,7 +990,7 @@ class User {
915
990
  * @returns {Promise<ResetForgotPasswordSuccess>} - Success response
916
991
  * @name resetForgotPassword
917
992
  * @summary: Reset Password via Code
918
- * @description: Reset a password using the code sent on email or sms. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/resetForgotPassword/).
993
+ * @description: Reset a password using the code sent on email or sms. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/resetForgotPassword/).
919
994
  */
920
995
  async resetForgotPassword(
921
996
  { body, requestHeaders } = { requestHeaders: {} },
@@ -952,7 +1027,7 @@ class User {
952
1027
  * @returns {Promise<EmailOtpSuccess>} - Success response
953
1028
  * @name sendForgotOTPOnEmail
954
1029
  * @summary: Send Email OTP for Forgot Password
955
- * @description: Send a one-time password to the user's email for verification when resetting a forgotten password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendForgotOTPOnEmail/).
1030
+ * @description: Send a one-time password to the user's email for verification when resetting a forgotten password. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/sendForgotOTPOnEmail/).
956
1031
  */
957
1032
  async sendForgotOTPOnEmail(
958
1033
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -987,10 +1062,10 @@ class User {
987
1062
  /**
988
1063
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
989
1064
  * @param {import("../ApplicationAPIClient").Options} - Options
990
- * @returns {Promise<OtpSuccess>} - Success response
1065
+ * @returns {Promise<SendOtpSuccess>} - Success response
991
1066
  * @name sendForgotOTPOnMobile
992
1067
  * @summary: Send mobile OTP for forgot-password
993
- * @description: Send a one-time password to the user's mobile for verification when resetting a forgotten password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendForgotOTPOnMobile/).
1068
+ * @description: Send a one-time password to the user's mobile for verification when resetting a forgotten password. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/sendForgotOTPOnMobile/).
994
1069
  */
995
1070
  async sendForgotOTPOnMobile(
996
1071
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -1022,13 +1097,59 @@ class User {
1022
1097
  return response;
1023
1098
  }
1024
1099
 
1100
+ /**
1101
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1102
+ * @param {import("../ApplicationAPIClient").Options} - Options
1103
+ * @returns {Promise<SendOtpSuccess>} - Success response
1104
+ * @name sendOTPForUpdate
1105
+ * @summary: Send OTP to update Mobile or Email
1106
+ * @description: Send OTP to mobile number or email. User needs to use sendOTPOnPrimary and verifyOTPonPrimary before using this method to update details. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/sendOTPForUpdate/).
1107
+ */
1108
+ async sendOTPForUpdate(
1109
+ { entity, body, requestHeaders } = { requestHeaders: {} },
1110
+ { responseHeaders } = { responseHeaders: false }
1111
+ ) {
1112
+ const errors = validateRequiredParams(arguments[0], ["entity"]);
1113
+ if (errors.length > 0) {
1114
+ const error = new FDKClientValidationError({
1115
+ message: "Missing required field",
1116
+ details: errors,
1117
+ });
1118
+ return Promise.reject(new FDKClientValidationError(error));
1119
+ }
1120
+
1121
+ const query_params = {};
1122
+
1123
+ const xHeaders = {};
1124
+
1125
+ const response = await ApplicationAPIClient.execute(
1126
+ this._conf,
1127
+ "post",
1128
+ constructUrl({
1129
+ url: this._urls["sendOTPForUpdate"],
1130
+ params: { entity },
1131
+ }),
1132
+ query_params,
1133
+ body,
1134
+ { ...xHeaders, ...requestHeaders },
1135
+ { responseHeaders }
1136
+ );
1137
+
1138
+ let responseData = response;
1139
+ if (responseHeaders) {
1140
+ responseData = response[0];
1141
+ }
1142
+
1143
+ return response;
1144
+ }
1145
+
1025
1146
  /**
1026
1147
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1027
1148
  * @param {import("../ApplicationAPIClient").Options} - Options
1028
1149
  * @returns {Promise<EmailOtpSuccess>} - Success response
1029
1150
  * @name sendOTPOnEmail
1030
1151
  * @summary: Send OTP on Email
1031
- * @description: Send a one-time password to the user's email for verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendOTPOnEmail/).
1152
+ * @description: Send a one-time password to the user's email for verification. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/sendOTPOnEmail/).
1032
1153
  */
1033
1154
  async sendOTPOnEmail(
1034
1155
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -1063,10 +1184,10 @@ class User {
1063
1184
  /**
1064
1185
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1065
1186
  * @param {import("../ApplicationAPIClient").Options} - Options
1066
- * @returns {Promise<OtpSuccess>} - Success response
1187
+ * @returns {Promise<SendOtpSuccess>} - Success response
1067
1188
  * @name sendOTPOnMobile
1068
1189
  * @summary: Send OTP on Mobile
1069
- * @description: Send a one-time password to the user's mobile for verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendOTPOnMobile/).
1190
+ * @description: Send a one-time password to the user's mobile for verification. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/sendOTPOnMobile/).
1070
1191
  */
1071
1192
  async sendOTPOnMobile(
1072
1193
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -1098,13 +1219,59 @@ class User {
1098
1219
  return response;
1099
1220
  }
1100
1221
 
1222
+ /**
1223
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1224
+ * @param {import("../ApplicationAPIClient").Options} - Options
1225
+ * @returns {Promise<SendOtpSuccess>} - Success response
1226
+ * @name sendOTPOnPrimary
1227
+ * @summary: Send OTP to Primary Mobile or Email
1228
+ * @description: Send OTP to primary mobile number or email to verify primary details. Use this to update Email or Mobile, other APIs will be deprecated. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/sendOTPOnPrimary/).
1229
+ */
1230
+ async sendOTPOnPrimary(
1231
+ { entity, body, requestHeaders } = { requestHeaders: {} },
1232
+ { responseHeaders } = { responseHeaders: false }
1233
+ ) {
1234
+ const errors = validateRequiredParams(arguments[0], ["entity"]);
1235
+ if (errors.length > 0) {
1236
+ const error = new FDKClientValidationError({
1237
+ message: "Missing required field",
1238
+ details: errors,
1239
+ });
1240
+ return Promise.reject(new FDKClientValidationError(error));
1241
+ }
1242
+
1243
+ const query_params = {};
1244
+
1245
+ const xHeaders = {};
1246
+
1247
+ const response = await ApplicationAPIClient.execute(
1248
+ this._conf,
1249
+ "post",
1250
+ constructUrl({
1251
+ url: this._urls["sendOTPOnPrimary"],
1252
+ params: { entity },
1253
+ }),
1254
+ query_params,
1255
+ body,
1256
+ { ...xHeaders, ...requestHeaders },
1257
+ { responseHeaders }
1258
+ );
1259
+
1260
+ let responseData = response;
1261
+ if (responseHeaders) {
1262
+ responseData = response[0];
1263
+ }
1264
+
1265
+ return response;
1266
+ }
1267
+
1101
1268
  /**
1102
1269
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1103
1270
  * @param {import("../ApplicationAPIClient").Options} - Options
1104
1271
  * @returns {Promise<ResetPasswordSuccess>} - Success response
1105
1272
  * @name sendResetPasswordEmail
1106
1273
  * @summary: Reset Password via Email
1107
- * @description: Send a password reset link to the user's email. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendResetPasswordEmail/).
1274
+ * @description: Send a password reset link to the user's email. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/sendResetPasswordEmail/).
1108
1275
  */
1109
1276
  async sendResetPasswordEmail(
1110
1277
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -1142,7 +1309,7 @@ class User {
1142
1309
  * @returns {Promise<any>} - Success response
1143
1310
  * @name sendResetPasswordMobile
1144
1311
  * @summary: Reset Password via Mobile
1145
- * @description: Send a password reset link to the user's mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendResetPasswordMobile/).
1312
+ * @description: Send a password reset link to the user's mobile. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/sendResetPasswordMobile/).
1146
1313
  */
1147
1314
  async sendResetPasswordMobile(
1148
1315
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -1180,7 +1347,7 @@ class User {
1180
1347
  * @returns {Promise<ResetPasswordSuccess>} - Success response
1181
1348
  * @name sendResetToken
1182
1349
  * @summary: Validate Password Reset Code
1183
- * @description: Validate password reset link code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendResetToken/).
1350
+ * @description: Validate password reset link code. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/sendResetToken/).
1184
1351
  */
1185
1352
  async sendResetToken(
1186
1353
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1217,7 +1384,7 @@ class User {
1217
1384
  * @returns {Promise<SendEmailVerifyLinkSuccess>} - Success response
1218
1385
  * @name sendVerificationLinkToEmail
1219
1386
  * @summary: Send Verification Link to Email
1220
- * @description: Send a verification link to a newly added email address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendVerificationLinkToEmail/).
1387
+ * @description: Send a verification link to a newly added email address. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/sendVerificationLinkToEmail/).
1221
1388
  */
1222
1389
  async sendVerificationLinkToEmail(
1223
1390
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -1255,7 +1422,7 @@ class User {
1255
1422
  * @returns {Promise<SendMobileVerifyLinkSuccess>} - Success response
1256
1423
  * @name sendVerificationLinkToMobile
1257
1424
  * @summary: Send Verification Link to Mobile
1258
- * @description: Send a verification link to a newly added mobile number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendVerificationLinkToMobile/).
1425
+ * @description: Send a verification link to a newly added mobile number. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/sendVerificationLinkToMobile/).
1259
1426
  */
1260
1427
  async sendVerificationLinkToMobile(
1261
1428
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -1293,7 +1460,7 @@ class User {
1293
1460
  * @returns {Promise<LoginSuccess>} - Success response
1294
1461
  * @name setEmailAsPrimary
1295
1462
  * @summary: Set Email as Primary
1296
- * @description: Set an email address as the primary contact for the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/setEmailAsPrimary/).
1463
+ * @description: Set an email address as the primary contact for the user. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/setEmailAsPrimary/).
1297
1464
  */
1298
1465
  async setEmailAsPrimary(
1299
1466
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1330,7 +1497,7 @@ class User {
1330
1497
  * @returns {Promise<LoginSuccess>} - Success response
1331
1498
  * @name setMobileNumberAsPrimary
1332
1499
  * @summary: Set Mobile as Primary
1333
- * @description: Set a mobile number as the primary contact for the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/setMobileNumberAsPrimary/).
1500
+ * @description: Set a mobile number as the primary contact for the user. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/setMobileNumberAsPrimary/).
1334
1501
  */
1335
1502
  async setMobileNumberAsPrimary(
1336
1503
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1366,8 +1533,8 @@ class User {
1366
1533
  * @param {import("../ApplicationAPIClient").Options} - Options
1367
1534
  * @returns {Promise<VerifyEmailSuccess>} - Success response
1368
1535
  * @name updatePassword
1369
- * @summary: Update Password
1370
- * @description: Allow user to change their password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/updatePassword/).
1536
+ * @summary: Update password
1537
+ * @description: Allow user to change their password. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/updatePassword/).
1371
1538
  */
1372
1539
  async updatePassword(
1373
1540
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1404,7 +1571,7 @@ class User {
1404
1571
  * @returns {Promise<ProfileEditSuccess>} - Success response
1405
1572
  * @name updateProfile
1406
1573
  * @summary: Edit User Profile Details
1407
- * @description: Allow users to modify and update their profile details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/updateProfile/).
1574
+ * @description: Allow users to modify and update their profile details. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/updateProfile/).
1408
1575
  */
1409
1576
  async updateProfile(
1410
1577
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -1442,7 +1609,7 @@ class User {
1442
1609
  * @returns {Promise<UserAttributes>} - Success response
1443
1610
  * @name updateUserAttributes
1444
1611
  * @summary: Update User Attributes
1445
- * @description: Update user attributes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/updateUserAttributes/).
1612
+ * @description: Update user attributes. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/updateUserAttributes/).
1446
1613
  */
1447
1614
  async updateUserAttributes(
1448
1615
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1476,10 +1643,10 @@ class User {
1476
1643
  /**
1477
1644
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1478
1645
  * @param {import("../ApplicationAPIClient").Options} - Options
1479
- * @returns {Promise<UserExistsResponse>} - Success response
1646
+ * @returns {Promise<UserExistsDetails>} - Success response
1480
1647
  * @name userExists
1481
1648
  * @summary: Chcek User Existence
1482
- * @description: Check whether user is already registered or not to the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/userExists/).
1649
+ * @description: Check whether user is already registered or not to the sales channel. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/userExists/).
1483
1650
  */
1484
1651
  async userExists(
1485
1652
  { q, requestHeaders } = { requestHeaders: {} },
@@ -1517,7 +1684,7 @@ class User {
1517
1684
  * @returns {Promise<VerifyEmailSuccess>} - Success response
1518
1685
  * @name verifyEmail
1519
1686
  * @summary: Verify Email with Code
1520
- * @description: Verify user email with a code sent within a link sent to their email. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyEmail/).
1687
+ * @description: Verify user email with a code sent within a link sent to their email. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/verifyEmail/).
1521
1688
  */
1522
1689
  async verifyEmail(
1523
1690
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1554,7 +1721,7 @@ class User {
1554
1721
  * @returns {Promise<VerifyForgotOtpSuccess>} - Success response
1555
1722
  * @name verifyEmailForgotOTP
1556
1723
  * @summary: Verify Email OTP for Forgot Password
1557
- * @description: Verify one-time password sent to user's email for resetting a forgotten password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyEmailForgotOTP/).
1724
+ * @description: Verify one-time password sent to user's email for resetting a forgotten password. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/verifyEmailForgotOTP/).
1558
1725
  */
1559
1726
  async verifyEmailForgotOTP(
1560
1727
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -1592,7 +1759,7 @@ class User {
1592
1759
  * @returns {Promise<VerifyOtpSuccess>} - Success response
1593
1760
  * @name verifyEmailOTP
1594
1761
  * @summary: Verify Email OTP
1595
- * @description: Verify one-time password sent to user's email. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyEmailOTP/).
1762
+ * @description: Verify one-time password sent to user's email. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/verifyEmailOTP/).
1596
1763
  */
1597
1764
  async verifyEmailOTP(
1598
1765
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -1630,7 +1797,7 @@ class User {
1630
1797
  * @returns {Promise<VerifyEmailSuccess>} - Success response
1631
1798
  * @name verifyMobile
1632
1799
  * @summary: Verify Mobile with Code
1633
- * @description: Verify user mobile with a code sent within a link sent to their mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobile/).
1800
+ * @description: Verify user mobile with a code sent within a link sent to their mobile. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/verifyMobile/).
1634
1801
  */
1635
1802
  async verifyMobile(
1636
1803
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1667,7 +1834,7 @@ class User {
1667
1834
  * @returns {Promise<VerifyForgotOtpSuccess>} - Success response
1668
1835
  * @name verifyMobileForgotOTP
1669
1836
  * @summary: Verify Mobile OTP for Forgot Password
1670
- * @description: Verify one-time password sent to user's mobile for resetting a forgotten password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobileForgotOTP/).
1837
+ * @description: Verify one-time password sent to user's mobile for resetting a forgotten password. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/verifyMobileForgotOTP/).
1671
1838
  */
1672
1839
  async verifyMobileForgotOTP(
1673
1840
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -1704,8 +1871,8 @@ class User {
1704
1871
  * @param {import("../ApplicationAPIClient").Options} - Options
1705
1872
  * @returns {Promise<VerifyOtpSuccess>} - Success response
1706
1873
  * @name verifyMobileOTP
1707
- * @summary: Verify Mobile OTP
1708
- * @description: Verify one-time password sent to user's mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobileOTP/).
1874
+ * @summary: Verify mobile OTP
1875
+ * @description: Verify one-time password sent to user's mobile. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/verifyMobileOTP/).
1709
1876
  */
1710
1877
  async verifyMobileOTP(
1711
1878
  { body, platform, requestHeaders } = { requestHeaders: {} },
@@ -1736,6 +1903,98 @@ class User {
1736
1903
 
1737
1904
  return response;
1738
1905
  }
1906
+
1907
+ /**
1908
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1909
+ * @param {import("../ApplicationAPIClient").Options} - Options
1910
+ * @returns {Promise<VerifyOtpSuccess>} - Success response
1911
+ * @name verifyOTPForUpdate
1912
+ * @summary: Verify OTP sent to Mobile or Email to update primary details.
1913
+ * @description: Verify OTP sent to Mobile number or Email to update primary details. User needs to use sendOTPOnPrimary, verifyOTPonPrimary and sendOTPForUpdate before using this method to verify update details. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/verifyOTPForUpdate/).
1914
+ */
1915
+ async verifyOTPForUpdate(
1916
+ { entity, body, requestHeaders } = { requestHeaders: {} },
1917
+ { responseHeaders } = { responseHeaders: false }
1918
+ ) {
1919
+ const errors = validateRequiredParams(arguments[0], ["entity"]);
1920
+ if (errors.length > 0) {
1921
+ const error = new FDKClientValidationError({
1922
+ message: "Missing required field",
1923
+ details: errors,
1924
+ });
1925
+ return Promise.reject(new FDKClientValidationError(error));
1926
+ }
1927
+
1928
+ const query_params = {};
1929
+
1930
+ const xHeaders = {};
1931
+
1932
+ const response = await ApplicationAPIClient.execute(
1933
+ this._conf,
1934
+ "post",
1935
+ constructUrl({
1936
+ url: this._urls["verifyOTPForUpdate"],
1937
+ params: { entity },
1938
+ }),
1939
+ query_params,
1940
+ body,
1941
+ { ...xHeaders, ...requestHeaders },
1942
+ { responseHeaders }
1943
+ );
1944
+
1945
+ let responseData = response;
1946
+ if (responseHeaders) {
1947
+ responseData = response[0];
1948
+ }
1949
+
1950
+ return response;
1951
+ }
1952
+
1953
+ /**
1954
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1955
+ * @param {import("../ApplicationAPIClient").Options} - Options
1956
+ * @returns {Promise<VerifyPrimaryOTPSuccess>} - Success response
1957
+ * @name verifyOTPonPrimary
1958
+ * @summary: Verify OTP sent to Primary Mobile or Email
1959
+ * @description: Verify OTP sent to primary mobile number or email to verify primary details. User needs to use sendOTPOnPrimary before verifying OTP. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/verifyOTPonPrimary/).
1960
+ */
1961
+ async verifyOTPonPrimary(
1962
+ { entity, body, requestHeaders } = { requestHeaders: {} },
1963
+ { responseHeaders } = { responseHeaders: false }
1964
+ ) {
1965
+ const errors = validateRequiredParams(arguments[0], ["entity"]);
1966
+ if (errors.length > 0) {
1967
+ const error = new FDKClientValidationError({
1968
+ message: "Missing required field",
1969
+ details: errors,
1970
+ });
1971
+ return Promise.reject(new FDKClientValidationError(error));
1972
+ }
1973
+
1974
+ const query_params = {};
1975
+
1976
+ const xHeaders = {};
1977
+
1978
+ const response = await ApplicationAPIClient.execute(
1979
+ this._conf,
1980
+ "post",
1981
+ constructUrl({
1982
+ url: this._urls["verifyOTPonPrimary"],
1983
+ params: { entity },
1984
+ }),
1985
+ query_params,
1986
+ body,
1987
+ { ...xHeaders, ...requestHeaders },
1988
+ { responseHeaders }
1989
+ );
1990
+
1991
+ let responseData = response;
1992
+ if (responseHeaders) {
1993
+ responseData = response[0];
1994
+ }
1995
+
1996
+ return response;
1997
+ }
1739
1998
  }
1740
1999
 
1741
2000
  module.exports = User;