@gofynd/fdk-client-javascript 0.1.35 → 0.1.37
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.
- package/README.md +1 -1
- package/documentation/application/CART.md +272 -249
- package/documentation/application/CATALOG.md +417 -413
- package/documentation/application/COMMON.md +4 -0
- package/documentation/application/COMMUNICATION.md +4 -0
- package/documentation/application/CONFIGURATION.md +4 -0
- package/documentation/application/CONTENT.md +7 -20
- package/documentation/application/FILESTORAGE.md +85 -0
- package/documentation/application/LEAD.md +6 -2
- package/documentation/application/LOGISTIC.md +427 -101
- package/documentation/application/ORDER.md +292 -288
- package/documentation/application/PAYMENT.md +445 -259
- package/documentation/application/POSCART.md +309 -286
- package/documentation/application/README.md +1 -1
- package/documentation/application/REWARDS.md +153 -160
- package/documentation/application/SHARE.md +4 -0
- package/documentation/application/THEME.md +4 -0
- package/documentation/application/USER.md +4 -0
- package/documentation/platform/ANALYTICS.md +4 -0
- package/documentation/platform/AUDITTRAIL.md +6 -2
- package/documentation/platform/BILLING.md +4 -0
- package/documentation/platform/CART.md +476 -459
- package/documentation/platform/CATALOG.md +4138 -2968
- package/documentation/platform/COMMON.md +4 -0
- package/documentation/platform/COMMUNICATION.md +4 -0
- package/documentation/platform/COMPANYPROFILE.md +258 -206
- package/documentation/platform/CONFIGURATION.md +4 -0
- package/documentation/platform/CONTENT.md +8 -21
- package/documentation/platform/DISCOUNT.md +4 -0
- package/documentation/platform/FILESTORAGE.md +85 -0
- package/documentation/platform/INVENTORY.md +4 -0
- package/documentation/platform/LEAD.md +6 -2
- package/documentation/platform/ORDER.md +6298 -1448
- package/documentation/platform/PARTNER.md +12 -8
- package/documentation/platform/PAYMENT.md +107 -103
- package/documentation/platform/README.md +2 -2
- package/documentation/platform/REWARDS.md +219 -152
- package/documentation/platform/SHARE.md +4 -0
- package/documentation/platform/THEME.md +4 -0
- package/documentation/platform/USER.md +4 -0
- package/documentation/platform/WEBHOOK.md +4 -0
- package/documentation/public/CONFIGURATION.md +4 -0
- package/documentation/public/INVENTORY.md +4 -0
- package/documentation/public/WEBHOOK.md +4 -0
- package/package.json +2 -2
- package/sdk/application/ApplicationAPIClient.js +3 -0
- package/sdk/application/ApplicationClient.d.ts +1 -0
- package/sdk/application/ApplicationClient.js +11 -1
- package/sdk/application/ApplicationConfig.d.ts +1 -0
- package/sdk/application/ApplicationConfig.js +1 -0
- package/sdk/application/ApplicationModels.d.ts +94 -85
- package/sdk/application/ApplicationModels.js +1909 -1792
- package/sdk/application/client/CartApplicationClient.d.ts +36 -36
- package/sdk/application/client/CatalogApplicationClient.d.ts +39 -39
- package/sdk/application/client/CatalogApplicationClient.js +16 -16
- package/sdk/application/client/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/client/CommunicationApplicationClient.d.ts +5 -5
- package/sdk/application/client/ConfigurationApplicationClient.d.ts +17 -17
- package/sdk/application/client/ContentApplicationClient.d.ts +19 -19
- package/sdk/application/client/FileStorageApplicationClient.d.ts +14 -6
- package/sdk/application/client/FileStorageApplicationClient.js +2 -0
- package/sdk/application/client/LeadApplicationClient.d.ts +10 -10
- package/sdk/application/client/LogisticApplicationClient.d.ts +32 -21
- package/sdk/application/client/LogisticApplicationClient.js +62 -27
- package/sdk/application/client/OrderApplicationClient.d.ts +15 -15
- package/sdk/application/client/OrderApplicationClient.js +1 -1
- package/sdk/application/client/PaymentApplicationClient.d.ts +79 -57
- package/sdk/application/client/PaymentApplicationClient.js +66 -0
- package/sdk/application/client/PosCartApplicationClient.d.ts +38 -38
- package/sdk/application/client/RewardsApplicationClient.d.ts +34 -34
- package/sdk/application/client/RewardsApplicationClient.js +77 -77
- package/sdk/application/client/ShareApplicationClient.d.ts +8 -8
- package/sdk/application/client/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/client/UserApplicationClient.d.ts +63 -63
- package/sdk/application/models/CatalogValidator.d.ts +1 -1
- package/sdk/application/models/CatalogValidator.js +2 -2
- package/sdk/application/models/LogisticValidator.d.ts +2 -1
- package/sdk/application/models/LogisticValidator.js +11 -6
- package/sdk/application/models/PaymentValidator.d.ts +2 -0
- package/sdk/application/models/PaymentValidator.js +12 -0
- package/sdk/application/models/RewardsValidator.d.ts +3 -3
- package/sdk/application/models/RewardsValidator.js +12 -12
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +7962 -6505
- package/sdk/platform/PlatformApplicationClient.js +4377 -3635
- package/sdk/platform/PlatformApplicationModels.d.ts +26 -31
- package/sdk/platform/PlatformApplicationModels.js +5530 -4134
- package/sdk/platform/PlatformClient.d.ts +3495 -2780
- package/sdk/platform/PlatformClient.js +3985 -3108
- package/sdk/platform/PlatformModels.d.ts +354 -273
- package/sdk/platform/PlatformModels.js +5635 -4211
- package/sdk/platform/client/AnalyticsPlatformClient.d.ts +5 -5
- package/sdk/platform/client/AuditTrailPlatformClient.d.ts +1 -1
- package/sdk/platform/client/BillingPlatformClient.d.ts +4 -4
- package/sdk/platform/client/CatalogPlatformClient.d.ts +222 -154
- package/sdk/platform/client/CatalogPlatformClient.js +473 -295
- package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +8 -8
- package/sdk/platform/client/ConfigurationPlatformClient.d.ts +9 -9
- package/sdk/platform/client/DiscountPlatformClient.d.ts +4 -4
- package/sdk/platform/client/FileStoragePlatformClient.d.ts +20 -4
- package/sdk/platform/client/FileStoragePlatformClient.js +49 -0
- package/sdk/platform/client/InventoryPlatformClient.d.ts +3 -3
- package/sdk/platform/client/LeadPlatformClient.d.ts +6 -6
- package/sdk/platform/client/OrderPlatformClient.d.ts +557 -131
- package/sdk/platform/client/OrderPlatformClient.js +1551 -247
- package/sdk/platform/client/PaymentPlatformClient.d.ts +4 -4
- package/sdk/platform/client/WebhookPlatformClient.d.ts +2 -2
- package/sdk/platform/models/CatalogValidator.d.ts +26 -22
- package/sdk/platform/models/CatalogValidator.js +109 -72
- package/sdk/platform/models/OrderValidator.d.ts +43 -11
- package/sdk/platform/models/OrderValidator.js +312 -51
- package/sdk/public/client/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/client/InventoryPublicClient.d.ts +7 -7
- package/sdk/public/client/WebhookPublicClient.d.ts +3 -3
- package/tests/common/schema/action-url.json +15 -0
- 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 {
|
|
20
|
-
*
|
|
21
|
-
* @
|
|
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
|
-
|
|
24
|
-
|
|
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 {
|
|
39
|
-
*
|
|
40
|
-
* @
|
|
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
|
-
|
|
45
|
-
|
|
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:
|
|
71
|
-
* @description: This API allows to
|
|
80
|
+
* @summary: Edit a size guide.
|
|
81
|
+
* @description: This API allows to edit a size guide.
|
|
72
82
|
*/
|
|
73
|
-
|
|
74
|
-
|
|
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:
|
|
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:
|
|
217
|
-
* @description:
|
|
226
|
+
* @summary: Update the department by their uid.
|
|
227
|
+
* @description: Update the department by their uid using this API.
|
|
218
228
|
*/
|
|
219
|
-
|
|
220
|
-
|
|
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
|
-
|
|
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:
|
|
336
|
-
* @description:
|
|
345
|
+
* @summary: Update product categories
|
|
346
|
+
* @description: Update a product category using this apu
|
|
337
347
|
*/
|
|
338
|
-
|
|
339
|
-
|
|
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 {
|
|
353
|
-
* @
|
|
354
|
-
* @
|
|
355
|
-
* @description: Update a product category using this apu
|
|
363
|
+
* @param {ProductCreateUpdateSchemaV2} arg.body
|
|
364
|
+
* @summary: Create a product.
|
|
365
|
+
* @description: This API allows to create product.
|
|
356
366
|
*/
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
body: any;
|
|
367
|
+
createProduct({ body }?: {
|
|
368
|
+
body: ProductCreateUpdateSchemaV2;
|
|
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 {
|
|
393
|
-
* @
|
|
394
|
-
* @
|
|
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
|
-
|
|
397
|
-
|
|
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.
|
|
@@ -410,35 +427,44 @@ declare class Catalog {
|
|
|
410
427
|
}): Promise<any>;
|
|
411
428
|
/**
|
|
412
429
|
* @param {Object} arg - Arg object.
|
|
413
|
-
* @param {
|
|
414
|
-
* @
|
|
415
|
-
* @
|
|
416
|
-
* @summary: Get a single product.
|
|
417
|
-
* @description: This API helps to get data associated to a particular product.
|
|
430
|
+
* @param {number} arg.itemId - Id of the product to be updated.
|
|
431
|
+
* @summary: Delete a product.
|
|
432
|
+
* @description: This API allows to delete product.
|
|
418
433
|
*/
|
|
419
|
-
|
|
420
|
-
itemCode?: string;
|
|
434
|
+
deleteProduct({ itemId }?: {
|
|
421
435
|
itemId: number;
|
|
422
|
-
brandUid?: number;
|
|
423
436
|
}): Promise<any>;
|
|
424
437
|
/**
|
|
425
438
|
* @param {Object} arg - Arg object.
|
|
426
439
|
* @param {number} arg.itemId - Id of the product to be updated.
|
|
427
|
-
* @param {
|
|
440
|
+
* @param {ProductCreateUpdateSchemaV2} arg.body
|
|
428
441
|
* @summary: Edit a product.
|
|
429
442
|
* @description: This API allows to edit product.
|
|
430
443
|
*/
|
|
431
444
|
editProduct({ itemId, body }?: {
|
|
432
445
|
itemId: number;
|
|
433
|
-
body:
|
|
446
|
+
body: ProductCreateUpdateSchemaV2;
|
|
447
|
+
}): Promise<any>;
|
|
448
|
+
/**
|
|
449
|
+
* @param {Object} arg - Arg object.
|
|
450
|
+
* @param {number} arg.itemId - Item Id of the product.
|
|
451
|
+
* @param {number} [arg.brandUid] - Brand Id of the product.
|
|
452
|
+
* @param {string} [arg.itemCode] - Item code of the product.
|
|
453
|
+
* @summary: Get a single product.
|
|
454
|
+
* @description: This API helps to get data associated to a particular product.
|
|
455
|
+
*/
|
|
456
|
+
getProduct({ itemId, brandUid, itemCode }?: {
|
|
457
|
+
itemId: number;
|
|
458
|
+
brandUid?: number;
|
|
459
|
+
itemCode?: string;
|
|
434
460
|
}): Promise<any>;
|
|
435
461
|
/**
|
|
436
462
|
* @param {Object} arg - Arg object.
|
|
437
463
|
* @param {number} arg.itemId - Id of the product to be updated.
|
|
438
|
-
* @summary:
|
|
439
|
-
* @description: This API allows to
|
|
464
|
+
* @summary: All Sizes for a given Product
|
|
465
|
+
* @description: This API allows to get All Sizes for a given Product.
|
|
440
466
|
*/
|
|
441
|
-
|
|
467
|
+
allSizes({ itemId }?: {
|
|
442
468
|
itemId: number;
|
|
443
469
|
}): Promise<any>;
|
|
444
470
|
/**
|
|
@@ -464,6 +490,16 @@ declare class Catalog {
|
|
|
464
490
|
}): Promise<any>;
|
|
465
491
|
/**
|
|
466
492
|
* @param {Object} arg - Arg object.
|
|
493
|
+
* @param {BulkJob} arg.body
|
|
494
|
+
* @summary: Create a Bulk product to upload job.
|
|
495
|
+
* @description: This API helps to create a bulk products upload job.
|
|
496
|
+
*/
|
|
497
|
+
createBulkProductUploadJob({ body }?: {
|
|
498
|
+
body: BulkJob;
|
|
499
|
+
}): Promise<any>;
|
|
500
|
+
/**
|
|
501
|
+
* @param {Object} arg - Arg object.
|
|
502
|
+
* @param {string} [arg.search] - Search string to filter the results by batch id
|
|
467
503
|
* @param {number} [arg.pageNo] - The page number to navigate through the
|
|
468
504
|
* given set of results
|
|
469
505
|
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
@@ -471,27 +507,24 @@ declare class Catalog {
|
|
|
471
507
|
* @summary: Get a list of all bulk product upload jobs.
|
|
472
508
|
* @description: This API helps to get bulk product upload jobs data.
|
|
473
509
|
*/
|
|
474
|
-
getProductBulkUploadHistory({ pageNo, pageSize }?: {
|
|
510
|
+
getProductBulkUploadHistory({ search, pageNo, pageSize }?: {
|
|
511
|
+
search?: string;
|
|
475
512
|
pageNo?: number;
|
|
476
513
|
pageSize?: number;
|
|
477
514
|
}): Promise<any>;
|
|
478
515
|
/**
|
|
479
516
|
* @param {Object} arg - Arg object.
|
|
517
|
+
* @param {string} arg.department - Department of the product to be uploaded.
|
|
518
|
+
* @param {string} arg.productType - Product type of the product to be
|
|
519
|
+
* uploaded i.e. set, standard , digital.
|
|
480
520
|
* @param {BulkJob} arg.body
|
|
481
521
|
* @summary: Create a Bulk product to upload job.
|
|
482
522
|
* @description: This API helps to create a bulk products upload job.
|
|
483
523
|
*/
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
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;
|
|
524
|
+
uploadBulkProducts({ department, productType, body }?: {
|
|
525
|
+
department: string;
|
|
526
|
+
productType: string;
|
|
527
|
+
body: BulkJob;
|
|
495
528
|
}): Promise<any>;
|
|
496
529
|
/**
|
|
497
530
|
* @param {Object} arg - Arg object.
|
|
@@ -502,7 +535,16 @@ declare class Catalog {
|
|
|
502
535
|
*/
|
|
503
536
|
createProductsInBulk({ batchId, body }?: {
|
|
504
537
|
batchId: string;
|
|
505
|
-
body:
|
|
538
|
+
body: BulkProductRequest;
|
|
539
|
+
}): Promise<any>;
|
|
540
|
+
/**
|
|
541
|
+
* @param {Object} arg - Arg object.
|
|
542
|
+
* @param {number} arg.batchId - Batch Id of the bulk product job to be deleted.
|
|
543
|
+
* @summary: Delete Bulk product job.
|
|
544
|
+
* @description: This API allows to delete bulk product job associated with company.
|
|
545
|
+
*/
|
|
546
|
+
deleteProductBulkJob({ batchId }?: {
|
|
547
|
+
batchId: number;
|
|
506
548
|
}): Promise<any>;
|
|
507
549
|
/**
|
|
508
550
|
* @param {Object} arg - Arg object.
|
|
@@ -510,6 +552,15 @@ declare class Catalog {
|
|
|
510
552
|
* @description: This API helps to get tags data associated to a particular company.
|
|
511
553
|
*/
|
|
512
554
|
getProductTags({}?: any): Promise<any>;
|
|
555
|
+
/**
|
|
556
|
+
* @param {Object} arg - Arg object.
|
|
557
|
+
* @param {ProductBulkAssets} arg.body
|
|
558
|
+
* @summary: Create a Bulk asset upload Job.
|
|
559
|
+
* @description: This API helps to create a bulk asset upload job.
|
|
560
|
+
*/
|
|
561
|
+
createProductAssetsInBulk({ body }?: {
|
|
562
|
+
body: ProductBulkAssets;
|
|
563
|
+
}): Promise<any>;
|
|
513
564
|
/**
|
|
514
565
|
* @param {Object} arg - Arg object.
|
|
515
566
|
* @param {number} [arg.pageNo] - The page number to navigate through the
|
|
@@ -523,26 +574,30 @@ declare class Catalog {
|
|
|
523
574
|
pageNo?: number;
|
|
524
575
|
pageSize?: number;
|
|
525
576
|
}): 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
577
|
/**
|
|
536
578
|
* @param {Object} arg - Arg object.
|
|
537
579
|
* @param {number} arg.itemId - Item Id of the product associated with size
|
|
538
580
|
* to be deleted.
|
|
539
|
-
* @param {
|
|
581
|
+
* @param {string} arg.size - Size to be deleted.
|
|
540
582
|
* @summary: Delete a Size associated with product.
|
|
541
583
|
* @description: This API allows to delete size associated with product.
|
|
542
584
|
*/
|
|
543
585
|
deleteSize({ itemId, size }?: {
|
|
544
586
|
itemId: number;
|
|
545
|
-
size:
|
|
587
|
+
size: string;
|
|
588
|
+
}): Promise<any>;
|
|
589
|
+
/**
|
|
590
|
+
* @param {Object} arg - Arg object.
|
|
591
|
+
* @param {number} arg.itemId - Item code of the product of which size is to be get.
|
|
592
|
+
* @param {string} arg.size - Size in which inventory is to be added.
|
|
593
|
+
* @param {InventoryRequest} arg.body
|
|
594
|
+
* @summary: Add Inventory for particular size and store.
|
|
595
|
+
* @description: This API allows add Inventory for particular size and store.
|
|
596
|
+
*/
|
|
597
|
+
addInventory({ itemId, size, body }?: {
|
|
598
|
+
itemId: number;
|
|
599
|
+
size: string;
|
|
600
|
+
body: InventoryRequest;
|
|
546
601
|
}): Promise<any>;
|
|
547
602
|
/**
|
|
548
603
|
* @param {Object} arg - Arg object.
|
|
@@ -565,19 +620,6 @@ declare class Catalog {
|
|
|
565
620
|
q?: string;
|
|
566
621
|
sellable?: boolean;
|
|
567
622
|
}): 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
623
|
/**
|
|
582
624
|
* @param {Object} arg - Arg object.
|
|
583
625
|
* @param {string} arg.itemId - Item code of the product of which size is to be get.
|
|
@@ -600,6 +642,32 @@ declare class Catalog {
|
|
|
600
642
|
q?: string;
|
|
601
643
|
locationIds?: number[];
|
|
602
644
|
}): Promise<any>;
|
|
645
|
+
/**
|
|
646
|
+
* @param {Object} arg - Arg object.
|
|
647
|
+
* @param {string} [arg.itemId] - Item code of the product of which size is to be get.
|
|
648
|
+
* @param {string} [arg.size] - Size of which inventory is to get.
|
|
649
|
+
* @param {number} [arg.pageNo] - The page number to navigate through the
|
|
650
|
+
* given set of results
|
|
651
|
+
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
652
|
+
* page. Default is 12.
|
|
653
|
+
* @param {string} [arg.q] - Search with help of store code.
|
|
654
|
+
* @param {boolean} [arg.sellable] - Filter on whether product is in stock or not.
|
|
655
|
+
* @param {number[]} [arg.storeIds] - The Store Id of products to fetch inventory.
|
|
656
|
+
* @param {string} [arg.sizeIdentifier] - Size Identifier (Seller Identifier
|
|
657
|
+
* or Primary Identifier) of which inventory is to get.
|
|
658
|
+
* @summary: Get Inventory for company
|
|
659
|
+
* @description: This API allows get Inventories data for particular company.
|
|
660
|
+
*/
|
|
661
|
+
getInventories({ itemId, size, pageNo, pageSize, q, sellable, storeIds, sizeIdentifier, }?: {
|
|
662
|
+
itemId?: string;
|
|
663
|
+
size?: string;
|
|
664
|
+
pageNo?: number;
|
|
665
|
+
pageSize?: number;
|
|
666
|
+
q?: string;
|
|
667
|
+
sellable?: boolean;
|
|
668
|
+
storeIds?: number[];
|
|
669
|
+
sizeIdentifier?: string;
|
|
670
|
+
}): Promise<any>;
|
|
603
671
|
/**
|
|
604
672
|
* @param {Object} arg - Arg object.
|
|
605
673
|
* @param {string} arg.size - Size that is to be deleted.
|
|
@@ -615,6 +683,15 @@ declare class Catalog {
|
|
|
615
683
|
itemId: number;
|
|
616
684
|
locationId: number;
|
|
617
685
|
}): Promise<any>;
|
|
686
|
+
/**
|
|
687
|
+
* @param {Object} arg - Arg object.
|
|
688
|
+
* @param {BulkJob} arg.body
|
|
689
|
+
* @summary: Create a Bulk Inventory upload Job.
|
|
690
|
+
* @description: This API helps to create a bulk Inventory upload job.
|
|
691
|
+
*/
|
|
692
|
+
createBulkInventoryJob({ body }?: {
|
|
693
|
+
body: BulkJob;
|
|
694
|
+
}): Promise<any>;
|
|
618
695
|
/**
|
|
619
696
|
* @param {Object} arg - Arg object.
|
|
620
697
|
* @param {number} [arg.pageNo] - The page number to navigate through the
|
|
@@ -630,12 +707,14 @@ declare class Catalog {
|
|
|
630
707
|
}): Promise<any>;
|
|
631
708
|
/**
|
|
632
709
|
* @param {Object} arg - Arg object.
|
|
633
|
-
* @param {
|
|
634
|
-
* @
|
|
635
|
-
* @
|
|
710
|
+
* @param {string} arg.batchId - Batch Id of the bulk create job.
|
|
711
|
+
* @param {InventoryBulkRequest} arg.body
|
|
712
|
+
* @summary: Create products in bulk associated with given batch Id.
|
|
713
|
+
* @description: This API helps to create products in bulk push to kafka for approval/creation.
|
|
636
714
|
*/
|
|
637
|
-
|
|
638
|
-
|
|
715
|
+
createBulkInventory({ batchId, body }?: {
|
|
716
|
+
batchId: string;
|
|
717
|
+
body: InventoryBulkRequest;
|
|
639
718
|
}): Promise<any>;
|
|
640
719
|
/**
|
|
641
720
|
* @param {Object} arg - Arg object.
|
|
@@ -648,14 +727,12 @@ declare class Catalog {
|
|
|
648
727
|
}): Promise<any>;
|
|
649
728
|
/**
|
|
650
729
|
* @param {Object} arg - Arg object.
|
|
651
|
-
* @param {
|
|
652
|
-
* @
|
|
653
|
-
* @
|
|
654
|
-
* @description: This API helps to create products in bulk push to kafka for approval/creation.
|
|
730
|
+
* @param {InventoryExportRequest} arg.body
|
|
731
|
+
* @summary: Create a Inventory export Job.
|
|
732
|
+
* @description: This API helps to create a Inventory export job.
|
|
655
733
|
*/
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
body: any;
|
|
734
|
+
createInventoryExportJob({ body }?: {
|
|
735
|
+
body: InventoryExportRequest;
|
|
659
736
|
}): Promise<any>;
|
|
660
737
|
/**
|
|
661
738
|
* @param {Object} arg - Arg object.
|
|
@@ -663,15 +740,6 @@ declare class Catalog {
|
|
|
663
740
|
* @description: This API helps to get Inventory export history.
|
|
664
741
|
*/
|
|
665
742
|
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
743
|
/**
|
|
676
744
|
* @param {Object} arg - Arg object.
|
|
677
745
|
* @param {string} [arg.filterType] - Filter type from any one of ['brand',
|
|
@@ -691,10 +759,10 @@ declare class Catalog {
|
|
|
691
759
|
* @summary: Add Inventory for particular size and store.
|
|
692
760
|
* @description: This API allows add Inventory for particular size and store.
|
|
693
761
|
*/
|
|
694
|
-
|
|
762
|
+
updateRealtimeInventory({ itemId, sellerIdentifier, body }?: {
|
|
695
763
|
itemId: number;
|
|
696
764
|
sellerIdentifier: string;
|
|
697
|
-
body:
|
|
765
|
+
body: InventoryRequestSchemaV2;
|
|
698
766
|
}): Promise<any>;
|
|
699
767
|
/**
|
|
700
768
|
* @param {Object} arg - Arg object.
|
|
@@ -705,10 +773,10 @@ declare class Catalog {
|
|
|
705
773
|
* @summary: Add Inventory for particular size and store.
|
|
706
774
|
* @description: This API allows add Inventory for particular size and store.
|
|
707
775
|
*/
|
|
708
|
-
|
|
776
|
+
deleteRealtimeInventory({ itemId, sellerIdentifier, body }?: {
|
|
709
777
|
itemId: number;
|
|
710
778
|
sellerIdentifier: string;
|
|
711
|
-
body:
|
|
779
|
+
body: InventoryRequestSchemaV2;
|
|
712
780
|
}): Promise<any>;
|
|
713
781
|
/**
|
|
714
782
|
* @param {Object} arg - Arg object.
|
|
@@ -717,7 +785,16 @@ declare class Catalog {
|
|
|
717
785
|
* @description: This API allows add Inventory for particular size and store.
|
|
718
786
|
*/
|
|
719
787
|
updateInventories({ body }?: {
|
|
720
|
-
body:
|
|
788
|
+
body: InventoryRequestSchemaV2;
|
|
789
|
+
}): Promise<any>;
|
|
790
|
+
/**
|
|
791
|
+
* @param {Object} arg - Arg object.
|
|
792
|
+
* @param {HsnUpsert} arg.body
|
|
793
|
+
* @summary: Create Hsn Code.
|
|
794
|
+
* @description: Create Hsn Code.
|
|
795
|
+
*/
|
|
796
|
+
createHsnCode({ body }?: {
|
|
797
|
+
body: HsnUpsert;
|
|
721
798
|
}): Promise<any>;
|
|
722
799
|
/**
|
|
723
800
|
* @param {Object} arg - Arg object.
|
|
@@ -734,12 +811,14 @@ declare class Catalog {
|
|
|
734
811
|
}): Promise<any>;
|
|
735
812
|
/**
|
|
736
813
|
* @param {Object} arg - Arg object.
|
|
814
|
+
* @param {string} arg.id - Unique id
|
|
737
815
|
* @param {HsnUpsert} arg.body
|
|
738
|
-
* @summary:
|
|
739
|
-
* @description:
|
|
816
|
+
* @summary: Update Hsn Code.
|
|
817
|
+
* @description: Update Hsn Code.
|
|
740
818
|
*/
|
|
741
|
-
|
|
742
|
-
|
|
819
|
+
updateHsnCode({ id, body }?: {
|
|
820
|
+
id: string;
|
|
821
|
+
body: HsnUpsert;
|
|
743
822
|
}): Promise<any>;
|
|
744
823
|
/**
|
|
745
824
|
* @param {Object} arg - Arg object.
|
|
@@ -750,17 +829,6 @@ declare class Catalog {
|
|
|
750
829
|
getHsnCode({ id }?: {
|
|
751
830
|
id: string;
|
|
752
831
|
}): 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
832
|
/**
|
|
765
833
|
* @param {Object} arg - Arg object.
|
|
766
834
|
* @param {BulkHsnUpsert} arg.body
|
|
@@ -768,7 +836,7 @@ declare class Catalog {
|
|
|
768
836
|
* @description: Bulk Create or Update Hsn Code.
|
|
769
837
|
*/
|
|
770
838
|
bulkHsnCode({ body }?: {
|
|
771
|
-
body:
|
|
839
|
+
body: BulkHsnUpsert;
|
|
772
840
|
}): Promise<any>;
|
|
773
841
|
/**
|
|
774
842
|
* @param {Object} arg - Arg object.
|
|
@@ -801,6 +869,6 @@ declare class Catalog {
|
|
|
801
869
|
* @description:
|
|
802
870
|
*/
|
|
803
871
|
getOptimalLocations({ body }?: {
|
|
804
|
-
body:
|
|
872
|
+
body: AssignStore;
|
|
805
873
|
}): Promise<any>;
|
|
806
874
|
}
|