@gofynd/fdk-client-javascript 1.2.0 → 1.3.1-beta.1
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 +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +6 -4
- package/sdk/application/Cart/CartApplicationModel.js +6 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +90 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +113 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -13,6 +13,7 @@ class Catalog {
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @param {CatalogPlatformValidator.AddInventoryParam} arg - Arg object
|
|
16
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
16
17
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
17
18
|
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
18
19
|
* @name addInventory
|
|
@@ -20,8 +21,8 @@ class Catalog {
|
|
|
20
21
|
* @description: This API allows add Inventory for particular size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/addInventory/).
|
|
21
22
|
*/
|
|
22
23
|
async addInventory(
|
|
23
|
-
{ itemId, size, body } = {},
|
|
24
|
-
{
|
|
24
|
+
{ itemId, size, body, requestHeaders } = { requestHeaders: {} },
|
|
25
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
25
26
|
) {
|
|
26
27
|
const { error } = CatalogPlatformValidator.addInventory().validate(
|
|
27
28
|
{
|
|
@@ -63,12 +64,12 @@ class Catalog {
|
|
|
63
64
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/sizes/${size}`,
|
|
64
65
|
query_params,
|
|
65
66
|
body,
|
|
66
|
-
xHeaders,
|
|
67
|
-
{
|
|
67
|
+
{ ...xHeaders, ...requestHeaders },
|
|
68
|
+
{ responseHeaders }
|
|
68
69
|
);
|
|
69
70
|
|
|
70
71
|
let responseData = response;
|
|
71
|
-
if (
|
|
72
|
+
if (responseHeaders) {
|
|
72
73
|
responseData = response[0];
|
|
73
74
|
}
|
|
74
75
|
|
|
@@ -91,13 +92,17 @@ class Catalog {
|
|
|
91
92
|
|
|
92
93
|
/**
|
|
93
94
|
* @param {CatalogPlatformValidator.AllSizesParam} arg - Arg object
|
|
95
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
94
96
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
95
97
|
* @returns {Promise<CatalogPlatformModel.GetAllSizes>} - Success response
|
|
96
98
|
* @name allSizes
|
|
97
99
|
* @summary: All Sizes for a given Product
|
|
98
100
|
* @description: This API allows to get All Sizes for a given Product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/allSizes/).
|
|
99
101
|
*/
|
|
100
|
-
async allSizes(
|
|
102
|
+
async allSizes(
|
|
103
|
+
{ itemId, requestHeaders } = { requestHeaders: {} },
|
|
104
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
105
|
+
) {
|
|
101
106
|
const { error } = CatalogPlatformValidator.allSizes().validate(
|
|
102
107
|
{
|
|
103
108
|
itemId,
|
|
@@ -132,12 +137,12 @@ class Catalog {
|
|
|
132
137
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/all_sizes`,
|
|
133
138
|
query_params,
|
|
134
139
|
undefined,
|
|
135
|
-
xHeaders,
|
|
136
|
-
{
|
|
140
|
+
{ ...xHeaders, ...requestHeaders },
|
|
141
|
+
{ responseHeaders }
|
|
137
142
|
);
|
|
138
143
|
|
|
139
144
|
let responseData = response;
|
|
140
|
-
if (
|
|
145
|
+
if (responseHeaders) {
|
|
141
146
|
responseData = response[0];
|
|
142
147
|
}
|
|
143
148
|
|
|
@@ -160,13 +165,17 @@ class Catalog {
|
|
|
160
165
|
|
|
161
166
|
/**
|
|
162
167
|
* @param {CatalogPlatformValidator.BulkHsnCodeParam} arg - Arg object
|
|
168
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
163
169
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
164
170
|
* @returns {Promise<CatalogPlatformModel.BulkHsnResponse>} - Success response
|
|
165
171
|
* @name bulkHsnCode
|
|
166
172
|
* @summary: Bulk Create or Update Hsn Code.
|
|
167
173
|
* @description: Bulk Create or Update Hsn Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/bulkHsnCode/).
|
|
168
174
|
*/
|
|
169
|
-
async bulkHsnCode(
|
|
175
|
+
async bulkHsnCode(
|
|
176
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
177
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
178
|
+
) {
|
|
170
179
|
const { error } = CatalogPlatformValidator.bulkHsnCode().validate(
|
|
171
180
|
{
|
|
172
181
|
body,
|
|
@@ -201,12 +210,12 @@ class Catalog {
|
|
|
201
210
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/bulk/`,
|
|
202
211
|
query_params,
|
|
203
212
|
body,
|
|
204
|
-
xHeaders,
|
|
205
|
-
{
|
|
213
|
+
{ ...xHeaders, ...requestHeaders },
|
|
214
|
+
{ responseHeaders }
|
|
206
215
|
);
|
|
207
216
|
|
|
208
217
|
let responseData = response;
|
|
209
|
-
if (
|
|
218
|
+
if (responseHeaders) {
|
|
210
219
|
responseData = response[0];
|
|
211
220
|
}
|
|
212
221
|
|
|
@@ -229,6 +238,7 @@ class Catalog {
|
|
|
229
238
|
|
|
230
239
|
/**
|
|
231
240
|
* @param {CatalogPlatformValidator.CreateBulkInventoryParam} arg - Arg object
|
|
241
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
232
242
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
233
243
|
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
234
244
|
* @name createBulkInventory
|
|
@@ -236,8 +246,8 @@ class Catalog {
|
|
|
236
246
|
* @description: This API helps to create products in bulk push to kafka for approval/creation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkInventory/).
|
|
237
247
|
*/
|
|
238
248
|
async createBulkInventory(
|
|
239
|
-
{ batchId, body } = {},
|
|
240
|
-
{
|
|
249
|
+
{ batchId, body, requestHeaders } = { requestHeaders: {} },
|
|
250
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
241
251
|
) {
|
|
242
252
|
const { error } = CatalogPlatformValidator.createBulkInventory().validate(
|
|
243
253
|
{
|
|
@@ -277,12 +287,12 @@ class Catalog {
|
|
|
277
287
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/${batchId}/`,
|
|
278
288
|
query_params,
|
|
279
289
|
body,
|
|
280
|
-
xHeaders,
|
|
281
|
-
{
|
|
290
|
+
{ ...xHeaders, ...requestHeaders },
|
|
291
|
+
{ responseHeaders }
|
|
282
292
|
);
|
|
283
293
|
|
|
284
294
|
let responseData = response;
|
|
285
|
-
if (
|
|
295
|
+
if (responseHeaders) {
|
|
286
296
|
responseData = response[0];
|
|
287
297
|
}
|
|
288
298
|
|
|
@@ -305,6 +315,7 @@ class Catalog {
|
|
|
305
315
|
|
|
306
316
|
/**
|
|
307
317
|
* @param {CatalogPlatformValidator.CreateBulkInventoryJobParam} arg - Arg object
|
|
318
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
308
319
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
309
320
|
* @returns {Promise<CatalogPlatformModel.BulkResponse>} - Success response
|
|
310
321
|
* @name createBulkInventoryJob
|
|
@@ -312,8 +323,8 @@ class Catalog {
|
|
|
312
323
|
* @description: This API helps to create a bulk Inventory upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkInventoryJob/).
|
|
313
324
|
*/
|
|
314
325
|
async createBulkInventoryJob(
|
|
315
|
-
{ body } = {},
|
|
316
|
-
{
|
|
326
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
327
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
317
328
|
) {
|
|
318
329
|
const {
|
|
319
330
|
error,
|
|
@@ -353,12 +364,12 @@ class Catalog {
|
|
|
353
364
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/`,
|
|
354
365
|
query_params,
|
|
355
366
|
body,
|
|
356
|
-
xHeaders,
|
|
357
|
-
{
|
|
367
|
+
{ ...xHeaders, ...requestHeaders },
|
|
368
|
+
{ responseHeaders }
|
|
358
369
|
);
|
|
359
370
|
|
|
360
371
|
let responseData = response;
|
|
361
|
-
if (
|
|
372
|
+
if (responseHeaders) {
|
|
362
373
|
responseData = response[0];
|
|
363
374
|
}
|
|
364
375
|
|
|
@@ -381,6 +392,7 @@ class Catalog {
|
|
|
381
392
|
|
|
382
393
|
/**
|
|
383
394
|
* @param {CatalogPlatformValidator.CreateBulkProductUploadJobParam} arg - Arg object
|
|
395
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
384
396
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
385
397
|
* @returns {Promise<CatalogPlatformModel.BulkResponse>} - Success response
|
|
386
398
|
* @name createBulkProductUploadJob
|
|
@@ -388,8 +400,8 @@ class Catalog {
|
|
|
388
400
|
* @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/).
|
|
389
401
|
*/
|
|
390
402
|
async createBulkProductUploadJob(
|
|
391
|
-
{ body } = {},
|
|
392
|
-
{
|
|
403
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
404
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
393
405
|
) {
|
|
394
406
|
const {
|
|
395
407
|
error,
|
|
@@ -429,12 +441,12 @@ class Catalog {
|
|
|
429
441
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/bulk`,
|
|
430
442
|
query_params,
|
|
431
443
|
body,
|
|
432
|
-
xHeaders,
|
|
433
|
-
{
|
|
444
|
+
{ ...xHeaders, ...requestHeaders },
|
|
445
|
+
{ responseHeaders }
|
|
434
446
|
);
|
|
435
447
|
|
|
436
448
|
let responseData = response;
|
|
437
|
-
if (
|
|
449
|
+
if (responseHeaders) {
|
|
438
450
|
responseData = response[0];
|
|
439
451
|
}
|
|
440
452
|
|
|
@@ -457,13 +469,17 @@ class Catalog {
|
|
|
457
469
|
|
|
458
470
|
/**
|
|
459
471
|
* @param {CatalogPlatformValidator.CreateCategoriesParam} arg - Arg object
|
|
472
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
460
473
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
461
474
|
* @returns {Promise<CatalogPlatformModel.CategoryCreateResponse>} - Success response
|
|
462
475
|
* @name createCategories
|
|
463
476
|
* @summary: Create product categories
|
|
464
477
|
* @description: This API lets user create product categories - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createCategories/).
|
|
465
478
|
*/
|
|
466
|
-
async createCategories(
|
|
479
|
+
async createCategories(
|
|
480
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
481
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
482
|
+
) {
|
|
467
483
|
const { error } = CatalogPlatformValidator.createCategories().validate(
|
|
468
484
|
{
|
|
469
485
|
body,
|
|
@@ -500,12 +516,12 @@ class Catalog {
|
|
|
500
516
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/category/`,
|
|
501
517
|
query_params,
|
|
502
518
|
body,
|
|
503
|
-
xHeaders,
|
|
504
|
-
{
|
|
519
|
+
{ ...xHeaders, ...requestHeaders },
|
|
520
|
+
{ responseHeaders }
|
|
505
521
|
);
|
|
506
522
|
|
|
507
523
|
let responseData = response;
|
|
508
|
-
if (
|
|
524
|
+
if (responseHeaders) {
|
|
509
525
|
responseData = response[0];
|
|
510
526
|
}
|
|
511
527
|
|
|
@@ -528,6 +544,7 @@ class Catalog {
|
|
|
528
544
|
|
|
529
545
|
/**
|
|
530
546
|
* @param {CatalogPlatformValidator.CreateDepartmentsParam} arg - Arg object
|
|
547
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
531
548
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
532
549
|
* @returns {Promise<CatalogPlatformModel.DepartmentCreateResponse>} -
|
|
533
550
|
* Success response
|
|
@@ -535,7 +552,10 @@ class Catalog {
|
|
|
535
552
|
* @summary: Create the department.
|
|
536
553
|
* @description: Create departments using the API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createDepartments/).
|
|
537
554
|
*/
|
|
538
|
-
async createDepartments(
|
|
555
|
+
async createDepartments(
|
|
556
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
557
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
558
|
+
) {
|
|
539
559
|
const { error } = CatalogPlatformValidator.createDepartments().validate(
|
|
540
560
|
{
|
|
541
561
|
body,
|
|
@@ -572,12 +592,12 @@ class Catalog {
|
|
|
572
592
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/`,
|
|
573
593
|
query_params,
|
|
574
594
|
body,
|
|
575
|
-
xHeaders,
|
|
576
|
-
{
|
|
595
|
+
{ ...xHeaders, ...requestHeaders },
|
|
596
|
+
{ responseHeaders }
|
|
577
597
|
);
|
|
578
598
|
|
|
579
599
|
let responseData = response;
|
|
580
|
-
if (
|
|
600
|
+
if (responseHeaders) {
|
|
581
601
|
responseData = response[0];
|
|
582
602
|
}
|
|
583
603
|
|
|
@@ -600,13 +620,17 @@ class Catalog {
|
|
|
600
620
|
|
|
601
621
|
/**
|
|
602
622
|
* @param {CatalogPlatformValidator.CreateInventoryExportParam} arg - Arg object
|
|
623
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
603
624
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
604
625
|
* @returns {Promise<CatalogPlatformModel.InventoryExportResponse>} - Success response
|
|
605
626
|
* @name createInventoryExport
|
|
606
627
|
* @summary: Create an inventory export job.
|
|
607
628
|
* @description: This API helps to create a Inventory export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createInventoryExport/).
|
|
608
629
|
*/
|
|
609
|
-
async createInventoryExport(
|
|
630
|
+
async createInventoryExport(
|
|
631
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
632
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
633
|
+
) {
|
|
610
634
|
const { error } = CatalogPlatformValidator.createInventoryExport().validate(
|
|
611
635
|
{
|
|
612
636
|
body,
|
|
@@ -643,12 +667,12 @@ class Catalog {
|
|
|
643
667
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download/`,
|
|
644
668
|
query_params,
|
|
645
669
|
body,
|
|
646
|
-
xHeaders,
|
|
647
|
-
{
|
|
670
|
+
{ ...xHeaders, ...requestHeaders },
|
|
671
|
+
{ responseHeaders }
|
|
648
672
|
);
|
|
649
673
|
|
|
650
674
|
let responseData = response;
|
|
651
|
-
if (
|
|
675
|
+
if (responseHeaders) {
|
|
652
676
|
responseData = response[0];
|
|
653
677
|
}
|
|
654
678
|
|
|
@@ -671,6 +695,7 @@ class Catalog {
|
|
|
671
695
|
|
|
672
696
|
/**
|
|
673
697
|
* @param {CatalogPlatformValidator.CreateInventoryExportJobParam} arg - Arg object
|
|
698
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
674
699
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
675
700
|
* @returns {Promise<CatalogPlatformModel.InventoryExportResponse>} - Success response
|
|
676
701
|
* @name createInventoryExportJob
|
|
@@ -678,8 +703,8 @@ class Catalog {
|
|
|
678
703
|
* @description: This API helps to create a Inventory export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createInventoryExportJob/).
|
|
679
704
|
*/
|
|
680
705
|
async createInventoryExportJob(
|
|
681
|
-
{ body } = {},
|
|
682
|
-
{
|
|
706
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
707
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
683
708
|
) {
|
|
684
709
|
const {
|
|
685
710
|
error,
|
|
@@ -719,12 +744,12 @@ class Catalog {
|
|
|
719
744
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download/`,
|
|
720
745
|
query_params,
|
|
721
746
|
body,
|
|
722
|
-
xHeaders,
|
|
723
|
-
{
|
|
747
|
+
{ ...xHeaders, ...requestHeaders },
|
|
748
|
+
{ responseHeaders }
|
|
724
749
|
);
|
|
725
750
|
|
|
726
751
|
let responseData = response;
|
|
727
|
-
if (
|
|
752
|
+
if (responseHeaders) {
|
|
728
753
|
responseData = response[0];
|
|
729
754
|
}
|
|
730
755
|
|
|
@@ -747,6 +772,7 @@ class Catalog {
|
|
|
747
772
|
|
|
748
773
|
/**
|
|
749
774
|
* @param {CatalogPlatformValidator.CreateMarketplaceOptinParam} arg - Arg object
|
|
775
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
750
776
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
751
777
|
* @returns {Promise<CatalogPlatformModel.UpdatedResponse>} - Success response
|
|
752
778
|
* @name createMarketplaceOptin
|
|
@@ -754,8 +780,8 @@ class Catalog {
|
|
|
754
780
|
* @description: Use this API to create/update opt-in information for given platform. If successful, returns data in the response body as specified in `OptInPostResponseSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMarketplaceOptin/).
|
|
755
781
|
*/
|
|
756
782
|
async createMarketplaceOptin(
|
|
757
|
-
{ marketplace, body } = {},
|
|
758
|
-
{
|
|
783
|
+
{ marketplace, body, requestHeaders } = { requestHeaders: {} },
|
|
784
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
759
785
|
) {
|
|
760
786
|
const {
|
|
761
787
|
error,
|
|
@@ -797,12 +823,12 @@ class Catalog {
|
|
|
797
823
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/${marketplace}/optin/`,
|
|
798
824
|
query_params,
|
|
799
825
|
body,
|
|
800
|
-
xHeaders,
|
|
801
|
-
{
|
|
826
|
+
{ ...xHeaders, ...requestHeaders },
|
|
827
|
+
{ responseHeaders }
|
|
802
828
|
);
|
|
803
829
|
|
|
804
830
|
let responseData = response;
|
|
805
|
-
if (
|
|
831
|
+
if (responseHeaders) {
|
|
806
832
|
responseData = response[0];
|
|
807
833
|
}
|
|
808
834
|
|
|
@@ -825,13 +851,17 @@ class Catalog {
|
|
|
825
851
|
|
|
826
852
|
/**
|
|
827
853
|
* @param {CatalogPlatformValidator.CreateProductParam} arg - Arg object
|
|
854
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
828
855
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
829
856
|
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
830
857
|
* @name createProduct
|
|
831
858
|
* @summary: Create a product.
|
|
832
859
|
* @description: This API allows to create product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProduct/).
|
|
833
860
|
*/
|
|
834
|
-
async createProduct(
|
|
861
|
+
async createProduct(
|
|
862
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
863
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
864
|
+
) {
|
|
835
865
|
const { error } = CatalogPlatformValidator.createProduct().validate(
|
|
836
866
|
{
|
|
837
867
|
body,
|
|
@@ -868,12 +898,12 @@ class Catalog {
|
|
|
868
898
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/products/`,
|
|
869
899
|
query_params,
|
|
870
900
|
body,
|
|
871
|
-
xHeaders,
|
|
872
|
-
{
|
|
901
|
+
{ ...xHeaders, ...requestHeaders },
|
|
902
|
+
{ responseHeaders }
|
|
873
903
|
);
|
|
874
904
|
|
|
875
905
|
let responseData = response;
|
|
876
|
-
if (
|
|
906
|
+
if (responseHeaders) {
|
|
877
907
|
responseData = response[0];
|
|
878
908
|
}
|
|
879
909
|
|
|
@@ -896,6 +926,7 @@ class Catalog {
|
|
|
896
926
|
|
|
897
927
|
/**
|
|
898
928
|
* @param {CatalogPlatformValidator.CreateProductAssetsInBulkParam} arg - Arg object
|
|
929
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
899
930
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
900
931
|
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
901
932
|
* @name createProductAssetsInBulk
|
|
@@ -903,8 +934,8 @@ class Catalog {
|
|
|
903
934
|
* @description: This API helps to create a bulk asset upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductAssetsInBulk/).
|
|
904
935
|
*/
|
|
905
936
|
async createProductAssetsInBulk(
|
|
906
|
-
{ body } = {},
|
|
907
|
-
{
|
|
937
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
938
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
908
939
|
) {
|
|
909
940
|
const {
|
|
910
941
|
error,
|
|
@@ -944,12 +975,12 @@ class Catalog {
|
|
|
944
975
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/assets/bulk/`,
|
|
945
976
|
query_params,
|
|
946
977
|
body,
|
|
947
|
-
xHeaders,
|
|
948
|
-
{
|
|
978
|
+
{ ...xHeaders, ...requestHeaders },
|
|
979
|
+
{ responseHeaders }
|
|
949
980
|
);
|
|
950
981
|
|
|
951
982
|
let responseData = response;
|
|
952
|
-
if (
|
|
983
|
+
if (responseHeaders) {
|
|
953
984
|
responseData = response[0];
|
|
954
985
|
}
|
|
955
986
|
|
|
@@ -972,6 +1003,7 @@ class Catalog {
|
|
|
972
1003
|
|
|
973
1004
|
/**
|
|
974
1005
|
* @param {CatalogPlatformValidator.CreateProductBundleParam} arg - Arg object
|
|
1006
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
975
1007
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
976
1008
|
* @returns {Promise<CatalogPlatformModel.GetProductBundleCreateResponse>}
|
|
977
1009
|
* - Success response
|
|
@@ -980,7 +1012,10 @@ class Catalog {
|
|
|
980
1012
|
* @summary: Create Product Bundle
|
|
981
1013
|
* @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 - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductBundle/).
|
|
982
1014
|
*/
|
|
983
|
-
async createProductBundle(
|
|
1015
|
+
async createProductBundle(
|
|
1016
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1017
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1018
|
+
) {
|
|
984
1019
|
const { error } = CatalogPlatformValidator.createProductBundle().validate(
|
|
985
1020
|
{
|
|
986
1021
|
body,
|
|
@@ -1017,12 +1052,12 @@ class Catalog {
|
|
|
1017
1052
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/`,
|
|
1018
1053
|
query_params,
|
|
1019
1054
|
body,
|
|
1020
|
-
xHeaders,
|
|
1021
|
-
{
|
|
1055
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1056
|
+
{ responseHeaders }
|
|
1022
1057
|
);
|
|
1023
1058
|
|
|
1024
1059
|
let responseData = response;
|
|
1025
|
-
if (
|
|
1060
|
+
if (responseHeaders) {
|
|
1026
1061
|
responseData = response[0];
|
|
1027
1062
|
}
|
|
1028
1063
|
|
|
@@ -1045,6 +1080,7 @@ class Catalog {
|
|
|
1045
1080
|
|
|
1046
1081
|
/**
|
|
1047
1082
|
* @param {CatalogPlatformValidator.CreateProductExportJobParam} arg - Arg object
|
|
1083
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1048
1084
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1049
1085
|
* @returns {Promise<CatalogPlatformModel.ProductDownloadsResponse>} -
|
|
1050
1086
|
* Success response
|
|
@@ -1053,8 +1089,8 @@ class Catalog {
|
|
|
1053
1089
|
* @description: This API helps to create a Inventory export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductExportJob/).
|
|
1054
1090
|
*/
|
|
1055
1091
|
async createProductExportJob(
|
|
1056
|
-
{ body } = {},
|
|
1057
|
-
{
|
|
1092
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1093
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1058
1094
|
) {
|
|
1059
1095
|
const {
|
|
1060
1096
|
error,
|
|
@@ -1094,12 +1130,12 @@ class Catalog {
|
|
|
1094
1130
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads/`,
|
|
1095
1131
|
query_params,
|
|
1096
1132
|
body,
|
|
1097
|
-
xHeaders,
|
|
1098
|
-
{
|
|
1133
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1134
|
+
{ responseHeaders }
|
|
1099
1135
|
);
|
|
1100
1136
|
|
|
1101
1137
|
let responseData = response;
|
|
1102
|
-
if (
|
|
1138
|
+
if (responseHeaders) {
|
|
1103
1139
|
responseData = response[0];
|
|
1104
1140
|
}
|
|
1105
1141
|
|
|
@@ -1122,6 +1158,7 @@ class Catalog {
|
|
|
1122
1158
|
|
|
1123
1159
|
/**
|
|
1124
1160
|
* @param {CatalogPlatformValidator.CreateProductsInBulkParam} arg - Arg object
|
|
1161
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1125
1162
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1126
1163
|
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1127
1164
|
* @name createProductsInBulk
|
|
@@ -1129,8 +1166,8 @@ class Catalog {
|
|
|
1129
1166
|
* @description: This API helps to create products in bulk push to kafka for approval/creation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductsInBulk/).
|
|
1130
1167
|
*/
|
|
1131
1168
|
async createProductsInBulk(
|
|
1132
|
-
{ batchId, body } = {},
|
|
1133
|
-
{
|
|
1169
|
+
{ batchId, body, requestHeaders } = { requestHeaders: {} },
|
|
1170
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1134
1171
|
) {
|
|
1135
1172
|
const { error } = CatalogPlatformValidator.createProductsInBulk().validate(
|
|
1136
1173
|
{
|
|
@@ -1170,12 +1207,12 @@ class Catalog {
|
|
|
1170
1207
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/bulk/${batchId}`,
|
|
1171
1208
|
query_params,
|
|
1172
1209
|
body,
|
|
1173
|
-
xHeaders,
|
|
1174
|
-
{
|
|
1210
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1211
|
+
{ responseHeaders }
|
|
1175
1212
|
);
|
|
1176
1213
|
|
|
1177
1214
|
let responseData = response;
|
|
1178
|
-
if (
|
|
1215
|
+
if (responseHeaders) {
|
|
1179
1216
|
responseData = response[0];
|
|
1180
1217
|
}
|
|
1181
1218
|
|
|
@@ -1198,13 +1235,17 @@ class Catalog {
|
|
|
1198
1235
|
|
|
1199
1236
|
/**
|
|
1200
1237
|
* @param {CatalogPlatformValidator.CreateSizeGuideParam} arg - Arg object
|
|
1238
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1201
1239
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1202
1240
|
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1203
1241
|
* @name createSizeGuide
|
|
1204
1242
|
* @summary: Create a size guide.
|
|
1205
1243
|
* @description: This API allows to create a size guide associated to a brand. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createSizeGuide/).
|
|
1206
1244
|
*/
|
|
1207
|
-
async createSizeGuide(
|
|
1245
|
+
async createSizeGuide(
|
|
1246
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1247
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1248
|
+
) {
|
|
1208
1249
|
const { error } = CatalogPlatformValidator.createSizeGuide().validate(
|
|
1209
1250
|
{
|
|
1210
1251
|
body,
|
|
@@ -1241,12 +1282,12 @@ class Catalog {
|
|
|
1241
1282
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/sizeguide`,
|
|
1242
1283
|
query_params,
|
|
1243
1284
|
body,
|
|
1244
|
-
xHeaders,
|
|
1245
|
-
{
|
|
1285
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1286
|
+
{ responseHeaders }
|
|
1246
1287
|
);
|
|
1247
1288
|
|
|
1248
1289
|
let responseData = response;
|
|
1249
|
-
if (
|
|
1290
|
+
if (responseHeaders) {
|
|
1250
1291
|
responseData = response[0];
|
|
1251
1292
|
}
|
|
1252
1293
|
|
|
@@ -1269,6 +1310,7 @@ class Catalog {
|
|
|
1269
1310
|
|
|
1270
1311
|
/**
|
|
1271
1312
|
* @param {CatalogPlatformValidator.DeleteBulkInventoryJobParam} arg - Arg object
|
|
1313
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1272
1314
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1273
1315
|
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1274
1316
|
* @name deleteBulkInventoryJob
|
|
@@ -1276,8 +1318,8 @@ class Catalog {
|
|
|
1276
1318
|
* @description: This API allows to delete bulk Inventory job associated with company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteBulkInventoryJob/).
|
|
1277
1319
|
*/
|
|
1278
1320
|
async deleteBulkInventoryJob(
|
|
1279
|
-
{ batchId } = {},
|
|
1280
|
-
{
|
|
1321
|
+
{ batchId, requestHeaders } = { requestHeaders: {} },
|
|
1322
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1281
1323
|
) {
|
|
1282
1324
|
const {
|
|
1283
1325
|
error,
|
|
@@ -1317,12 +1359,12 @@ class Catalog {
|
|
|
1317
1359
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/${batchId}/`,
|
|
1318
1360
|
query_params,
|
|
1319
1361
|
undefined,
|
|
1320
|
-
xHeaders,
|
|
1321
|
-
{
|
|
1362
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1363
|
+
{ responseHeaders }
|
|
1322
1364
|
);
|
|
1323
1365
|
|
|
1324
1366
|
let responseData = response;
|
|
1325
|
-
if (
|
|
1367
|
+
if (responseHeaders) {
|
|
1326
1368
|
responseData = response[0];
|
|
1327
1369
|
}
|
|
1328
1370
|
|
|
@@ -1345,6 +1387,7 @@ class Catalog {
|
|
|
1345
1387
|
|
|
1346
1388
|
/**
|
|
1347
1389
|
* @param {CatalogPlatformValidator.DeleteInventoryParam} arg - Arg object
|
|
1390
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1348
1391
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1349
1392
|
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1350
1393
|
* @name deleteInventory
|
|
@@ -1352,8 +1395,8 @@ class Catalog {
|
|
|
1352
1395
|
* @description: This API allows to delete inventory of a particular product for particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteInventory/).
|
|
1353
1396
|
*/
|
|
1354
1397
|
async deleteInventory(
|
|
1355
|
-
{ size, itemId, locationId } = {},
|
|
1356
|
-
{
|
|
1398
|
+
{ size, itemId, locationId, requestHeaders } = { requestHeaders: {} },
|
|
1399
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1357
1400
|
) {
|
|
1358
1401
|
const { error } = CatalogPlatformValidator.deleteInventory().validate(
|
|
1359
1402
|
{
|
|
@@ -1395,12 +1438,12 @@ class Catalog {
|
|
|
1395
1438
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/sizes/${size}/location/${locationId}/`,
|
|
1396
1439
|
query_params,
|
|
1397
1440
|
undefined,
|
|
1398
|
-
xHeaders,
|
|
1399
|
-
{
|
|
1441
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1442
|
+
{ responseHeaders }
|
|
1400
1443
|
);
|
|
1401
1444
|
|
|
1402
1445
|
let responseData = response;
|
|
1403
|
-
if (
|
|
1446
|
+
if (responseHeaders) {
|
|
1404
1447
|
responseData = response[0];
|
|
1405
1448
|
}
|
|
1406
1449
|
|
|
@@ -1423,13 +1466,17 @@ class Catalog {
|
|
|
1423
1466
|
|
|
1424
1467
|
/**
|
|
1425
1468
|
* @param {CatalogPlatformValidator.DeleteProductParam} arg - Arg object
|
|
1469
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1426
1470
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1427
1471
|
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1428
1472
|
* @name deleteProduct
|
|
1429
1473
|
* @summary: Delete a product.
|
|
1430
1474
|
* @description: This API allows to delete product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteProduct/).
|
|
1431
1475
|
*/
|
|
1432
|
-
async deleteProduct(
|
|
1476
|
+
async deleteProduct(
|
|
1477
|
+
{ itemId, requestHeaders } = { requestHeaders: {} },
|
|
1478
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1479
|
+
) {
|
|
1433
1480
|
const { error } = CatalogPlatformValidator.deleteProduct().validate(
|
|
1434
1481
|
{
|
|
1435
1482
|
itemId,
|
|
@@ -1466,12 +1513,12 @@ class Catalog {
|
|
|
1466
1513
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/`,
|
|
1467
1514
|
query_params,
|
|
1468
1515
|
undefined,
|
|
1469
|
-
xHeaders,
|
|
1470
|
-
{
|
|
1516
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1517
|
+
{ responseHeaders }
|
|
1471
1518
|
);
|
|
1472
1519
|
|
|
1473
1520
|
let responseData = response;
|
|
1474
|
-
if (
|
|
1521
|
+
if (responseHeaders) {
|
|
1475
1522
|
responseData = response[0];
|
|
1476
1523
|
}
|
|
1477
1524
|
|
|
@@ -1494,6 +1541,7 @@ class Catalog {
|
|
|
1494
1541
|
|
|
1495
1542
|
/**
|
|
1496
1543
|
* @param {CatalogPlatformValidator.DeleteProductBulkJobParam} arg - Arg object
|
|
1544
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1497
1545
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1498
1546
|
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1499
1547
|
* @name deleteProductBulkJob
|
|
@@ -1501,8 +1549,8 @@ class Catalog {
|
|
|
1501
1549
|
* @description: This API allows to delete bulk product job associated with company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteProductBulkJob/).
|
|
1502
1550
|
*/
|
|
1503
1551
|
async deleteProductBulkJob(
|
|
1504
|
-
{ batchId } = {},
|
|
1505
|
-
{
|
|
1552
|
+
{ batchId, requestHeaders } = { requestHeaders: {} },
|
|
1553
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1506
1554
|
) {
|
|
1507
1555
|
const { error } = CatalogPlatformValidator.deleteProductBulkJob().validate(
|
|
1508
1556
|
{
|
|
@@ -1540,12 +1588,12 @@ class Catalog {
|
|
|
1540
1588
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/bulk/${batchId}`,
|
|
1541
1589
|
query_params,
|
|
1542
1590
|
undefined,
|
|
1543
|
-
xHeaders,
|
|
1544
|
-
{
|
|
1591
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1592
|
+
{ responseHeaders }
|
|
1545
1593
|
);
|
|
1546
1594
|
|
|
1547
1595
|
let responseData = response;
|
|
1548
|
-
if (
|
|
1596
|
+
if (responseHeaders) {
|
|
1549
1597
|
responseData = response[0];
|
|
1550
1598
|
}
|
|
1551
1599
|
|
|
@@ -1568,6 +1616,7 @@ class Catalog {
|
|
|
1568
1616
|
|
|
1569
1617
|
/**
|
|
1570
1618
|
* @param {CatalogPlatformValidator.DeleteRealtimeInventoryParam} arg - Arg object
|
|
1619
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1571
1620
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1572
1621
|
* @returns {Promise<CatalogPlatformModel.InventoryUpdateResponse>} - Success response
|
|
1573
1622
|
* @name deleteRealtimeInventory
|
|
@@ -1575,8 +1624,8 @@ class Catalog {
|
|
|
1575
1624
|
* @description: This API allows add Inventory for particular size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteRealtimeInventory/).
|
|
1576
1625
|
*/
|
|
1577
1626
|
async deleteRealtimeInventory(
|
|
1578
|
-
{ itemId, sellerIdentifier, body } = {},
|
|
1579
|
-
{
|
|
1627
|
+
{ itemId, sellerIdentifier, body, requestHeaders } = { requestHeaders: {} },
|
|
1628
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1580
1629
|
) {
|
|
1581
1630
|
const {
|
|
1582
1631
|
error,
|
|
@@ -1620,12 +1669,12 @@ class Catalog {
|
|
|
1620
1669
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/inventory/${sellerIdentifier}`,
|
|
1621
1670
|
query_params,
|
|
1622
1671
|
body,
|
|
1623
|
-
xHeaders,
|
|
1624
|
-
{
|
|
1672
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1673
|
+
{ responseHeaders }
|
|
1625
1674
|
);
|
|
1626
1675
|
|
|
1627
1676
|
let responseData = response;
|
|
1628
|
-
if (
|
|
1677
|
+
if (responseHeaders) {
|
|
1629
1678
|
responseData = response[0];
|
|
1630
1679
|
}
|
|
1631
1680
|
|
|
@@ -1648,6 +1697,7 @@ class Catalog {
|
|
|
1648
1697
|
|
|
1649
1698
|
/**
|
|
1650
1699
|
* @param {CatalogPlatformValidator.DeleteSizeParam} arg - Arg object
|
|
1700
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1651
1701
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1652
1702
|
* @returns {Promise<CatalogPlatformModel.ProductSizeDeleteResponse>} -
|
|
1653
1703
|
* Success response
|
|
@@ -1655,7 +1705,10 @@ class Catalog {
|
|
|
1655
1705
|
* @summary: Delete a Size associated with product.
|
|
1656
1706
|
* @description: This API allows to delete size associated with product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSize/).
|
|
1657
1707
|
*/
|
|
1658
|
-
async deleteSize(
|
|
1708
|
+
async deleteSize(
|
|
1709
|
+
{ itemId, size, requestHeaders } = { requestHeaders: {} },
|
|
1710
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1711
|
+
) {
|
|
1659
1712
|
const { error } = CatalogPlatformValidator.deleteSize().validate(
|
|
1660
1713
|
{
|
|
1661
1714
|
itemId,
|
|
@@ -1692,12 +1745,12 @@ class Catalog {
|
|
|
1692
1745
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/sizes/${size}`,
|
|
1693
1746
|
query_params,
|
|
1694
1747
|
undefined,
|
|
1695
|
-
xHeaders,
|
|
1696
|
-
{
|
|
1748
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1749
|
+
{ responseHeaders }
|
|
1697
1750
|
);
|
|
1698
1751
|
|
|
1699
1752
|
let responseData = response;
|
|
1700
|
-
if (
|
|
1753
|
+
if (responseHeaders) {
|
|
1701
1754
|
responseData = response[0];
|
|
1702
1755
|
}
|
|
1703
1756
|
|
|
@@ -1722,6 +1775,7 @@ class Catalog {
|
|
|
1722
1775
|
* @param {CatalogPlatformValidator.DownloadInventoryTemplateViewParam} arg
|
|
1723
1776
|
* - Arg object
|
|
1724
1777
|
*
|
|
1778
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1725
1779
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1726
1780
|
* @returns {Promise<string>} - Success response
|
|
1727
1781
|
* @name downloadInventoryTemplateView
|
|
@@ -1729,8 +1783,8 @@ class Catalog {
|
|
|
1729
1783
|
* @description: Allows you to download product template data - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/downloadInventoryTemplateView/).
|
|
1730
1784
|
*/
|
|
1731
1785
|
async downloadInventoryTemplateView(
|
|
1732
|
-
{ itemType } = {},
|
|
1733
|
-
{
|
|
1786
|
+
{ itemType, requestHeaders } = { requestHeaders: {} },
|
|
1787
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1734
1788
|
) {
|
|
1735
1789
|
const {
|
|
1736
1790
|
error,
|
|
@@ -1771,12 +1825,12 @@ class Catalog {
|
|
|
1771
1825
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/templates/download/`,
|
|
1772
1826
|
query_params,
|
|
1773
1827
|
undefined,
|
|
1774
|
-
xHeaders,
|
|
1775
|
-
{
|
|
1828
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1829
|
+
{ responseHeaders }
|
|
1776
1830
|
);
|
|
1777
1831
|
|
|
1778
1832
|
let responseData = response;
|
|
1779
|
-
if (
|
|
1833
|
+
if (responseHeaders) {
|
|
1780
1834
|
responseData = response[0];
|
|
1781
1835
|
}
|
|
1782
1836
|
|
|
@@ -1798,6 +1852,7 @@ class Catalog {
|
|
|
1798
1852
|
* @param {CatalogPlatformValidator.DownloadProductTemplateViewsParam} arg
|
|
1799
1853
|
* - Arg object
|
|
1800
1854
|
*
|
|
1855
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1801
1856
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1802
1857
|
* @returns {Promise<string>} - Success response
|
|
1803
1858
|
* @name downloadProductTemplateViews
|
|
@@ -1805,14 +1860,16 @@ class Catalog {
|
|
|
1805
1860
|
* @description: Allows you to download product template data - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/downloadProductTemplateViews/).
|
|
1806
1861
|
*/
|
|
1807
1862
|
async downloadProductTemplateViews(
|
|
1808
|
-
{ slug } = {},
|
|
1809
|
-
{
|
|
1863
|
+
{ slug, itemType, type, requestHeaders } = { requestHeaders: {} },
|
|
1864
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1810
1865
|
) {
|
|
1811
1866
|
const {
|
|
1812
1867
|
error,
|
|
1813
1868
|
} = CatalogPlatformValidator.downloadProductTemplateViews().validate(
|
|
1814
1869
|
{
|
|
1815
1870
|
slug,
|
|
1871
|
+
itemType,
|
|
1872
|
+
type,
|
|
1816
1873
|
},
|
|
1817
1874
|
{ abortEarly: false, allowUnknown: true }
|
|
1818
1875
|
);
|
|
@@ -1826,6 +1883,8 @@ class Catalog {
|
|
|
1826
1883
|
} = CatalogPlatformValidator.downloadProductTemplateViews().validate(
|
|
1827
1884
|
{
|
|
1828
1885
|
slug,
|
|
1886
|
+
itemType,
|
|
1887
|
+
type,
|
|
1829
1888
|
},
|
|
1830
1889
|
{ abortEarly: false, allowUnknown: false }
|
|
1831
1890
|
);
|
|
@@ -1837,6 +1896,8 @@ class Catalog {
|
|
|
1837
1896
|
}
|
|
1838
1897
|
|
|
1839
1898
|
const query_params = {};
|
|
1899
|
+
query_params["item_type"] = itemType;
|
|
1900
|
+
query_params["type"] = type;
|
|
1840
1901
|
|
|
1841
1902
|
const xHeaders = {};
|
|
1842
1903
|
|
|
@@ -1846,12 +1907,12 @@ class Catalog {
|
|
|
1846
1907
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/${slug}/download/`,
|
|
1847
1908
|
query_params,
|
|
1848
1909
|
undefined,
|
|
1849
|
-
xHeaders,
|
|
1850
|
-
{
|
|
1910
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1911
|
+
{ responseHeaders }
|
|
1851
1912
|
);
|
|
1852
1913
|
|
|
1853
1914
|
let responseData = response;
|
|
1854
|
-
if (
|
|
1915
|
+
if (responseHeaders) {
|
|
1855
1916
|
responseData = response[0];
|
|
1856
1917
|
}
|
|
1857
1918
|
|
|
@@ -1871,13 +1932,17 @@ class Catalog {
|
|
|
1871
1932
|
|
|
1872
1933
|
/**
|
|
1873
1934
|
* @param {CatalogPlatformValidator.EditProductParam} arg - Arg object
|
|
1935
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1874
1936
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1875
1937
|
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1876
1938
|
* @name editProduct
|
|
1877
1939
|
* @summary: Edit a product.
|
|
1878
1940
|
* @description: This API allows to edit product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/editProduct/).
|
|
1879
1941
|
*/
|
|
1880
|
-
async editProduct(
|
|
1942
|
+
async editProduct(
|
|
1943
|
+
{ itemId, body, requestHeaders } = { requestHeaders: {} },
|
|
1944
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1945
|
+
) {
|
|
1881
1946
|
const { error } = CatalogPlatformValidator.editProduct().validate(
|
|
1882
1947
|
{
|
|
1883
1948
|
itemId,
|
|
@@ -1914,12 +1979,12 @@ class Catalog {
|
|
|
1914
1979
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/`,
|
|
1915
1980
|
query_params,
|
|
1916
1981
|
body,
|
|
1917
|
-
xHeaders,
|
|
1918
|
-
{
|
|
1982
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1983
|
+
{ responseHeaders }
|
|
1919
1984
|
);
|
|
1920
1985
|
|
|
1921
1986
|
let responseData = response;
|
|
1922
|
-
if (
|
|
1987
|
+
if (responseHeaders) {
|
|
1923
1988
|
responseData = response[0];
|
|
1924
1989
|
}
|
|
1925
1990
|
|
|
@@ -1942,6 +2007,7 @@ class Catalog {
|
|
|
1942
2007
|
|
|
1943
2008
|
/**
|
|
1944
2009
|
* @param {CatalogPlatformValidator.ExportInventoryConfigParam} arg - Arg object
|
|
2010
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1945
2011
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1946
2012
|
* @returns {Promise<CatalogPlatformModel.InventoryConfig>} - Success response
|
|
1947
2013
|
* @name exportInventoryConfig
|
|
@@ -1949,8 +2015,8 @@ class Catalog {
|
|
|
1949
2015
|
* @description: This API allows get List of different filters like brand, store, and type for inventory export. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/exportInventoryConfig/).
|
|
1950
2016
|
*/
|
|
1951
2017
|
async exportInventoryConfig(
|
|
1952
|
-
{ filterType } = {},
|
|
1953
|
-
{
|
|
2018
|
+
{ filterType, requestHeaders } = { requestHeaders: {} },
|
|
2019
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1954
2020
|
) {
|
|
1955
2021
|
const { error } = CatalogPlatformValidator.exportInventoryConfig().validate(
|
|
1956
2022
|
{
|
|
@@ -1989,12 +2055,12 @@ class Catalog {
|
|
|
1989
2055
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download/configuration/`,
|
|
1990
2056
|
query_params,
|
|
1991
2057
|
undefined,
|
|
1992
|
-
xHeaders,
|
|
1993
|
-
{
|
|
2058
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2059
|
+
{ responseHeaders }
|
|
1994
2060
|
);
|
|
1995
2061
|
|
|
1996
2062
|
let responseData = response;
|
|
1997
|
-
if (
|
|
2063
|
+
if (responseHeaders) {
|
|
1998
2064
|
responseData = response[0];
|
|
1999
2065
|
}
|
|
2000
2066
|
|
|
@@ -2017,6 +2083,7 @@ class Catalog {
|
|
|
2017
2083
|
|
|
2018
2084
|
/**
|
|
2019
2085
|
* @param {CatalogPlatformValidator.GetAllProductHsnCodesParam} arg - Arg object
|
|
2086
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2020
2087
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2021
2088
|
* @returns {Promise<CatalogPlatformModel.HsnCodesListingResponseSchemaV2>}
|
|
2022
2089
|
* - Success response
|
|
@@ -2026,8 +2093,8 @@ class Catalog {
|
|
|
2026
2093
|
* @description: Hsn Code List. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllProductHsnCodes/).
|
|
2027
2094
|
*/
|
|
2028
2095
|
async getAllProductHsnCodes(
|
|
2029
|
-
{ pageNo, pageSize, q, type } = {},
|
|
2030
|
-
{
|
|
2096
|
+
{ pageNo, pageSize, q, type, requestHeaders } = { requestHeaders: {} },
|
|
2097
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2031
2098
|
) {
|
|
2032
2099
|
const { error } = CatalogPlatformValidator.getAllProductHsnCodes().validate(
|
|
2033
2100
|
{
|
|
@@ -2075,12 +2142,12 @@ class Catalog {
|
|
|
2075
2142
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/hsn/`,
|
|
2076
2143
|
query_params,
|
|
2077
2144
|
undefined,
|
|
2078
|
-
xHeaders,
|
|
2079
|
-
{
|
|
2145
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2146
|
+
{ responseHeaders }
|
|
2080
2147
|
);
|
|
2081
2148
|
|
|
2082
2149
|
let responseData = response;
|
|
2083
|
-
if (
|
|
2150
|
+
if (responseHeaders) {
|
|
2084
2151
|
responseData = response[0];
|
|
2085
2152
|
}
|
|
2086
2153
|
|
|
@@ -2103,13 +2170,17 @@ class Catalog {
|
|
|
2103
2170
|
|
|
2104
2171
|
/**
|
|
2105
2172
|
* @param {CatalogPlatformValidator.GetCategoryDataParam} arg - Arg object
|
|
2173
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2106
2174
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2107
2175
|
* @returns {Promise<CatalogPlatformModel.SingleCategoryResponse>} - Success response
|
|
2108
2176
|
* @name getCategoryData
|
|
2109
2177
|
* @summary: Get product category by uid
|
|
2110
2178
|
* @description: This API gets meta associated to product categories. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCategoryData/).
|
|
2111
2179
|
*/
|
|
2112
|
-
async getCategoryData(
|
|
2180
|
+
async getCategoryData(
|
|
2181
|
+
{ uid, requestHeaders } = { requestHeaders: {} },
|
|
2182
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2183
|
+
) {
|
|
2113
2184
|
const { error } = CatalogPlatformValidator.getCategoryData().validate(
|
|
2114
2185
|
{
|
|
2115
2186
|
uid,
|
|
@@ -2146,12 +2217,12 @@ class Catalog {
|
|
|
2146
2217
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/category/${uid}/`,
|
|
2147
2218
|
query_params,
|
|
2148
2219
|
undefined,
|
|
2149
|
-
xHeaders,
|
|
2150
|
-
{
|
|
2220
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2221
|
+
{ responseHeaders }
|
|
2151
2222
|
);
|
|
2152
2223
|
|
|
2153
2224
|
let responseData = response;
|
|
2154
|
-
if (
|
|
2225
|
+
if (responseHeaders) {
|
|
2155
2226
|
responseData = response[0];
|
|
2156
2227
|
}
|
|
2157
2228
|
|
|
@@ -2174,6 +2245,7 @@ class Catalog {
|
|
|
2174
2245
|
|
|
2175
2246
|
/**
|
|
2176
2247
|
* @param {CatalogPlatformValidator.GetCompanyBrandDetailParam} arg - Arg object
|
|
2248
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2177
2249
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2178
2250
|
* @returns {Promise<CatalogPlatformModel.OptinCompanyBrandDetailsView>} -
|
|
2179
2251
|
* Success response
|
|
@@ -2182,8 +2254,10 @@ class Catalog {
|
|
|
2182
2254
|
* @description: Get the details of the Brands associated with the given company_id passed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyBrandDetail/).
|
|
2183
2255
|
*/
|
|
2184
2256
|
async getCompanyBrandDetail(
|
|
2185
|
-
{ isActive, q, pageNo, pageSize, marketplace } = {
|
|
2186
|
-
|
|
2257
|
+
{ isActive, q, pageNo, pageSize, marketplace, requestHeaders } = {
|
|
2258
|
+
requestHeaders: {},
|
|
2259
|
+
},
|
|
2260
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2187
2261
|
) {
|
|
2188
2262
|
const { error } = CatalogPlatformValidator.getCompanyBrandDetail().validate(
|
|
2189
2263
|
{
|
|
@@ -2234,12 +2308,12 @@ class Catalog {
|
|
|
2234
2308
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-brand-details/`,
|
|
2235
2309
|
query_params,
|
|
2236
2310
|
undefined,
|
|
2237
|
-
xHeaders,
|
|
2238
|
-
{
|
|
2311
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2312
|
+
{ responseHeaders }
|
|
2239
2313
|
);
|
|
2240
2314
|
|
|
2241
2315
|
let responseData = response;
|
|
2242
|
-
if (
|
|
2316
|
+
if (responseHeaders) {
|
|
2243
2317
|
responseData = response[0];
|
|
2244
2318
|
}
|
|
2245
2319
|
|
|
@@ -2262,13 +2336,17 @@ class Catalog {
|
|
|
2262
2336
|
|
|
2263
2337
|
/**
|
|
2264
2338
|
* @param {CatalogPlatformValidator.GetCompanyDetailParam} arg - Arg object
|
|
2339
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2265
2340
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2266
2341
|
* @returns {Promise<CatalogPlatformModel.OptinCompanyDetail>} - Success response
|
|
2267
2342
|
* @name getCompanyDetail
|
|
2268
2343
|
* @summary: Get the Company details.
|
|
2269
2344
|
* @description: Get the details of the company associated with the given company_id passed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyDetail/).
|
|
2270
2345
|
*/
|
|
2271
|
-
async getCompanyDetail(
|
|
2346
|
+
async getCompanyDetail(
|
|
2347
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
2348
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2349
|
+
) {
|
|
2272
2350
|
const { error } = CatalogPlatformValidator.getCompanyDetail().validate(
|
|
2273
2351
|
{},
|
|
2274
2352
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -2301,12 +2379,12 @@ class Catalog {
|
|
|
2301
2379
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-details/`,
|
|
2302
2380
|
query_params,
|
|
2303
2381
|
undefined,
|
|
2304
|
-
xHeaders,
|
|
2305
|
-
{
|
|
2382
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2383
|
+
{ responseHeaders }
|
|
2306
2384
|
);
|
|
2307
2385
|
|
|
2308
2386
|
let responseData = response;
|
|
2309
|
-
if (
|
|
2387
|
+
if (responseHeaders) {
|
|
2310
2388
|
responseData = response[0];
|
|
2311
2389
|
}
|
|
2312
2390
|
|
|
@@ -2329,13 +2407,17 @@ class Catalog {
|
|
|
2329
2407
|
|
|
2330
2408
|
/**
|
|
2331
2409
|
* @param {CatalogPlatformValidator.GetCompanyMetricsParam} arg - Arg object
|
|
2410
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2332
2411
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2333
2412
|
* @returns {Promise<CatalogPlatformModel.OptinCompanyMetrics>} - Success response
|
|
2334
2413
|
* @name getCompanyMetrics
|
|
2335
2414
|
* @summary: Get the Company metrics
|
|
2336
2415
|
* @description: Get the Company metrics associated with the company ID passed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyMetrics/).
|
|
2337
2416
|
*/
|
|
2338
|
-
async getCompanyMetrics(
|
|
2417
|
+
async getCompanyMetrics(
|
|
2418
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
2419
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2420
|
+
) {
|
|
2339
2421
|
const { error } = CatalogPlatformValidator.getCompanyMetrics().validate(
|
|
2340
2422
|
{},
|
|
2341
2423
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -2368,12 +2450,12 @@ class Catalog {
|
|
|
2368
2450
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-metrics/`,
|
|
2369
2451
|
query_params,
|
|
2370
2452
|
undefined,
|
|
2371
|
-
xHeaders,
|
|
2372
|
-
{
|
|
2453
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2454
|
+
{ responseHeaders }
|
|
2373
2455
|
);
|
|
2374
2456
|
|
|
2375
2457
|
let responseData = response;
|
|
2376
|
-
if (
|
|
2458
|
+
if (responseHeaders) {
|
|
2377
2459
|
responseData = response[0];
|
|
2378
2460
|
}
|
|
2379
2461
|
|
|
@@ -2396,13 +2478,17 @@ class Catalog {
|
|
|
2396
2478
|
|
|
2397
2479
|
/**
|
|
2398
2480
|
* @param {CatalogPlatformValidator.GetDepartmentDataParam} arg - Arg object
|
|
2481
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2399
2482
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2400
2483
|
* @returns {Promise<CatalogPlatformModel.DepartmentsResponse>} - Success response
|
|
2401
2484
|
* @name getDepartmentData
|
|
2402
2485
|
* @summary: Get specific departments details by passing in unique id of the department.
|
|
2403
2486
|
* @description: Allows you to get department data, by uid. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDepartmentData/).
|
|
2404
2487
|
*/
|
|
2405
|
-
async getDepartmentData(
|
|
2488
|
+
async getDepartmentData(
|
|
2489
|
+
{ uid, requestHeaders } = { requestHeaders: {} },
|
|
2490
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2491
|
+
) {
|
|
2406
2492
|
const { error } = CatalogPlatformValidator.getDepartmentData().validate(
|
|
2407
2493
|
{
|
|
2408
2494
|
uid,
|
|
@@ -2439,12 +2525,12 @@ class Catalog {
|
|
|
2439
2525
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/${uid}/`,
|
|
2440
2526
|
query_params,
|
|
2441
2527
|
undefined,
|
|
2442
|
-
xHeaders,
|
|
2443
|
-
{
|
|
2528
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2529
|
+
{ responseHeaders }
|
|
2444
2530
|
);
|
|
2445
2531
|
|
|
2446
2532
|
let responseData = response;
|
|
2447
|
-
if (
|
|
2533
|
+
if (responseHeaders) {
|
|
2448
2534
|
responseData = response[0];
|
|
2449
2535
|
}
|
|
2450
2536
|
|
|
@@ -2467,6 +2553,7 @@ class Catalog {
|
|
|
2467
2553
|
|
|
2468
2554
|
/**
|
|
2469
2555
|
* @param {CatalogPlatformValidator.GetGenderAttributeParam} arg - Arg object
|
|
2556
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2470
2557
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2471
2558
|
* @returns {Promise<CatalogPlatformModel.GenderDetail>} - Success response
|
|
2472
2559
|
* @name getGenderAttribute
|
|
@@ -2474,8 +2561,8 @@ class Catalog {
|
|
|
2474
2561
|
* @description: This API allows to view the gender attribute details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getGenderAttribute/).
|
|
2475
2562
|
*/
|
|
2476
2563
|
async getGenderAttribute(
|
|
2477
|
-
{ attributeSlug } = {},
|
|
2478
|
-
{
|
|
2564
|
+
{ attributeSlug, requestHeaders } = { requestHeaders: {} },
|
|
2565
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2479
2566
|
) {
|
|
2480
2567
|
const { error } = CatalogPlatformValidator.getGenderAttribute().validate(
|
|
2481
2568
|
{
|
|
@@ -2513,12 +2600,12 @@ class Catalog {
|
|
|
2513
2600
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/product-attributes/${attributeSlug}`,
|
|
2514
2601
|
query_params,
|
|
2515
2602
|
undefined,
|
|
2516
|
-
xHeaders,
|
|
2517
|
-
{
|
|
2603
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2604
|
+
{ responseHeaders }
|
|
2518
2605
|
);
|
|
2519
2606
|
|
|
2520
2607
|
let responseData = response;
|
|
2521
|
-
if (
|
|
2608
|
+
if (responseHeaders) {
|
|
2522
2609
|
responseData = response[0];
|
|
2523
2610
|
}
|
|
2524
2611
|
|
|
@@ -2541,13 +2628,17 @@ class Catalog {
|
|
|
2541
2628
|
|
|
2542
2629
|
/**
|
|
2543
2630
|
* @param {CatalogPlatformValidator.GetHsnCodeParam} arg - Arg object
|
|
2631
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2544
2632
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2545
2633
|
* @returns {Promise<CatalogPlatformModel.HsnCode>} - Success response
|
|
2546
2634
|
* @name getHsnCode
|
|
2547
2635
|
* @summary: Fetch Hsn Code.
|
|
2548
2636
|
* @description: Fetch Hsn Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getHsnCode/).
|
|
2549
2637
|
*/
|
|
2550
|
-
async getHsnCode(
|
|
2638
|
+
async getHsnCode(
|
|
2639
|
+
{ id, requestHeaders } = { requestHeaders: {} },
|
|
2640
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2641
|
+
) {
|
|
2551
2642
|
const { error } = CatalogPlatformValidator.getHsnCode().validate(
|
|
2552
2643
|
{
|
|
2553
2644
|
id,
|
|
@@ -2582,12 +2673,12 @@ class Catalog {
|
|
|
2582
2673
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/${id}/`,
|
|
2583
2674
|
query_params,
|
|
2584
2675
|
undefined,
|
|
2585
|
-
xHeaders,
|
|
2586
|
-
{
|
|
2676
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2677
|
+
{ responseHeaders }
|
|
2587
2678
|
);
|
|
2588
2679
|
|
|
2589
2680
|
let responseData = response;
|
|
2590
|
-
if (
|
|
2681
|
+
if (responseHeaders) {
|
|
2591
2682
|
responseData = response[0];
|
|
2592
2683
|
}
|
|
2593
2684
|
|
|
@@ -2610,6 +2701,7 @@ class Catalog {
|
|
|
2610
2701
|
|
|
2611
2702
|
/**
|
|
2612
2703
|
* @param {CatalogPlatformValidator.GetInventoriesParam} arg - Arg object
|
|
2704
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2613
2705
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2614
2706
|
* @returns {Promise<CatalogPlatformModel.GetInventoriesResponse>} - Success response
|
|
2615
2707
|
* @name getInventories
|
|
@@ -2626,8 +2718,9 @@ class Catalog {
|
|
|
2626
2718
|
sellable,
|
|
2627
2719
|
storeIds,
|
|
2628
2720
|
sizeIdentifier,
|
|
2629
|
-
|
|
2630
|
-
|
|
2721
|
+
requestHeaders,
|
|
2722
|
+
} = { requestHeaders: {} },
|
|
2723
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2631
2724
|
) {
|
|
2632
2725
|
const { error } = CatalogPlatformValidator.getInventories().validate(
|
|
2633
2726
|
{
|
|
@@ -2687,12 +2780,12 @@ class Catalog {
|
|
|
2687
2780
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/inventories`,
|
|
2688
2781
|
query_params,
|
|
2689
2782
|
undefined,
|
|
2690
|
-
xHeaders,
|
|
2691
|
-
{
|
|
2783
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2784
|
+
{ responseHeaders }
|
|
2692
2785
|
);
|
|
2693
2786
|
|
|
2694
2787
|
let responseData = response;
|
|
2695
|
-
if (
|
|
2788
|
+
if (responseHeaders) {
|
|
2696
2789
|
responseData = response[0];
|
|
2697
2790
|
}
|
|
2698
2791
|
|
|
@@ -2717,6 +2810,7 @@ class Catalog {
|
|
|
2717
2810
|
* @param {CatalogPlatformValidator.GetInventoryBulkUploadHistoryParam} arg
|
|
2718
2811
|
* - Arg object
|
|
2719
2812
|
*
|
|
2813
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2720
2814
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2721
2815
|
* @returns {Promise<CatalogPlatformModel.BulkInventoryGet>} - Success response
|
|
2722
2816
|
* @name getInventoryBulkUploadHistory
|
|
@@ -2724,8 +2818,8 @@ class Catalog {
|
|
|
2724
2818
|
* @description: This API helps to get bulk Inventory upload jobs data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryBulkUploadHistory/).
|
|
2725
2819
|
*/
|
|
2726
2820
|
async getInventoryBulkUploadHistory(
|
|
2727
|
-
{ pageNo, pageSize } = {},
|
|
2728
|
-
{
|
|
2821
|
+
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
2822
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2729
2823
|
) {
|
|
2730
2824
|
const {
|
|
2731
2825
|
error,
|
|
@@ -2769,12 +2863,12 @@ class Catalog {
|
|
|
2769
2863
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/`,
|
|
2770
2864
|
query_params,
|
|
2771
2865
|
undefined,
|
|
2772
|
-
xHeaders,
|
|
2773
|
-
{
|
|
2866
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2867
|
+
{ responseHeaders }
|
|
2774
2868
|
);
|
|
2775
2869
|
|
|
2776
2870
|
let responseData = response;
|
|
2777
|
-
if (
|
|
2871
|
+
if (responseHeaders) {
|
|
2778
2872
|
responseData = response[0];
|
|
2779
2873
|
}
|
|
2780
2874
|
|
|
@@ -2797,6 +2891,7 @@ class Catalog {
|
|
|
2797
2891
|
|
|
2798
2892
|
/**
|
|
2799
2893
|
* @param {CatalogPlatformValidator.GetInventoryBySizeParam} arg - Arg object
|
|
2894
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2800
2895
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2801
2896
|
* @returns {Promise<CatalogPlatformModel.InventoryResponsePaginated>} -
|
|
2802
2897
|
* Success response
|
|
@@ -2805,8 +2900,10 @@ class Catalog {
|
|
|
2805
2900
|
* @description: This API allows get Inventory data for particular company grouped by size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryBySize/).
|
|
2806
2901
|
*/
|
|
2807
2902
|
async getInventoryBySize(
|
|
2808
|
-
{ itemId, size, pageNo, pageSize, q, sellable } = {
|
|
2809
|
-
|
|
2903
|
+
{ itemId, size, pageNo, pageSize, q, sellable, requestHeaders } = {
|
|
2904
|
+
requestHeaders: {},
|
|
2905
|
+
},
|
|
2906
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2810
2907
|
) {
|
|
2811
2908
|
const { error } = CatalogPlatformValidator.getInventoryBySize().validate(
|
|
2812
2909
|
{
|
|
@@ -2858,12 +2955,12 @@ class Catalog {
|
|
|
2858
2955
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/sizes/${size}`,
|
|
2859
2956
|
query_params,
|
|
2860
2957
|
undefined,
|
|
2861
|
-
xHeaders,
|
|
2862
|
-
{
|
|
2958
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2959
|
+
{ responseHeaders }
|
|
2863
2960
|
);
|
|
2864
2961
|
|
|
2865
2962
|
let responseData = response;
|
|
2866
|
-
if (
|
|
2963
|
+
if (responseHeaders) {
|
|
2867
2964
|
responseData = response[0];
|
|
2868
2965
|
}
|
|
2869
2966
|
|
|
@@ -2888,6 +2985,7 @@ class Catalog {
|
|
|
2888
2985
|
* @param {CatalogPlatformValidator.GetInventoryBySizeIdentifierParam} arg
|
|
2889
2986
|
* - Arg object
|
|
2890
2987
|
*
|
|
2988
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2891
2989
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2892
2990
|
* @returns {Promise<CatalogPlatformModel.InventorySellerIdentifierResponsePaginated>}
|
|
2893
2991
|
* - Success response
|
|
@@ -2897,8 +2995,16 @@ class Catalog {
|
|
|
2897
2995
|
* @description: This API allows get Inventory data for particular company grouped by size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryBySizeIdentifier/).
|
|
2898
2996
|
*/
|
|
2899
2997
|
async getInventoryBySizeIdentifier(
|
|
2900
|
-
{
|
|
2901
|
-
|
|
2998
|
+
{
|
|
2999
|
+
itemId,
|
|
3000
|
+
sizeIdentifier,
|
|
3001
|
+
pageNo,
|
|
3002
|
+
pageSize,
|
|
3003
|
+
q,
|
|
3004
|
+
locationIds,
|
|
3005
|
+
requestHeaders,
|
|
3006
|
+
} = { requestHeaders: {} },
|
|
3007
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2902
3008
|
) {
|
|
2903
3009
|
const {
|
|
2904
3010
|
error,
|
|
@@ -2952,12 +3058,12 @@ class Catalog {
|
|
|
2952
3058
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/inventory/${sizeIdentifier}`,
|
|
2953
3059
|
query_params,
|
|
2954
3060
|
undefined,
|
|
2955
|
-
xHeaders,
|
|
2956
|
-
{
|
|
3061
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3062
|
+
{ responseHeaders }
|
|
2957
3063
|
);
|
|
2958
3064
|
|
|
2959
3065
|
let responseData = response;
|
|
2960
|
-
if (
|
|
3066
|
+
if (responseHeaders) {
|
|
2961
3067
|
responseData = response[0];
|
|
2962
3068
|
}
|
|
2963
3069
|
|
|
@@ -2980,13 +3086,17 @@ class Catalog {
|
|
|
2980
3086
|
|
|
2981
3087
|
/**
|
|
2982
3088
|
* @param {CatalogPlatformValidator.GetInventoryExportParam} arg - Arg object
|
|
3089
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2983
3090
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2984
3091
|
* @returns {Promise<CatalogPlatformModel.InventoryExportJob>} - Success response
|
|
2985
3092
|
* @name getInventoryExport
|
|
2986
3093
|
* @summary: Get Inventory export history.
|
|
2987
3094
|
* @description: This API helps to get Inventory export history. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryExport/).
|
|
2988
3095
|
*/
|
|
2989
|
-
async getInventoryExport(
|
|
3096
|
+
async getInventoryExport(
|
|
3097
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
3098
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3099
|
+
) {
|
|
2990
3100
|
const { error } = CatalogPlatformValidator.getInventoryExport().validate(
|
|
2991
3101
|
{},
|
|
2992
3102
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -3019,12 +3129,12 @@ class Catalog {
|
|
|
3019
3129
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download/`,
|
|
3020
3130
|
query_params,
|
|
3021
3131
|
undefined,
|
|
3022
|
-
xHeaders,
|
|
3023
|
-
{
|
|
3132
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3133
|
+
{ responseHeaders }
|
|
3024
3134
|
);
|
|
3025
3135
|
|
|
3026
3136
|
let responseData = response;
|
|
3027
|
-
if (
|
|
3137
|
+
if (responseHeaders) {
|
|
3028
3138
|
responseData = response[0];
|
|
3029
3139
|
}
|
|
3030
3140
|
|
|
@@ -3047,13 +3157,17 @@ class Catalog {
|
|
|
3047
3157
|
|
|
3048
3158
|
/**
|
|
3049
3159
|
* @param {CatalogPlatformValidator.GetMarketplaceOptinDetailParam} arg - Arg object
|
|
3160
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3050
3161
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3051
3162
|
* @returns {Promise<CatalogPlatformModel.GetOptInPlatform>} - Success response
|
|
3052
3163
|
* @name getMarketplaceOptinDetail
|
|
3053
3164
|
* @summary: Get opt-in infomation.
|
|
3054
3165
|
* @description: Use this API to fetch opt-in information for all the platforms. If successful, returns a logs in the response body as specified in `GetOptInPlatformSchema` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMarketplaceOptinDetail/).
|
|
3055
3166
|
*/
|
|
3056
|
-
async getMarketplaceOptinDetail(
|
|
3167
|
+
async getMarketplaceOptinDetail(
|
|
3168
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
3169
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3170
|
+
) {
|
|
3057
3171
|
const {
|
|
3058
3172
|
error,
|
|
3059
3173
|
} = CatalogPlatformValidator.getMarketplaceOptinDetail().validate(
|
|
@@ -3088,12 +3202,12 @@ class Catalog {
|
|
|
3088
3202
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/`,
|
|
3089
3203
|
query_params,
|
|
3090
3204
|
undefined,
|
|
3091
|
-
xHeaders,
|
|
3092
|
-
{
|
|
3205
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3206
|
+
{ responseHeaders }
|
|
3093
3207
|
);
|
|
3094
3208
|
|
|
3095
3209
|
let responseData = response;
|
|
3096
|
-
if (
|
|
3210
|
+
if (responseHeaders) {
|
|
3097
3211
|
responseData = response[0];
|
|
3098
3212
|
}
|
|
3099
3213
|
|
|
@@ -3116,13 +3230,17 @@ class Catalog {
|
|
|
3116
3230
|
|
|
3117
3231
|
/**
|
|
3118
3232
|
* @param {CatalogPlatformValidator.GetOptimalLocationsParam} arg - Arg object
|
|
3233
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3119
3234
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3120
3235
|
* @returns {Promise<CatalogPlatformModel.StoreAssignResponse>} - Success response
|
|
3121
3236
|
* @name getOptimalLocations
|
|
3122
3237
|
* @summary: Location Reassignment
|
|
3123
|
-
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getOptimalLocations/).
|
|
3238
|
+
* @description: Location Reassignment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getOptimalLocations/).
|
|
3124
3239
|
*/
|
|
3125
|
-
async getOptimalLocations(
|
|
3240
|
+
async getOptimalLocations(
|
|
3241
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
3242
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3243
|
+
) {
|
|
3126
3244
|
const { error } = CatalogPlatformValidator.getOptimalLocations().validate(
|
|
3127
3245
|
{
|
|
3128
3246
|
body,
|
|
@@ -3159,12 +3277,12 @@ class Catalog {
|
|
|
3159
3277
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/location/reassign/`,
|
|
3160
3278
|
query_params,
|
|
3161
3279
|
body,
|
|
3162
|
-
xHeaders,
|
|
3163
|
-
{
|
|
3280
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3281
|
+
{ responseHeaders }
|
|
3164
3282
|
);
|
|
3165
3283
|
|
|
3166
3284
|
let responseData = response;
|
|
3167
|
-
if (
|
|
3285
|
+
if (responseHeaders) {
|
|
3168
3286
|
responseData = response[0];
|
|
3169
3287
|
}
|
|
3170
3288
|
|
|
@@ -3187,6 +3305,7 @@ class Catalog {
|
|
|
3187
3305
|
|
|
3188
3306
|
/**
|
|
3189
3307
|
* @param {CatalogPlatformValidator.GetProductParam} arg - Arg object
|
|
3308
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3190
3309
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3191
3310
|
* @returns {Promise<CatalogPlatformModel.SingleProductResponse>} - Success response
|
|
3192
3311
|
* @name getProduct
|
|
@@ -3194,8 +3313,8 @@ class Catalog {
|
|
|
3194
3313
|
* @description: This API helps to get data associated to a particular product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProduct/).
|
|
3195
3314
|
*/
|
|
3196
3315
|
async getProduct(
|
|
3197
|
-
{ itemId, brandUid, itemCode } = {},
|
|
3198
|
-
{
|
|
3316
|
+
{ itemId, brandUid, itemCode, requestHeaders } = { requestHeaders: {} },
|
|
3317
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3199
3318
|
) {
|
|
3200
3319
|
const { error } = CatalogPlatformValidator.getProduct().validate(
|
|
3201
3320
|
{
|
|
@@ -3237,12 +3356,12 @@ class Catalog {
|
|
|
3237
3356
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/`,
|
|
3238
3357
|
query_params,
|
|
3239
3358
|
undefined,
|
|
3240
|
-
xHeaders,
|
|
3241
|
-
{
|
|
3359
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3360
|
+
{ responseHeaders }
|
|
3242
3361
|
);
|
|
3243
3362
|
|
|
3244
3363
|
let responseData = response;
|
|
3245
|
-
if (
|
|
3364
|
+
if (responseHeaders) {
|
|
3246
3365
|
responseData = response[0];
|
|
3247
3366
|
}
|
|
3248
3367
|
|
|
@@ -3265,6 +3384,7 @@ class Catalog {
|
|
|
3265
3384
|
|
|
3266
3385
|
/**
|
|
3267
3386
|
* @param {CatalogPlatformValidator.GetProductAssetsInBulkParam} arg - Arg object
|
|
3387
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3268
3388
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3269
3389
|
* @returns {Promise<CatalogPlatformModel.BulkAssetResponse>} - Success response
|
|
3270
3390
|
* @name getProductAssetsInBulk
|
|
@@ -3272,8 +3392,8 @@ class Catalog {
|
|
|
3272
3392
|
* @description: This API helps to get bulk asset jobs data associated to a particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductAssetsInBulk/).
|
|
3273
3393
|
*/
|
|
3274
3394
|
async getProductAssetsInBulk(
|
|
3275
|
-
{ pageNo, pageSize } = {},
|
|
3276
|
-
{
|
|
3395
|
+
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
3396
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3277
3397
|
) {
|
|
3278
3398
|
const {
|
|
3279
3399
|
error,
|
|
@@ -3317,12 +3437,12 @@ class Catalog {
|
|
|
3317
3437
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/assets/bulk/`,
|
|
3318
3438
|
query_params,
|
|
3319
3439
|
undefined,
|
|
3320
|
-
xHeaders,
|
|
3321
|
-
{
|
|
3440
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3441
|
+
{ responseHeaders }
|
|
3322
3442
|
);
|
|
3323
3443
|
|
|
3324
3444
|
let responseData = response;
|
|
3325
|
-
if (
|
|
3445
|
+
if (responseHeaders) {
|
|
3326
3446
|
responseData = response[0];
|
|
3327
3447
|
}
|
|
3328
3448
|
|
|
@@ -3345,6 +3465,7 @@ class Catalog {
|
|
|
3345
3465
|
|
|
3346
3466
|
/**
|
|
3347
3467
|
* @param {CatalogPlatformValidator.GetProductAttributesParam} arg - Arg object
|
|
3468
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3348
3469
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3349
3470
|
* @returns {Promise<CatalogPlatformModel.ProductAttributesResponse>} -
|
|
3350
3471
|
* Success response
|
|
@@ -3353,8 +3474,8 @@ class Catalog {
|
|
|
3353
3474
|
* @description: This API allows to list all the attributes by their l3_categories. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductAttributes/).
|
|
3354
3475
|
*/
|
|
3355
3476
|
async getProductAttributes(
|
|
3356
|
-
{ category, filter } = {},
|
|
3357
|
-
{
|
|
3477
|
+
{ category, filter, requestHeaders } = { requestHeaders: {} },
|
|
3478
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3358
3479
|
) {
|
|
3359
3480
|
const { error } = CatalogPlatformValidator.getProductAttributes().validate(
|
|
3360
3481
|
{
|
|
@@ -3396,12 +3517,12 @@ class Catalog {
|
|
|
3396
3517
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/product-attributes/`,
|
|
3397
3518
|
query_params,
|
|
3398
3519
|
undefined,
|
|
3399
|
-
xHeaders,
|
|
3400
|
-
{
|
|
3520
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3521
|
+
{ responseHeaders }
|
|
3401
3522
|
);
|
|
3402
3523
|
|
|
3403
3524
|
let responseData = response;
|
|
3404
|
-
if (
|
|
3525
|
+
if (responseHeaders) {
|
|
3405
3526
|
responseData = response[0];
|
|
3406
3527
|
}
|
|
3407
3528
|
|
|
@@ -3424,6 +3545,7 @@ class Catalog {
|
|
|
3424
3545
|
|
|
3425
3546
|
/**
|
|
3426
3547
|
* @param {CatalogPlatformValidator.GetProductBulkUploadHistoryParam} arg - Arg object
|
|
3548
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3427
3549
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3428
3550
|
* @returns {Promise<CatalogPlatformModel.ProductBulkRequestList>} - Success response
|
|
3429
3551
|
* @name getProductBulkUploadHistory
|
|
@@ -3431,8 +3553,8 @@ class Catalog {
|
|
|
3431
3553
|
* @description: This API helps to get bulk product upload jobs data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBulkUploadHistory/).
|
|
3432
3554
|
*/
|
|
3433
3555
|
async getProductBulkUploadHistory(
|
|
3434
|
-
{ search, pageNo, pageSize } = {},
|
|
3435
|
-
{
|
|
3556
|
+
{ search, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
3557
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3436
3558
|
) {
|
|
3437
3559
|
const {
|
|
3438
3560
|
error,
|
|
@@ -3479,12 +3601,12 @@ class Catalog {
|
|
|
3479
3601
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/bulk`,
|
|
3480
3602
|
query_params,
|
|
3481
3603
|
undefined,
|
|
3482
|
-
xHeaders,
|
|
3483
|
-
{
|
|
3604
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3605
|
+
{ responseHeaders }
|
|
3484
3606
|
);
|
|
3485
3607
|
|
|
3486
3608
|
let responseData = response;
|
|
3487
|
-
if (
|
|
3609
|
+
if (responseHeaders) {
|
|
3488
3610
|
responseData = response[0];
|
|
3489
3611
|
}
|
|
3490
3612
|
|
|
@@ -3507,6 +3629,7 @@ class Catalog {
|
|
|
3507
3629
|
|
|
3508
3630
|
/**
|
|
3509
3631
|
* @param {CatalogPlatformValidator.GetProductBundleParam} arg - Arg object
|
|
3632
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3510
3633
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3511
3634
|
* @returns {Promise<CatalogPlatformModel.GetProductBundleListingResponse>}
|
|
3512
3635
|
* - Success response
|
|
@@ -3515,7 +3638,10 @@ class Catalog {
|
|
|
3515
3638
|
* @summary: List all Product Bundles
|
|
3516
3639
|
* @description: Get all product bundles for a particular company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBundle/).
|
|
3517
3640
|
*/
|
|
3518
|
-
async getProductBundle(
|
|
3641
|
+
async getProductBundle(
|
|
3642
|
+
{ q, slug, requestHeaders } = { requestHeaders: {} },
|
|
3643
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3644
|
+
) {
|
|
3519
3645
|
const { error } = CatalogPlatformValidator.getProductBundle().validate(
|
|
3520
3646
|
{
|
|
3521
3647
|
q,
|
|
@@ -3556,12 +3682,12 @@ class Catalog {
|
|
|
3556
3682
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/`,
|
|
3557
3683
|
query_params,
|
|
3558
3684
|
undefined,
|
|
3559
|
-
xHeaders,
|
|
3560
|
-
{
|
|
3685
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3686
|
+
{ responseHeaders }
|
|
3561
3687
|
);
|
|
3562
3688
|
|
|
3563
3689
|
let responseData = response;
|
|
3564
|
-
if (
|
|
3690
|
+
if (responseHeaders) {
|
|
3565
3691
|
responseData = response[0];
|
|
3566
3692
|
}
|
|
3567
3693
|
|
|
@@ -3584,6 +3710,7 @@ class Catalog {
|
|
|
3584
3710
|
|
|
3585
3711
|
/**
|
|
3586
3712
|
* @param {CatalogPlatformValidator.GetProductBundleDetailParam} arg - Arg object
|
|
3713
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3587
3714
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3588
3715
|
* @returns {Promise<CatalogPlatformModel.GetProductBundleResponse>} -
|
|
3589
3716
|
* Success response
|
|
@@ -3591,7 +3718,10 @@ class Catalog {
|
|
|
3591
3718
|
* @summary: Get a particular Product Bundle details
|
|
3592
3719
|
* @description: Get a particular Bundle details by its `id`. If successful, returns a Product bundle resource in the response body specified in `GetProductBundleResponse` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBundleDetail/).
|
|
3593
3720
|
*/
|
|
3594
|
-
async getProductBundleDetail(
|
|
3721
|
+
async getProductBundleDetail(
|
|
3722
|
+
{ id, requestHeaders } = { requestHeaders: {} },
|
|
3723
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3724
|
+
) {
|
|
3595
3725
|
const {
|
|
3596
3726
|
error,
|
|
3597
3727
|
} = CatalogPlatformValidator.getProductBundleDetail().validate(
|
|
@@ -3630,12 +3760,12 @@ class Catalog {
|
|
|
3630
3760
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/${id}/`,
|
|
3631
3761
|
query_params,
|
|
3632
3762
|
undefined,
|
|
3633
|
-
xHeaders,
|
|
3634
|
-
{
|
|
3763
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3764
|
+
{ responseHeaders }
|
|
3635
3765
|
);
|
|
3636
3766
|
|
|
3637
3767
|
let responseData = response;
|
|
3638
|
-
if (
|
|
3768
|
+
if (responseHeaders) {
|
|
3639
3769
|
responseData = response[0];
|
|
3640
3770
|
}
|
|
3641
3771
|
|
|
@@ -3658,6 +3788,7 @@ class Catalog {
|
|
|
3658
3788
|
|
|
3659
3789
|
/**
|
|
3660
3790
|
* @param {CatalogPlatformValidator.GetProductExportJobsParam} arg - Arg object
|
|
3791
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3661
3792
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3662
3793
|
* @returns {Promise<CatalogPlatformModel.ProductDownloadsResponse>} -
|
|
3663
3794
|
* Success response
|
|
@@ -3666,8 +3797,8 @@ class Catalog {
|
|
|
3666
3797
|
* @description: Can view details including trigger data, task id , etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductExportJobs/).
|
|
3667
3798
|
*/
|
|
3668
3799
|
async getProductExportJobs(
|
|
3669
|
-
{ status, fromDate, toDate, q } = {},
|
|
3670
|
-
{
|
|
3800
|
+
{ status, fromDate, toDate, q, requestHeaders } = { requestHeaders: {} },
|
|
3801
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3671
3802
|
) {
|
|
3672
3803
|
const { error } = CatalogPlatformValidator.getProductExportJobs().validate(
|
|
3673
3804
|
{
|
|
@@ -3715,12 +3846,12 @@ class Catalog {
|
|
|
3715
3846
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads/`,
|
|
3716
3847
|
query_params,
|
|
3717
3848
|
undefined,
|
|
3718
|
-
xHeaders,
|
|
3719
|
-
{
|
|
3849
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3850
|
+
{ responseHeaders }
|
|
3720
3851
|
);
|
|
3721
3852
|
|
|
3722
3853
|
let responseData = response;
|
|
3723
|
-
if (
|
|
3854
|
+
if (responseHeaders) {
|
|
3724
3855
|
responseData = response[0];
|
|
3725
3856
|
}
|
|
3726
3857
|
|
|
@@ -3743,6 +3874,7 @@ class Catalog {
|
|
|
3743
3874
|
|
|
3744
3875
|
/**
|
|
3745
3876
|
* @param {CatalogPlatformValidator.GetProductSizeParam} arg - Arg object
|
|
3877
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3746
3878
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3747
3879
|
* @returns {Promise<CatalogPlatformModel.ProductListingResponse>} - Success response
|
|
3748
3880
|
* @name getProductSize
|
|
@@ -3750,8 +3882,10 @@ class Catalog {
|
|
|
3750
3882
|
* @description: This API helps to get data associated to a particular product size. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductSize/).
|
|
3751
3883
|
*/
|
|
3752
3884
|
async getProductSize(
|
|
3753
|
-
{ itemId, itemCode, brandUid, uid } = {
|
|
3754
|
-
|
|
3885
|
+
{ itemId, itemCode, brandUid, uid, requestHeaders } = {
|
|
3886
|
+
requestHeaders: {},
|
|
3887
|
+
},
|
|
3888
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3755
3889
|
) {
|
|
3756
3890
|
const { error } = CatalogPlatformValidator.getProductSize().validate(
|
|
3757
3891
|
{
|
|
@@ -3798,12 +3932,12 @@ class Catalog {
|
|
|
3798
3932
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/sizes/`,
|
|
3799
3933
|
query_params,
|
|
3800
3934
|
undefined,
|
|
3801
|
-
xHeaders,
|
|
3802
|
-
{
|
|
3935
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3936
|
+
{ responseHeaders }
|
|
3803
3937
|
);
|
|
3804
3938
|
|
|
3805
3939
|
let responseData = response;
|
|
3806
|
-
if (
|
|
3940
|
+
if (responseHeaders) {
|
|
3807
3941
|
responseData = response[0];
|
|
3808
3942
|
}
|
|
3809
3943
|
|
|
@@ -3826,13 +3960,17 @@ class Catalog {
|
|
|
3826
3960
|
|
|
3827
3961
|
/**
|
|
3828
3962
|
* @param {CatalogPlatformValidator.GetProductTagsParam} arg - Arg object
|
|
3963
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3829
3964
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3830
3965
|
* @returns {Promise<CatalogPlatformModel.ProductTagsViewResponse>} - Success response
|
|
3831
3966
|
* @name getProductTags
|
|
3832
3967
|
* @summary: Get a list of all tags associated with company.
|
|
3833
3968
|
* @description: This API helps to get tags data associated to a particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductTags/).
|
|
3834
3969
|
*/
|
|
3835
|
-
async getProductTags(
|
|
3970
|
+
async getProductTags(
|
|
3971
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
3972
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3973
|
+
) {
|
|
3836
3974
|
const { error } = CatalogPlatformValidator.getProductTags().validate(
|
|
3837
3975
|
{},
|
|
3838
3976
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -3865,12 +4003,12 @@ class Catalog {
|
|
|
3865
4003
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/tags`,
|
|
3866
4004
|
query_params,
|
|
3867
4005
|
undefined,
|
|
3868
|
-
xHeaders,
|
|
3869
|
-
{
|
|
4006
|
+
{ ...xHeaders, ...requestHeaders },
|
|
4007
|
+
{ responseHeaders }
|
|
3870
4008
|
);
|
|
3871
4009
|
|
|
3872
4010
|
let responseData = response;
|
|
3873
|
-
if (
|
|
4011
|
+
if (responseHeaders) {
|
|
3874
4012
|
responseData = response[0];
|
|
3875
4013
|
}
|
|
3876
4014
|
|
|
@@ -3893,13 +4031,17 @@ class Catalog {
|
|
|
3893
4031
|
|
|
3894
4032
|
/**
|
|
3895
4033
|
* @param {CatalogPlatformValidator.GetProductValidationParam} arg - Arg object
|
|
4034
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3896
4035
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3897
4036
|
* @returns {Promise<CatalogPlatformModel.ValidateProduct>} - Success response
|
|
3898
4037
|
* @name getProductValidation
|
|
3899
4038
|
* @summary: Validate product/size data
|
|
3900
4039
|
* @description: This API validates product data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductValidation/).
|
|
3901
4040
|
*/
|
|
3902
|
-
async getProductValidation(
|
|
4041
|
+
async getProductValidation(
|
|
4042
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
4043
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4044
|
+
) {
|
|
3903
4045
|
const { error } = CatalogPlatformValidator.getProductValidation().validate(
|
|
3904
4046
|
{},
|
|
3905
4047
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -3932,12 +4074,12 @@ class Catalog {
|
|
|
3932
4074
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/validation/`,
|
|
3933
4075
|
query_params,
|
|
3934
4076
|
undefined,
|
|
3935
|
-
xHeaders,
|
|
3936
|
-
{
|
|
4077
|
+
{ ...xHeaders, ...requestHeaders },
|
|
4078
|
+
{ responseHeaders }
|
|
3937
4079
|
);
|
|
3938
4080
|
|
|
3939
4081
|
let responseData = response;
|
|
3940
|
-
if (
|
|
4082
|
+
if (responseHeaders) {
|
|
3941
4083
|
responseData = response[0];
|
|
3942
4084
|
}
|
|
3943
4085
|
|
|
@@ -3960,6 +4102,7 @@ class Catalog {
|
|
|
3960
4102
|
|
|
3961
4103
|
/**
|
|
3962
4104
|
* @param {CatalogPlatformValidator.GetProductsParam} arg - Arg object
|
|
4105
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3963
4106
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3964
4107
|
* @returns {Promise<CatalogPlatformModel.ProductListingResponseV2>} -
|
|
3965
4108
|
* Success response
|
|
@@ -3978,8 +4121,9 @@ class Catalog {
|
|
|
3978
4121
|
tags,
|
|
3979
4122
|
pageNo,
|
|
3980
4123
|
pageSize,
|
|
3981
|
-
|
|
3982
|
-
|
|
4124
|
+
requestHeaders,
|
|
4125
|
+
} = { requestHeaders: {} },
|
|
4126
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3983
4127
|
) {
|
|
3984
4128
|
const { error } = CatalogPlatformValidator.getProducts().validate(
|
|
3985
4129
|
{
|
|
@@ -4040,12 +4184,12 @@ class Catalog {
|
|
|
4040
4184
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/products/`,
|
|
4041
4185
|
query_params,
|
|
4042
4186
|
undefined,
|
|
4043
|
-
xHeaders,
|
|
4044
|
-
{
|
|
4187
|
+
{ ...xHeaders, ...requestHeaders },
|
|
4188
|
+
{ responseHeaders }
|
|
4045
4189
|
);
|
|
4046
4190
|
|
|
4047
4191
|
let responseData = response;
|
|
4048
|
-
if (
|
|
4192
|
+
if (responseHeaders) {
|
|
4049
4193
|
responseData = response[0];
|
|
4050
4194
|
}
|
|
4051
4195
|
|
|
@@ -4068,6 +4212,7 @@ class Catalog {
|
|
|
4068
4212
|
|
|
4069
4213
|
/**
|
|
4070
4214
|
* @param {CatalogPlatformValidator.GetSellerInsightsParam} arg - Arg object
|
|
4215
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4071
4216
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4072
4217
|
* @returns {Promise<CatalogPlatformModel.CrossSellingResponse>} - Success response
|
|
4073
4218
|
* @name getSellerInsights
|
|
@@ -4075,8 +4220,8 @@ class Catalog {
|
|
|
4075
4220
|
* @description: Analytics data of catalog and inventory that are being cross-selled. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSellerInsights/).
|
|
4076
4221
|
*/
|
|
4077
4222
|
async getSellerInsights(
|
|
4078
|
-
{ sellerAppId } = {},
|
|
4079
|
-
{
|
|
4223
|
+
{ sellerAppId, requestHeaders } = { requestHeaders: {} },
|
|
4224
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4080
4225
|
) {
|
|
4081
4226
|
const { error } = CatalogPlatformValidator.getSellerInsights().validate(
|
|
4082
4227
|
{
|
|
@@ -4114,12 +4259,12 @@ class Catalog {
|
|
|
4114
4259
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/cross-selling/${sellerAppId}/analytics/insights/`,
|
|
4115
4260
|
query_params,
|
|
4116
4261
|
undefined,
|
|
4117
|
-
xHeaders,
|
|
4118
|
-
{
|
|
4262
|
+
{ ...xHeaders, ...requestHeaders },
|
|
4263
|
+
{ responseHeaders }
|
|
4119
4264
|
);
|
|
4120
4265
|
|
|
4121
4266
|
let responseData = response;
|
|
4122
|
-
if (
|
|
4267
|
+
if (responseHeaders) {
|
|
4123
4268
|
responseData = response[0];
|
|
4124
4269
|
}
|
|
4125
4270
|
|
|
@@ -4142,6 +4287,7 @@ class Catalog {
|
|
|
4142
4287
|
|
|
4143
4288
|
/**
|
|
4144
4289
|
* @param {CatalogPlatformValidator.GetSingleProductHSNCodeParam} arg - Arg object
|
|
4290
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4145
4291
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4146
4292
|
* @returns {Promise<CatalogPlatformModel.HSNDataInsertV2>} - Success response
|
|
4147
4293
|
* @name getSingleProductHSNCode
|
|
@@ -4149,8 +4295,8 @@ class Catalog {
|
|
|
4149
4295
|
* @description: Hsn Code List. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSingleProductHSNCode/).
|
|
4150
4296
|
*/
|
|
4151
4297
|
async getSingleProductHSNCode(
|
|
4152
|
-
{ reportingHsn } = {},
|
|
4153
|
-
{
|
|
4298
|
+
{ reportingHsn, requestHeaders } = { requestHeaders: {} },
|
|
4299
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4154
4300
|
) {
|
|
4155
4301
|
const {
|
|
4156
4302
|
error,
|
|
@@ -4186,12 +4332,12 @@ class Catalog {
|
|
|
4186
4332
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/hsn/${reportingHsn}`,
|
|
4187
4333
|
query_params,
|
|
4188
4334
|
undefined,
|
|
4189
|
-
xHeaders,
|
|
4190
|
-
{
|
|
4335
|
+
{ ...xHeaders, ...requestHeaders },
|
|
4336
|
+
{ responseHeaders }
|
|
4191
4337
|
);
|
|
4192
4338
|
|
|
4193
4339
|
let responseData = response;
|
|
4194
|
-
if (
|
|
4340
|
+
if (responseHeaders) {
|
|
4195
4341
|
responseData = response[0];
|
|
4196
4342
|
}
|
|
4197
4343
|
|
|
@@ -4214,13 +4360,17 @@ class Catalog {
|
|
|
4214
4360
|
|
|
4215
4361
|
/**
|
|
4216
4362
|
* @param {CatalogPlatformValidator.GetSizeGuideParam} arg - Arg object
|
|
4363
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4217
4364
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4218
4365
|
* @returns {Promise<CatalogPlatformModel.SizeGuideResponse>} - Success response
|
|
4219
4366
|
* @name getSizeGuide
|
|
4220
4367
|
* @summary: Get a single size guide.
|
|
4221
4368
|
* @description: This API helps to get data associated to a size guide. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSizeGuide/).
|
|
4222
4369
|
*/
|
|
4223
|
-
async getSizeGuide(
|
|
4370
|
+
async getSizeGuide(
|
|
4371
|
+
{ id, requestHeaders } = { requestHeaders: {} },
|
|
4372
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4373
|
+
) {
|
|
4224
4374
|
const { error } = CatalogPlatformValidator.getSizeGuide().validate(
|
|
4225
4375
|
{
|
|
4226
4376
|
id,
|
|
@@ -4257,12 +4407,12 @@ class Catalog {
|
|
|
4257
4407
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/sizeguide/${id}/`,
|
|
4258
4408
|
query_params,
|
|
4259
4409
|
undefined,
|
|
4260
|
-
xHeaders,
|
|
4261
|
-
{
|
|
4410
|
+
{ ...xHeaders, ...requestHeaders },
|
|
4411
|
+
{ responseHeaders }
|
|
4262
4412
|
);
|
|
4263
4413
|
|
|
4264
4414
|
let responseData = response;
|
|
4265
|
-
if (
|
|
4415
|
+
if (responseHeaders) {
|
|
4266
4416
|
responseData = response[0];
|
|
4267
4417
|
}
|
|
4268
4418
|
|
|
@@ -4285,6 +4435,7 @@ class Catalog {
|
|
|
4285
4435
|
|
|
4286
4436
|
/**
|
|
4287
4437
|
* @param {CatalogPlatformValidator.GetSizeGuidesParam} arg - Arg object
|
|
4438
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4288
4439
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4289
4440
|
* @returns {Promise<CatalogPlatformModel.ListSizeGuide>} - Success response
|
|
4290
4441
|
* @name getSizeGuides
|
|
@@ -4292,8 +4443,10 @@ class Catalog {
|
|
|
4292
4443
|
* @description: This API allows to view all the size guides associated to the seller. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSizeGuides/).
|
|
4293
4444
|
*/
|
|
4294
4445
|
async getSizeGuides(
|
|
4295
|
-
{ active, q, tag, pageNo, pageSize } = {
|
|
4296
|
-
|
|
4446
|
+
{ active, q, tag, pageNo, pageSize, requestHeaders } = {
|
|
4447
|
+
requestHeaders: {},
|
|
4448
|
+
},
|
|
4449
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4297
4450
|
) {
|
|
4298
4451
|
const { error } = CatalogPlatformValidator.getSizeGuides().validate(
|
|
4299
4452
|
{
|
|
@@ -4344,12 +4497,12 @@ class Catalog {
|
|
|
4344
4497
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/sizeguide`,
|
|
4345
4498
|
query_params,
|
|
4346
4499
|
undefined,
|
|
4347
|
-
xHeaders,
|
|
4348
|
-
{
|
|
4500
|
+
{ ...xHeaders, ...requestHeaders },
|
|
4501
|
+
{ responseHeaders }
|
|
4349
4502
|
);
|
|
4350
4503
|
|
|
4351
4504
|
let responseData = response;
|
|
4352
|
-
if (
|
|
4505
|
+
if (responseHeaders) {
|
|
4353
4506
|
responseData = response[0];
|
|
4354
4507
|
}
|
|
4355
4508
|
|
|
@@ -4372,6 +4525,7 @@ class Catalog {
|
|
|
4372
4525
|
|
|
4373
4526
|
/**
|
|
4374
4527
|
* @param {CatalogPlatformValidator.GetStoreDetailParam} arg - Arg object
|
|
4528
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4375
4529
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4376
4530
|
* @returns {Promise<CatalogPlatformModel.OptinStoreDetails>} - Success response
|
|
4377
4531
|
* @name getStoreDetail
|
|
@@ -4379,8 +4533,8 @@ class Catalog {
|
|
|
4379
4533
|
* @description: Get the details of the store associated with the company ID passed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getStoreDetail/).
|
|
4380
4534
|
*/
|
|
4381
4535
|
async getStoreDetail(
|
|
4382
|
-
{ q, pageNo, pageSize } = {},
|
|
4383
|
-
{
|
|
4536
|
+
{ q, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
4537
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4384
4538
|
) {
|
|
4385
4539
|
const { error } = CatalogPlatformValidator.getStoreDetail().validate(
|
|
4386
4540
|
{
|
|
@@ -4425,12 +4579,12 @@ class Catalog {
|
|
|
4425
4579
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/location-details/`,
|
|
4426
4580
|
query_params,
|
|
4427
4581
|
undefined,
|
|
4428
|
-
xHeaders,
|
|
4429
|
-
{
|
|
4582
|
+
{ ...xHeaders, ...requestHeaders },
|
|
4583
|
+
{ responseHeaders }
|
|
4430
4584
|
);
|
|
4431
4585
|
|
|
4432
4586
|
let responseData = response;
|
|
4433
|
-
if (
|
|
4587
|
+
if (responseHeaders) {
|
|
4434
4588
|
responseData = response[0];
|
|
4435
4589
|
}
|
|
4436
4590
|
|
|
@@ -4453,6 +4607,7 @@ class Catalog {
|
|
|
4453
4607
|
|
|
4454
4608
|
/**
|
|
4455
4609
|
* @param {CatalogPlatformValidator.GetVariantsOfProductsParam} arg - Arg object
|
|
4610
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4456
4611
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4457
4612
|
* @returns {Promise<CatalogPlatformModel.ProductVariantsResponse>} - Success response
|
|
4458
4613
|
* @name getVariantsOfProducts
|
|
@@ -4460,8 +4615,10 @@ class Catalog {
|
|
|
4460
4615
|
* @description: This API gets meta associated to products. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getVariantsOfProducts/).
|
|
4461
4616
|
*/
|
|
4462
4617
|
async getVariantsOfProducts(
|
|
4463
|
-
{ itemId, variantType, pageNo, pageSize } = {
|
|
4464
|
-
|
|
4618
|
+
{ itemId, variantType, pageNo, pageSize, requestHeaders } = {
|
|
4619
|
+
requestHeaders: {},
|
|
4620
|
+
},
|
|
4621
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4465
4622
|
) {
|
|
4466
4623
|
const { error } = CatalogPlatformValidator.getVariantsOfProducts().validate(
|
|
4467
4624
|
{
|
|
@@ -4507,12 +4664,12 @@ class Catalog {
|
|
|
4507
4664
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/variants/${variantType}`,
|
|
4508
4665
|
query_params,
|
|
4509
4666
|
undefined,
|
|
4510
|
-
xHeaders,
|
|
4511
|
-
{
|
|
4667
|
+
{ ...xHeaders, ...requestHeaders },
|
|
4668
|
+
{ responseHeaders }
|
|
4512
4669
|
);
|
|
4513
4670
|
|
|
4514
4671
|
let responseData = response;
|
|
4515
|
-
if (
|
|
4672
|
+
if (responseHeaders) {
|
|
4516
4673
|
responseData = response[0];
|
|
4517
4674
|
}
|
|
4518
4675
|
|
|
@@ -4535,6 +4692,7 @@ class Catalog {
|
|
|
4535
4692
|
|
|
4536
4693
|
/**
|
|
4537
4694
|
* @param {CatalogPlatformValidator.ListCategoriesParam} arg - Arg object
|
|
4695
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4538
4696
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4539
4697
|
* @returns {Promise<CatalogPlatformModel.CategoryResponse>} - Success response
|
|
4540
4698
|
* @name listCategories
|
|
@@ -4542,8 +4700,10 @@ class Catalog {
|
|
|
4542
4700
|
* @description: This API gets meta associated to product categories. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listCategories/).
|
|
4543
4701
|
*/
|
|
4544
4702
|
async listCategories(
|
|
4545
|
-
{ level, departments, q, pageNo, pageSize } = {
|
|
4546
|
-
|
|
4703
|
+
{ level, departments, q, pageNo, pageSize, requestHeaders } = {
|
|
4704
|
+
requestHeaders: {},
|
|
4705
|
+
},
|
|
4706
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4547
4707
|
) {
|
|
4548
4708
|
const { error } = CatalogPlatformValidator.listCategories().validate(
|
|
4549
4709
|
{
|
|
@@ -4594,12 +4754,12 @@ class Catalog {
|
|
|
4594
4754
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/category/`,
|
|
4595
4755
|
query_params,
|
|
4596
4756
|
undefined,
|
|
4597
|
-
xHeaders,
|
|
4598
|
-
{
|
|
4757
|
+
{ ...xHeaders, ...requestHeaders },
|
|
4758
|
+
{ responseHeaders }
|
|
4599
4759
|
);
|
|
4600
4760
|
|
|
4601
4761
|
let responseData = response;
|
|
4602
|
-
if (
|
|
4762
|
+
if (responseHeaders) {
|
|
4603
4763
|
responseData = response[0];
|
|
4604
4764
|
}
|
|
4605
4765
|
|
|
@@ -4622,6 +4782,7 @@ class Catalog {
|
|
|
4622
4782
|
|
|
4623
4783
|
/**
|
|
4624
4784
|
* @param {CatalogPlatformValidator.ListDepartmentsDataParam} arg - Arg object
|
|
4785
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4625
4786
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4626
4787
|
* @returns {Promise<CatalogPlatformModel.DepartmentsResponse>} - Success response
|
|
4627
4788
|
* @name listDepartmentsData
|
|
@@ -4629,8 +4790,10 @@ class Catalog {
|
|
|
4629
4790
|
* @description: Allows you to list all departments, also can search using name and filter active and incative departments, and item type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listDepartmentsData/).
|
|
4630
4791
|
*/
|
|
4631
4792
|
async listDepartmentsData(
|
|
4632
|
-
{ pageNo, itemType, pageSize, name, search, isActive } = {
|
|
4633
|
-
|
|
4793
|
+
{ pageNo, itemType, pageSize, name, search, isActive, requestHeaders } = {
|
|
4794
|
+
requestHeaders: {},
|
|
4795
|
+
},
|
|
4796
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4634
4797
|
) {
|
|
4635
4798
|
const { error } = CatalogPlatformValidator.listDepartmentsData().validate(
|
|
4636
4799
|
{
|
|
@@ -4684,12 +4847,12 @@ class Catalog {
|
|
|
4684
4847
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/`,
|
|
4685
4848
|
query_params,
|
|
4686
4849
|
undefined,
|
|
4687
|
-
xHeaders,
|
|
4688
|
-
{
|
|
4850
|
+
{ ...xHeaders, ...requestHeaders },
|
|
4851
|
+
{ responseHeaders }
|
|
4689
4852
|
);
|
|
4690
4853
|
|
|
4691
4854
|
let responseData = response;
|
|
4692
|
-
if (
|
|
4855
|
+
if (responseHeaders) {
|
|
4693
4856
|
responseData = response[0];
|
|
4694
4857
|
}
|
|
4695
4858
|
|
|
@@ -4712,13 +4875,17 @@ class Catalog {
|
|
|
4712
4875
|
|
|
4713
4876
|
/**
|
|
4714
4877
|
* @param {CatalogPlatformValidator.ListHSNCodesParam} arg - Arg object
|
|
4878
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4715
4879
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4716
4880
|
* @returns {Promise<CatalogPlatformModel.HSNCodesResponse>} - Success response
|
|
4717
4881
|
* @name listHSNCodes
|
|
4718
4882
|
* @summary: List HSN Codes
|
|
4719
4883
|
* @description: Allows you to list all hsn Codes - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listHSNCodes/).
|
|
4720
4884
|
*/
|
|
4721
|
-
async listHSNCodes(
|
|
4885
|
+
async listHSNCodes(
|
|
4886
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
4887
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4888
|
+
) {
|
|
4722
4889
|
const { error } = CatalogPlatformValidator.listHSNCodes().validate(
|
|
4723
4890
|
{},
|
|
4724
4891
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -4751,12 +4918,12 @@ class Catalog {
|
|
|
4751
4918
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/hsn/`,
|
|
4752
4919
|
query_params,
|
|
4753
4920
|
undefined,
|
|
4754
|
-
xHeaders,
|
|
4755
|
-
{
|
|
4921
|
+
{ ...xHeaders, ...requestHeaders },
|
|
4922
|
+
{ responseHeaders }
|
|
4756
4923
|
);
|
|
4757
4924
|
|
|
4758
4925
|
let responseData = response;
|
|
4759
|
-
if (
|
|
4926
|
+
if (responseHeaders) {
|
|
4760
4927
|
responseData = response[0];
|
|
4761
4928
|
}
|
|
4762
4929
|
|
|
@@ -4779,6 +4946,7 @@ class Catalog {
|
|
|
4779
4946
|
|
|
4780
4947
|
/**
|
|
4781
4948
|
* @param {CatalogPlatformValidator.ListInventoryExportParam} arg - Arg object
|
|
4949
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4782
4950
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4783
4951
|
* @returns {Promise<CatalogPlatformModel.InventoryExportJobListResponse>}
|
|
4784
4952
|
* - Success response
|
|
@@ -4788,8 +4956,8 @@ class Catalog {
|
|
|
4788
4956
|
* @description: This API helps you the get the history of inventory jobs depending on the filtered criteria. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listInventoryExport/).
|
|
4789
4957
|
*/
|
|
4790
4958
|
async listInventoryExport(
|
|
4791
|
-
{ status, fromDate, toDate, q } = {},
|
|
4792
|
-
{
|
|
4959
|
+
{ status, fromDate, toDate, q, requestHeaders } = { requestHeaders: {} },
|
|
4960
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4793
4961
|
) {
|
|
4794
4962
|
const { error } = CatalogPlatformValidator.listInventoryExport().validate(
|
|
4795
4963
|
{
|
|
@@ -4837,12 +5005,12 @@ class Catalog {
|
|
|
4837
5005
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download/`,
|
|
4838
5006
|
query_params,
|
|
4839
5007
|
undefined,
|
|
4840
|
-
xHeaders,
|
|
4841
|
-
{
|
|
5008
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5009
|
+
{ responseHeaders }
|
|
4842
5010
|
);
|
|
4843
5011
|
|
|
4844
5012
|
let responseData = response;
|
|
4845
|
-
if (
|
|
5013
|
+
if (responseHeaders) {
|
|
4846
5014
|
responseData = response[0];
|
|
4847
5015
|
}
|
|
4848
5016
|
|
|
@@ -4865,6 +5033,7 @@ class Catalog {
|
|
|
4865
5033
|
|
|
4866
5034
|
/**
|
|
4867
5035
|
* @param {CatalogPlatformValidator.ListProductTemplateParam} arg - Arg object
|
|
5036
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4868
5037
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4869
5038
|
* @returns {Promise<CatalogPlatformModel.TemplatesResponse>} - Success response
|
|
4870
5039
|
* @name listProductTemplate
|
|
@@ -4872,8 +5041,8 @@ class Catalog {
|
|
|
4872
5041
|
* @description: Allows you to list all product templates, also can filter by department - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listProductTemplate/).
|
|
4873
5042
|
*/
|
|
4874
5043
|
async listProductTemplate(
|
|
4875
|
-
{ department } = {},
|
|
4876
|
-
{
|
|
5044
|
+
{ department, requestHeaders } = { requestHeaders: {} },
|
|
5045
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4877
5046
|
) {
|
|
4878
5047
|
const { error } = CatalogPlatformValidator.listProductTemplate().validate(
|
|
4879
5048
|
{
|
|
@@ -4912,12 +5081,12 @@ class Catalog {
|
|
|
4912
5081
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/`,
|
|
4913
5082
|
query_params,
|
|
4914
5083
|
undefined,
|
|
4915
|
-
xHeaders,
|
|
4916
|
-
{
|
|
5084
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5085
|
+
{ responseHeaders }
|
|
4917
5086
|
);
|
|
4918
5087
|
|
|
4919
5088
|
let responseData = response;
|
|
4920
|
-
if (
|
|
5089
|
+
if (responseHeaders) {
|
|
4921
5090
|
responseData = response[0];
|
|
4922
5091
|
}
|
|
4923
5092
|
|
|
@@ -4942,6 +5111,7 @@ class Catalog {
|
|
|
4942
5111
|
* @param {CatalogPlatformValidator.ListProductTemplateCategoriesParam} arg
|
|
4943
5112
|
* - Arg object
|
|
4944
5113
|
*
|
|
5114
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4945
5115
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4946
5116
|
* @returns {Promise<CatalogPlatformModel.ProdcutTemplateCategoriesResponse>}
|
|
4947
5117
|
* - Success response
|
|
@@ -4951,8 +5121,8 @@ class Catalog {
|
|
|
4951
5121
|
* @description: Allows you to list all product categories values for the departments specified - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listProductTemplateCategories/).
|
|
4952
5122
|
*/
|
|
4953
5123
|
async listProductTemplateCategories(
|
|
4954
|
-
{ departments, itemType } = {},
|
|
4955
|
-
{
|
|
5124
|
+
{ departments, itemType, requestHeaders } = { requestHeaders: {} },
|
|
5125
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
4956
5126
|
) {
|
|
4957
5127
|
const {
|
|
4958
5128
|
error,
|
|
@@ -4996,12 +5166,12 @@ class Catalog {
|
|
|
4996
5166
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/categories/`,
|
|
4997
5167
|
query_params,
|
|
4998
5168
|
undefined,
|
|
4999
|
-
xHeaders,
|
|
5000
|
-
{
|
|
5169
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5170
|
+
{ responseHeaders }
|
|
5001
5171
|
);
|
|
5002
5172
|
|
|
5003
5173
|
let responseData = response;
|
|
5004
|
-
if (
|
|
5174
|
+
if (responseHeaders) {
|
|
5005
5175
|
responseData = response[0];
|
|
5006
5176
|
}
|
|
5007
5177
|
|
|
@@ -5026,6 +5196,7 @@ class Catalog {
|
|
|
5026
5196
|
* @param {CatalogPlatformValidator.ListProductTemplateExportDetailsParam} arg
|
|
5027
5197
|
* - Arg object
|
|
5028
5198
|
*
|
|
5199
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5029
5200
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5030
5201
|
* @returns {Promise<CatalogPlatformModel.ProductDownloadsResponse>} -
|
|
5031
5202
|
* Success response
|
|
@@ -5033,7 +5204,10 @@ class Catalog {
|
|
|
5033
5204
|
* @summary: Allows you to list all product templates export list details
|
|
5034
5205
|
* @description: Can view details including trigger data, task id , etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listProductTemplateExportDetails/).
|
|
5035
5206
|
*/
|
|
5036
|
-
async listProductTemplateExportDetails(
|
|
5207
|
+
async listProductTemplateExportDetails(
|
|
5208
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
5209
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5210
|
+
) {
|
|
5037
5211
|
const {
|
|
5038
5212
|
error,
|
|
5039
5213
|
} = CatalogPlatformValidator.listProductTemplateExportDetails().validate(
|
|
@@ -5068,12 +5242,12 @@ class Catalog {
|
|
|
5068
5242
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/downloads/`,
|
|
5069
5243
|
query_params,
|
|
5070
5244
|
undefined,
|
|
5071
|
-
xHeaders,
|
|
5072
|
-
{
|
|
5245
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5246
|
+
{ responseHeaders }
|
|
5073
5247
|
);
|
|
5074
5248
|
|
|
5075
5249
|
let responseData = response;
|
|
5076
|
-
if (
|
|
5250
|
+
if (responseHeaders) {
|
|
5077
5251
|
responseData = response[0];
|
|
5078
5252
|
}
|
|
5079
5253
|
|
|
@@ -5096,6 +5270,7 @@ class Catalog {
|
|
|
5096
5270
|
|
|
5097
5271
|
/**
|
|
5098
5272
|
* @param {CatalogPlatformValidator.ListTemplateBrandTypeValuesParam} arg - Arg object
|
|
5273
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5099
5274
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5100
5275
|
* @returns {Promise<CatalogPlatformModel.ProductConfigurationDownloads>} -
|
|
5101
5276
|
* Success response
|
|
@@ -5104,8 +5279,8 @@ class Catalog {
|
|
|
5104
5279
|
* @description: The filter type query parameter defines what type of data to return. The type of query returns the valid values for the same - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listTemplateBrandTypeValues/).
|
|
5105
5280
|
*/
|
|
5106
5281
|
async listTemplateBrandTypeValues(
|
|
5107
|
-
{ filter, templateTag, itemType } = {},
|
|
5108
|
-
{
|
|
5282
|
+
{ filter, templateTag, itemType, requestHeaders } = { requestHeaders: {} },
|
|
5283
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5109
5284
|
) {
|
|
5110
5285
|
const {
|
|
5111
5286
|
error,
|
|
@@ -5152,12 +5327,12 @@ class Catalog {
|
|
|
5152
5327
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/downloads/configuration/`,
|
|
5153
5328
|
query_params,
|
|
5154
5329
|
undefined,
|
|
5155
|
-
xHeaders,
|
|
5156
|
-
{
|
|
5330
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5331
|
+
{ responseHeaders }
|
|
5157
5332
|
);
|
|
5158
5333
|
|
|
5159
5334
|
let responseData = response;
|
|
5160
|
-
if (
|
|
5335
|
+
if (responseHeaders) {
|
|
5161
5336
|
responseData = response[0];
|
|
5162
5337
|
}
|
|
5163
5338
|
|
|
@@ -5180,13 +5355,17 @@ class Catalog {
|
|
|
5180
5355
|
|
|
5181
5356
|
/**
|
|
5182
5357
|
* @param {CatalogPlatformValidator.UpdateCategoryParam} arg - Arg object
|
|
5358
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5183
5359
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5184
5360
|
* @returns {Promise<CatalogPlatformModel.CategoryUpdateResponse>} - Success response
|
|
5185
5361
|
* @name updateCategory
|
|
5186
5362
|
* @summary: Update product categories
|
|
5187
5363
|
* @description: Update a product category using this api - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateCategory/).
|
|
5188
5364
|
*/
|
|
5189
|
-
async updateCategory(
|
|
5365
|
+
async updateCategory(
|
|
5366
|
+
{ uid, body, requestHeaders } = { requestHeaders: {} },
|
|
5367
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5368
|
+
) {
|
|
5190
5369
|
const { error } = CatalogPlatformValidator.updateCategory().validate(
|
|
5191
5370
|
{
|
|
5192
5371
|
uid,
|
|
@@ -5225,12 +5404,12 @@ class Catalog {
|
|
|
5225
5404
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/category/${uid}/`,
|
|
5226
5405
|
query_params,
|
|
5227
5406
|
body,
|
|
5228
|
-
xHeaders,
|
|
5229
|
-
{
|
|
5407
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5408
|
+
{ responseHeaders }
|
|
5230
5409
|
);
|
|
5231
5410
|
|
|
5232
5411
|
let responseData = response;
|
|
5233
|
-
if (
|
|
5412
|
+
if (responseHeaders) {
|
|
5234
5413
|
responseData = response[0];
|
|
5235
5414
|
}
|
|
5236
5415
|
|
|
@@ -5253,13 +5432,17 @@ class Catalog {
|
|
|
5253
5432
|
|
|
5254
5433
|
/**
|
|
5255
5434
|
* @param {CatalogPlatformValidator.UpdateDepartmentParam} arg - Arg object
|
|
5435
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5256
5436
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5257
5437
|
* @returns {Promise<CatalogPlatformModel.DepartmentModel>} - Success response
|
|
5258
5438
|
* @name updateDepartment
|
|
5259
5439
|
* @summary: Update the department by their uid.
|
|
5260
5440
|
* @description: Update the department by their uid using this API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateDepartment/).
|
|
5261
5441
|
*/
|
|
5262
|
-
async updateDepartment(
|
|
5442
|
+
async updateDepartment(
|
|
5443
|
+
{ uid, body, requestHeaders } = { requestHeaders: {} },
|
|
5444
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5445
|
+
) {
|
|
5263
5446
|
const { error } = CatalogPlatformValidator.updateDepartment().validate(
|
|
5264
5447
|
{
|
|
5265
5448
|
uid,
|
|
@@ -5298,12 +5481,12 @@ class Catalog {
|
|
|
5298
5481
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/${uid}/`,
|
|
5299
5482
|
query_params,
|
|
5300
5483
|
body,
|
|
5301
|
-
xHeaders,
|
|
5302
|
-
{
|
|
5484
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5485
|
+
{ responseHeaders }
|
|
5303
5486
|
);
|
|
5304
5487
|
|
|
5305
5488
|
let responseData = response;
|
|
5306
|
-
if (
|
|
5489
|
+
if (responseHeaders) {
|
|
5307
5490
|
responseData = response[0];
|
|
5308
5491
|
}
|
|
5309
5492
|
|
|
@@ -5326,13 +5509,17 @@ class Catalog {
|
|
|
5326
5509
|
|
|
5327
5510
|
/**
|
|
5328
5511
|
* @param {CatalogPlatformValidator.UpdateHsnCodeParam} arg - Arg object
|
|
5512
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5329
5513
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5330
5514
|
* @returns {Promise<CatalogPlatformModel.HsnCode>} - Success response
|
|
5331
5515
|
* @name updateHsnCode
|
|
5332
5516
|
* @summary: Update Hsn Code.
|
|
5333
5517
|
* @description: Update Hsn Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateHsnCode/).
|
|
5334
5518
|
*/
|
|
5335
|
-
async updateHsnCode(
|
|
5519
|
+
async updateHsnCode(
|
|
5520
|
+
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
5521
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5522
|
+
) {
|
|
5336
5523
|
const { error } = CatalogPlatformValidator.updateHsnCode().validate(
|
|
5337
5524
|
{
|
|
5338
5525
|
id,
|
|
@@ -5371,12 +5558,12 @@ class Catalog {
|
|
|
5371
5558
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/${id}/`,
|
|
5372
5559
|
query_params,
|
|
5373
5560
|
body,
|
|
5374
|
-
xHeaders,
|
|
5375
|
-
{
|
|
5561
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5562
|
+
{ responseHeaders }
|
|
5376
5563
|
);
|
|
5377
5564
|
|
|
5378
5565
|
let responseData = response;
|
|
5379
|
-
if (
|
|
5566
|
+
if (responseHeaders) {
|
|
5380
5567
|
responseData = response[0];
|
|
5381
5568
|
}
|
|
5382
5569
|
|
|
@@ -5399,13 +5586,17 @@ class Catalog {
|
|
|
5399
5586
|
|
|
5400
5587
|
/**
|
|
5401
5588
|
* @param {CatalogPlatformValidator.UpdateInventoriesParam} arg - Arg object
|
|
5589
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5402
5590
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5403
5591
|
* @returns {Promise<CatalogPlatformModel.InventoryUpdateResponse>} - Success response
|
|
5404
5592
|
* @name updateInventories
|
|
5405
5593
|
* @summary: Add Inventory for particular size and store.
|
|
5406
5594
|
* @description: This API allows add Inventory for particular size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateInventories/).
|
|
5407
5595
|
*/
|
|
5408
|
-
async updateInventories(
|
|
5596
|
+
async updateInventories(
|
|
5597
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
5598
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5599
|
+
) {
|
|
5409
5600
|
const { error } = CatalogPlatformValidator.updateInventories().validate(
|
|
5410
5601
|
{
|
|
5411
5602
|
body,
|
|
@@ -5442,12 +5633,12 @@ class Catalog {
|
|
|
5442
5633
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/`,
|
|
5443
5634
|
query_params,
|
|
5444
5635
|
body,
|
|
5445
|
-
xHeaders,
|
|
5446
|
-
{
|
|
5636
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5637
|
+
{ responseHeaders }
|
|
5447
5638
|
);
|
|
5448
5639
|
|
|
5449
5640
|
let responseData = response;
|
|
5450
|
-
if (
|
|
5641
|
+
if (responseHeaders) {
|
|
5451
5642
|
responseData = response[0];
|
|
5452
5643
|
}
|
|
5453
5644
|
|
|
@@ -5470,6 +5661,7 @@ class Catalog {
|
|
|
5470
5661
|
|
|
5471
5662
|
/**
|
|
5472
5663
|
* @param {CatalogPlatformValidator.UpdateProductBundleParam} arg - Arg object
|
|
5664
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5473
5665
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5474
5666
|
* @returns {Promise<CatalogPlatformModel.GetProductBundleCreateResponse>}
|
|
5475
5667
|
* - Success response
|
|
@@ -5479,8 +5671,8 @@ class Catalog {
|
|
|
5479
5671
|
* @description: Update a Product Bundle by its id. On successful request, returns the updated product bundle - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateProductBundle/).
|
|
5480
5672
|
*/
|
|
5481
5673
|
async updateProductBundle(
|
|
5482
|
-
{ id, body } = {},
|
|
5483
|
-
{
|
|
5674
|
+
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
5675
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5484
5676
|
) {
|
|
5485
5677
|
const { error } = CatalogPlatformValidator.updateProductBundle().validate(
|
|
5486
5678
|
{
|
|
@@ -5520,12 +5712,12 @@ class Catalog {
|
|
|
5520
5712
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/${id}/`,
|
|
5521
5713
|
query_params,
|
|
5522
5714
|
body,
|
|
5523
|
-
xHeaders,
|
|
5524
|
-
{
|
|
5715
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5716
|
+
{ responseHeaders }
|
|
5525
5717
|
);
|
|
5526
5718
|
|
|
5527
5719
|
let responseData = response;
|
|
5528
|
-
if (
|
|
5720
|
+
if (responseHeaders) {
|
|
5529
5721
|
responseData = response[0];
|
|
5530
5722
|
}
|
|
5531
5723
|
|
|
@@ -5548,6 +5740,7 @@ class Catalog {
|
|
|
5548
5740
|
|
|
5549
5741
|
/**
|
|
5550
5742
|
* @param {CatalogPlatformValidator.UpdateRealtimeInventoryParam} arg - Arg object
|
|
5743
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5551
5744
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5552
5745
|
* @returns {Promise<CatalogPlatformModel.InventoryUpdateResponse>} - Success response
|
|
5553
5746
|
* @name updateRealtimeInventory
|
|
@@ -5555,8 +5748,8 @@ class Catalog {
|
|
|
5555
5748
|
* @description: This API allows add Inventory for particular size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateRealtimeInventory/).
|
|
5556
5749
|
*/
|
|
5557
5750
|
async updateRealtimeInventory(
|
|
5558
|
-
{ itemId, sellerIdentifier, body } = {},
|
|
5559
|
-
{
|
|
5751
|
+
{ itemId, sellerIdentifier, body, requestHeaders } = { requestHeaders: {} },
|
|
5752
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5560
5753
|
) {
|
|
5561
5754
|
const {
|
|
5562
5755
|
error,
|
|
@@ -5600,12 +5793,12 @@ class Catalog {
|
|
|
5600
5793
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/inventory/${sellerIdentifier}`,
|
|
5601
5794
|
query_params,
|
|
5602
5795
|
body,
|
|
5603
|
-
xHeaders,
|
|
5604
|
-
{
|
|
5796
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5797
|
+
{ responseHeaders }
|
|
5605
5798
|
);
|
|
5606
5799
|
|
|
5607
5800
|
let responseData = response;
|
|
5608
|
-
if (
|
|
5801
|
+
if (responseHeaders) {
|
|
5609
5802
|
responseData = response[0];
|
|
5610
5803
|
}
|
|
5611
5804
|
|
|
@@ -5628,13 +5821,17 @@ class Catalog {
|
|
|
5628
5821
|
|
|
5629
5822
|
/**
|
|
5630
5823
|
* @param {CatalogPlatformValidator.UpdateSizeGuideParam} arg - Arg object
|
|
5824
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5631
5825
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5632
5826
|
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
5633
5827
|
* @name updateSizeGuide
|
|
5634
5828
|
* @summary: Edit a size guide.
|
|
5635
5829
|
* @description: This API allows to edit a size guide. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSizeGuide/).
|
|
5636
5830
|
*/
|
|
5637
|
-
async updateSizeGuide(
|
|
5831
|
+
async updateSizeGuide(
|
|
5832
|
+
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
5833
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5834
|
+
) {
|
|
5638
5835
|
const { error } = CatalogPlatformValidator.updateSizeGuide().validate(
|
|
5639
5836
|
{
|
|
5640
5837
|
id,
|
|
@@ -5673,12 +5870,12 @@ class Catalog {
|
|
|
5673
5870
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/sizeguide/${id}/`,
|
|
5674
5871
|
query_params,
|
|
5675
5872
|
body,
|
|
5676
|
-
xHeaders,
|
|
5677
|
-
{
|
|
5873
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5874
|
+
{ responseHeaders }
|
|
5678
5875
|
);
|
|
5679
5876
|
|
|
5680
5877
|
let responseData = response;
|
|
5681
|
-
if (
|
|
5878
|
+
if (responseHeaders) {
|
|
5682
5879
|
responseData = response[0];
|
|
5683
5880
|
}
|
|
5684
5881
|
|
|
@@ -5701,6 +5898,7 @@ class Catalog {
|
|
|
5701
5898
|
|
|
5702
5899
|
/**
|
|
5703
5900
|
* @param {CatalogPlatformValidator.UploadBulkProductsParam} arg - Arg object
|
|
5901
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5704
5902
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5705
5903
|
* @returns {Promise<CatalogPlatformModel.BulkResponse>} - Success response
|
|
5706
5904
|
* @name uploadBulkProducts
|
|
@@ -5708,8 +5906,8 @@ class Catalog {
|
|
|
5708
5906
|
* @description: This API helps to create a bulk products upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/uploadBulkProducts/).
|
|
5709
5907
|
*/
|
|
5710
5908
|
async uploadBulkProducts(
|
|
5711
|
-
{ department, productType, body } = {},
|
|
5712
|
-
{
|
|
5909
|
+
{ department, productType, body, requestHeaders } = { requestHeaders: {} },
|
|
5910
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5713
5911
|
) {
|
|
5714
5912
|
const { error } = CatalogPlatformValidator.uploadBulkProducts().validate(
|
|
5715
5913
|
{
|
|
@@ -5753,12 +5951,12 @@ class Catalog {
|
|
|
5753
5951
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/products/bulk`,
|
|
5754
5952
|
query_params,
|
|
5755
5953
|
body,
|
|
5756
|
-
xHeaders,
|
|
5757
|
-
{
|
|
5954
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5955
|
+
{ responseHeaders }
|
|
5758
5956
|
);
|
|
5759
5957
|
|
|
5760
5958
|
let responseData = response;
|
|
5761
|
-
if (
|
|
5959
|
+
if (responseHeaders) {
|
|
5762
5960
|
responseData = response[0];
|
|
5763
5961
|
}
|
|
5764
5962
|
|
|
@@ -5781,6 +5979,7 @@ class Catalog {
|
|
|
5781
5979
|
|
|
5782
5980
|
/**
|
|
5783
5981
|
* @param {CatalogPlatformValidator.ValidateProductTemplateParam} arg - Arg object
|
|
5982
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5784
5983
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5785
5984
|
* @returns {Promise<CatalogPlatformModel.TemplatesValidationResponse>} -
|
|
5786
5985
|
* Success response
|
|
@@ -5789,14 +5988,16 @@ class Catalog {
|
|
|
5789
5988
|
* @description: Allows you to list all product templates validation values for all the fields present in the database - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductTemplate/).
|
|
5790
5989
|
*/
|
|
5791
5990
|
async validateProductTemplate(
|
|
5792
|
-
{ slug } = {},
|
|
5793
|
-
{
|
|
5991
|
+
{ slug, itemType, bulk, requestHeaders } = { requestHeaders: {} },
|
|
5992
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5794
5993
|
) {
|
|
5795
5994
|
const {
|
|
5796
5995
|
error,
|
|
5797
5996
|
} = CatalogPlatformValidator.validateProductTemplate().validate(
|
|
5798
5997
|
{
|
|
5799
5998
|
slug,
|
|
5999
|
+
itemType,
|
|
6000
|
+
bulk,
|
|
5800
6001
|
},
|
|
5801
6002
|
{ abortEarly: false, allowUnknown: true }
|
|
5802
6003
|
);
|
|
@@ -5810,6 +6011,8 @@ class Catalog {
|
|
|
5810
6011
|
} = CatalogPlatformValidator.validateProductTemplate().validate(
|
|
5811
6012
|
{
|
|
5812
6013
|
slug,
|
|
6014
|
+
itemType,
|
|
6015
|
+
bulk,
|
|
5813
6016
|
},
|
|
5814
6017
|
{ abortEarly: false, allowUnknown: false }
|
|
5815
6018
|
);
|
|
@@ -5821,6 +6024,8 @@ class Catalog {
|
|
|
5821
6024
|
}
|
|
5822
6025
|
|
|
5823
6026
|
const query_params = {};
|
|
6027
|
+
query_params["item_type"] = itemType;
|
|
6028
|
+
query_params["bulk"] = bulk;
|
|
5824
6029
|
|
|
5825
6030
|
const xHeaders = {};
|
|
5826
6031
|
|
|
@@ -5830,12 +6035,12 @@ class Catalog {
|
|
|
5830
6035
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/${slug}/validation/schema/`,
|
|
5831
6036
|
query_params,
|
|
5832
6037
|
undefined,
|
|
5833
|
-
xHeaders,
|
|
5834
|
-
{
|
|
6038
|
+
{ ...xHeaders, ...requestHeaders },
|
|
6039
|
+
{ responseHeaders }
|
|
5835
6040
|
);
|
|
5836
6041
|
|
|
5837
6042
|
let responseData = response;
|
|
5838
|
-
if (
|
|
6043
|
+
if (responseHeaders) {
|
|
5839
6044
|
responseData = response[0];
|
|
5840
6045
|
}
|
|
5841
6046
|
|
|
@@ -5860,6 +6065,7 @@ class Catalog {
|
|
|
5860
6065
|
* @param {CatalogPlatformValidator.ValidateProductTemplateSchemaParam} arg
|
|
5861
6066
|
* - Arg object
|
|
5862
6067
|
*
|
|
6068
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5863
6069
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5864
6070
|
* @returns {Promise<CatalogPlatformModel.InventoryValidationResponse>} -
|
|
5865
6071
|
* Success response
|
|
@@ -5868,8 +6074,8 @@ class Catalog {
|
|
|
5868
6074
|
* @description: Allows you to list all product templates validation values for all the fields present in the database - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductTemplateSchema/).
|
|
5869
6075
|
*/
|
|
5870
6076
|
async validateProductTemplateSchema(
|
|
5871
|
-
{ itemType } = {},
|
|
5872
|
-
{
|
|
6077
|
+
{ itemType, requestHeaders } = { requestHeaders: {} },
|
|
6078
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5873
6079
|
) {
|
|
5874
6080
|
const {
|
|
5875
6081
|
error,
|
|
@@ -5910,12 +6116,12 @@ class Catalog {
|
|
|
5910
6116
|
`/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/templates/validation/schema/`,
|
|
5911
6117
|
query_params,
|
|
5912
6118
|
undefined,
|
|
5913
|
-
xHeaders,
|
|
5914
|
-
{
|
|
6119
|
+
{ ...xHeaders, ...requestHeaders },
|
|
6120
|
+
{ responseHeaders }
|
|
5915
6121
|
);
|
|
5916
6122
|
|
|
5917
6123
|
let responseData = response;
|
|
5918
|
-
if (
|
|
6124
|
+
if (responseHeaders) {
|
|
5919
6125
|
responseData = response[0];
|
|
5920
6126
|
}
|
|
5921
6127
|
|