@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.0-beta.1

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 (231) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  4. package/sdk/application/Cart/CartApplicationClient.js +5 -3
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
  6. package/sdk/application/Cart/CartApplicationModel.js +74 -0
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
  8. package/sdk/application/Cart/CartApplicationValidator.js +4 -0
  9. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
  13. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
  14. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
  15. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
  16. package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
  17. package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
  18. package/sdk/application/Content/ContentApplicationClient.js +246 -0
  19. package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
  20. package/sdk/application/Content/ContentApplicationModel.js +252 -0
  21. package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
  22. package/sdk/application/Content/ContentApplicationValidator.js +41 -0
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
  27. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
  28. package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  30. package/sdk/application/Order/OrderApplicationClient.js +32 -8
  31. package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
  32. package/sdk/application/Order/OrderApplicationModel.js +6 -0
  33. package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
  34. package/sdk/application/Order/OrderApplicationValidator.js +8 -0
  35. package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
  36. package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
  37. package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
  38. package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
  39. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
  40. package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
  41. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
  42. package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
  43. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  44. package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
  45. package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
  46. package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
  47. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
  48. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
  49. package/sdk/application/User/UserApplicationClient.d.ts +33 -0
  50. package/sdk/application/User/UserApplicationClient.js +239 -0
  51. package/sdk/application/User/UserApplicationModel.d.ts +28 -13
  52. package/sdk/application/User/UserApplicationModel.js +36 -12
  53. package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
  54. package/sdk/application/User/UserApplicationValidator.js +36 -0
  55. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
  56. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
  57. package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
  58. package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
  59. package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
  60. package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
  61. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
  62. package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
  63. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
  64. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
  65. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
  66. package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
  67. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
  68. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
  69. package/sdk/partner/PartnerClient.d.ts +6 -0
  70. package/sdk/partner/PartnerClient.js +9 -0
  71. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
  73. package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
  74. package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
  75. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
  76. package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
  77. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
  78. package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
  79. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
  80. package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
  81. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
  87. package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
  89. package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
  97. package/sdk/platform/Cart/CartPlatformModel.js +71 -4
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
  112. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
  120. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  122. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
  123. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
  124. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  125. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  126. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
  127. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
  128. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
  129. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
  130. package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
  131. package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
  133. package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
  134. package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
  135. package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
  136. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  137. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  138. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
  139. package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
  142. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
  143. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
  144. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
  145. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
  146. package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
  147. package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
  148. package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
  149. package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
  150. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
  151. package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
  157. package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
  163. package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
  165. package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
  167. package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
  168. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
  169. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
  170. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
  171. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
  172. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  173. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  174. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
  175. package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
  176. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/PlatformApplicationClient.js +4 -4
  178. package/sdk/platform/PlatformClient.d.ts +4 -2
  179. package/sdk/platform/PlatformClient.js +8 -4
  180. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
  181. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
  190. package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
  191. package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
  192. package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
  193. package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
  194. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
  195. package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
  196. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
  197. package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
  198. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
  199. package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
  200. package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
  201. package/sdk/platform/User/UserPlatformModel.js +256 -5
  202. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
  203. package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
  204. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
  205. package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
  206. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
  207. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  208. package/sdk/platform/index.d.ts +1 -1
  209. package/sdk/platform/index.js +2 -2
  210. package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
  211. package/sdk/public/Billing/BillingPublicClient.js +116 -0
  212. package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
  213. package/sdk/public/Billing/BillingPublicModel.js +96 -0
  214. package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
  215. package/sdk/public/Billing/BillingPublicValidator.js +19 -0
  216. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  217. package/sdk/public/Content/ContentPublicClient.js +114 -0
  218. package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
  219. package/sdk/public/Content/ContentPublicModel.js +60 -0
  220. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
  221. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  222. package/sdk/public/PublicClient.d.ts +4 -0
  223. package/sdk/public/PublicClient.js +8 -0
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
  225. package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
  227. package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
  230. package/sdk/public/index.d.ts +2 -0
  231. package/sdk/public/index.js +4 -0
@@ -11,9 +11,13 @@ export = UserPlatformApplicationValidator;
11
11
  * @typedef CreateUserParam
12
12
  * @property {UserPlatformModel.CreateUserRequestSchema} body
13
13
  */
14
+ /**
15
+ * @typedef CreateUserAttributeDefinitionParam
16
+ * @property {UserPlatformModel.CreateUserAttributeDefinition} body
17
+ */
14
18
  /**
15
19
  * @typedef CreateUserGroupParam
16
- * @property {UserPlatformModel.CreateUserGroupSchema} body
20
+ * @property {UserPlatformModel.CreateUserGroup} body
17
21
  */
18
22
  /**
19
23
  * @typedef CreateUserSessionParam
@@ -30,19 +34,67 @@ export = UserPlatformApplicationValidator;
30
34
  * @property {string} sessionId - Session ID of a customer.
31
35
  * @property {string} reason - Reason for deleting session.
32
36
  */
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
+ */
33
47
  /**
34
48
  * @typedef GetActiveSessionsParam
35
49
  * @property {string} id - ID of a customer.
36
50
  */
37
51
  /**
38
52
  * @typedef GetCustomersParam
39
- * @property {Object} [q] - The search query. Mobile number or email ID of a customer.
53
+ * @property {string} [q] - The search query. Mobile number or email ID of a customer.
40
54
  * @property {number} [pageSize] - The number of items to retrieve in each page.
41
55
  * Default value is 10.
42
56
  * @property {number} [pageNo] - The page number to navigate through the given
43
57
  * set of results. Default value is 1.
44
58
  */
45
59
  /** @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
+ */
46
98
  /**
47
99
  * @typedef GetUserGroupByIdParam
48
100
  * @property {string} groupId - Numeric ID allotted to a User Group
@@ -51,8 +103,9 @@ export = UserPlatformApplicationValidator;
51
103
  * @typedef GetUserGroupsParam
52
104
  * @property {string} [pageNo] - Page number for pagination result
53
105
  * @property {string} [pageSize] - Page size for pagination result
54
- * @property {string} [name] - To seartch for User Groups which contains given
106
+ * @property {string} [name] - To search for User Groups which contains given
55
107
  * string in their name
108
+ * @property {string} [type] - To search for User Groups with given type
56
109
  * @property {string} [status] - To get User Groups with given status
57
110
  * @property {number} [groupUid] - To get User Groups with given uid
58
111
  */
@@ -75,6 +128,19 @@ export = UserPlatformApplicationValidator;
75
128
  * @property {string} userId - User ID
76
129
  * @property {UserPlatformModel.UpdateUserRequestSchema} body
77
130
  */
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
+ */
78
144
  /**
79
145
  * @typedef UpdateUserGroupParam
80
146
  * @property {string} groupId - Numeric ID allotted to a User Group
@@ -92,6 +158,8 @@ declare class UserPlatformApplicationValidator {
92
158
  static blockOrUnblockUsers(): BlockOrUnblockUsersParam;
93
159
  /** @returns {CreateUserParam} */
94
160
  static createUser(): CreateUserParam;
161
+ /** @returns {CreateUserAttributeDefinitionParam} */
162
+ static createUserAttributeDefinition(): CreateUserAttributeDefinitionParam;
95
163
  /** @returns {CreateUserGroupParam} */
96
164
  static createUserGroup(): CreateUserGroupParam;
97
165
  /** @returns {CreateUserSessionParam} */
@@ -100,12 +168,26 @@ declare class UserPlatformApplicationValidator {
100
168
  static deleteActiveSessions(): DeleteActiveSessionsParam;
101
169
  /** @returns {DeleteSessionParam} */
102
170
  static deleteSession(): DeleteSessionParam;
171
+ /** @returns {DeleteUserAttributeParam} */
172
+ static deleteUserAttribute(): DeleteUserAttributeParam;
173
+ /** @returns {DeleteUserAttributeDefinitionByIdParam} */
174
+ static deleteUserAttributeDefinitionById(): DeleteUserAttributeDefinitionByIdParam;
103
175
  /** @returns {GetActiveSessionsParam} */
104
176
  static getActiveSessions(): GetActiveSessionsParam;
105
177
  /** @returns {GetCustomersParam} */
106
178
  static getCustomers(): GetCustomersParam;
107
179
  /** @returns {GetPlatformConfigParam} */
108
180
  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;
109
191
  /** @returns {GetUserGroupByIdParam} */
110
192
  static getUserGroupById(): GetUserGroupByIdParam;
111
193
  /** @returns {GetUserGroupsParam} */
@@ -118,13 +200,17 @@ declare class UserPlatformApplicationValidator {
118
200
  static updatePlatformConfig(): UpdatePlatformConfigParam;
119
201
  /** @returns {UpdateUserParam} */
120
202
  static updateUser(): UpdateUserParam;
203
+ /** @returns {UpdateUserAttributeParam} */
204
+ static updateUserAttribute(): UpdateUserAttributeParam;
205
+ /** @returns {UpdateUserAttributeDefinitionParam} */
206
+ static updateUserAttributeDefinition(): UpdateUserAttributeDefinitionParam;
121
207
  /** @returns {UpdateUserGroupParam} */
122
208
  static updateUserGroup(): UpdateUserGroupParam;
123
209
  /** @returns {UpdateUserGroupPartiallyParam} */
124
210
  static updateUserGroupPartially(): UpdateUserGroupPartiallyParam;
125
211
  }
126
212
  declare namespace UserPlatformApplicationValidator {
127
- export { ArchiveUserParam, BlockOrUnblockUsersParam, CreateUserParam, CreateUserGroupParam, CreateUserSessionParam, DeleteActiveSessionsParam, DeleteSessionParam, GetActiveSessionsParam, GetCustomersParam, GetPlatformConfigParam, GetUserGroupByIdParam, GetUserGroupsParam, SearchUsersParam, UnDeleteUserParam, UpdatePlatformConfigParam, UpdateUserParam, UpdateUserGroupParam, UpdateUserGroupPartiallyParam };
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 };
128
214
  }
129
215
  type ArchiveUserParam = {
130
216
  body: UserPlatformModel.ArchiveUserRequestSchema;
@@ -135,8 +221,11 @@ type BlockOrUnblockUsersParam = {
135
221
  type CreateUserParam = {
136
222
  body: UserPlatformModel.CreateUserRequestSchema;
137
223
  };
224
+ type CreateUserAttributeDefinitionParam = {
225
+ body: UserPlatformModel.CreateUserAttributeDefinition;
226
+ };
138
227
  type CreateUserGroupParam = {
139
- body: UserPlatformModel.CreateUserGroupSchema;
228
+ body: UserPlatformModel.CreateUserGroup;
140
229
  };
141
230
  type CreateUserSessionParam = {
142
231
  body: UserPlatformModel.CreateUserSessionRequestSchema;
@@ -165,6 +254,23 @@ type DeleteSessionParam = {
165
254
  */
166
255
  reason: string;
167
256
  };
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
+ };
168
274
  type GetActiveSessionsParam = {
169
275
  /**
170
276
  * - ID of a customer.
@@ -175,7 +281,94 @@ type GetCustomersParam = {
175
281
  /**
176
282
  * - The search query. Mobile number or email ID of a customer.
177
283
  */
178
- q?: any;
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;
179
372
  /**
180
373
  * - The number of items to retrieve in each page.
181
374
  * Default value is 10.
@@ -203,10 +396,14 @@ type GetUserGroupsParam = {
203
396
  */
204
397
  pageSize?: string;
205
398
  /**
206
- * - To seartch for User Groups which contains given
399
+ * - To search for User Groups which contains given
207
400
  * string in their name
208
401
  */
209
402
  name?: string;
403
+ /**
404
+ * - To search for User Groups with given type
405
+ */
406
+ type?: string;
210
407
  /**
211
408
  * - To get User Groups with given status
212
409
  */
@@ -240,6 +437,26 @@ type UpdateUserParam = {
240
437
  userId: string;
241
438
  body: UserPlatformModel.UpdateUserRequestSchema;
242
439
  };
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
+ };
243
460
  type UpdateUserGroupParam = {
244
461
  /**
245
462
  * - Numeric ID allotted to a User Group
@@ -17,9 +17,14 @@ 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
+
20
25
  /**
21
26
  * @typedef CreateUserGroupParam
22
- * @property {UserPlatformModel.CreateUserGroupSchema} body
27
+ * @property {UserPlatformModel.CreateUserGroup} body
23
28
  */
24
29
 
25
30
  /**
@@ -40,6 +45,18 @@ const UserPlatformModel = require("./UserPlatformModel");
40
45
  * @property {string} reason - Reason for deleting session.
41
46
  */
42
47
 
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
+
43
60
  /**
44
61
  * @typedef GetActiveSessionsParam
45
62
  * @property {string} id - ID of a customer.
@@ -47,7 +64,7 @@ const UserPlatformModel = require("./UserPlatformModel");
47
64
 
48
65
  /**
49
66
  * @typedef GetCustomersParam
50
- * @property {Object} [q] - The search query. Mobile number or email ID of a customer.
67
+ * @property {string} [q] - The search query. Mobile number or email ID of a customer.
51
68
  * @property {number} [pageSize] - The number of items to retrieve in each page.
52
69
  * Default value is 10.
53
70
  * @property {number} [pageNo] - The page number to navigate through the given
@@ -56,6 +73,49 @@ const UserPlatformModel = require("./UserPlatformModel");
56
73
 
57
74
  /** @typedef GetPlatformConfigParam */
58
75
 
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
+
59
119
  /**
60
120
  * @typedef GetUserGroupByIdParam
61
121
  * @property {string} groupId - Numeric ID allotted to a User Group
@@ -65,8 +125,9 @@ const UserPlatformModel = require("./UserPlatformModel");
65
125
  * @typedef GetUserGroupsParam
66
126
  * @property {string} [pageNo] - Page number for pagination result
67
127
  * @property {string} [pageSize] - Page size for pagination result
68
- * @property {string} [name] - To seartch for User Groups which contains given
128
+ * @property {string} [name] - To search for User Groups which contains given
69
129
  * string in their name
130
+ * @property {string} [type] - To search for User Groups with given type
70
131
  * @property {string} [status] - To get User Groups with given status
71
132
  * @property {number} [groupUid] - To get User Groups with given uid
72
133
  */
@@ -94,6 +155,21 @@ const UserPlatformModel = require("./UserPlatformModel");
94
155
  * @property {UserPlatformModel.UpdateUserRequestSchema} body
95
156
  */
96
157
 
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
+
97
173
  /**
98
174
  * @typedef UpdateUserGroupParam
99
175
  * @property {string} groupId - Numeric ID allotted to a User Group
@@ -128,10 +204,17 @@ class UserPlatformApplicationValidator {
128
204
  }).required();
129
205
  }
130
206
 
207
+ /** @returns {CreateUserAttributeDefinitionParam} */
208
+ static createUserAttributeDefinition() {
209
+ return Joi.object({
210
+ body: UserPlatformModel.CreateUserAttributeDefinition().required(),
211
+ }).required();
212
+ }
213
+
131
214
  /** @returns {CreateUserGroupParam} */
132
215
  static createUserGroup() {
133
216
  return Joi.object({
134
- body: UserPlatformModel.CreateUserGroupSchema().required(),
217
+ body: UserPlatformModel.CreateUserGroup().required(),
135
218
  }).required();
136
219
  }
137
220
 
@@ -159,6 +242,21 @@ class UserPlatformApplicationValidator {
159
242
  }).required();
160
243
  }
161
244
 
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
+
162
260
  /** @returns {GetActiveSessionsParam} */
163
261
  static getActiveSessions() {
164
262
  return Joi.object({
@@ -169,7 +267,7 @@ class UserPlatformApplicationValidator {
169
267
  /** @returns {GetCustomersParam} */
170
268
  static getCustomers() {
171
269
  return Joi.object({
172
- q: Joi.any(),
270
+ q: Joi.string().allow(""),
173
271
  pageSize: Joi.number(),
174
272
  pageNo: Joi.number(),
175
273
  }).required();
@@ -180,6 +278,56 @@ class UserPlatformApplicationValidator {
180
278
  return Joi.object({}).required();
181
279
  }
182
280
 
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
+
183
331
  /** @returns {GetUserGroupByIdParam} */
184
332
  static getUserGroupById() {
185
333
  return Joi.object({
@@ -193,6 +341,7 @@ class UserPlatformApplicationValidator {
193
341
  pageNo: Joi.string().allow(""),
194
342
  pageSize: Joi.string().allow(""),
195
343
  name: Joi.string().allow(""),
344
+ type: Joi.string().allow(""),
196
345
  status: Joi.string().allow(""),
197
346
  groupUid: Joi.number(),
198
347
  }).required();
@@ -228,6 +377,25 @@ class UserPlatformApplicationValidator {
228
377
  }).required();
229
378
  }
230
379
 
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
+
231
399
  /** @returns {UpdateUserGroupParam} */
232
400
  static updateUserGroup() {
233
401
  return Joi.object({