@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.4.15-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +27 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -19
- package/sdk/application/Content/ContentApplicationClient.js +54 -28
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +8 -89
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +8 -47
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -118
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1298 -5037
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6385
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1680 -3217
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +46 -42
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +28 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +5 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -105
|
@@ -18,7 +18,7 @@ class Catalog {
|
|
|
18
18
|
* @param {CatalogPlatformValidator.AddInventoryParam} arg - Arg object
|
|
19
19
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
20
20
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
21
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
21
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
22
22
|
* @name addInventory
|
|
23
23
|
* @summary: Create Inventory
|
|
24
24
|
* @description: Allows add Inventory for particular size and selling location. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/addInventory/).
|
|
@@ -78,7 +78,7 @@ class Catalog {
|
|
|
78
78
|
|
|
79
79
|
const {
|
|
80
80
|
error: res_error,
|
|
81
|
-
} = CatalogPlatformModel.
|
|
81
|
+
} = CatalogPlatformModel.SuccessResponse().validate(responseData, {
|
|
82
82
|
abortEarly: false,
|
|
83
83
|
allowUnknown: true,
|
|
84
84
|
});
|
|
@@ -178,7 +178,7 @@ class Catalog {
|
|
|
178
178
|
* @param {CatalogPlatformValidator.BulkHsnCodeParam} arg - Arg object
|
|
179
179
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
180
180
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
181
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
181
|
+
* @returns {Promise<CatalogPlatformModel.BulkHsnResponse>} - Success response
|
|
182
182
|
* @name bulkHsnCode
|
|
183
183
|
* @summary: Create Bulk update HSN
|
|
184
184
|
* @description: Execute bulk updates for HSN codes across multiple products. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/bulkHsnCode/).
|
|
@@ -232,7 +232,7 @@ class Catalog {
|
|
|
232
232
|
|
|
233
233
|
const {
|
|
234
234
|
error: res_error,
|
|
235
|
-
} = CatalogPlatformModel.
|
|
235
|
+
} = CatalogPlatformModel.BulkHsnResponse().validate(responseData, {
|
|
236
236
|
abortEarly: false,
|
|
237
237
|
allowUnknown: true,
|
|
238
238
|
});
|
|
@@ -255,7 +255,7 @@ class Catalog {
|
|
|
255
255
|
* @param {CatalogPlatformValidator.CreateBulkInventoryParam} arg - Arg object
|
|
256
256
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
257
257
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
258
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
258
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
259
259
|
* @name createBulkInventory
|
|
260
260
|
* @summary: Create bulk inventory
|
|
261
261
|
* @description: 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/).
|
|
@@ -313,7 +313,7 @@ class Catalog {
|
|
|
313
313
|
|
|
314
314
|
const {
|
|
315
315
|
error: res_error,
|
|
316
|
-
} = CatalogPlatformModel.
|
|
316
|
+
} = CatalogPlatformModel.SuccessResponse().validate(responseData, {
|
|
317
317
|
abortEarly: false,
|
|
318
318
|
allowUnknown: true,
|
|
319
319
|
});
|
|
@@ -336,7 +336,7 @@ class Catalog {
|
|
|
336
336
|
* @param {CatalogPlatformValidator.CreateBulkInventoryJobParam} arg - Arg object
|
|
337
337
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
338
338
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
339
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
339
|
+
* @returns {Promise<CatalogPlatformModel.BulkResponse>} - Success response
|
|
340
340
|
* @name createBulkInventoryJob
|
|
341
341
|
* @summary: Create bulk inventory upload job
|
|
342
342
|
* @description: Helps to create a bulk Inventory upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkInventoryJob/).
|
|
@@ -394,7 +394,7 @@ class Catalog {
|
|
|
394
394
|
|
|
395
395
|
const {
|
|
396
396
|
error: res_error,
|
|
397
|
-
} = CatalogPlatformModel.
|
|
397
|
+
} = CatalogPlatformModel.BulkResponse().validate(responseData, {
|
|
398
398
|
abortEarly: false,
|
|
399
399
|
allowUnknown: true,
|
|
400
400
|
});
|
|
@@ -417,7 +417,7 @@ class Catalog {
|
|
|
417
417
|
* @param {CatalogPlatformValidator.CreateBulkProductUploadJobParam} arg - Arg object
|
|
418
418
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
419
419
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
420
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
420
|
+
* @returns {Promise<CatalogPlatformModel.BulkResponse>} - Success response
|
|
421
421
|
* @name createBulkProductUploadJob
|
|
422
422
|
* @summary: Create products bulk upload
|
|
423
423
|
* @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/).
|
|
@@ -475,7 +475,7 @@ class Catalog {
|
|
|
475
475
|
|
|
476
476
|
const {
|
|
477
477
|
error: res_error,
|
|
478
|
-
} = CatalogPlatformModel.
|
|
478
|
+
} = CatalogPlatformModel.BulkResponse().validate(responseData, {
|
|
479
479
|
abortEarly: false,
|
|
480
480
|
allowUnknown: true,
|
|
481
481
|
});
|
|
@@ -498,8 +498,7 @@ class Catalog {
|
|
|
498
498
|
* @param {CatalogPlatformValidator.CreateInventoryExportParam} arg - Arg object
|
|
499
499
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
500
500
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
501
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
502
|
-
* Success response
|
|
501
|
+
* @returns {Promise<CatalogPlatformModel.InventoryExportResponse>} - Success response
|
|
503
502
|
* @name createInventoryExport
|
|
504
503
|
* @summary: Create inventory export
|
|
505
504
|
* @description: creates export job for inventory data associated with a company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createInventoryExport/).
|
|
@@ -555,10 +554,10 @@ class Catalog {
|
|
|
555
554
|
|
|
556
555
|
const {
|
|
557
556
|
error: res_error,
|
|
558
|
-
} = CatalogPlatformModel.
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
);
|
|
557
|
+
} = CatalogPlatformModel.InventoryExportResponse().validate(responseData, {
|
|
558
|
+
abortEarly: false,
|
|
559
|
+
allowUnknown: true,
|
|
560
|
+
});
|
|
562
561
|
|
|
563
562
|
if (res_error) {
|
|
564
563
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -578,8 +577,7 @@ class Catalog {
|
|
|
578
577
|
* @param {CatalogPlatformValidator.CreateInventoryExportJobParam} arg - Arg object
|
|
579
578
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
580
579
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
581
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
582
|
-
* Success response
|
|
580
|
+
* @returns {Promise<CatalogPlatformModel.InventoryExportResponse>} - Success response
|
|
583
581
|
* @name createInventoryExportJob
|
|
584
582
|
* @summary: Create inventory export job
|
|
585
583
|
* @description: Helps to create a Inventory export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createInventoryExportJob/).
|
|
@@ -637,10 +635,10 @@ class Catalog {
|
|
|
637
635
|
|
|
638
636
|
const {
|
|
639
637
|
error: res_error,
|
|
640
|
-
} = CatalogPlatformModel.
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
);
|
|
638
|
+
} = CatalogPlatformModel.InventoryExportResponse().validate(responseData, {
|
|
639
|
+
abortEarly: false,
|
|
640
|
+
allowUnknown: true,
|
|
641
|
+
});
|
|
644
642
|
|
|
645
643
|
if (res_error) {
|
|
646
644
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -660,7 +658,7 @@ class Catalog {
|
|
|
660
658
|
* @param {CatalogPlatformValidator.CreateMarketplaceOptinParam} arg - Arg object
|
|
661
659
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
662
660
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
663
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
661
|
+
* @returns {Promise<CatalogPlatformModel.CreateMarketplaceOptinResponse>}
|
|
664
662
|
* - Success response
|
|
665
663
|
*
|
|
666
664
|
* @name createMarketplaceOptin
|
|
@@ -722,7 +720,7 @@ class Catalog {
|
|
|
722
720
|
|
|
723
721
|
const {
|
|
724
722
|
error: res_error,
|
|
725
|
-
} = CatalogPlatformModel.
|
|
723
|
+
} = CatalogPlatformModel.CreateMarketplaceOptinResponse().validate(
|
|
726
724
|
responseData,
|
|
727
725
|
{ abortEarly: false, allowUnknown: true }
|
|
728
726
|
);
|
|
@@ -824,7 +822,7 @@ class Catalog {
|
|
|
824
822
|
* @param {CatalogPlatformValidator.CreateProductAssetsInBulkParam} arg - Arg object
|
|
825
823
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
826
824
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
827
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
825
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
828
826
|
* @name createProductAssetsInBulk
|
|
829
827
|
* @summary: Create product assets in bulk
|
|
830
828
|
* @description: Helps to create a bulk asset upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductAssetsInBulk/).
|
|
@@ -882,7 +880,7 @@ class Catalog {
|
|
|
882
880
|
|
|
883
881
|
const {
|
|
884
882
|
error: res_error,
|
|
885
|
-
} = CatalogPlatformModel.
|
|
883
|
+
} = CatalogPlatformModel.SuccessResponse().validate(responseData, {
|
|
886
884
|
abortEarly: false,
|
|
887
885
|
allowUnknown: true,
|
|
888
886
|
});
|
|
@@ -905,7 +903,7 @@ class Catalog {
|
|
|
905
903
|
* @param {CatalogPlatformValidator.CreateProductBundleParam} arg - Arg object
|
|
906
904
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
907
905
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
908
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
906
|
+
* @returns {Promise<CatalogPlatformModel.GetProductBundleCreateResponse>}
|
|
909
907
|
* - Success response
|
|
910
908
|
*
|
|
911
909
|
* @name createProductBundle
|
|
@@ -963,7 +961,7 @@ class Catalog {
|
|
|
963
961
|
|
|
964
962
|
const {
|
|
965
963
|
error: res_error,
|
|
966
|
-
} = CatalogPlatformModel.
|
|
964
|
+
} = CatalogPlatformModel.GetProductBundleCreateResponse().validate(
|
|
967
965
|
responseData,
|
|
968
966
|
{ abortEarly: false, allowUnknown: true }
|
|
969
967
|
);
|
|
@@ -986,9 +984,8 @@ class Catalog {
|
|
|
986
984
|
* @param {CatalogPlatformValidator.CreateProductExportJobParam} arg - Arg object
|
|
987
985
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
988
986
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
989
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
990
|
-
*
|
|
991
|
-
*
|
|
987
|
+
* @returns {Promise<CatalogPlatformModel.ProductDownloadsResponse>} -
|
|
988
|
+
* Success response
|
|
992
989
|
* @name createProductExportJob
|
|
993
990
|
* @summary: Create product export job
|
|
994
991
|
* @description: Allows to create a product export job for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductExportJob/).
|
|
@@ -1046,10 +1043,10 @@ class Catalog {
|
|
|
1046
1043
|
|
|
1047
1044
|
const {
|
|
1048
1045
|
error: res_error,
|
|
1049
|
-
} = CatalogPlatformModel.
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
);
|
|
1046
|
+
} = CatalogPlatformModel.ProductDownloadsResponse().validate(responseData, {
|
|
1047
|
+
abortEarly: false,
|
|
1048
|
+
allowUnknown: true,
|
|
1049
|
+
});
|
|
1053
1050
|
|
|
1054
1051
|
if (res_error) {
|
|
1055
1052
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1069,7 +1066,7 @@ class Catalog {
|
|
|
1069
1066
|
* @param {CatalogPlatformValidator.CreateProductsInBulkParam} arg - Arg object
|
|
1070
1067
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1071
1068
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1072
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1069
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1073
1070
|
* @name createProductsInBulk
|
|
1074
1071
|
* @summary: Create products in bulk
|
|
1075
1072
|
* @description: 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/).
|
|
@@ -1127,7 +1124,7 @@ class Catalog {
|
|
|
1127
1124
|
|
|
1128
1125
|
const {
|
|
1129
1126
|
error: res_error,
|
|
1130
|
-
} = CatalogPlatformModel.
|
|
1127
|
+
} = CatalogPlatformModel.SuccessResponse().validate(responseData, {
|
|
1131
1128
|
abortEarly: false,
|
|
1132
1129
|
allowUnknown: true,
|
|
1133
1130
|
});
|
|
@@ -1150,7 +1147,7 @@ class Catalog {
|
|
|
1150
1147
|
* @param {CatalogPlatformValidator.CreateSizeGuideParam} arg - Arg object
|
|
1151
1148
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1152
1149
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1153
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1150
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1154
1151
|
* @name createSizeGuide
|
|
1155
1152
|
* @summary: Create size guide
|
|
1156
1153
|
* @description: Allows to create a size guide associated to a seller - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createSizeGuide/).
|
|
@@ -1206,7 +1203,7 @@ class Catalog {
|
|
|
1206
1203
|
|
|
1207
1204
|
const {
|
|
1208
1205
|
error: res_error,
|
|
1209
|
-
} = CatalogPlatformModel.
|
|
1206
|
+
} = CatalogPlatformModel.SuccessResponse().validate(responseData, {
|
|
1210
1207
|
abortEarly: false,
|
|
1211
1208
|
allowUnknown: true,
|
|
1212
1209
|
});
|
|
@@ -1229,7 +1226,7 @@ class Catalog {
|
|
|
1229
1226
|
* @param {CatalogPlatformValidator.DeleteBulkInventoryJobParam} arg - Arg object
|
|
1230
1227
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1231
1228
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1232
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1229
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1233
1230
|
* @name deleteBulkInventoryJob
|
|
1234
1231
|
* @summary: Delete inventory bulk upload job
|
|
1235
1232
|
* @description: Allows to delete bulk Inventory job associated with company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteBulkInventoryJob/).
|
|
@@ -1287,7 +1284,7 @@ class Catalog {
|
|
|
1287
1284
|
|
|
1288
1285
|
const {
|
|
1289
1286
|
error: res_error,
|
|
1290
|
-
} = CatalogPlatformModel.
|
|
1287
|
+
} = CatalogPlatformModel.SuccessResponse().validate(responseData, {
|
|
1291
1288
|
abortEarly: false,
|
|
1292
1289
|
allowUnknown: true,
|
|
1293
1290
|
});
|
|
@@ -1310,19 +1307,18 @@ class Catalog {
|
|
|
1310
1307
|
* @param {CatalogPlatformValidator.DeleteProductParam} arg - Arg object
|
|
1311
1308
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1312
1309
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1313
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1310
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1314
1311
|
* @name deleteProduct
|
|
1315
1312
|
* @summary: Delete product
|
|
1316
|
-
* @description: Users can delete a product by providing the
|
|
1313
|
+
* @description: Users can delete a product using this by providing the itemid. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteProduct/).
|
|
1317
1314
|
*/
|
|
1318
1315
|
async deleteProduct(
|
|
1319
|
-
{ itemId,
|
|
1316
|
+
{ itemId, requestHeaders } = { requestHeaders: {} },
|
|
1320
1317
|
{ responseHeaders } = { responseHeaders: false }
|
|
1321
1318
|
) {
|
|
1322
1319
|
const { error } = CatalogPlatformValidator.deleteProduct().validate(
|
|
1323
1320
|
{
|
|
1324
1321
|
itemId,
|
|
1325
|
-
body,
|
|
1326
1322
|
},
|
|
1327
1323
|
{ abortEarly: false, allowUnknown: true }
|
|
1328
1324
|
);
|
|
@@ -1336,7 +1332,6 @@ class Catalog {
|
|
|
1336
1332
|
} = CatalogPlatformValidator.deleteProduct().validate(
|
|
1337
1333
|
{
|
|
1338
1334
|
itemId,
|
|
1339
|
-
body,
|
|
1340
1335
|
},
|
|
1341
1336
|
{ abortEarly: false, allowUnknown: false }
|
|
1342
1337
|
);
|
|
@@ -1356,7 +1351,7 @@ class Catalog {
|
|
|
1356
1351
|
"delete",
|
|
1357
1352
|
`/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/`,
|
|
1358
1353
|
query_params,
|
|
1359
|
-
|
|
1354
|
+
undefined,
|
|
1360
1355
|
{ ...xHeaders, ...requestHeaders },
|
|
1361
1356
|
{ responseHeaders }
|
|
1362
1357
|
);
|
|
@@ -1368,7 +1363,7 @@ class Catalog {
|
|
|
1368
1363
|
|
|
1369
1364
|
const {
|
|
1370
1365
|
error: res_error,
|
|
1371
|
-
} = CatalogPlatformModel.
|
|
1366
|
+
} = CatalogPlatformModel.SuccessResponse().validate(responseData, {
|
|
1372
1367
|
abortEarly: false,
|
|
1373
1368
|
allowUnknown: true,
|
|
1374
1369
|
});
|
|
@@ -1391,7 +1386,7 @@ class Catalog {
|
|
|
1391
1386
|
* @param {CatalogPlatformValidator.DeleteProductBulkJobParam} arg - Arg object
|
|
1392
1387
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1393
1388
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1394
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1389
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1395
1390
|
* @name deleteProductBulkJob
|
|
1396
1391
|
* @summary: Delete product bulk-upload job
|
|
1397
1392
|
* @description: Allows to delete bulk product job associated with company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteProductBulkJob/).
|
|
@@ -1447,7 +1442,7 @@ class Catalog {
|
|
|
1447
1442
|
|
|
1448
1443
|
const {
|
|
1449
1444
|
error: res_error,
|
|
1450
|
-
} = CatalogPlatformModel.
|
|
1445
|
+
} = CatalogPlatformModel.SuccessResponse().validate(responseData, {
|
|
1451
1446
|
abortEarly: false,
|
|
1452
1447
|
allowUnknown: true,
|
|
1453
1448
|
});
|
|
@@ -1470,8 +1465,7 @@ class Catalog {
|
|
|
1470
1465
|
* @param {CatalogPlatformValidator.DeleteRealtimeInventoryParam} arg - Arg object
|
|
1471
1466
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1472
1467
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1473
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1474
|
-
* Success response
|
|
1468
|
+
* @returns {Promise<CatalogPlatformModel.InventoryUpdateResponse>} - Success response
|
|
1475
1469
|
* @name deleteRealtimeInventory
|
|
1476
1470
|
* @summary: Delete an inventory
|
|
1477
1471
|
* @description: You can use this API to delete inventory linked to a particular product size. When you make the API call, the inventory associated with that size will be removed as part of api process. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteRealtimeInventory/).
|
|
@@ -1533,10 +1527,10 @@ class Catalog {
|
|
|
1533
1527
|
|
|
1534
1528
|
const {
|
|
1535
1529
|
error: res_error,
|
|
1536
|
-
} = CatalogPlatformModel.
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
);
|
|
1530
|
+
} = CatalogPlatformModel.InventoryUpdateResponse().validate(responseData, {
|
|
1531
|
+
abortEarly: false,
|
|
1532
|
+
allowUnknown: true,
|
|
1533
|
+
});
|
|
1540
1534
|
|
|
1541
1535
|
if (res_error) {
|
|
1542
1536
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1556,9 +1550,8 @@ class Catalog {
|
|
|
1556
1550
|
* @param {CatalogPlatformValidator.DeleteSizeParam} arg - Arg object
|
|
1557
1551
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1558
1552
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1559
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1560
|
-
*
|
|
1561
|
-
*
|
|
1553
|
+
* @returns {Promise<CatalogPlatformModel.ProductSizeDeleteResponse>} -
|
|
1554
|
+
* Success response
|
|
1562
1555
|
* @name deleteSize
|
|
1563
1556
|
* @summary: Delete product size
|
|
1564
1557
|
* @description: Allows to delete size associated with product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSize/).
|
|
@@ -1614,7 +1607,7 @@ class Catalog {
|
|
|
1614
1607
|
|
|
1615
1608
|
const {
|
|
1616
1609
|
error: res_error,
|
|
1617
|
-
} = CatalogPlatformModel.
|
|
1610
|
+
} = CatalogPlatformModel.ProductSizeDeleteResponse().validate(
|
|
1618
1611
|
responseData,
|
|
1619
1612
|
{ abortEarly: false, allowUnknown: true }
|
|
1620
1613
|
);
|
|
@@ -1804,7 +1797,7 @@ class Catalog {
|
|
|
1804
1797
|
* @param {CatalogPlatformValidator.EditProductParam} arg - Arg object
|
|
1805
1798
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1806
1799
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1807
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1800
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
1808
1801
|
* @name editProduct
|
|
1809
1802
|
* @summary: Update a product
|
|
1810
1803
|
* @description: Modify the details and settings of an existing product in the catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/editProduct/).
|
|
@@ -1860,7 +1853,7 @@ class Catalog {
|
|
|
1860
1853
|
|
|
1861
1854
|
const {
|
|
1862
1855
|
error: res_error,
|
|
1863
|
-
} = CatalogPlatformModel.
|
|
1856
|
+
} = CatalogPlatformModel.SuccessResponse().validate(responseData, {
|
|
1864
1857
|
abortEarly: false,
|
|
1865
1858
|
allowUnknown: true,
|
|
1866
1859
|
});
|
|
@@ -2133,8 +2126,7 @@ class Catalog {
|
|
|
2133
2126
|
* @param {CatalogPlatformValidator.GetCategoryDataParam} arg - Arg object
|
|
2134
2127
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2135
2128
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2136
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
2137
|
-
* Success response
|
|
2129
|
+
* @returns {Promise<CatalogPlatformModel.SingleCategoryResponse>} - Success response
|
|
2138
2130
|
* @name getCategoryData
|
|
2139
2131
|
* @summary: Get category by uid
|
|
2140
2132
|
* @description: Retrieve detailed information about a specific category by its uid for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCategoryData/).
|
|
@@ -2190,10 +2182,10 @@ class Catalog {
|
|
|
2190
2182
|
|
|
2191
2183
|
const {
|
|
2192
2184
|
error: res_error,
|
|
2193
|
-
} = CatalogPlatformModel.
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
);
|
|
2185
|
+
} = CatalogPlatformModel.SingleCategoryResponse().validate(responseData, {
|
|
2186
|
+
abortEarly: false,
|
|
2187
|
+
allowUnknown: true,
|
|
2188
|
+
});
|
|
2197
2189
|
|
|
2198
2190
|
if (res_error) {
|
|
2199
2191
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2458,8 +2450,7 @@ class Catalog {
|
|
|
2458
2450
|
* @param {CatalogPlatformValidator.GetDepartmentDataParam} arg - Arg object
|
|
2459
2451
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2460
2452
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2461
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
2462
|
-
* Success response
|
|
2453
|
+
* @returns {Promise<CatalogPlatformModel.DepartmentsResponse>} - Success response
|
|
2463
2454
|
* @name getDepartmentData
|
|
2464
2455
|
* @summary: Get department by uid
|
|
2465
2456
|
* @description: Retrieve detailed information about a specific department for a specific company by uid. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDepartmentData/).
|
|
@@ -2515,10 +2506,10 @@ class Catalog {
|
|
|
2515
2506
|
|
|
2516
2507
|
const {
|
|
2517
2508
|
error: res_error,
|
|
2518
|
-
} = CatalogPlatformModel.
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
);
|
|
2509
|
+
} = CatalogPlatformModel.DepartmentsResponse().validate(responseData, {
|
|
2510
|
+
abortEarly: false,
|
|
2511
|
+
allowUnknown: true,
|
|
2512
|
+
});
|
|
2522
2513
|
|
|
2523
2514
|
if (res_error) {
|
|
2524
2515
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2615,8 +2606,7 @@ class Catalog {
|
|
|
2615
2606
|
* @param {CatalogPlatformValidator.GetInventoriesParam} arg - Arg object
|
|
2616
2607
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2617
2608
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2618
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
2619
|
-
* Success response
|
|
2609
|
+
* @returns {Promise<CatalogPlatformModel.GetInventoriesResponse>} - Success response
|
|
2620
2610
|
* @name getInventories
|
|
2621
2611
|
* @summary: List Inventory
|
|
2622
2612
|
* @description: Allows to get Inventories data for particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventories/).
|
|
@@ -2740,10 +2730,10 @@ class Catalog {
|
|
|
2740
2730
|
|
|
2741
2731
|
const {
|
|
2742
2732
|
error: res_error,
|
|
2743
|
-
} = CatalogPlatformModel.
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
);
|
|
2733
|
+
} = CatalogPlatformModel.GetInventoriesResponse().validate(responseData, {
|
|
2734
|
+
abortEarly: false,
|
|
2735
|
+
allowUnknown: true,
|
|
2736
|
+
});
|
|
2747
2737
|
|
|
2748
2738
|
if (res_error) {
|
|
2749
2739
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2786,7 +2776,7 @@ class Catalog {
|
|
|
2786
2776
|
* inventories less then or equal to provided date based on qty_type value.
|
|
2787
2777
|
* @param {string} [arg.sizeIdentifier] - Size Identifier (Seller Identifier
|
|
2788
2778
|
* or Primary Identifier) of which inventory is to get.
|
|
2789
|
-
* @returns {Paginator<CatalogPlatformModel.
|
|
2779
|
+
* @returns {Paginator<CatalogPlatformModel.GetInventoriesResponse>}
|
|
2790
2780
|
* @summary: List Inventory
|
|
2791
2781
|
* @description: Allows to get Inventories data for particular company.
|
|
2792
2782
|
*/
|
|
@@ -3473,8 +3463,7 @@ class Catalog {
|
|
|
3473
3463
|
* @param {CatalogPlatformValidator.GetOptimalLocationsParam} arg - Arg object
|
|
3474
3464
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3475
3465
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3476
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3477
|
-
* Success response
|
|
3466
|
+
* @returns {Promise<CatalogPlatformModel.StoreAssignResponse>} - Success response
|
|
3478
3467
|
* @name getOptimalLocations
|
|
3479
3468
|
* @summary: Get optimal locations
|
|
3480
3469
|
* @description: This API returns the optimal locations where inventory is available for the given articles. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getOptimalLocations/).
|
|
@@ -3530,10 +3519,10 @@ class Catalog {
|
|
|
3530
3519
|
|
|
3531
3520
|
const {
|
|
3532
3521
|
error: res_error,
|
|
3533
|
-
} = CatalogPlatformModel.
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
);
|
|
3522
|
+
} = CatalogPlatformModel.StoreAssignResponse().validate(responseData, {
|
|
3523
|
+
abortEarly: false,
|
|
3524
|
+
allowUnknown: true,
|
|
3525
|
+
});
|
|
3537
3526
|
|
|
3538
3527
|
if (res_error) {
|
|
3539
3528
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3553,8 +3542,7 @@ class Catalog {
|
|
|
3553
3542
|
* @param {CatalogPlatformValidator.GetProductParam} arg - Arg object
|
|
3554
3543
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3555
3544
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3556
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3557
|
-
* Success response
|
|
3545
|
+
* @returns {Promise<CatalogPlatformModel.SingleProductResponse>} - Success response
|
|
3558
3546
|
* @name getProduct
|
|
3559
3547
|
* @summary: Get a product
|
|
3560
3548
|
* @description: Retrieve data associated to a particular product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProduct/).
|
|
@@ -3614,10 +3602,10 @@ class Catalog {
|
|
|
3614
3602
|
|
|
3615
3603
|
const {
|
|
3616
3604
|
error: res_error,
|
|
3617
|
-
} = CatalogPlatformModel.
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
);
|
|
3605
|
+
} = CatalogPlatformModel.SingleProductResponse().validate(responseData, {
|
|
3606
|
+
abortEarly: false,
|
|
3607
|
+
allowUnknown: true,
|
|
3608
|
+
});
|
|
3621
3609
|
|
|
3622
3610
|
if (res_error) {
|
|
3623
3611
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3637,7 +3625,7 @@ class Catalog {
|
|
|
3637
3625
|
* @param {CatalogPlatformValidator.GetProductAssetsInBulkParam} arg - Arg object
|
|
3638
3626
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3639
3627
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3640
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3628
|
+
* @returns {Promise<CatalogPlatformModel.BulkAssetResponse>} - Success response
|
|
3641
3629
|
* @name getProductAssetsInBulk
|
|
3642
3630
|
* @summary: Get product assets
|
|
3643
3631
|
* @description: Helps to retrieve bulk asset jobs data associated to a particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductAssetsInBulk/).
|
|
@@ -3699,7 +3687,7 @@ class Catalog {
|
|
|
3699
3687
|
|
|
3700
3688
|
const {
|
|
3701
3689
|
error: res_error,
|
|
3702
|
-
} = CatalogPlatformModel.
|
|
3690
|
+
} = CatalogPlatformModel.BulkAssetResponse().validate(responseData, {
|
|
3703
3691
|
abortEarly: false,
|
|
3704
3692
|
allowUnknown: true,
|
|
3705
3693
|
});
|
|
@@ -3722,7 +3710,7 @@ class Catalog {
|
|
|
3722
3710
|
* @param {Object} arg - Arg object.
|
|
3723
3711
|
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
3724
3712
|
* page. Default is 12.
|
|
3725
|
-
* @returns {Paginator<CatalogPlatformModel.
|
|
3713
|
+
* @returns {Paginator<CatalogPlatformModel.BulkAssetResponse>}
|
|
3726
3714
|
* @summary: Get product assets
|
|
3727
3715
|
* @description: Helps to retrieve bulk asset jobs data associated to a particular company.
|
|
3728
3716
|
*/
|
|
@@ -3750,9 +3738,8 @@ class Catalog {
|
|
|
3750
3738
|
* @param {CatalogPlatformValidator.GetProductAttributesParam} arg - Arg object
|
|
3751
3739
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3752
3740
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3753
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3754
|
-
*
|
|
3755
|
-
*
|
|
3741
|
+
* @returns {Promise<CatalogPlatformModel.ProductAttributesResponse>} -
|
|
3742
|
+
* Success response
|
|
3756
3743
|
* @name getProductAttributes
|
|
3757
3744
|
* @summary: List product attributes
|
|
3758
3745
|
* @description: Retrieve attributes attached to products based on their L3 category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductAttributes/).
|
|
@@ -3812,7 +3799,7 @@ class Catalog {
|
|
|
3812
3799
|
|
|
3813
3800
|
const {
|
|
3814
3801
|
error: res_error,
|
|
3815
|
-
} = CatalogPlatformModel.
|
|
3802
|
+
} = CatalogPlatformModel.ProductAttributesResponse().validate(
|
|
3816
3803
|
responseData,
|
|
3817
3804
|
{ abortEarly: false, allowUnknown: true }
|
|
3818
3805
|
);
|
|
@@ -3953,7 +3940,7 @@ class Catalog {
|
|
|
3953
3940
|
* @param {CatalogPlatformValidator.GetProductBundleParam} arg - Arg object
|
|
3954
3941
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3955
3942
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3956
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3943
|
+
* @returns {Promise<CatalogPlatformModel.GetProductBundleListingResponse>}
|
|
3957
3944
|
* - Success response
|
|
3958
3945
|
*
|
|
3959
3946
|
* @name getProductBundle
|
|
@@ -3961,15 +3948,13 @@ class Catalog {
|
|
|
3961
3948
|
* @description: Retrieve a list of product bundles available in the catalog associated to a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBundle/).
|
|
3962
3949
|
*/
|
|
3963
3950
|
async getProductBundle(
|
|
3964
|
-
{ q, slug,
|
|
3951
|
+
{ q, slug, requestHeaders } = { requestHeaders: {} },
|
|
3965
3952
|
{ responseHeaders } = { responseHeaders: false }
|
|
3966
3953
|
) {
|
|
3967
3954
|
const { error } = CatalogPlatformValidator.getProductBundle().validate(
|
|
3968
3955
|
{
|
|
3969
3956
|
q,
|
|
3970
3957
|
slug,
|
|
3971
|
-
pageNo,
|
|
3972
|
-
pageSize,
|
|
3973
3958
|
},
|
|
3974
3959
|
{ abortEarly: false, allowUnknown: true }
|
|
3975
3960
|
);
|
|
@@ -3984,8 +3969,6 @@ class Catalog {
|
|
|
3984
3969
|
{
|
|
3985
3970
|
q,
|
|
3986
3971
|
slug,
|
|
3987
|
-
pageNo,
|
|
3988
|
-
pageSize,
|
|
3989
3972
|
},
|
|
3990
3973
|
{ abortEarly: false, allowUnknown: false }
|
|
3991
3974
|
);
|
|
@@ -3999,8 +3982,6 @@ class Catalog {
|
|
|
3999
3982
|
const query_params = {};
|
|
4000
3983
|
query_params["q"] = q;
|
|
4001
3984
|
query_params["slug"] = slug;
|
|
4002
|
-
query_params["page_no"] = pageNo;
|
|
4003
|
-
query_params["page_size"] = pageSize;
|
|
4004
3985
|
|
|
4005
3986
|
const xHeaders = {};
|
|
4006
3987
|
|
|
@@ -4021,7 +4002,7 @@ class Catalog {
|
|
|
4021
4002
|
|
|
4022
4003
|
const {
|
|
4023
4004
|
error: res_error,
|
|
4024
|
-
} = CatalogPlatformModel.
|
|
4005
|
+
} = CatalogPlatformModel.GetProductBundleListingResponse().validate(
|
|
4025
4006
|
responseData,
|
|
4026
4007
|
{ abortEarly: false, allowUnknown: true }
|
|
4027
4008
|
);
|
|
@@ -4044,9 +4025,8 @@ class Catalog {
|
|
|
4044
4025
|
* @param {CatalogPlatformValidator.GetProductBundleDetailParam} arg - Arg object
|
|
4045
4026
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4046
4027
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4047
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4048
|
-
*
|
|
4049
|
-
*
|
|
4028
|
+
* @returns {Promise<CatalogPlatformModel.GetProductBundleResponse>} -
|
|
4029
|
+
* Success response
|
|
4050
4030
|
* @name getProductBundleDetail
|
|
4051
4031
|
* @summary: Get product bundle
|
|
4052
4032
|
* @description: Retrieve detailed information about a specific product bundle associated to a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBundleDetail/).
|
|
@@ -4104,10 +4084,10 @@ class Catalog {
|
|
|
4104
4084
|
|
|
4105
4085
|
const {
|
|
4106
4086
|
error: res_error,
|
|
4107
|
-
} = CatalogPlatformModel.
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
);
|
|
4087
|
+
} = CatalogPlatformModel.GetProductBundleResponse().validate(responseData, {
|
|
4088
|
+
abortEarly: false,
|
|
4089
|
+
allowUnknown: true,
|
|
4090
|
+
});
|
|
4111
4091
|
|
|
4112
4092
|
if (res_error) {
|
|
4113
4093
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4127,9 +4107,8 @@ class Catalog {
|
|
|
4127
4107
|
* @param {CatalogPlatformValidator.GetProductExportJobsParam} arg - Arg object
|
|
4128
4108
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4129
4109
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4130
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4131
|
-
*
|
|
4132
|
-
*
|
|
4110
|
+
* @returns {Promise<CatalogPlatformModel.ProductDownloadsResponse>} -
|
|
4111
|
+
* Success response
|
|
4133
4112
|
* @name getProductExportJobs
|
|
4134
4113
|
* @summary: Get product export jobs
|
|
4135
4114
|
* @description: Get product export jobs specific to a company based on queries like query param, date range and status. View details including trigger data, task id , etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductExportJobs/).
|
|
@@ -4203,10 +4182,10 @@ class Catalog {
|
|
|
4203
4182
|
|
|
4204
4183
|
const {
|
|
4205
4184
|
error: res_error,
|
|
4206
|
-
} = CatalogPlatformModel.
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
);
|
|
4185
|
+
} = CatalogPlatformModel.ProductDownloadsResponse().validate(responseData, {
|
|
4186
|
+
abortEarly: false,
|
|
4187
|
+
allowUnknown: true,
|
|
4188
|
+
});
|
|
4210
4189
|
|
|
4211
4190
|
if (res_error) {
|
|
4212
4191
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4226,8 +4205,7 @@ class Catalog {
|
|
|
4226
4205
|
* @param {CatalogPlatformValidator.GetProductSizeParam} arg - Arg object
|
|
4227
4206
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4228
4207
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4229
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4230
|
-
* Success response
|
|
4208
|
+
* @returns {Promise<CatalogPlatformModel.ProductListingResponse>} - Success response
|
|
4231
4209
|
* @name getProductSize
|
|
4232
4210
|
* @summary: List product size
|
|
4233
4211
|
* @description: Retrieve data associated to a particular product size. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductSize/).
|
|
@@ -4294,10 +4272,10 @@ class Catalog {
|
|
|
4294
4272
|
|
|
4295
4273
|
const {
|
|
4296
4274
|
error: res_error,
|
|
4297
|
-
} = CatalogPlatformModel.
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
);
|
|
4275
|
+
} = CatalogPlatformModel.ProductListingResponse().validate(responseData, {
|
|
4276
|
+
abortEarly: false,
|
|
4277
|
+
allowUnknown: true,
|
|
4278
|
+
});
|
|
4301
4279
|
|
|
4302
4280
|
if (res_error) {
|
|
4303
4281
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4317,8 +4295,7 @@ class Catalog {
|
|
|
4317
4295
|
* @param {CatalogPlatformValidator.GetProductTagsParam} arg - Arg object
|
|
4318
4296
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4319
4297
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4320
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4321
|
-
* Success response
|
|
4298
|
+
* @returns {Promise<CatalogPlatformModel.ProductTagsViewResponse>} - Success response
|
|
4322
4299
|
* @name getProductTags
|
|
4323
4300
|
* @summary: List product tags
|
|
4324
4301
|
* @description: Retrieve tags data associated to a particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductTags/).
|
|
@@ -4370,10 +4347,10 @@ class Catalog {
|
|
|
4370
4347
|
|
|
4371
4348
|
const {
|
|
4372
4349
|
error: res_error,
|
|
4373
|
-
} = CatalogPlatformModel.
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
);
|
|
4350
|
+
} = CatalogPlatformModel.ProductTagsViewResponse().validate(responseData, {
|
|
4351
|
+
abortEarly: false,
|
|
4352
|
+
allowUnknown: true,
|
|
4353
|
+
});
|
|
4377
4354
|
|
|
4378
4355
|
if (res_error) {
|
|
4379
4356
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4675,8 +4652,7 @@ class Catalog {
|
|
|
4675
4652
|
* @param {CatalogPlatformValidator.GetSellerInsightsParam} arg - Arg object
|
|
4676
4653
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4677
4654
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4678
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4679
|
-
* Success response
|
|
4655
|
+
* @returns {Promise<CatalogPlatformModel.CrossSellingResponse>} - Success response
|
|
4680
4656
|
* @name getSellerInsights
|
|
4681
4657
|
* @summary: Get seller catalog counts
|
|
4682
4658
|
* @description: Retrieve the count of catalog related data for sellers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSellerInsights/).
|
|
@@ -4732,10 +4708,10 @@ class Catalog {
|
|
|
4732
4708
|
|
|
4733
4709
|
const {
|
|
4734
4710
|
error: res_error,
|
|
4735
|
-
} = CatalogPlatformModel.
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
);
|
|
4711
|
+
} = CatalogPlatformModel.CrossSellingResponse().validate(responseData, {
|
|
4712
|
+
abortEarly: false,
|
|
4713
|
+
allowUnknown: true,
|
|
4714
|
+
});
|
|
4739
4715
|
|
|
4740
4716
|
if (res_error) {
|
|
4741
4717
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4832,7 +4808,7 @@ class Catalog {
|
|
|
4832
4808
|
* @param {CatalogPlatformValidator.GetSizeGuideParam} arg - Arg object
|
|
4833
4809
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4834
4810
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4835
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4811
|
+
* @returns {Promise<CatalogPlatformModel.SizeGuideResponse>} - Success response
|
|
4836
4812
|
* @name getSizeGuide
|
|
4837
4813
|
* @summary: Get size guide
|
|
4838
4814
|
* @description: Retrieve data associated about a specific size guide. It contains meta deta like header values like for shoulder, head, etc. and measurement unit like cm and values contains sizes for the same. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSizeGuide/).
|
|
@@ -4888,7 +4864,7 @@ class Catalog {
|
|
|
4888
4864
|
|
|
4889
4865
|
const {
|
|
4890
4866
|
error: res_error,
|
|
4891
|
-
} = CatalogPlatformModel.
|
|
4867
|
+
} = CatalogPlatformModel.SizeGuideResponse().validate(responseData, {
|
|
4892
4868
|
abortEarly: false,
|
|
4893
4869
|
allowUnknown: true,
|
|
4894
4870
|
});
|
|
@@ -5124,8 +5100,7 @@ class Catalog {
|
|
|
5124
5100
|
* @param {CatalogPlatformValidator.GetVariantsOfProductsParam} arg - Arg object
|
|
5125
5101
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5126
5102
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5127
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
5128
|
-
* Success response
|
|
5103
|
+
* @returns {Promise<CatalogPlatformModel.ProductVariantsResponse>} - Success response
|
|
5129
5104
|
* @name getVariantsOfProducts
|
|
5130
5105
|
* @summary: Get variants
|
|
5131
5106
|
* @description: Retrieve variants of a specific product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getVariantsOfProducts/).
|
|
@@ -5191,10 +5166,10 @@ class Catalog {
|
|
|
5191
5166
|
|
|
5192
5167
|
const {
|
|
5193
5168
|
error: res_error,
|
|
5194
|
-
} = CatalogPlatformModel.
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
);
|
|
5169
|
+
} = CatalogPlatformModel.ProductVariantsResponse().validate(responseData, {
|
|
5170
|
+
abortEarly: false,
|
|
5171
|
+
allowUnknown: true,
|
|
5172
|
+
});
|
|
5198
5173
|
|
|
5199
5174
|
if (res_error) {
|
|
5200
5175
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -5216,7 +5191,7 @@ class Catalog {
|
|
|
5216
5191
|
* @param {string} arg.variantType - Get multiple products filtered by variant type
|
|
5217
5192
|
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
5218
5193
|
* page. Default is 10.
|
|
5219
|
-
* @returns {Paginator<CatalogPlatformModel.
|
|
5194
|
+
* @returns {Paginator<CatalogPlatformModel.ProductVariantsResponse>}
|
|
5220
5195
|
* @summary: Get variants
|
|
5221
5196
|
* @description: Retrieve variants of a specific product.
|
|
5222
5197
|
*/
|
|
@@ -5246,7 +5221,7 @@ class Catalog {
|
|
|
5246
5221
|
* @param {CatalogPlatformValidator.ListCategoriesParam} arg - Arg object
|
|
5247
5222
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5248
5223
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5249
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
5224
|
+
* @returns {Promise<CatalogPlatformModel.CategoryResponse>} - Success response
|
|
5250
5225
|
* @name listCategories
|
|
5251
5226
|
* @summary: List categories
|
|
5252
5227
|
* @description: Retrieve a list of categories data associated to a specific company and queries passed in the request. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listCategories/).
|
|
@@ -5323,7 +5298,7 @@ class Catalog {
|
|
|
5323
5298
|
|
|
5324
5299
|
const {
|
|
5325
5300
|
error: res_error,
|
|
5326
|
-
} = CatalogPlatformModel.
|
|
5301
|
+
} = CatalogPlatformModel.CategoryResponse().validate(responseData, {
|
|
5327
5302
|
abortEarly: false,
|
|
5328
5303
|
allowUnknown: true,
|
|
5329
5304
|
});
|
|
@@ -5351,7 +5326,7 @@ class Catalog {
|
|
|
5351
5326
|
* page. Default is 10.
|
|
5352
5327
|
* @param {number[]} [arg.uids] - Get multiple categories filtered by category uids.
|
|
5353
5328
|
* @param {string} [arg.slug] - Get category by slug
|
|
5354
|
-
* @returns {Paginator<CatalogPlatformModel.
|
|
5329
|
+
* @returns {Paginator<CatalogPlatformModel.CategoryResponse>}
|
|
5355
5330
|
* @summary: List categories
|
|
5356
5331
|
* @description: Retrieve a list of categories data associated to a specific company and queries passed in the request.
|
|
5357
5332
|
*/
|
|
@@ -5384,8 +5359,7 @@ class Catalog {
|
|
|
5384
5359
|
* @param {CatalogPlatformValidator.ListDepartmentsDataParam} arg - Arg object
|
|
5385
5360
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5386
5361
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5387
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
5388
|
-
* Success response
|
|
5362
|
+
* @returns {Promise<CatalogPlatformModel.DepartmentsResponse>} - Success response
|
|
5389
5363
|
* @name listDepartmentsData
|
|
5390
5364
|
* @summary: List company department
|
|
5391
5365
|
* @description: Allows you to list all departments data for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listDepartmentsData/).
|
|
@@ -5469,10 +5443,10 @@ class Catalog {
|
|
|
5469
5443
|
|
|
5470
5444
|
const {
|
|
5471
5445
|
error: res_error,
|
|
5472
|
-
} = CatalogPlatformModel.
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
);
|
|
5446
|
+
} = CatalogPlatformModel.DepartmentsResponse().validate(responseData, {
|
|
5447
|
+
abortEarly: false,
|
|
5448
|
+
allowUnknown: true,
|
|
5449
|
+
});
|
|
5476
5450
|
|
|
5477
5451
|
if (res_error) {
|
|
5478
5452
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -5500,7 +5474,7 @@ class Catalog {
|
|
|
5500
5474
|
* @param {boolean} [arg.isActive] - Can query for departments based on
|
|
5501
5475
|
* whether they are active or inactive.
|
|
5502
5476
|
* @param {string} [arg.slug] - Can filter by slug
|
|
5503
|
-
* @returns {Paginator<CatalogPlatformModel.
|
|
5477
|
+
* @returns {Paginator<CatalogPlatformModel.DepartmentsResponse>}
|
|
5504
5478
|
* @summary: List company department
|
|
5505
5479
|
* @description: Allows you to list all departments data for a specific company.
|
|
5506
5480
|
*/
|
|
@@ -5540,7 +5514,7 @@ class Catalog {
|
|
|
5540
5514
|
* @param {CatalogPlatformValidator.ListHSNCodesParam} arg - Arg object
|
|
5541
5515
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5542
5516
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5543
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
5517
|
+
* @returns {Promise<CatalogPlatformModel.HSNCodesResponse>} - Success response
|
|
5544
5518
|
* @name listHSNCodes
|
|
5545
5519
|
* @summary: List HSN codes
|
|
5546
5520
|
* @description: Retrieve a list of Harmonized System Nomenclature (HSN) codes for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listHSNCodes/).
|
|
@@ -5592,7 +5566,7 @@ class Catalog {
|
|
|
5592
5566
|
|
|
5593
5567
|
const {
|
|
5594
5568
|
error: res_error,
|
|
5595
|
-
} = CatalogPlatformModel.
|
|
5569
|
+
} = CatalogPlatformModel.HSNCodesResponse().validate(responseData, {
|
|
5596
5570
|
abortEarly: false,
|
|
5597
5571
|
allowUnknown: true,
|
|
5598
5572
|
});
|
|
@@ -5615,7 +5589,7 @@ class Catalog {
|
|
|
5615
5589
|
* @param {CatalogPlatformValidator.ListInventoryExportParam} arg - Arg object
|
|
5616
5590
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5617
5591
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5618
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
5592
|
+
* @returns {Promise<CatalogPlatformModel.InventoryExportJobListResponse>}
|
|
5619
5593
|
* - Success response
|
|
5620
5594
|
*
|
|
5621
5595
|
* @name listInventoryExport
|
|
@@ -5691,7 +5665,7 @@ class Catalog {
|
|
|
5691
5665
|
|
|
5692
5666
|
const {
|
|
5693
5667
|
error: res_error,
|
|
5694
|
-
} = CatalogPlatformModel.
|
|
5668
|
+
} = CatalogPlatformModel.InventoryExportJobListResponse().validate(
|
|
5695
5669
|
responseData,
|
|
5696
5670
|
{ abortEarly: false, allowUnknown: true }
|
|
5697
5671
|
);
|
|
@@ -5714,7 +5688,7 @@ class Catalog {
|
|
|
5714
5688
|
* @param {CatalogPlatformValidator.ListProductTemplateParam} arg - Arg object
|
|
5715
5689
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5716
5690
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5717
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
5691
|
+
* @returns {Promise<CatalogPlatformModel.TemplatesResponse>} - Success response
|
|
5718
5692
|
* @name listProductTemplate
|
|
5719
5693
|
* @summary: List product templates
|
|
5720
5694
|
* @description: Allows you to list all product templates for a specific company. also can filter by department. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listProductTemplate/).
|
|
@@ -5771,7 +5745,7 @@ class Catalog {
|
|
|
5771
5745
|
|
|
5772
5746
|
const {
|
|
5773
5747
|
error: res_error,
|
|
5774
|
-
} = CatalogPlatformModel.
|
|
5748
|
+
} = CatalogPlatformModel.TemplatesResponse().validate(responseData, {
|
|
5775
5749
|
abortEarly: false,
|
|
5776
5750
|
allowUnknown: true,
|
|
5777
5751
|
});
|
|
@@ -5796,7 +5770,7 @@ class Catalog {
|
|
|
5796
5770
|
*
|
|
5797
5771
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5798
5772
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5799
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
5773
|
+
* @returns {Promise<CatalogPlatformModel.ProdcutTemplateCategoriesResponse>}
|
|
5800
5774
|
* - Success response
|
|
5801
5775
|
*
|
|
5802
5776
|
* @name listProductTemplateCategories
|
|
@@ -5860,7 +5834,7 @@ class Catalog {
|
|
|
5860
5834
|
|
|
5861
5835
|
const {
|
|
5862
5836
|
error: res_error,
|
|
5863
|
-
} = CatalogPlatformModel.
|
|
5837
|
+
} = CatalogPlatformModel.ProdcutTemplateCategoriesResponse().validate(
|
|
5864
5838
|
responseData,
|
|
5865
5839
|
{ abortEarly: false, allowUnknown: true }
|
|
5866
5840
|
);
|
|
@@ -5885,9 +5859,8 @@ class Catalog {
|
|
|
5885
5859
|
*
|
|
5886
5860
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5887
5861
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5888
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
5889
|
-
*
|
|
5890
|
-
*
|
|
5862
|
+
* @returns {Promise<CatalogPlatformModel.ProductDownloadsResponse>} -
|
|
5863
|
+
* Success response
|
|
5891
5864
|
* @name listProductTemplateExportDetails
|
|
5892
5865
|
* @summary: List export product templates
|
|
5893
5866
|
* @description: Retrieve export details related to product templates for a specific company. Can view details including trigger data, task id , etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listProductTemplateExportDetails/).
|
|
@@ -5941,10 +5914,10 @@ class Catalog {
|
|
|
5941
5914
|
|
|
5942
5915
|
const {
|
|
5943
5916
|
error: res_error,
|
|
5944
|
-
} = CatalogPlatformModel.
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
);
|
|
5917
|
+
} = CatalogPlatformModel.ProductDownloadsResponse().validate(responseData, {
|
|
5918
|
+
abortEarly: false,
|
|
5919
|
+
allowUnknown: true,
|
|
5920
|
+
});
|
|
5948
5921
|
|
|
5949
5922
|
if (res_error) {
|
|
5950
5923
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -6134,8 +6107,7 @@ class Catalog {
|
|
|
6134
6107
|
* @param {CatalogPlatformValidator.UpdateInventoriesParam} arg - Arg object
|
|
6135
6108
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6136
6109
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6137
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
6138
|
-
* Success response
|
|
6110
|
+
* @returns {Promise<CatalogPlatformModel.InventoryUpdateResponse>} - Success response
|
|
6139
6111
|
* @name updateInventories
|
|
6140
6112
|
* @summary: Update inventories
|
|
6141
6113
|
* @description: Allows to add Inventory for particular size and selling location. for associated companies - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateInventories/).
|
|
@@ -6191,10 +6163,10 @@ class Catalog {
|
|
|
6191
6163
|
|
|
6192
6164
|
const {
|
|
6193
6165
|
error: res_error,
|
|
6194
|
-
} = CatalogPlatformModel.
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
);
|
|
6166
|
+
} = CatalogPlatformModel.InventoryUpdateResponse().validate(responseData, {
|
|
6167
|
+
abortEarly: false,
|
|
6168
|
+
allowUnknown: true,
|
|
6169
|
+
});
|
|
6198
6170
|
|
|
6199
6171
|
if (res_error) {
|
|
6200
6172
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -6214,7 +6186,7 @@ class Catalog {
|
|
|
6214
6186
|
* @param {CatalogPlatformValidator.UpdateMarketplaceOptinParam} arg - Arg object
|
|
6215
6187
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6216
6188
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6217
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
6189
|
+
* @returns {Promise<CatalogPlatformModel.UpdateMarketplaceOptinResponse>}
|
|
6218
6190
|
* - Success response
|
|
6219
6191
|
*
|
|
6220
6192
|
* @name updateMarketplaceOptin
|
|
@@ -6276,7 +6248,7 @@ class Catalog {
|
|
|
6276
6248
|
|
|
6277
6249
|
const {
|
|
6278
6250
|
error: res_error,
|
|
6279
|
-
} = CatalogPlatformModel.
|
|
6251
|
+
} = CatalogPlatformModel.UpdateMarketplaceOptinResponse().validate(
|
|
6280
6252
|
responseData,
|
|
6281
6253
|
{ abortEarly: false, allowUnknown: true }
|
|
6282
6254
|
);
|
|
@@ -6299,7 +6271,7 @@ class Catalog {
|
|
|
6299
6271
|
* @param {CatalogPlatformValidator.UpdateProductBundleParam} arg - Arg object
|
|
6300
6272
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6301
6273
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6302
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
6274
|
+
* @returns {Promise<CatalogPlatformModel.GetProductBundleCreateResponse>}
|
|
6303
6275
|
* - Success response
|
|
6304
6276
|
*
|
|
6305
6277
|
* @name updateProductBundle
|
|
@@ -6359,7 +6331,7 @@ class Catalog {
|
|
|
6359
6331
|
|
|
6360
6332
|
const {
|
|
6361
6333
|
error: res_error,
|
|
6362
|
-
} = CatalogPlatformModel.
|
|
6334
|
+
} = CatalogPlatformModel.GetProductBundleCreateResponse().validate(
|
|
6363
6335
|
responseData,
|
|
6364
6336
|
{ abortEarly: false, allowUnknown: true }
|
|
6365
6337
|
);
|
|
@@ -6382,8 +6354,7 @@ class Catalog {
|
|
|
6382
6354
|
* @param {CatalogPlatformValidator.UpdateRealtimeInventoryParam} arg - Arg object
|
|
6383
6355
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6384
6356
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6385
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
6386
|
-
* Success response
|
|
6357
|
+
* @returns {Promise<CatalogPlatformModel.InventoryUpdateResponse>} - Success response
|
|
6387
6358
|
* @name updateRealtimeInventory
|
|
6388
6359
|
* @summary: Update an inventory
|
|
6389
6360
|
* @description: enables you to add inventory for a specific size and selling location (store). The inventory updates will be reflected instantly after the API call. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateRealtimeInventory/).
|
|
@@ -6445,10 +6416,10 @@ class Catalog {
|
|
|
6445
6416
|
|
|
6446
6417
|
const {
|
|
6447
6418
|
error: res_error,
|
|
6448
|
-
} = CatalogPlatformModel.
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
);
|
|
6419
|
+
} = CatalogPlatformModel.InventoryUpdateResponse().validate(responseData, {
|
|
6420
|
+
abortEarly: false,
|
|
6421
|
+
allowUnknown: true,
|
|
6422
|
+
});
|
|
6452
6423
|
|
|
6453
6424
|
if (res_error) {
|
|
6454
6425
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -6468,7 +6439,7 @@ class Catalog {
|
|
|
6468
6439
|
* @param {CatalogPlatformValidator.UpdateSizeGuideParam} arg - Arg object
|
|
6469
6440
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6470
6441
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6471
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
6442
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
6472
6443
|
* @name updateSizeGuide
|
|
6473
6444
|
* @summary: Update size guide
|
|
6474
6445
|
* @description: Allows to edit a specific size guide. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSizeGuide/).
|
|
@@ -6526,7 +6497,7 @@ class Catalog {
|
|
|
6526
6497
|
|
|
6527
6498
|
const {
|
|
6528
6499
|
error: res_error,
|
|
6529
|
-
} = CatalogPlatformModel.
|
|
6500
|
+
} = CatalogPlatformModel.SuccessResponse().validate(responseData, {
|
|
6530
6501
|
abortEarly: false,
|
|
6531
6502
|
allowUnknown: true,
|
|
6532
6503
|
});
|
|
@@ -6549,7 +6520,7 @@ class Catalog {
|
|
|
6549
6520
|
* @param {CatalogPlatformValidator.UploadBulkProductsParam} arg - Arg object
|
|
6550
6521
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6551
6522
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6552
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
6523
|
+
* @returns {Promise<CatalogPlatformModel.BulkResponse>} - Success response
|
|
6553
6524
|
* @name uploadBulkProducts
|
|
6554
6525
|
* @summary: Upload bulk products
|
|
6555
6526
|
* @description: Users can create multiple products by providing the required information needed for product creation in a CSV or Excel file format. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/uploadBulkProducts/).
|
|
@@ -6611,7 +6582,7 @@ class Catalog {
|
|
|
6611
6582
|
|
|
6612
6583
|
const {
|
|
6613
6584
|
error: res_error,
|
|
6614
|
-
} = CatalogPlatformModel.
|
|
6585
|
+
} = CatalogPlatformModel.BulkResponse().validate(responseData, {
|
|
6615
6586
|
abortEarly: false,
|
|
6616
6587
|
allowUnknown: true,
|
|
6617
6588
|
});
|
|
@@ -6630,102 +6601,12 @@ class Catalog {
|
|
|
6630
6601
|
return response;
|
|
6631
6602
|
}
|
|
6632
6603
|
|
|
6633
|
-
/**
|
|
6634
|
-
* @param {CatalogPlatformValidator.ValidateProductGlobalTemplateParam} arg
|
|
6635
|
-
* - Arg object
|
|
6636
|
-
*
|
|
6637
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6638
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6639
|
-
* @returns {Promise<CatalogPlatformModel.TemplatesGlobalValidationResponseSchema>}
|
|
6640
|
-
* - Success response
|
|
6641
|
-
*
|
|
6642
|
-
* @name validateProductGlobalTemplate
|
|
6643
|
-
* @summary: Validate product template
|
|
6644
|
-
* @description: Allows you to list all product templates global validation values for all the fields present in the database for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductGlobalTemplate/).
|
|
6645
|
-
*/
|
|
6646
|
-
async validateProductGlobalTemplate(
|
|
6647
|
-
{ itemType, bulk, requestHeaders } = { requestHeaders: {} },
|
|
6648
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
6649
|
-
) {
|
|
6650
|
-
const {
|
|
6651
|
-
error,
|
|
6652
|
-
} = CatalogPlatformValidator.validateProductGlobalTemplate().validate(
|
|
6653
|
-
{
|
|
6654
|
-
itemType,
|
|
6655
|
-
bulk,
|
|
6656
|
-
},
|
|
6657
|
-
{ abortEarly: false, allowUnknown: true }
|
|
6658
|
-
);
|
|
6659
|
-
if (error) {
|
|
6660
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
6661
|
-
}
|
|
6662
|
-
|
|
6663
|
-
// Showing warrnings if extra unknown parameters are found
|
|
6664
|
-
const {
|
|
6665
|
-
error: warrning,
|
|
6666
|
-
} = CatalogPlatformValidator.validateProductGlobalTemplate().validate(
|
|
6667
|
-
{
|
|
6668
|
-
itemType,
|
|
6669
|
-
bulk,
|
|
6670
|
-
},
|
|
6671
|
-
{ abortEarly: false, allowUnknown: false }
|
|
6672
|
-
);
|
|
6673
|
-
if (warrning) {
|
|
6674
|
-
Logger({
|
|
6675
|
-
level: "WARN",
|
|
6676
|
-
message: `Parameter Validation warrnings for platform > Catalog > validateProductGlobalTemplate \n ${warrning}`,
|
|
6677
|
-
});
|
|
6678
|
-
}
|
|
6679
|
-
|
|
6680
|
-
const query_params = {};
|
|
6681
|
-
query_params["item_type"] = itemType;
|
|
6682
|
-
query_params["bulk"] = bulk;
|
|
6683
|
-
|
|
6684
|
-
const xHeaders = {};
|
|
6685
|
-
|
|
6686
|
-
const response = await PlatformAPIClient.execute(
|
|
6687
|
-
this.config,
|
|
6688
|
-
"get",
|
|
6689
|
-
`/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/validation/schema/`,
|
|
6690
|
-
query_params,
|
|
6691
|
-
undefined,
|
|
6692
|
-
{ ...xHeaders, ...requestHeaders },
|
|
6693
|
-
{ responseHeaders }
|
|
6694
|
-
);
|
|
6695
|
-
|
|
6696
|
-
let responseData = response;
|
|
6697
|
-
if (responseHeaders) {
|
|
6698
|
-
responseData = response[0];
|
|
6699
|
-
}
|
|
6700
|
-
|
|
6701
|
-
const {
|
|
6702
|
-
error: res_error,
|
|
6703
|
-
} = CatalogPlatformModel.TemplatesGlobalValidationResponseSchema().validate(
|
|
6704
|
-
responseData,
|
|
6705
|
-
{ abortEarly: false, allowUnknown: true }
|
|
6706
|
-
);
|
|
6707
|
-
|
|
6708
|
-
if (res_error) {
|
|
6709
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
6710
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6711
|
-
} else {
|
|
6712
|
-
Logger({
|
|
6713
|
-
level: "WARN",
|
|
6714
|
-
message: `Response Validation Warnings for platform > Catalog > validateProductGlobalTemplate \n ${res_error}`,
|
|
6715
|
-
});
|
|
6716
|
-
}
|
|
6717
|
-
}
|
|
6718
|
-
|
|
6719
|
-
return response;
|
|
6720
|
-
}
|
|
6721
|
-
|
|
6722
6604
|
/**
|
|
6723
6605
|
* @param {CatalogPlatformValidator.ValidateProductTemplateParam} arg - Arg object
|
|
6724
6606
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6725
6607
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6726
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
6727
|
-
*
|
|
6728
|
-
*
|
|
6608
|
+
* @returns {Promise<CatalogPlatformModel.TemplatesValidationResponse>} -
|
|
6609
|
+
* Success response
|
|
6729
6610
|
* @name validateProductTemplate
|
|
6730
6611
|
* @summary: Validate product template
|
|
6731
6612
|
* @description: Allows you to list all product templates validation values by its slug for all the fields present in the database for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductTemplate/).
|
|
@@ -6789,7 +6670,7 @@ class Catalog {
|
|
|
6789
6670
|
|
|
6790
6671
|
const {
|
|
6791
6672
|
error: res_error,
|
|
6792
|
-
} = CatalogPlatformModel.
|
|
6673
|
+
} = CatalogPlatformModel.TemplatesValidationResponse().validate(
|
|
6793
6674
|
responseData,
|
|
6794
6675
|
{ abortEarly: false, allowUnknown: true }
|
|
6795
6676
|
);
|
|
@@ -6814,9 +6695,8 @@ class Catalog {
|
|
|
6814
6695
|
*
|
|
6815
6696
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6816
6697
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6817
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
6818
|
-
*
|
|
6819
|
-
*
|
|
6698
|
+
* @returns {Promise<CatalogPlatformModel.InventoryValidationResponse>} -
|
|
6699
|
+
* Success response
|
|
6820
6700
|
* @name validateProductTemplateSchema
|
|
6821
6701
|
* @summary: Validate product template schema
|
|
6822
6702
|
* @description: Allows you to list all product templates validation values for all the fields present in the database for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductTemplateSchema/).
|
|
@@ -6875,7 +6755,7 @@ class Catalog {
|
|
|
6875
6755
|
|
|
6876
6756
|
const {
|
|
6877
6757
|
error: res_error,
|
|
6878
|
-
} = CatalogPlatformModel.
|
|
6758
|
+
} = CatalogPlatformModel.InventoryValidationResponse().validate(
|
|
6879
6759
|
responseData,
|
|
6880
6760
|
{ abortEarly: false, allowUnknown: true }
|
|
6881
6761
|
);
|