@gofynd/fdk-client-javascript 3.4.0 → 3.4.2
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 +23 -26
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +3 -2
- package/sdk/application/ApplicationClient.js +25 -19
- package/sdk/common/utils.js +6 -3
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +111 -43
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +65 -33
- package/sdk/partner/PartnerClient.d.ts +5 -2
- package/sdk/partner/PartnerClient.js +21 -7
- package/sdk/platform/Cart/CartPlatformModel.d.ts +181 -10
- package/sdk/platform/Cart/CartPlatformModel.js +95 -8
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +40 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +260 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +68 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +49 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +26 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +27 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +2 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +14 -19
- package/sdk/platform/Content/ContentPlatformModel.js +6 -20
- package/sdk/platform/Order/OrderPlatformModel.d.ts +218 -17
- package/sdk/platform/Order/OrderPlatformModel.js +366 -14
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +15 -15
- package/sdk/platform/Order/OrderPlatformValidator.js +9 -9
- package/sdk/platform/PlatformClient.d.ts +5 -2
- package/sdk/platform/PlatformClient.js +32 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +50 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +22 -2
- package/sdk/public/PublicClient.d.ts +3 -2
- package/sdk/public/PublicClient.js +13 -7
|
@@ -1524,6 +1524,90 @@ class Catalog {
|
|
|
1524
1524
|
return response;
|
|
1525
1525
|
}
|
|
1526
1526
|
|
|
1527
|
+
/**
|
|
1528
|
+
* @param {CatalogPlatformApplicationValidator.FollowProductByIdParam} arg
|
|
1529
|
+
* - Arg object
|
|
1530
|
+
*
|
|
1531
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1532
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1533
|
+
* @returns {Promise<CatalogPlatformModel.FollowProduct>} - Success response
|
|
1534
|
+
* @name followProductById
|
|
1535
|
+
* @summary: Follow a Specific Product by ID
|
|
1536
|
+
* @description: This endpoint enables a user to follow a specific product identified by its unique item ID for a sales channel.
|
|
1537
|
+
* - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/followProductById/).
|
|
1538
|
+
*/
|
|
1539
|
+
async followProductById(
|
|
1540
|
+
{ userId, itemId, requestHeaders } = { requestHeaders: {} },
|
|
1541
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1542
|
+
) {
|
|
1543
|
+
const {
|
|
1544
|
+
error,
|
|
1545
|
+
} = CatalogPlatformApplicationValidator.followProductById().validate(
|
|
1546
|
+
{
|
|
1547
|
+
userId,
|
|
1548
|
+
itemId,
|
|
1549
|
+
},
|
|
1550
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1551
|
+
);
|
|
1552
|
+
if (error) {
|
|
1553
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1557
|
+
const {
|
|
1558
|
+
error: warrning,
|
|
1559
|
+
} = CatalogPlatformApplicationValidator.followProductById().validate(
|
|
1560
|
+
{
|
|
1561
|
+
userId,
|
|
1562
|
+
itemId,
|
|
1563
|
+
},
|
|
1564
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1565
|
+
);
|
|
1566
|
+
if (warrning) {
|
|
1567
|
+
Logger({
|
|
1568
|
+
level: "WARN",
|
|
1569
|
+
message: `Parameter Validation warrnings for platform > Catalog > followProductById \n ${warrning}`,
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
const query_params = {};
|
|
1574
|
+
|
|
1575
|
+
const response = await PlatformAPIClient.execute(
|
|
1576
|
+
this.config,
|
|
1577
|
+
"put",
|
|
1578
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/user/${userId}/products/${itemId}/follow`,
|
|
1579
|
+
query_params,
|
|
1580
|
+
undefined,
|
|
1581
|
+
requestHeaders,
|
|
1582
|
+
{ responseHeaders }
|
|
1583
|
+
);
|
|
1584
|
+
|
|
1585
|
+
let responseData = response;
|
|
1586
|
+
if (responseHeaders) {
|
|
1587
|
+
responseData = response[0];
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
const {
|
|
1591
|
+
error: res_error,
|
|
1592
|
+
} = CatalogPlatformModel.FollowProduct().validate(responseData, {
|
|
1593
|
+
abortEarly: false,
|
|
1594
|
+
allowUnknown: true,
|
|
1595
|
+
});
|
|
1596
|
+
|
|
1597
|
+
if (res_error) {
|
|
1598
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1599
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1600
|
+
} else {
|
|
1601
|
+
Logger({
|
|
1602
|
+
level: "WARN",
|
|
1603
|
+
message: `Response Validation Warnings for platform > Catalog > followProductById \n ${res_error}`,
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
return response;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1527
1611
|
/**
|
|
1528
1612
|
* @param {CatalogPlatformApplicationValidator.GetAllCollectionsParam} arg
|
|
1529
1613
|
* - Arg object
|
|
@@ -4021,7 +4105,7 @@ class Catalog {
|
|
|
4021
4105
|
* @description: Retrieve configuration details based on a specific type in the catalog for a company and an sales channel. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/getConfigurationByType/).
|
|
4022
4106
|
*/
|
|
4023
4107
|
async getConfigurationByType(
|
|
4024
|
-
{ type, requestHeaders } = { requestHeaders: {} },
|
|
4108
|
+
{ type, includeInactive, requestHeaders } = { requestHeaders: {} },
|
|
4025
4109
|
{ responseHeaders } = { responseHeaders: false }
|
|
4026
4110
|
) {
|
|
4027
4111
|
const {
|
|
@@ -4029,6 +4113,7 @@ class Catalog {
|
|
|
4029
4113
|
} = CatalogPlatformApplicationValidator.getConfigurationByType().validate(
|
|
4030
4114
|
{
|
|
4031
4115
|
type,
|
|
4116
|
+
includeInactive,
|
|
4032
4117
|
},
|
|
4033
4118
|
{ abortEarly: false, allowUnknown: true }
|
|
4034
4119
|
);
|
|
@@ -4042,6 +4127,7 @@ class Catalog {
|
|
|
4042
4127
|
} = CatalogPlatformApplicationValidator.getConfigurationByType().validate(
|
|
4043
4128
|
{
|
|
4044
4129
|
type,
|
|
4130
|
+
includeInactive,
|
|
4045
4131
|
},
|
|
4046
4132
|
{ abortEarly: false, allowUnknown: false }
|
|
4047
4133
|
);
|
|
@@ -4053,6 +4139,7 @@ class Catalog {
|
|
|
4053
4139
|
}
|
|
4054
4140
|
|
|
4055
4141
|
const query_params = {};
|
|
4142
|
+
query_params["include_inactive"] = includeInactive;
|
|
4056
4143
|
|
|
4057
4144
|
const response = await PlatformAPIClient.execute(
|
|
4058
4145
|
this.config,
|
|
@@ -4491,6 +4578,94 @@ class Catalog {
|
|
|
4491
4578
|
return paginator;
|
|
4492
4579
|
}
|
|
4493
4580
|
|
|
4581
|
+
/**
|
|
4582
|
+
* @param {CatalogPlatformApplicationValidator.GetFollowedProductsParam} arg
|
|
4583
|
+
* - Arg object
|
|
4584
|
+
*
|
|
4585
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4586
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4587
|
+
* @returns {Promise<CatalogPlatformModel.FollowedProducts>} - Success response
|
|
4588
|
+
* @name getFollowedProducts
|
|
4589
|
+
* @summary: Retrieve followed products by user
|
|
4590
|
+
* @description: List all product ids a user has wishlisted or is following for sales channel.
|
|
4591
|
+
* - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/getFollowedProducts/).
|
|
4592
|
+
*/
|
|
4593
|
+
async getFollowedProducts(
|
|
4594
|
+
{ userId, pageId, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
4595
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4596
|
+
) {
|
|
4597
|
+
const {
|
|
4598
|
+
error,
|
|
4599
|
+
} = CatalogPlatformApplicationValidator.getFollowedProducts().validate(
|
|
4600
|
+
{
|
|
4601
|
+
userId,
|
|
4602
|
+
pageId,
|
|
4603
|
+
pageSize,
|
|
4604
|
+
},
|
|
4605
|
+
{ abortEarly: false, allowUnknown: true }
|
|
4606
|
+
);
|
|
4607
|
+
if (error) {
|
|
4608
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
4609
|
+
}
|
|
4610
|
+
|
|
4611
|
+
// Showing warrnings if extra unknown parameters are found
|
|
4612
|
+
const {
|
|
4613
|
+
error: warrning,
|
|
4614
|
+
} = CatalogPlatformApplicationValidator.getFollowedProducts().validate(
|
|
4615
|
+
{
|
|
4616
|
+
userId,
|
|
4617
|
+
pageId,
|
|
4618
|
+
pageSize,
|
|
4619
|
+
},
|
|
4620
|
+
{ abortEarly: false, allowUnknown: false }
|
|
4621
|
+
);
|
|
4622
|
+
if (warrning) {
|
|
4623
|
+
Logger({
|
|
4624
|
+
level: "WARN",
|
|
4625
|
+
message: `Parameter Validation warrnings for platform > Catalog > getFollowedProducts \n ${warrning}`,
|
|
4626
|
+
});
|
|
4627
|
+
}
|
|
4628
|
+
|
|
4629
|
+
const query_params = {};
|
|
4630
|
+
query_params["page_id"] = pageId;
|
|
4631
|
+
query_params["page_size"] = pageSize;
|
|
4632
|
+
|
|
4633
|
+
const response = await PlatformAPIClient.execute(
|
|
4634
|
+
this.config,
|
|
4635
|
+
"get",
|
|
4636
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/user/${userId}/products/follow`,
|
|
4637
|
+
query_params,
|
|
4638
|
+
undefined,
|
|
4639
|
+
requestHeaders,
|
|
4640
|
+
{ responseHeaders }
|
|
4641
|
+
);
|
|
4642
|
+
|
|
4643
|
+
let responseData = response;
|
|
4644
|
+
if (responseHeaders) {
|
|
4645
|
+
responseData = response[0];
|
|
4646
|
+
}
|
|
4647
|
+
|
|
4648
|
+
const {
|
|
4649
|
+
error: res_error,
|
|
4650
|
+
} = CatalogPlatformModel.FollowedProducts().validate(responseData, {
|
|
4651
|
+
abortEarly: false,
|
|
4652
|
+
allowUnknown: true,
|
|
4653
|
+
});
|
|
4654
|
+
|
|
4655
|
+
if (res_error) {
|
|
4656
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4657
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4658
|
+
} else {
|
|
4659
|
+
Logger({
|
|
4660
|
+
level: "WARN",
|
|
4661
|
+
message: `Response Validation Warnings for platform > Catalog > getFollowedProducts \n ${res_error}`,
|
|
4662
|
+
});
|
|
4663
|
+
}
|
|
4664
|
+
}
|
|
4665
|
+
|
|
4666
|
+
return response;
|
|
4667
|
+
}
|
|
4668
|
+
|
|
4494
4669
|
/**
|
|
4495
4670
|
* @param {CatalogPlatformApplicationValidator.GetGroupConfigurationsParam} arg
|
|
4496
4671
|
* - Arg object
|
|
@@ -4997,6 +5172,90 @@ class Catalog {
|
|
|
4997
5172
|
return response;
|
|
4998
5173
|
}
|
|
4999
5174
|
|
|
5175
|
+
/**
|
|
5176
|
+
* @param {CatalogPlatformApplicationValidator.UnfollowProductByIdParam} arg
|
|
5177
|
+
* - Arg object
|
|
5178
|
+
*
|
|
5179
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5180
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5181
|
+
* @returns {Promise<CatalogPlatformModel.FollowProduct>} - Success response
|
|
5182
|
+
* @name unfollowProductById
|
|
5183
|
+
* @summary: Unfollow a Specific Product by ID
|
|
5184
|
+
* @description: This endpoint allows a user to unfollow a previously followed product using its unique item ID for a sales channel.
|
|
5185
|
+
* - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/unfollowProductById/).
|
|
5186
|
+
*/
|
|
5187
|
+
async unfollowProductById(
|
|
5188
|
+
{ userId, itemId, requestHeaders } = { requestHeaders: {} },
|
|
5189
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5190
|
+
) {
|
|
5191
|
+
const {
|
|
5192
|
+
error,
|
|
5193
|
+
} = CatalogPlatformApplicationValidator.unfollowProductById().validate(
|
|
5194
|
+
{
|
|
5195
|
+
userId,
|
|
5196
|
+
itemId,
|
|
5197
|
+
},
|
|
5198
|
+
{ abortEarly: false, allowUnknown: true }
|
|
5199
|
+
);
|
|
5200
|
+
if (error) {
|
|
5201
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
5202
|
+
}
|
|
5203
|
+
|
|
5204
|
+
// Showing warrnings if extra unknown parameters are found
|
|
5205
|
+
const {
|
|
5206
|
+
error: warrning,
|
|
5207
|
+
} = CatalogPlatformApplicationValidator.unfollowProductById().validate(
|
|
5208
|
+
{
|
|
5209
|
+
userId,
|
|
5210
|
+
itemId,
|
|
5211
|
+
},
|
|
5212
|
+
{ abortEarly: false, allowUnknown: false }
|
|
5213
|
+
);
|
|
5214
|
+
if (warrning) {
|
|
5215
|
+
Logger({
|
|
5216
|
+
level: "WARN",
|
|
5217
|
+
message: `Parameter Validation warrnings for platform > Catalog > unfollowProductById \n ${warrning}`,
|
|
5218
|
+
});
|
|
5219
|
+
}
|
|
5220
|
+
|
|
5221
|
+
const query_params = {};
|
|
5222
|
+
|
|
5223
|
+
const response = await PlatformAPIClient.execute(
|
|
5224
|
+
this.config,
|
|
5225
|
+
"delete",
|
|
5226
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/user/${userId}/products/${itemId}/follow`,
|
|
5227
|
+
query_params,
|
|
5228
|
+
undefined,
|
|
5229
|
+
requestHeaders,
|
|
5230
|
+
{ responseHeaders }
|
|
5231
|
+
);
|
|
5232
|
+
|
|
5233
|
+
let responseData = response;
|
|
5234
|
+
if (responseHeaders) {
|
|
5235
|
+
responseData = response[0];
|
|
5236
|
+
}
|
|
5237
|
+
|
|
5238
|
+
const {
|
|
5239
|
+
error: res_error,
|
|
5240
|
+
} = CatalogPlatformModel.FollowProduct().validate(responseData, {
|
|
5241
|
+
abortEarly: false,
|
|
5242
|
+
allowUnknown: true,
|
|
5243
|
+
});
|
|
5244
|
+
|
|
5245
|
+
if (res_error) {
|
|
5246
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5247
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5248
|
+
} else {
|
|
5249
|
+
Logger({
|
|
5250
|
+
level: "WARN",
|
|
5251
|
+
message: `Response Validation Warnings for platform > Catalog > unfollowProductById \n ${res_error}`,
|
|
5252
|
+
});
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
|
|
5256
|
+
return response;
|
|
5257
|
+
}
|
|
5258
|
+
|
|
5000
5259
|
/**
|
|
5001
5260
|
* @param {CatalogPlatformApplicationValidator.UpdateAllowSingleParam} arg
|
|
5002
5261
|
* - Arg object
|
|
@@ -92,6 +92,11 @@ export = CatalogPlatformApplicationValidator;
|
|
|
92
92
|
* @property {string} id - A `id` is a unique identifier for a particular
|
|
93
93
|
* detail. Pass the `id` of the keywords which you want to delete.
|
|
94
94
|
*/
|
|
95
|
+
/**
|
|
96
|
+
* @typedef FollowProductByIdParam
|
|
97
|
+
* @property {string} userId - User ID of User
|
|
98
|
+
* @property {string} itemId - Item ID of Product
|
|
99
|
+
*/
|
|
95
100
|
/**
|
|
96
101
|
* @typedef GetAllCollectionsParam
|
|
97
102
|
* @property {string} [q] - Get collection list filtered by q string,
|
|
@@ -303,6 +308,9 @@ export = CatalogPlatformApplicationValidator;
|
|
|
303
308
|
/**
|
|
304
309
|
* @typedef GetConfigurationByTypeParam
|
|
305
310
|
* @property {string} type - Type can be brands, categories etc.
|
|
311
|
+
* @property {boolean} [includeInactive] - Pass the `include_inactive` parameter
|
|
312
|
+
* to retrieve inactive brand or category details. This flag enables fetching
|
|
313
|
+
* all brands or categories,including those that are inactive.
|
|
306
314
|
*/
|
|
307
315
|
/**
|
|
308
316
|
* @typedef GetConfigurationMetadataParam
|
|
@@ -328,6 +336,13 @@ export = CatalogPlatformApplicationValidator;
|
|
|
328
336
|
* Default is 12.
|
|
329
337
|
* @property {number[]} [locationIds] - Search by store ids.
|
|
330
338
|
*/
|
|
339
|
+
/**
|
|
340
|
+
* @typedef GetFollowedProductsParam
|
|
341
|
+
* @property {string} userId - User ID to fetch the followed list
|
|
342
|
+
* @property {string} [pageId] - The identifier used to retrieve the next set of
|
|
343
|
+
* results. This parameter follows cursor-based pagination.
|
|
344
|
+
* @property {number} [pageSize] - Number of items per page
|
|
345
|
+
*/
|
|
331
346
|
/**
|
|
332
347
|
* @typedef GetGroupConfigurationsParam
|
|
333
348
|
* @property {string} configType - A `config_type` is an identifier that defines
|
|
@@ -363,6 +378,11 @@ export = CatalogPlatformApplicationValidator;
|
|
|
363
378
|
* @property {string} id - A `id` is a unique identifier for a particular
|
|
364
379
|
* detail. Pass the `id` of the keywords which you want to retrieve.
|
|
365
380
|
*/
|
|
381
|
+
/**
|
|
382
|
+
* @typedef UnfollowProductByIdParam
|
|
383
|
+
* @property {string} userId - User ID of User
|
|
384
|
+
* @property {string} itemId - Item ID of Product
|
|
385
|
+
*/
|
|
366
386
|
/**
|
|
367
387
|
* @typedef UpdateAllowSingleParam
|
|
368
388
|
* @property {CatalogPlatformModel.AllowSingleRequestSchema} body
|
|
@@ -481,6 +501,8 @@ declare class CatalogPlatformApplicationValidator {
|
|
|
481
501
|
static deleteSearchConfiguration(): any;
|
|
482
502
|
/** @returns {DeleteSearchKeywordsParam} */
|
|
483
503
|
static deleteSearchKeywords(): DeleteSearchKeywordsParam;
|
|
504
|
+
/** @returns {FollowProductByIdParam} */
|
|
505
|
+
static followProductById(): FollowProductByIdParam;
|
|
484
506
|
/** @returns {GetAllCollectionsParam} */
|
|
485
507
|
static getAllCollections(): GetAllCollectionsParam;
|
|
486
508
|
/** @returns {GetAllSearchKeywordParam} */
|
|
@@ -535,6 +557,8 @@ declare class CatalogPlatformApplicationValidator {
|
|
|
535
557
|
static getDepartments(): any;
|
|
536
558
|
/** @returns {GetDiscountedInventoryBySizeIdentifierParam} */
|
|
537
559
|
static getDiscountedInventoryBySizeIdentifier(): GetDiscountedInventoryBySizeIdentifierParam;
|
|
560
|
+
/** @returns {GetFollowedProductsParam} */
|
|
561
|
+
static getFollowedProducts(): GetFollowedProductsParam;
|
|
538
562
|
/** @returns {GetGroupConfigurationsParam} */
|
|
539
563
|
static getGroupConfigurations(): GetGroupConfigurationsParam;
|
|
540
564
|
/** @returns {GetListingConfigurationsParam} */
|
|
@@ -547,6 +571,8 @@ declare class CatalogPlatformApplicationValidator {
|
|
|
547
571
|
static getSearchConfiguration(): any;
|
|
548
572
|
/** @returns {GetSearchKeywordsParam} */
|
|
549
573
|
static getSearchKeywords(): GetSearchKeywordsParam;
|
|
574
|
+
/** @returns {UnfollowProductByIdParam} */
|
|
575
|
+
static unfollowProductById(): UnfollowProductByIdParam;
|
|
550
576
|
/** @returns {UpdateAllowSingleParam} */
|
|
551
577
|
static updateAllowSingle(): UpdateAllowSingleParam;
|
|
552
578
|
/** @returns {UpdateAppBrandParam} */
|
|
@@ -579,7 +605,7 @@ declare class CatalogPlatformApplicationValidator {
|
|
|
579
605
|
static updateSearchKeywords(): UpdateSearchKeywordsParam;
|
|
580
606
|
}
|
|
581
607
|
declare namespace CatalogPlatformApplicationValidator {
|
|
582
|
-
export { AddCollectionItemsParam, CreateAppCategoryReturnConfigurationParam, CreateAppReturnConfigurationParam, CreateCollectionParam, CreateConfigurationByTypeParam, CreateConfigurationProductListingParam, CreateCustomAutocompleteRuleParam, CreateCustomKeywordParam, CreateGroupConfigurationParam, CreateListingConfigurationParam, CreateSearchConfigurationParam, DeleteAppCategoryReturnConfigurationParam, DeleteAutocompleteKeywordParam, DeleteCollectionParam, DeleteGroupConfigurationParam, DeleteListingConfigurationParam, DeleteSearchConfigurationParam, DeleteSearchKeywordsParam, GetAllCollectionsParam, GetAllSearchKeywordParam, GetAppCategoryReturnConfigParam, GetAppInventoryParam, GetAppLocationsParam, GetAppProductParam, GetAppProductsParam, GetAppReturnConfigurationParam, GetApplicationBrandListingParam, GetApplicationBrandsParam, GetApplicationCategoryListingParam, GetApplicationDepartmentListingParam, GetApplicationFilterKeysParam, GetApplicationFilterValuesParam, GetApplicationProductsParam, GetAutocompleteConfigParam, GetAutocompleteKeywordDetailParam, GetCatalogConfigurationParam, GetCatalogInsightsParam, GetCategoriesParam, GetCollectionDetailParam, GetCollectionItemsParam, GetConfigurationByTypeParam, GetConfigurationMetadataParam, GetConfigurationsParam, GetDepartmentsParam, GetDiscountedInventoryBySizeIdentifierParam, GetGroupConfigurationsParam, GetListingConfigurationsParam, GetProductDetailBySlugParam, GetQueryFiltersParam, GetSearchConfigurationParam, GetSearchKeywordsParam, UpdateAllowSingleParam, UpdateAppBrandParam, UpdateAppCategoryParam, UpdateAppCategoryReturnConfigurationParam, UpdateAppDepartmentParam, UpdateAppLocationParam, UpdateAppProductParam, UpdateAppReturnConfigurationParam, UpdateAutocompleteKeywordParam, UpdateCollectionParam, UpdateDefaultSortParam, UpdateGroupConfigurationParam, UpdateListingConfigurationParam, UpdateSearchConfigurationParam, UpdateSearchKeywordsParam };
|
|
608
|
+
export { AddCollectionItemsParam, CreateAppCategoryReturnConfigurationParam, CreateAppReturnConfigurationParam, CreateCollectionParam, CreateConfigurationByTypeParam, CreateConfigurationProductListingParam, CreateCustomAutocompleteRuleParam, CreateCustomKeywordParam, CreateGroupConfigurationParam, CreateListingConfigurationParam, CreateSearchConfigurationParam, DeleteAppCategoryReturnConfigurationParam, DeleteAutocompleteKeywordParam, DeleteCollectionParam, DeleteGroupConfigurationParam, DeleteListingConfigurationParam, DeleteSearchConfigurationParam, DeleteSearchKeywordsParam, FollowProductByIdParam, GetAllCollectionsParam, GetAllSearchKeywordParam, GetAppCategoryReturnConfigParam, GetAppInventoryParam, GetAppLocationsParam, GetAppProductParam, GetAppProductsParam, GetAppReturnConfigurationParam, GetApplicationBrandListingParam, GetApplicationBrandsParam, GetApplicationCategoryListingParam, GetApplicationDepartmentListingParam, GetApplicationFilterKeysParam, GetApplicationFilterValuesParam, GetApplicationProductsParam, GetAutocompleteConfigParam, GetAutocompleteKeywordDetailParam, GetCatalogConfigurationParam, GetCatalogInsightsParam, GetCategoriesParam, GetCollectionDetailParam, GetCollectionItemsParam, GetConfigurationByTypeParam, GetConfigurationMetadataParam, GetConfigurationsParam, GetDepartmentsParam, GetDiscountedInventoryBySizeIdentifierParam, GetFollowedProductsParam, GetGroupConfigurationsParam, GetListingConfigurationsParam, GetProductDetailBySlugParam, GetQueryFiltersParam, GetSearchConfigurationParam, GetSearchKeywordsParam, UnfollowProductByIdParam, UpdateAllowSingleParam, UpdateAppBrandParam, UpdateAppCategoryParam, UpdateAppCategoryReturnConfigurationParam, UpdateAppDepartmentParam, UpdateAppLocationParam, UpdateAppProductParam, UpdateAppReturnConfigurationParam, UpdateAutocompleteKeywordParam, UpdateCollectionParam, UpdateDefaultSortParam, UpdateGroupConfigurationParam, UpdateListingConfigurationParam, UpdateSearchConfigurationParam, UpdateSearchKeywordsParam };
|
|
583
609
|
}
|
|
584
610
|
type AddCollectionItemsParam = {
|
|
585
611
|
/**
|
|
@@ -710,6 +736,16 @@ type DeleteSearchKeywordsParam = {
|
|
|
710
736
|
*/
|
|
711
737
|
id: string;
|
|
712
738
|
};
|
|
739
|
+
type FollowProductByIdParam = {
|
|
740
|
+
/**
|
|
741
|
+
* - User ID of User
|
|
742
|
+
*/
|
|
743
|
+
userId: string;
|
|
744
|
+
/**
|
|
745
|
+
* - Item ID of Product
|
|
746
|
+
*/
|
|
747
|
+
itemId: string;
|
|
748
|
+
};
|
|
713
749
|
type GetAllCollectionsParam = {
|
|
714
750
|
/**
|
|
715
751
|
* - Get collection list filtered by q string,
|
|
@@ -1144,6 +1180,12 @@ type GetConfigurationByTypeParam = {
|
|
|
1144
1180
|
* - Type can be brands, categories etc.
|
|
1145
1181
|
*/
|
|
1146
1182
|
type: string;
|
|
1183
|
+
/**
|
|
1184
|
+
* - Pass the `include_inactive` parameter
|
|
1185
|
+
* to retrieve inactive brand or category details. This flag enables fetching
|
|
1186
|
+
* all brands or categories,including those that are inactive.
|
|
1187
|
+
*/
|
|
1188
|
+
includeInactive?: boolean;
|
|
1147
1189
|
};
|
|
1148
1190
|
type GetConfigurationMetadataParam = {
|
|
1149
1191
|
/**
|
|
@@ -1195,6 +1237,21 @@ type GetDiscountedInventoryBySizeIdentifierParam = {
|
|
|
1195
1237
|
*/
|
|
1196
1238
|
locationIds?: number[];
|
|
1197
1239
|
};
|
|
1240
|
+
type GetFollowedProductsParam = {
|
|
1241
|
+
/**
|
|
1242
|
+
* - User ID to fetch the followed list
|
|
1243
|
+
*/
|
|
1244
|
+
userId: string;
|
|
1245
|
+
/**
|
|
1246
|
+
* - The identifier used to retrieve the next set of
|
|
1247
|
+
* results. This parameter follows cursor-based pagination.
|
|
1248
|
+
*/
|
|
1249
|
+
pageId?: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* - Number of items per page
|
|
1252
|
+
*/
|
|
1253
|
+
pageSize?: number;
|
|
1254
|
+
};
|
|
1198
1255
|
type GetGroupConfigurationsParam = {
|
|
1199
1256
|
/**
|
|
1200
1257
|
* - A `config_type` is an identifier that defines
|
|
@@ -1257,6 +1314,16 @@ type GetSearchKeywordsParam = {
|
|
|
1257
1314
|
*/
|
|
1258
1315
|
id: string;
|
|
1259
1316
|
};
|
|
1317
|
+
type UnfollowProductByIdParam = {
|
|
1318
|
+
/**
|
|
1319
|
+
* - User ID of User
|
|
1320
|
+
*/
|
|
1321
|
+
userId: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* - Item ID of Product
|
|
1324
|
+
*/
|
|
1325
|
+
itemId: string;
|
|
1326
|
+
};
|
|
1260
1327
|
type UpdateAllowSingleParam = {
|
|
1261
1328
|
body: CatalogPlatformModel.AllowSingleRequestSchema;
|
|
1262
1329
|
};
|
|
@@ -113,6 +113,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
113
113
|
* detail. Pass the `id` of the keywords which you want to delete.
|
|
114
114
|
*/
|
|
115
115
|
|
|
116
|
+
/**
|
|
117
|
+
* @typedef FollowProductByIdParam
|
|
118
|
+
* @property {string} userId - User ID of User
|
|
119
|
+
* @property {string} itemId - Item ID of Product
|
|
120
|
+
*/
|
|
121
|
+
|
|
116
122
|
/**
|
|
117
123
|
* @typedef GetAllCollectionsParam
|
|
118
124
|
* @property {string} [q] - Get collection list filtered by q string,
|
|
@@ -346,6 +352,9 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
346
352
|
/**
|
|
347
353
|
* @typedef GetConfigurationByTypeParam
|
|
348
354
|
* @property {string} type - Type can be brands, categories etc.
|
|
355
|
+
* @property {boolean} [includeInactive] - Pass the `include_inactive` parameter
|
|
356
|
+
* to retrieve inactive brand or category details. This flag enables fetching
|
|
357
|
+
* all brands or categories,including those that are inactive.
|
|
349
358
|
*/
|
|
350
359
|
|
|
351
360
|
/**
|
|
@@ -376,6 +385,14 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
376
385
|
* @property {number[]} [locationIds] - Search by store ids.
|
|
377
386
|
*/
|
|
378
387
|
|
|
388
|
+
/**
|
|
389
|
+
* @typedef GetFollowedProductsParam
|
|
390
|
+
* @property {string} userId - User ID to fetch the followed list
|
|
391
|
+
* @property {string} [pageId] - The identifier used to retrieve the next set of
|
|
392
|
+
* results. This parameter follows cursor-based pagination.
|
|
393
|
+
* @property {number} [pageSize] - Number of items per page
|
|
394
|
+
*/
|
|
395
|
+
|
|
379
396
|
/**
|
|
380
397
|
* @typedef GetGroupConfigurationsParam
|
|
381
398
|
* @property {string} configType - A `config_type` is an identifier that defines
|
|
@@ -417,6 +434,12 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
417
434
|
* detail. Pass the `id` of the keywords which you want to retrieve.
|
|
418
435
|
*/
|
|
419
436
|
|
|
437
|
+
/**
|
|
438
|
+
* @typedef UnfollowProductByIdParam
|
|
439
|
+
* @property {string} userId - User ID of User
|
|
440
|
+
* @property {string} itemId - Item ID of Product
|
|
441
|
+
*/
|
|
442
|
+
|
|
420
443
|
/**
|
|
421
444
|
* @typedef UpdateAllowSingleParam
|
|
422
445
|
* @property {CatalogPlatformModel.AllowSingleRequestSchema} body
|
|
@@ -651,6 +674,14 @@ class CatalogPlatformApplicationValidator {
|
|
|
651
674
|
}).required();
|
|
652
675
|
}
|
|
653
676
|
|
|
677
|
+
/** @returns {FollowProductByIdParam} */
|
|
678
|
+
static followProductById() {
|
|
679
|
+
return Joi.object({
|
|
680
|
+
userId: Joi.string().allow("").required(),
|
|
681
|
+
itemId: Joi.string().allow("").required(),
|
|
682
|
+
}).required();
|
|
683
|
+
}
|
|
684
|
+
|
|
654
685
|
/** @returns {GetAllCollectionsParam} */
|
|
655
686
|
static getAllCollections() {
|
|
656
687
|
return Joi.object({
|
|
@@ -864,6 +895,7 @@ class CatalogPlatformApplicationValidator {
|
|
|
864
895
|
static getConfigurationByType() {
|
|
865
896
|
return Joi.object({
|
|
866
897
|
type: Joi.string().allow("").required(),
|
|
898
|
+
includeInactive: Joi.boolean(),
|
|
867
899
|
}).required();
|
|
868
900
|
}
|
|
869
901
|
|
|
@@ -899,6 +931,15 @@ class CatalogPlatformApplicationValidator {
|
|
|
899
931
|
}).required();
|
|
900
932
|
}
|
|
901
933
|
|
|
934
|
+
/** @returns {GetFollowedProductsParam} */
|
|
935
|
+
static getFollowedProducts() {
|
|
936
|
+
return Joi.object({
|
|
937
|
+
userId: Joi.string().allow("").required(),
|
|
938
|
+
pageId: Joi.string().allow(""),
|
|
939
|
+
pageSize: Joi.number(),
|
|
940
|
+
}).required();
|
|
941
|
+
}
|
|
942
|
+
|
|
902
943
|
/** @returns {GetGroupConfigurationsParam} */
|
|
903
944
|
static getGroupConfigurations() {
|
|
904
945
|
return Joi.object({
|
|
@@ -944,6 +985,14 @@ class CatalogPlatformApplicationValidator {
|
|
|
944
985
|
}).required();
|
|
945
986
|
}
|
|
946
987
|
|
|
988
|
+
/** @returns {UnfollowProductByIdParam} */
|
|
989
|
+
static unfollowProductById() {
|
|
990
|
+
return Joi.object({
|
|
991
|
+
userId: Joi.string().allow("").required(),
|
|
992
|
+
itemId: Joi.string().allow("").required(),
|
|
993
|
+
}).required();
|
|
994
|
+
}
|
|
995
|
+
|
|
947
996
|
/** @returns {UpdateAllowSingleParam} */
|
|
948
997
|
static updateAllowSingle() {
|
|
949
998
|
return Joi.object({
|
|
@@ -4307,6 +4307,16 @@ export = CatalogPlatformModel;
|
|
|
4307
4307
|
* @property {string} [to_date] - The modified-on date till when the data needs
|
|
4308
4308
|
* to be exported.
|
|
4309
4309
|
*/
|
|
4310
|
+
/**
|
|
4311
|
+
* @typedef FollowedProducts
|
|
4312
|
+
* @property {number[]} [item_ids]
|
|
4313
|
+
* @property {Page} [page]
|
|
4314
|
+
*/
|
|
4315
|
+
/**
|
|
4316
|
+
* @typedef FollowProduct
|
|
4317
|
+
* @property {string} [message] - A message indicating the result of the follow
|
|
4318
|
+
* or unfollow operation.
|
|
4319
|
+
*/
|
|
4310
4320
|
/**
|
|
4311
4321
|
* @typedef ActionPage
|
|
4312
4322
|
* @property {Object} [params] - Parameters that should be considered in path.
|
|
@@ -4402,7 +4412,7 @@ export = CatalogPlatformModel;
|
|
|
4402
4412
|
declare class CatalogPlatformModel {
|
|
4403
4413
|
}
|
|
4404
4414
|
declare namespace CatalogPlatformModel {
|
|
4405
|
-
export { Action, ValidationErrors, AllSizes, AllowSingleRequestSchema, AppCatalogConfiguration, AppCategoryReturnConfig, AppCategoryReturnConfigResponseSchema, AppConfiguration, AppConfigurationDetail, AppConfigurationsSort, ApplicationBrandJson, ApplicationCategoryJson, ApplicationDepartment, ApplicationDepartmentJson, ApplicationDepartmentListingResponseSchema, ApplicationItemMOQ, ApplicationItemMeta, ApplicationItemSeoSitemap, ApplicationItemSEO, ApplicationProductsSchema, ApplicationProductListingResponseSchema, ApplicationStoreJson, AppReturnConfigResponseSchema, ArticleAssignment, ArticleAssignment1, ArticleQuery, ArticleStoreResponseSchema, AssignStore, AssignStoreArticle, AttributeDetailsGroup, AttributeMaster, AttributeMasterDetails, AttributeMasterFilter, AttributeMasterMandatoryDetails, AttributeMasterMeta, AttributeMasterSchema, AttributeSchemaRange, AutoCompleteMedia, AutocompleteAction, AutocompletePageAction, AutocompleteResult, BannerImage, BaseAppCategoryReturnConfig, BaseAppCategoryReturnConfigResponseSchema, Brand, BrandItem, BrandListingResponseSchema, ApplicationBrandListingItemSchema, ApplicationBrandListingSchema, ApplicationCategoryListingSchema, ApplicationCategoryListingItemSchema, BrandMeta, InventoryBrandMeta, BulkAssetResponseSchema, BulkHsnResponseSchema, BulkHsnUpsert, BulkInventoryGet, FailedRecord, BulkInventoryGetItems, BulkMeta, BulkProductJob, BulkJob, BulkProductRequestSchema, BulkResponseSchema, CatalogInsightBrand, CatalogInsightItem, CatalogInsightResponseSchema, CategoriesResponseSchema, Category, CategoryItems, CategoryListingResponseSchema, CategoryMapping, CategoryMappingValues, CategoryResponseSchema, Child, CollectionBadge, CollectionBanner, CollectionCreateResponseSchema, CollectionDetailResponseSchema, CollectionImage, CollectionItem, CollectionItemUpdate, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, CollectionSchedule, CompanyBrandDetail, CompanyMeta, InventoryCompanyMeta, CompanyOptIn, ConfigErrorResponseSchema, ConfigSuccessResponseSchema, ConfigurationBucketPoints, ConfigurationListing, ConfigurationListingFilter, ConfigurationListingFilterConfig, ConfigurationListingFilterValue, ConfigurationListingSort, ConfigurationListingSortConfig, ConfigurationProduct, ConfigurationProductConfig, ConfigurationProductSimilar, ConfigurationProductVariant, ConfigurationProductVariantConfig, CreateAutocompleteKeyword, CreateAutocompleteWordsResponseSchema, CreateCollection, CreateSearchConfigurationRequestSchema, CreateSearchConfigurationResponseSchema, CreateSearchKeyword, CreateUpdateAppReturnConfig, CrossSellingData, CrossSellingResponseSchema, CustomOrder, DateMeta, DefaultKeyRequestSchema, DeleteAppCategoryReturnConfig, DeleteResponseSchema, DeleteSearchConfigurationResponseSchema, Department, DepartmentCategoryTree, DepartmentErrorResponseSchema, DepartmentIdentifier, DepartmentResponseSchema, DepartmentsResponseSchema, DimensionResponseSchema, InventoryDimensionResponseSchema, Document, EntityConfiguration, ErrorResponseSchema, FilerList, RawProduct, RawProductListingResponseSchema, GTIN, AttributeDetail, LatLong, ApplicationLocationAddressSchema, GetAddressSchema, GetAllSizes, GetAppCatalogConfiguration, GetAppCatalogEntityConfiguration, GetAutocompleteWordsData, GetAutocompleteWordsResponseSchema, GetCatalogConfigurationDetailsProduct, GetCatalogConfigurationDetailsSchemaListing, GetCatalogConfigurationMetaData, GetCollectionDetailNest, GetCollectionItemsResponseSchema, GetCollectionListingResponseSchema, GetCollectionQueryOptionResponseSchema, GetCompanySchema, ConditionItem, DataItem, ValueTypeItem, SortTypeItem, GetConfigMetadataResponseSchema, GetConfigMetadataValues, GetConfigResponseSchema, ConfigItem, AttributeConfig, GetDepartment, GetInventories, GetInventoriesResponseSchema, GetLocationSchema, GetOptInPlatform, GetProductBundleCreateResponseSchema, GetProductBundleListingResponseSchema, GetProductBundleResponseSchema, GetProducts, ProductDetails, GetCollectionDetailResponseSchema, CommonResponseSchemaCollection, GetQueryFiltersKeysResponseSchema, GetQueryFiltersResponseSchema, GetCollectionItemsResponseSchemaV2, Page1, CollectionItemSchemaV2, CollectionItemUpdateSchema, CollectionQuerySchemaV2, ProductDetailV2, GetSearchConfigurationResponseSchema, GetSearchWordsData, GetSearchWordsDetailResponseSchema, GetSearchWordsResponseSchema, GlobalValidation, Guide, HSNCodesResponseSchema, HSNData, CreatedBySchema, ModifiedBySchema, HSNDataInsertV2, Hierarchy, HsnCode, HsnCodesListingResponseSchemaV2, HsnCodesObject, HsnUpsert, Image, ImageUrls, InvSize, InventoryBulkRequestSchema, InventoryConfig, InventoryCreateRequestSchema, InventoryExportAdvanceOption, InventoryExportFilter, InventoryExportJob, InventoryExportJobListResponseSchema, InventoryExportQuantityFilter, InventoryExportRequestSchema, InventoryExportResponseSchema, InventoryFailedReason, InventoryJobDetailResponseSchema, InventoryJobFilters, InventoryJobPayload, InventoryPage, AddInventoryRequestPayload, InventoryPayload, InventoryRequestSchema, InventoryRequestSchemaV2, InventoryResponseSchema, InventoryResponseItem, InventoryResponsePaginated, InventorySellerIdentifierResponsePaginated, ApplicationInventorySellerIdentifierResponsePaginated, InventorySellerResponseSchema, ApplicationInventorySellerResponseSchema, InventorySet, InventoryStockResponseSchema, InventoryUpdateResponseSchema, InventoryValidationResponseSchema, InvoiceCredSchema, InvoiceDetailsSchema, ItemQuery, Items, LimitedProductData, SizeGuideItem, ListSizeGuide, LocationDayWiseSchema, LocationIntegrationType, LocationListSchema, LocationManagerSchema, LocationTimingSchema, Logo, MOQData, ManufacturerResponseSchema, InventoryManufacturerResponseSchema, Media, Media1, DepartmentMedia, BrandMedia, Meta, MetaDataListingFilterMetaResponseSchema, MetaDataListingFilterResponseSchema, MetaDataListingResponseSchema, MetaDataListingSortMetaResponseSchema, MetaDataListingSortResponseSchema, MetaFields, NetQuantity, NetQuantityResponseSchema, NextSchedule, LocationPriceRequestSchema, LocationQuantityRequestSchema, LocationPriceQuantitySuccessResponseSchema, OptInPostRequestSchema, OptinCompanyBrandDetailsView, OptinCompanyDetail, OptinCompanyMetrics, OptinStoreDetails, OwnerAppItemResponseSchema, PTErrorResponseSchema, Page, PageResponseSchema, PageResponseType, Price, ProductListingDetailPrice, PriceArticle, PriceMeta, ProdcutTemplateCategoriesResponseSchema, Product, ProductAttributesResponseSchema, ProductBrand, ProductBulkAssets, ProductBulkRequestSchema, ProductBulkRequestList, ProductBundleItem, ProductBundleRequestSchema, ProductBundleUpdateRequestSchema, ProductConfigurationDownloads, ProductUpdateSchemaV2, ProductCreateSchemaV2, ProductDetail, ProductDetailAttribute, ProductDetailGroupedAttribute, ProductDownloadsResponseSchema, CollectionProductFilters, ProductFilters, GetQueryFiltersValuesResponseSchema, ProductFiltersKeysOnly, ProductFiltersKey, ProductQueryFiltersValue, CollectionProductFiltersValue, ProductFiltersValue, CollectionProductListingDetail, ProductCategory, ApplicationCategoryAction, ApplicationCategoryItem, ApplicationProductMedia, ApplicationProductCategoryItem, CategoryPageAction, CategoryQuery, CategoryImage, ProductListingDetail, ActionObject, PageAction, ProductListingPrice, ProductListingResponseSchema, ProductListingResponseV2, ProductPublish, ProductPublished, ProductReturnConfigSchema, ProductReturnConfigBaseSchema, Identifier, SizeDetails, ProductSchemaV2, ProductSize, ProductSizeDeleteDataResponseSchema, ProductSizeDeleteResponseSchema, CollectionProductSortOn, ProductSortOn, ProductTagsViewResponseSchema, CreatedBy, ModifiedBy, ProductTemplate, ProductTemplateDownloadsExport, ProductTemplateExportFilterRequestSchema, ProductTemplateExportResponseSchema, ProductVariants, ProductVariantsResponseSchema, Properties, Quantities, QuantitiesArticle, Quantity, QuantityBase, ReturnConfig, InventoryReturnConfig, ReturnConfig2, ReturnConfigResponseSchema, Sitemap, PageQuery, ApplicationCollectionItemSeoPage, ApplicationCollectionItemSeoAction, ApplicationItemSeoAction, ApplicationItemSeoBreadcrumbs, ApplicationCollectionItemSeoBreadcrumbs, ApplicationItemSeoMetaTagItem, ApplicationItemSeoMetaTags, Metatags, SizePromotionThreshold, SEOData, SearchKeywordResult, SearchableAttribute, SecondLevelChild, SellerPhoneNumber, CollectionSeoDetail, SeoDetail, SetSize, SingleCategoryResponseSchema, SingleProductResponseSchema, Size, SizeDistribution, SizeGuideResponseSchema, StoreAssignResponseSchema, StoreDetail, StoreMeta, SuccessResponseSchema, SuccessResponseObject, TaxIdentifier, TaxSlab, TeaserTag, TemplateDetails, TemplateGlobalValidationData, TemplateValidationData, TemplatesResponseSchema, TemplatesGlobalValidationResponseSchema, TemplatesValidationResponseSchema, ThirdLevelChild, Trader, Trader1, TraderResponseSchema, UpdateCollection, UpdateSearchConfigurationRequestSchema, UpdateSearchConfigurationResponseSchema, CreateMarketplaceOptinResponseSchema, UserCommon, UserDetail, UserDetail1, UserInfo, UserSchema, RequestUserSchema, ValidateIdentifier, ValidateProduct, ValidateSizeGuide, VerifiedBy, WeightResponseSchema, InventoryWeightResponseSchema, BulkInventoryJob, Marketplaces, GetAllMarketplaces, UpdateMarketplaceOptinRequestSchema, UpdateMarketplaceOptinResponseSchema, Filters, ActionPage, ValidationError, Price1, MultiCategoriesSchema, NetQuantitySchema, CustomMeta, PageType };
|
|
4415
|
+
export { Action, ValidationErrors, AllSizes, AllowSingleRequestSchema, AppCatalogConfiguration, AppCategoryReturnConfig, AppCategoryReturnConfigResponseSchema, AppConfiguration, AppConfigurationDetail, AppConfigurationsSort, ApplicationBrandJson, ApplicationCategoryJson, ApplicationDepartment, ApplicationDepartmentJson, ApplicationDepartmentListingResponseSchema, ApplicationItemMOQ, ApplicationItemMeta, ApplicationItemSeoSitemap, ApplicationItemSEO, ApplicationProductsSchema, ApplicationProductListingResponseSchema, ApplicationStoreJson, AppReturnConfigResponseSchema, ArticleAssignment, ArticleAssignment1, ArticleQuery, ArticleStoreResponseSchema, AssignStore, AssignStoreArticle, AttributeDetailsGroup, AttributeMaster, AttributeMasterDetails, AttributeMasterFilter, AttributeMasterMandatoryDetails, AttributeMasterMeta, AttributeMasterSchema, AttributeSchemaRange, AutoCompleteMedia, AutocompleteAction, AutocompletePageAction, AutocompleteResult, BannerImage, BaseAppCategoryReturnConfig, BaseAppCategoryReturnConfigResponseSchema, Brand, BrandItem, BrandListingResponseSchema, ApplicationBrandListingItemSchema, ApplicationBrandListingSchema, ApplicationCategoryListingSchema, ApplicationCategoryListingItemSchema, BrandMeta, InventoryBrandMeta, BulkAssetResponseSchema, BulkHsnResponseSchema, BulkHsnUpsert, BulkInventoryGet, FailedRecord, BulkInventoryGetItems, BulkMeta, BulkProductJob, BulkJob, BulkProductRequestSchema, BulkResponseSchema, CatalogInsightBrand, CatalogInsightItem, CatalogInsightResponseSchema, CategoriesResponseSchema, Category, CategoryItems, CategoryListingResponseSchema, CategoryMapping, CategoryMappingValues, CategoryResponseSchema, Child, CollectionBadge, CollectionBanner, CollectionCreateResponseSchema, CollectionDetailResponseSchema, CollectionImage, CollectionItem, CollectionItemUpdate, CollectionListingFilter, CollectionListingFilterTag, CollectionListingFilterType, CollectionQuery, CollectionSchedule, CompanyBrandDetail, CompanyMeta, InventoryCompanyMeta, CompanyOptIn, ConfigErrorResponseSchema, ConfigSuccessResponseSchema, ConfigurationBucketPoints, ConfigurationListing, ConfigurationListingFilter, ConfigurationListingFilterConfig, ConfigurationListingFilterValue, ConfigurationListingSort, ConfigurationListingSortConfig, ConfigurationProduct, ConfigurationProductConfig, ConfigurationProductSimilar, ConfigurationProductVariant, ConfigurationProductVariantConfig, CreateAutocompleteKeyword, CreateAutocompleteWordsResponseSchema, CreateCollection, CreateSearchConfigurationRequestSchema, CreateSearchConfigurationResponseSchema, CreateSearchKeyword, CreateUpdateAppReturnConfig, CrossSellingData, CrossSellingResponseSchema, CustomOrder, DateMeta, DefaultKeyRequestSchema, DeleteAppCategoryReturnConfig, DeleteResponseSchema, DeleteSearchConfigurationResponseSchema, Department, DepartmentCategoryTree, DepartmentErrorResponseSchema, DepartmentIdentifier, DepartmentResponseSchema, DepartmentsResponseSchema, DimensionResponseSchema, InventoryDimensionResponseSchema, Document, EntityConfiguration, ErrorResponseSchema, FilerList, RawProduct, RawProductListingResponseSchema, GTIN, AttributeDetail, LatLong, ApplicationLocationAddressSchema, GetAddressSchema, GetAllSizes, GetAppCatalogConfiguration, GetAppCatalogEntityConfiguration, GetAutocompleteWordsData, GetAutocompleteWordsResponseSchema, GetCatalogConfigurationDetailsProduct, GetCatalogConfigurationDetailsSchemaListing, GetCatalogConfigurationMetaData, GetCollectionDetailNest, GetCollectionItemsResponseSchema, GetCollectionListingResponseSchema, GetCollectionQueryOptionResponseSchema, GetCompanySchema, ConditionItem, DataItem, ValueTypeItem, SortTypeItem, GetConfigMetadataResponseSchema, GetConfigMetadataValues, GetConfigResponseSchema, ConfigItem, AttributeConfig, GetDepartment, GetInventories, GetInventoriesResponseSchema, GetLocationSchema, GetOptInPlatform, GetProductBundleCreateResponseSchema, GetProductBundleListingResponseSchema, GetProductBundleResponseSchema, GetProducts, ProductDetails, GetCollectionDetailResponseSchema, CommonResponseSchemaCollection, GetQueryFiltersKeysResponseSchema, GetQueryFiltersResponseSchema, GetCollectionItemsResponseSchemaV2, Page1, CollectionItemSchemaV2, CollectionItemUpdateSchema, CollectionQuerySchemaV2, ProductDetailV2, GetSearchConfigurationResponseSchema, GetSearchWordsData, GetSearchWordsDetailResponseSchema, GetSearchWordsResponseSchema, GlobalValidation, Guide, HSNCodesResponseSchema, HSNData, CreatedBySchema, ModifiedBySchema, HSNDataInsertV2, Hierarchy, HsnCode, HsnCodesListingResponseSchemaV2, HsnCodesObject, HsnUpsert, Image, ImageUrls, InvSize, InventoryBulkRequestSchema, InventoryConfig, InventoryCreateRequestSchema, InventoryExportAdvanceOption, InventoryExportFilter, InventoryExportJob, InventoryExportJobListResponseSchema, InventoryExportQuantityFilter, InventoryExportRequestSchema, InventoryExportResponseSchema, InventoryFailedReason, InventoryJobDetailResponseSchema, InventoryJobFilters, InventoryJobPayload, InventoryPage, AddInventoryRequestPayload, InventoryPayload, InventoryRequestSchema, InventoryRequestSchemaV2, InventoryResponseSchema, InventoryResponseItem, InventoryResponsePaginated, InventorySellerIdentifierResponsePaginated, ApplicationInventorySellerIdentifierResponsePaginated, InventorySellerResponseSchema, ApplicationInventorySellerResponseSchema, InventorySet, InventoryStockResponseSchema, InventoryUpdateResponseSchema, InventoryValidationResponseSchema, InvoiceCredSchema, InvoiceDetailsSchema, ItemQuery, Items, LimitedProductData, SizeGuideItem, ListSizeGuide, LocationDayWiseSchema, LocationIntegrationType, LocationListSchema, LocationManagerSchema, LocationTimingSchema, Logo, MOQData, ManufacturerResponseSchema, InventoryManufacturerResponseSchema, Media, Media1, DepartmentMedia, BrandMedia, Meta, MetaDataListingFilterMetaResponseSchema, MetaDataListingFilterResponseSchema, MetaDataListingResponseSchema, MetaDataListingSortMetaResponseSchema, MetaDataListingSortResponseSchema, MetaFields, NetQuantity, NetQuantityResponseSchema, NextSchedule, LocationPriceRequestSchema, LocationQuantityRequestSchema, LocationPriceQuantitySuccessResponseSchema, OptInPostRequestSchema, OptinCompanyBrandDetailsView, OptinCompanyDetail, OptinCompanyMetrics, OptinStoreDetails, OwnerAppItemResponseSchema, PTErrorResponseSchema, Page, PageResponseSchema, PageResponseType, Price, ProductListingDetailPrice, PriceArticle, PriceMeta, ProdcutTemplateCategoriesResponseSchema, Product, ProductAttributesResponseSchema, ProductBrand, ProductBulkAssets, ProductBulkRequestSchema, ProductBulkRequestList, ProductBundleItem, ProductBundleRequestSchema, ProductBundleUpdateRequestSchema, ProductConfigurationDownloads, ProductUpdateSchemaV2, ProductCreateSchemaV2, ProductDetail, ProductDetailAttribute, ProductDetailGroupedAttribute, ProductDownloadsResponseSchema, CollectionProductFilters, ProductFilters, GetQueryFiltersValuesResponseSchema, ProductFiltersKeysOnly, ProductFiltersKey, ProductQueryFiltersValue, CollectionProductFiltersValue, ProductFiltersValue, CollectionProductListingDetail, ProductCategory, ApplicationCategoryAction, ApplicationCategoryItem, ApplicationProductMedia, ApplicationProductCategoryItem, CategoryPageAction, CategoryQuery, CategoryImage, ProductListingDetail, ActionObject, PageAction, ProductListingPrice, ProductListingResponseSchema, ProductListingResponseV2, ProductPublish, ProductPublished, ProductReturnConfigSchema, ProductReturnConfigBaseSchema, Identifier, SizeDetails, ProductSchemaV2, ProductSize, ProductSizeDeleteDataResponseSchema, ProductSizeDeleteResponseSchema, CollectionProductSortOn, ProductSortOn, ProductTagsViewResponseSchema, CreatedBy, ModifiedBy, ProductTemplate, ProductTemplateDownloadsExport, ProductTemplateExportFilterRequestSchema, ProductTemplateExportResponseSchema, ProductVariants, ProductVariantsResponseSchema, Properties, Quantities, QuantitiesArticle, Quantity, QuantityBase, ReturnConfig, InventoryReturnConfig, ReturnConfig2, ReturnConfigResponseSchema, Sitemap, PageQuery, ApplicationCollectionItemSeoPage, ApplicationCollectionItemSeoAction, ApplicationItemSeoAction, ApplicationItemSeoBreadcrumbs, ApplicationCollectionItemSeoBreadcrumbs, ApplicationItemSeoMetaTagItem, ApplicationItemSeoMetaTags, Metatags, SizePromotionThreshold, SEOData, SearchKeywordResult, SearchableAttribute, SecondLevelChild, SellerPhoneNumber, CollectionSeoDetail, SeoDetail, SetSize, SingleCategoryResponseSchema, SingleProductResponseSchema, Size, SizeDistribution, SizeGuideResponseSchema, StoreAssignResponseSchema, StoreDetail, StoreMeta, SuccessResponseSchema, SuccessResponseObject, TaxIdentifier, TaxSlab, TeaserTag, TemplateDetails, TemplateGlobalValidationData, TemplateValidationData, TemplatesResponseSchema, TemplatesGlobalValidationResponseSchema, TemplatesValidationResponseSchema, ThirdLevelChild, Trader, Trader1, TraderResponseSchema, UpdateCollection, UpdateSearchConfigurationRequestSchema, UpdateSearchConfigurationResponseSchema, CreateMarketplaceOptinResponseSchema, UserCommon, UserDetail, UserDetail1, UserInfo, UserSchema, RequestUserSchema, ValidateIdentifier, ValidateProduct, ValidateSizeGuide, VerifiedBy, WeightResponseSchema, InventoryWeightResponseSchema, BulkInventoryJob, Marketplaces, GetAllMarketplaces, UpdateMarketplaceOptinRequestSchema, UpdateMarketplaceOptinResponseSchema, Filters, FollowedProducts, FollowProduct, ActionPage, ValidationError, Price1, MultiCategoriesSchema, NetQuantitySchema, CustomMeta, PageType };
|
|
4406
4416
|
}
|
|
4407
4417
|
/** @returns {Action} */
|
|
4408
4418
|
declare function Action(): Action;
|
|
@@ -13743,6 +13753,21 @@ type Filters = {
|
|
|
13743
13753
|
*/
|
|
13744
13754
|
to_date?: string;
|
|
13745
13755
|
};
|
|
13756
|
+
/** @returns {FollowedProducts} */
|
|
13757
|
+
declare function FollowedProducts(): FollowedProducts;
|
|
13758
|
+
type FollowedProducts = {
|
|
13759
|
+
item_ids?: number[];
|
|
13760
|
+
page?: Page;
|
|
13761
|
+
};
|
|
13762
|
+
/** @returns {FollowProduct} */
|
|
13763
|
+
declare function FollowProduct(): FollowProduct;
|
|
13764
|
+
type FollowProduct = {
|
|
13765
|
+
/**
|
|
13766
|
+
* - A message indicating the result of the follow
|
|
13767
|
+
* or unfollow operation.
|
|
13768
|
+
*/
|
|
13769
|
+
message?: string;
|
|
13770
|
+
};
|
|
13746
13771
|
/** @returns {ActionPage} */
|
|
13747
13772
|
declare function ActionPage(): ActionPage;
|
|
13748
13773
|
type ActionPage = {
|
|
@@ -4719,6 +4719,18 @@ const Joi = require("joi");
|
|
|
4719
4719
|
* to be exported.
|
|
4720
4720
|
*/
|
|
4721
4721
|
|
|
4722
|
+
/**
|
|
4723
|
+
* @typedef FollowedProducts
|
|
4724
|
+
* @property {number[]} [item_ids]
|
|
4725
|
+
* @property {Page} [page]
|
|
4726
|
+
*/
|
|
4727
|
+
|
|
4728
|
+
/**
|
|
4729
|
+
* @typedef FollowProduct
|
|
4730
|
+
* @property {string} [message] - A message indicating the result of the follow
|
|
4731
|
+
* or unfollow operation.
|
|
4732
|
+
*/
|
|
4733
|
+
|
|
4722
4734
|
/**
|
|
4723
4735
|
* @typedef ActionPage
|
|
4724
4736
|
* @property {Object} [params] - Parameters that should be considered in path.
|
|
@@ -9857,6 +9869,21 @@ class CatalogPlatformModel {
|
|
|
9857
9869
|
});
|
|
9858
9870
|
}
|
|
9859
9871
|
|
|
9872
|
+
/** @returns {FollowedProducts} */
|
|
9873
|
+
static FollowedProducts() {
|
|
9874
|
+
return Joi.object({
|
|
9875
|
+
item_ids: Joi.array().items(Joi.number()),
|
|
9876
|
+
page: CatalogPlatformModel.Page(),
|
|
9877
|
+
});
|
|
9878
|
+
}
|
|
9879
|
+
|
|
9880
|
+
/** @returns {FollowProduct} */
|
|
9881
|
+
static FollowProduct() {
|
|
9882
|
+
return Joi.object({
|
|
9883
|
+
message: Joi.string().allow(""),
|
|
9884
|
+
});
|
|
9885
|
+
}
|
|
9886
|
+
|
|
9860
9887
|
/** @returns {ActionPage} */
|
|
9861
9888
|
static ActionPage() {
|
|
9862
9889
|
return Joi.object({
|