@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
  6. package/sdk/application/Cart/CartApplicationClient.js +173 -511
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -19
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +61 -61
  16. package/sdk/application/Content/ContentApplicationClient.js +183 -366
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
  22. package/sdk/application/Lead/LeadApplicationClient.js +24 -55
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +28 -117
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
  26. package/sdk/application/Order/OrderApplicationClient.js +89 -293
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
  28. package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
  29. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
  30. package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
  31. package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
  32. package/sdk/application/Share/ShareApplicationClient.js +35 -89
  33. package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
  34. package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
  35. package/sdk/application/User/UserApplicationClient.d.ts +23 -13
  36. package/sdk/application/User/UserApplicationClient.js +49 -407
  37. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  38. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
  39. package/sdk/common/Utility.d.ts +1 -1
  40. package/sdk/common/Utility.js +10 -7
  41. package/sdk/common/Validator.d.ts +1 -0
  42. package/sdk/common/Validator.js +20 -0
  43. package/sdk/common/utils.d.ts +0 -1
  44. package/sdk/common/utils.js +0 -14
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -54
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  52. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
  54. package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
  55. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
  57. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
  59. package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
  61. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
  62. package/sdk/partner/PartnerClient.d.ts +0 -6
  63. package/sdk/partner/PartnerClient.js +0 -9
  64. package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
  65. package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
  66. package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
  67. package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
  68. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
  69. package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
  70. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  71. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  72. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
  73. package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
  74. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  75. package/sdk/partner/index.d.ts +0 -3
  76. package/sdk/partner/index.js +0 -6
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  88. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  90. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
  98. package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
  110. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
  112. package/sdk/platform/Common/CommonPlatformModel.js +11 -14
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +240 -376
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
  117. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
  118. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
  119. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +330 -502
  120. package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
  121. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
  122. package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -100
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -31
  128. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
  132. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
  134. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +562 -1289
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
  137. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
  138. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
  139. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -248
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
  141. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
  142. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
  143. package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
  144. package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
  145. package/sdk/platform/Content/ContentPlatformModel.d.ts +2391 -924
  146. package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
  147. package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
  148. package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
  149. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
  150. package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
  151. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
  152. package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
  153. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  154. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  155. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
  156. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
  157. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
  158. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
  159. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  160. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  161. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
  162. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
  163. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  164. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  165. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  166. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  167. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  168. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  169. package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
  170. package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
  171. package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
  172. package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
  173. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
  174. package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
  175. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
  176. package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
  177. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
  178. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
  179. package/sdk/platform/Order/OrderPlatformClient.d.ts +406 -403
  180. package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
  181. package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
  182. package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
  183. package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
  184. package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
  185. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  186. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  187. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
  188. package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
  189. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
  190. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +937 -2452
  191. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
  192. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -305
  193. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
  194. package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
  195. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1307 -3536
  196. package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
  197. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
  198. package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
  199. package/sdk/platform/PlatformClient.d.ts +0 -2
  200. package/sdk/platform/PlatformClient.js +0 -4
  201. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  202. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  203. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  204. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  205. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
  206. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -521
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
  213. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
  214. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
  215. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
  216. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
  217. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
  218. package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
  219. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
  220. package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
  221. package/sdk/platform/Share/SharePlatformModel.d.ts +53 -9
  222. package/sdk/platform/Share/SharePlatformModel.js +45 -5
  223. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
  224. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
  225. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
  226. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
  227. package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
  228. package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
  229. package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
  230. package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
  231. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
  232. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
  233. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
  234. package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
  235. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
  236. package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
  237. package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
  238. package/sdk/platform/User/UserPlatformModel.js +253 -210
  239. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  240. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  241. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
  242. package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
  243. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  244. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  245. package/sdk/platform/index.d.ts +0 -1
  246. package/sdk/platform/index.js +0 -2
  247. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  248. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  249. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  250. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  251. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  252. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  253. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
  254. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
  255. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
  256. package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
  257. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
  258. package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
  259. package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
  260. package/sdk/public/Content/ContentPublicClient.js +254 -280
  261. package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
  262. package/sdk/public/Content/ContentPublicModel.js +98 -44
  263. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
  264. package/sdk/public/Content/ContentPublicValidator.js +26 -19
  265. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  266. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  267. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  268. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  269. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  270. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  271. package/sdk/public/PublicClient.d.ts +2 -0
  272. package/sdk/public/PublicClient.js +4 -0
  273. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  274. package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
  275. package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
  276. package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
  277. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  278. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  279. package/sdk/public/index.d.ts +1 -0
  280. package/sdk/public/index.js +2 -0
  281. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
  282. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
  283. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
  284. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
  285. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
  286. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
  287. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
  288. package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
  289. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
  290. package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
  291. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
  292. package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
  293. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
  294. package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
  295. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
  296. package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
  297. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
  298. package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
  299. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  300. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  301. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
  302. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
  303. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  304. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,7 +1,7 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef SuccessMessageResponse
4
+ * @typedef SuccessMessage
5
5
  * @property {string} [success]
6
6
  */
7
7
 
@@ -26,7 +26,7 @@ const Joi = require("joi");
26
26
  */
27
27
 
28
28
  /**
29
- * @typedef UserAttributeDefinitionResponse
29
+ * @typedef UserAttributeDefinitionDetails
30
30
  * @property {string} [_id] - The unique identifier for the attribute definition.
31
31
  * @property {string} [name] - The attribute name.
32
32
  * @property {string} [slug] - The attribute key.
@@ -54,62 +54,120 @@ const Joi = require("joi");
54
54
  */
55
55
 
56
56
  /**
57
- * @typedef UserAttributeResponse
57
+ * @typedef UserAttribute
58
58
  * @property {string} [_id] - The unique identifier for the attribute definition.
59
59
  * @property {string} [name] - The name of user attribute definition.
60
60
  * @property {string} [user_id] - The unique identifier for the user.
61
61
  * @property {string} [application_id] - The application ID.
62
62
  * @property {string} [type] - The attribute type.
63
- * @property {boolean} [customer_overriden] - Whether the attribute is customer-editable.
63
+ * @property {boolean} [customer_overridden] - Whether the attribute is customer-editable.
64
64
  * @property {Object} [attribute]
65
65
  * @property {string} [updated_by]
66
66
  */
67
67
 
68
68
  /**
69
- * @typedef CreateUserAttributeRequest
70
- * @property {boolean} [customer_overriden]
69
+ * @typedef CreateUserAttribute
70
+ * @property {boolean} [customer_overridden]
71
71
  * @property {Object} [attribute]
72
72
  */
73
73
 
74
74
  /**
75
75
  * @typedef CreateUserAttributeDefinition
76
- * @property {string} [name] - The name of user attribute definition.
77
- * @property {string} [slug] - The unique identifier of user attribute definition.
78
- * @property {string} [description] - The description for the user attribute definition.
79
- * @property {string} [type] - The attribute type for the user attribute definition.
80
- * @property {boolean} [multi_value] - Identifier to specify if attribute will
81
- * have multiple values or not.
82
- * @property {boolean} [customer_editable] - Identifier to specify if attribute
83
- * can be edited by the customer.
84
- * @property {boolean} [encrypted] - Identifier to specify if attribute will be
85
- * stored in encrypted format.
86
- * @property {boolean} [pinned] - Identifier to specify if the definition is
87
- * pinned or not.
88
- * @property {number} [pin_order] - Pin order of the Attribute Definition.
89
- * @property {Object} [default_value] - The default value for the User Attribute
90
- * Definition. Data type of the default value depends on the type of the
91
- * attribute definition type defined.
92
- * @property {Object[]} [validations] - The custom validations that have been
93
- * set for this customer definition.
76
+ * @property {string} [name]
77
+ * @property {string} [slug]
78
+ * @property {string} [description]
79
+ * @property {string} [type]
80
+ * @property {boolean} [multi_value]
81
+ * @property {boolean} [customer_editable]
82
+ * @property {boolean} [encrypted]
83
+ * @property {boolean} [pinned]
84
+ * @property {number} [pin_order]
85
+ * @property {string} [default_value]
86
+ * @property {Object[]} [validations]
87
+ */
88
+
89
+ /**
90
+ * @typedef CreateStoreFrontUsersPayload
91
+ * @property {string} absolute_url - A valid URL linking to the file containing
92
+ * user data to be imported.
93
+ * @property {string} file_format - The format of the file containing the user's
94
+ * data. Supported formats are CSV and XLSX.
95
+ * @property {string} relative_url - A valid relative path to the file within
96
+ * the storage system. This path should not include the base URL or domain and
97
+ * must conform to the storage structure
98
+ */
99
+
100
+ /**
101
+ * @typedef BulkUserExportSchema
102
+ * @property {string} file_format - The format of the file in which you want to
103
+ * export data. Supported formats are CSV and XLSX.
104
+ */
105
+
106
+ /**
107
+ * @typedef BulkActionModel
108
+ * @property {string} _id - The Job ID associated with an Import or Export Job
109
+ * @property {string} file_name - The name of the file
110
+ * @property {string} file_format - The format of the uploaded file (e.g., CSV, XLSX).
111
+ * @property {string} action_type - The type of bulk action being performed
112
+ * (e.g., import, export).
113
+ * @property {CreatedBySchema} created_by
114
+ * @property {BulkActionCountSchema} [count]
115
+ * @property {string} [status] - The current status of the bulk action.
116
+ * @property {BulkActionLinkSchema} [links]
117
+ * @property {string} application_id - The unique identifier of the associated
118
+ * application.
119
+ * @property {string} company_id - The unique identifier of the company
120
+ * associated with the bulk action.
121
+ * @property {string} [created_at] - The timestamp when the bulk action was created.
122
+ * @property {string} [updated_at] - The timestamp when the bulk action was last updated.
123
+ */
124
+
125
+ /**
126
+ * @typedef CreatedBySchema
127
+ * @property {string} name - The name of the user who initiated the operation.
128
+ * @property {string} user_id - A unique identifier for the user who initiated
129
+ * the operation.
130
+ */
131
+
132
+ /**
133
+ * @typedef BulkActionLinkSchema
134
+ * @property {FileLinks} [file]
135
+ * @property {FileLinks} [error]
136
+ */
137
+
138
+ /**
139
+ * @typedef FileLinks
140
+ * @property {string} [absolute_url] - The full URL of the file, including the
141
+ * domain and protocol, allowing direct access to the file from any location.
142
+ * @property {string} [relative_url] - The relative path to the file within the
143
+ * storage system, excluding the base URL or domain. This path is specific to
144
+ * the storage structure.
145
+ */
146
+
147
+ /**
148
+ * @typedef BulkActionCountSchema
149
+ * @property {number} [total] - The total number of items to be processed.
150
+ * @property {number} [success] - The number of successfully processed items.
151
+ * @property {number} [error] - The number of items that failed to process.
94
152
  */
95
153
 
96
154
  /**
97
155
  * @typedef BlockUserRequestSchema
98
- * @property {boolean} status
99
- * @property {string[]} user_id
100
- * @property {string} reason
156
+ * @property {boolean} [status]
157
+ * @property {string[]} [user_id]
158
+ * @property {string} [reason]
101
159
  */
102
160
 
103
161
  /**
104
162
  * @typedef ArchiveUserRequestSchema
105
- * @property {string} user_id
163
+ * @property {string} [user_id]
106
164
  */
107
165
 
108
166
  /**
109
167
  * @typedef UnDeleteUserRequestSchema
110
- * @property {string} user_id
111
- * @property {string} reason
112
- * @property {string} reason_id
168
+ * @property {string} [user_id]
169
+ * @property {string} [reason]
170
+ * @property {string} [reason_id]
113
171
  */
114
172
 
115
173
  /**
@@ -138,13 +196,19 @@ const Joi = require("joi");
138
196
  * @property {PaginationSchema} [page]
139
197
  */
140
198
 
199
+ /**
200
+ * @typedef BulkActionPaginationSchema
201
+ * @property {BulkActionModel[]} [items] - Array of Bulk Action Documents
202
+ * @property {PaginationSchema} [page]
203
+ */
204
+
141
205
  /**
142
206
  * @typedef PaginationSchema
143
- * @property {number} [size]
144
- * @property {number} [item_total]
145
- * @property {boolean} [has_next]
146
- * @property {string} [type]
147
- * @property {number} [current]
207
+ * @property {number} [size] - The number of items per page.
208
+ * @property {number} [item_total] - The total number of items across all pages.
209
+ * @property {boolean} [has_next] - Indicates whether there are more pages to retrieve.
210
+ * @property {string} [type] - The type of pagination used (eg Number).
211
+ * @property {number} [current] - The current page number.
148
212
  */
149
213
 
150
214
  /**
@@ -189,7 +253,7 @@ const Joi = require("joi");
189
253
  * @typedef Conditions
190
254
  * @property {string} [user_attribute_definition_id]
191
255
  * @property {string} [type]
192
- * @property {Object} [value]
256
+ * @property {string} [value]
193
257
  * @property {string} [key]
194
258
  */
195
259
 
@@ -202,7 +266,6 @@ const Joi = require("joi");
202
266
  /**
203
267
  * @typedef UserGroupResponseSchema
204
268
  * @property {Conditions[]} [conditions]
205
- * @property {string[]} [blacklisted_users]
206
269
  * @property {UserResponseErrorSchema} [error]
207
270
  * @property {string} [name]
208
271
  * @property {string} [description]
@@ -228,7 +291,7 @@ const Joi = require("joi");
228
291
  * @typedef ConditionsSchema
229
292
  * @property {string} [user_attribute_definition_id]
230
293
  * @property {string} [type]
231
- * @property {Object} [value]
294
+ * @property {string} [value]
232
295
  */
233
296
 
234
297
  /**
@@ -238,7 +301,6 @@ const Joi = require("joi");
238
301
  * @property {string} name
239
302
  * @property {string} description
240
303
  * @property {string} [file_url]
241
- * @property {string[]} [blacklisted_users]
242
304
  */
243
305
 
244
306
  /**
@@ -248,7 +310,7 @@ const Joi = require("joi");
248
310
  * @property {string} [first_name]
249
311
  * @property {string} [last_name]
250
312
  * @property {string} [gender]
251
- * @property {string} username
313
+ * @property {string} [username]
252
314
  * @property {Object} [meta]
253
315
  * @property {string} [external_id]
254
316
  * @property {string} [rr_id]
@@ -261,9 +323,8 @@ const Joi = require("joi");
261
323
 
262
324
  /**
263
325
  * @typedef CreateUserSessionRequestSchema
264
- * @property {string} domain
265
- * @property {string} user_id
266
- * @property {number} [max_age]
326
+ * @property {string} [domain]
327
+ * @property {string} [user_id]
267
328
  */
268
329
 
269
330
  /**
@@ -283,8 +344,6 @@ const Joi = require("joi");
283
344
  * @property {boolean} [active]
284
345
  * @property {boolean} [forgot_password]
285
346
  * @property {Login} [login]
286
- * @property {AccountLockout} [account_lockout]
287
- * @property {PasswordSettings} [password_settings]
288
347
  * @property {boolean} [skip_captcha]
289
348
  * @property {string} [name]
290
349
  * @property {MetaSchema} [meta]
@@ -313,45 +372,10 @@ const Joi = require("joi");
313
372
  * @property {string} [background_color]
314
373
  */
315
374
 
316
- /**
317
- * @typedef PasswordConfigs
318
- * @property {number} [length]
319
- * @property {boolean} [require_special_character]
320
- * @property {boolean} [require_number]
321
- * @property {boolean} [require_capital_character]
322
- */
323
-
324
- /**
325
- * @typedef PasswordHistory
326
- * @property {boolean} [required]
327
- * @property {number} [count]
328
- */
329
-
330
- /**
331
- * @typedef PasswordExpiry
332
- * @property {boolean} [required]
333
- * @property {number} [duration]
334
- */
335
-
336
- /**
337
- * @typedef PasswordSettings
338
- * @property {PasswordConfigs} [configs]
339
- * @property {PasswordHistory} [history]
340
- * @property {PasswordExpiry} [expiry]
341
- */
342
-
343
- /**
344
- * @typedef AccountLockout
345
- * @property {boolean} [enable]
346
- * @property {number} [attempts]
347
- * @property {number} [duration]
348
- */
349
-
350
375
  /**
351
376
  * @typedef Login
352
377
  * @property {boolean} [password]
353
378
  * @property {boolean} [otp]
354
- * @property {string} [via]
355
379
  */
356
380
 
357
381
  /**
@@ -367,16 +391,10 @@ const Joi = require("joi");
367
391
  * @property {boolean} [apple]
368
392
  */
369
393
 
370
- /**
371
- * @typedef PlatformPassword
372
- * @property {boolean} [is_required]
373
- */
374
-
375
394
  /**
376
395
  * @typedef RequiredFields
377
396
  * @property {PlatformEmail} [email]
378
397
  * @property {PlatformMobile} [mobile]
379
- * @property {PlatformPassword} [password]
380
398
  */
381
399
 
382
400
  /**
@@ -395,7 +413,6 @@ const Joi = require("joi");
395
413
  * @typedef RegisterRequiredFields
396
414
  * @property {RegisterRequiredFieldsEmail} [email]
397
415
  * @property {RegisterRequiredFieldsMobile} [mobile]
398
- * @property {PlatformPassword} [password]
399
416
  */
400
417
 
401
418
  /**
@@ -420,7 +437,7 @@ const Joi = require("joi");
420
437
  /**
421
438
  * @typedef SocialTokens
422
439
  * @property {Facebook} [facebook]
423
- * @property {Accountkit} [accountkit]
440
+ * @property {Accountkit} [account_kit]
424
441
  * @property {Google} [google]
425
442
  */
426
443
 
@@ -436,6 +453,21 @@ const Joi = require("joi");
436
453
  * @property {string} [consent_text]
437
454
  */
438
455
 
456
+ /**
457
+ * @typedef GetUserTimeline
458
+ * @property {string} [delete_on] - Denotes the date on which the user will be deleted
459
+ * @property {UserTimeline[]} [timeline] - List of user timeline events
460
+ */
461
+
462
+ /**
463
+ * @typedef UserTimeline
464
+ * @property {string} [date] - Denotes the date at which this event occured
465
+ * @property {string} [title] - Title of the timeline event
466
+ * @property {string} [type] - Type of the event, indicating its status
467
+ * @property {boolean} [visible] - Indicates whether the event should be shown on the UI
468
+ * @property {string} [sub_title] - Additional information about the event
469
+ */
470
+
439
471
  /**
440
472
  * @typedef Facebook
441
473
  * @property {string} [app_id]
@@ -483,15 +515,11 @@ const Joi = require("joi");
483
515
  * @property {UserGroupUpdateData[]} [user_data] - Required property when passed
484
516
  * type json. Array of user data. Must have `action` field and one of
485
517
  * `phone_number`, `email` or `user_id` field in object
486
- * @property {string[]} [whitelisted_users] - List of user ids to be whitelisted
487
- * from user group
488
- * @property {string[]} [blacklisted_users] - List of user ids to be blacklisted
489
- * from user group
490
518
  */
491
519
 
492
520
  /**
493
521
  * @typedef UserGroupUpdateData
494
- * @property {string} [user_id] - Must be valid mongodb objectid of existing user
522
+ * @property {string} [user_id] - Must be valid ID of existing user
495
523
  * @property {string} [phone_number] - Phone number of registered user
496
524
  * @property {string} [email] - Email of registered user
497
525
  * @property {string} action
@@ -526,18 +554,10 @@ const Joi = require("joi");
526
554
  * @property {string} [country_code]
527
555
  */
528
556
 
529
- /**
530
- * @typedef UserPasswordHistory
531
- * @property {string} [salt]
532
- * @property {string} [hash]
533
- */
534
-
535
557
  /**
536
558
  * @typedef UserSchema
537
559
  * @property {string} [application_id]
538
560
  * @property {string} [user_id]
539
- * @property {string} [password_last_modified]
540
- * @property {UserPasswordHistory[]} [password_history]
541
561
  * @property {string} [first_name]
542
562
  * @property {Object} [meta]
543
563
  * @property {string} [last_name]
@@ -578,6 +598,7 @@ const Joi = require("joi");
578
598
  * @property {string} [rr_id]
579
599
  * @property {boolean} [archive]
580
600
  * @property {string} [status]
601
+ * @property {string} [deleted_on]
581
602
  */
582
603
 
583
604
  /**
@@ -598,8 +619,8 @@ const Joi = require("joi");
598
619
  */
599
620
 
600
621
  class UserPlatformModel {
601
- /** @returns {SuccessMessageResponse} */
602
- static SuccessMessageResponse() {
622
+ /** @returns {SuccessMessage} */
623
+ static SuccessMessage() {
603
624
  return Joi.object({
604
625
  success: Joi.string().allow(""),
605
626
  });
@@ -627,8 +648,8 @@ class UserPlatformModel {
627
648
  });
628
649
  }
629
650
 
630
- /** @returns {UserAttributeDefinitionResponse} */
631
- static UserAttributeDefinitionResponse() {
651
+ /** @returns {UserAttributeDefinitionDetails} */
652
+ static UserAttributeDefinitionDetails() {
632
653
  return Joi.object({
633
654
  _id: Joi.string().allow(""),
634
655
  name: Joi.string().allow(""),
@@ -660,25 +681,25 @@ class UserPlatformModel {
660
681
  });
661
682
  }
662
683
 
663
- /** @returns {UserAttributeResponse} */
664
- static UserAttributeResponse() {
684
+ /** @returns {UserAttribute} */
685
+ static UserAttribute() {
665
686
  return Joi.object({
666
687
  _id: Joi.string().allow(""),
667
688
  name: Joi.string().allow(""),
668
689
  user_id: Joi.string().allow(""),
669
690
  application_id: Joi.string().allow(""),
670
691
  type: Joi.string().allow(""),
671
- customer_overriden: Joi.boolean(),
672
- attribute: Joi.any(),
692
+ customer_overridden: Joi.boolean(),
693
+ attribute: Joi.object().pattern(/\S/, Joi.any()),
673
694
  updated_by: Joi.string().allow(""),
674
695
  });
675
696
  }
676
697
 
677
- /** @returns {CreateUserAttributeRequest} */
678
- static CreateUserAttributeRequest() {
698
+ /** @returns {CreateUserAttribute} */
699
+ static CreateUserAttribute() {
679
700
  return Joi.object({
680
- customer_overriden: Joi.boolean(),
681
- attribute: Joi.any(),
701
+ customer_overridden: Joi.boolean(),
702
+ attribute: Joi.object().pattern(/\S/, Joi.any()),
682
703
  });
683
704
  }
684
705
 
@@ -694,33 +715,100 @@ class UserPlatformModel {
694
715
  encrypted: Joi.boolean(),
695
716
  pinned: Joi.boolean(),
696
717
  pin_order: Joi.number(),
697
- default_value: Joi.any(),
718
+ default_value: Joi.string().allow(""),
698
719
  validations: Joi.array().items(Joi.any()),
699
720
  });
700
721
  }
701
722
 
723
+ /** @returns {CreateStoreFrontUsersPayload} */
724
+ static CreateStoreFrontUsersPayload() {
725
+ return Joi.object({
726
+ absolute_url: Joi.string().allow("").required(),
727
+ file_format: Joi.string().allow("").required(),
728
+ relative_url: Joi.string().allow("").required(),
729
+ });
730
+ }
731
+
732
+ /** @returns {BulkUserExportSchema} */
733
+ static BulkUserExportSchema() {
734
+ return Joi.object({
735
+ file_format: Joi.string().allow("").required(),
736
+ });
737
+ }
738
+
739
+ /** @returns {BulkActionModel} */
740
+ static BulkActionModel() {
741
+ return Joi.object({
742
+ _id: Joi.string().allow("").required(),
743
+ file_name: Joi.string().allow("").required(),
744
+ file_format: Joi.string().allow("").required(),
745
+ action_type: Joi.string().allow("").required(),
746
+ created_by: UserPlatformModel.CreatedBySchema().required(),
747
+ count: UserPlatformModel.BulkActionCountSchema(),
748
+ status: Joi.string().allow(""),
749
+ links: UserPlatformModel.BulkActionLinkSchema(),
750
+ application_id: Joi.string().allow("").required(),
751
+ company_id: Joi.string().allow("").required(),
752
+ created_at: Joi.string().allow(""),
753
+ updated_at: Joi.string().allow(""),
754
+ });
755
+ }
756
+
757
+ /** @returns {CreatedBySchema} */
758
+ static CreatedBySchema() {
759
+ return Joi.object({
760
+ name: Joi.string().allow("").required(),
761
+ user_id: Joi.string().allow("").required(),
762
+ });
763
+ }
764
+
765
+ /** @returns {BulkActionLinkSchema} */
766
+ static BulkActionLinkSchema() {
767
+ return Joi.object({
768
+ file: UserPlatformModel.FileLinks(),
769
+ error: UserPlatformModel.FileLinks(),
770
+ });
771
+ }
772
+
773
+ /** @returns {FileLinks} */
774
+ static FileLinks() {
775
+ return Joi.object({
776
+ absolute_url: Joi.string().allow(""),
777
+ relative_url: Joi.string().allow(""),
778
+ });
779
+ }
780
+
781
+ /** @returns {BulkActionCountSchema} */
782
+ static BulkActionCountSchema() {
783
+ return Joi.object({
784
+ total: Joi.number(),
785
+ success: Joi.number(),
786
+ error: Joi.number(),
787
+ });
788
+ }
789
+
702
790
  /** @returns {BlockUserRequestSchema} */
703
791
  static BlockUserRequestSchema() {
704
792
  return Joi.object({
705
- status: Joi.boolean().required(),
706
- user_id: Joi.array().items(Joi.string().allow("")).required(),
707
- reason: Joi.string().allow("").required(),
793
+ status: Joi.boolean(),
794
+ user_id: Joi.array().items(Joi.string().allow("")),
795
+ reason: Joi.string().allow(""),
708
796
  });
709
797
  }
710
798
 
711
799
  /** @returns {ArchiveUserRequestSchema} */
712
800
  static ArchiveUserRequestSchema() {
713
801
  return Joi.object({
714
- user_id: Joi.string().allow("").required(),
802
+ user_id: Joi.string().allow(""),
715
803
  });
716
804
  }
717
805
 
718
806
  /** @returns {UnDeleteUserRequestSchema} */
719
807
  static UnDeleteUserRequestSchema() {
720
808
  return Joi.object({
721
- user_id: Joi.string().allow("").required(),
722
- reason: Joi.string().allow("").required(),
723
- reason_id: Joi.string().allow("").required(),
809
+ user_id: Joi.string().allow(""),
810
+ reason: Joi.string().allow(""),
811
+ reason_id: Joi.string().allow(""),
724
812
  });
725
813
  }
726
814
 
@@ -760,6 +848,14 @@ class UserPlatformModel {
760
848
  });
761
849
  }
762
850
 
851
+ /** @returns {BulkActionPaginationSchema} */
852
+ static BulkActionPaginationSchema() {
853
+ return Joi.object({
854
+ items: Joi.array().items(UserPlatformModel.BulkActionModel()),
855
+ page: UserPlatformModel.PaginationSchema(),
856
+ });
857
+ }
858
+
763
859
  /** @returns {PaginationSchema} */
764
860
  static PaginationSchema() {
765
861
  return Joi.object({
@@ -802,7 +898,7 @@ class UserPlatformModel {
802
898
  info: Joi.string().allow(""),
803
899
  request_id: Joi.string().allow(""),
804
900
  error: Joi.string().allow(""),
805
- meta: Joi.any(),
901
+ meta: Joi.object().pattern(/\S/, Joi.any()),
806
902
  authenticated: Joi.boolean(),
807
903
  });
808
904
  }
@@ -824,7 +920,7 @@ class UserPlatformModel {
824
920
  return Joi.object({
825
921
  user_attribute_definition_id: Joi.string().allow(""),
826
922
  type: Joi.string().allow(""),
827
- value: Joi.any(),
923
+ value: Joi.string().allow(""),
828
924
  key: Joi.string().allow(""),
829
925
  });
830
926
  }
@@ -841,7 +937,6 @@ class UserPlatformModel {
841
937
  static UserGroupResponseSchema() {
842
938
  return Joi.object({
843
939
  conditions: Joi.array().items(UserPlatformModel.Conditions()),
844
- blacklisted_users: Joi.array().items(Joi.string().allow("")),
845
940
  error: UserPlatformModel.UserResponseErrorSchema(),
846
941
  name: Joi.string().allow(""),
847
942
  description: Joi.string().allow(""),
@@ -871,7 +966,7 @@ class UserPlatformModel {
871
966
  return Joi.object({
872
967
  user_attribute_definition_id: Joi.string().allow(""),
873
968
  type: Joi.string().allow(""),
874
- value: Joi.any(),
969
+ value: Joi.string().allow(""),
875
970
  });
876
971
  }
877
972
 
@@ -883,7 +978,6 @@ class UserPlatformModel {
883
978
  name: Joi.string().allow("").required(),
884
979
  description: Joi.string().allow("").required(),
885
980
  file_url: Joi.string().allow(""),
886
- blacklisted_users: Joi.array().items(Joi.string().allow("")),
887
981
  });
888
982
  }
889
983
 
@@ -895,8 +989,8 @@ class UserPlatformModel {
895
989
  first_name: Joi.string().allow(""),
896
990
  last_name: Joi.string().allow(""),
897
991
  gender: Joi.string().allow(""),
898
- username: Joi.string().allow("").required(),
899
- meta: Joi.any(),
992
+ username: Joi.string().allow(""),
993
+ meta: Joi.object().pattern(/\S/, Joi.any()),
900
994
  external_id: Joi.string().allow(""),
901
995
  rr_id: Joi.string().allow(""),
902
996
  });
@@ -912,9 +1006,8 @@ class UserPlatformModel {
912
1006
  /** @returns {CreateUserSessionRequestSchema} */
913
1007
  static CreateUserSessionRequestSchema() {
914
1008
  return Joi.object({
915
- domain: Joi.string().allow("").required(),
916
- user_id: Joi.string().allow("").required(),
917
- max_age: Joi.number(),
1009
+ domain: Joi.string().allow(""),
1010
+ user_id: Joi.string().allow(""),
918
1011
  });
919
1012
  }
920
1013
 
@@ -938,8 +1031,6 @@ class UserPlatformModel {
938
1031
  active: Joi.boolean(),
939
1032
  forgot_password: Joi.boolean(),
940
1033
  login: UserPlatformModel.Login(),
941
- account_lockout: UserPlatformModel.AccountLockout(),
942
- password_settings: UserPlatformModel.PasswordSettings(),
943
1034
  skip_captcha: Joi.boolean(),
944
1035
  name: Joi.string().allow(""),
945
1036
  meta: UserPlatformModel.MetaSchema(),
@@ -953,8 +1044,8 @@ class UserPlatformModel {
953
1044
  social_tokens: UserPlatformModel.SocialTokens(),
954
1045
  created_at: Joi.string().allow(""),
955
1046
  register: Joi.boolean(),
956
- mobile_image: Joi.string().allow("").allow(null),
957
- desktop_image: Joi.string().allow("").allow(null),
1047
+ mobile_image: Joi.string().allow(""),
1048
+ desktop_image: Joi.string().allow(""),
958
1049
  delete_account_day: Joi.number(),
959
1050
  delete_account_reasons: Joi.array().items(
960
1051
  UserPlatformModel.DeleteAccountReasons()
@@ -973,56 +1064,11 @@ class UserPlatformModel {
973
1064
  });
974
1065
  }
975
1066
 
976
- /** @returns {PasswordConfigs} */
977
- static PasswordConfigs() {
978
- return Joi.object({
979
- length: Joi.number(),
980
- require_special_character: Joi.boolean(),
981
- require_number: Joi.boolean(),
982
- require_capital_character: Joi.boolean(),
983
- });
984
- }
985
-
986
- /** @returns {PasswordHistory} */
987
- static PasswordHistory() {
988
- return Joi.object({
989
- required: Joi.boolean(),
990
- count: Joi.number(),
991
- });
992
- }
993
-
994
- /** @returns {PasswordExpiry} */
995
- static PasswordExpiry() {
996
- return Joi.object({
997
- required: Joi.boolean(),
998
- duration: Joi.number(),
999
- });
1000
- }
1001
-
1002
- /** @returns {PasswordSettings} */
1003
- static PasswordSettings() {
1004
- return Joi.object({
1005
- configs: UserPlatformModel.PasswordConfigs(),
1006
- history: UserPlatformModel.PasswordHistory(),
1007
- expiry: UserPlatformModel.PasswordExpiry(),
1008
- });
1009
- }
1010
-
1011
- /** @returns {AccountLockout} */
1012
- static AccountLockout() {
1013
- return Joi.object({
1014
- enable: Joi.boolean(),
1015
- attempts: Joi.number(),
1016
- duration: Joi.number(),
1017
- });
1018
- }
1019
-
1020
1067
  /** @returns {Login} */
1021
1068
  static Login() {
1022
1069
  return Joi.object({
1023
1070
  password: Joi.boolean(),
1024
1071
  otp: Joi.boolean(),
1025
- via: Joi.string().allow(""),
1026
1072
  });
1027
1073
  }
1028
1074
 
@@ -1043,19 +1089,11 @@ class UserPlatformModel {
1043
1089
  });
1044
1090
  }
1045
1091
 
1046
- /** @returns {PlatformPassword} */
1047
- static PlatformPassword() {
1048
- return Joi.object({
1049
- is_required: Joi.boolean(),
1050
- });
1051
- }
1052
-
1053
1092
  /** @returns {RequiredFields} */
1054
1093
  static RequiredFields() {
1055
1094
  return Joi.object({
1056
1095
  email: UserPlatformModel.PlatformEmail(),
1057
1096
  mobile: UserPlatformModel.PlatformMobile(),
1058
- password: UserPlatformModel.PlatformPassword(),
1059
1097
  });
1060
1098
  }
1061
1099
 
@@ -1080,7 +1118,6 @@ class UserPlatformModel {
1080
1118
  return Joi.object({
1081
1119
  email: UserPlatformModel.RegisterRequiredFieldsEmail(),
1082
1120
  mobile: UserPlatformModel.RegisterRequiredFieldsMobile(),
1083
- password: UserPlatformModel.PlatformPassword(),
1084
1121
  });
1085
1122
  }
1086
1123
 
@@ -1113,7 +1150,7 @@ class UserPlatformModel {
1113
1150
  static SocialTokens() {
1114
1151
  return Joi.object({
1115
1152
  facebook: UserPlatformModel.Facebook(),
1116
- accountkit: UserPlatformModel.Accountkit(),
1153
+ account_kit: UserPlatformModel.Accountkit(),
1117
1154
  google: UserPlatformModel.Google(),
1118
1155
  });
1119
1156
  }
@@ -1134,6 +1171,25 @@ class UserPlatformModel {
1134
1171
  });
1135
1172
  }
1136
1173
 
1174
+ /** @returns {GetUserTimeline} */
1175
+ static GetUserTimeline() {
1176
+ return Joi.object({
1177
+ delete_on: Joi.string().allow(""),
1178
+ timeline: Joi.array().items(UserPlatformModel.UserTimeline()),
1179
+ });
1180
+ }
1181
+
1182
+ /** @returns {UserTimeline} */
1183
+ static UserTimeline() {
1184
+ return Joi.object({
1185
+ date: Joi.string().allow(""),
1186
+ title: Joi.string().allow(""),
1187
+ type: Joi.string().allow(""),
1188
+ visible: Joi.boolean(),
1189
+ sub_title: Joi.string().allow("").allow(null),
1190
+ });
1191
+ }
1192
+
1137
1193
  /** @returns {Facebook} */
1138
1194
  static Facebook() {
1139
1195
  return Joi.object({
@@ -1186,8 +1242,6 @@ class UserPlatformModel {
1186
1242
  description: Joi.string().allow(""),
1187
1243
  file_url: Joi.string().allow(""),
1188
1244
  user_data: Joi.array().items(UserPlatformModel.UserGroupUpdateData()),
1189
- whitelisted_users: Joi.array().items(Joi.string().allow("")),
1190
- blacklisted_users: Joi.array().items(Joi.string().allow("")),
1191
1245
  });
1192
1246
  }
1193
1247
 
@@ -1209,7 +1263,7 @@ class UserPlatformModel {
1209
1263
  gender: Joi.string().allow(""),
1210
1264
  external_id: Joi.string().allow(""),
1211
1265
  rr_id: Joi.string().allow(""),
1212
- meta: Joi.any(),
1266
+ meta: Joi.object().pattern(/\S/, Joi.any()),
1213
1267
  phone_numbers: Joi.array().items(UserPlatformModel.UserPhoneNumbers()),
1214
1268
  emails: Joi.array().items(UserPlatformModel.UserEmails()),
1215
1269
  });
@@ -1236,29 +1290,17 @@ class UserPlatformModel {
1236
1290
  });
1237
1291
  }
1238
1292
 
1239
- /** @returns {UserPasswordHistory} */
1240
- static UserPasswordHistory() {
1241
- return Joi.object({
1242
- salt: Joi.string().allow(""),
1243
- hash: Joi.string().allow(""),
1244
- });
1245
- }
1246
-
1247
1293
  /** @returns {UserSchema} */
1248
1294
  static UserSchema() {
1249
1295
  return Joi.object({
1250
1296
  application_id: Joi.string().allow(""),
1251
1297
  user_id: Joi.string().allow(""),
1252
- password_last_modified: Joi.string().allow(""),
1253
- password_history: Joi.array().items(
1254
- UserPlatformModel.UserPasswordHistory()
1255
- ),
1256
1298
  first_name: Joi.string().allow(""),
1257
- meta: Joi.any(),
1299
+ meta: Joi.object().pattern(/\S/, Joi.any()),
1258
1300
  last_name: Joi.string().allow(""),
1259
1301
  phone_numbers: Joi.array().items(UserPlatformModel.PhoneNumber()),
1260
1302
  emails: Joi.array().items(UserPlatformModel.Email()),
1261
- gender: Joi.string().allow("").allow(null),
1303
+ gender: Joi.string().allow(""),
1262
1304
  dob: Joi.string().allow(""),
1263
1305
  active: Joi.boolean(),
1264
1306
  profile_pic_url: Joi.string().allow(""),
@@ -1278,11 +1320,11 @@ class UserPlatformModel {
1278
1320
  application_id: Joi.string().allow(""),
1279
1321
  user_id: Joi.string().allow(""),
1280
1322
  first_name: Joi.string().allow(""),
1281
- meta: Joi.any(),
1323
+ meta: Joi.object().pattern(/\S/, Joi.any()),
1282
1324
  last_name: Joi.string().allow(""),
1283
1325
  phone_numbers: Joi.array().items(UserPlatformModel.PhoneNumber()),
1284
1326
  emails: Joi.array().items(UserPlatformModel.Email()),
1285
- gender: Joi.string().allow("").allow(null),
1327
+ gender: Joi.string().allow(""),
1286
1328
  dob: Joi.string().allow(""),
1287
1329
  active: Joi.boolean(),
1288
1330
  profile_pic_url: Joi.string().allow(""),
@@ -1295,6 +1337,7 @@ class UserPlatformModel {
1295
1337
  rr_id: Joi.string().allow(""),
1296
1338
  archive: Joi.boolean(),
1297
1339
  status: Joi.string().allow(""),
1340
+ deleted_on: Joi.string().allow(""),
1298
1341
  });
1299
1342
  }
1300
1343