@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
@@ -2,6 +2,15 @@ export = Catalog;
2
2
  declare class Catalog {
3
3
  constructor(config: any);
4
4
  config: any;
5
+ /**
6
+ * @param {Object} arg - Arg object.
7
+ * @param {ProductBundleRequest} arg.body
8
+ * @summary: Create Product Bundle
9
+ * @description: Create Product Bundle. See `ProductBundleRequest` for the request body parameter need to create a product bundle. On successful request, returns in `ProductBundleRequest` with id
10
+ */
11
+ createProductBundle({ body }?: {
12
+ body: ProductBundleRequest;
13
+ }): Promise<any>;
5
14
  /**
6
15
  * @param {Object} arg - Arg object.
7
16
  * @param {string} [arg.q] - A search string that is searched with product
@@ -16,12 +25,15 @@ declare class Catalog {
16
25
  }): Promise<any>;
17
26
  /**
18
27
  * @param {Object} arg - Arg object.
19
- * @param {ProductBundleRequest} arg.body
20
- * @summary: Create Product Bundle
21
- * @description: Create Product Bundle. See `ProductBundleRequest` for the request body parameter need to create a product bundle. On successful request, returns in `ProductBundleRequest` with id
28
+ * @param {string} arg.id - A `id` is a unique identifier for a particular
29
+ * detail. Pass the `id` of the keywords which you want to delete.
30
+ * @param {ProductBundleUpdateRequest} arg.body
31
+ * @summary: Update a Product Bundle
32
+ * @description: Update a Product Bundle by its id. On successful request, returns the updated product bundle
22
33
  */
23
- createProductBundle({ body }?: {
24
- body: any;
34
+ updateProductBundle({ id, body }?: {
35
+ id: string;
36
+ body: ProductBundleUpdateRequest;
25
37
  }): Promise<any>;
26
38
  /**
27
39
  * @param {Object} arg - Arg object.
@@ -35,15 +47,12 @@ declare class Catalog {
35
47
  }): Promise<any>;
36
48
  /**
37
49
  * @param {Object} arg - Arg object.
38
- * @param {string} arg.id - A `id` is a unique identifier for a particular
39
- * detail. Pass the `id` of the keywords which you want to delete.
40
- * @param {ProductBundleUpdateRequest} arg.body
41
- * @summary: Update a Product Bundle
42
- * @description: Update a Product Bundle by its id. On successful request, returns the updated product bundle
50
+ * @param {ValidateSizeGuide} arg.body
51
+ * @summary: Create a size guide.
52
+ * @description: This API allows to create a size guide associated to a brand.
43
53
  */
44
- updateProductBundle({ id, body }?: {
45
- id: string;
46
- body: any;
54
+ createSizeGuide({ body }?: {
55
+ body: ValidateSizeGuide;
47
56
  }): Promise<any>;
48
57
  /**
49
58
  * @param {Object} arg - Arg object.
@@ -66,12 +75,14 @@ declare class Catalog {
66
75
  }): Promise<any>;
67
76
  /**
68
77
  * @param {Object} arg - Arg object.
78
+ * @param {string} arg.id - Mongo id of the size guide to be edited
69
79
  * @param {ValidateSizeGuide} arg.body
70
- * @summary: Create a size guide.
71
- * @description: This API allows to create a size guide associated to a brand.
80
+ * @summary: Edit a size guide.
81
+ * @description: This API allows to edit a size guide.
72
82
  */
73
- createSizeGuide({ body }?: {
74
- body: any;
83
+ updateSizeGuide({ id, body }?: {
84
+ id: string;
85
+ body: ValidateSizeGuide;
75
86
  }): Promise<any>;
76
87
  /**
77
88
  * @param {Object} arg - Arg object.
@@ -82,17 +93,6 @@ declare class Catalog {
82
93
  getSizeGuide({ id }?: {
83
94
  id: string;
84
95
  }): Promise<any>;
85
- /**
86
- * @param {Object} arg - Arg object.
87
- * @param {string} arg.id - Mongo id of the size guide to be edited
88
- * @param {ValidateSizeGuide} arg.body
89
- * @summary: Edit a size guide.
90
- * @description: This API allows to edit a size guide.
91
- */
92
- updateSizeGuide({ id, body }?: {
93
- id: string;
94
- body: any;
95
- }): Promise<any>;
96
96
  /**
97
97
  * @param {Object} arg - Arg object.
98
98
  * @param {string} arg.sellerAppId - Id of the seller application which is
@@ -113,7 +113,7 @@ declare class Catalog {
113
113
  */
114
114
  createMarketplaceOptin({ marketplace, body }?: {
115
115
  marketplace: string;
116
- body: any;
116
+ body: OptInPostRequest;
117
117
  }): Promise<any>;
118
118
  /**
119
119
  * @param {Object} arg - Arg object.
@@ -189,6 +189,15 @@ declare class Catalog {
189
189
  departments: string;
190
190
  itemType: string;
191
191
  }): Promise<any>;
192
+ /**
193
+ * @param {Object} arg - Arg object.
194
+ * @param {DepartmentCreateUpdate} arg.body
195
+ * @summary: Create the department.
196
+ * @description: Create departments using the API.
197
+ */
198
+ createDepartments({ body }?: {
199
+ body: DepartmentCreateUpdate;
200
+ }): Promise<any>;
192
201
  /**
193
202
  * @param {Object} arg - Arg object.
194
203
  * @param {number} [arg.pageNo] - The page number to navigate through the
@@ -212,12 +221,14 @@ declare class Catalog {
212
221
  }): Promise<any>;
213
222
  /**
214
223
  * @param {Object} arg - Arg object.
224
+ * @param {string} arg.uid - A `uid` is a unique identifier of a department.
215
225
  * @param {DepartmentCreateUpdate} arg.body
216
- * @summary: Create the department.
217
- * @description: Create departments using the API.
226
+ * @summary: Update the department by their uid.
227
+ * @description: Update the department by their uid using this API.
218
228
  */
219
- createDepartments({ body }?: {
220
- body: any;
229
+ updateDepartment({ uid, body }?: {
230
+ uid: string;
231
+ body: DepartmentCreateUpdate;
221
232
  }): Promise<any>;
222
233
  /**
223
234
  * @param {Object} arg - Arg object.
@@ -228,17 +239,6 @@ declare class Catalog {
228
239
  getDepartmentData({ uid }?: {
229
240
  uid: string;
230
241
  }): Promise<any>;
231
- /**
232
- * @param {Object} arg - Arg object.
233
- * @param {string} arg.uid - A `uid` is a unique identifier of a department.
234
- * @param {DepartmentCreateUpdate} arg.body
235
- * @summary: Update the department by their uid.
236
- * @description: Update the department by their uid using this API.
237
- */
238
- updateDepartment({ uid, body }?: {
239
- uid: string;
240
- body: any;
241
- }): Promise<any>;
242
242
  /**
243
243
  * @param {Object} arg - Arg object.
244
244
  * @param {string} arg.department - A `department` is the name of a
@@ -275,7 +275,7 @@ declare class Catalog {
275
275
  * @summary: Download Product Template View
276
276
  * @description: Allows you to download product template data
277
277
  */
278
- downloadProductTemplateView({ itemType }?: {
278
+ downloadInventoryTemplateView({ itemType }?: {
279
279
  itemType: string;
280
280
  }): Promise<any>;
281
281
  /**
@@ -310,6 +310,15 @@ declare class Catalog {
310
310
  listTemplateBrandTypeValues({ filter }?: {
311
311
  filter: string;
312
312
  }): Promise<any>;
313
+ /**
314
+ * @param {Object} arg - Arg object.
315
+ * @param {CategoryRequestBody} arg.body
316
+ * @summary: Create product categories
317
+ * @description: This API lets user create product categories
318
+ */
319
+ createCategories({ body }?: {
320
+ body: CategoryRequestBody;
321
+ }): Promise<any>;
313
322
  /**
314
323
  * @param {Object} arg - Arg object.
315
324
  * @param {string} [arg.level] - Get category for multiple levels
@@ -331,12 +340,14 @@ declare class Catalog {
331
340
  }): Promise<any>;
332
341
  /**
333
342
  * @param {Object} arg - Arg object.
343
+ * @param {string} arg.uid - Category unique id
334
344
  * @param {CategoryRequestBody} arg.body
335
- * @summary: Create product categories
336
- * @description: This API lets user create product categories
345
+ * @summary: Update product categories
346
+ * @description: Update a product category using this apu
337
347
  */
338
- createCategories({ body }?: {
339
- body: any;
348
+ updateCategory({ uid, body }?: {
349
+ uid: string;
350
+ body: CategoryRequestBody;
340
351
  }): Promise<any>;
341
352
  /**
342
353
  * @param {Object} arg - Arg object.
@@ -349,14 +360,12 @@ declare class Catalog {
349
360
  }): Promise<any>;
350
361
  /**
351
362
  * @param {Object} arg - Arg object.
352
- * @param {string} arg.uid - Category unique id
353
- * @param {CategoryRequestBody} arg.body
354
- * @summary: Update product categories
355
- * @description: Update a product category using this apu
363
+ * @param {ProductCreateUpdate} arg.body
364
+ * @summary: Create a product.
365
+ * @description: This API allows to create product.
356
366
  */
357
- updateCategory({ uid, body }?: {
358
- uid: string;
359
- body: any;
367
+ createProduct({ body }?: {
368
+ body: ProductCreateUpdate;
360
369
  }): Promise<any>;
361
370
  /**
362
371
  * @param {Object} arg - Arg object.
@@ -389,12 +398,20 @@ declare class Catalog {
389
398
  }): Promise<any>;
390
399
  /**
391
400
  * @param {Object} arg - Arg object.
392
- * @param {ProductCreateUpdate} arg.body
393
- * @summary: Create a product.
394
- * @description: This API allows to create product.
401
+ * @param {number} arg.itemId - Get list of variants of item Id
402
+ * @param {string} arg.variantType - Get multiple products filtered by variant type
403
+ * @param {number} [arg.pageNo] - The page number to navigate through the
404
+ * given set of results
405
+ * @param {number} [arg.pageSize] - Number of items to retrieve in each
406
+ * page. Default is 10.
407
+ * @summary: Get product list
408
+ * @description: This API gets meta associated to products.
395
409
  */
396
- createProduct({ body }?: {
397
- body: any;
410
+ getVariantsOfProducts({ itemId, variantType, pageNo, pageSize }?: {
411
+ itemId: number;
412
+ variantType: string;
413
+ pageNo?: number;
414
+ pageSize?: number;
398
415
  }): Promise<any>;
399
416
  /**
400
417
  * @param {Object} arg - Arg object.
@@ -408,6 +425,17 @@ declare class Catalog {
408
425
  category: string;
409
426
  filter?: boolean;
410
427
  }): Promise<any>;
428
+ /**
429
+ * @param {Object} arg - Arg object.
430
+ * @param {number} arg.itemId - Id of the product to be updated.
431
+ * @param {ProductCreateUpdate} arg.body
432
+ * @summary: Edit a product.
433
+ * @description: This API allows to edit product.
434
+ */
435
+ editProduct({ itemId, body }?: {
436
+ itemId: number;
437
+ body: ProductCreateUpdate;
438
+ }): Promise<any>;
411
439
  /**
412
440
  * @param {Object} arg - Arg object.
413
441
  * @param {string} [arg.itemCode] - Item code of the product.
@@ -421,17 +449,6 @@ declare class Catalog {
421
449
  itemId: number;
422
450
  brandUid?: number;
423
451
  }): Promise<any>;
424
- /**
425
- * @param {Object} arg - Arg object.
426
- * @param {number} arg.itemId - Id of the product to be updated.
427
- * @param {ProductCreateUpdate} arg.body
428
- * @summary: Edit a product.
429
- * @description: This API allows to edit product.
430
- */
431
- editProduct({ itemId, body }?: {
432
- itemId: number;
433
- body: any;
434
- }): Promise<any>;
435
452
  /**
436
453
  * @param {Object} arg - Arg object.
437
454
  * @param {number} arg.itemId - Id of the product to be updated.
@@ -464,6 +481,16 @@ declare class Catalog {
464
481
  }): Promise<any>;
465
482
  /**
466
483
  * @param {Object} arg - Arg object.
484
+ * @param {BulkJob} arg.body
485
+ * @summary: Create a Bulk product to upload job.
486
+ * @description: This API helps to create a bulk products upload job.
487
+ */
488
+ createBulkProductUploadJob({ body }?: {
489
+ body: BulkJob;
490
+ }): Promise<any>;
491
+ /**
492
+ * @param {Object} arg - Arg object.
493
+ * @param {string} [arg.search] - Search string to filter the results by batch id
467
494
  * @param {number} [arg.pageNo] - The page number to navigate through the
468
495
  * given set of results
469
496
  * @param {number} [arg.pageSize] - Number of items to retrieve in each
@@ -471,27 +498,24 @@ declare class Catalog {
471
498
  * @summary: Get a list of all bulk product upload jobs.
472
499
  * @description: This API helps to get bulk product upload jobs data.
473
500
  */
474
- getProductBulkUploadHistory({ pageNo, pageSize }?: {
501
+ getProductBulkUploadHistory({ search, pageNo, pageSize }?: {
502
+ search?: string;
475
503
  pageNo?: number;
476
504
  pageSize?: number;
477
505
  }): Promise<any>;
478
506
  /**
479
507
  * @param {Object} arg - Arg object.
508
+ * @param {string} arg.department - Department of the product to be uploaded.
509
+ * @param {string} arg.productType - Product type of the product to be
510
+ * uploaded i.e. set, standard , digital.
480
511
  * @param {BulkJob} arg.body
481
512
  * @summary: Create a Bulk product to upload job.
482
513
  * @description: This API helps to create a bulk products upload job.
483
514
  */
484
- createBulkProductUploadJob({ body }?: {
485
- body: any;
486
- }): Promise<any>;
487
- /**
488
- * @param {Object} arg - Arg object.
489
- * @param {number} arg.batchId - Batch Id of the bulk product job to be deleted.
490
- * @summary: Delete Bulk product job.
491
- * @description: This API allows to delete bulk product job associated with company.
492
- */
493
- deleteProductBulkJob({ batchId }?: {
494
- batchId: number;
515
+ uploadBulkProducts({ department, productType, body }?: {
516
+ department: string;
517
+ productType: string;
518
+ body: BulkJob;
495
519
  }): Promise<any>;
496
520
  /**
497
521
  * @param {Object} arg - Arg object.
@@ -502,7 +526,16 @@ declare class Catalog {
502
526
  */
503
527
  createProductsInBulk({ batchId, body }?: {
504
528
  batchId: string;
505
- body: any;
529
+ body: BulkProductRequest;
530
+ }): Promise<any>;
531
+ /**
532
+ * @param {Object} arg - Arg object.
533
+ * @param {number} arg.batchId - Batch Id of the bulk product job to be deleted.
534
+ * @summary: Delete Bulk product job.
535
+ * @description: This API allows to delete bulk product job associated with company.
536
+ */
537
+ deleteProductBulkJob({ batchId }?: {
538
+ batchId: number;
506
539
  }): Promise<any>;
507
540
  /**
508
541
  * @param {Object} arg - Arg object.
@@ -510,6 +543,15 @@ declare class Catalog {
510
543
  * @description: This API helps to get tags data associated to a particular company.
511
544
  */
512
545
  getProductTags({}?: any): Promise<any>;
546
+ /**
547
+ * @param {Object} arg - Arg object.
548
+ * @param {ProductBulkAssets} arg.body
549
+ * @summary: Create a Bulk asset upload Job.
550
+ * @description: This API helps to create a bulk asset upload job.
551
+ */
552
+ createProductAssetsInBulk({ body }?: {
553
+ body: ProductBulkAssets;
554
+ }): Promise<any>;
513
555
  /**
514
556
  * @param {Object} arg - Arg object.
515
557
  * @param {number} [arg.pageNo] - The page number to navigate through the
@@ -523,15 +565,6 @@ declare class Catalog {
523
565
  pageNo?: number;
524
566
  pageSize?: number;
525
567
  }): Promise<any>;
526
- /**
527
- * @param {Object} arg - Arg object.
528
- * @param {ProductBulkAssets} arg.body
529
- * @summary: Create a Bulk asset upload Job.
530
- * @description: This API helps to create a bulk asset upload job.
531
- */
532
- createProductAssetsInBulk({ body }?: {
533
- body: any;
534
- }): Promise<any>;
535
568
  /**
536
569
  * @param {Object} arg - Arg object.
537
570
  * @param {number} arg.itemId - Item Id of the product associated with size
@@ -544,6 +577,19 @@ declare class Catalog {
544
577
  itemId: number;
545
578
  size: number;
546
579
  }): Promise<any>;
580
+ /**
581
+ * @param {Object} arg - Arg object.
582
+ * @param {number} arg.itemId - Item code of the product of which size is to be get.
583
+ * @param {string} arg.size - Size in which inventory is to be added.
584
+ * @param {InventoryRequest} arg.body
585
+ * @summary: Add Inventory for particular size and store.
586
+ * @description: This API allows add Inventory for particular size and store.
587
+ */
588
+ addInventory({ itemId, size, body }?: {
589
+ itemId: number;
590
+ size: string;
591
+ body: InventoryRequest;
592
+ }): Promise<any>;
547
593
  /**
548
594
  * @param {Object} arg - Arg object.
549
595
  * @param {string} arg.itemId - Item code of the product of which size is to be get.
@@ -565,19 +611,6 @@ declare class Catalog {
565
611
  q?: string;
566
612
  sellable?: boolean;
567
613
  }): Promise<any>;
568
- /**
569
- * @param {Object} arg - Arg object.
570
- * @param {number} arg.itemId - Item code of the product of which size is to be get.
571
- * @param {string} arg.size - Size in which inventory is to be added.
572
- * @param {InventoryRequest} arg.body
573
- * @summary: Add Inventory for particular size and store.
574
- * @description: This API allows add Inventory for particular size and store.
575
- */
576
- addInventory({ itemId, size, body }?: {
577
- itemId: number;
578
- size: string;
579
- body: any;
580
- }): Promise<any>;
581
614
  /**
582
615
  * @param {Object} arg - Arg object.
583
616
  * @param {string} arg.itemId - Item code of the product of which size is to be get.
@@ -600,6 +633,32 @@ declare class Catalog {
600
633
  q?: string;
601
634
  locationIds?: number[];
602
635
  }): Promise<any>;
636
+ /**
637
+ * @param {Object} arg - Arg object.
638
+ * @param {string} [arg.itemId] - Item code of the product of which size is to be get.
639
+ * @param {string} [arg.size] - Size of which inventory is to get.
640
+ * @param {number} [arg.pageNo] - The page number to navigate through the
641
+ * given set of results
642
+ * @param {number} [arg.pageSize] - Number of items to retrieve in each
643
+ * page. Default is 12.
644
+ * @param {string} [arg.q] - Search with help of store code.
645
+ * @param {boolean} [arg.sellable] - Filter on whether product is in stock or not.
646
+ * @param {number[]} [arg.storeIds] - The Store Id of products to fetch inventory.
647
+ * @param {string} [arg.sizeIdentifier] - Size Identifier (Seller Identifier
648
+ * or Primary Identifier) of which inventory is to get.
649
+ * @summary: Get Inventory for company
650
+ * @description: This API allows get Inventories data for particular company.
651
+ */
652
+ getInventories({ itemId, size, pageNo, pageSize, q, sellable, storeIds, sizeIdentifier, }?: {
653
+ itemId?: string;
654
+ size?: string;
655
+ pageNo?: number;
656
+ pageSize?: number;
657
+ q?: string;
658
+ sellable?: boolean;
659
+ storeIds?: number[];
660
+ sizeIdentifier?: string;
661
+ }): Promise<any>;
603
662
  /**
604
663
  * @param {Object} arg - Arg object.
605
664
  * @param {string} arg.size - Size that is to be deleted.
@@ -615,6 +674,15 @@ declare class Catalog {
615
674
  itemId: number;
616
675
  locationId: number;
617
676
  }): Promise<any>;
677
+ /**
678
+ * @param {Object} arg - Arg object.
679
+ * @param {BulkJob} arg.body
680
+ * @summary: Create a Bulk Inventory upload Job.
681
+ * @description: This API helps to create a bulk Inventory upload job.
682
+ */
683
+ createBulkInventoryJob({ body }?: {
684
+ body: BulkJob;
685
+ }): Promise<any>;
618
686
  /**
619
687
  * @param {Object} arg - Arg object.
620
688
  * @param {number} [arg.pageNo] - The page number to navigate through the
@@ -630,12 +698,14 @@ declare class Catalog {
630
698
  }): Promise<any>;
631
699
  /**
632
700
  * @param {Object} arg - Arg object.
633
- * @param {BulkJob} arg.body
634
- * @summary: Create a Bulk Inventory upload Job.
635
- * @description: This API helps to create a bulk Inventory upload job.
701
+ * @param {string} arg.batchId - Batch Id of the bulk create job.
702
+ * @param {InventoryBulkRequest} arg.body
703
+ * @summary: Create products in bulk associated with given batch Id.
704
+ * @description: This API helps to create products in bulk push to kafka for approval/creation.
636
705
  */
637
- createBulkInventoryJob({ body }?: {
638
- body: any;
706
+ createBulkInventory({ batchId, body }?: {
707
+ batchId: string;
708
+ body: InventoryBulkRequest;
639
709
  }): Promise<any>;
640
710
  /**
641
711
  * @param {Object} arg - Arg object.
@@ -648,14 +718,12 @@ declare class Catalog {
648
718
  }): Promise<any>;
649
719
  /**
650
720
  * @param {Object} arg - Arg object.
651
- * @param {string} arg.batchId - Batch Id of the bulk create job.
652
- * @param {InventoryBulkRequest} arg.body
653
- * @summary: Create products in bulk associated with given batch Id.
654
- * @description: This API helps to create products in bulk push to kafka for approval/creation.
721
+ * @param {InventoryExportRequest} arg.body
722
+ * @summary: Create a Inventory export Job.
723
+ * @description: This API helps to create a Inventory export job.
655
724
  */
656
- createBulkInventory({ batchId, body }?: {
657
- batchId: string;
658
- body: any;
725
+ createInventoryExportJob({ body }?: {
726
+ body: InventoryExportRequest;
659
727
  }): Promise<any>;
660
728
  /**
661
729
  * @param {Object} arg - Arg object.
@@ -663,15 +731,6 @@ declare class Catalog {
663
731
  * @description: This API helps to get Inventory export history.
664
732
  */
665
733
  getInventoryExport({}?: any): Promise<any>;
666
- /**
667
- * @param {Object} arg - Arg object.
668
- * @param {InventoryExportRequest} arg.body
669
- * @summary: Create a Inventory export Job.
670
- * @description: This API helps to create a Inventory export job.
671
- */
672
- createInventoryExportJob({ body }?: {
673
- body: any;
674
- }): Promise<any>;
675
734
  /**
676
735
  * @param {Object} arg - Arg object.
677
736
  * @param {string} [arg.filterType] - Filter type from any one of ['brand',
@@ -691,10 +750,10 @@ declare class Catalog {
691
750
  * @summary: Add Inventory for particular size and store.
692
751
  * @description: This API allows add Inventory for particular size and store.
693
752
  */
694
- deleteRealtimeInventory({ itemId, sellerIdentifier, body }?: {
753
+ updateRealtimeInventory({ itemId, sellerIdentifier, body }?: {
695
754
  itemId: number;
696
755
  sellerIdentifier: string;
697
- body: any;
756
+ body: InventoryRequestSchemaV2;
698
757
  }): Promise<any>;
699
758
  /**
700
759
  * @param {Object} arg - Arg object.
@@ -705,10 +764,10 @@ declare class Catalog {
705
764
  * @summary: Add Inventory for particular size and store.
706
765
  * @description: This API allows add Inventory for particular size and store.
707
766
  */
708
- updateRealtimeInventory({ itemId, sellerIdentifier, body }?: {
767
+ deleteRealtimeInventory({ itemId, sellerIdentifier, body }?: {
709
768
  itemId: number;
710
769
  sellerIdentifier: string;
711
- body: any;
770
+ body: InventoryRequestSchemaV2;
712
771
  }): Promise<any>;
713
772
  /**
714
773
  * @param {Object} arg - Arg object.
@@ -717,7 +776,16 @@ declare class Catalog {
717
776
  * @description: This API allows add Inventory for particular size and store.
718
777
  */
719
778
  updateInventories({ body }?: {
720
- body: any;
779
+ body: InventoryRequestSchemaV2;
780
+ }): Promise<any>;
781
+ /**
782
+ * @param {Object} arg - Arg object.
783
+ * @param {HsnUpsert} arg.body
784
+ * @summary: Create Hsn Code.
785
+ * @description: Create Hsn Code.
786
+ */
787
+ createHsnCode({ body }?: {
788
+ body: HsnUpsert;
721
789
  }): Promise<any>;
722
790
  /**
723
791
  * @param {Object} arg - Arg object.
@@ -734,12 +802,14 @@ declare class Catalog {
734
802
  }): Promise<any>;
735
803
  /**
736
804
  * @param {Object} arg - Arg object.
805
+ * @param {string} arg.id - Unique id
737
806
  * @param {HsnUpsert} arg.body
738
- * @summary: Create Hsn Code.
739
- * @description: Create Hsn Code.
807
+ * @summary: Update Hsn Code.
808
+ * @description: Update Hsn Code.
740
809
  */
741
- createHsnCode({ body }?: {
742
- body: any;
810
+ updateHsnCode({ id, body }?: {
811
+ id: string;
812
+ body: HsnUpsert;
743
813
  }): Promise<any>;
744
814
  /**
745
815
  * @param {Object} arg - Arg object.
@@ -750,17 +820,6 @@ declare class Catalog {
750
820
  getHsnCode({ id }?: {
751
821
  id: string;
752
822
  }): Promise<any>;
753
- /**
754
- * @param {Object} arg - Arg object.
755
- * @param {string} arg.id - Unique id
756
- * @param {HsnUpsert} arg.body
757
- * @summary: Update Hsn Code.
758
- * @description: Update Hsn Code.
759
- */
760
- updateHsnCode({ id, body }?: {
761
- id: string;
762
- body: any;
763
- }): Promise<any>;
764
823
  /**
765
824
  * @param {Object} arg - Arg object.
766
825
  * @param {BulkHsnUpsert} arg.body
@@ -768,7 +827,7 @@ declare class Catalog {
768
827
  * @description: Bulk Create or Update Hsn Code.
769
828
  */
770
829
  bulkHsnCode({ body }?: {
771
- body: any;
830
+ body: BulkHsnUpsert;
772
831
  }): Promise<any>;
773
832
  /**
774
833
  * @param {Object} arg - Arg object.
@@ -801,6 +860,6 @@ declare class Catalog {
801
860
  * @description:
802
861
  */
803
862
  getOptimalLocations({ body }?: {
804
- body: any;
863
+ body: AssignStore;
805
864
  }): Promise<any>;
806
865
  }