@gofynd/fdk-client-javascript 0.1.35

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 (277) hide show
  1. package/.github/workflows/on_create_release.yml +23 -0
  2. package/.github/workflows/on_merge_main.yml +38 -0
  3. package/.github/workflows/on_pull_request.yml +35 -0
  4. package/.prettierrc +5 -0
  5. package/LICENSE +21 -0
  6. package/README.md +118 -0
  7. package/application.d.ts +3 -0
  8. package/application.js +6 -0
  9. package/common.d.ts +4 -0
  10. package/common.js +9 -0
  11. package/documentation/application/CART.md +7290 -0
  12. package/documentation/application/CATALOG.md +9570 -0
  13. package/documentation/application/COMMON.md +448 -0
  14. package/documentation/application/COMMUNICATION.md +463 -0
  15. package/documentation/application/CONFIGURATION.md +2902 -0
  16. package/documentation/application/CONTENT.md +3350 -0
  17. package/documentation/application/FILESTORAGE.md +491 -0
  18. package/documentation/application/LEAD.md +1891 -0
  19. package/documentation/application/LOGISTIC.md +439 -0
  20. package/documentation/application/ORDER.md +3428 -0
  21. package/documentation/application/PAYMENT.md +5035 -0
  22. package/documentation/application/POSCART.md +7889 -0
  23. package/documentation/application/README.md +21 -0
  24. package/documentation/application/REWARDS.md +714 -0
  25. package/documentation/application/SHARE.md +729 -0
  26. package/documentation/application/THEME.md +5796 -0
  27. package/documentation/application/USER.md +4326 -0
  28. package/documentation/platform/ANALYTICS.md +1150 -0
  29. package/documentation/platform/AUDITTRAIL.md +572 -0
  30. package/documentation/platform/BILLING.md +2396 -0
  31. package/documentation/platform/CART.md +5539 -0
  32. package/documentation/platform/CATALOG.md +21624 -0
  33. package/documentation/platform/COMMON.md +448 -0
  34. package/documentation/platform/COMMUNICATION.md +5714 -0
  35. package/documentation/platform/COMPANYPROFILE.md +2141 -0
  36. package/documentation/platform/CONFIGURATION.md +7335 -0
  37. package/documentation/platform/CONTENT.md +8989 -0
  38. package/documentation/platform/DISCOUNT.md +773 -0
  39. package/documentation/platform/FILESTORAGE.md +994 -0
  40. package/documentation/platform/INVENTORY.md +1775 -0
  41. package/documentation/platform/LEAD.md +4736 -0
  42. package/documentation/platform/ORDER.md +3764 -0
  43. package/documentation/platform/PARTNER.md +216 -0
  44. package/documentation/platform/PAYMENT.md +3444 -0
  45. package/documentation/platform/README.md +27 -0
  46. package/documentation/platform/REWARDS.md +871 -0
  47. package/documentation/platform/SHARE.md +602 -0
  48. package/documentation/platform/THEME.md +35725 -0
  49. package/documentation/platform/USER.md +2305 -0
  50. package/documentation/platform/WEBHOOK.md +587 -0
  51. package/documentation/public/CONFIGURATION.md +448 -0
  52. package/documentation/public/INVENTORY.md +686 -0
  53. package/documentation/public/WEBHOOK.md +348 -0
  54. package/index.d.ts +10 -0
  55. package/index.js +18 -0
  56. package/jest.config.d.ts +4 -0
  57. package/jest.config.js +6 -0
  58. package/package.json +35 -0
  59. package/platform.d.ts +3 -0
  60. package/platform.js +6 -0
  61. package/public.d.ts +3 -0
  62. package/public.js +6 -0
  63. package/sdk/application/ApplicationAPIClient.d.ts +11 -0
  64. package/sdk/application/ApplicationAPIClient.js +44 -0
  65. package/sdk/application/ApplicationClient.d.ts +40 -0
  66. package/sdk/application/ApplicationClient.js +84 -0
  67. package/sdk/application/ApplicationConfig.d.ts +19 -0
  68. package/sdk/application/ApplicationConfig.js +55 -0
  69. package/sdk/application/ApplicationModels.d.ts +826 -0
  70. package/sdk/application/ApplicationModels.js +10474 -0
  71. package/sdk/application/client/CartApplicationClient.d.ts +432 -0
  72. package/sdk/application/client/CartApplicationClient.js +1066 -0
  73. package/sdk/application/client/CatalogApplicationClient.d.ts +694 -0
  74. package/sdk/application/client/CatalogApplicationClient.js +1629 -0
  75. package/sdk/application/client/CommonApplicationClient.d.ts +38 -0
  76. package/sdk/application/client/CommonApplicationClient.js +105 -0
  77. package/sdk/application/client/CommunicationApplicationClient.d.ts +39 -0
  78. package/sdk/application/client/CommunicationApplicationClient.js +131 -0
  79. package/sdk/application/client/ConfigurationApplicationClient.d.ts +210 -0
  80. package/sdk/application/client/ConfigurationApplicationClient.js +649 -0
  81. package/sdk/application/client/ContentApplicationClient.d.ts +256 -0
  82. package/sdk/application/client/ContentApplicationClient.js +785 -0
  83. package/sdk/application/client/FileStorageApplicationClient.d.ts +88 -0
  84. package/sdk/application/client/FileStorageApplicationClient.js +214 -0
  85. package/sdk/application/client/LeadApplicationClient.d.ts +90 -0
  86. package/sdk/application/client/LeadApplicationClient.js +264 -0
  87. package/sdk/application/client/LogisticApplicationClient.d.ts +42 -0
  88. package/sdk/application/client/LogisticApplicationClient.js +128 -0
  89. package/sdk/application/client/OrderApplicationClient.d.ts +190 -0
  90. package/sdk/application/client/OrderApplicationClient.js +479 -0
  91. package/sdk/application/client/PaymentApplicationClient.d.ts +454 -0
  92. package/sdk/application/client/PaymentApplicationClient.js +1378 -0
  93. package/sdk/application/client/PosCartApplicationClient.d.ts +449 -0
  94. package/sdk/application/client/PosCartApplicationClient.js +1123 -0
  95. package/sdk/application/client/RewardsApplicationClient.d.ts +93 -0
  96. package/sdk/application/client/RewardsApplicationClient.js +293 -0
  97. package/sdk/application/client/ShareApplicationClient.d.ts +87 -0
  98. package/sdk/application/client/ShareApplicationClient.js +268 -0
  99. package/sdk/application/client/ThemeApplicationClient.d.ts +52 -0
  100. package/sdk/application/client/ThemeApplicationClient.js +161 -0
  101. package/sdk/application/client/UserApplicationClient.d.ts +446 -0
  102. package/sdk/application/client/UserApplicationClient.js +1275 -0
  103. package/sdk/application/constructUrl.d.ts +5 -0
  104. package/sdk/application/constructUrl.js +13 -0
  105. package/sdk/application/index.d.ts +2 -0
  106. package/sdk/application/index.js +4 -0
  107. package/sdk/application/models/CartValidator.d.ts +29 -0
  108. package/sdk/application/models/CartValidator.js +223 -0
  109. package/sdk/application/models/CatalogValidator.d.ts +33 -0
  110. package/sdk/application/models/CatalogValidator.js +233 -0
  111. package/sdk/application/models/CommonValidator.d.ts +5 -0
  112. package/sdk/application/models/CommonValidator.js +18 -0
  113. package/sdk/application/models/CommunicationValidator.d.ts +6 -0
  114. package/sdk/application/models/CommunicationValidator.js +20 -0
  115. package/sdk/application/models/ConfigurationValidator.d.ts +19 -0
  116. package/sdk/application/models/ConfigurationValidator.js +88 -0
  117. package/sdk/application/models/ContentValidator.d.ts +22 -0
  118. package/sdk/application/models/ContentValidator.js +106 -0
  119. package/sdk/application/models/FileStorageValidator.d.ts +6 -0
  120. package/sdk/application/models/FileStorageValidator.js +24 -0
  121. package/sdk/application/models/LeadValidator.d.ts +10 -0
  122. package/sdk/application/models/LeadValidator.js +48 -0
  123. package/sdk/application/models/LogisticValidator.d.ts +6 -0
  124. package/sdk/application/models/LogisticValidator.js +22 -0
  125. package/sdk/application/models/OrderValidator.d.ts +15 -0
  126. package/sdk/application/models/OrderValidator.js +87 -0
  127. package/sdk/application/models/PaymentValidator.d.ts +40 -0
  128. package/sdk/application/models/PaymentValidator.js +235 -0
  129. package/sdk/application/models/PosCartValidator.d.ts +30 -0
  130. package/sdk/application/models/PosCartValidator.js +232 -0
  131. package/sdk/application/models/RewardsValidator.d.ts +10 -0
  132. package/sdk/application/models/RewardsValidator.js +43 -0
  133. package/sdk/application/models/ShareValidator.d.ts +10 -0
  134. package/sdk/application/models/ShareValidator.js +44 -0
  135. package/sdk/application/models/ThemeValidator.d.ts +7 -0
  136. package/sdk/application/models/ThemeValidator.js +27 -0
  137. package/sdk/application/models/UserValidator.d.ts +38 -0
  138. package/sdk/application/models/UserValidator.js +233 -0
  139. package/sdk/common/AxiosHelper.d.ts +1 -0
  140. package/sdk/common/AxiosHelper.js +141 -0
  141. package/sdk/common/Constant.d.ts +294 -0
  142. package/sdk/common/Constant.js +332 -0
  143. package/sdk/common/FDKError.d.ts +26 -0
  144. package/sdk/common/FDKError.js +51 -0
  145. package/sdk/common/Logger.d.ts +2 -0
  146. package/sdk/common/Logger.js +85 -0
  147. package/sdk/common/Paginator.d.ts +16 -0
  148. package/sdk/common/Paginator.js +26 -0
  149. package/sdk/common/RequestSigner.d.ts +1 -0
  150. package/sdk/common/RequestSigner.js +306 -0
  151. package/sdk/common/Utility.d.ts +9 -0
  152. package/sdk/common/Utility.js +86 -0
  153. package/sdk/common/utils.d.ts +14 -0
  154. package/sdk/common/utils.js +165 -0
  155. package/sdk/platform/OAuthClient.d.ts +26 -0
  156. package/sdk/platform/OAuthClient.js +221 -0
  157. package/sdk/platform/PlatformAPIClient.d.ts +12 -0
  158. package/sdk/platform/PlatformAPIClient.js +43 -0
  159. package/sdk/platform/PlatformApplicationClient.d.ts +24398 -0
  160. package/sdk/platform/PlatformApplicationClient.js +23185 -0
  161. package/sdk/platform/PlatformApplicationModels.d.ts +333 -0
  162. package/sdk/platform/PlatformApplicationModels.js +21262 -0
  163. package/sdk/platform/PlatformClient.d.ts +9535 -0
  164. package/sdk/platform/PlatformClient.js +12336 -0
  165. package/sdk/platform/PlatformConfig.d.ts +29 -0
  166. package/sdk/platform/PlatformConfig.js +36 -0
  167. package/sdk/platform/PlatformModels.d.ts +1396 -0
  168. package/sdk/platform/PlatformModels.js +19222 -0
  169. package/sdk/platform/client/AnalyticsPlatformClient.d.ts +84 -0
  170. package/sdk/platform/client/AnalyticsPlatformClient.js +215 -0
  171. package/sdk/platform/client/AuditTrailPlatformClient.d.ts +38 -0
  172. package/sdk/platform/client/AuditTrailPlatformClient.js +133 -0
  173. package/sdk/platform/client/BillingPlatformClient.d.ts +109 -0
  174. package/sdk/platform/client/BillingPlatformClient.js +381 -0
  175. package/sdk/platform/client/CatalogPlatformClient.d.ts +806 -0
  176. package/sdk/platform/client/CatalogPlatformClient.js +2462 -0
  177. package/sdk/platform/client/CommonPlatformClient.d.ts +30 -0
  178. package/sdk/platform/client/CommonPlatformClient.js +84 -0
  179. package/sdk/platform/client/CommunicationPlatformClient.d.ts +26 -0
  180. package/sdk/platform/client/CommunicationPlatformClient.js +72 -0
  181. package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +182 -0
  182. package/sdk/platform/client/CompanyProfilePlatformClient.js +540 -0
  183. package/sdk/platform/client/ConfigurationPlatformClient.d.ts +277 -0
  184. package/sdk/platform/client/ConfigurationPlatformClient.js +806 -0
  185. package/sdk/platform/client/DiscountPlatformClient.d.ts +118 -0
  186. package/sdk/platform/client/DiscountPlatformClient.js +364 -0
  187. package/sdk/platform/client/FileStoragePlatformClient.d.ts +111 -0
  188. package/sdk/platform/client/FileStoragePlatformClient.js +268 -0
  189. package/sdk/platform/client/InventoryPlatformClient.d.ts +125 -0
  190. package/sdk/platform/client/InventoryPlatformClient.js +409 -0
  191. package/sdk/platform/client/LeadPlatformClient.d.ts +150 -0
  192. package/sdk/platform/client/LeadPlatformClient.js +439 -0
  193. package/sdk/platform/client/OrderPlatformClient.d.ts +190 -0
  194. package/sdk/platform/client/OrderPlatformClient.js +521 -0
  195. package/sdk/platform/client/PaymentPlatformClient.d.ts +98 -0
  196. package/sdk/platform/client/PaymentPlatformClient.js +331 -0
  197. package/sdk/platform/client/WebhookPlatformClient.d.ts +64 -0
  198. package/sdk/platform/client/WebhookPlatformClient.js +207 -0
  199. package/sdk/platform/index.d.ts +2 -0
  200. package/sdk/platform/index.js +4 -0
  201. package/sdk/platform/models/AnalyticsValidator.d.ts +7 -0
  202. package/sdk/platform/models/AnalyticsValidator.js +36 -0
  203. package/sdk/platform/models/AuditTrailValidator.d.ts +7 -0
  204. package/sdk/platform/models/AuditTrailValidator.js +26 -0
  205. package/sdk/platform/models/BillingValidator.d.ts +15 -0
  206. package/sdk/platform/models/BillingValidator.js +72 -0
  207. package/sdk/platform/models/CartValidator.d.ts +0 -0
  208. package/sdk/platform/models/CartValidator.js +0 -0
  209. package/sdk/platform/models/CatalogValidator.d.ts +74 -0
  210. package/sdk/platform/models/CatalogValidator.js +484 -0
  211. package/sdk/platform/models/CommonValidator.d.ts +5 -0
  212. package/sdk/platform/models/CommonValidator.js +18 -0
  213. package/sdk/platform/models/CommunicationValidator.d.ts +4 -0
  214. package/sdk/platform/models/CommunicationValidator.js +11 -0
  215. package/sdk/platform/models/CompanyProfileValidator.d.ts +17 -0
  216. package/sdk/platform/models/CompanyProfileValidator.js +93 -0
  217. package/sdk/platform/models/ConfigurationValidator.d.ts +21 -0
  218. package/sdk/platform/models/ConfigurationValidator.js +134 -0
  219. package/sdk/platform/models/ContentValidator.d.ts +0 -0
  220. package/sdk/platform/models/ContentValidator.js +0 -0
  221. package/sdk/platform/models/DiscountValidator.d.ts +13 -0
  222. package/sdk/platform/models/DiscountValidator.js +75 -0
  223. package/sdk/platform/models/FileStorageValidator.d.ts +9 -0
  224. package/sdk/platform/models/FileStorageValidator.js +44 -0
  225. package/sdk/platform/models/InventoryValidator.d.ts +15 -0
  226. package/sdk/platform/models/InventoryValidator.js +81 -0
  227. package/sdk/platform/models/LeadValidator.d.ts +14 -0
  228. package/sdk/platform/models/LeadValidator.js +78 -0
  229. package/sdk/platform/models/OrderValidator.d.ts +14 -0
  230. package/sdk/platform/models/OrderValidator.js +110 -0
  231. package/sdk/platform/models/PartnerValidator.d.ts +0 -0
  232. package/sdk/platform/models/PartnerValidator.js +0 -0
  233. package/sdk/platform/models/PaymentValidator.d.ts +13 -0
  234. package/sdk/platform/models/PaymentValidator.js +65 -0
  235. package/sdk/platform/models/RewardsValidator.d.ts +0 -0
  236. package/sdk/platform/models/RewardsValidator.js +0 -0
  237. package/sdk/platform/models/ShareValidator.d.ts +0 -0
  238. package/sdk/platform/models/ShareValidator.js +0 -0
  239. package/sdk/platform/models/ThemeValidator.d.ts +0 -0
  240. package/sdk/platform/models/ThemeValidator.js +0 -0
  241. package/sdk/platform/models/UserValidator.d.ts +0 -0
  242. package/sdk/platform/models/UserValidator.js +0 -0
  243. package/sdk/platform/models/WebhookValidator.d.ts +9 -0
  244. package/sdk/platform/models/WebhookValidator.js +42 -0
  245. package/sdk/public/PublicAPIClient.d.ts +11 -0
  246. package/sdk/public/PublicAPIClient.js +38 -0
  247. package/sdk/public/PublicClient.d.ts +12 -0
  248. package/sdk/public/PublicClient.js +24 -0
  249. package/sdk/public/PublicConfig.d.ts +10 -0
  250. package/sdk/public/PublicConfig.js +12 -0
  251. package/sdk/public/PublicModels.d.ts +50 -0
  252. package/sdk/public/PublicModels.js +712 -0
  253. package/sdk/public/client/ConfigurationPublicClient.d.ts +38 -0
  254. package/sdk/public/client/ConfigurationPublicClient.js +102 -0
  255. package/sdk/public/client/InventoryPublicClient.d.ts +81 -0
  256. package/sdk/public/client/InventoryPublicClient.js +239 -0
  257. package/sdk/public/client/WebhookPublicClient.d.ts +28 -0
  258. package/sdk/public/client/WebhookPublicClient.js +92 -0
  259. package/sdk/public/constructUrl.d.ts +5 -0
  260. package/sdk/public/constructUrl.js +13 -0
  261. package/sdk/public/index.d.ts +2 -0
  262. package/sdk/public/index.js +4 -0
  263. package/sdk/public/models/ConfigurationValidator.d.ts +5 -0
  264. package/sdk/public/models/ConfigurationValidator.js +18 -0
  265. package/sdk/public/models/InventoryValidator.d.ts +9 -0
  266. package/sdk/public/models/InventoryValidator.js +43 -0
  267. package/sdk/public/models/WebhookValidator.d.ts +5 -0
  268. package/sdk/public/models/WebhookValidator.js +14 -0
  269. package/tests/application/catalog.spec.js +47 -0
  270. package/tests/common/action-url.spec.js +35 -0
  271. package/tests/common/schema/action-url.json +163 -0
  272. package/tests/common/schema/url-action.json +667 -0
  273. package/tests/common/url-action.spec.js +48 -0
  274. package/tests/helpers/cookie.helper.js +31 -0
  275. package/tests/helpers/oauth.helper.js +43 -0
  276. package/tests/platform/catalog.spec.js +49 -0
  277. package/tests/public/location.spec.js +39 -0
@@ -0,0 +1,446 @@
1
+ export = User;
2
+ declare class User {
3
+ constructor(_conf: any);
4
+ _conf: any;
5
+ _relativeUrls: {
6
+ loginWithFacebook: string;
7
+ loginWithGoogle: string;
8
+ loginWithGoogleAndroid: string;
9
+ loginWithGoogleIOS: string;
10
+ loginWithAppleIOS: string;
11
+ loginWithOTP: string;
12
+ loginWithEmailAndPassword: string;
13
+ sendResetPasswordEmail: string;
14
+ sendResetPasswordMobile: string;
15
+ forgotPassword: string;
16
+ sendResetToken: string;
17
+ loginWithToken: string;
18
+ registerWithForm: string;
19
+ verifyEmail: string;
20
+ verifyMobile: string;
21
+ hasPassword: string;
22
+ updatePassword: string;
23
+ deleteUser: string;
24
+ logout: string;
25
+ sendOTPOnMobile: string;
26
+ verifyMobileOTP: string;
27
+ sendOTPOnEmail: string;
28
+ verifyEmailOTP: string;
29
+ getLoggedInUser: string;
30
+ getListOfActiveSessions: string;
31
+ getPlatformConfig: string;
32
+ updateProfile: string;
33
+ addMobileNumber: string;
34
+ deleteMobileNumber: string;
35
+ setMobileNumberAsPrimary: string;
36
+ sendVerificationLinkToMobile: string;
37
+ addEmail: string;
38
+ deleteEmail: string;
39
+ setEmailAsPrimary: string;
40
+ sendVerificationLinkToEmail: string;
41
+ };
42
+ _urls: {};
43
+ updateUrls(urls: any): void;
44
+ /**
45
+ * @param {Object} arg - Arg object.
46
+ * @param {string} [arg.platform] - ID of the application
47
+ * @param {OAuthRequestSchema} arg.body
48
+ * @returns {Promise<AuthSuccess>} - Success response
49
+ * @summary: Login or Register using Facebook
50
+ * @description: Use this API to login or register using Facebook credentials.
51
+ */
52
+ loginWithFacebook({ body, platform }?: {
53
+ platform?: string;
54
+ body: any;
55
+ }): Promise<any>;
56
+ /**
57
+ * @param {Object} arg - Arg object.
58
+ * @param {string} [arg.platform] - ID of the application
59
+ * @param {OAuthRequestSchema} arg.body
60
+ * @returns {Promise<AuthSuccess>} - Success response
61
+ * @summary: Login or Register using Google
62
+ * @description: Use this API to login or register using Google Account credentials.
63
+ */
64
+ loginWithGoogle({ body, platform }?: {
65
+ platform?: string;
66
+ body: any;
67
+ }): Promise<any>;
68
+ /**
69
+ * @param {Object} arg - Arg object.
70
+ * @param {string} [arg.platform] - ID of the application
71
+ * @param {OAuthRequestSchema} arg.body
72
+ * @returns {Promise<AuthSuccess>} - Success response
73
+ * @summary: Login or Register using Google on Android
74
+ * @description: Use this API to login or register in Android app using Google Account credentials.
75
+ */
76
+ loginWithGoogleAndroid({ body, platform }?: {
77
+ platform?: string;
78
+ body: any;
79
+ }): Promise<any>;
80
+ /**
81
+ * @param {Object} arg - Arg object.
82
+ * @param {string} [arg.platform] - ID of the application
83
+ * @param {OAuthRequestSchema} arg.body
84
+ * @returns {Promise<AuthSuccess>} - Success response
85
+ * @summary: Login or Register using Google on iOS
86
+ * @description: Use this API to login or register in iOS app using Google Account credentials.
87
+ */
88
+ loginWithGoogleIOS({ body, platform }?: {
89
+ platform?: string;
90
+ body: any;
91
+ }): Promise<any>;
92
+ /**
93
+ * @param {Object} arg - Arg object.
94
+ * @param {string} [arg.platform] - ID of the application
95
+ * @param {OAuthRequestAppleSchema} arg.body
96
+ * @returns {Promise<AuthSuccess>} - Success response
97
+ * @summary: Login or Register using Apple on iOS
98
+ * @description: Use this API to login or register in iOS app using Apple Account credentials.
99
+ */
100
+ loginWithAppleIOS({ body, platform }?: {
101
+ platform?: string;
102
+ body: any;
103
+ }): Promise<any>;
104
+ /**
105
+ * @param {Object} arg - Arg object.
106
+ * @param {string} [arg.platform] - ID of the application
107
+ * @param {SendOtpRequestSchema} arg.body
108
+ * @returns {Promise<SendOtpResponse>} - Success response
109
+ * @summary: Login or Register with OTP
110
+ * @description: Use this API to login or register with a One-time Password (OTP) sent via Email or SMS.
111
+ */
112
+ loginWithOTP({ body, platform }?: {
113
+ platform?: string;
114
+ body: any;
115
+ }): Promise<any>;
116
+ /**
117
+ * @param {Object} arg - Arg object.
118
+ * @param {PasswordLoginRequestSchema} arg.body
119
+ * @returns {Promise<LoginSuccess>} - Success response
120
+ * @summary: Login or Register with password
121
+ * @description: Use this API to login or register using an email address and password.
122
+ */
123
+ loginWithEmailAndPassword({ body }?: {
124
+ body: any;
125
+ }): Promise<any>;
126
+ /**
127
+ * @param {Object} arg - Arg object.
128
+ * @param {string} [arg.platform] - ID of the application
129
+ * @param {SendResetPasswordEmailRequestSchema} arg.body
130
+ * @returns {Promise<ResetPasswordSuccess>} - Success response
131
+ * @summary: Reset Password
132
+ * @description: Use this API to reset a password using the link sent on email.
133
+ */
134
+ sendResetPasswordEmail({ body, platform }?: {
135
+ platform?: string;
136
+ body: any;
137
+ }): Promise<any>;
138
+ /**
139
+ * @param {Object} arg - Arg object.
140
+ * @param {string} [arg.platform] - ID of the application
141
+ * @param {SendResetPasswordMobileRequestSchema} arg.body
142
+ * @returns {Promise<ResetPasswordSuccess>} - Success response
143
+ * @summary: Reset Password
144
+ * @description: Use this API to reset a password using the link sent on mobile.
145
+ */
146
+ sendResetPasswordMobile({ body, platform }?: {
147
+ platform?: string;
148
+ body: any;
149
+ }): Promise<any>;
150
+ /**
151
+ * @param {Object} arg - Arg object.
152
+ * @param {ForgotPasswordRequestSchema} arg.body
153
+ * @returns {Promise<LoginSuccess>} - Success response
154
+ * @summary: Forgot Password
155
+ * @description: Use this API to reset a password using the code sent on email or SMS.
156
+ */
157
+ forgotPassword({ body }?: {
158
+ body: any;
159
+ }): Promise<any>;
160
+ /**
161
+ * @param {Object} arg - Arg object.
162
+ * @param {CodeRequestBodySchema} arg.body
163
+ * @returns {Promise<ResetPasswordSuccess>} - Success response
164
+ * @summary: Reset Password using token
165
+ * @description: Use this API to send code to reset password.
166
+ */
167
+ sendResetToken({ body }?: {
168
+ body: any;
169
+ }): Promise<any>;
170
+ /**
171
+ * @param {Object} arg - Arg object.
172
+ * @param {TokenRequestBodySchema} arg.body
173
+ * @returns {Promise<LoginSuccess>} - Success response
174
+ * @summary: Login or Register with token
175
+ * @description: Use this API to login or register using a token for authentication.
176
+ */
177
+ loginWithToken({ body }?: {
178
+ body: any;
179
+ }): Promise<any>;
180
+ /**
181
+ * @param {Object} arg - Arg object.
182
+ * @param {string} [arg.platform] - ID of the application
183
+ * @param {FormRegisterRequestSchema} arg.body
184
+ * @returns {Promise<RegisterFormSuccess>} - Success response
185
+ * @summary: Registration using a form
186
+ * @description: Use this API to perform user registration by sending form data in the request body.
187
+ */
188
+ registerWithForm({ body, platform }?: {
189
+ platform?: string;
190
+ body: any;
191
+ }): Promise<any>;
192
+ /**
193
+ * @param {Object} arg - Arg object.
194
+ * @param {CodeRequestBodySchema} arg.body
195
+ * @returns {Promise<VerifyEmailSuccess>} - Success response
196
+ * @summary: Verify email
197
+ * @description: Use this API to send a verification code to verify an email.
198
+ */
199
+ verifyEmail({ body }?: {
200
+ body: any;
201
+ }): Promise<any>;
202
+ /**
203
+ * @param {Object} arg - Arg object.
204
+ * @param {CodeRequestBodySchema} arg.body
205
+ * @returns {Promise<VerifyEmailSuccess>} - Success response
206
+ * @summary: Verify mobile
207
+ * @description: Use this API to send a verification code to verify a mobile number.
208
+ */
209
+ verifyMobile({ body }?: {
210
+ body: any;
211
+ }): Promise<any>;
212
+ /**
213
+ * @param {Object} arg - Arg object.
214
+ * @returns {Promise<HasPasswordSuccess>} - Success response
215
+ * @summary: Check password
216
+ * @description: Use this API to check if user has created a password for login.
217
+ */
218
+ hasPassword({}?: any): Promise<any>;
219
+ /**
220
+ * @param {Object} arg - Arg object.
221
+ * @param {UpdatePasswordRequestSchema} arg.body
222
+ * @returns {Promise<VerifyEmailSuccess>} - Success response
223
+ * @summary: Update user password
224
+ * @description: Use this API to update the password.
225
+ */
226
+ updatePassword({ body }?: {
227
+ body: any;
228
+ }): Promise<any>;
229
+ /**
230
+ * @param {Object} arg - Arg object.
231
+ * @param {DeleteApplicationUserRequestSchema} arg.body
232
+ * @returns {Promise<DeleteUserSuccess>} - Success response
233
+ * @summary: verify otp and delete user
234
+ * @description: verify otp and delete user
235
+ */
236
+ deleteUser({ body }?: {
237
+ body: any;
238
+ }): Promise<any>;
239
+ /**
240
+ * @param {Object} arg - Arg object.
241
+ * @returns {Promise<LogoutSuccess>} - Success response
242
+ * @summary: Logs out currently logged in user
243
+ * @description: Use this API to check to logout a user from the app.
244
+ */
245
+ logout({}?: any): Promise<any>;
246
+ /**
247
+ * @param {Object} arg - Arg object.
248
+ * @param {string} [arg.platform] - ID of the application
249
+ * @param {SendMobileOtpRequestSchema} arg.body
250
+ * @returns {Promise<OtpSuccess>} - Success response
251
+ * @summary: Send OTP on mobile
252
+ * @description: Use this API to send an OTP to a mobile number.
253
+ */
254
+ sendOTPOnMobile({ body, platform }?: {
255
+ platform?: string;
256
+ body: any;
257
+ }): Promise<any>;
258
+ /**
259
+ * @param {Object} arg - Arg object.
260
+ * @param {string} [arg.platform] - ID of the application
261
+ * @param {VerifyOtpRequestSchema} arg.body
262
+ * @returns {Promise<VerifyOtpSuccess>} - Success response
263
+ * @summary: Verify OTP on mobile
264
+ * @description: Use this API to verify the OTP received on a mobile number.
265
+ */
266
+ verifyMobileOTP({ body, platform }?: {
267
+ platform?: string;
268
+ body: any;
269
+ }): Promise<any>;
270
+ /**
271
+ * @param {Object} arg - Arg object.
272
+ * @param {string} [arg.platform] - ID of the application
273
+ * @param {SendEmailOtpRequestSchema} arg.body
274
+ * @returns {Promise<EmailOtpSuccess>} - Success response
275
+ * @summary: Send OTP on email
276
+ * @description: Use this API to send an OTP to an email ID.
277
+ */
278
+ sendOTPOnEmail({ body, platform }?: {
279
+ platform?: string;
280
+ body: any;
281
+ }): Promise<any>;
282
+ /**
283
+ * @param {Object} arg - Arg object.
284
+ * @param {string} [arg.platform] - ID of the application
285
+ * @param {VerifyEmailOtpRequestSchema} arg.body
286
+ * @returns {Promise<VerifyOtpSuccess>} - Success response
287
+ * @summary: Verify OTP on email
288
+ * @description: Use this API to verify the OTP received on an email ID.
289
+ */
290
+ verifyEmailOTP({ body, platform }?: {
291
+ platform?: string;
292
+ body: any;
293
+ }): Promise<any>;
294
+ /**
295
+ * @param {Object} arg - Arg object.
296
+ * @returns {Promise<UserObjectSchema>} - Success response
297
+ * @summary: Get logged in user
298
+ * @description: Use this API to get the details of a logged in user.
299
+ */
300
+ getLoggedInUser({}?: any): Promise<any>;
301
+ /**
302
+ * @param {Object} arg - Arg object.
303
+ * @returns {Promise<SessionListSuccess>} - Success response
304
+ * @summary: Get list of sessions
305
+ * @description: Use this API to retrieve all active sessions of a user.
306
+ */
307
+ getListOfActiveSessions({}?: any): Promise<any>;
308
+ /**
309
+ * @param {Object} arg - Arg object.
310
+ * @param {string} [arg.name] - Name of the application, e.g. Fynd
311
+ * @returns {Promise<PlatformSchema>} - Success response
312
+ * @summary: Get platform configurations
313
+ * @description: Use this API to get all the platform configurations such as mobile image, desktop image, social logins, and all other text.
314
+ */
315
+ getPlatformConfig({ name }?: {
316
+ name?: string;
317
+ }): Promise<any>;
318
+ /**
319
+ * @param {Object} arg - Arg object.
320
+ * @param {string} [arg.platform] - ID of the application
321
+ * @param {EditProfileRequestSchema} arg.body
322
+ * @returns {Promise<ProfileEditSuccess>} - Success response
323
+ * @summary: Edit Profile Details
324
+ * @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.
325
+ */
326
+ updateProfile({ body, platform }?: {
327
+ platform?: string;
328
+ body: any;
329
+ }): Promise<any>;
330
+ /**
331
+ * @param {Object} arg - Arg object.
332
+ * @param {string} [arg.platform] - ID of the application
333
+ * @param {EditMobileRequestSchema} arg.body
334
+ * @returns {Promise<VerifyMobileOTPSuccess>} - Success response
335
+ * @summary: Add mobile number to profile
336
+ * @description: Use this API to add a new mobile number to a profile.
337
+ */
338
+ addMobileNumber({ body, platform }?: {
339
+ platform?: string;
340
+ body: any;
341
+ }): Promise<any>;
342
+ /**
343
+ * @param {Object} arg - Arg object.
344
+ * @param {string} [arg.platform] - ID of the application
345
+ * @param {boolean} arg.active - This is a boolean value to check if mobile
346
+ * number is active 1.True - Number is active 2. False - Number is inactive
347
+ * @param {boolean} arg.primary - This is a boolean value to check if mobile
348
+ * number is primary number (main number) 1. True - Number is primary 2.
349
+ * False - Number is not primary
350
+ * @param {boolean} arg.verified - This is a boolean value to check if
351
+ * mobile number is verified 1. True - Number is verified 2.False - Number
352
+ * is not verified yet
353
+ * @param {string} arg.countryCode - Country code of the phone number, e.g. 91
354
+ * @param {string} arg.phone - Phone number
355
+ * @returns {Promise<LoginSuccess>} - Success response
356
+ * @summary: Delete mobile number from profile
357
+ * @description: Use this API to delete a mobile number from a profile.
358
+ */
359
+ deleteMobileNumber({ active, primary, verified, countryCode, phone, platform, }?: {
360
+ platform?: string;
361
+ active: boolean;
362
+ primary: boolean;
363
+ verified: boolean;
364
+ countryCode: string;
365
+ phone: string;
366
+ }): Promise<any>;
367
+ /**
368
+ * @param {Object} arg - Arg object.
369
+ * @param {SendVerificationLinkMobileRequestSchema} arg.body
370
+ * @returns {Promise<LoginSuccess>} - Success response
371
+ * @summary: Set mobile as primary
372
+ * @description: Use this API to set a mobile number as primary. Primary number is a verified number used for all future communications.
373
+ */
374
+ setMobileNumberAsPrimary({ body }?: {
375
+ body: any;
376
+ }): Promise<any>;
377
+ /**
378
+ * @param {Object} arg - Arg object.
379
+ * @param {string} [arg.platform] - ID of the application
380
+ * @param {SendVerificationLinkMobileRequestSchema} arg.body
381
+ * @returns {Promise<SendMobileVerifyLinkSuccess>} - Success response
382
+ * @summary: Send verification link to mobile
383
+ * @description: Use this API to send a verification link to a mobile number
384
+ */
385
+ sendVerificationLinkToMobile({ body, platform }?: {
386
+ platform?: string;
387
+ body: any;
388
+ }): Promise<any>;
389
+ /**
390
+ * @param {Object} arg - Arg object.
391
+ * @param {string} [arg.platform] - ID of the application
392
+ * @param {EditEmailRequestSchema} arg.body
393
+ * @returns {Promise<VerifyEmailOTPSuccess>} - Success response
394
+ * @summary: Add email to profile
395
+ * @description: Use this API to add a new email address to a profile
396
+ */
397
+ addEmail({ body, platform }?: {
398
+ platform?: string;
399
+ body: any;
400
+ }): Promise<any>;
401
+ /**
402
+ * @param {Object} arg - Arg object.
403
+ * @param {string} [arg.platform] - ID of the application
404
+ * @param {boolean} arg.active - This is a boolean value to check if email
405
+ * ID is active 1. True - Email ID is active 2.False - Email ID is inactive
406
+ * @param {boolean} arg.primary - This is a boolean value to check if email
407
+ * ID is primary (main email ID) 1. True - Email ID is primary 2.False -
408
+ * Email ID is not primary
409
+ * @param {boolean} arg.verified - This is a boolean value to check if email
410
+ * ID is verified 1. True - Email ID is verified 2.False - Email ID is not
411
+ * verified yet
412
+ * @param {string} arg.email - The email ID to delete
413
+ * @returns {Promise<LoginSuccess>} - Success response
414
+ * @summary: Delete email from profile
415
+ * @description: Use this API to delete an email address from a profile
416
+ */
417
+ deleteEmail({ active, primary, verified, email, platform }?: {
418
+ platform?: string;
419
+ active: boolean;
420
+ primary: boolean;
421
+ verified: boolean;
422
+ email: string;
423
+ }): Promise<any>;
424
+ /**
425
+ * @param {Object} arg - Arg object.
426
+ * @param {EditEmailRequestSchema} arg.body
427
+ * @returns {Promise<LoginSuccess>} - Success response
428
+ * @summary: Set email as primary
429
+ * @description: Use this API to set an email address as primary. Primary email ID is a email address used for all future communications.
430
+ */
431
+ setEmailAsPrimary({ body }?: {
432
+ body: any;
433
+ }): Promise<any>;
434
+ /**
435
+ * @param {Object} arg - Arg object.
436
+ * @param {string} [arg.platform] - ID of the application
437
+ * @param {EditEmailRequestSchema} arg.body
438
+ * @returns {Promise<SendEmailVerifyLinkSuccess>} - Success response
439
+ * @summary: Send verification link to email
440
+ * @description: Use this API to send verification link to an email address.
441
+ */
442
+ sendVerificationLinkToEmail({ body, platform }?: {
443
+ platform?: string;
444
+ body: any;
445
+ }): Promise<any>;
446
+ }