@gofynd/fdk-client-javascript 1.4.10 → 1.4.12
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/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +8 -19
- package/sdk/application/Cart/CartApplicationClient.js +8 -89
- package/sdk/application/Cart/CartApplicationModel.d.ts +1 -178
- package/sdk/application/Cart/CartApplicationModel.js +0 -92
- package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -20
- package/sdk/application/Cart/CartApplicationValidator.js +0 -16
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +5 -0
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +2 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +3 -3
- package/sdk/application/Order/OrderApplicationModel.js +1 -1
- package/sdk/application/Payment/PaymentApplicationModel.js +2 -2
- package/sdk/common/Clickstream.js +34 -15
- package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +8 -20
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +8 -92
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +1 -15
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +0 -14
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1 -87
- package/sdk/platform/Cart/CartPlatformModel.js +0 -88
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +14 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +14 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +10 -51
- package/sdk/platform/Catalog/CatalogPlatformClient.js +79 -400
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +5 -240
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3 -169
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +15 -61
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -65
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +5 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +1 -1
- package/sdk/platform/Order/OrderPlatformModel.d.ts +90 -39
- package/sdk/platform/Order/OrderPlatformModel.js +74 -38
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +38 -4
- package/sdk/platform/Payment/PaymentPlatformModel.js +17 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
|
@@ -1706,47 +1706,6 @@ const Joi = require("joi");
|
|
|
1706
1706
|
* @property {string[]} values
|
|
1707
1707
|
*/
|
|
1708
1708
|
|
|
1709
|
-
/**
|
|
1710
|
-
* @typedef CartCheckoutCustomMeta
|
|
1711
|
-
* @property {string} key
|
|
1712
|
-
* @property {string} value
|
|
1713
|
-
*/
|
|
1714
|
-
|
|
1715
|
-
/**
|
|
1716
|
-
* @typedef PlatformCartCheckoutDetailRequest
|
|
1717
|
-
* @property {CartCheckoutCustomMeta[]} [custom_meta]
|
|
1718
|
-
* @property {string} [address_id]
|
|
1719
|
-
* @property {string} [payment_identifier]
|
|
1720
|
-
* @property {Object} [payment_params]
|
|
1721
|
-
* @property {boolean} [payment_auto_confirm]
|
|
1722
|
-
* @property {string} id
|
|
1723
|
-
* @property {boolean} [pos]
|
|
1724
|
-
* @property {string} [billing_address_id]
|
|
1725
|
-
* @property {string} [merchant_code]
|
|
1726
|
-
* @property {string} [aggregator]
|
|
1727
|
-
* @property {number} [pick_at_store_uid]
|
|
1728
|
-
* @property {string} [device_id]
|
|
1729
|
-
* @property {Object} [delivery_address]
|
|
1730
|
-
* @property {string} payment_mode
|
|
1731
|
-
* @property {string} [checkout_mode]
|
|
1732
|
-
* @property {Object} [customer_details] - Customer details
|
|
1733
|
-
* @property {Object} [meta]
|
|
1734
|
-
* @property {StaffCheckout} [staff]
|
|
1735
|
-
* @property {string} [employee_code]
|
|
1736
|
-
* @property {Object} [billing_address]
|
|
1737
|
-
* @property {string} [callback_url]
|
|
1738
|
-
* @property {string} user_id
|
|
1739
|
-
* @property {Object} [extra_meta]
|
|
1740
|
-
* @property {string} order_type
|
|
1741
|
-
* @property {Files[]} [files] - List of file url
|
|
1742
|
-
* @property {number} [ordering_store]
|
|
1743
|
-
* @property {Object} [payment_extra_identifiers]
|
|
1744
|
-
* @property {string} [iin]
|
|
1745
|
-
* @property {string} [network]
|
|
1746
|
-
* @property {string} [type]
|
|
1747
|
-
* @property {string} [card_id]
|
|
1748
|
-
*/
|
|
1749
|
-
|
|
1750
1709
|
/**
|
|
1751
1710
|
* @typedef CheckCart
|
|
1752
1711
|
* @property {string} [coupon_text]
|
|
@@ -4021,53 +3980,6 @@ class CartPlatformModel {
|
|
|
4021
3980
|
});
|
|
4022
3981
|
}
|
|
4023
3982
|
|
|
4024
|
-
/** @returns {CartCheckoutCustomMeta} */
|
|
4025
|
-
static CartCheckoutCustomMeta() {
|
|
4026
|
-
return Joi.object({
|
|
4027
|
-
key: Joi.string().allow("").required(),
|
|
4028
|
-
value: Joi.string().allow("").required(),
|
|
4029
|
-
});
|
|
4030
|
-
}
|
|
4031
|
-
|
|
4032
|
-
/** @returns {PlatformCartCheckoutDetailRequest} */
|
|
4033
|
-
static PlatformCartCheckoutDetailRequest() {
|
|
4034
|
-
return Joi.object({
|
|
4035
|
-
custom_meta: Joi.array().items(
|
|
4036
|
-
CartPlatformModel.CartCheckoutCustomMeta()
|
|
4037
|
-
),
|
|
4038
|
-
address_id: Joi.string().allow(""),
|
|
4039
|
-
payment_identifier: Joi.string().allow("").allow(null),
|
|
4040
|
-
payment_params: Joi.any().allow(null),
|
|
4041
|
-
payment_auto_confirm: Joi.boolean(),
|
|
4042
|
-
id: Joi.string().allow("").required(),
|
|
4043
|
-
pos: Joi.boolean(),
|
|
4044
|
-
billing_address_id: Joi.string().allow(""),
|
|
4045
|
-
merchant_code: Joi.string().allow(""),
|
|
4046
|
-
aggregator: Joi.string().allow(""),
|
|
4047
|
-
pick_at_store_uid: Joi.number().allow(null),
|
|
4048
|
-
device_id: Joi.string().allow("").allow(null),
|
|
4049
|
-
delivery_address: Joi.any(),
|
|
4050
|
-
payment_mode: Joi.string().allow("").required(),
|
|
4051
|
-
checkout_mode: Joi.string().allow(""),
|
|
4052
|
-
customer_details: Joi.any().allow(null),
|
|
4053
|
-
meta: Joi.any(),
|
|
4054
|
-
staff: CartPlatformModel.StaffCheckout(),
|
|
4055
|
-
employee_code: Joi.string().allow("").allow(null),
|
|
4056
|
-
billing_address: Joi.any(),
|
|
4057
|
-
callback_url: Joi.string().allow("").allow(null),
|
|
4058
|
-
user_id: Joi.string().allow("").allow(null).required(),
|
|
4059
|
-
extra_meta: Joi.any(),
|
|
4060
|
-
order_type: Joi.string().allow("").required(),
|
|
4061
|
-
files: Joi.array().items(CartPlatformModel.Files()),
|
|
4062
|
-
ordering_store: Joi.number().allow(null),
|
|
4063
|
-
payment_extra_identifiers: Joi.any(),
|
|
4064
|
-
iin: Joi.string().allow(""),
|
|
4065
|
-
network: Joi.string().allow(""),
|
|
4066
|
-
type: Joi.string().allow(""),
|
|
4067
|
-
card_id: Joi.string().allow(""),
|
|
4068
|
-
});
|
|
4069
|
-
}
|
|
4070
|
-
|
|
4071
3983
|
/** @returns {CheckCart} */
|
|
4072
3984
|
static CheckCart() {
|
|
4073
3985
|
return Joi.object({
|
|
@@ -295,7 +295,7 @@ declare class Catalog {
|
|
|
295
295
|
* @summary: Get category return configuration
|
|
296
296
|
* @description: Get all category level configuration level set for an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppCategoryReturnConfig/).
|
|
297
297
|
*/
|
|
298
|
-
getAppCategoryReturnConfig({ requestHeaders }?:
|
|
298
|
+
getAppCategoryReturnConfig({ q, pageNo, pageSize, requestHeaders }?: CatalogPlatformApplicationValidator.GetAppCategoryReturnConfigParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.BaseAppCategoryReturnConfigResponse>;
|
|
299
299
|
/**
|
|
300
300
|
* @param {CatalogPlatformApplicationValidator.GetAppInventoryParam} arg - Arg object
|
|
301
301
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -1746,13 +1746,17 @@ class Catalog {
|
|
|
1746
1746
|
* @description: Get all category level configuration level set for an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppCategoryReturnConfig/).
|
|
1747
1747
|
*/
|
|
1748
1748
|
async getAppCategoryReturnConfig(
|
|
1749
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
1749
|
+
{ q, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
1750
1750
|
{ responseHeaders } = { responseHeaders: false }
|
|
1751
1751
|
) {
|
|
1752
1752
|
const {
|
|
1753
1753
|
error,
|
|
1754
1754
|
} = CatalogPlatformApplicationValidator.getAppCategoryReturnConfig().validate(
|
|
1755
|
-
{
|
|
1755
|
+
{
|
|
1756
|
+
q,
|
|
1757
|
+
pageNo,
|
|
1758
|
+
pageSize,
|
|
1759
|
+
},
|
|
1756
1760
|
{ abortEarly: false, allowUnknown: true }
|
|
1757
1761
|
);
|
|
1758
1762
|
if (error) {
|
|
@@ -1763,7 +1767,11 @@ class Catalog {
|
|
|
1763
1767
|
const {
|
|
1764
1768
|
error: warrning,
|
|
1765
1769
|
} = CatalogPlatformApplicationValidator.getAppCategoryReturnConfig().validate(
|
|
1766
|
-
{
|
|
1770
|
+
{
|
|
1771
|
+
q,
|
|
1772
|
+
pageNo,
|
|
1773
|
+
pageSize,
|
|
1774
|
+
},
|
|
1767
1775
|
{ abortEarly: false, allowUnknown: false }
|
|
1768
1776
|
);
|
|
1769
1777
|
if (warrning) {
|
|
@@ -1774,6 +1782,9 @@ class Catalog {
|
|
|
1774
1782
|
}
|
|
1775
1783
|
|
|
1776
1784
|
const query_params = {};
|
|
1785
|
+
query_params["q"] = q;
|
|
1786
|
+
query_params["page_no"] = pageNo;
|
|
1787
|
+
query_params["page_size"] = pageSize;
|
|
1777
1788
|
|
|
1778
1789
|
const response = await PlatformAPIClient.execute(
|
|
1779
1790
|
this.config,
|
|
@@ -96,7 +96,15 @@ export = CatalogPlatformApplicationValidator;
|
|
|
96
96
|
* Default is 12.
|
|
97
97
|
*/
|
|
98
98
|
/** @typedef GetAllSearchKeywordParam */
|
|
99
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* @typedef GetAppCategoryReturnConfigParam
|
|
101
|
+
* @property {string} [q] - Get return configurations for categories by matching
|
|
102
|
+
* the search string with category names.
|
|
103
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
104
|
+
* set of results
|
|
105
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
106
|
+
* Default is 10.
|
|
107
|
+
*/
|
|
100
108
|
/**
|
|
101
109
|
* @typedef GetAppInventoryParam
|
|
102
110
|
* @property {number[]} [itemIds] - The Item Id of the product.
|
|
@@ -465,7 +473,7 @@ declare class CatalogPlatformApplicationValidator {
|
|
|
465
473
|
/** @returns {GetAllSearchKeywordParam} */
|
|
466
474
|
static getAllSearchKeyword(): any;
|
|
467
475
|
/** @returns {GetAppCategoryReturnConfigParam} */
|
|
468
|
-
static getAppCategoryReturnConfig():
|
|
476
|
+
static getAppCategoryReturnConfig(): GetAppCategoryReturnConfigParam;
|
|
469
477
|
/** @returns {GetAppInventoryParam} */
|
|
470
478
|
static getAppInventory(): GetAppInventoryParam;
|
|
471
479
|
/** @returns {GetAppLocationsParam} */
|
|
@@ -691,6 +699,23 @@ type GetAllCollectionsParam = {
|
|
|
691
699
|
*/
|
|
692
700
|
pageSize?: number;
|
|
693
701
|
};
|
|
702
|
+
type GetAppCategoryReturnConfigParam = {
|
|
703
|
+
/**
|
|
704
|
+
* - Get return configurations for categories by matching
|
|
705
|
+
* the search string with category names.
|
|
706
|
+
*/
|
|
707
|
+
q?: string;
|
|
708
|
+
/**
|
|
709
|
+
* - The page number to navigate through the given
|
|
710
|
+
* set of results
|
|
711
|
+
*/
|
|
712
|
+
pageNo?: number;
|
|
713
|
+
/**
|
|
714
|
+
* - Number of items to retrieve in each page.
|
|
715
|
+
* Default is 10.
|
|
716
|
+
*/
|
|
717
|
+
pageSize?: number;
|
|
718
|
+
};
|
|
694
719
|
type GetAppInventoryParam = {
|
|
695
720
|
/**
|
|
696
721
|
* - The Item Id of the product.
|
|
@@ -1289,7 +1314,6 @@ type UpdateSearchKeywordsParam = {
|
|
|
1289
1314
|
};
|
|
1290
1315
|
type DeleteSearchConfigurationParam = any;
|
|
1291
1316
|
type GetAllSearchKeywordParam = any;
|
|
1292
|
-
type GetAppCategoryReturnConfigParam = any;
|
|
1293
1317
|
type GetAppReturnConfigurationParam = any;
|
|
1294
1318
|
type GetAutocompleteConfigParam = any;
|
|
1295
1319
|
type GetCatalogConfigurationParam = any;
|
|
@@ -119,7 +119,15 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
119
119
|
|
|
120
120
|
/** @typedef GetAllSearchKeywordParam */
|
|
121
121
|
|
|
122
|
-
/**
|
|
122
|
+
/**
|
|
123
|
+
* @typedef GetAppCategoryReturnConfigParam
|
|
124
|
+
* @property {string} [q] - Get return configurations for categories by matching
|
|
125
|
+
* the search string with category names.
|
|
126
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
127
|
+
* set of results
|
|
128
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
129
|
+
* Default is 10.
|
|
130
|
+
*/
|
|
123
131
|
|
|
124
132
|
/**
|
|
125
133
|
* @typedef GetAppInventoryParam
|
|
@@ -643,7 +651,11 @@ class CatalogPlatformApplicationValidator {
|
|
|
643
651
|
|
|
644
652
|
/** @returns {GetAppCategoryReturnConfigParam} */
|
|
645
653
|
static getAppCategoryReturnConfig() {
|
|
646
|
-
return Joi.object({
|
|
654
|
+
return Joi.object({
|
|
655
|
+
q: Joi.string().allow(""),
|
|
656
|
+
pageNo: Joi.number(),
|
|
657
|
+
pageSize: Joi.number(),
|
|
658
|
+
}).required();
|
|
647
659
|
}
|
|
648
660
|
|
|
649
661
|
/** @returns {GetAppInventoryParam} */
|
|
@@ -62,27 +62,6 @@ declare class Catalog {
|
|
|
62
62
|
* @description: This API helps to create a bulk products upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkProductUploadJob/).
|
|
63
63
|
*/
|
|
64
64
|
createBulkProductUploadJob({ body, requestHeaders }?: CatalogPlatformValidator.CreateBulkProductUploadJobParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.BulkResponse>;
|
|
65
|
-
/**
|
|
66
|
-
* @param {CatalogPlatformValidator.CreateCategoriesParam} arg - Arg object
|
|
67
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
68
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
69
|
-
* @returns {Promise<CatalogPlatformModel.CategoryCreateResponse>} - Success response
|
|
70
|
-
* @name createCategories
|
|
71
|
-
* @summary: Create categories
|
|
72
|
-
* @description: Allows to create product categories for specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createCategories/).
|
|
73
|
-
*/
|
|
74
|
-
createCategories({ body, requestHeaders }?: CatalogPlatformValidator.CreateCategoriesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.CategoryCreateResponse>;
|
|
75
|
-
/**
|
|
76
|
-
* @param {CatalogPlatformValidator.CreateDepartmentsParam} arg - Arg object
|
|
77
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
78
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
79
|
-
* @returns {Promise<CatalogPlatformModel.DepartmentCreateResponse>} -
|
|
80
|
-
* Success response
|
|
81
|
-
* @name createDepartments
|
|
82
|
-
* @summary: Create departments
|
|
83
|
-
* @description: Create departments for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createDepartments/).
|
|
84
|
-
*/
|
|
85
|
-
createDepartments({ body, requestHeaders }?: CatalogPlatformValidator.CreateDepartmentsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.DepartmentCreateResponse>;
|
|
86
65
|
/**
|
|
87
66
|
* @param {CatalogPlatformValidator.CreateInventoryExportParam} arg - Arg object
|
|
88
67
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -285,6 +264,16 @@ declare class Catalog {
|
|
|
285
264
|
* @description: Retrieve all HSN codes associated with company products and provide search capabilities based on HSN code, reporting HSN, etc - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllProductHsnCodes/).
|
|
286
265
|
*/
|
|
287
266
|
getAllProductHsnCodes({ pageNo, pageSize, q, type, requestHeaders }?: CatalogPlatformValidator.GetAllProductHsnCodesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.HsnCodesListingResponseSchemaV2>;
|
|
267
|
+
/**
|
|
268
|
+
* @param {CatalogPlatformValidator.GetAttributeParam} arg - Arg object
|
|
269
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
270
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
271
|
+
* @returns {Promise<CatalogPlatformModel.AttributeDetail>} - Success response
|
|
272
|
+
* @name getAttribute
|
|
273
|
+
* @summary: Get attribute detail by slug
|
|
274
|
+
* @description: Retrieve the attribute detail for catalog listings by attribute slug passed for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAttribute/).
|
|
275
|
+
*/
|
|
276
|
+
getAttribute({ attributeSlug, requestHeaders }?: CatalogPlatformValidator.GetAttributeParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.AttributeDetail>;
|
|
288
277
|
/**
|
|
289
278
|
* @param {CatalogPlatformValidator.GetCategoryDataParam} arg - Arg object
|
|
290
279
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -336,16 +325,6 @@ declare class Catalog {
|
|
|
336
325
|
* @description: Retrieve detailed information about a specific department for a specific company by uid. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDepartmentData/).
|
|
337
326
|
*/
|
|
338
327
|
getDepartmentData({ uid, requestHeaders }?: CatalogPlatformValidator.GetDepartmentDataParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.DepartmentsResponse>;
|
|
339
|
-
/**
|
|
340
|
-
* @param {CatalogPlatformValidator.GetGenderAttributeParam} arg - Arg object
|
|
341
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
342
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
343
|
-
* @returns {Promise<CatalogPlatformModel.GenderDetail>} - Success response
|
|
344
|
-
* @name getGenderAttribute
|
|
345
|
-
* @summary: Get gender attribute by slug
|
|
346
|
-
* @description: Retrieve the gender attribute for catalog listings by attribute slug passed for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getGenderAttribute/).
|
|
347
|
-
*/
|
|
348
|
-
getGenderAttribute({ attributeSlug, requestHeaders }?: CatalogPlatformValidator.GetGenderAttributeParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.GenderDetail>;
|
|
349
328
|
/**
|
|
350
329
|
* @param {CatalogPlatformValidator.GetHsnCodeParam} arg - Arg object
|
|
351
330
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -942,26 +921,6 @@ declare class Catalog {
|
|
|
942
921
|
* @description: Retrieve values related to template brand types for a specific company. The filter type query parameter defines what type of data to return. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listTemplateBrandTypeValues/).
|
|
943
922
|
*/
|
|
944
923
|
listTemplateBrandTypeValues({ filter, templateTag, itemType, requestHeaders }?: CatalogPlatformValidator.ListTemplateBrandTypeValuesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.ProductConfigurationDownloads>;
|
|
945
|
-
/**
|
|
946
|
-
* @param {CatalogPlatformValidator.UpdateCategoryParam} arg - Arg object
|
|
947
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
948
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
949
|
-
* @returns {Promise<CatalogPlatformModel.CategoryUpdateResponse>} - Success response
|
|
950
|
-
* @name updateCategory
|
|
951
|
-
* @summary: Update category
|
|
952
|
-
* @description: Modify data for an existing category by its uid for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateCategory/).
|
|
953
|
-
*/
|
|
954
|
-
updateCategory({ uid, body, requestHeaders }?: CatalogPlatformValidator.UpdateCategoryParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.CategoryUpdateResponse>;
|
|
955
|
-
/**
|
|
956
|
-
* @param {CatalogPlatformValidator.UpdateDepartmentParam} arg - Arg object
|
|
957
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
958
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
959
|
-
* @returns {Promise<CatalogPlatformModel.DepartmentModel>} - Success response
|
|
960
|
-
* @name updateDepartment
|
|
961
|
-
* @summary: Update department
|
|
962
|
-
* @description: Modify the department data by their uid for a specifc company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateDepartment/).
|
|
963
|
-
*/
|
|
964
|
-
updateDepartment({ uid, body, requestHeaders }?: CatalogPlatformValidator.UpdateDepartmentParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.DepartmentModel>;
|
|
965
924
|
/**
|
|
966
925
|
* @param {CatalogPlatformValidator.UpdateHsnCodeParam} arg - Arg object
|
|
967
926
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|