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