@gofynd/fdk-client-javascript 1.6.3 → 2.0.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 (146) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +5 -5
  4. package/sdk/application/Cart/CartApplicationClient.js +26 -268
  5. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
  7. package/sdk/application/Common/CommonApplicationClient.js +1 -16
  8. package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
  9. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
  10. package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
  11. package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
  12. package/sdk/application/Content/ContentApplicationClient.js +222 -191
  13. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  14. package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
  15. package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
  16. package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
  17. package/sdk/application/Lead/LeadApplicationClient.js +21 -52
  18. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
  19. package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
  20. package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
  21. package/sdk/application/Order/OrderApplicationClient.js +68 -153
  22. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
  23. package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
  24. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
  25. package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
  26. package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
  27. package/sdk/application/Share/ShareApplicationClient.js +21 -75
  28. package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
  29. package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
  30. package/sdk/application/User/UserApplicationClient.js +1 -407
  31. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
  32. package/sdk/common/Utility.d.ts +1 -1
  33. package/sdk/common/Utility.js +4 -4
  34. package/sdk/common/Validator.d.ts +1 -0
  35. package/sdk/common/Validator.js +20 -0
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -55
  37. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
  38. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
  40. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
  41. package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
  42. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
  43. package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
  44. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
  45. package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
  46. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
  47. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +64 -1
  48. package/sdk/partner/Webhook/WebhookPartnerModel.js +36 -0
  49. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  50. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
  51. package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
  52. package/sdk/platform/Cart/CartPlatformModel.js +38 -5
  53. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
  54. package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
  55. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
  57. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
  58. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
  59. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
  60. package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
  61. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
  62. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
  63. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
  64. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
  65. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
  66. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
  67. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
  68. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
  69. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
  70. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
  71. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
  72. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
  73. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
  74. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
  75. package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
  76. package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
  77. package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
  78. package/sdk/platform/Content/ContentPlatformModel.js +717 -34
  79. package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
  80. package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
  81. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
  82. package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
  83. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
  84. package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
  85. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
  86. package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
  87. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
  88. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
  89. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
  90. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
  91. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
  92. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
  93. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
  94. package/sdk/platform/Lead/LeadPlatformModel.js +2 -0
  95. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
  96. package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
  97. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  98. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  99. package/sdk/platform/Order/OrderPlatformClient.d.ts +212 -0
  100. package/sdk/platform/Order/OrderPlatformClient.js +397 -0
  101. package/sdk/platform/Order/OrderPlatformModel.d.ts +66 -10
  102. package/sdk/platform/Order/OrderPlatformModel.js +39 -7
  103. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
  104. package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
  105. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
  106. package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
  107. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
  108. package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
  109. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
  110. package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
  111. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
  112. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
  113. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
  114. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
  115. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
  116. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
  117. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
  118. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
  119. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
  120. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
  121. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
  122. package/sdk/platform/Share/SharePlatformModel.js +2 -0
  123. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +73 -0
  124. package/sdk/platform/User/UserPlatformApplicationClient.js +543 -0
  125. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +129 -1
  126. package/sdk/platform/User/UserPlatformApplicationValidator.js +97 -0
  127. package/sdk/platform/User/UserPlatformModel.d.ts +269 -6
  128. package/sdk/platform/User/UserPlatformModel.js +187 -5
  129. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +64 -1
  130. package/sdk/platform/Webhook/WebhookPlatformModel.js +36 -0
  131. package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
  132. package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
  133. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
  134. package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
  135. package/sdk/public/Content/ContentPublicClient.js +261 -104
  136. package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
  137. package/sdk/public/Content/ContentPublicModel.js +102 -0
  138. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
  139. package/sdk/public/Content/ContentPublicValidator.js +26 -0
  140. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  141. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  142. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  143. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  144. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  145. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  146. package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
@@ -7,6 +7,14 @@ export = UserPlatformApplicationValidator;
7
7
  * @typedef BlockOrUnblockUsersParam
8
8
  * @property {UserPlatformModel.BlockUserRequestSchema} body
9
9
  */
10
+ /**
11
+ * @typedef BulkImportStoreFrontUsersParam
12
+ * @property {UserPlatformModel.CreateStoreFrontUsersPayload} body
13
+ */
14
+ /**
15
+ * @typedef CreateBulkExportUsersParam
16
+ * @property {UserPlatformModel.BulkUserExportSchema} body
17
+ */
10
18
  /**
11
19
  * @typedef CreateUserParam
12
20
  * @property {UserPlatformModel.CreateUserRequestSchema} body
@@ -48,6 +56,26 @@ export = UserPlatformApplicationValidator;
48
56
  * @typedef GetActiveSessionsParam
49
57
  * @property {string} id - ID of a customer.
50
58
  */
59
+ /**
60
+ * @typedef GetBulkExportUsersListParam
61
+ * @property {string} [pageNo] - Page number for pagination result
62
+ * @property {string} [pageSize] - Page size for pagination result
63
+ * @property {string} [fileFormat] - Filter data based on file format eg csv or xlsx
64
+ * @property {string} [search] - The search queries based on job name.
65
+ * @property {string} [startDate] - Start date
66
+ * @property {string} [endDate] - End date
67
+ * @property {string} [status] - Status of the Import Documents
68
+ */
69
+ /**
70
+ * @typedef GetBulkImportUsersListParam
71
+ * @property {string} [pageNo] - Page number for pagination result
72
+ * @property {string} [pageSize] - Page size for pagination result
73
+ * @property {string} [search] - The search queries based on job name.
74
+ * @property {string} [startDate] - Start date
75
+ * @property {string} [endDate] - End date
76
+ * @property {string} [status] - Status of the Import Documents
77
+ * @property {string} [fileFormat] - Filter data based on file format eg csv or xlsx
78
+ */
51
79
  /**
52
80
  * @typedef GetCustomersParam
53
81
  * @property {string} [q] - The search query. Mobile number or email ID of a customer.
@@ -109,6 +137,15 @@ export = UserPlatformApplicationValidator;
109
137
  * @property {string} [status] - To get User Groups with given status
110
138
  * @property {number} [groupUid] - To get User Groups with given uid
111
139
  */
140
+ /**
141
+ * @typedef GetUserTimelineParam
142
+ * @property {string} userId - User ID
143
+ */
144
+ /**
145
+ * @typedef GetUsersJobByJobIdParam
146
+ * @property {string} jobId - The unique identifier of the job. This is used to
147
+ * fetch the details of the specific job.
148
+ */
112
149
  /**
113
150
  * @typedef SearchUsersParam
114
151
  * @property {string} [q] - The search query. Mobile number or email ID of a customer.
@@ -156,6 +193,10 @@ declare class UserPlatformApplicationValidator {
156
193
  static archiveUser(): ArchiveUserParam;
157
194
  /** @returns {BlockOrUnblockUsersParam} */
158
195
  static blockOrUnblockUsers(): BlockOrUnblockUsersParam;
196
+ /** @returns {BulkImportStoreFrontUsersParam} */
197
+ static bulkImportStoreFrontUsers(): BulkImportStoreFrontUsersParam;
198
+ /** @returns {CreateBulkExportUsersParam} */
199
+ static createBulkExportUsers(): CreateBulkExportUsersParam;
159
200
  /** @returns {CreateUserParam} */
160
201
  static createUser(): CreateUserParam;
161
202
  /** @returns {CreateUserAttributeDefinitionParam} */
@@ -174,6 +215,10 @@ declare class UserPlatformApplicationValidator {
174
215
  static deleteUserAttributeDefinitionById(): DeleteUserAttributeDefinitionByIdParam;
175
216
  /** @returns {GetActiveSessionsParam} */
176
217
  static getActiveSessions(): GetActiveSessionsParam;
218
+ /** @returns {GetBulkExportUsersListParam} */
219
+ static getBulkExportUsersList(): GetBulkExportUsersListParam;
220
+ /** @returns {GetBulkImportUsersListParam} */
221
+ static getBulkImportUsersList(): GetBulkImportUsersListParam;
177
222
  /** @returns {GetCustomersParam} */
178
223
  static getCustomers(): GetCustomersParam;
179
224
  /** @returns {GetPlatformConfigParam} */
@@ -192,6 +237,10 @@ declare class UserPlatformApplicationValidator {
192
237
  static getUserGroupById(): GetUserGroupByIdParam;
193
238
  /** @returns {GetUserGroupsParam} */
194
239
  static getUserGroups(): GetUserGroupsParam;
240
+ /** @returns {GetUserTimelineParam} */
241
+ static getUserTimeline(): GetUserTimelineParam;
242
+ /** @returns {GetUsersJobByJobIdParam} */
243
+ static getUsersJobByJobId(): GetUsersJobByJobIdParam;
195
244
  /** @returns {SearchUsersParam} */
196
245
  static searchUsers(): SearchUsersParam;
197
246
  /** @returns {UnDeleteUserParam} */
@@ -210,7 +259,7 @@ declare class UserPlatformApplicationValidator {
210
259
  static updateUserGroupPartially(): UpdateUserGroupPartiallyParam;
211
260
  }
212
261
  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 };
262
+ export { ArchiveUserParam, BlockOrUnblockUsersParam, BulkImportStoreFrontUsersParam, CreateBulkExportUsersParam, CreateUserParam, CreateUserAttributeDefinitionParam, CreateUserGroupParam, CreateUserSessionParam, DeleteActiveSessionsParam, DeleteSessionParam, DeleteUserAttributeParam, DeleteUserAttributeDefinitionByIdParam, GetActiveSessionsParam, GetBulkExportUsersListParam, GetBulkImportUsersListParam, GetCustomersParam, GetPlatformConfigParam, GetUserAttributeParam, GetUserAttributeByIdParam, GetUserAttributeDefinitionByIdParam, GetUserAttributeDefinitionsParam, GetUserAttributesForUserParam, GetUserGroupByIdParam, GetUserGroupsParam, GetUserTimelineParam, GetUsersJobByJobIdParam, SearchUsersParam, UnDeleteUserParam, UpdatePlatformConfigParam, UpdateUserParam, UpdateUserAttributeParam, UpdateUserAttributeDefinitionParam, UpdateUserGroupParam, UpdateUserGroupPartiallyParam };
214
263
  }
215
264
  type ArchiveUserParam = {
216
265
  body: UserPlatformModel.ArchiveUserRequestSchema;
@@ -218,6 +267,12 @@ type ArchiveUserParam = {
218
267
  type BlockOrUnblockUsersParam = {
219
268
  body: UserPlatformModel.BlockUserRequestSchema;
220
269
  };
270
+ type BulkImportStoreFrontUsersParam = {
271
+ body: UserPlatformModel.CreateStoreFrontUsersPayload;
272
+ };
273
+ type CreateBulkExportUsersParam = {
274
+ body: UserPlatformModel.BulkUserExportSchema;
275
+ };
221
276
  type CreateUserParam = {
222
277
  body: UserPlatformModel.CreateUserRequestSchema;
223
278
  };
@@ -277,6 +332,66 @@ type GetActiveSessionsParam = {
277
332
  */
278
333
  id: string;
279
334
  };
335
+ type GetBulkExportUsersListParam = {
336
+ /**
337
+ * - Page number for pagination result
338
+ */
339
+ pageNo?: string;
340
+ /**
341
+ * - Page size for pagination result
342
+ */
343
+ pageSize?: string;
344
+ /**
345
+ * - Filter data based on file format eg csv or xlsx
346
+ */
347
+ fileFormat?: string;
348
+ /**
349
+ * - The search queries based on job name.
350
+ */
351
+ search?: string;
352
+ /**
353
+ * - Start date
354
+ */
355
+ startDate?: string;
356
+ /**
357
+ * - End date
358
+ */
359
+ endDate?: string;
360
+ /**
361
+ * - Status of the Import Documents
362
+ */
363
+ status?: string;
364
+ };
365
+ type GetBulkImportUsersListParam = {
366
+ /**
367
+ * - Page number for pagination result
368
+ */
369
+ pageNo?: string;
370
+ /**
371
+ * - Page size for pagination result
372
+ */
373
+ pageSize?: string;
374
+ /**
375
+ * - The search queries based on job name.
376
+ */
377
+ search?: string;
378
+ /**
379
+ * - Start date
380
+ */
381
+ startDate?: string;
382
+ /**
383
+ * - End date
384
+ */
385
+ endDate?: string;
386
+ /**
387
+ * - Status of the Import Documents
388
+ */
389
+ status?: string;
390
+ /**
391
+ * - Filter data based on file format eg csv or xlsx
392
+ */
393
+ fileFormat?: string;
394
+ };
280
395
  type GetCustomersParam = {
281
396
  /**
282
397
  * - The search query. Mobile number or email ID of a customer.
@@ -413,6 +528,19 @@ type GetUserGroupsParam = {
413
528
  */
414
529
  groupUid?: number;
415
530
  };
531
+ type GetUserTimelineParam = {
532
+ /**
533
+ * - User ID
534
+ */
535
+ userId: string;
536
+ };
537
+ type GetUsersJobByJobIdParam = {
538
+ /**
539
+ * - The unique identifier of the job. This is used to
540
+ * fetch the details of the specific job.
541
+ */
542
+ jobId: string;
543
+ };
416
544
  type SearchUsersParam = {
417
545
  /**
418
546
  * - The search query. Mobile number or email ID of a customer.
@@ -12,6 +12,16 @@ const UserPlatformModel = require("./UserPlatformModel");
12
12
  * @property {UserPlatformModel.BlockUserRequestSchema} body
13
13
  */
14
14
 
15
+ /**
16
+ * @typedef BulkImportStoreFrontUsersParam
17
+ * @property {UserPlatformModel.CreateStoreFrontUsersPayload} body
18
+ */
19
+
20
+ /**
21
+ * @typedef CreateBulkExportUsersParam
22
+ * @property {UserPlatformModel.BulkUserExportSchema} body
23
+ */
24
+
15
25
  /**
16
26
  * @typedef CreateUserParam
17
27
  * @property {UserPlatformModel.CreateUserRequestSchema} body
@@ -62,6 +72,28 @@ const UserPlatformModel = require("./UserPlatformModel");
62
72
  * @property {string} id - ID of a customer.
63
73
  */
64
74
 
75
+ /**
76
+ * @typedef GetBulkExportUsersListParam
77
+ * @property {string} [pageNo] - Page number for pagination result
78
+ * @property {string} [pageSize] - Page size for pagination result
79
+ * @property {string} [fileFormat] - Filter data based on file format eg csv or xlsx
80
+ * @property {string} [search] - The search queries based on job name.
81
+ * @property {string} [startDate] - Start date
82
+ * @property {string} [endDate] - End date
83
+ * @property {string} [status] - Status of the Import Documents
84
+ */
85
+
86
+ /**
87
+ * @typedef GetBulkImportUsersListParam
88
+ * @property {string} [pageNo] - Page number for pagination result
89
+ * @property {string} [pageSize] - Page size for pagination result
90
+ * @property {string} [search] - The search queries based on job name.
91
+ * @property {string} [startDate] - Start date
92
+ * @property {string} [endDate] - End date
93
+ * @property {string} [status] - Status of the Import Documents
94
+ * @property {string} [fileFormat] - Filter data based on file format eg csv or xlsx
95
+ */
96
+
65
97
  /**
66
98
  * @typedef GetCustomersParam
67
99
  * @property {string} [q] - The search query. Mobile number or email ID of a customer.
@@ -132,6 +164,17 @@ const UserPlatformModel = require("./UserPlatformModel");
132
164
  * @property {number} [groupUid] - To get User Groups with given uid
133
165
  */
134
166
 
167
+ /**
168
+ * @typedef GetUserTimelineParam
169
+ * @property {string} userId - User ID
170
+ */
171
+
172
+ /**
173
+ * @typedef GetUsersJobByJobIdParam
174
+ * @property {string} jobId - The unique identifier of the job. This is used to
175
+ * fetch the details of the specific job.
176
+ */
177
+
135
178
  /**
136
179
  * @typedef SearchUsersParam
137
180
  * @property {string} [q] - The search query. Mobile number or email ID of a customer.
@@ -197,6 +240,20 @@ class UserPlatformApplicationValidator {
197
240
  }).required();
198
241
  }
199
242
 
243
+ /** @returns {BulkImportStoreFrontUsersParam} */
244
+ static bulkImportStoreFrontUsers() {
245
+ return Joi.object({
246
+ body: UserPlatformModel.CreateStoreFrontUsersPayload().required(),
247
+ }).required();
248
+ }
249
+
250
+ /** @returns {CreateBulkExportUsersParam} */
251
+ static createBulkExportUsers() {
252
+ return Joi.object({
253
+ body: UserPlatformModel.BulkUserExportSchema().required(),
254
+ }).required();
255
+ }
256
+
200
257
  /** @returns {CreateUserParam} */
201
258
  static createUser() {
202
259
  return Joi.object({
@@ -264,6 +321,32 @@ class UserPlatformApplicationValidator {
264
321
  }).required();
265
322
  }
266
323
 
324
+ /** @returns {GetBulkExportUsersListParam} */
325
+ static getBulkExportUsersList() {
326
+ return Joi.object({
327
+ pageNo: Joi.string().allow(""),
328
+ pageSize: Joi.string().allow(""),
329
+ fileFormat: Joi.string().allow(""),
330
+ search: Joi.string().allow(""),
331
+ startDate: Joi.string().allow(""),
332
+ endDate: Joi.string().allow(""),
333
+ status: Joi.string().allow(""),
334
+ }).required();
335
+ }
336
+
337
+ /** @returns {GetBulkImportUsersListParam} */
338
+ static getBulkImportUsersList() {
339
+ return Joi.object({
340
+ pageNo: Joi.string().allow(""),
341
+ pageSize: Joi.string().allow(""),
342
+ search: Joi.string().allow(""),
343
+ startDate: Joi.string().allow(""),
344
+ endDate: Joi.string().allow(""),
345
+ status: Joi.string().allow(""),
346
+ fileFormat: Joi.string().allow(""),
347
+ }).required();
348
+ }
349
+
267
350
  /** @returns {GetCustomersParam} */
268
351
  static getCustomers() {
269
352
  return Joi.object({
@@ -347,6 +430,20 @@ class UserPlatformApplicationValidator {
347
430
  }).required();
348
431
  }
349
432
 
433
+ /** @returns {GetUserTimelineParam} */
434
+ static getUserTimeline() {
435
+ return Joi.object({
436
+ userId: Joi.string().allow("").required(),
437
+ }).required();
438
+ }
439
+
440
+ /** @returns {GetUsersJobByJobIdParam} */
441
+ static getUsersJobByJobId() {
442
+ return Joi.object({
443
+ jobId: Joi.string().allow("").required(),
444
+ }).required();
445
+ }
446
+
350
447
  /** @returns {SearchUsersParam} */
351
448
  static searchUsers() {
352
449
  return Joi.object({
@@ -78,6 +78,64 @@ export = UserPlatformModel;
78
78
  * @property {string} [default_value]
79
79
  * @property {Object[]} [validations]
80
80
  */
81
+ /**
82
+ * @typedef CreateStoreFrontUsersPayload
83
+ * @property {string} absolute_url - A valid URL linking to the file containing
84
+ * user data to be imported.
85
+ * @property {string} file_format - The format of the file containing the user's
86
+ * data. Supported formats are CSV and XLSX.
87
+ * @property {string} relative_url - A valid relative path to the file within
88
+ * the storage system. This path should not include the base URL or domain and
89
+ * must conform to the storage structure
90
+ */
91
+ /**
92
+ * @typedef BulkUserExportSchema
93
+ * @property {string} file_format - The format of the file in which you want to
94
+ * export data. Supported formats are CSV and XLSX.
95
+ */
96
+ /**
97
+ * @typedef BulkActionModel
98
+ * @property {string} _id - The Job ID associated with an Import or Export Job
99
+ * @property {string} file_name - The name of the file
100
+ * @property {string} file_format - The format of the uploaded file (e.g., CSV, XLSX).
101
+ * @property {string} action_type - The type of bulk action being performed
102
+ * (e.g., import, export).
103
+ * @property {CreatedBySchema} created_by
104
+ * @property {BulkActionCountSchema} [count]
105
+ * @property {string} [status] - The current status of the bulk action.
106
+ * @property {BulkActionLinkSchema} [links]
107
+ * @property {string} application_id - The unique identifier of the associated
108
+ * application.
109
+ * @property {string} company_id - The unique identifier of the company
110
+ * associated with the bulk action.
111
+ * @property {string} [created_at] - The timestamp when the bulk action was created.
112
+ * @property {string} [updated_at] - The timestamp when the bulk action was last updated.
113
+ */
114
+ /**
115
+ * @typedef CreatedBySchema
116
+ * @property {string} name - The name of the user who initiated the operation.
117
+ * @property {string} user_id - A unique identifier for the user who initiated
118
+ * the operation.
119
+ */
120
+ /**
121
+ * @typedef BulkActionLinkSchema
122
+ * @property {FileLinks} [file]
123
+ * @property {FileLinks} [error]
124
+ */
125
+ /**
126
+ * @typedef FileLinks
127
+ * @property {string} [absolute_url] - The full URL of the file, including the
128
+ * domain and protocol, allowing direct access to the file from any location.
129
+ * @property {string} [relative_url] - The relative path to the file within the
130
+ * storage system, excluding the base URL or domain. This path is specific to
131
+ * the storage structure.
132
+ */
133
+ /**
134
+ * @typedef BulkActionCountSchema
135
+ * @property {number} [total] - The total number of items to be processed.
136
+ * @property {number} [success] - The number of successfully processed items.
137
+ * @property {number} [error] - The number of items that failed to process.
138
+ */
81
139
  /**
82
140
  * @typedef BlockUserRequestSchema
83
141
  * @property {boolean} [status]
@@ -115,13 +173,18 @@ export = UserPlatformModel;
115
173
  * @property {UserSearchSchema[]} [items]
116
174
  * @property {PaginationSchema} [page]
117
175
  */
176
+ /**
177
+ * @typedef BulkActionPaginationSchema
178
+ * @property {BulkActionModel[]} [items] - Array of Bulk Action Documents
179
+ * @property {PaginationSchema} [page]
180
+ */
118
181
  /**
119
182
  * @typedef PaginationSchema
120
- * @property {number} [size]
121
- * @property {number} [item_total]
122
- * @property {boolean} [has_next]
123
- * @property {string} [type]
124
- * @property {number} [current]
183
+ * @property {number} [size] - The number of items per page.
184
+ * @property {number} [item_total] - The total number of items across all pages.
185
+ * @property {boolean} [has_next] - Indicates whether there are more pages to retrieve.
186
+ * @property {string} [type] - The type of pagination used (eg Number).
187
+ * @property {number} [current] - The current page number.
125
188
  */
126
189
  /**
127
190
  * @typedef SessionListResponseSchema
@@ -335,6 +398,19 @@ export = UserPlatformModel;
335
398
  * @typedef DeleteAccountConsent
336
399
  * @property {string} [consent_text]
337
400
  */
401
+ /**
402
+ * @typedef GetUserTimeline
403
+ * @property {string} [delete_on] - Denotes the date on which the user will be deleted
404
+ * @property {UserTimeline[]} [timeline] - List of user timeline events
405
+ */
406
+ /**
407
+ * @typedef UserTimeline
408
+ * @property {string} [date] - Denotes the date at which this event occured
409
+ * @property {string} [title] - Title of the timeline event
410
+ * @property {string} [type] - Type of the event, indicating its status
411
+ * @property {boolean} [visible] - Indicates whether the event should be shown on the UI
412
+ * @property {string} [sub_title] - Additional information about the event
413
+ */
338
414
  /**
339
415
  * @typedef Facebook
340
416
  * @property {string} [app_id]
@@ -454,6 +530,7 @@ export = UserPlatformModel;
454
530
  * @property {string} [rr_id]
455
531
  * @property {boolean} [archive]
456
532
  * @property {string} [status]
533
+ * @property {string} [deleted_on]
457
534
  */
458
535
  /**
459
536
  * @typedef PhoneNumber
@@ -473,7 +550,7 @@ export = UserPlatformModel;
473
550
  declare class UserPlatformModel {
474
551
  }
475
552
  declare namespace UserPlatformModel {
476
- export { SuccessMessage, UserAttributeDefinition, UserAttributeDefinitionDetails, UserAttributeDefinitionValidation, UserAttribute, CreateUserAttribute, CreateUserAttributeDefinition, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email };
553
+ export { SuccessMessage, UserAttributeDefinition, UserAttributeDefinitionDetails, UserAttributeDefinitionValidation, UserAttribute, CreateUserAttribute, CreateUserAttributeDefinition, CreateStoreFrontUsersPayload, BulkUserExportSchema, BulkActionModel, CreatedBySchema, BulkActionLinkSchema, FileLinks, BulkActionCountSchema, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, BulkActionPaginationSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, GetUserTimeline, UserTimeline, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email };
477
554
  }
478
555
  /** @returns {SuccessMessage} */
479
556
  declare function SuccessMessage(): SuccessMessage;
@@ -678,6 +755,131 @@ type CreateUserAttributeDefinition = {
678
755
  default_value?: string;
679
756
  validations?: any[];
680
757
  };
758
+ /** @returns {CreateStoreFrontUsersPayload} */
759
+ declare function CreateStoreFrontUsersPayload(): CreateStoreFrontUsersPayload;
760
+ type CreateStoreFrontUsersPayload = {
761
+ /**
762
+ * - A valid URL linking to the file containing
763
+ * user data to be imported.
764
+ */
765
+ absolute_url: string;
766
+ /**
767
+ * - The format of the file containing the user's
768
+ * data. Supported formats are CSV and XLSX.
769
+ */
770
+ file_format: string;
771
+ /**
772
+ * - A valid relative path to the file within
773
+ * the storage system. This path should not include the base URL or domain and
774
+ * must conform to the storage structure
775
+ */
776
+ relative_url: string;
777
+ };
778
+ /** @returns {BulkUserExportSchema} */
779
+ declare function BulkUserExportSchema(): BulkUserExportSchema;
780
+ type BulkUserExportSchema = {
781
+ /**
782
+ * - The format of the file in which you want to
783
+ * export data. Supported formats are CSV and XLSX.
784
+ */
785
+ file_format: string;
786
+ };
787
+ /** @returns {BulkActionModel} */
788
+ declare function BulkActionModel(): BulkActionModel;
789
+ type BulkActionModel = {
790
+ /**
791
+ * - The Job ID associated with an Import or Export Job
792
+ */
793
+ _id: string;
794
+ /**
795
+ * - The name of the file
796
+ */
797
+ file_name: string;
798
+ /**
799
+ * - The format of the uploaded file (e.g., CSV, XLSX).
800
+ */
801
+ file_format: string;
802
+ /**
803
+ * - The type of bulk action being performed
804
+ * (e.g., import, export).
805
+ */
806
+ action_type: string;
807
+ created_by: CreatedBySchema;
808
+ count?: BulkActionCountSchema;
809
+ /**
810
+ * - The current status of the bulk action.
811
+ */
812
+ status?: string;
813
+ links?: BulkActionLinkSchema;
814
+ /**
815
+ * - The unique identifier of the associated
816
+ * application.
817
+ */
818
+ application_id: string;
819
+ /**
820
+ * - The unique identifier of the company
821
+ * associated with the bulk action.
822
+ */
823
+ company_id: string;
824
+ /**
825
+ * - The timestamp when the bulk action was created.
826
+ */
827
+ created_at?: string;
828
+ /**
829
+ * - The timestamp when the bulk action was last updated.
830
+ */
831
+ updated_at?: string;
832
+ };
833
+ /** @returns {CreatedBySchema} */
834
+ declare function CreatedBySchema(): CreatedBySchema;
835
+ type CreatedBySchema = {
836
+ /**
837
+ * - The name of the user who initiated the operation.
838
+ */
839
+ name: string;
840
+ /**
841
+ * - A unique identifier for the user who initiated
842
+ * the operation.
843
+ */
844
+ user_id: string;
845
+ };
846
+ /** @returns {BulkActionLinkSchema} */
847
+ declare function BulkActionLinkSchema(): BulkActionLinkSchema;
848
+ type BulkActionLinkSchema = {
849
+ file?: FileLinks;
850
+ error?: FileLinks;
851
+ };
852
+ /** @returns {FileLinks} */
853
+ declare function FileLinks(): FileLinks;
854
+ type FileLinks = {
855
+ /**
856
+ * - The full URL of the file, including the
857
+ * domain and protocol, allowing direct access to the file from any location.
858
+ */
859
+ absolute_url?: string;
860
+ /**
861
+ * - The relative path to the file within the
862
+ * storage system, excluding the base URL or domain. This path is specific to
863
+ * the storage structure.
864
+ */
865
+ relative_url?: string;
866
+ };
867
+ /** @returns {BulkActionCountSchema} */
868
+ declare function BulkActionCountSchema(): BulkActionCountSchema;
869
+ type BulkActionCountSchema = {
870
+ /**
871
+ * - The total number of items to be processed.
872
+ */
873
+ total?: number;
874
+ /**
875
+ * - The number of successfully processed items.
876
+ */
877
+ success?: number;
878
+ /**
879
+ * - The number of items that failed to process.
880
+ */
881
+ error?: number;
882
+ };
681
883
  /** @returns {BlockUserRequestSchema} */
682
884
  declare function BlockUserRequestSchema(): BlockUserRequestSchema;
683
885
  type BlockUserRequestSchema = {
@@ -723,13 +925,37 @@ type CustomerListResponseSchema = {
723
925
  items?: UserSearchSchema[];
724
926
  page?: PaginationSchema;
725
927
  };
928
+ /** @returns {BulkActionPaginationSchema} */
929
+ declare function BulkActionPaginationSchema(): BulkActionPaginationSchema;
930
+ type BulkActionPaginationSchema = {
931
+ /**
932
+ * - Array of Bulk Action Documents
933
+ */
934
+ items?: BulkActionModel[];
935
+ page?: PaginationSchema;
936
+ };
726
937
  /** @returns {PaginationSchema} */
727
938
  declare function PaginationSchema(): PaginationSchema;
728
939
  type PaginationSchema = {
940
+ /**
941
+ * - The number of items per page.
942
+ */
729
943
  size?: number;
944
+ /**
945
+ * - The total number of items across all pages.
946
+ */
730
947
  item_total?: number;
948
+ /**
949
+ * - Indicates whether there are more pages to retrieve.
950
+ */
731
951
  has_next?: boolean;
952
+ /**
953
+ * - The type of pagination used (eg Number).
954
+ */
732
955
  type?: string;
956
+ /**
957
+ * - The current page number.
958
+ */
733
959
  current?: number;
734
960
  };
735
961
  /** @returns {SessionListResponseSchema} */
@@ -977,6 +1203,42 @@ declare function DeleteAccountConsent(): DeleteAccountConsent;
977
1203
  type DeleteAccountConsent = {
978
1204
  consent_text?: string;
979
1205
  };
1206
+ /** @returns {GetUserTimeline} */
1207
+ declare function GetUserTimeline(): GetUserTimeline;
1208
+ type GetUserTimeline = {
1209
+ /**
1210
+ * - Denotes the date on which the user will be deleted
1211
+ */
1212
+ delete_on?: string;
1213
+ /**
1214
+ * - List of user timeline events
1215
+ */
1216
+ timeline?: UserTimeline[];
1217
+ };
1218
+ /** @returns {UserTimeline} */
1219
+ declare function UserTimeline(): UserTimeline;
1220
+ type UserTimeline = {
1221
+ /**
1222
+ * - Denotes the date at which this event occured
1223
+ */
1224
+ date?: string;
1225
+ /**
1226
+ * - Title of the timeline event
1227
+ */
1228
+ title?: string;
1229
+ /**
1230
+ * - Type of the event, indicating its status
1231
+ */
1232
+ type?: string;
1233
+ /**
1234
+ * - Indicates whether the event should be shown on the UI
1235
+ */
1236
+ visible?: boolean;
1237
+ /**
1238
+ * - Additional information about the event
1239
+ */
1240
+ sub_title?: string;
1241
+ };
980
1242
  /** @returns {Facebook} */
981
1243
  declare function Facebook(): Facebook;
982
1244
  type Facebook = {
@@ -1126,6 +1388,7 @@ type UserSearchSchema = {
1126
1388
  rr_id?: string;
1127
1389
  archive?: boolean;
1128
1390
  status?: string;
1391
+ deleted_on?: string;
1129
1392
  };
1130
1393
  /** @returns {PhoneNumber} */
1131
1394
  declare function PhoneNumber(): PhoneNumber;