@gofynd/fdk-client-javascript 0.1.35 → 0.1.36

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 (109) hide show
  1. package/README.md +1 -1
  2. package/documentation/application/CART.md +256 -239
  3. package/documentation/application/CATALOG.md +413 -409
  4. package/documentation/application/COMMON.md +4 -0
  5. package/documentation/application/COMMUNICATION.md +4 -0
  6. package/documentation/application/CONFIGURATION.md +4 -0
  7. package/documentation/application/CONTENT.md +7 -20
  8. package/documentation/application/FILESTORAGE.md +85 -0
  9. package/documentation/application/LEAD.md +6 -2
  10. package/documentation/application/LOGISTIC.md +4 -0
  11. package/documentation/application/ORDER.md +307 -303
  12. package/documentation/application/PAYMENT.md +445 -259
  13. package/documentation/application/POSCART.md +317 -300
  14. package/documentation/application/REWARDS.md +153 -160
  15. package/documentation/application/SHARE.md +4 -0
  16. package/documentation/application/THEME.md +4 -0
  17. package/documentation/application/USER.md +4 -0
  18. package/documentation/platform/ANALYTICS.md +4 -0
  19. package/documentation/platform/AUDITTRAIL.md +4 -0
  20. package/documentation/platform/BILLING.md +4 -0
  21. package/documentation/platform/CART.md +480 -463
  22. package/documentation/platform/CATALOG.md +3895 -2942
  23. package/documentation/platform/COMMON.md +4 -0
  24. package/documentation/platform/COMMUNICATION.md +4 -0
  25. package/documentation/platform/COMPANYPROFILE.md +224 -193
  26. package/documentation/platform/CONFIGURATION.md +4 -0
  27. package/documentation/platform/CONTENT.md +8 -21
  28. package/documentation/platform/DISCOUNT.md +4 -0
  29. package/documentation/platform/FILESTORAGE.md +85 -0
  30. package/documentation/platform/INVENTORY.md +4 -0
  31. package/documentation/platform/LEAD.md +6 -2
  32. package/documentation/platform/ORDER.md +6298 -1448
  33. package/documentation/platform/PARTNER.md +12 -8
  34. package/documentation/platform/PAYMENT.md +107 -103
  35. package/documentation/platform/README.md +2 -2
  36. package/documentation/platform/REWARDS.md +219 -152
  37. package/documentation/platform/SHARE.md +4 -0
  38. package/documentation/platform/THEME.md +4 -0
  39. package/documentation/platform/USER.md +4 -0
  40. package/documentation/platform/WEBHOOK.md +4 -0
  41. package/documentation/public/CONFIGURATION.md +4 -0
  42. package/documentation/public/INVENTORY.md +4 -0
  43. package/documentation/public/WEBHOOK.md +4 -0
  44. package/package.json +1 -1
  45. package/sdk/application/ApplicationModels.d.ts +77 -73
  46. package/sdk/application/ApplicationModels.js +1751 -1725
  47. package/sdk/application/client/CartApplicationClient.d.ts +36 -36
  48. package/sdk/application/client/CatalogApplicationClient.d.ts +39 -39
  49. package/sdk/application/client/CatalogApplicationClient.js +16 -16
  50. package/sdk/application/client/CommonApplicationClient.d.ts +2 -2
  51. package/sdk/application/client/CommunicationApplicationClient.d.ts +5 -5
  52. package/sdk/application/client/ConfigurationApplicationClient.d.ts +17 -17
  53. package/sdk/application/client/ContentApplicationClient.d.ts +19 -19
  54. package/sdk/application/client/FileStorageApplicationClient.d.ts +14 -6
  55. package/sdk/application/client/FileStorageApplicationClient.js +2 -0
  56. package/sdk/application/client/LeadApplicationClient.d.ts +10 -10
  57. package/sdk/application/client/LogisticApplicationClient.d.ts +5 -5
  58. package/sdk/application/client/OrderApplicationClient.d.ts +15 -15
  59. package/sdk/application/client/OrderApplicationClient.js +1 -1
  60. package/sdk/application/client/PaymentApplicationClient.d.ts +79 -57
  61. package/sdk/application/client/PaymentApplicationClient.js +66 -0
  62. package/sdk/application/client/PosCartApplicationClient.d.ts +38 -38
  63. package/sdk/application/client/RewardsApplicationClient.d.ts +34 -34
  64. package/sdk/application/client/RewardsApplicationClient.js +77 -77
  65. package/sdk/application/client/ShareApplicationClient.d.ts +8 -8
  66. package/sdk/application/client/ThemeApplicationClient.d.ts +4 -4
  67. package/sdk/application/client/UserApplicationClient.d.ts +63 -63
  68. package/sdk/application/models/CatalogValidator.d.ts +1 -1
  69. package/sdk/application/models/CatalogValidator.js +2 -2
  70. package/sdk/application/models/PaymentValidator.d.ts +2 -0
  71. package/sdk/application/models/PaymentValidator.js +12 -0
  72. package/sdk/application/models/RewardsValidator.d.ts +3 -3
  73. package/sdk/application/models/RewardsValidator.js +12 -12
  74. package/sdk/common/AxiosHelper.js +1 -1
  75. package/sdk/common/Constant.d.ts +9 -0
  76. package/sdk/common/Constant.js +11 -0
  77. package/sdk/platform/PlatformApplicationClient.d.ts +8600 -7286
  78. package/sdk/platform/PlatformApplicationClient.js +4338 -3678
  79. package/sdk/platform/PlatformApplicationModels.d.ts +21 -26
  80. package/sdk/platform/PlatformApplicationModels.js +5561 -4301
  81. package/sdk/platform/PlatformClient.d.ts +3448 -2801
  82. package/sdk/platform/PlatformClient.js +3903 -3108
  83. package/sdk/platform/PlatformModels.d.ts +352 -278
  84. package/sdk/platform/PlatformModels.js +5230 -3942
  85. package/sdk/platform/client/AnalyticsPlatformClient.d.ts +5 -5
  86. package/sdk/platform/client/AuditTrailPlatformClient.d.ts +1 -1
  87. package/sdk/platform/client/BillingPlatformClient.d.ts +4 -4
  88. package/sdk/platform/client/CatalogPlatformClient.d.ts +209 -150
  89. package/sdk/platform/client/CatalogPlatformClient.js +441 -294
  90. package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +8 -8
  91. package/sdk/platform/client/ConfigurationPlatformClient.d.ts +9 -9
  92. package/sdk/platform/client/DiscountPlatformClient.d.ts +4 -4
  93. package/sdk/platform/client/FileStoragePlatformClient.d.ts +20 -4
  94. package/sdk/platform/client/FileStoragePlatformClient.js +49 -0
  95. package/sdk/platform/client/InventoryPlatformClient.d.ts +3 -3
  96. package/sdk/platform/client/LeadPlatformClient.d.ts +6 -6
  97. package/sdk/platform/client/OrderPlatformClient.d.ts +557 -131
  98. package/sdk/platform/client/OrderPlatformClient.js +1551 -247
  99. package/sdk/platform/client/PaymentPlatformClient.d.ts +4 -4
  100. package/sdk/platform/client/WebhookPlatformClient.d.ts +2 -2
  101. package/sdk/platform/models/CatalogValidator.d.ts +24 -21
  102. package/sdk/platform/models/CatalogValidator.js +103 -72
  103. package/sdk/platform/models/OrderValidator.d.ts +43 -11
  104. package/sdk/platform/models/OrderValidator.js +312 -51
  105. package/sdk/public/client/ConfigurationPublicClient.d.ts +2 -2
  106. package/sdk/public/client/InventoryPublicClient.d.ts +7 -7
  107. package/sdk/public/client/WebhookPublicClient.d.ts +3 -3
  108. package/tests/common/schema/action-url.json +15 -0
  109. package/tests/common/schema/url-action.json +16 -0
@@ -18,7 +18,7 @@ declare class Payment {
18
18
  * @description: Save Payout
19
19
  */
20
20
  savePayout({ body }?: {
21
- body: any;
21
+ body: PayoutRequest;
22
22
  }): Promise<any>;
23
23
  /**
24
24
  * @param {Object} arg - Arg object.
@@ -29,7 +29,7 @@ declare class Payment {
29
29
  */
30
30
  updatePayout({ uniqueTransferNo, body }?: {
31
31
  uniqueTransferNo: string;
32
- body: any;
32
+ body: PayoutRequest;
33
33
  }): Promise<any>;
34
34
  /**
35
35
  * @param {Object} arg - Arg object.
@@ -40,7 +40,7 @@ declare class Payment {
40
40
  */
41
41
  activateAndDectivatePayout({ uniqueTransferNo, body }?: {
42
42
  uniqueTransferNo: string;
43
- body: any;
43
+ body: UpdatePayoutRequest;
44
44
  }): Promise<any>;
45
45
  /**
46
46
  * @param {Object} arg - Arg object.
@@ -84,7 +84,7 @@ declare class Payment {
84
84
  * @description: Uses this api to Save Subscription Setup Intent
85
85
  */
86
86
  saveSubscriptionSetupIntent({ body }?: {
87
- body: any;
87
+ body: SaveSubscriptionSetupIntentRequest;
88
88
  }): Promise<any>;
89
89
  /**
90
90
  * @param {Object} arg - Arg object.
@@ -22,7 +22,7 @@ declare class Webhook {
22
22
  * @description: Register Subscriber
23
23
  */
24
24
  registerSubscriberToEvent({ body }?: {
25
- body: any;
25
+ body: SubscriberConfig;
26
26
  }): Promise<any>;
27
27
  /**
28
28
  * @param {Object} arg - Arg object.
@@ -31,7 +31,7 @@ declare class Webhook {
31
31
  * @description: Update Subscriber
32
32
  */
33
33
  updateSubscriberConfig({ body }?: {
34
- body: any;
34
+ body: SubscriberConfig;
35
35
  }): Promise<any>;
36
36
  /**
37
37
  * @param {Object} arg - Arg object.
@@ -1,13 +1,13 @@
1
1
  export = CatalogValidator;
2
2
  declare class CatalogValidator {
3
- static getProductBundle(): any;
4
3
  static createProductBundle(): any;
5
- static getProductBundleDetail(): any;
4
+ static getProductBundle(): any;
6
5
  static updateProductBundle(): any;
7
- static getSizeGuides(): any;
6
+ static getProductBundleDetail(): any;
8
7
  static createSizeGuide(): any;
9
- static getSizeGuide(): any;
8
+ static getSizeGuides(): any;
10
9
  static updateSizeGuide(): any;
10
+ static getSizeGuide(): any;
11
11
  static getSellerInsights(): any;
12
12
  static createMarketplaceOptin(): any;
13
13
  static getMarketplaceOptinDetail(): any;
@@ -17,56 +17,59 @@ declare class CatalogValidator {
17
17
  static getStoreDetail(): any;
18
18
  static getGenderAttribute(): any;
19
19
  static listProductTemplateCategories(): any;
20
- static listDepartmentsData(): any;
21
20
  static createDepartments(): any;
22
- static getDepartmentData(): any;
21
+ static listDepartmentsData(): any;
23
22
  static updateDepartment(): any;
23
+ static getDepartmentData(): any;
24
24
  static listProductTemplate(): any;
25
25
  static validateProductTemplate(): any;
26
26
  static downloadProductTemplateViews(): any;
27
- static downloadProductTemplateView(): any;
27
+ static downloadInventoryTemplateView(): any;
28
28
  static validateProductTemplateSchema(): any;
29
29
  static listHSNCodes(): any;
30
30
  static listProductTemplateExportDetails(): any;
31
31
  static listTemplateBrandTypeValues(): any;
32
- static listCategories(): any;
33
32
  static createCategories(): any;
34
- static getCategoryData(): any;
33
+ static listCategories(): any;
35
34
  static updateCategory(): any;
36
- static getProducts(): any;
35
+ static getCategoryData(): any;
37
36
  static createProduct(): any;
37
+ static getProducts(): any;
38
+ static getVariantsOfProducts(): any;
38
39
  static getProductAttributes(): any;
39
- static getProduct(): any;
40
40
  static editProduct(): any;
41
+ static getProduct(): any;
41
42
  static deleteProduct(): any;
42
43
  static getProductValidation(): any;
43
44
  static getProductSize(): any;
44
- static getProductBulkUploadHistory(): any;
45
45
  static createBulkProductUploadJob(): any;
46
- static deleteProductBulkJob(): any;
46
+ static getProductBulkUploadHistory(): any;
47
+ static uploadBulkProducts(): any;
47
48
  static createProductsInBulk(): any;
49
+ static deleteProductBulkJob(): any;
48
50
  static getProductTags(): any;
49
- static getProductAssetsInBulk(): any;
50
51
  static createProductAssetsInBulk(): any;
52
+ static getProductAssetsInBulk(): any;
51
53
  static deleteSize(): any;
52
- static getInventoryBySize(): any;
53
54
  static addInventory(): any;
55
+ static getInventoryBySize(): any;
54
56
  static getInventoryBySizeIdentifier(): any;
57
+ static getInventories(): any;
55
58
  static deleteInventory(): any;
56
- static getInventoryBulkUploadHistory(): any;
57
59
  static createBulkInventoryJob(): any;
58
- static deleteBulkInventoryJob(): any;
60
+ static getInventoryBulkUploadHistory(): any;
59
61
  static createBulkInventory(): any;
60
- static getInventoryExport(): any;
62
+ static deleteBulkInventoryJob(): any;
61
63
  static createInventoryExportJob(): any;
64
+ static getInventoryExport(): any;
62
65
  static exportInventoryConfig(): any;
63
- static deleteRealtimeInventory(): any;
64
66
  static updateRealtimeInventory(): any;
67
+ static deleteRealtimeInventory(): any;
65
68
  static updateInventories(): any;
66
- static getAllHsnCodes(): any;
67
69
  static createHsnCode(): any;
68
- static getHsnCode(): any;
70
+ static getAllHsnCodes(): any;
69
71
  static updateHsnCode(): any;
72
+ static getHsnCode(): any;
70
73
  static bulkHsnCode(): any;
71
74
  static getAllProductHsnCodes(): any;
72
75
  static getSingleProductHSNCode(): any;
@@ -1,6 +1,12 @@
1
1
  const Joi = require("joi");
2
2
  const Validator = require("../PlatformModels");
3
3
  class CatalogValidator {
4
+ static createProductBundle() {
5
+ return Joi.object({
6
+ body: Validator.ProductBundleRequest().required(),
7
+ }).required();
8
+ }
9
+
4
10
  static getProductBundle() {
5
11
  return Joi.object({
6
12
  q: Joi.string().allow(""),
@@ -8,9 +14,10 @@ class CatalogValidator {
8
14
  }).required();
9
15
  }
10
16
 
11
- static createProductBundle() {
17
+ static updateProductBundle() {
12
18
  return Joi.object({
13
- body: Validator.ProductBundleRequest().required(),
19
+ id: Joi.string().allow("").required(),
20
+ body: Validator.ProductBundleUpdateRequest().required(),
14
21
  }).required();
15
22
  }
16
23
 
@@ -20,10 +27,9 @@ class CatalogValidator {
20
27
  }).required();
21
28
  }
22
29
 
23
- static updateProductBundle() {
30
+ static createSizeGuide() {
24
31
  return Joi.object({
25
- id: Joi.string().allow("").required(),
26
- body: Validator.ProductBundleUpdateRequest().required(),
32
+ body: Validator.ValidateSizeGuide().required(),
27
33
  }).required();
28
34
  }
29
35
 
@@ -37,8 +43,9 @@ class CatalogValidator {
37
43
  }).required();
38
44
  }
39
45
 
40
- static createSizeGuide() {
46
+ static updateSizeGuide() {
41
47
  return Joi.object({
48
+ id: Joi.string().allow("").required(),
42
49
  body: Validator.ValidateSizeGuide().required(),
43
50
  }).required();
44
51
  }
@@ -49,13 +56,6 @@ class CatalogValidator {
49
56
  }).required();
50
57
  }
51
58
 
52
- static updateSizeGuide() {
53
- return Joi.object({
54
- id: Joi.string().allow("").required(),
55
- body: Validator.ValidateSizeGuide().required(),
56
- }).required();
57
- }
58
-
59
59
  static getSellerInsights() {
60
60
  return Joi.object({
61
61
  sellerAppId: Joi.string().allow("").required(),
@@ -112,6 +112,12 @@ class CatalogValidator {
112
112
  }).required();
113
113
  }
114
114
 
115
+ static createDepartments() {
116
+ return Joi.object({
117
+ body: Validator.DepartmentCreateUpdate().required(),
118
+ }).required();
119
+ }
120
+
115
121
  static listDepartmentsData() {
116
122
  return Joi.object({
117
123
  pageNo: Joi.number(),
@@ -122,8 +128,9 @@ class CatalogValidator {
122
128
  }).required();
123
129
  }
124
130
 
125
- static createDepartments() {
131
+ static updateDepartment() {
126
132
  return Joi.object({
133
+ uid: Joi.string().allow("").required(),
127
134
  body: Validator.DepartmentCreateUpdate().required(),
128
135
  }).required();
129
136
  }
@@ -134,13 +141,6 @@ class CatalogValidator {
134
141
  }).required();
135
142
  }
136
143
 
137
- static updateDepartment() {
138
- return Joi.object({
139
- uid: Joi.string().allow("").required(),
140
- body: Validator.DepartmentCreateUpdate().required(),
141
- }).required();
142
- }
143
-
144
144
  static listProductTemplate() {
145
145
  return Joi.object({
146
146
  department: Joi.string().allow("").required(),
@@ -159,7 +159,7 @@ class CatalogValidator {
159
159
  }).required();
160
160
  }
161
161
 
162
- static downloadProductTemplateView() {
162
+ static downloadInventoryTemplateView() {
163
163
  return Joi.object({
164
164
  itemType: Joi.string().allow("").required(),
165
165
  }).required();
@@ -185,6 +185,12 @@ class CatalogValidator {
185
185
  }).required();
186
186
  }
187
187
 
188
+ static createCategories() {
189
+ return Joi.object({
190
+ body: Validator.CategoryRequestBody().required(),
191
+ }).required();
192
+ }
193
+
188
194
  static listCategories() {
189
195
  return Joi.object({
190
196
  level: Joi.string().allow(""),
@@ -195,8 +201,9 @@ class CatalogValidator {
195
201
  }).required();
196
202
  }
197
203
 
198
- static createCategories() {
204
+ static updateCategory() {
199
205
  return Joi.object({
206
+ uid: Joi.string().allow("").required(),
200
207
  body: Validator.CategoryRequestBody().required(),
201
208
  }).required();
202
209
  }
@@ -207,10 +214,9 @@ class CatalogValidator {
207
214
  }).required();
208
215
  }
209
216
 
210
- static updateCategory() {
217
+ static createProduct() {
211
218
  return Joi.object({
212
- uid: Joi.string().allow("").required(),
213
- body: Validator.CategoryRequestBody().required(),
219
+ body: Validator.ProductCreateUpdate().required(),
214
220
  }).required();
215
221
  }
216
222
 
@@ -228,9 +234,12 @@ class CatalogValidator {
228
234
  }).required();
229
235
  }
230
236
 
231
- static createProduct() {
237
+ static getVariantsOfProducts() {
232
238
  return Joi.object({
233
- body: Validator.ProductCreateUpdate().required(),
239
+ itemId: Joi.number().required(),
240
+ variantType: Joi.string().allow("").required(),
241
+ pageNo: Joi.number(),
242
+ pageSize: Joi.number(),
234
243
  }).required();
235
244
  }
236
245
 
@@ -241,18 +250,18 @@ class CatalogValidator {
241
250
  }).required();
242
251
  }
243
252
 
244
- static getProduct() {
253
+ static editProduct() {
245
254
  return Joi.object({
246
- itemCode: Joi.string().allow(""),
247
255
  itemId: Joi.number().required(),
248
- brandUid: Joi.number(),
256
+ body: Validator.ProductCreateUpdate().required(),
249
257
  }).required();
250
258
  }
251
259
 
252
- static editProduct() {
260
+ static getProduct() {
253
261
  return Joi.object({
262
+ itemCode: Joi.string().allow(""),
254
263
  itemId: Joi.number().required(),
255
- body: Validator.ProductCreateUpdate().required(),
264
+ brandUid: Joi.number(),
256
265
  }).required();
257
266
  }
258
267
 
@@ -275,29 +284,38 @@ class CatalogValidator {
275
284
  }).required();
276
285
  }
277
286
 
287
+ static createBulkProductUploadJob() {
288
+ return Joi.object({
289
+ body: Validator.BulkJob().required(),
290
+ }).required();
291
+ }
292
+
278
293
  static getProductBulkUploadHistory() {
279
294
  return Joi.object({
295
+ search: Joi.string().allow(""),
280
296
  pageNo: Joi.number(),
281
297
  pageSize: Joi.number(),
282
298
  }).required();
283
299
  }
284
300
 
285
- static createBulkProductUploadJob() {
301
+ static uploadBulkProducts() {
286
302
  return Joi.object({
303
+ department: Joi.string().allow("").required(),
304
+ productType: Joi.string().allow("").required(),
287
305
  body: Validator.BulkJob().required(),
288
306
  }).required();
289
307
  }
290
308
 
291
- static deleteProductBulkJob() {
309
+ static createProductsInBulk() {
292
310
  return Joi.object({
293
- batchId: Joi.number().required(),
311
+ batchId: Joi.string().allow("").required(),
312
+ body: Validator.BulkProductRequest().required(),
294
313
  }).required();
295
314
  }
296
315
 
297
- static createProductsInBulk() {
316
+ static deleteProductBulkJob() {
298
317
  return Joi.object({
299
- batchId: Joi.string().allow("").required(),
300
- body: Validator.BulkProductRequest().required(),
318
+ batchId: Joi.number().required(),
301
319
  }).required();
302
320
  }
303
321
 
@@ -305,6 +323,12 @@ class CatalogValidator {
305
323
  return Joi.object({}).required();
306
324
  }
307
325
 
326
+ static createProductAssetsInBulk() {
327
+ return Joi.object({
328
+ body: Validator.ProductBulkAssets().required(),
329
+ }).required();
330
+ }
331
+
308
332
  static getProductAssetsInBulk() {
309
333
  return Joi.object({
310
334
  pageNo: Joi.number(),
@@ -312,16 +336,18 @@ class CatalogValidator {
312
336
  }).required();
313
337
  }
314
338
 
315
- static createProductAssetsInBulk() {
339
+ static deleteSize() {
316
340
  return Joi.object({
317
- body: Validator.ProductBulkAssets().required(),
341
+ itemId: Joi.number().required(),
342
+ size: Joi.number().required(),
318
343
  }).required();
319
344
  }
320
345
 
321
- static deleteSize() {
346
+ static addInventory() {
322
347
  return Joi.object({
323
348
  itemId: Joi.number().required(),
324
- size: Joi.number().required(),
349
+ size: Joi.string().allow("").required(),
350
+ body: Validator.InventoryRequest().required(),
325
351
  }).required();
326
352
  }
327
353
 
@@ -336,14 +362,6 @@ class CatalogValidator {
336
362
  }).required();
337
363
  }
338
364
 
339
- static addInventory() {
340
- return Joi.object({
341
- itemId: Joi.number().required(),
342
- size: Joi.string().allow("").required(),
343
- body: Validator.InventoryRequest().required(),
344
- }).required();
345
- }
346
-
347
365
  static getInventoryBySizeIdentifier() {
348
366
  return Joi.object({
349
367
  itemId: Joi.string().allow("").required(),
@@ -355,18 +373,24 @@ class CatalogValidator {
355
373
  }).required();
356
374
  }
357
375
 
358
- static deleteInventory() {
376
+ static getInventories() {
359
377
  return Joi.object({
360
- size: Joi.string().allow("").required(),
361
- itemId: Joi.number().required(),
362
- locationId: Joi.number().required(),
378
+ itemId: Joi.string().allow(""),
379
+ size: Joi.string().allow(""),
380
+ pageNo: Joi.number(),
381
+ pageSize: Joi.number(),
382
+ q: Joi.string().allow(""),
383
+ sellable: Joi.boolean(),
384
+ storeIds: Joi.array().items(Joi.number()),
385
+ sizeIdentifier: Joi.string().allow(""),
363
386
  }).required();
364
387
  }
365
388
 
366
- static getInventoryBulkUploadHistory() {
389
+ static deleteInventory() {
367
390
  return Joi.object({
368
- pageNo: Joi.number(),
369
- pageSize: Joi.number(),
391
+ size: Joi.string().allow("").required(),
392
+ itemId: Joi.number().required(),
393
+ locationId: Joi.number().required(),
370
394
  }).required();
371
395
  }
372
396
 
@@ -376,9 +400,10 @@ class CatalogValidator {
376
400
  }).required();
377
401
  }
378
402
 
379
- static deleteBulkInventoryJob() {
403
+ static getInventoryBulkUploadHistory() {
380
404
  return Joi.object({
381
- batchId: Joi.string().allow("").required(),
405
+ pageNo: Joi.number(),
406
+ pageSize: Joi.number(),
382
407
  }).required();
383
408
  }
384
409
 
@@ -389,8 +414,10 @@ class CatalogValidator {
389
414
  }).required();
390
415
  }
391
416
 
392
- static getInventoryExport() {
393
- return Joi.object({}).required();
417
+ static deleteBulkInventoryJob() {
418
+ return Joi.object({
419
+ batchId: Joi.string().allow("").required(),
420
+ }).required();
394
421
  }
395
422
 
396
423
  static createInventoryExportJob() {
@@ -399,13 +426,17 @@ class CatalogValidator {
399
426
  }).required();
400
427
  }
401
428
 
429
+ static getInventoryExport() {
430
+ return Joi.object({}).required();
431
+ }
432
+
402
433
  static exportInventoryConfig() {
403
434
  return Joi.object({
404
435
  filterType: Joi.string().allow(""),
405
436
  }).required();
406
437
  }
407
438
 
408
- static deleteRealtimeInventory() {
439
+ static updateRealtimeInventory() {
409
440
  return Joi.object({
410
441
  itemId: Joi.number().required(),
411
442
  sellerIdentifier: Joi.string().allow("").required(),
@@ -413,7 +444,7 @@ class CatalogValidator {
413
444
  }).required();
414
445
  }
415
446
 
416
- static updateRealtimeInventory() {
447
+ static deleteRealtimeInventory() {
417
448
  return Joi.object({
418
449
  itemId: Joi.number().required(),
419
450
  sellerIdentifier: Joi.string().allow("").required(),
@@ -427,6 +458,12 @@ class CatalogValidator {
427
458
  }).required();
428
459
  }
429
460
 
461
+ static createHsnCode() {
462
+ return Joi.object({
463
+ body: Validator.HsnUpsert().required(),
464
+ }).required();
465
+ }
466
+
430
467
  static getAllHsnCodes() {
431
468
  return Joi.object({
432
469
  pageNo: Joi.number(),
@@ -435,8 +472,9 @@ class CatalogValidator {
435
472
  }).required();
436
473
  }
437
474
 
438
- static createHsnCode() {
475
+ static updateHsnCode() {
439
476
  return Joi.object({
477
+ id: Joi.string().allow("").required(),
440
478
  body: Validator.HsnUpsert().required(),
441
479
  }).required();
442
480
  }
@@ -447,13 +485,6 @@ class CatalogValidator {
447
485
  }).required();
448
486
  }
449
487
 
450
- static updateHsnCode() {
451
- return Joi.object({
452
- id: Joi.string().allow("").required(),
453
- body: Validator.HsnUpsert().required(),
454
- }).required();
455
- }
456
-
457
488
  static bulkHsnCode() {
458
489
  return Joi.object({
459
490
  body: Validator.BulkHsnUpsert().required(),
@@ -1,14 +1,46 @@
1
1
  export = OrderValidator;
2
2
  declare class OrderValidator {
3
- static shipmentStatusUpdate(): any;
4
- static activityStatus(): any;
5
- static storeProcessShipmentUpdate(): any;
6
- static checkRefund(): any;
7
- static shipmentBagsCanBreak(): any;
8
- static getOrdersByCompanyId(): any;
9
- static getOrderLanesCountByCompanyId(): any;
10
- static getOrderDetails(): any;
11
- static getPicklistOrdersByCompanyId(): any;
12
- static getShipmentAddress(): any;
13
- static updateShipmentAddress(): any;
3
+ static getShipments(): any;
4
+ static getShipmentById(): any;
5
+ static getOrderById(): any;
6
+ static getLaneConfig(): any;
7
+ static getOrders(): any;
8
+ static getMetricCount(): any;
9
+ static getfilters(): any;
10
+ static createShipmentReport(): any;
11
+ static getReportsShipmentListing(): any;
12
+ static upsertJioCode(): any;
13
+ static getBulkInvoice(): any;
14
+ static getBulkInvoiceLabel(): any;
15
+ static getBulkShipmentExcelFile(): any;
16
+ static getBulkList(): any;
17
+ static getManifestList(): any;
18
+ static getManifestDetailsWithShipments(): any;
19
+ static getBulkActionFailedReport(): any;
20
+ static getShipmentReasons(): any;
21
+ static bulkActionProcessXlsxFile(): any;
22
+ static bulkActionDetails(): any;
23
+ static getBagById(): any;
24
+ static getBags(): any;
25
+ static invalidateShipmentCache(): any;
26
+ static reassignLocation(): any;
27
+ static updateShipmentLock(): any;
28
+ static getAnnouncements(): any;
29
+ static updateAddress(): any;
30
+ static click2Call(): any;
31
+ static updateShipmentStatus(): any;
32
+ static processManifest(): any;
33
+ static dispatchManifest(): any;
34
+ static getRoleBasedActions(): any;
35
+ static getShipmentHistory(): any;
36
+ static sendSmsNinja(): any;
37
+ static platformManualAssignDPToShipment(): any;
38
+ static updatePackagingDimensions(): any;
39
+ static createOrder(): any;
40
+ static createChannelConfig(): any;
41
+ static getChannelConfig(): any;
42
+ static uploadConsent(): any;
43
+ static orderUpdate(): any;
44
+ static checkOrderStatus(): any;
45
+ static sendSmsNinjaPlatform(): any;
14
46
  }