@gofynd/fdk-client-javascript 1.4.1 → 1.4.2-beta.10

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 (265) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -2
  3. package/sdk/application/ApplicationClient.js +20 -0
  4. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  5. package/sdk/application/Cart/CartApplicationClient.js +3 -5
  6. package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
  7. package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
  8. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
  9. package/sdk/application/Cart/CartApplicationValidator.js +0 -4
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
  12. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  13. package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
  14. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
  16. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  17. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  18. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  19. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  20. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
  22. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
  23. package/sdk/application/Content/ContentApplicationClient.js +0 -246
  24. package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
  25. package/sdk/application/Content/ContentApplicationModel.js +565 -817
  26. package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
  27. package/sdk/application/Content/ContentApplicationValidator.js +0 -41
  28. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  29. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  30. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  31. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  32. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
  33. package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
  34. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
  35. package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
  36. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
  37. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
  38. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  39. package/sdk/application/Order/OrderApplicationClient.js +8 -32
  40. package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
  41. package/sdk/application/Order/OrderApplicationModel.js +816 -824
  42. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
  43. package/sdk/application/Order/OrderApplicationValidator.js +0 -8
  44. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
  45. package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
  46. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
  47. package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
  48. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
  49. package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
  50. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
  51. package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
  52. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  53. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  54. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  55. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  56. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  57. package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
  58. package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
  59. package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
  60. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
  62. package/sdk/application/User/UserApplicationClient.d.ts +0 -33
  63. package/sdk/application/User/UserApplicationClient.js +0 -239
  64. package/sdk/application/User/UserApplicationModel.d.ts +753 -768
  65. package/sdk/application/User/UserApplicationModel.js +731 -755
  66. package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
  67. package/sdk/application/User/UserApplicationValidator.js +0 -36
  68. package/sdk/common/Clickstream.d.ts +1 -0
  69. package/sdk/common/Clickstream.js +254 -0
  70. package/sdk/common/Utility.js +1 -4
  71. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
  72. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
  73. package/sdk/partner/PartnerClient.d.ts +0 -6
  74. package/sdk/partner/PartnerClient.js +0 -9
  75. package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
  76. package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
  77. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
  78. package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
  79. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
  80. package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
  81. package/sdk/partner/index.d.ts +0 -3
  82. package/sdk/partner/index.js +0 -6
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
  87. package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
  89. package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
  97. package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
  108. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  109. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
  112. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
  114. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
  115. package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  124. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
  125. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
  126. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  127. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  128. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
  129. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
  130. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
  131. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
  133. package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
  145. package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
  147. package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
  150. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  151. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
  157. package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
  163. package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
  165. package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
  167. package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
  168. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  169. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  170. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
  172. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
  174. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  175. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  176. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
  177. package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
  178. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  179. package/sdk/platform/PlatformApplicationClient.js +4 -4
  180. package/sdk/platform/PlatformClient.d.ts +2 -4
  181. package/sdk/platform/PlatformClient.js +4 -8
  182. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  183. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +990 -1589
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  195. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  196. package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
  197. package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
  198. package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
  199. package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
  200. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
  201. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
  206. package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
  207. package/sdk/platform/User/UserPlatformModel.js +428 -679
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  214. package/sdk/platform/index.d.ts +1 -1
  215. package/sdk/platform/index.js +2 -2
  216. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  217. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  218. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  219. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  220. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  221. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  222. package/sdk/public/PublicClient.d.ts +0 -4
  223. package/sdk/public/PublicClient.js +0 -8
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
  225. package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
  227. package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
  230. package/sdk/public/index.d.ts +0 -2
  231. package/sdk/public/index.js +0 -4
  232. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
  233. package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
  234. package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
  235. package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
  236. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
  237. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
  238. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
  239. package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
  240. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
  241. package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
  242. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
  243. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
  244. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
  245. package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
  246. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
  247. package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
  248. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
  249. package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
  250. package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
  251. package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
  252. package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
  253. package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
  254. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
  255. package/sdk/public/Billing/BillingPublicClient.js +0 -116
  256. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
  257. package/sdk/public/Billing/BillingPublicModel.js +0 -96
  258. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
  259. package/sdk/public/Billing/BillingPublicValidator.js +0 -19
  260. package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
  261. package/sdk/public/Content/ContentPublicClient.js +0 -114
  262. package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
  263. package/sdk/public/Content/ContentPublicModel.js +0 -60
  264. package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
  265. package/sdk/public/Content/ContentPublicValidator.js +0 -19
@@ -11,13 +11,9 @@ export = UserPlatformApplicationValidator;
11
11
  * @typedef CreateUserParam
12
12
  * @property {UserPlatformModel.CreateUserRequestSchema} body
13
13
  */
14
- /**
15
- * @typedef CreateUserAttributeDefinitionParam
16
- * @property {UserPlatformModel.CreateUserAttributeDefinition} body
17
- */
18
14
  /**
19
15
  * @typedef CreateUserGroupParam
20
- * @property {UserPlatformModel.CreateUserGroup} body
16
+ * @property {UserPlatformModel.CreateUserGroupSchema} body
21
17
  */
22
18
  /**
23
19
  * @typedef CreateUserSessionParam
@@ -34,67 +30,19 @@ export = UserPlatformApplicationValidator;
34
30
  * @property {string} sessionId - Session ID of a customer.
35
31
  * @property {string} reason - Reason for deleting session.
36
32
  */
37
- /**
38
- * @typedef DeleteUserAttributeParam
39
- * @property {string} attributeDefId - The unique identifier of the attribute definition.
40
- * @property {string} userId - The unique identifier of the user.
41
- */
42
- /**
43
- * @typedef DeleteUserAttributeDefinitionByIdParam
44
- * @property {string} attributeDefId - The unique identifier of the attribute
45
- * definition to delete.
46
- */
47
33
  /**
48
34
  * @typedef GetActiveSessionsParam
49
35
  * @property {string} id - ID of a customer.
50
36
  */
51
37
  /**
52
38
  * @typedef GetCustomersParam
53
- * @property {string} [q] - The search query. Mobile number or email ID of a customer.
39
+ * @property {Object} [q] - The search query. Mobile number or email ID of a customer.
54
40
  * @property {number} [pageSize] - The number of items to retrieve in each page.
55
41
  * Default value is 10.
56
42
  * @property {number} [pageNo] - The page number to navigate through the given
57
43
  * set of results. Default value is 1.
58
44
  */
59
45
  /** @typedef GetPlatformConfigParam */
60
- /**
61
- * @typedef GetUserAttributeParam
62
- * @property {string} attributeDefId - The unique identifier of the attribute definition.
63
- * @property {string} userId - The unique identifier of the user.
64
- */
65
- /**
66
- * @typedef GetUserAttributeByIdParam
67
- * @property {string} attributeId - The unique identifier of the attribute to get.
68
- */
69
- /**
70
- * @typedef GetUserAttributeDefinitionByIdParam
71
- * @property {string} attributeDefId - The unique identifier of the attribute
72
- * definition to retrieve.
73
- */
74
- /**
75
- * @typedef GetUserAttributeDefinitionsParam
76
- * @property {string} [excludingIds] - Exclude attribute definitions by Ids
77
- * @property {string} [slug] - Filter by attribute slug.
78
- * @property {string} [type] - Filter by attribute type.
79
- * @property {boolean} [customerEditable] - Filter by customer_editable status.
80
- * @property {boolean} [encrypted] - Filter by encrypted status.
81
- * @property {boolean} [pinned] - Filter by pinned status.
82
- * @property {number} [pinOrder] - Filter by pin order.
83
- * @property {boolean} [isLocked] - Filter by locked status.
84
- * @property {string} [name] - Filter by attribute name using a case-insensitive regex.
85
- * @property {number} [pageSize] - The number of items to retrieve in each page.
86
- * Default value is 10.
87
- * @property {number} [pageNo] - The page number to navigate through the given
88
- * set of results. Default value is 1.
89
- */
90
- /**
91
- * @typedef GetUserAttributesForUserParam
92
- * @property {string} userId - The unique identifier of the user to update.
93
- * @property {number} [pageSize] - The number of items to retrieve in each page.
94
- * Default value is 10.
95
- * @property {number} [pageNo] - The page number to navigate through the given
96
- * set of results. Default value is 1.
97
- */
98
46
  /**
99
47
  * @typedef GetUserGroupByIdParam
100
48
  * @property {string} groupId - Numeric ID allotted to a User Group
@@ -103,9 +51,8 @@ export = UserPlatformApplicationValidator;
103
51
  * @typedef GetUserGroupsParam
104
52
  * @property {string} [pageNo] - Page number for pagination result
105
53
  * @property {string} [pageSize] - Page size for pagination result
106
- * @property {string} [name] - To search for User Groups which contains given
54
+ * @property {string} [name] - To seartch for User Groups which contains given
107
55
  * string in their name
108
- * @property {string} [type] - To search for User Groups with given type
109
56
  * @property {string} [status] - To get User Groups with given status
110
57
  * @property {number} [groupUid] - To get User Groups with given uid
111
58
  */
@@ -128,19 +75,6 @@ export = UserPlatformApplicationValidator;
128
75
  * @property {string} userId - User ID
129
76
  * @property {UserPlatformModel.UpdateUserRequestSchema} body
130
77
  */
131
- /**
132
- * @typedef UpdateUserAttributeParam
133
- * @property {string} attributeDefId - The unique identifier of the attribute
134
- * definition to update.
135
- * @property {string} userId - The unique identifier of the user to update.
136
- * @property {UserPlatformModel.CreateUserAttributeRequest} body
137
- */
138
- /**
139
- * @typedef UpdateUserAttributeDefinitionParam
140
- * @property {string} attributeDefId - The unique identifier of the attribute
141
- * definition to update.
142
- * @property {UserPlatformModel.CreateUserAttributeDefinition} body
143
- */
144
78
  /**
145
79
  * @typedef UpdateUserGroupParam
146
80
  * @property {string} groupId - Numeric ID allotted to a User Group
@@ -158,8 +92,6 @@ declare class UserPlatformApplicationValidator {
158
92
  static blockOrUnblockUsers(): BlockOrUnblockUsersParam;
159
93
  /** @returns {CreateUserParam} */
160
94
  static createUser(): CreateUserParam;
161
- /** @returns {CreateUserAttributeDefinitionParam} */
162
- static createUserAttributeDefinition(): CreateUserAttributeDefinitionParam;
163
95
  /** @returns {CreateUserGroupParam} */
164
96
  static createUserGroup(): CreateUserGroupParam;
165
97
  /** @returns {CreateUserSessionParam} */
@@ -168,26 +100,12 @@ declare class UserPlatformApplicationValidator {
168
100
  static deleteActiveSessions(): DeleteActiveSessionsParam;
169
101
  /** @returns {DeleteSessionParam} */
170
102
  static deleteSession(): DeleteSessionParam;
171
- /** @returns {DeleteUserAttributeParam} */
172
- static deleteUserAttribute(): DeleteUserAttributeParam;
173
- /** @returns {DeleteUserAttributeDefinitionByIdParam} */
174
- static deleteUserAttributeDefinitionById(): DeleteUserAttributeDefinitionByIdParam;
175
103
  /** @returns {GetActiveSessionsParam} */
176
104
  static getActiveSessions(): GetActiveSessionsParam;
177
105
  /** @returns {GetCustomersParam} */
178
106
  static getCustomers(): GetCustomersParam;
179
107
  /** @returns {GetPlatformConfigParam} */
180
108
  static getPlatformConfig(): any;
181
- /** @returns {GetUserAttributeParam} */
182
- static getUserAttribute(): GetUserAttributeParam;
183
- /** @returns {GetUserAttributeByIdParam} */
184
- static getUserAttributeById(): GetUserAttributeByIdParam;
185
- /** @returns {GetUserAttributeDefinitionByIdParam} */
186
- static getUserAttributeDefinitionById(): GetUserAttributeDefinitionByIdParam;
187
- /** @returns {GetUserAttributeDefinitionsParam} */
188
- static getUserAttributeDefinitions(): GetUserAttributeDefinitionsParam;
189
- /** @returns {GetUserAttributesForUserParam} */
190
- static getUserAttributesForUser(): GetUserAttributesForUserParam;
191
109
  /** @returns {GetUserGroupByIdParam} */
192
110
  static getUserGroupById(): GetUserGroupByIdParam;
193
111
  /** @returns {GetUserGroupsParam} */
@@ -200,17 +118,13 @@ declare class UserPlatformApplicationValidator {
200
118
  static updatePlatformConfig(): UpdatePlatformConfigParam;
201
119
  /** @returns {UpdateUserParam} */
202
120
  static updateUser(): UpdateUserParam;
203
- /** @returns {UpdateUserAttributeParam} */
204
- static updateUserAttribute(): UpdateUserAttributeParam;
205
- /** @returns {UpdateUserAttributeDefinitionParam} */
206
- static updateUserAttributeDefinition(): UpdateUserAttributeDefinitionParam;
207
121
  /** @returns {UpdateUserGroupParam} */
208
122
  static updateUserGroup(): UpdateUserGroupParam;
209
123
  /** @returns {UpdateUserGroupPartiallyParam} */
210
124
  static updateUserGroupPartially(): UpdateUserGroupPartiallyParam;
211
125
  }
212
126
  declare namespace UserPlatformApplicationValidator {
213
- export { ArchiveUserParam, BlockOrUnblockUsersParam, CreateUserParam, CreateUserAttributeDefinitionParam, CreateUserGroupParam, CreateUserSessionParam, DeleteActiveSessionsParam, DeleteSessionParam, DeleteUserAttributeParam, DeleteUserAttributeDefinitionByIdParam, GetActiveSessionsParam, GetCustomersParam, GetPlatformConfigParam, GetUserAttributeParam, GetUserAttributeByIdParam, GetUserAttributeDefinitionByIdParam, GetUserAttributeDefinitionsParam, GetUserAttributesForUserParam, GetUserGroupByIdParam, GetUserGroupsParam, SearchUsersParam, UnDeleteUserParam, UpdatePlatformConfigParam, UpdateUserParam, UpdateUserAttributeParam, UpdateUserAttributeDefinitionParam, UpdateUserGroupParam, UpdateUserGroupPartiallyParam };
127
+ export { ArchiveUserParam, BlockOrUnblockUsersParam, CreateUserParam, CreateUserGroupParam, CreateUserSessionParam, DeleteActiveSessionsParam, DeleteSessionParam, GetActiveSessionsParam, GetCustomersParam, GetPlatformConfigParam, GetUserGroupByIdParam, GetUserGroupsParam, SearchUsersParam, UnDeleteUserParam, UpdatePlatformConfigParam, UpdateUserParam, UpdateUserGroupParam, UpdateUserGroupPartiallyParam };
214
128
  }
215
129
  type ArchiveUserParam = {
216
130
  body: UserPlatformModel.ArchiveUserRequestSchema;
@@ -221,11 +135,8 @@ type BlockOrUnblockUsersParam = {
221
135
  type CreateUserParam = {
222
136
  body: UserPlatformModel.CreateUserRequestSchema;
223
137
  };
224
- type CreateUserAttributeDefinitionParam = {
225
- body: UserPlatformModel.CreateUserAttributeDefinition;
226
- };
227
138
  type CreateUserGroupParam = {
228
- body: UserPlatformModel.CreateUserGroup;
139
+ body: UserPlatformModel.CreateUserGroupSchema;
229
140
  };
230
141
  type CreateUserSessionParam = {
231
142
  body: UserPlatformModel.CreateUserSessionRequestSchema;
@@ -254,23 +165,6 @@ type DeleteSessionParam = {
254
165
  */
255
166
  reason: string;
256
167
  };
257
- type DeleteUserAttributeParam = {
258
- /**
259
- * - The unique identifier of the attribute definition.
260
- */
261
- attributeDefId: string;
262
- /**
263
- * - The unique identifier of the user.
264
- */
265
- userId: string;
266
- };
267
- type DeleteUserAttributeDefinitionByIdParam = {
268
- /**
269
- * - The unique identifier of the attribute
270
- * definition to delete.
271
- */
272
- attributeDefId: string;
273
- };
274
168
  type GetActiveSessionsParam = {
275
169
  /**
276
170
  * - ID of a customer.
@@ -281,94 +175,7 @@ type GetCustomersParam = {
281
175
  /**
282
176
  * - The search query. Mobile number or email ID of a customer.
283
177
  */
284
- q?: string;
285
- /**
286
- * - The number of items to retrieve in each page.
287
- * Default value is 10.
288
- */
289
- pageSize?: number;
290
- /**
291
- * - The page number to navigate through the given
292
- * set of results. Default value is 1.
293
- */
294
- pageNo?: number;
295
- };
296
- type GetUserAttributeParam = {
297
- /**
298
- * - The unique identifier of the attribute definition.
299
- */
300
- attributeDefId: string;
301
- /**
302
- * - The unique identifier of the user.
303
- */
304
- userId: string;
305
- };
306
- type GetUserAttributeByIdParam = {
307
- /**
308
- * - The unique identifier of the attribute to get.
309
- */
310
- attributeId: string;
311
- };
312
- type GetUserAttributeDefinitionByIdParam = {
313
- /**
314
- * - The unique identifier of the attribute
315
- * definition to retrieve.
316
- */
317
- attributeDefId: string;
318
- };
319
- type GetUserAttributeDefinitionsParam = {
320
- /**
321
- * - Exclude attribute definitions by Ids
322
- */
323
- excludingIds?: string;
324
- /**
325
- * - Filter by attribute slug.
326
- */
327
- slug?: string;
328
- /**
329
- * - Filter by attribute type.
330
- */
331
- type?: string;
332
- /**
333
- * - Filter by customer_editable status.
334
- */
335
- customerEditable?: boolean;
336
- /**
337
- * - Filter by encrypted status.
338
- */
339
- encrypted?: boolean;
340
- /**
341
- * - Filter by pinned status.
342
- */
343
- pinned?: boolean;
344
- /**
345
- * - Filter by pin order.
346
- */
347
- pinOrder?: number;
348
- /**
349
- * - Filter by locked status.
350
- */
351
- isLocked?: boolean;
352
- /**
353
- * - Filter by attribute name using a case-insensitive regex.
354
- */
355
- name?: string;
356
- /**
357
- * - The number of items to retrieve in each page.
358
- * Default value is 10.
359
- */
360
- pageSize?: number;
361
- /**
362
- * - The page number to navigate through the given
363
- * set of results. Default value is 1.
364
- */
365
- pageNo?: number;
366
- };
367
- type GetUserAttributesForUserParam = {
368
- /**
369
- * - The unique identifier of the user to update.
370
- */
371
- userId: string;
178
+ q?: any;
372
179
  /**
373
180
  * - The number of items to retrieve in each page.
374
181
  * Default value is 10.
@@ -396,14 +203,10 @@ type GetUserGroupsParam = {
396
203
  */
397
204
  pageSize?: string;
398
205
  /**
399
- * - To search for User Groups which contains given
206
+ * - To seartch for User Groups which contains given
400
207
  * string in their name
401
208
  */
402
209
  name?: string;
403
- /**
404
- * - To search for User Groups with given type
405
- */
406
- type?: string;
407
210
  /**
408
211
  * - To get User Groups with given status
409
212
  */
@@ -437,26 +240,6 @@ type UpdateUserParam = {
437
240
  userId: string;
438
241
  body: UserPlatformModel.UpdateUserRequestSchema;
439
242
  };
440
- type UpdateUserAttributeParam = {
441
- /**
442
- * - The unique identifier of the attribute
443
- * definition to update.
444
- */
445
- attributeDefId: string;
446
- /**
447
- * - The unique identifier of the user to update.
448
- */
449
- userId: string;
450
- body: UserPlatformModel.CreateUserAttributeRequest;
451
- };
452
- type UpdateUserAttributeDefinitionParam = {
453
- /**
454
- * - The unique identifier of the attribute
455
- * definition to update.
456
- */
457
- attributeDefId: string;
458
- body: UserPlatformModel.CreateUserAttributeDefinition;
459
- };
460
243
  type UpdateUserGroupParam = {
461
244
  /**
462
245
  * - Numeric ID allotted to a User Group
@@ -17,14 +17,9 @@ const UserPlatformModel = require("./UserPlatformModel");
17
17
  * @property {UserPlatformModel.CreateUserRequestSchema} body
18
18
  */
19
19
 
20
- /**
21
- * @typedef CreateUserAttributeDefinitionParam
22
- * @property {UserPlatformModel.CreateUserAttributeDefinition} body
23
- */
24
-
25
20
  /**
26
21
  * @typedef CreateUserGroupParam
27
- * @property {UserPlatformModel.CreateUserGroup} body
22
+ * @property {UserPlatformModel.CreateUserGroupSchema} body
28
23
  */
29
24
 
30
25
  /**
@@ -45,18 +40,6 @@ const UserPlatformModel = require("./UserPlatformModel");
45
40
  * @property {string} reason - Reason for deleting session.
46
41
  */
47
42
 
48
- /**
49
- * @typedef DeleteUserAttributeParam
50
- * @property {string} attributeDefId - The unique identifier of the attribute definition.
51
- * @property {string} userId - The unique identifier of the user.
52
- */
53
-
54
- /**
55
- * @typedef DeleteUserAttributeDefinitionByIdParam
56
- * @property {string} attributeDefId - The unique identifier of the attribute
57
- * definition to delete.
58
- */
59
-
60
43
  /**
61
44
  * @typedef GetActiveSessionsParam
62
45
  * @property {string} id - ID of a customer.
@@ -64,7 +47,7 @@ const UserPlatformModel = require("./UserPlatformModel");
64
47
 
65
48
  /**
66
49
  * @typedef GetCustomersParam
67
- * @property {string} [q] - The search query. Mobile number or email ID of a customer.
50
+ * @property {Object} [q] - The search query. Mobile number or email ID of a customer.
68
51
  * @property {number} [pageSize] - The number of items to retrieve in each page.
69
52
  * Default value is 10.
70
53
  * @property {number} [pageNo] - The page number to navigate through the given
@@ -73,49 +56,6 @@ const UserPlatformModel = require("./UserPlatformModel");
73
56
 
74
57
  /** @typedef GetPlatformConfigParam */
75
58
 
76
- /**
77
- * @typedef GetUserAttributeParam
78
- * @property {string} attributeDefId - The unique identifier of the attribute definition.
79
- * @property {string} userId - The unique identifier of the user.
80
- */
81
-
82
- /**
83
- * @typedef GetUserAttributeByIdParam
84
- * @property {string} attributeId - The unique identifier of the attribute to get.
85
- */
86
-
87
- /**
88
- * @typedef GetUserAttributeDefinitionByIdParam
89
- * @property {string} attributeDefId - The unique identifier of the attribute
90
- * definition to retrieve.
91
- */
92
-
93
- /**
94
- * @typedef GetUserAttributeDefinitionsParam
95
- * @property {string} [excludingIds] - Exclude attribute definitions by Ids
96
- * @property {string} [slug] - Filter by attribute slug.
97
- * @property {string} [type] - Filter by attribute type.
98
- * @property {boolean} [customerEditable] - Filter by customer_editable status.
99
- * @property {boolean} [encrypted] - Filter by encrypted status.
100
- * @property {boolean} [pinned] - Filter by pinned status.
101
- * @property {number} [pinOrder] - Filter by pin order.
102
- * @property {boolean} [isLocked] - Filter by locked status.
103
- * @property {string} [name] - Filter by attribute name using a case-insensitive regex.
104
- * @property {number} [pageSize] - The number of items to retrieve in each page.
105
- * Default value is 10.
106
- * @property {number} [pageNo] - The page number to navigate through the given
107
- * set of results. Default value is 1.
108
- */
109
-
110
- /**
111
- * @typedef GetUserAttributesForUserParam
112
- * @property {string} userId - The unique identifier of the user to update.
113
- * @property {number} [pageSize] - The number of items to retrieve in each page.
114
- * Default value is 10.
115
- * @property {number} [pageNo] - The page number to navigate through the given
116
- * set of results. Default value is 1.
117
- */
118
-
119
59
  /**
120
60
  * @typedef GetUserGroupByIdParam
121
61
  * @property {string} groupId - Numeric ID allotted to a User Group
@@ -125,9 +65,8 @@ const UserPlatformModel = require("./UserPlatformModel");
125
65
  * @typedef GetUserGroupsParam
126
66
  * @property {string} [pageNo] - Page number for pagination result
127
67
  * @property {string} [pageSize] - Page size for pagination result
128
- * @property {string} [name] - To search for User Groups which contains given
68
+ * @property {string} [name] - To seartch for User Groups which contains given
129
69
  * string in their name
130
- * @property {string} [type] - To search for User Groups with given type
131
70
  * @property {string} [status] - To get User Groups with given status
132
71
  * @property {number} [groupUid] - To get User Groups with given uid
133
72
  */
@@ -155,21 +94,6 @@ const UserPlatformModel = require("./UserPlatformModel");
155
94
  * @property {UserPlatformModel.UpdateUserRequestSchema} body
156
95
  */
157
96
 
158
- /**
159
- * @typedef UpdateUserAttributeParam
160
- * @property {string} attributeDefId - The unique identifier of the attribute
161
- * definition to update.
162
- * @property {string} userId - The unique identifier of the user to update.
163
- * @property {UserPlatformModel.CreateUserAttributeRequest} body
164
- */
165
-
166
- /**
167
- * @typedef UpdateUserAttributeDefinitionParam
168
- * @property {string} attributeDefId - The unique identifier of the attribute
169
- * definition to update.
170
- * @property {UserPlatformModel.CreateUserAttributeDefinition} body
171
- */
172
-
173
97
  /**
174
98
  * @typedef UpdateUserGroupParam
175
99
  * @property {string} groupId - Numeric ID allotted to a User Group
@@ -204,17 +128,10 @@ class UserPlatformApplicationValidator {
204
128
  }).required();
205
129
  }
206
130
 
207
- /** @returns {CreateUserAttributeDefinitionParam} */
208
- static createUserAttributeDefinition() {
209
- return Joi.object({
210
- body: UserPlatformModel.CreateUserAttributeDefinition().required(),
211
- }).required();
212
- }
213
-
214
131
  /** @returns {CreateUserGroupParam} */
215
132
  static createUserGroup() {
216
133
  return Joi.object({
217
- body: UserPlatformModel.CreateUserGroup().required(),
134
+ body: UserPlatformModel.CreateUserGroupSchema().required(),
218
135
  }).required();
219
136
  }
220
137
 
@@ -242,21 +159,6 @@ class UserPlatformApplicationValidator {
242
159
  }).required();
243
160
  }
244
161
 
245
- /** @returns {DeleteUserAttributeParam} */
246
- static deleteUserAttribute() {
247
- return Joi.object({
248
- attributeDefId: Joi.string().allow("").required(),
249
- userId: Joi.string().allow("").required(),
250
- }).required();
251
- }
252
-
253
- /** @returns {DeleteUserAttributeDefinitionByIdParam} */
254
- static deleteUserAttributeDefinitionById() {
255
- return Joi.object({
256
- attributeDefId: Joi.string().allow("").required(),
257
- }).required();
258
- }
259
-
260
162
  /** @returns {GetActiveSessionsParam} */
261
163
  static getActiveSessions() {
262
164
  return Joi.object({
@@ -267,7 +169,7 @@ class UserPlatformApplicationValidator {
267
169
  /** @returns {GetCustomersParam} */
268
170
  static getCustomers() {
269
171
  return Joi.object({
270
- q: Joi.string().allow(""),
172
+ q: Joi.any(),
271
173
  pageSize: Joi.number(),
272
174
  pageNo: Joi.number(),
273
175
  }).required();
@@ -278,56 +180,6 @@ class UserPlatformApplicationValidator {
278
180
  return Joi.object({}).required();
279
181
  }
280
182
 
281
- /** @returns {GetUserAttributeParam} */
282
- static getUserAttribute() {
283
- return Joi.object({
284
- attributeDefId: Joi.string().allow("").required(),
285
- userId: Joi.string().allow("").required(),
286
- }).required();
287
- }
288
-
289
- /** @returns {GetUserAttributeByIdParam} */
290
- static getUserAttributeById() {
291
- return Joi.object({
292
- attributeId: Joi.string().allow("").required(),
293
- }).required();
294
- }
295
-
296
- /** @returns {GetUserAttributeDefinitionByIdParam} */
297
- static getUserAttributeDefinitionById() {
298
- return Joi.object({
299
- attributeDefId: Joi.string().allow("").required(),
300
- }).required();
301
- }
302
-
303
- /** @returns {GetUserAttributeDefinitionsParam} */
304
- static getUserAttributeDefinitions() {
305
- return Joi.object({
306
- excludingIds: Joi.string().allow(""),
307
- slug: Joi.string().allow(""),
308
- type: Joi.string().allow(""),
309
- customerEditable: Joi.boolean(),
310
- encrypted: Joi.boolean(),
311
- pinned: Joi.boolean(),
312
- pinOrder: Joi.number(),
313
- isLocked: Joi.boolean(),
314
- name: Joi.string().allow(""),
315
-
316
- pageSize: Joi.number(),
317
- pageNo: Joi.number(),
318
- }).required();
319
- }
320
-
321
- /** @returns {GetUserAttributesForUserParam} */
322
- static getUserAttributesForUser() {
323
- return Joi.object({
324
- userId: Joi.string().allow("").required(),
325
-
326
- pageSize: Joi.number(),
327
- pageNo: Joi.number(),
328
- }).required();
329
- }
330
-
331
183
  /** @returns {GetUserGroupByIdParam} */
332
184
  static getUserGroupById() {
333
185
  return Joi.object({
@@ -341,7 +193,6 @@ class UserPlatformApplicationValidator {
341
193
  pageNo: Joi.string().allow(""),
342
194
  pageSize: Joi.string().allow(""),
343
195
  name: Joi.string().allow(""),
344
- type: Joi.string().allow(""),
345
196
  status: Joi.string().allow(""),
346
197
  groupUid: Joi.number(),
347
198
  }).required();
@@ -377,25 +228,6 @@ class UserPlatformApplicationValidator {
377
228
  }).required();
378
229
  }
379
230
 
380
- /** @returns {UpdateUserAttributeParam} */
381
- static updateUserAttribute() {
382
- return Joi.object({
383
- attributeDefId: Joi.string().allow("").required(),
384
- userId: Joi.string().allow("").required(),
385
-
386
- body: UserPlatformModel.CreateUserAttributeRequest().required(),
387
- }).required();
388
- }
389
-
390
- /** @returns {UpdateUserAttributeDefinitionParam} */
391
- static updateUserAttributeDefinition() {
392
- return Joi.object({
393
- attributeDefId: Joi.string().allow("").required(),
394
-
395
- body: UserPlatformModel.CreateUserAttributeDefinition().required(),
396
- }).required();
397
- }
398
-
399
231
  /** @returns {UpdateUserGroupParam} */
400
232
  static updateUserGroup() {
401
233
  return Joi.object({