@gofynd/fdk-client-javascript 1.0.2 → 1.0.3

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 (310) hide show
  1. package/documentation/application/CART.md +5934 -4502
  2. package/documentation/application/CATALOG.md +6338 -7245
  3. package/documentation/application/COMMON.md +95 -222
  4. package/documentation/application/COMMUNICATION.md +106 -186
  5. package/documentation/application/CONFIGURATION.md +903 -1597
  6. package/documentation/application/CONTENT.md +557 -1279
  7. package/documentation/application/FILESTORAGE.md +84 -220
  8. package/documentation/application/LEAD.md +314 -660
  9. package/documentation/application/LOGISTIC.md +229 -305
  10. package/documentation/application/ORDER.md +642 -1137
  11. package/documentation/application/PAYMENT.md +2285 -3031
  12. package/documentation/application/POSCART.md +6079 -4642
  13. package/documentation/application/REWARDS.md +94 -248
  14. package/documentation/application/SHARE.md +152 -250
  15. package/documentation/application/THEME.md +952 -1235
  16. package/documentation/application/USER.md +1228 -1765
  17. package/documentation/platform/ANALYTICS.md +207 -349
  18. package/documentation/platform/AUDITTRAIL.md +121 -204
  19. package/documentation/platform/BILLING.md +865 -1376
  20. package/documentation/platform/CART.md +2814 -3662
  21. package/documentation/platform/CATALOG.md +14453 -17192
  22. package/documentation/platform/COMMON.md +95 -222
  23. package/documentation/platform/COMMUNICATION.md +1632 -2380
  24. package/documentation/platform/COMPANYPROFILE.md +572 -957
  25. package/documentation/platform/CONFIGURATION.md +3050 -4073
  26. package/documentation/platform/CONTENT.md +3438 -4172
  27. package/documentation/platform/DISCOUNT.md +140 -236
  28. package/documentation/platform/FILESTORAGE.md +187 -323
  29. package/documentation/platform/INVENTORY.md +268 -911
  30. package/documentation/platform/LEAD.md +2195 -2541
  31. package/documentation/platform/ORDER.md +3400 -5361
  32. package/documentation/platform/PARTNER.md +9 -36
  33. package/documentation/platform/PAYMENT.md +903 -1213
  34. package/documentation/platform/REWARDS.md +183 -347
  35. package/documentation/platform/SHARE.md +120 -213
  36. package/documentation/platform/THEME.md +12956 -13239
  37. package/documentation/platform/USER.md +975 -1120
  38. package/documentation/platform/WEBHOOK.md +78 -184
  39. package/documentation/public/CONFIGURATION.md +95 -222
  40. package/documentation/public/INVENTORY.md +100 -282
  41. package/documentation/public/WEBHOOK.md +27 -133
  42. package/package.json +1 -1
  43. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  44. package/sdk/application/Cart/CartApplicationClient.js +567 -567
  45. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  46. package/sdk/application/Cart/CartApplicationModel.js +489 -886
  47. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  48. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  49. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  50. package/sdk/application/Catalog/CatalogApplicationClient.js +1036 -1036
  51. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  52. package/sdk/application/Catalog/CatalogApplicationModel.js +677 -1243
  53. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  54. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  55. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  56. package/sdk/application/Common/CommonApplicationClient.js +38 -38
  57. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  58. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  59. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  60. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  61. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  62. package/sdk/application/Communication/CommunicationApplicationClient.js +26 -26
  63. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  64. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  65. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  66. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  67. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  68. package/sdk/application/Configuration/ConfigurationApplicationClient.js +330 -330
  69. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  70. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  71. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  72. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  73. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  74. package/sdk/application/Content/ContentApplicationClient.js +191 -191
  75. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
  76. package/sdk/application/Content/ContentApplicationModel.js +467 -884
  77. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  78. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  79. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  80. package/sdk/application/FileStorage/FileStorageApplicationClient.js +59 -59
  81. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  82. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  83. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  84. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  85. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  86. package/sdk/application/Lead/LeadApplicationClient.js +100 -100
  87. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  88. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  89. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  90. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  91. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
  92. package/sdk/application/Logistic/LogisticApplicationClient.js +110 -43
  93. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  94. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  95. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  96. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
  97. package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
  98. package/sdk/application/Order/OrderApplicationClient.js +232 -232
  99. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  100. package/sdk/application/Order/OrderApplicationModel.js +352 -656
  101. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  102. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  103. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  104. package/sdk/application/Payment/PaymentApplicationClient.js +739 -739
  105. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  106. package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
  107. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  108. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  109. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  110. package/sdk/application/PosCart/PosCartApplicationClient.js +617 -617
  111. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
  112. package/sdk/application/PosCart/PosCartApplicationModel.js +475 -871
  113. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  114. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  115. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  116. package/sdk/application/Rewards/RewardsApplicationClient.js +112 -112
  117. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  118. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  119. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  120. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  121. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  122. package/sdk/application/Share/ShareApplicationClient.js +84 -84
  123. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  124. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  125. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  126. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  127. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  128. package/sdk/application/Theme/ThemeApplicationClient.js +31 -31
  129. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  130. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  131. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  132. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  133. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  134. package/sdk/application/User/UserApplicationClient.js +581 -581
  135. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  136. package/sdk/application/User/UserApplicationModel.js +440 -689
  137. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  138. package/sdk/application/User/UserApplicationValidator.js +89 -89
  139. package/sdk/common/AxiosHelper.js +1 -1
  140. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
  141. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +179 -179
  142. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  143. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
  144. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  145. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  146. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
  147. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +41 -41
  148. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  149. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  150. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  151. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
  152. package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
  153. package/sdk/platform/Billing/BillingPlatformClient.js +181 -181
  154. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  155. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  156. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  157. package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
  158. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +168 -168
  159. package/sdk/platform/Cart/CartPlatformApplicationClient.js +553 -553
  160. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
  161. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
  162. package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
  163. package/sdk/platform/Cart/CartPlatformModel.js +671 -1205
  164. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
  165. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1525 -1525
  166. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  167. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +174 -174
  168. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +682 -682
  169. package/sdk/platform/Catalog/CatalogPlatformClient.js +1557 -1557
  170. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
  171. package/sdk/platform/Catalog/CatalogPlatformModel.js +2127 -3904
  172. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
  173. package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -229
  174. package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
  175. package/sdk/platform/Common/CommonPlatformClient.js +41 -41
  176. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  177. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  178. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  179. package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
  180. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
  181. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +943 -943
  182. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  183. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
  184. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  185. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  186. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
  187. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +212 -212
  188. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
  189. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
  190. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  191. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
  192. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
  193. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +615 -552
  194. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  195. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
  196. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
  197. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +342 -342
  198. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  199. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  200. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  201. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
  202. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +534 -534
  203. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1324 -1324
  204. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -50
  205. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +156 -156
  206. package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
  207. package/sdk/platform/Content/ContentPlatformModel.js +484 -907
  208. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
  209. package/sdk/platform/Discount/DiscountPlatformClient.js +216 -216
  210. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  211. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  212. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  213. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
  214. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +24 -24
  215. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +58 -58
  216. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  217. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
  218. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +52 -52
  219. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +123 -123
  220. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  221. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  222. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  223. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
  224. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
  225. package/sdk/platform/Inventory/InventoryPlatformClient.js +228 -228
  226. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  227. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  228. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  229. package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
  230. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
  231. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +200 -200
  232. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  233. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
  234. package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
  235. package/sdk/platform/Lead/LeadPlatformClient.js +212 -212
  236. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  237. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  238. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  239. package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
  240. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
  241. package/sdk/platform/Order/OrderPlatformApplicationClient.js +65 -65
  242. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  243. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
  244. package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
  245. package/sdk/platform/Order/OrderPlatformClient.js +1035 -1035
  246. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
  247. package/sdk/platform/Order/OrderPlatformModel.js +1574 -2861
  248. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  249. package/sdk/platform/Order/OrderPlatformValidator.js +160 -160
  250. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
  251. package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
  252. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +57 -57
  253. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +167 -167
  254. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  255. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
  256. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
  257. package/sdk/platform/Payment/PaymentPlatformClient.js +153 -153
  258. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  259. package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
  260. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  261. package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
  262. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
  263. package/sdk/platform/PlatformApplicationClient.js +1584 -13899
  264. package/sdk/platform/PlatformClient.d.ts +7965 -7885
  265. package/sdk/platform/PlatformClient.js +8672 -10105
  266. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +83 -83
  267. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +275 -275
  268. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  269. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
  270. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  271. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  272. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
  273. package/sdk/platform/Share/SharePlatformApplicationClient.js +59 -59
  274. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  275. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
  276. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  277. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  278. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
  279. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +310 -310
  280. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  281. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
  282. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  283. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  284. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
  285. package/sdk/platform/User/UserPlatformApplicationClient.js +505 -166
  286. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  287. package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
  288. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  289. package/sdk/platform/User/UserPlatformModel.js +440 -689
  290. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
  291. package/sdk/platform/Webhook/WebhookPlatformClient.js +88 -88
  292. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  293. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  294. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  295. package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
  296. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  297. package/sdk/public/Configuration/ConfigurationPublicClient.js +38 -38
  298. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  299. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  300. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  301. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  302. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  303. package/sdk/public/Inventory/InventoryPublicClient.js +113 -113
  304. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  305. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  306. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  307. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  308. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  309. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  310. package/tests/application/catalog.spec.js +7 -0
@@ -1,997 +1,748 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  class UserModel {
4
- static BlockUserRequestSchema() {
4
+ static Accountkit() {
5
5
  return Joi.object({
6
- status: Joi.boolean(),
7
-
8
- user_id: Joi.array().items(Joi.string().allow("")),
9
-
10
- reason: Joi.string().allow(""),
6
+ app_id: Joi.string().allow(""),
11
7
  });
12
8
  }
13
-
14
9
  static ArchiveUserRequestSchema() {
15
10
  return Joi.object({
16
11
  user_id: Joi.string().allow(""),
17
12
  });
18
13
  }
19
-
20
- static DeleteApplicationUserRequestSchema() {
21
- return Joi.object({
22
- user_id: Joi.string().allow(""),
23
-
24
- reason: Joi.string().allow(""),
25
-
26
- reason_id: Joi.string().allow(""),
27
-
28
- request_id: Joi.string().allow(""),
29
-
30
- otp: Joi.string().allow(""),
31
- });
32
- }
33
-
34
- static UnDeleteUserRequestSchema() {
14
+ static ArchiveUserSuccess() {
35
15
  return Joi.object({
36
- user_id: Joi.string().allow(""),
37
-
38
- reason: Joi.string().allow(""),
39
-
40
- reason_id: Joi.string().allow(""),
16
+ success: Joi.boolean(),
41
17
  });
42
18
  }
43
-
44
- static EditEmailRequestSchema() {
19
+ static AuthenticationApiErrorSchema() {
45
20
  return Joi.object({
46
- email: Joi.string().allow(""),
21
+ message: Joi.string().allow(""),
47
22
  });
48
23
  }
49
-
50
- static SendVerificationLinkMobileRequestSchema() {
24
+ static AuthenticationInternalServerErrorSchema() {
51
25
  return Joi.object({
52
- verified: Joi.boolean(),
53
-
54
- active: Joi.boolean(),
55
-
56
- country_code: Joi.string().allow(""),
57
-
58
- phone: Joi.string().allow(""),
59
-
60
- primary: Joi.boolean(),
26
+ message: Joi.string().allow(""),
61
27
  });
62
28
  }
63
-
64
- static EditMobileRequestSchema() {
29
+ static AuthSuccess() {
65
30
  return Joi.object({
66
- country_code: Joi.string().allow(""),
67
-
68
- phone: Joi.string().allow(""),
31
+ register_token: Joi.string().allow(""),
32
+ user: UserModel.UserSchema(),
33
+ user_exists: Joi.boolean(),
69
34
  });
70
35
  }
71
-
72
- static EditProfileRequestSchema() {
36
+ static AuthSuccessUser() {
73
37
  return Joi.object({
38
+ active: Joi.boolean(),
39
+ debug: UserModel.AuthSuccessUserDebug(),
40
+ emails: UserModel.AuthSuccessUserEmails(),
74
41
  first_name: Joi.string().allow(""),
75
-
76
42
  last_name: Joi.string().allow(""),
77
-
78
- mobile: UserModel.EditProfileMobileSchema(),
79
-
80
- country_code: Joi.string().allow(""),
81
-
82
- email: Joi.string().allow(""),
83
-
84
- gender: Joi.string().allow(""),
85
-
86
- dob: Joi.string().allow(""),
87
-
88
- profile_pic_url: Joi.string().allow(""),
89
-
90
- android_hash: Joi.string().allow(""),
91
-
92
- sender: Joi.string().allow(""),
93
-
94
- register_token: Joi.string().allow(""),
95
43
  });
96
44
  }
97
-
98
- static EditProfileMobileSchema() {
45
+ static AuthSuccessUserDebug() {
99
46
  return Joi.object({
100
- phone: Joi.string().allow(""),
101
-
102
- country_code: Joi.string().allow(""),
47
+ platform: Joi.string().allow(""),
103
48
  });
104
49
  }
105
-
106
- static SendEmailOtpRequestSchema() {
50
+ static AuthSuccessUserEmails() {
107
51
  return Joi.object({
52
+ active: Joi.boolean(),
108
53
  email: Joi.string().allow(""),
109
-
110
- action: Joi.string().allow(""),
111
-
112
- token: Joi.string().allow(""),
113
-
114
- register_token: Joi.string().allow(""),
54
+ primary: Joi.boolean(),
55
+ verified: Joi.boolean(),
115
56
  });
116
57
  }
117
-
118
- static VerifyEmailOtpRequestSchema() {
58
+ static BlockUserRequestSchema() {
119
59
  return Joi.object({
120
- email: Joi.string().allow(""),
121
-
122
- action: Joi.string().allow(""),
123
-
124
- register_token: Joi.string().allow(""),
125
-
126
- otp: Joi.string().allow(""),
60
+ reason: Joi.string().allow(""),
61
+ status: Joi.boolean(),
62
+ user_id: Joi.array().items(Joi.string().allow("")),
127
63
  });
128
64
  }
129
-
130
- static VerifyOtpRequestSchema() {
65
+ static BlockUserSuccess() {
131
66
  return Joi.object({
132
- request_id: Joi.string().allow(""),
133
-
134
- register_token: Joi.string().allow(""),
135
-
136
- otp: Joi.string().allow(""),
67
+ success: Joi.boolean(),
137
68
  });
138
69
  }
139
-
140
- static SendMobileOtpRequestSchema() {
70
+ static CodeRequestBodySchema() {
141
71
  return Joi.object({
142
- mobile: Joi.string().allow(""),
143
-
144
- country_code: Joi.string().allow(""),
145
-
146
- action: Joi.string().allow(""),
147
-
148
- token: Joi.string().allow(""),
149
-
150
- android_hash: Joi.string().allow(""),
151
-
152
- force: Joi.string().allow(""),
153
-
154
- captcha_code: Joi.string().allow(""),
72
+ code: Joi.string().allow(""),
155
73
  });
156
74
  }
157
-
158
- static UpdatePasswordRequestSchema() {
75
+ static CreateUserGroupSchema() {
159
76
  return Joi.object({
160
- old_password: Joi.string().allow(""),
161
-
162
- new_password: Joi.string().allow(""),
77
+ description: Joi.string().allow("").required(),
78
+ file_url: Joi.string().allow("").required(),
79
+ name: Joi.string().allow("").required(),
163
80
  });
164
81
  }
165
-
166
- static FormRegisterRequestSchema() {
82
+ static CreateUserRequestSchema() {
167
83
  return Joi.object({
84
+ email: Joi.string().allow(""),
168
85
  first_name: Joi.string().allow(""),
169
-
170
- last_name: Joi.string().allow(""),
171
-
172
86
  gender: Joi.string().allow(""),
173
-
174
- email: Joi.string().allow(""),
175
-
176
- password: Joi.string().allow(""),
177
-
178
- phone: UserModel.FormRegisterRequestSchemaPhone(),
179
-
180
- register_token: Joi.string().allow(""),
87
+ last_name: Joi.string().allow(""),
88
+ meta: Joi.any(),
89
+ phone_number: Joi.string().allow("").required(),
90
+ username: Joi.string().allow("").required(),
181
91
  });
182
92
  }
183
-
184
- static TokenRequestBodySchema() {
93
+ static CreateUserResponseSchema() {
185
94
  return Joi.object({
186
- token: Joi.string().allow(""),
95
+ user: UserModel.UserSchema(),
187
96
  });
188
97
  }
189
-
190
- static ForgotPasswordRequestSchema() {
98
+ static CreateUserSessionRequestSchema() {
191
99
  return Joi.object({
192
- code: Joi.string().allow(""),
193
-
194
- password: Joi.string().allow(""),
100
+ domain: Joi.string().allow(""),
101
+ max_age: Joi.number(),
102
+ user_id: Joi.string().allow(""),
195
103
  });
196
104
  }
197
-
198
- static CodeRequestBodySchema() {
105
+ static CreateUserSessionResponseSchema() {
199
106
  return Joi.object({
200
- code: Joi.string().allow(""),
107
+ cookie: Joi.any(),
108
+ domain: Joi.string().allow(""),
109
+ http_only: Joi.boolean(),
110
+ max_age: Joi.number(),
111
+ secure: Joi.boolean(),
201
112
  });
202
113
  }
203
-
204
- static SendResetPasswordEmailRequestSchema() {
114
+ static CustomerListResponseSchema() {
205
115
  return Joi.object({
206
- email: Joi.string().allow(""),
207
-
208
- captcha_code: Joi.string().allow(""),
116
+ items: Joi.array().items(UserModel.UserSchema()),
117
+ page: UserModel.PaginationSchema(),
209
118
  });
210
119
  }
211
-
212
- static SendResetPasswordMobileRequestSchema() {
120
+ static DeleteAccountConsent() {
213
121
  return Joi.object({
214
- country_code: Joi.string().allow(""),
215
-
216
- mobile: Joi.string().allow(""),
217
-
218
- captcha_code: Joi.string().allow(""),
122
+ consent_text: Joi.string().allow(""),
219
123
  });
220
124
  }
221
-
222
- static PasswordLoginRequestSchema() {
125
+ static DeleteAccountReasons() {
223
126
  return Joi.object({
224
- captcha_code: Joi.string().allow(""),
225
-
226
- password: Joi.string().allow(""),
227
-
228
- username: Joi.string().allow(""),
127
+ reason_id: Joi.string().allow(""),
128
+ reason_text: Joi.string().allow(""),
129
+ show_text_area: Joi.boolean(),
229
130
  });
230
131
  }
231
-
232
- static SendOtpRequestSchema() {
132
+ static DeleteApplicationUserRequestSchema() {
233
133
  return Joi.object({
234
- country_code: Joi.string().allow(""),
235
-
236
- captcha_code: Joi.string().allow(""),
237
-
238
- mobile: Joi.string().allow(""),
239
-
240
- android_hash: Joi.string().allow(""),
134
+ otp: Joi.string().allow(""),
135
+ reason: Joi.string().allow(""),
136
+ reason_id: Joi.string().allow(""),
137
+ request_id: Joi.string().allow(""),
138
+ user_id: Joi.string().allow(""),
241
139
  });
242
140
  }
243
-
244
- static OAuthRequestSchema() {
141
+ static DeleteUserSuccess() {
245
142
  return Joi.object({
246
- is_signed_in: Joi.boolean(),
247
-
248
- oauth2: UserModel.OAuthRequestSchemaOauth2(),
249
-
250
- profile: UserModel.OAuthRequestSchemaProfile(),
143
+ success: Joi.boolean(),
251
144
  });
252
145
  }
253
-
254
- static OAuthRequestAppleSchema() {
146
+ static EditEmailRequestSchema() {
255
147
  return Joi.object({
256
- user_identifier: Joi.string().allow(""),
257
-
258
- oauth: UserModel.OAuthRequestAppleSchemaOauth(),
259
-
260
- profile: UserModel.OAuthRequestAppleSchemaProfile(),
148
+ email: Joi.string().allow(""),
261
149
  });
262
150
  }
263
-
264
- static UserObjectSchema() {
151
+ static EditMobileRequestSchema() {
265
152
  return Joi.object({
266
- user: UserModel.UserSchema(),
153
+ country_code: Joi.string().allow(""),
154
+ phone: Joi.string().allow(""),
267
155
  });
268
156
  }
269
-
270
- static AuthSuccess() {
157
+ static EditProfileMobileSchema() {
271
158
  return Joi.object({
272
- register_token: Joi.string().allow(""),
273
-
274
- user_exists: Joi.boolean(),
275
-
276
- user: UserModel.UserSchema(),
159
+ country_code: Joi.string().allow(""),
160
+ phone: Joi.string().allow(""),
277
161
  });
278
162
  }
279
-
280
- static SendOtpResponse() {
163
+ static EditProfileRequestSchema() {
281
164
  return Joi.object({
282
- resend_timer: Joi.number(),
283
-
284
- resend_token: Joi.string().allow(""),
285
-
286
- success: Joi.boolean(),
287
-
288
- request_id: Joi.string().allow(""),
289
-
290
- message: Joi.string().allow(""),
291
-
292
- mobile: Joi.string().allow(""),
293
-
165
+ android_hash: Joi.string().allow(""),
294
166
  country_code: Joi.string().allow(""),
295
-
167
+ dob: Joi.string().allow(""),
296
168
  email: Joi.string().allow(""),
297
-
298
- resend_email_token: Joi.string().allow(""),
299
-
169
+ first_name: Joi.string().allow(""),
170
+ gender: Joi.string().allow(""),
171
+ last_name: Joi.string().allow(""),
172
+ mobile: UserModel.EditProfileMobileSchema(),
173
+ profile_pic_url: Joi.string().allow(""),
300
174
  register_token: Joi.string().allow(""),
301
-
302
- verify_email_otp: Joi.boolean(),
303
-
304
- verify_mobile_otp: Joi.boolean(),
305
-
306
- user_exists: Joi.boolean(),
175
+ sender: Joi.string().allow(""),
307
176
  });
308
177
  }
309
-
310
- static ProfileEditSuccess() {
178
+ static Email() {
311
179
  return Joi.object({
312
- user: UserModel.UserSchema(),
313
-
314
- register_token: Joi.string().allow(""),
315
-
316
- resend_email_token: Joi.string().allow(""),
317
-
318
- user_exists: Joi.boolean(),
319
-
320
- verify_email_link: Joi.boolean(),
321
-
322
- verify_email_otp: Joi.boolean(),
323
-
324
- verify_mobile_otp: Joi.boolean(),
325
-
180
+ active: Joi.boolean(),
326
181
  email: Joi.string().allow(""),
327
-
328
- request_id: Joi.string().allow(""),
329
-
330
- country_code: Joi.string().allow(""),
331
-
332
- mobile: Joi.string().allow(""),
333
-
182
+ primary: Joi.boolean(),
183
+ verified: Joi.boolean(),
184
+ });
185
+ }
186
+ static EmailOtpSuccess() {
187
+ return Joi.object({
334
188
  success: Joi.boolean(),
335
-
336
- message: Joi.string().allow(""),
337
-
338
- resend_timer: Joi.number(),
339
-
340
- resend_token: Joi.string().allow(""),
341
189
  });
342
190
  }
343
-
344
- static LoginSuccess() {
191
+ static Facebook() {
345
192
  return Joi.object({
346
- user: UserModel.UserSchema(),
347
-
348
- request_id: Joi.string().allow(""),
349
-
350
- register_token: Joi.string().allow(""),
193
+ app_id: Joi.string().allow(""),
351
194
  });
352
195
  }
353
-
354
- static VerifyOtpSuccess() {
196
+ static FlashCard() {
355
197
  return Joi.object({
356
- user: UserModel.UserSchema(),
357
-
358
- user_exists: Joi.boolean(),
359
-
360
- register_token: Joi.string().allow(""),
198
+ background_color: Joi.string().allow(""),
199
+ text: Joi.string().allow(""),
200
+ text_color: Joi.string().allow(""),
361
201
  });
362
202
  }
363
-
364
- static ResetPasswordSuccess() {
203
+ static ForgotPasswordRequestSchema() {
365
204
  return Joi.object({
366
- status: Joi.string().allow(""),
205
+ code: Joi.string().allow(""),
206
+ password: Joi.string().allow(""),
367
207
  });
368
208
  }
369
-
370
- static RegisterFormSuccess() {
209
+ static FormRegisterRequestSchema() {
371
210
  return Joi.object({
372
211
  email: Joi.string().allow(""),
373
-
374
- resend_timer: Joi.number(),
375
-
376
- resend_token: Joi.string().allow(""),
377
-
378
- resend_email_token: Joi.string().allow(""),
379
-
212
+ first_name: Joi.string().allow(""),
213
+ gender: Joi.string().allow(""),
214
+ last_name: Joi.string().allow(""),
215
+ password: Joi.string().allow(""),
216
+ phone: UserModel.FormRegisterRequestSchemaPhone(),
380
217
  register_token: Joi.string().allow(""),
381
-
382
- success: Joi.boolean(),
383
-
384
- request_id: Joi.string().allow(""),
385
-
386
- message: Joi.string().allow(""),
387
-
388
- mobile: Joi.string().allow(""),
389
-
218
+ });
219
+ }
220
+ static FormRegisterRequestSchemaPhone() {
221
+ return Joi.object({
390
222
  country_code: Joi.string().allow(""),
391
-
392
- verify_email_otp: Joi.boolean(),
393
-
394
- verify_mobile_otp: Joi.boolean(),
395
-
396
- user_exists: Joi.boolean(),
223
+ mobile: Joi.string().allow(""),
397
224
  });
398
225
  }
399
-
400
- static VerifyEmailSuccess() {
226
+ static Google() {
401
227
  return Joi.object({
402
- message: Joi.string().allow(""),
228
+ app_id: Joi.string().allow(""),
403
229
  });
404
230
  }
405
-
406
231
  static HasPasswordSuccess() {
407
232
  return Joi.object({
408
233
  result: Joi.boolean(),
409
234
  });
410
235
  }
411
-
412
- static LogoutSuccess() {
236
+ static Login() {
413
237
  return Joi.object({
414
- logout: Joi.boolean(),
238
+ otp: Joi.boolean(),
239
+ password: Joi.boolean(),
415
240
  });
416
241
  }
417
-
418
- static BlockUserSuccess() {
242
+ static LoginSuccess() {
419
243
  return Joi.object({
420
- success: Joi.boolean(),
244
+ register_token: Joi.string().allow(""),
245
+ request_id: Joi.string().allow(""),
246
+ user: UserModel.UserSchema(),
421
247
  });
422
248
  }
423
-
424
- static ArchiveUserSuccess() {
249
+ static LogoutSuccess() {
425
250
  return Joi.object({
426
- success: Joi.boolean(),
251
+ logout: Joi.boolean(),
427
252
  });
428
253
  }
429
-
430
- static DeleteUserSuccess() {
254
+ static LookAndFeel() {
431
255
  return Joi.object({
432
- success: Joi.boolean(),
256
+ background_color: Joi.string().allow(""),
257
+ card_position: Joi.string().allow(""),
433
258
  });
434
259
  }
435
-
436
- static UnDeleteUserSuccess() {
260
+ static MetaSchema() {
437
261
  return Joi.object({
438
- success: Joi.boolean(),
262
+ fynd_default: Joi.boolean(),
439
263
  });
440
264
  }
441
-
442
- static OtpSuccess() {
265
+ static NotFoundSchema() {
443
266
  return Joi.object({
444
- resend_timer: Joi.number(),
445
-
446
- resend_token: Joi.string().allow(""),
447
-
448
- register_token: Joi.string().allow(""),
449
-
450
- success: Joi.boolean(),
451
-
452
- request_id: Joi.string().allow(""),
453
-
454
267
  message: Joi.string().allow(""),
455
-
456
- mobile: Joi.string().allow(""),
457
-
458
- country_code: Joi.string().allow(""),
459
268
  });
460
269
  }
461
-
462
- static EmailOtpSuccess() {
270
+ static OAuthRequestAppleSchema() {
463
271
  return Joi.object({
464
- success: Joi.boolean(),
272
+ oauth: UserModel.OAuthRequestAppleSchemaOauth(),
273
+ profile: UserModel.OAuthRequestAppleSchemaProfile(),
274
+ user_identifier: Joi.string().allow(""),
465
275
  });
466
276
  }
467
-
468
- static SessionListSuccess() {
277
+ static OAuthRequestAppleSchemaOauth() {
469
278
  return Joi.object({
470
- sessions: Joi.array().items(Joi.string().allow("")),
279
+ identity_token: Joi.string().allow(""),
471
280
  });
472
281
  }
473
-
474
- static VerifyMobileOTPSuccess() {
282
+ static OAuthRequestAppleSchemaProfile() {
475
283
  return Joi.object({
476
- user: UserModel.UserSchema(),
477
-
478
- verify_mobile_link: Joi.boolean(),
284
+ first_name: Joi.string().allow(""),
285
+ full_name: Joi.string().allow(""),
286
+ last_name: Joi.string().allow(""),
479
287
  });
480
288
  }
481
-
482
- static VerifyEmailOTPSuccess() {
289
+ static OAuthRequestSchema() {
483
290
  return Joi.object({
484
- user: UserModel.UserSchema(),
485
-
486
- verify_email_link: Joi.boolean(),
291
+ is_signed_in: Joi.boolean(),
292
+ oauth2: UserModel.OAuthRequestSchemaOauth2(),
293
+ profile: UserModel.OAuthRequestSchemaProfile(),
487
294
  });
488
295
  }
489
-
490
- static SendMobileVerifyLinkSuccess() {
296
+ static OAuthRequestSchemaOauth2() {
491
297
  return Joi.object({
492
- verify_mobile_link: Joi.boolean(),
298
+ access_token: Joi.string().allow(""),
299
+ expiry: Joi.number(),
300
+ refresh_token: Joi.string().allow(""),
493
301
  });
494
302
  }
495
-
496
- static SendEmailVerifyLinkSuccess() {
303
+ static OAuthRequestSchemaProfile() {
497
304
  return Joi.object({
498
- verify_email_link: Joi.boolean(),
305
+ email: Joi.string().allow(""),
306
+ first_name: Joi.string().allow(""),
307
+ full_name: Joi.string().allow(""),
308
+ id: Joi.string().allow(""),
309
+ image: Joi.string().allow(""),
310
+ last_name: Joi.string().allow(""),
499
311
  });
500
312
  }
501
-
502
- static UserSearchResponseSchema() {
313
+ static OtpSuccess() {
503
314
  return Joi.object({
504
- users: Joi.array().items(UserModel.UserSchema()),
315
+ country_code: Joi.string().allow(""),
316
+ message: Joi.string().allow(""),
317
+ mobile: Joi.string().allow(""),
318
+ register_token: Joi.string().allow(""),
319
+ request_id: Joi.string().allow(""),
320
+ resend_timer: Joi.number(),
321
+ resend_token: Joi.string().allow(""),
322
+ success: Joi.boolean(),
505
323
  });
506
324
  }
507
-
508
- static CustomerListResponseSchema() {
325
+ static PaginationSchema() {
509
326
  return Joi.object({
510
- items: Joi.array().items(UserModel.UserSchema()),
511
-
512
- page: UserModel.PaginationSchema(),
513
- });
514
- }
515
-
516
- static PaginationSchema() {
517
- return Joi.object({
518
- size: Joi.number(),
519
-
520
- item_total: Joi.number(),
521
-
327
+ current: Joi.number(),
522
328
  has_next: Joi.boolean(),
523
-
329
+ item_total: Joi.number(),
330
+ size: Joi.number(),
524
331
  type: Joi.string().allow(""),
525
-
526
- current: Joi.number(),
527
- });
528
- }
529
-
530
- static SessionListResponseSchema() {
531
- return Joi.object({
532
- items: Joi.array().items(Joi.string().allow("")),
533
332
  });
534
333
  }
535
-
536
- static SessionDeleteResponseSchema() {
334
+ static PasswordLoginRequestSchema() {
537
335
  return Joi.object({
538
- items: Joi.array().items(Joi.string().allow("")),
336
+ captcha_code: Joi.string().allow(""),
337
+ password: Joi.string().allow(""),
338
+ username: Joi.string().allow(""),
539
339
  });
540
340
  }
541
-
542
- static UnauthorizedSchema() {
341
+ static PhoneNumber() {
543
342
  return Joi.object({
544
- message: Joi.string().allow(""),
343
+ active: Joi.boolean(),
344
+ country_code: Joi.number(),
345
+ phone: Joi.string().allow(""),
346
+ primary: Joi.boolean(),
347
+ verified: Joi.boolean(),
545
348
  });
546
349
  }
547
-
548
- static UnauthenticatedSchema() {
350
+ static PlatformEmail() {
549
351
  return Joi.object({
550
- authenticated: Joi.boolean(),
352
+ is_required: Joi.boolean(),
353
+ level: Joi.string().allow(""),
551
354
  });
552
355
  }
553
-
554
- static NotFoundSchema() {
356
+ static PlatformMobile() {
555
357
  return Joi.object({
556
- message: Joi.string().allow(""),
358
+ is_required: Joi.boolean(),
359
+ level: Joi.string().allow(""),
557
360
  });
558
361
  }
559
-
560
- static AuthenticationInternalServerErrorSchema() {
362
+ static PlatformSchema() {
561
363
  return Joi.object({
562
- message: Joi.string().allow(""),
364
+ _id: Joi.string().allow(""),
365
+ active: Joi.boolean(),
366
+ created_at: Joi.string().allow(""),
367
+ delete_account_consent: Joi.any(),
368
+ delete_account_day: Joi.number(),
369
+ delete_account_reasons: Joi.array().items(
370
+ UserModel.DeleteAccountReasons()
371
+ ),
372
+ desktop_image: Joi.string().allow(""),
373
+ display: Joi.string().allow(""),
374
+ flash_card: UserModel.FlashCard(),
375
+ forgot_password: Joi.boolean(),
376
+ login: UserModel.Login(),
377
+ look_and_feel: UserModel.LookAndFeel(),
378
+ meta: UserModel.MetaSchema(),
379
+ mobile_image: Joi.string().allow(""),
380
+ name: Joi.string().allow(""),
381
+ register: Joi.boolean(),
382
+ register_required_fields: UserModel.RegisterRequiredFields(),
383
+ required_fields: UserModel.RequiredFields(),
384
+ session_config: Joi.any(),
385
+ skip_captcha: Joi.boolean(),
386
+ skip_login: Joi.boolean(),
387
+ social: UserModel.Social(),
388
+ social_tokens: UserModel.SocialTokens(),
389
+ subtext: Joi.string().allow(""),
390
+ updated_at: Joi.string().allow(""),
563
391
  });
564
392
  }
565
-
566
- static AuthenticationApiErrorSchema() {
393
+ static ProfileEditSuccess() {
567
394
  return Joi.object({
395
+ country_code: Joi.string().allow(""),
396
+ email: Joi.string().allow(""),
568
397
  message: Joi.string().allow(""),
398
+ mobile: Joi.string().allow(""),
399
+ register_token: Joi.string().allow(""),
400
+ request_id: Joi.string().allow(""),
401
+ resend_email_token: Joi.string().allow(""),
402
+ resend_timer: Joi.number(),
403
+ resend_token: Joi.string().allow(""),
404
+ success: Joi.boolean(),
405
+ user: UserModel.UserSchema(),
406
+ user_exists: Joi.boolean(),
407
+ verify_email_link: Joi.boolean(),
408
+ verify_email_otp: Joi.boolean(),
409
+ verify_mobile_otp: Joi.boolean(),
569
410
  });
570
411
  }
571
-
572
412
  static ProfileEditSuccessSchema() {
573
413
  return Joi.object({
574
414
  email: Joi.string().allow(""),
575
-
576
- verify_email_otp: Joi.boolean(),
577
-
578
- verify_email_link: Joi.boolean(),
579
-
580
- verify_mobile_otp: Joi.boolean(),
581
-
582
- user: Joi.string().allow(""),
583
-
584
415
  register_token: Joi.string().allow(""),
585
-
416
+ user: Joi.string().allow(""),
586
417
  user_exists: Joi.boolean(),
418
+ verify_email_link: Joi.boolean(),
419
+ verify_email_otp: Joi.boolean(),
420
+ verify_mobile_otp: Joi.boolean(),
587
421
  });
588
422
  }
589
-
590
- static FormRegisterRequestSchemaPhone() {
423
+ static RegisterFormSuccess() {
591
424
  return Joi.object({
592
425
  country_code: Joi.string().allow(""),
593
-
426
+ email: Joi.string().allow(""),
427
+ message: Joi.string().allow(""),
594
428
  mobile: Joi.string().allow(""),
429
+ register_token: Joi.string().allow(""),
430
+ request_id: Joi.string().allow(""),
431
+ resend_email_token: Joi.string().allow(""),
432
+ resend_timer: Joi.number(),
433
+ resend_token: Joi.string().allow(""),
434
+ success: Joi.boolean(),
435
+ user_exists: Joi.boolean(),
436
+ verify_email_otp: Joi.boolean(),
437
+ verify_mobile_otp: Joi.boolean(),
595
438
  });
596
439
  }
597
-
598
- static OAuthRequestSchemaOauth2() {
440
+ static RegisterRequiredFields() {
599
441
  return Joi.object({
600
- access_token: Joi.string().allow(""),
601
-
602
- expiry: Joi.number(),
603
-
604
- refresh_token: Joi.string().allow(""),
442
+ email: UserModel.RegisterRequiredFieldsEmail(),
443
+ mobile: UserModel.RegisterRequiredFieldsMobile(),
605
444
  });
606
445
  }
607
-
608
- static OAuthRequestSchemaProfile() {
446
+ static RegisterRequiredFieldsEmail() {
609
447
  return Joi.object({
610
- last_name: Joi.string().allow(""),
611
-
612
- image: Joi.string().allow(""),
613
-
614
- id: Joi.string().allow(""),
615
-
616
- email: Joi.string().allow(""),
617
-
618
- full_name: Joi.string().allow(""),
619
-
620
- first_name: Joi.string().allow(""),
448
+ is_required: Joi.boolean(),
449
+ level: Joi.string().allow(""),
621
450
  });
622
451
  }
623
-
624
- static OAuthRequestAppleSchemaOauth() {
452
+ static RegisterRequiredFieldsMobile() {
625
453
  return Joi.object({
626
- identity_token: Joi.string().allow(""),
454
+ is_required: Joi.boolean(),
455
+ level: Joi.string().allow(""),
627
456
  });
628
457
  }
629
-
630
- static OAuthRequestAppleSchemaProfile() {
458
+ static RequiredFields() {
631
459
  return Joi.object({
632
- last_name: Joi.string().allow(""),
633
-
634
- full_name: Joi.string().allow(""),
635
-
636
- first_name: Joi.string().allow(""),
460
+ email: UserModel.PlatformEmail(),
461
+ mobile: UserModel.PlatformMobile(),
637
462
  });
638
463
  }
639
-
640
- static AuthSuccessUser() {
464
+ static ResetPasswordSuccess() {
641
465
  return Joi.object({
642
- first_name: Joi.string().allow(""),
643
-
644
- last_name: Joi.string().allow(""),
645
-
646
- debug: UserModel.AuthSuccessUserDebug(),
647
-
648
- active: Joi.boolean(),
649
-
650
- emails: UserModel.AuthSuccessUserEmails(),
466
+ status: Joi.string().allow(""),
651
467
  });
652
468
  }
653
-
654
- static AuthSuccessUserDebug() {
469
+ static SendEmailOtpRequestSchema() {
655
470
  return Joi.object({
656
- platform: Joi.string().allow(""),
471
+ action: Joi.string().allow(""),
472
+ email: Joi.string().allow(""),
473
+ register_token: Joi.string().allow(""),
474
+ token: Joi.string().allow(""),
657
475
  });
658
476
  }
659
-
660
- static AuthSuccessUserEmails() {
477
+ static SendEmailVerifyLinkSuccess() {
661
478
  return Joi.object({
662
- email: Joi.string().allow(""),
663
-
664
- verified: Joi.boolean(),
665
-
666
- primary: Joi.boolean(),
667
-
668
- active: Joi.boolean(),
479
+ verify_email_link: Joi.boolean(),
669
480
  });
670
481
  }
671
-
672
- static CreateUserRequestSchema() {
482
+ static SendMobileOtpRequestSchema() {
673
483
  return Joi.object({
674
- phone_number: Joi.string().allow("").required(),
675
-
676
- email: Joi.string().allow(""),
677
-
678
- first_name: Joi.string().allow(""),
679
-
680
- last_name: Joi.string().allow(""),
681
-
682
- gender: Joi.string().allow(""),
683
-
684
- username: Joi.string().allow("").required(),
685
-
686
- meta: Joi.any(),
484
+ action: Joi.string().allow(""),
485
+ android_hash: Joi.string().allow(""),
486
+ captcha_code: Joi.string().allow(""),
487
+ country_code: Joi.string().allow(""),
488
+ force: Joi.string().allow(""),
489
+ mobile: Joi.string().allow(""),
490
+ token: Joi.string().allow(""),
687
491
  });
688
492
  }
689
-
690
- static CreateUserResponseSchema() {
493
+ static SendMobileVerifyLinkSuccess() {
691
494
  return Joi.object({
692
- user: UserModel.UserSchema(),
495
+ verify_mobile_link: Joi.boolean(),
693
496
  });
694
497
  }
695
-
696
- static CreateUserSessionRequestSchema() {
498
+ static SendOtpRequestSchema() {
697
499
  return Joi.object({
698
- domain: Joi.string().allow(""),
699
-
700
- max_age: Joi.number(),
701
-
702
- user_id: Joi.string().allow(""),
500
+ android_hash: Joi.string().allow(""),
501
+ captcha_code: Joi.string().allow(""),
502
+ country_code: Joi.string().allow(""),
503
+ mobile: Joi.string().allow(""),
703
504
  });
704
505
  }
705
-
706
- static CreateUserSessionResponseSchema() {
506
+ static SendOtpResponse() {
707
507
  return Joi.object({
708
- domain: Joi.string().allow(""),
709
-
710
- max_age: Joi.number(),
711
-
712
- secure: Joi.boolean(),
713
-
714
- http_only: Joi.boolean(),
715
-
716
- cookie: Joi.any(),
508
+ country_code: Joi.string().allow(""),
509
+ email: Joi.string().allow(""),
510
+ message: Joi.string().allow(""),
511
+ mobile: Joi.string().allow(""),
512
+ register_token: Joi.string().allow(""),
513
+ request_id: Joi.string().allow(""),
514
+ resend_email_token: Joi.string().allow(""),
515
+ resend_timer: Joi.number(),
516
+ resend_token: Joi.string().allow(""),
517
+ success: Joi.boolean(),
518
+ user_exists: Joi.boolean(),
519
+ verify_email_otp: Joi.boolean(),
520
+ verify_mobile_otp: Joi.boolean(),
717
521
  });
718
522
  }
719
-
720
- static PlatformSchema() {
523
+ static SendResetPasswordEmailRequestSchema() {
524
+ return Joi.object({
525
+ captcha_code: Joi.string().allow(""),
526
+ email: Joi.string().allow(""),
527
+ });
528
+ }
529
+ static SendResetPasswordMobileRequestSchema() {
530
+ return Joi.object({
531
+ captcha_code: Joi.string().allow(""),
532
+ country_code: Joi.string().allow(""),
533
+ mobile: Joi.string().allow(""),
534
+ });
535
+ }
536
+ static SendVerificationLinkMobileRequestSchema() {
721
537
  return Joi.object({
722
- display: Joi.string().allow(""),
723
-
724
- look_and_feel: UserModel.LookAndFeel(),
725
-
726
- updated_at: Joi.string().allow(""),
727
-
728
538
  active: Joi.boolean(),
729
-
730
- forgot_password: Joi.boolean(),
731
-
732
- login: UserModel.Login(),
733
-
734
- skip_captcha: Joi.boolean(),
735
-
736
- name: Joi.string().allow(""),
737
-
738
- meta: UserModel.MetaSchema(),
739
-
740
- _id: Joi.string().allow(""),
741
-
742
- social: UserModel.Social(),
743
-
744
- required_fields: UserModel.RequiredFields(),
745
-
746
- register_required_fields: UserModel.RegisterRequiredFields(),
747
-
748
- skip_login: Joi.boolean(),
749
-
750
- flash_card: UserModel.FlashCard(),
751
-
752
- subtext: Joi.string().allow(""),
753
-
754
- social_tokens: UserModel.SocialTokens(),
755
-
756
- created_at: Joi.string().allow(""),
757
-
758
- register: Joi.boolean(),
759
-
760
- mobile_image: Joi.string().allow(""),
761
-
762
- desktop_image: Joi.string().allow(""),
763
-
764
- delete_account_day: Joi.number(),
765
-
766
- delete_account_reasons: Joi.array().items(
767
- UserModel.DeleteAccountReasons()
768
- ),
769
-
770
- delete_account_consent: Joi.any(),
771
-
772
- session_config: Joi.any(),
539
+ country_code: Joi.string().allow(""),
540
+ phone: Joi.string().allow(""),
541
+ primary: Joi.boolean(),
542
+ verified: Joi.boolean(),
773
543
  });
774
544
  }
775
-
776
- static LookAndFeel() {
545
+ static SessionDeleteResponseSchema() {
777
546
  return Joi.object({
778
- card_position: Joi.string().allow(""),
779
-
780
- background_color: Joi.string().allow(""),
547
+ items: Joi.array().items(Joi.string().allow("")),
781
548
  });
782
549
  }
783
-
784
- static Login() {
550
+ static SessionExpiry() {
785
551
  return Joi.object({
786
- password: Joi.boolean(),
787
-
788
- otp: Joi.boolean(),
552
+ duration: Joi.number(),
553
+ is_rolling: Joi.boolean(),
554
+ type: Joi.string().allow(""),
789
555
  });
790
556
  }
791
-
792
- static MetaSchema() {
557
+ static SessionListResponseInfo() {
793
558
  return Joi.object({
794
- fynd_default: Joi.boolean(),
559
+ domain: Joi.string().allow(""),
560
+ expire_in: Joi.string().allow(""),
561
+ ip: Joi.string().allow(""),
562
+ session_id: Joi.string().allow(""),
563
+ user_agent: Joi.string().allow(""),
564
+ });
565
+ }
566
+ static SessionListResponseSchema() {
567
+ return Joi.object({
568
+ items: Joi.array().items(UserModel.SessionListResponseInfo()),
569
+ });
570
+ }
571
+ static SessionListSuccess() {
572
+ return Joi.object({
573
+ sessions: Joi.array().items(Joi.string().allow("")),
795
574
  });
796
575
  }
797
-
798
576
  static Social() {
799
577
  return Joi.object({
800
578
  account_kit: Joi.boolean(),
801
-
579
+ apple: Joi.boolean(),
802
580
  facebook: Joi.boolean(),
803
-
804
581
  google: Joi.boolean(),
805
-
806
- apple: Joi.boolean(),
807
- });
808
- }
809
-
810
- static RequiredFields() {
811
- return Joi.object({
812
- email: UserModel.PlatformEmail(),
813
-
814
- mobile: UserModel.PlatformMobile(),
815
582
  });
816
583
  }
817
-
818
- static PlatformEmail() {
584
+ static SocialTokens() {
819
585
  return Joi.object({
820
- is_required: Joi.boolean(),
821
-
822
- level: Joi.string().allow(""),
586
+ account_kit: UserModel.Accountkit(),
587
+ facebook: UserModel.Facebook(),
588
+ google: UserModel.Google(),
823
589
  });
824
590
  }
825
-
826
- static PlatformMobile() {
591
+ static TokenRequestBodySchema() {
827
592
  return Joi.object({
828
- is_required: Joi.boolean(),
829
-
830
- level: Joi.string().allow(""),
593
+ token: Joi.string().allow(""),
831
594
  });
832
595
  }
833
-
834
- static RegisterRequiredFields() {
596
+ static UnauthenticatedSchema() {
835
597
  return Joi.object({
836
- email: UserModel.RegisterRequiredFieldsEmail(),
837
-
838
- mobile: UserModel.RegisterRequiredFieldsMobile(),
598
+ authenticated: Joi.boolean(),
839
599
  });
840
600
  }
841
-
842
- static RegisterRequiredFieldsEmail() {
601
+ static UnauthorizedSchema() {
843
602
  return Joi.object({
844
- is_required: Joi.boolean(),
845
-
846
- level: Joi.string().allow(""),
603
+ message: Joi.string().allow(""),
847
604
  });
848
605
  }
849
-
850
- static RegisterRequiredFieldsMobile() {
606
+ static UnDeleteUserRequestSchema() {
851
607
  return Joi.object({
852
- is_required: Joi.boolean(),
853
-
854
- level: Joi.string().allow(""),
608
+ reason: Joi.string().allow(""),
609
+ reason_id: Joi.string().allow(""),
610
+ user_id: Joi.string().allow(""),
855
611
  });
856
612
  }
857
-
858
- static FlashCard() {
613
+ static UnDeleteUserSuccess() {
859
614
  return Joi.object({
860
- text: Joi.string().allow(""),
861
-
862
- text_color: Joi.string().allow(""),
863
-
864
- background_color: Joi.string().allow(""),
615
+ success: Joi.boolean(),
865
616
  });
866
617
  }
867
-
868
- static SocialTokens() {
618
+ static UpdatePasswordRequestSchema() {
869
619
  return Joi.object({
870
- facebook: UserModel.Facebook(),
871
-
872
- account_kit: UserModel.Accountkit(),
873
-
874
- google: UserModel.Google(),
620
+ new_password: Joi.string().allow(""),
621
+ old_password: Joi.string().allow(""),
875
622
  });
876
623
  }
877
-
878
- static DeleteAccountReasons() {
624
+ static UpdateUserGroupSchema() {
879
625
  return Joi.object({
880
- reason_text: Joi.string().allow(""),
881
-
882
- reason_id: Joi.string().allow(""),
883
-
884
- show_text_area: Joi.boolean(),
626
+ description: Joi.string().allow(""),
627
+ file_url: Joi.string().allow(""),
628
+ name: Joi.string().allow(""),
885
629
  });
886
630
  }
887
-
888
- static DeleteAccountConsent() {
631
+ static UpdateUserRequestSchema() {
889
632
  return Joi.object({
890
- consent_text: Joi.string().allow(""),
633
+ emails: Joi.array().items(UserModel.UserEmails()),
634
+ external_id: Joi.string().allow(""),
635
+ first_name: Joi.string().allow(""),
636
+ gender: Joi.string().allow(""),
637
+ last_name: Joi.string().allow(""),
638
+ meta: Joi.any(),
639
+ phone_numbers: Joi.array().items(UserModel.UserPhoneNumbers()),
891
640
  });
892
641
  }
893
-
894
- static Facebook() {
642
+ static UserEmails() {
895
643
  return Joi.object({
896
- app_id: Joi.string().allow(""),
644
+ active: Joi.boolean(),
645
+ email: Joi.string().allow(""),
646
+ primary: Joi.boolean(),
647
+ verified: Joi.boolean(),
897
648
  });
898
649
  }
899
-
900
- static Accountkit() {
650
+ static UserGroupListResponseSchema() {
901
651
  return Joi.object({
902
- app_id: Joi.string().allow(""),
652
+ items: Joi.array().items(UserModel.UserGroupResponseSchema()),
653
+ page: UserModel.PaginationSchema(),
903
654
  });
904
655
  }
905
-
906
- static Google() {
656
+ static UserGroupResponseSchema() {
907
657
  return Joi.object({
908
- app_id: Joi.string().allow(""),
658
+ __v: Joi.number(),
659
+ _id: Joi.string().allow(""),
660
+ application_id: Joi.string().allow(""),
661
+ created_at: Joi.string().allow(""),
662
+ description: Joi.string().allow(""),
663
+ file_url: Joi.string().allow(""),
664
+ modified_at: Joi.string().allow(""),
665
+ name: Joi.string().allow(""),
666
+ status: Joi.string().allow(""),
667
+ uid: Joi.number(),
909
668
  });
910
669
  }
911
-
912
- static SessionExpiry() {
670
+ static UserObjectSchema() {
913
671
  return Joi.object({
914
- duration: Joi.number(),
915
-
916
- type: Joi.string().allow(""),
917
-
918
- is_rolling: Joi.boolean(),
672
+ user: UserModel.UserSchema(),
919
673
  });
920
674
  }
921
-
922
- static UpdateUserRequestSchema() {
675
+ static UserPhoneNumbers() {
923
676
  return Joi.object({
924
- first_name: Joi.string().allow(""),
925
-
926
- last_name: Joi.string().allow(""),
927
-
928
- gender: Joi.string().allow(""),
929
-
930
- external_id: Joi.string().allow(""),
931
-
932
- meta: Joi.any(),
677
+ active: Joi.boolean(),
678
+ country_code: Joi.string().allow(""),
679
+ phone: Joi.string().allow(""),
680
+ primary: Joi.boolean(),
681
+ verified: Joi.boolean(),
933
682
  });
934
683
  }
935
-
936
684
  static UserSchema() {
937
685
  return Joi.object({
686
+ _id: Joi.string().allow(""),
687
+ account_type: Joi.string().allow(""),
688
+ active: Joi.boolean(),
938
689
  application_id: Joi.string().allow(""),
939
-
940
- user_id: Joi.string().allow(""),
941
-
690
+ created_at: Joi.string().allow(""),
691
+ dob: Joi.string().allow(""),
692
+ emails: Joi.array().items(UserModel.Email()),
942
693
  first_name: Joi.string().allow(""),
943
-
944
- meta: Joi.any(),
945
-
694
+ gender: Joi.string().allow(""),
946
695
  last_name: Joi.string().allow(""),
947
-
696
+ meta: Joi.any(),
948
697
  phone_numbers: Joi.array().items(UserModel.PhoneNumber()),
949
-
950
- emails: Joi.array().items(UserModel.Email()),
951
-
952
- gender: Joi.string().allow(""),
953
-
954
- dob: Joi.string().allow(""),
955
-
956
- active: Joi.boolean(),
957
-
958
698
  profile_pic_url: Joi.string().allow(""),
959
-
960
- username: Joi.string().allow(""),
961
-
962
- account_type: Joi.string().allow(""),
963
-
964
- _id: Joi.string().allow(""),
965
-
966
- created_at: Joi.string().allow(""),
967
-
968
699
  updated_at: Joi.string().allow(""),
700
+ user_id: Joi.string().allow(""),
701
+ username: Joi.string().allow(""),
969
702
  });
970
703
  }
971
-
972
- static PhoneNumber() {
704
+ static UserSearchResponseSchema() {
973
705
  return Joi.object({
974
- active: Joi.boolean(),
975
-
976
- primary: Joi.boolean(),
977
-
978
- verified: Joi.boolean(),
979
-
980
- phone: Joi.string().allow(""),
981
-
982
- country_code: Joi.number(),
706
+ users: Joi.array().items(UserModel.UserSchema()),
983
707
  });
984
708
  }
985
-
986
- static Email() {
709
+ static VerifyEmailOtpRequestSchema() {
987
710
  return Joi.object({
988
- primary: Joi.boolean(),
989
-
990
- verified: Joi.boolean(),
991
-
711
+ action: Joi.string().allow(""),
992
712
  email: Joi.string().allow(""),
993
-
994
- active: Joi.boolean(),
713
+ otp: Joi.string().allow(""),
714
+ register_token: Joi.string().allow(""),
715
+ });
716
+ }
717
+ static VerifyEmailOTPSuccess() {
718
+ return Joi.object({
719
+ user: UserModel.UserSchema(),
720
+ verify_email_link: Joi.boolean(),
721
+ });
722
+ }
723
+ static VerifyEmailSuccess() {
724
+ return Joi.object({
725
+ message: Joi.string().allow(""),
726
+ });
727
+ }
728
+ static VerifyMobileOTPSuccess() {
729
+ return Joi.object({
730
+ user: UserModel.UserSchema(),
731
+ verify_mobile_link: Joi.boolean(),
732
+ });
733
+ }
734
+ static VerifyOtpRequestSchema() {
735
+ return Joi.object({
736
+ otp: Joi.string().allow(""),
737
+ register_token: Joi.string().allow(""),
738
+ request_id: Joi.string().allow(""),
739
+ });
740
+ }
741
+ static VerifyOtpSuccess() {
742
+ return Joi.object({
743
+ register_token: Joi.string().allow(""),
744
+ user: UserModel.UserSchema(),
745
+ user_exists: Joi.boolean(),
995
746
  });
996
747
  }
997
748
  }