@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
|
@@ -266,25 +266,14 @@ class Catalog {
|
|
|
266
266
|
* @param {CatalogPlatformApplicationValidator.CreateCollectionParam} arg - Arg object
|
|
267
267
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
268
268
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
269
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
270
|
-
*
|
|
271
|
-
*
|
|
269
|
+
* @returns {Promise<CatalogPlatformModel.CollectionCreateResponse>} -
|
|
270
|
+
* Success response
|
|
272
271
|
* @name createCollection
|
|
273
272
|
* @summary: Create a collection
|
|
274
273
|
* @description: Create a collection for a sales channel linked to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createCollection/).
|
|
275
274
|
*/
|
|
276
275
|
async createCollection(
|
|
277
|
-
{
|
|
278
|
-
body,
|
|
279
|
-
q,
|
|
280
|
-
scheduleStatus,
|
|
281
|
-
type,
|
|
282
|
-
tags,
|
|
283
|
-
isActive,
|
|
284
|
-
pageNo,
|
|
285
|
-
pageSize,
|
|
286
|
-
requestHeaders,
|
|
287
|
-
} = { requestHeaders: {} },
|
|
276
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
288
277
|
{ responseHeaders } = { responseHeaders: false }
|
|
289
278
|
) {
|
|
290
279
|
const {
|
|
@@ -292,13 +281,6 @@ class Catalog {
|
|
|
292
281
|
} = CatalogPlatformApplicationValidator.createCollection().validate(
|
|
293
282
|
{
|
|
294
283
|
body,
|
|
295
|
-
q,
|
|
296
|
-
scheduleStatus,
|
|
297
|
-
type,
|
|
298
|
-
tags,
|
|
299
|
-
isActive,
|
|
300
|
-
pageNo,
|
|
301
|
-
pageSize,
|
|
302
284
|
},
|
|
303
285
|
{ abortEarly: false, allowUnknown: true }
|
|
304
286
|
);
|
|
@@ -312,13 +294,6 @@ class Catalog {
|
|
|
312
294
|
} = CatalogPlatformApplicationValidator.createCollection().validate(
|
|
313
295
|
{
|
|
314
296
|
body,
|
|
315
|
-
q,
|
|
316
|
-
scheduleStatus,
|
|
317
|
-
type,
|
|
318
|
-
tags,
|
|
319
|
-
isActive,
|
|
320
|
-
pageNo,
|
|
321
|
-
pageSize,
|
|
322
297
|
},
|
|
323
298
|
{ abortEarly: false, allowUnknown: false }
|
|
324
299
|
);
|
|
@@ -330,13 +305,6 @@ class Catalog {
|
|
|
330
305
|
}
|
|
331
306
|
|
|
332
307
|
const query_params = {};
|
|
333
|
-
query_params["q"] = q;
|
|
334
|
-
query_params["schedule_status"] = scheduleStatus;
|
|
335
|
-
query_params["type"] = type;
|
|
336
|
-
query_params["tags"] = tags;
|
|
337
|
-
query_params["is_active"] = isActive;
|
|
338
|
-
query_params["page_no"] = pageNo;
|
|
339
|
-
query_params["page_size"] = pageSize;
|
|
340
308
|
|
|
341
309
|
const response = await PlatformAPIClient.execute(
|
|
342
310
|
this.config,
|
|
@@ -355,10 +323,10 @@ class Catalog {
|
|
|
355
323
|
|
|
356
324
|
const {
|
|
357
325
|
error: res_error,
|
|
358
|
-
} = CatalogPlatformModel.
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
);
|
|
326
|
+
} = CatalogPlatformModel.CollectionCreateResponse().validate(responseData, {
|
|
327
|
+
abortEarly: false,
|
|
328
|
+
allowUnknown: true,
|
|
329
|
+
});
|
|
362
330
|
|
|
363
331
|
if (res_error) {
|
|
364
332
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -546,7 +514,7 @@ class Catalog {
|
|
|
546
514
|
*
|
|
547
515
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
548
516
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
549
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
517
|
+
* @returns {Promise<CatalogPlatformModel.CreateAutocompleteWordsResponse>}
|
|
550
518
|
* - Success response
|
|
551
519
|
*
|
|
552
520
|
* @name createCustomAutocompleteRule
|
|
@@ -604,7 +572,7 @@ class Catalog {
|
|
|
604
572
|
|
|
605
573
|
const {
|
|
606
574
|
error: res_error,
|
|
607
|
-
} = CatalogPlatformModel.
|
|
575
|
+
} = CatalogPlatformModel.CreateAutocompleteWordsResponse().validate(
|
|
608
576
|
responseData,
|
|
609
577
|
{ abortEarly: false, allowUnknown: true }
|
|
610
578
|
);
|
|
@@ -876,7 +844,7 @@ class Catalog {
|
|
|
876
844
|
*
|
|
877
845
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
878
846
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
879
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
847
|
+
* @returns {Promise<CatalogPlatformModel.CreateSearchConfigurationResponse>}
|
|
880
848
|
* - Success response
|
|
881
849
|
*
|
|
882
850
|
* @name createSearchConfiguration
|
|
@@ -934,7 +902,7 @@ class Catalog {
|
|
|
934
902
|
|
|
935
903
|
const {
|
|
936
904
|
error: res_error,
|
|
937
|
-
} = CatalogPlatformModel.
|
|
905
|
+
} = CatalogPlatformModel.CreateSearchConfigurationResponse().validate(
|
|
938
906
|
responseData,
|
|
939
907
|
{ abortEarly: false, allowUnknown: true }
|
|
940
908
|
);
|
|
@@ -959,7 +927,7 @@ class Catalog {
|
|
|
959
927
|
*
|
|
960
928
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
961
929
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
962
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
930
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
963
931
|
* @name deleteAppCategoryReturnConfiguration
|
|
964
932
|
* @summary: Delete product return configuration
|
|
965
933
|
* @description: Delete Category level sales channel Return Configuration setttings - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteAppCategoryReturnConfiguration/).
|
|
@@ -1015,7 +983,7 @@ class Catalog {
|
|
|
1015
983
|
|
|
1016
984
|
const {
|
|
1017
985
|
error: res_error,
|
|
1018
|
-
} = CatalogPlatformModel.
|
|
986
|
+
} = CatalogPlatformModel.SuccessResponse().validate(responseData, {
|
|
1019
987
|
abortEarly: false,
|
|
1020
988
|
allowUnknown: true,
|
|
1021
989
|
});
|
|
@@ -1040,7 +1008,7 @@ class Catalog {
|
|
|
1040
1008
|
*
|
|
1041
1009
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1042
1010
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1043
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1011
|
+
* @returns {Promise<CatalogPlatformModel.DeleteResponse>} - Success response
|
|
1044
1012
|
* @name deleteAutocompleteKeyword
|
|
1045
1013
|
* @summary: Delete autocomplete keyword
|
|
1046
1014
|
* @description: Delete custom autocomplete keyword configurations for a specific sales channel by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteAutocompleteKeyword/).
|
|
@@ -1096,7 +1064,7 @@ class Catalog {
|
|
|
1096
1064
|
|
|
1097
1065
|
const {
|
|
1098
1066
|
error: res_error,
|
|
1099
|
-
} = CatalogPlatformModel.
|
|
1067
|
+
} = CatalogPlatformModel.DeleteResponse().validate(responseData, {
|
|
1100
1068
|
abortEarly: false,
|
|
1101
1069
|
allowUnknown: true,
|
|
1102
1070
|
});
|
|
@@ -1202,8 +1170,7 @@ class Catalog {
|
|
|
1202
1170
|
*
|
|
1203
1171
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1204
1172
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1205
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1206
|
-
* Success response
|
|
1173
|
+
* @returns {Promise<CatalogPlatformModel.ConfigSuccessResponse>} - Success response
|
|
1207
1174
|
* @name deleteGroupConfiguration
|
|
1208
1175
|
* @summary: Delete group configuration
|
|
1209
1176
|
* @description: Delete group configurations by its slug for a specific config_type for a company and an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteGroupConfiguration/).
|
|
@@ -1261,10 +1228,10 @@ class Catalog {
|
|
|
1261
1228
|
|
|
1262
1229
|
const {
|
|
1263
1230
|
error: res_error,
|
|
1264
|
-
} = CatalogPlatformModel.
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
);
|
|
1231
|
+
} = CatalogPlatformModel.ConfigSuccessResponse().validate(responseData, {
|
|
1232
|
+
abortEarly: false,
|
|
1233
|
+
allowUnknown: true,
|
|
1234
|
+
});
|
|
1268
1235
|
|
|
1269
1236
|
if (res_error) {
|
|
1270
1237
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1286,8 +1253,7 @@ class Catalog {
|
|
|
1286
1253
|
*
|
|
1287
1254
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1288
1255
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1289
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1290
|
-
* Success response
|
|
1256
|
+
* @returns {Promise<CatalogPlatformModel.ConfigSuccessResponse>} - Success response
|
|
1291
1257
|
* @name deleteListingConfiguration
|
|
1292
1258
|
* @summary: Delete listing configuration
|
|
1293
1259
|
* @description: Remove a specific product listing configuration by its config_id for a specific config_type for a company and an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteListingConfiguration/).
|
|
@@ -1345,10 +1311,10 @@ class Catalog {
|
|
|
1345
1311
|
|
|
1346
1312
|
const {
|
|
1347
1313
|
error: res_error,
|
|
1348
|
-
} = CatalogPlatformModel.
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
);
|
|
1314
|
+
} = CatalogPlatformModel.ConfigSuccessResponse().validate(responseData, {
|
|
1315
|
+
abortEarly: false,
|
|
1316
|
+
allowUnknown: true,
|
|
1317
|
+
});
|
|
1352
1318
|
|
|
1353
1319
|
if (res_error) {
|
|
1354
1320
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1370,7 +1336,7 @@ class Catalog {
|
|
|
1370
1336
|
*
|
|
1371
1337
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1372
1338
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1373
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1339
|
+
* @returns {Promise<CatalogPlatformModel.DeleteSearchConfigurationResponse>}
|
|
1374
1340
|
* - Success response
|
|
1375
1341
|
*
|
|
1376
1342
|
* @name deleteSearchConfiguration
|
|
@@ -1424,7 +1390,7 @@ class Catalog {
|
|
|
1424
1390
|
|
|
1425
1391
|
const {
|
|
1426
1392
|
error: res_error,
|
|
1427
|
-
} = CatalogPlatformModel.
|
|
1393
|
+
} = CatalogPlatformModel.DeleteSearchConfigurationResponse().validate(
|
|
1428
1394
|
responseData,
|
|
1429
1395
|
{ abortEarly: false, allowUnknown: true }
|
|
1430
1396
|
);
|
|
@@ -1449,7 +1415,7 @@ class Catalog {
|
|
|
1449
1415
|
*
|
|
1450
1416
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1451
1417
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1452
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1418
|
+
* @returns {Promise<CatalogPlatformModel.DeleteResponse>} - Success response
|
|
1453
1419
|
* @name deleteSearchKeywords
|
|
1454
1420
|
* @summary: Delete search keywords
|
|
1455
1421
|
* @description: Delete a search keywords by its id for a specific company and sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSearchKeywords/).
|
|
@@ -1505,7 +1471,7 @@ class Catalog {
|
|
|
1505
1471
|
|
|
1506
1472
|
const {
|
|
1507
1473
|
error: res_error,
|
|
1508
|
-
} = CatalogPlatformModel.
|
|
1474
|
+
} = CatalogPlatformModel.DeleteResponse().validate(responseData, {
|
|
1509
1475
|
abortEarly: false,
|
|
1510
1476
|
allowUnknown: true,
|
|
1511
1477
|
});
|
|
@@ -1530,9 +1496,8 @@ class Catalog {
|
|
|
1530
1496
|
*
|
|
1531
1497
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1532
1498
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1533
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1534
|
-
*
|
|
1535
|
-
*
|
|
1499
|
+
* @returns {Promise<CatalogPlatformModel.GetCollectionListingResponse>} -
|
|
1500
|
+
* Success response
|
|
1536
1501
|
* @name getAllCollections
|
|
1537
1502
|
* @summary: List collections
|
|
1538
1503
|
* @description: Retrieve all collections based on criteria such as collection name, schedule status, and active status. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllCollections/).
|
|
@@ -1616,7 +1581,7 @@ class Catalog {
|
|
|
1616
1581
|
|
|
1617
1582
|
const {
|
|
1618
1583
|
error: res_error,
|
|
1619
|
-
} = CatalogPlatformModel.
|
|
1584
|
+
} = CatalogPlatformModel.GetCollectionListingResponse().validate(
|
|
1620
1585
|
responseData,
|
|
1621
1586
|
{ abortEarly: false, allowUnknown: true }
|
|
1622
1587
|
);
|
|
@@ -1650,7 +1615,7 @@ class Catalog {
|
|
|
1650
1615
|
* @param {boolean} [arg.isActive] - Get collections filtered by active status.
|
|
1651
1616
|
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
1652
1617
|
* page. Default is 12.
|
|
1653
|
-
* @returns {Paginator<CatalogPlatformModel.
|
|
1618
|
+
* @returns {Paginator<CatalogPlatformModel.GetCollectionListingResponse>}
|
|
1654
1619
|
* @summary: List collections
|
|
1655
1620
|
* @description: Retrieve all collections based on criteria such as collection name, schedule status, and active status.
|
|
1656
1621
|
*/
|
|
@@ -1696,8 +1661,7 @@ class Catalog {
|
|
|
1696
1661
|
*
|
|
1697
1662
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1698
1663
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1699
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1700
|
-
* Success response
|
|
1664
|
+
* @returns {Promise<CatalogPlatformModel.GetSearchWordsResponse>} - Success response
|
|
1701
1665
|
* @name getAllSearchKeyword
|
|
1702
1666
|
* @summary: List search keywords
|
|
1703
1667
|
* @description: Get all custom search keywords for a specific company and sales channel allows you to map certain conditions with the keywords to give you ultimate results. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllSearchKeyword/).
|
|
@@ -1749,10 +1713,10 @@ class Catalog {
|
|
|
1749
1713
|
|
|
1750
1714
|
const {
|
|
1751
1715
|
error: res_error,
|
|
1752
|
-
} = CatalogPlatformModel.
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
);
|
|
1716
|
+
} = CatalogPlatformModel.GetSearchWordsResponse().validate(responseData, {
|
|
1717
|
+
abortEarly: false,
|
|
1718
|
+
allowUnknown: true,
|
|
1719
|
+
});
|
|
1756
1720
|
|
|
1757
1721
|
if (res_error) {
|
|
1758
1722
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1774,7 +1738,7 @@ class Catalog {
|
|
|
1774
1738
|
*
|
|
1775
1739
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1776
1740
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1777
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1741
|
+
* @returns {Promise<CatalogPlatformModel.BaseAppCategoryReturnConfigResponse>}
|
|
1778
1742
|
* - Success response
|
|
1779
1743
|
*
|
|
1780
1744
|
* @name getAppCategoryReturnConfig
|
|
@@ -1839,7 +1803,7 @@ class Catalog {
|
|
|
1839
1803
|
|
|
1840
1804
|
const {
|
|
1841
1805
|
error: res_error,
|
|
1842
|
-
} = CatalogPlatformModel.
|
|
1806
|
+
} = CatalogPlatformModel.BaseAppCategoryReturnConfigResponse().validate(
|
|
1843
1807
|
responseData,
|
|
1844
1808
|
{ abortEarly: false, allowUnknown: true }
|
|
1845
1809
|
);
|
|
@@ -1862,11 +1826,10 @@ class Catalog {
|
|
|
1862
1826
|
* @param {CatalogPlatformApplicationValidator.GetAppInventoryParam} arg - Arg object
|
|
1863
1827
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1864
1828
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1865
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1866
|
-
* Success response
|
|
1829
|
+
* @returns {Promise<CatalogPlatformModel.InventoryStockResponse>} - Success response
|
|
1867
1830
|
* @name getAppInventory
|
|
1868
1831
|
* @summary: List sales channel inventory
|
|
1869
|
-
* @description: Retrieve inventory data related to the sales channel. this can be used to get the Inventory status of products. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppInventory/).
|
|
1832
|
+
* @description: Retrieve inventory data related to the sales channel. this can be used to get the Inventory status of products with the filters of timestamp, store_ids, brand_ids, item_id, Items, Pagination. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppInventory/).
|
|
1870
1833
|
*/
|
|
1871
1834
|
async getAppInventory(
|
|
1872
1835
|
{
|
|
@@ -1967,10 +1930,10 @@ class Catalog {
|
|
|
1967
1930
|
|
|
1968
1931
|
const {
|
|
1969
1932
|
error: res_error,
|
|
1970
|
-
} = CatalogPlatformModel.
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
);
|
|
1933
|
+
} = CatalogPlatformModel.InventoryStockResponse().validate(responseData, {
|
|
1934
|
+
abortEarly: false,
|
|
1935
|
+
allowUnknown: true,
|
|
1936
|
+
});
|
|
1974
1937
|
|
|
1975
1938
|
if (res_error) {
|
|
1976
1939
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1990,10 +1953,10 @@ class Catalog {
|
|
|
1990
1953
|
* @param {CatalogPlatformApplicationValidator.GetAppLocationsParam} arg - Arg object
|
|
1991
1954
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1992
1955
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1993
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1956
|
+
* @returns {Promise<CatalogPlatformModel.LocationListSerializer>} - Success response
|
|
1994
1957
|
* @name getAppLocations
|
|
1995
1958
|
* @summary: List sales channels
|
|
1996
|
-
* @description: Retrieve all stores associated with
|
|
1959
|
+
* @description: Retrieve all stores associated with an sales channel, with support for searching by store name and filtering by store type and status (verified/unverified) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppLocations/).
|
|
1997
1960
|
*/
|
|
1998
1961
|
async getAppLocations(
|
|
1999
1962
|
{
|
|
@@ -2078,7 +2041,7 @@ class Catalog {
|
|
|
2078
2041
|
|
|
2079
2042
|
const {
|
|
2080
2043
|
error: res_error,
|
|
2081
|
-
} = CatalogPlatformModel.
|
|
2044
|
+
} = CatalogPlatformModel.LocationListSerializer().validate(responseData, {
|
|
2082
2045
|
abortEarly: false,
|
|
2083
2046
|
allowUnknown: true,
|
|
2084
2047
|
});
|
|
@@ -2099,10 +2062,9 @@ class Catalog {
|
|
|
2099
2062
|
|
|
2100
2063
|
/**
|
|
2101
2064
|
* @param {Object} arg - Arg object.
|
|
2102
|
-
* @param {
|
|
2103
|
-
*
|
|
2104
|
-
*
|
|
2105
|
-
* identifier for a particular sale channel.
|
|
2065
|
+
* @param {string} arg.companyId - Id of the company whose locations are to fetched
|
|
2066
|
+
* @param {string} arg.applicationId - Id of the application whose locations
|
|
2067
|
+
* are to fetched
|
|
2106
2068
|
* @param {string} [arg.storeType] - Helps to sort the location list on the
|
|
2107
2069
|
* basis of location type.
|
|
2108
2070
|
* @param {number[]} [arg.uid] - Helps to sort the location list on the
|
|
@@ -2114,9 +2076,9 @@ class Catalog {
|
|
|
2114
2076
|
* page. Default is 20.
|
|
2115
2077
|
* @param {string[]} [arg.tags] - Get locations filtered by tags.
|
|
2116
2078
|
* @param {string[]} [arg.storeTypes] - Get locations filtered by store types.
|
|
2117
|
-
* @returns {Paginator<CatalogPlatformModel.
|
|
2079
|
+
* @returns {Paginator<CatalogPlatformModel.LocationListSerializer>}
|
|
2118
2080
|
* @summary: List sales channels
|
|
2119
|
-
* @description: Retrieve all stores associated with
|
|
2081
|
+
* @description: Retrieve all stores associated with an sales channel, with support for searching by store name and filtering by store type and status (verified/unverified)
|
|
2120
2082
|
*/
|
|
2121
2083
|
getAppLocationsPaginator({
|
|
2122
2084
|
companyId,
|
|
@@ -2160,8 +2122,7 @@ class Catalog {
|
|
|
2160
2122
|
* @param {CatalogPlatformApplicationValidator.GetAppProductParam} arg - Arg object
|
|
2161
2123
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2162
2124
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2163
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
2164
|
-
* Success response
|
|
2125
|
+
* @returns {Promise<CatalogPlatformModel.OwnerAppItemResponse>} - Success response
|
|
2165
2126
|
* @name getAppProduct
|
|
2166
2127
|
* @summary: Get sales channel product
|
|
2167
2128
|
* @description: Retrieve sales channel product details by its item_id and depending upon filters sent in request. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppProduct/).
|
|
@@ -2217,10 +2178,10 @@ class Catalog {
|
|
|
2217
2178
|
|
|
2218
2179
|
const {
|
|
2219
2180
|
error: res_error,
|
|
2220
|
-
} = CatalogPlatformModel.
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
);
|
|
2181
|
+
} = CatalogPlatformModel.OwnerAppItemResponse().validate(responseData, {
|
|
2182
|
+
abortEarly: false,
|
|
2183
|
+
allowUnknown: true,
|
|
2184
|
+
});
|
|
2224
2185
|
|
|
2225
2186
|
if (res_error) {
|
|
2226
2187
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2240,9 +2201,8 @@ class Catalog {
|
|
|
2240
2201
|
* @param {CatalogPlatformApplicationValidator.GetAppProductsParam} arg - Arg object
|
|
2241
2202
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2242
2203
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2243
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
2244
|
-
*
|
|
2245
|
-
*
|
|
2204
|
+
* @returns {Promise<CatalogPlatformModel.RawProductListingResponse>} -
|
|
2205
|
+
* Success response
|
|
2246
2206
|
* @name getAppProducts
|
|
2247
2207
|
* @summary: List sales channel products
|
|
2248
2208
|
* @description: Retrieve products specific to the sales channel, with filtering options available for brand, category, department, tags, item IDs, product name, and pagination support - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppProducts/).
|
|
@@ -2330,7 +2290,7 @@ class Catalog {
|
|
|
2330
2290
|
|
|
2331
2291
|
const {
|
|
2332
2292
|
error: res_error,
|
|
2333
|
-
} = CatalogPlatformModel.
|
|
2293
|
+
} = CatalogPlatformModel.RawProductListingResponse().validate(
|
|
2334
2294
|
responseData,
|
|
2335
2295
|
{ abortEarly: false, allowUnknown: true }
|
|
2336
2296
|
);
|
|
@@ -2351,7 +2311,7 @@ class Catalog {
|
|
|
2351
2311
|
|
|
2352
2312
|
/**
|
|
2353
2313
|
* @param {Object} arg - Arg object.
|
|
2354
|
-
* @param {
|
|
2314
|
+
* @param {string} arg.companyId - A `company_id` is a unique identifier for
|
|
2355
2315
|
* a particular seller account.
|
|
2356
2316
|
* @param {string} arg.applicationId - A `application_id` is a unique
|
|
2357
2317
|
* identifier for a particular sale channel.
|
|
@@ -2365,7 +2325,7 @@ class Catalog {
|
|
|
2365
2325
|
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
2366
2326
|
* page. Default is 10.
|
|
2367
2327
|
* @param {string} [arg.q] - Search with Item Code, Name, Slug or Identifier.
|
|
2368
|
-
* @returns {Paginator<CatalogPlatformModel.
|
|
2328
|
+
* @returns {Paginator<CatalogPlatformModel.RawProductListingResponse>}
|
|
2369
2329
|
* @summary: List sales channel products
|
|
2370
2330
|
* @description: Retrieve products specific to the sales channel, with filtering options available for brand, category, department, tags, item IDs, product name, and pagination support
|
|
2371
2331
|
*/
|
|
@@ -2413,10 +2373,9 @@ class Catalog {
|
|
|
2413
2373
|
*
|
|
2414
2374
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2415
2375
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2416
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
2417
|
-
* Success response
|
|
2376
|
+
* @returns {Promise<CatalogPlatformModel.AppReturnConfigResponse>} - Success response
|
|
2418
2377
|
* @name getAppReturnConfiguration
|
|
2419
|
-
* @summary:
|
|
2378
|
+
* @summary: get product-return configuration
|
|
2420
2379
|
* @description: Get Product Return configuration set at an sales channel level - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppReturnConfiguration/).
|
|
2421
2380
|
*/
|
|
2422
2381
|
async getAppReturnConfiguration(
|
|
@@ -2466,7 +2425,134 @@ class Catalog {
|
|
|
2466
2425
|
|
|
2467
2426
|
const {
|
|
2468
2427
|
error: res_error,
|
|
2469
|
-
} = CatalogPlatformModel.
|
|
2428
|
+
} = CatalogPlatformModel.AppReturnConfigResponse().validate(responseData, {
|
|
2429
|
+
abortEarly: false,
|
|
2430
|
+
allowUnknown: true,
|
|
2431
|
+
});
|
|
2432
|
+
|
|
2433
|
+
if (res_error) {
|
|
2434
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2435
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2436
|
+
} else {
|
|
2437
|
+
Logger({
|
|
2438
|
+
level: "WARN",
|
|
2439
|
+
message: `Response Validation Warnings for platform > Catalog > getAppReturnConfiguration \n ${res_error}`,
|
|
2440
|
+
});
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
return response;
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
/**
|
|
2448
|
+
* @param {CatalogPlatformApplicationValidator.GetAppicationProductsParam} arg
|
|
2449
|
+
* - Arg object
|
|
2450
|
+
*
|
|
2451
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2452
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2453
|
+
* @returns {Promise<CatalogPlatformModel.ApplicationProductListingResponse>}
|
|
2454
|
+
* - Success response
|
|
2455
|
+
*
|
|
2456
|
+
* @name getAppicationProducts
|
|
2457
|
+
* @summary: List sales channel products
|
|
2458
|
+
* @description: Retrieve products associated with the sales channel. List all the products associated with a brand, collection or category in a requested sort order. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppicationProducts/).
|
|
2459
|
+
*/
|
|
2460
|
+
async getAppicationProducts(
|
|
2461
|
+
{
|
|
2462
|
+
q,
|
|
2463
|
+
f,
|
|
2464
|
+
c,
|
|
2465
|
+
filters,
|
|
2466
|
+
isDependent,
|
|
2467
|
+
sortOn,
|
|
2468
|
+
pageId,
|
|
2469
|
+
pageSize,
|
|
2470
|
+
pageNo,
|
|
2471
|
+
pageType,
|
|
2472
|
+
itemIds,
|
|
2473
|
+
requestHeaders,
|
|
2474
|
+
} = { requestHeaders: {} },
|
|
2475
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2476
|
+
) {
|
|
2477
|
+
const {
|
|
2478
|
+
error,
|
|
2479
|
+
} = CatalogPlatformApplicationValidator.getAppicationProducts().validate(
|
|
2480
|
+
{
|
|
2481
|
+
q,
|
|
2482
|
+
f,
|
|
2483
|
+
c,
|
|
2484
|
+
filters,
|
|
2485
|
+
isDependent,
|
|
2486
|
+
sortOn,
|
|
2487
|
+
pageId,
|
|
2488
|
+
pageSize,
|
|
2489
|
+
pageNo,
|
|
2490
|
+
pageType,
|
|
2491
|
+
itemIds,
|
|
2492
|
+
},
|
|
2493
|
+
{ abortEarly: false, allowUnknown: true }
|
|
2494
|
+
);
|
|
2495
|
+
if (error) {
|
|
2496
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2500
|
+
const {
|
|
2501
|
+
error: warrning,
|
|
2502
|
+
} = CatalogPlatformApplicationValidator.getAppicationProducts().validate(
|
|
2503
|
+
{
|
|
2504
|
+
q,
|
|
2505
|
+
f,
|
|
2506
|
+
c,
|
|
2507
|
+
filters,
|
|
2508
|
+
isDependent,
|
|
2509
|
+
sortOn,
|
|
2510
|
+
pageId,
|
|
2511
|
+
pageSize,
|
|
2512
|
+
pageNo,
|
|
2513
|
+
pageType,
|
|
2514
|
+
itemIds,
|
|
2515
|
+
},
|
|
2516
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2517
|
+
);
|
|
2518
|
+
if (warrning) {
|
|
2519
|
+
Logger({
|
|
2520
|
+
level: "WARN",
|
|
2521
|
+
message: `Parameter Validation warrnings for platform > Catalog > getAppicationProducts \n ${warrning}`,
|
|
2522
|
+
});
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
const query_params = {};
|
|
2526
|
+
query_params["q"] = q;
|
|
2527
|
+
query_params["f"] = f;
|
|
2528
|
+
query_params["c"] = c;
|
|
2529
|
+
query_params["filters"] = filters;
|
|
2530
|
+
query_params["is_dependent"] = isDependent;
|
|
2531
|
+
query_params["sort_on"] = sortOn;
|
|
2532
|
+
query_params["page_id"] = pageId;
|
|
2533
|
+
query_params["page_size"] = pageSize;
|
|
2534
|
+
query_params["page_no"] = pageNo;
|
|
2535
|
+
query_params["page_type"] = pageType;
|
|
2536
|
+
query_params["item_ids"] = itemIds;
|
|
2537
|
+
|
|
2538
|
+
const response = await PlatformAPIClient.execute(
|
|
2539
|
+
this.config,
|
|
2540
|
+
"get",
|
|
2541
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/products`,
|
|
2542
|
+
query_params,
|
|
2543
|
+
undefined,
|
|
2544
|
+
requestHeaders,
|
|
2545
|
+
{ responseHeaders }
|
|
2546
|
+
);
|
|
2547
|
+
|
|
2548
|
+
let responseData = response;
|
|
2549
|
+
if (responseHeaders) {
|
|
2550
|
+
responseData = response[0];
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
const {
|
|
2554
|
+
error: res_error,
|
|
2555
|
+
} = CatalogPlatformModel.ApplicationProductListingResponse().validate(
|
|
2470
2556
|
responseData,
|
|
2471
2557
|
{ abortEarly: false, allowUnknown: true }
|
|
2472
2558
|
);
|
|
@@ -2477,7 +2563,7 @@ class Catalog {
|
|
|
2477
2563
|
} else {
|
|
2478
2564
|
Logger({
|
|
2479
2565
|
level: "WARN",
|
|
2480
|
-
message: `Response Validation Warnings for platform > Catalog >
|
|
2566
|
+
message: `Response Validation Warnings for platform > Catalog > getAppicationProducts \n ${res_error}`,
|
|
2481
2567
|
});
|
|
2482
2568
|
}
|
|
2483
2569
|
}
|
|
@@ -2485,6 +2571,78 @@ class Catalog {
|
|
|
2485
2571
|
return response;
|
|
2486
2572
|
}
|
|
2487
2573
|
|
|
2574
|
+
/**
|
|
2575
|
+
* @param {Object} arg - Arg object.
|
|
2576
|
+
* @param {string} arg.companyId - A `company_id` is a unique identifier for
|
|
2577
|
+
* a particular seller account.
|
|
2578
|
+
* @param {string} arg.applicationId - A `application_id` is a unique
|
|
2579
|
+
* identifier for a particular sale channel.
|
|
2580
|
+
* @param {string} [arg.q] - The search query. This can be a partial or
|
|
2581
|
+
* complete name of a either a product, brand or category
|
|
2582
|
+
* @param {string} [arg.f] - The search filter parameters. All the parameter
|
|
2583
|
+
* filtered from filter parameters will be passed in **f** parameter in
|
|
2584
|
+
* this format. **?f=brand:voi-jeans||and:::category:t-shirts||shirts**
|
|
2585
|
+
* @param {string} [arg.c] - The search filter parameters for collection
|
|
2586
|
+
* items. All the parameter filtered from filter parameters will be passed
|
|
2587
|
+
* in **c** parameter in this format.
|
|
2588
|
+
* **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
|
|
2589
|
+
* @param {boolean} [arg.filters] - Pass `filters` parameter to fetch the
|
|
2590
|
+
* filter details. This flag is used to fetch all filters
|
|
2591
|
+
* @param {boolean} [arg.isDependent] - This query parameter is used to get
|
|
2592
|
+
* the dependent products in the listing.
|
|
2593
|
+
* @param {string} [arg.sortOn] - The order to sort the list of products on.
|
|
2594
|
+
* The supported sort parameters are popularity, price, redemption and
|
|
2595
|
+
* discount in either ascending or descending order. See the supported
|
|
2596
|
+
* values below.
|
|
2597
|
+
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
2598
|
+
* page. Default is 12.
|
|
2599
|
+
* @param {number[]} [arg.itemIds] - Item Ids of product
|
|
2600
|
+
* @returns {Paginator<CatalogPlatformModel.ApplicationProductListingResponse>}
|
|
2601
|
+
* @summary: List sales channel products
|
|
2602
|
+
* @description: Retrieve products associated with the sales channel. List all the products associated with a brand, collection or category in a requested sort order.
|
|
2603
|
+
*/
|
|
2604
|
+
getAppicationProductsPaginator({
|
|
2605
|
+
companyId,
|
|
2606
|
+
applicationId,
|
|
2607
|
+
q,
|
|
2608
|
+
f,
|
|
2609
|
+
c,
|
|
2610
|
+
filters,
|
|
2611
|
+
isDependent,
|
|
2612
|
+
sortOn,
|
|
2613
|
+
pageSize,
|
|
2614
|
+
itemIds,
|
|
2615
|
+
} = {}) {
|
|
2616
|
+
const paginator = new Paginator();
|
|
2617
|
+
const callback = async () => {
|
|
2618
|
+
const pageId = paginator.nextId;
|
|
2619
|
+
const pageNo = paginator.pageNo;
|
|
2620
|
+
const pageType = "cursor";
|
|
2621
|
+
const data = await this.getAppicationProducts({
|
|
2622
|
+
companyId: companyId,
|
|
2623
|
+
applicationId: applicationId,
|
|
2624
|
+
q: q,
|
|
2625
|
+
f: f,
|
|
2626
|
+
c: c,
|
|
2627
|
+
filters: filters,
|
|
2628
|
+
isDependent: isDependent,
|
|
2629
|
+
sortOn: sortOn,
|
|
2630
|
+
pageId: pageId,
|
|
2631
|
+
pageSize: pageSize,
|
|
2632
|
+
pageNo: pageNo,
|
|
2633
|
+
pageType: pageType,
|
|
2634
|
+
itemIds: itemIds,
|
|
2635
|
+
});
|
|
2636
|
+
paginator.setPaginator({
|
|
2637
|
+
hasNext: data.page.has_next ? true : false,
|
|
2638
|
+
nextId: data.page.next_id,
|
|
2639
|
+
});
|
|
2640
|
+
return data;
|
|
2641
|
+
};
|
|
2642
|
+
paginator.setCallback(callback.bind(this));
|
|
2643
|
+
return paginator;
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2488
2646
|
/**
|
|
2489
2647
|
* @param {CatalogPlatformApplicationValidator.GetApplicationBrandListingParam} arg
|
|
2490
2648
|
* - Arg object
|
|
@@ -2622,8 +2780,7 @@ class Catalog {
|
|
|
2622
2780
|
*
|
|
2623
2781
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2624
2782
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2625
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
2626
|
-
* Success response
|
|
2783
|
+
* @returns {Promise<CatalogPlatformModel.BrandListingResponse>} - Success response
|
|
2627
2784
|
* @name getApplicationBrands
|
|
2628
2785
|
* @summary: List brands
|
|
2629
2786
|
* @description: List all the brands. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationBrands/).
|
|
@@ -2694,10 +2851,10 @@ class Catalog {
|
|
|
2694
2851
|
|
|
2695
2852
|
const {
|
|
2696
2853
|
error: res_error,
|
|
2697
|
-
} = CatalogPlatformModel.
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
);
|
|
2854
|
+
} = CatalogPlatformModel.BrandListingResponse().validate(responseData, {
|
|
2855
|
+
abortEarly: false,
|
|
2856
|
+
allowUnknown: true,
|
|
2857
|
+
});
|
|
2701
2858
|
|
|
2702
2859
|
if (res_error) {
|
|
2703
2860
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2729,7 +2886,7 @@ class Catalog {
|
|
|
2729
2886
|
* parameter to search brands by brand name.
|
|
2730
2887
|
* @param {number[]} [arg.brandId] - Helps to sort the brands list on the
|
|
2731
2888
|
* basis of uid list.
|
|
2732
|
-
* @returns {Paginator<CatalogPlatformModel.
|
|
2889
|
+
* @returns {Paginator<CatalogPlatformModel.BrandListingResponse>}
|
|
2733
2890
|
* @summary: List brands
|
|
2734
2891
|
* @description: List all the brands.
|
|
2735
2892
|
*/
|
|
@@ -2912,7 +3069,7 @@ class Catalog {
|
|
|
2912
3069
|
*
|
|
2913
3070
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2914
3071
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2915
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3072
|
+
* @returns {Promise<CatalogPlatformModel.ApplicationDepartmentListingResponse>}
|
|
2916
3073
|
* - Success response
|
|
2917
3074
|
*
|
|
2918
3075
|
* @name getApplicationDepartmentListing
|
|
@@ -2977,7 +3134,7 @@ class Catalog {
|
|
|
2977
3134
|
|
|
2978
3135
|
const {
|
|
2979
3136
|
error: res_error,
|
|
2980
|
-
} = CatalogPlatformModel.
|
|
3137
|
+
} = CatalogPlatformModel.ApplicationDepartmentListingResponse().validate(
|
|
2981
3138
|
responseData,
|
|
2982
3139
|
{ abortEarly: false, allowUnknown: true }
|
|
2983
3140
|
);
|
|
@@ -2998,7 +3155,7 @@ class Catalog {
|
|
|
2998
3155
|
|
|
2999
3156
|
/**
|
|
3000
3157
|
* @param {Object} arg - Arg object.
|
|
3001
|
-
* @param {
|
|
3158
|
+
* @param {string} arg.companyId - A `company_id` is a unique identifier for
|
|
3002
3159
|
* a particular seller account.
|
|
3003
3160
|
* @param {string} arg.applicationId - A `application_id` is a unique
|
|
3004
3161
|
* identifier for a particular sale channel.
|
|
@@ -3006,7 +3163,7 @@ class Catalog {
|
|
|
3006
3163
|
* page. Default is 12.
|
|
3007
3164
|
* @param {string} [arg.q] - A search query string. Use this parameter to
|
|
3008
3165
|
* filter results based on a keyword or specific value.
|
|
3009
|
-
* @returns {Paginator<CatalogPlatformModel.
|
|
3166
|
+
* @returns {Paginator<CatalogPlatformModel.ApplicationDepartmentListingResponse>}
|
|
3010
3167
|
* @summary: List sales channel departments
|
|
3011
3168
|
* @description: Retrieve department listings related to the sales channel. Departments are used to categorize similar products, and you can filter the results based on department names
|
|
3012
3169
|
*/
|
|
@@ -3031,127 +3188,34 @@ class Catalog {
|
|
|
3031
3188
|
paginator.setPaginator({
|
|
3032
3189
|
hasNext: data.page.has_next ? true : false,
|
|
3033
3190
|
nextId: data.page.next_id,
|
|
3034
|
-
});
|
|
3035
|
-
return data;
|
|
3036
|
-
};
|
|
3037
|
-
paginator.setCallback(callback.bind(this));
|
|
3038
|
-
return paginator;
|
|
3039
|
-
}
|
|
3040
|
-
|
|
3041
|
-
/**
|
|
3042
|
-
* @param {CatalogPlatformApplicationValidator.GetApplicationFilterKeysParam} arg
|
|
3043
|
-
* - Arg object
|
|
3044
|
-
*
|
|
3045
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3046
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3047
|
-
* @returns {Promise<CatalogPlatformModel.GetQueryFiltersKeysResponseSchema>}
|
|
3048
|
-
* - Success response
|
|
3049
|
-
*
|
|
3050
|
-
* @name getApplicationFilterKeys
|
|
3051
|
-
* @summary: List filter keys
|
|
3052
|
-
* @description: Retrieve the details of all applicable product filters, such as Color, Brand, and Category, indicating the criteria keys where filters can be applied. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterKeys/).
|
|
3053
|
-
*/
|
|
3054
|
-
async getApplicationFilterKeys(
|
|
3055
|
-
{ c, requestHeaders } = { requestHeaders: {} },
|
|
3056
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
3057
|
-
) {
|
|
3058
|
-
const {
|
|
3059
|
-
error,
|
|
3060
|
-
} = CatalogPlatformApplicationValidator.getApplicationFilterKeys().validate(
|
|
3061
|
-
{
|
|
3062
|
-
c,
|
|
3063
|
-
},
|
|
3064
|
-
{ abortEarly: false, allowUnknown: true }
|
|
3065
|
-
);
|
|
3066
|
-
if (error) {
|
|
3067
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
3068
|
-
}
|
|
3069
|
-
|
|
3070
|
-
// Showing warrnings if extra unknown parameters are found
|
|
3071
|
-
const {
|
|
3072
|
-
error: warrning,
|
|
3073
|
-
} = CatalogPlatformApplicationValidator.getApplicationFilterKeys().validate(
|
|
3074
|
-
{
|
|
3075
|
-
c,
|
|
3076
|
-
},
|
|
3077
|
-
{ abortEarly: false, allowUnknown: false }
|
|
3078
|
-
);
|
|
3079
|
-
if (warrning) {
|
|
3080
|
-
Logger({
|
|
3081
|
-
level: "WARN",
|
|
3082
|
-
message: `Parameter Validation warrnings for platform > Catalog > getApplicationFilterKeys \n ${warrning}`,
|
|
3083
|
-
});
|
|
3084
|
-
}
|
|
3085
|
-
|
|
3086
|
-
const query_params = {};
|
|
3087
|
-
query_params["c"] = c;
|
|
3088
|
-
|
|
3089
|
-
const response = await PlatformAPIClient.execute(
|
|
3090
|
-
this.config,
|
|
3091
|
-
"get",
|
|
3092
|
-
`/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/filter-options/keys`,
|
|
3093
|
-
query_params,
|
|
3094
|
-
undefined,
|
|
3095
|
-
requestHeaders,
|
|
3096
|
-
{ responseHeaders }
|
|
3097
|
-
);
|
|
3098
|
-
|
|
3099
|
-
let responseData = response;
|
|
3100
|
-
if (responseHeaders) {
|
|
3101
|
-
responseData = response[0];
|
|
3102
|
-
}
|
|
3103
|
-
|
|
3104
|
-
const {
|
|
3105
|
-
error: res_error,
|
|
3106
|
-
} = CatalogPlatformModel.GetQueryFiltersKeysResponseSchema().validate(
|
|
3107
|
-
responseData,
|
|
3108
|
-
{ abortEarly: false, allowUnknown: true }
|
|
3109
|
-
);
|
|
3110
|
-
|
|
3111
|
-
if (res_error) {
|
|
3112
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
3113
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3114
|
-
} else {
|
|
3115
|
-
Logger({
|
|
3116
|
-
level: "WARN",
|
|
3117
|
-
message: `Response Validation Warnings for platform > Catalog > getApplicationFilterKeys \n ${res_error}`,
|
|
3118
|
-
});
|
|
3119
|
-
}
|
|
3120
|
-
}
|
|
3121
|
-
|
|
3122
|
-
return response;
|
|
3191
|
+
});
|
|
3192
|
+
return data;
|
|
3193
|
+
};
|
|
3194
|
+
paginator.setCallback(callback.bind(this));
|
|
3195
|
+
return paginator;
|
|
3123
3196
|
}
|
|
3124
3197
|
|
|
3125
3198
|
/**
|
|
3126
|
-
* @param {CatalogPlatformApplicationValidator.
|
|
3199
|
+
* @param {CatalogPlatformApplicationValidator.GetApplicationFilterKeysParam} arg
|
|
3127
3200
|
* - Arg object
|
|
3128
3201
|
*
|
|
3129
3202
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3130
3203
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3131
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3132
|
-
*
|
|
3133
|
-
*
|
|
3134
|
-
* @
|
|
3135
|
-
* @
|
|
3136
|
-
* @description: This API is designed to retrieve the filter values for all available options within the selected filter, such as "red" for color.
|
|
3137
|
-
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterValues/).
|
|
3204
|
+
* @returns {Promise<CatalogPlatformModel.GetQueryFiltersKeysResponse>} -
|
|
3205
|
+
* Success response
|
|
3206
|
+
* @name getApplicationFilterKeys
|
|
3207
|
+
* @summary: List filter keys
|
|
3208
|
+
* @description: Retrieve the details of all applicable product filters, such as Color, Brand, and Category, indicating the criteria keys where filters can be applied. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterKeys/).
|
|
3138
3209
|
*/
|
|
3139
|
-
async
|
|
3140
|
-
{
|
|
3141
|
-
requestHeaders: {},
|
|
3142
|
-
},
|
|
3210
|
+
async getApplicationFilterKeys(
|
|
3211
|
+
{ c, requestHeaders } = { requestHeaders: {} },
|
|
3143
3212
|
{ responseHeaders } = { responseHeaders: false }
|
|
3144
3213
|
) {
|
|
3145
3214
|
const {
|
|
3146
3215
|
error,
|
|
3147
|
-
} = CatalogPlatformApplicationValidator.
|
|
3216
|
+
} = CatalogPlatformApplicationValidator.getApplicationFilterKeys().validate(
|
|
3148
3217
|
{
|
|
3149
|
-
filterKey,
|
|
3150
3218
|
c,
|
|
3151
|
-
collectionId,
|
|
3152
|
-
pageNo,
|
|
3153
|
-
pageSize,
|
|
3154
|
-
q,
|
|
3155
3219
|
},
|
|
3156
3220
|
{ abortEarly: false, allowUnknown: true }
|
|
3157
3221
|
);
|
|
@@ -3162,35 +3226,26 @@ class Catalog {
|
|
|
3162
3226
|
// Showing warrnings if extra unknown parameters are found
|
|
3163
3227
|
const {
|
|
3164
3228
|
error: warrning,
|
|
3165
|
-
} = CatalogPlatformApplicationValidator.
|
|
3229
|
+
} = CatalogPlatformApplicationValidator.getApplicationFilterKeys().validate(
|
|
3166
3230
|
{
|
|
3167
|
-
filterKey,
|
|
3168
3231
|
c,
|
|
3169
|
-
collectionId,
|
|
3170
|
-
pageNo,
|
|
3171
|
-
pageSize,
|
|
3172
|
-
q,
|
|
3173
3232
|
},
|
|
3174
3233
|
{ abortEarly: false, allowUnknown: false }
|
|
3175
3234
|
);
|
|
3176
3235
|
if (warrning) {
|
|
3177
3236
|
Logger({
|
|
3178
3237
|
level: "WARN",
|
|
3179
|
-
message: `Parameter Validation warrnings for platform > Catalog >
|
|
3238
|
+
message: `Parameter Validation warrnings for platform > Catalog > getApplicationFilterKeys \n ${warrning}`,
|
|
3180
3239
|
});
|
|
3181
3240
|
}
|
|
3182
3241
|
|
|
3183
3242
|
const query_params = {};
|
|
3184
3243
|
query_params["c"] = c;
|
|
3185
|
-
query_params["collection_id"] = collectionId;
|
|
3186
|
-
query_params["page_no"] = pageNo;
|
|
3187
|
-
query_params["page_size"] = pageSize;
|
|
3188
|
-
query_params["q"] = q;
|
|
3189
3244
|
|
|
3190
3245
|
const response = await PlatformAPIClient.execute(
|
|
3191
3246
|
this.config,
|
|
3192
3247
|
"get",
|
|
3193
|
-
`/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/filter-options
|
|
3248
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/filter-options/keys`,
|
|
3194
3249
|
query_params,
|
|
3195
3250
|
undefined,
|
|
3196
3251
|
requestHeaders,
|
|
@@ -3204,7 +3259,7 @@ class Catalog {
|
|
|
3204
3259
|
|
|
3205
3260
|
const {
|
|
3206
3261
|
error: res_error,
|
|
3207
|
-
} = CatalogPlatformModel.
|
|
3262
|
+
} = CatalogPlatformModel.GetQueryFiltersKeysResponse().validate(
|
|
3208
3263
|
responseData,
|
|
3209
3264
|
{ abortEarly: false, allowUnknown: true }
|
|
3210
3265
|
);
|
|
@@ -3215,7 +3270,7 @@ class Catalog {
|
|
|
3215
3270
|
} else {
|
|
3216
3271
|
Logger({
|
|
3217
3272
|
level: "WARN",
|
|
3218
|
-
message: `Response Validation Warnings for platform > Catalog >
|
|
3273
|
+
message: `Response Validation Warnings for platform > Catalog > getApplicationFilterKeys \n ${res_error}`,
|
|
3219
3274
|
});
|
|
3220
3275
|
}
|
|
3221
3276
|
}
|
|
@@ -3224,50 +3279,34 @@ class Catalog {
|
|
|
3224
3279
|
}
|
|
3225
3280
|
|
|
3226
3281
|
/**
|
|
3227
|
-
* @param {CatalogPlatformApplicationValidator.
|
|
3282
|
+
* @param {CatalogPlatformApplicationValidator.GetApplicationFilterValuesParam} arg
|
|
3228
3283
|
* - Arg object
|
|
3229
3284
|
*
|
|
3230
3285
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3231
3286
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3232
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3233
|
-
*
|
|
3234
|
-
*
|
|
3235
|
-
* @
|
|
3236
|
-
* @
|
|
3237
|
-
*
|
|
3287
|
+
* @returns {Promise<CatalogPlatformModel.GetQueryFiltersValuesResponse>} -
|
|
3288
|
+
* Success response
|
|
3289
|
+
* @name getApplicationFilterValues
|
|
3290
|
+
* @summary: List product filters
|
|
3291
|
+
* @description: This API is designed to retrieve the filter values for all available options within the selected filter, such as "red" for color.
|
|
3292
|
+
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getApplicationFilterValues/).
|
|
3238
3293
|
*/
|
|
3239
|
-
async
|
|
3240
|
-
{
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
c,
|
|
3244
|
-
filters,
|
|
3245
|
-
isDependent,
|
|
3246
|
-
sortOn,
|
|
3247
|
-
pageId,
|
|
3248
|
-
pageSize,
|
|
3249
|
-
pageNo,
|
|
3250
|
-
pageType,
|
|
3251
|
-
itemIds,
|
|
3252
|
-
requestHeaders,
|
|
3253
|
-
} = { requestHeaders: {} },
|
|
3294
|
+
async getApplicationFilterValues(
|
|
3295
|
+
{ filterKey, c, collectionId, pageNo, pageSize, q, requestHeaders } = {
|
|
3296
|
+
requestHeaders: {},
|
|
3297
|
+
},
|
|
3254
3298
|
{ responseHeaders } = { responseHeaders: false }
|
|
3255
3299
|
) {
|
|
3256
3300
|
const {
|
|
3257
3301
|
error,
|
|
3258
|
-
} = CatalogPlatformApplicationValidator.
|
|
3302
|
+
} = CatalogPlatformApplicationValidator.getApplicationFilterValues().validate(
|
|
3259
3303
|
{
|
|
3260
|
-
|
|
3261
|
-
f,
|
|
3304
|
+
filterKey,
|
|
3262
3305
|
c,
|
|
3263
|
-
|
|
3264
|
-
isDependent,
|
|
3265
|
-
sortOn,
|
|
3266
|
-
pageId,
|
|
3267
|
-
pageSize,
|
|
3306
|
+
collectionId,
|
|
3268
3307
|
pageNo,
|
|
3269
|
-
|
|
3270
|
-
|
|
3308
|
+
pageSize,
|
|
3309
|
+
q,
|
|
3271
3310
|
},
|
|
3272
3311
|
{ abortEarly: false, allowUnknown: true }
|
|
3273
3312
|
);
|
|
@@ -3278,46 +3317,35 @@ class Catalog {
|
|
|
3278
3317
|
// Showing warrnings if extra unknown parameters are found
|
|
3279
3318
|
const {
|
|
3280
3319
|
error: warrning,
|
|
3281
|
-
} = CatalogPlatformApplicationValidator.
|
|
3320
|
+
} = CatalogPlatformApplicationValidator.getApplicationFilterValues().validate(
|
|
3282
3321
|
{
|
|
3283
|
-
|
|
3284
|
-
f,
|
|
3322
|
+
filterKey,
|
|
3285
3323
|
c,
|
|
3286
|
-
|
|
3287
|
-
isDependent,
|
|
3288
|
-
sortOn,
|
|
3289
|
-
pageId,
|
|
3290
|
-
pageSize,
|
|
3324
|
+
collectionId,
|
|
3291
3325
|
pageNo,
|
|
3292
|
-
|
|
3293
|
-
|
|
3326
|
+
pageSize,
|
|
3327
|
+
q,
|
|
3294
3328
|
},
|
|
3295
3329
|
{ abortEarly: false, allowUnknown: false }
|
|
3296
3330
|
);
|
|
3297
3331
|
if (warrning) {
|
|
3298
3332
|
Logger({
|
|
3299
3333
|
level: "WARN",
|
|
3300
|
-
message: `Parameter Validation warrnings for platform > Catalog >
|
|
3334
|
+
message: `Parameter Validation warrnings for platform > Catalog > getApplicationFilterValues \n ${warrning}`,
|
|
3301
3335
|
});
|
|
3302
3336
|
}
|
|
3303
3337
|
|
|
3304
3338
|
const query_params = {};
|
|
3305
|
-
query_params["q"] = q;
|
|
3306
|
-
query_params["f"] = f;
|
|
3307
3339
|
query_params["c"] = c;
|
|
3308
|
-
query_params["
|
|
3309
|
-
query_params["is_dependent"] = isDependent;
|
|
3310
|
-
query_params["sort_on"] = sortOn;
|
|
3311
|
-
query_params["page_id"] = pageId;
|
|
3312
|
-
query_params["page_size"] = pageSize;
|
|
3340
|
+
query_params["collection_id"] = collectionId;
|
|
3313
3341
|
query_params["page_no"] = pageNo;
|
|
3314
|
-
query_params["
|
|
3315
|
-
query_params["
|
|
3342
|
+
query_params["page_size"] = pageSize;
|
|
3343
|
+
query_params["q"] = q;
|
|
3316
3344
|
|
|
3317
3345
|
const response = await PlatformAPIClient.execute(
|
|
3318
3346
|
this.config,
|
|
3319
3347
|
"get",
|
|
3320
|
-
`/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/
|
|
3348
|
+
`/service/platform/catalog/v1.0/company/${this.config.companyId}/application/${this.applicationId}/filter-options/${filterKey}/values`,
|
|
3321
3349
|
query_params,
|
|
3322
3350
|
undefined,
|
|
3323
3351
|
requestHeaders,
|
|
@@ -3331,7 +3359,7 @@ class Catalog {
|
|
|
3331
3359
|
|
|
3332
3360
|
const {
|
|
3333
3361
|
error: res_error,
|
|
3334
|
-
} = CatalogPlatformModel.
|
|
3362
|
+
} = CatalogPlatformModel.GetQueryFiltersValuesResponse().validate(
|
|
3335
3363
|
responseData,
|
|
3336
3364
|
{ abortEarly: false, allowUnknown: true }
|
|
3337
3365
|
);
|
|
@@ -3342,7 +3370,7 @@ class Catalog {
|
|
|
3342
3370
|
} else {
|
|
3343
3371
|
Logger({
|
|
3344
3372
|
level: "WARN",
|
|
3345
|
-
message: `Response Validation Warnings for platform > Catalog >
|
|
3373
|
+
message: `Response Validation Warnings for platform > Catalog > getApplicationFilterValues \n ${res_error}`,
|
|
3346
3374
|
});
|
|
3347
3375
|
}
|
|
3348
3376
|
}
|
|
@@ -3350,87 +3378,14 @@ class Catalog {
|
|
|
3350
3378
|
return response;
|
|
3351
3379
|
}
|
|
3352
3380
|
|
|
3353
|
-
/**
|
|
3354
|
-
* @param {Object} arg - Arg object.
|
|
3355
|
-
* @param {number} arg.companyId - A `company_id` is a unique identifier for
|
|
3356
|
-
* a particular seller account.
|
|
3357
|
-
* @param {string} arg.applicationId - A `application_id` is a unique
|
|
3358
|
-
* identifier for a particular sale channel.
|
|
3359
|
-
* @param {string} [arg.q] - The search query. This can be a partial or
|
|
3360
|
-
* complete name of a either a product, brand or category
|
|
3361
|
-
* @param {string} [arg.f] - The search filter parameters. All the parameter
|
|
3362
|
-
* filtered from filter parameters will be passed in **f** parameter in
|
|
3363
|
-
* this format. **?f=brand:voi-jeans||and:::category:t-shirts||shirts**
|
|
3364
|
-
* @param {string} [arg.c] - The search filter parameters for collection
|
|
3365
|
-
* items. All the parameter filtered from filter parameters will be passed
|
|
3366
|
-
* in **c** parameter in this format.
|
|
3367
|
-
* **?c=brand:in:voi-jeans|and:::category:nin:t-shirts|shirts**
|
|
3368
|
-
* @param {boolean} [arg.filters] - Pass `filters` parameter to fetch the
|
|
3369
|
-
* filter details. This flag is used to fetch all filters
|
|
3370
|
-
* @param {boolean} [arg.isDependent] - This query parameter is used to get
|
|
3371
|
-
* the dependent products in the listing.
|
|
3372
|
-
* @param {string} [arg.sortOn] - The order to sort the list of products on.
|
|
3373
|
-
* The supported sort parameters are popularity, price, redemption and
|
|
3374
|
-
* discount in either ascending or descending order. See the supported
|
|
3375
|
-
* values below.
|
|
3376
|
-
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
3377
|
-
* page. Default is 12.
|
|
3378
|
-
* @param {string[]} [arg.itemIds] - Item Ids of product
|
|
3379
|
-
* @returns {Paginator<CatalogPlatformModel.ApplicationProductListingResponseSchema>}
|
|
3380
|
-
* @summary: List sales channel products
|
|
3381
|
-
* @description: Retrieve products associated with the sales channel. List all the products associated with a brand, collection or category in a requested sort order.
|
|
3382
|
-
*/
|
|
3383
|
-
getApplicationProductsPaginator({
|
|
3384
|
-
companyId,
|
|
3385
|
-
applicationId,
|
|
3386
|
-
q,
|
|
3387
|
-
f,
|
|
3388
|
-
c,
|
|
3389
|
-
filters,
|
|
3390
|
-
isDependent,
|
|
3391
|
-
sortOn,
|
|
3392
|
-
pageSize,
|
|
3393
|
-
itemIds,
|
|
3394
|
-
} = {}) {
|
|
3395
|
-
const paginator = new Paginator();
|
|
3396
|
-
const callback = async () => {
|
|
3397
|
-
const pageId = paginator.nextId;
|
|
3398
|
-
const pageNo = paginator.pageNo;
|
|
3399
|
-
const pageType = "cursor";
|
|
3400
|
-
const data = await this.getApplicationProducts({
|
|
3401
|
-
companyId: companyId,
|
|
3402
|
-
applicationId: applicationId,
|
|
3403
|
-
q: q,
|
|
3404
|
-
f: f,
|
|
3405
|
-
c: c,
|
|
3406
|
-
filters: filters,
|
|
3407
|
-
isDependent: isDependent,
|
|
3408
|
-
sortOn: sortOn,
|
|
3409
|
-
pageId: pageId,
|
|
3410
|
-
pageSize: pageSize,
|
|
3411
|
-
pageNo: pageNo,
|
|
3412
|
-
pageType: pageType,
|
|
3413
|
-
itemIds: itemIds,
|
|
3414
|
-
});
|
|
3415
|
-
paginator.setPaginator({
|
|
3416
|
-
hasNext: data.page.has_next ? true : false,
|
|
3417
|
-
nextId: data.page.next_id,
|
|
3418
|
-
});
|
|
3419
|
-
return data;
|
|
3420
|
-
};
|
|
3421
|
-
paginator.setCallback(callback.bind(this));
|
|
3422
|
-
return paginator;
|
|
3423
|
-
}
|
|
3424
|
-
|
|
3425
3381
|
/**
|
|
3426
3382
|
* @param {CatalogPlatformApplicationValidator.GetAutocompleteConfigParam} arg
|
|
3427
3383
|
* - Arg object
|
|
3428
3384
|
*
|
|
3429
3385
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3430
3386
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3431
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3432
|
-
*
|
|
3433
|
-
*
|
|
3387
|
+
* @returns {Promise<CatalogPlatformModel.GetAutocompleteWordsResponse>} -
|
|
3388
|
+
* Success response
|
|
3434
3389
|
* @name getAutocompleteConfig
|
|
3435
3390
|
* @summary: Get autocomplete configuration
|
|
3436
3391
|
* @description: Get custom autocomplete keyword configuration for a specific sales channel which allows you to map any endpoint with these keywords to give you the ultimate suggestion results. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteConfig/).
|
|
@@ -3482,7 +3437,7 @@ class Catalog {
|
|
|
3482
3437
|
|
|
3483
3438
|
const {
|
|
3484
3439
|
error: res_error,
|
|
3485
|
-
} = CatalogPlatformModel.
|
|
3440
|
+
} = CatalogPlatformModel.GetAutocompleteWordsResponse().validate(
|
|
3486
3441
|
responseData,
|
|
3487
3442
|
{ abortEarly: false, allowUnknown: true }
|
|
3488
3443
|
);
|
|
@@ -3507,9 +3462,8 @@ class Catalog {
|
|
|
3507
3462
|
*
|
|
3508
3463
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3509
3464
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3510
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3511
|
-
*
|
|
3512
|
-
*
|
|
3465
|
+
* @returns {Promise<CatalogPlatformModel.GetAutocompleteWordsResponse>} -
|
|
3466
|
+
* Success response
|
|
3513
3467
|
* @name getAutocompleteKeywordDetail
|
|
3514
3468
|
* @summary: Get autocomplete keyword
|
|
3515
3469
|
* @description: Retrieve detailed information about a specific autocomplete keyword for a specific sales channel by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAutocompleteKeywordDetail/).
|
|
@@ -3565,7 +3519,7 @@ class Catalog {
|
|
|
3565
3519
|
|
|
3566
3520
|
const {
|
|
3567
3521
|
error: res_error,
|
|
3568
|
-
} = CatalogPlatformModel.
|
|
3522
|
+
} = CatalogPlatformModel.GetAutocompleteWordsResponse().validate(
|
|
3569
3523
|
responseData,
|
|
3570
3524
|
{ abortEarly: false, allowUnknown: true }
|
|
3571
3525
|
);
|
|
@@ -3669,8 +3623,7 @@ class Catalog {
|
|
|
3669
3623
|
*
|
|
3670
3624
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3671
3625
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3672
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3673
|
-
* Success response
|
|
3626
|
+
* @returns {Promise<CatalogPlatformModel.CatalogInsightResponse>} - Success response
|
|
3674
3627
|
* @name getCatalogInsights
|
|
3675
3628
|
* @summary: Get catalog counts
|
|
3676
3629
|
* @description: Retrieve the count of catalog related data like products, brands, departments and categories that have been made live as per configuration of the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCatalogInsights/).
|
|
@@ -3727,10 +3680,10 @@ class Catalog {
|
|
|
3727
3680
|
|
|
3728
3681
|
const {
|
|
3729
3682
|
error: res_error,
|
|
3730
|
-
} = CatalogPlatformModel.
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
);
|
|
3683
|
+
} = CatalogPlatformModel.CatalogInsightResponse().validate(responseData, {
|
|
3684
|
+
abortEarly: false,
|
|
3685
|
+
allowUnknown: true,
|
|
3686
|
+
});
|
|
3734
3687
|
|
|
3735
3688
|
if (res_error) {
|
|
3736
3689
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3750,8 +3703,7 @@ class Catalog {
|
|
|
3750
3703
|
* @param {CatalogPlatformApplicationValidator.GetCategoriesParam} arg - Arg object
|
|
3751
3704
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3752
3705
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3753
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3754
|
-
* Success response
|
|
3706
|
+
* @returns {Promise<CatalogPlatformModel.CategoryListingResponse>} - Success response
|
|
3755
3707
|
* @name getCategories
|
|
3756
3708
|
* @summary: List categories
|
|
3757
3709
|
* @description: Retrieve a list of categories associated to company and sales channel. user can filter on departments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCategories/).
|
|
@@ -3808,10 +3760,10 @@ class Catalog {
|
|
|
3808
3760
|
|
|
3809
3761
|
const {
|
|
3810
3762
|
error: res_error,
|
|
3811
|
-
} = CatalogPlatformModel.
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
);
|
|
3763
|
+
} = CatalogPlatformModel.CategoryListingResponse().validate(responseData, {
|
|
3764
|
+
abortEarly: false,
|
|
3765
|
+
allowUnknown: true,
|
|
3766
|
+
});
|
|
3815
3767
|
|
|
3816
3768
|
if (res_error) {
|
|
3817
3769
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3833,9 +3785,8 @@ class Catalog {
|
|
|
3833
3785
|
*
|
|
3834
3786
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3835
3787
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3836
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3837
|
-
*
|
|
3838
|
-
*
|
|
3788
|
+
* @returns {Promise<CatalogPlatformModel.GetCollectionDetailResponse>} -
|
|
3789
|
+
* Success response
|
|
3839
3790
|
* @name getCollectionDetail
|
|
3840
3791
|
* @summary: Get a collection
|
|
3841
3792
|
* @description: Get the details of a collection by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCollectionDetail/).
|
|
@@ -3891,7 +3842,7 @@ class Catalog {
|
|
|
3891
3842
|
|
|
3892
3843
|
const {
|
|
3893
3844
|
error: res_error,
|
|
3894
|
-
} = CatalogPlatformModel.
|
|
3845
|
+
} = CatalogPlatformModel.GetCollectionDetailResponse().validate(
|
|
3895
3846
|
responseData,
|
|
3896
3847
|
{ abortEarly: false, allowUnknown: true }
|
|
3897
3848
|
);
|
|
@@ -3916,17 +3867,14 @@ class Catalog {
|
|
|
3916
3867
|
*
|
|
3917
3868
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3918
3869
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3919
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
3920
|
-
*
|
|
3921
|
-
*
|
|
3870
|
+
* @returns {Promise<CatalogPlatformModel.GetCollectionItemsResponse>} -
|
|
3871
|
+
* Success response
|
|
3922
3872
|
* @name getCollectionItems
|
|
3923
3873
|
* @summary: List items of collection
|
|
3924
3874
|
* @description: Get items from a collection specified by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCollectionItems/).
|
|
3925
3875
|
*/
|
|
3926
3876
|
async getCollectionItems(
|
|
3927
|
-
{ id, sortOn, pageId, pageSize,
|
|
3928
|
-
requestHeaders: {},
|
|
3929
|
-
},
|
|
3877
|
+
{ id, sortOn, pageId, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
3930
3878
|
{ responseHeaders } = { responseHeaders: false }
|
|
3931
3879
|
) {
|
|
3932
3880
|
const {
|
|
@@ -3937,7 +3885,6 @@ class Catalog {
|
|
|
3937
3885
|
sortOn,
|
|
3938
3886
|
pageId,
|
|
3939
3887
|
pageSize,
|
|
3940
|
-
pageNo,
|
|
3941
3888
|
},
|
|
3942
3889
|
{ abortEarly: false, allowUnknown: true }
|
|
3943
3890
|
);
|
|
@@ -3954,7 +3901,6 @@ class Catalog {
|
|
|
3954
3901
|
sortOn,
|
|
3955
3902
|
pageId,
|
|
3956
3903
|
pageSize,
|
|
3957
|
-
pageNo,
|
|
3958
3904
|
},
|
|
3959
3905
|
{ abortEarly: false, allowUnknown: false }
|
|
3960
3906
|
);
|
|
@@ -3969,7 +3915,6 @@ class Catalog {
|
|
|
3969
3915
|
query_params["sort_on"] = sortOn;
|
|
3970
3916
|
query_params["page_id"] = pageId;
|
|
3971
3917
|
query_params["page_size"] = pageSize;
|
|
3972
|
-
query_params["page_no"] = pageNo;
|
|
3973
3918
|
|
|
3974
3919
|
const response = await PlatformAPIClient.execute(
|
|
3975
3920
|
this.config,
|
|
@@ -3988,7 +3933,7 @@ class Catalog {
|
|
|
3988
3933
|
|
|
3989
3934
|
const {
|
|
3990
3935
|
error: res_error,
|
|
3991
|
-
} = CatalogPlatformModel.
|
|
3936
|
+
} = CatalogPlatformModel.GetCollectionItemsResponse().validate(
|
|
3992
3937
|
responseData,
|
|
3993
3938
|
{ abortEarly: false, allowUnknown: true }
|
|
3994
3939
|
);
|
|
@@ -4096,9 +4041,8 @@ class Catalog {
|
|
|
4096
4041
|
*
|
|
4097
4042
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4098
4043
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4099
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4100
|
-
*
|
|
4101
|
-
*
|
|
4044
|
+
* @returns {Promise<CatalogPlatformModel.GetConfigMetadataResponse>} -
|
|
4045
|
+
* Success response
|
|
4102
4046
|
* @name getConfigurationMetadata
|
|
4103
4047
|
* @summary: Get configuration metadata
|
|
4104
4048
|
* @description: Retrieve the configuraion metadata details for specific config_type for a company and an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getConfigurationMetadata/).
|
|
@@ -4168,7 +4112,7 @@ class Catalog {
|
|
|
4168
4112
|
|
|
4169
4113
|
const {
|
|
4170
4114
|
error: res_error,
|
|
4171
|
-
} = CatalogPlatformModel.
|
|
4115
|
+
} = CatalogPlatformModel.GetConfigMetadataResponse().validate(
|
|
4172
4116
|
responseData,
|
|
4173
4117
|
{ abortEarly: false, allowUnknown: true }
|
|
4174
4118
|
);
|
|
@@ -4269,8 +4213,7 @@ class Catalog {
|
|
|
4269
4213
|
* @param {CatalogPlatformApplicationValidator.GetDepartmentsParam} arg - Arg object
|
|
4270
4214
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4271
4215
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4272
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4273
|
-
* Success response
|
|
4216
|
+
* @returns {Promise<CatalogPlatformModel.DepartmentResponse>} - Success response
|
|
4274
4217
|
* @name getDepartments
|
|
4275
4218
|
* @summary: List departments
|
|
4276
4219
|
* @description: Retrieve a list of departments associated with a comapny and sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDepartments/).
|
|
@@ -4322,7 +4265,7 @@ class Catalog {
|
|
|
4322
4265
|
|
|
4323
4266
|
const {
|
|
4324
4267
|
error: res_error,
|
|
4325
|
-
} = CatalogPlatformModel.
|
|
4268
|
+
} = CatalogPlatformModel.DepartmentResponse().validate(responseData, {
|
|
4326
4269
|
abortEarly: false,
|
|
4327
4270
|
allowUnknown: true,
|
|
4328
4271
|
});
|
|
@@ -4347,7 +4290,7 @@ class Catalog {
|
|
|
4347
4290
|
*
|
|
4348
4291
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4349
4292
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4350
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4293
|
+
* @returns {Promise<CatalogPlatformModel.InventorySellerIdentifierResponsePaginated>}
|
|
4351
4294
|
* - Success response
|
|
4352
4295
|
*
|
|
4353
4296
|
* @name getDiscountedInventoryBySizeIdentifier
|
|
@@ -4360,6 +4303,7 @@ class Catalog {
|
|
|
4360
4303
|
sizeIdentifier,
|
|
4361
4304
|
pageNo,
|
|
4362
4305
|
pageSize,
|
|
4306
|
+
q,
|
|
4363
4307
|
locationIds,
|
|
4364
4308
|
requestHeaders,
|
|
4365
4309
|
} = { requestHeaders: {} },
|
|
@@ -4373,6 +4317,7 @@ class Catalog {
|
|
|
4373
4317
|
sizeIdentifier,
|
|
4374
4318
|
pageNo,
|
|
4375
4319
|
pageSize,
|
|
4320
|
+
q,
|
|
4376
4321
|
locationIds,
|
|
4377
4322
|
},
|
|
4378
4323
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -4390,6 +4335,7 @@ class Catalog {
|
|
|
4390
4335
|
sizeIdentifier,
|
|
4391
4336
|
pageNo,
|
|
4392
4337
|
pageSize,
|
|
4338
|
+
q,
|
|
4393
4339
|
locationIds,
|
|
4394
4340
|
},
|
|
4395
4341
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -4404,6 +4350,7 @@ class Catalog {
|
|
|
4404
4350
|
const query_params = {};
|
|
4405
4351
|
query_params["page_no"] = pageNo;
|
|
4406
4352
|
query_params["page_size"] = pageSize;
|
|
4353
|
+
query_params["q"] = q;
|
|
4407
4354
|
query_params["location_ids"] = locationIds;
|
|
4408
4355
|
|
|
4409
4356
|
const response = await PlatformAPIClient.execute(
|
|
@@ -4423,7 +4370,7 @@ class Catalog {
|
|
|
4423
4370
|
|
|
4424
4371
|
const {
|
|
4425
4372
|
error: res_error,
|
|
4426
|
-
} = CatalogPlatformModel.
|
|
4373
|
+
} = CatalogPlatformModel.InventorySellerIdentifierResponsePaginated().validate(
|
|
4427
4374
|
responseData,
|
|
4428
4375
|
{ abortEarly: false, allowUnknown: true }
|
|
4429
4376
|
);
|
|
@@ -4444,18 +4391,17 @@ class Catalog {
|
|
|
4444
4391
|
|
|
4445
4392
|
/**
|
|
4446
4393
|
* @param {Object} arg - Arg object.
|
|
4447
|
-
* @param {number} arg.companyId -
|
|
4448
|
-
*
|
|
4449
|
-
* @param {string} arg.applicationId -
|
|
4450
|
-
*
|
|
4451
|
-
* @param {
|
|
4452
|
-
*
|
|
4453
|
-
* @param {number} arg.sizeIdentifier - Size Identifier (Seller Identifier
|
|
4454
|
-
* or Primary Identifier).
|
|
4394
|
+
* @param {number} arg.companyId - Id of the company associated to product
|
|
4395
|
+
* that is to be viewed.
|
|
4396
|
+
* @param {string} arg.applicationId - Uniquer Application ID.
|
|
4397
|
+
* @param {number} arg.itemId - Item code of the product of which size is to be get.
|
|
4398
|
+
* @param {string} arg.sizeIdentifier - Size Identifier (Seller Identifier
|
|
4399
|
+
* or Primary Identifier) of which inventory is to get.
|
|
4455
4400
|
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
4456
4401
|
* page. Default is 12.
|
|
4402
|
+
* @param {string} [arg.q] - Search with help of store code.
|
|
4457
4403
|
* @param {number[]} [arg.locationIds] - Search by store ids.
|
|
4458
|
-
* @returns {Paginator<CatalogPlatformModel.
|
|
4404
|
+
* @returns {Paginator<CatalogPlatformModel.InventorySellerIdentifierResponsePaginated>}
|
|
4459
4405
|
* @summary: Get discounted inventory
|
|
4460
4406
|
* @description: Allows to retrieve Inventory data for particular company grouped by size and store.
|
|
4461
4407
|
*/
|
|
@@ -4465,6 +4411,7 @@ class Catalog {
|
|
|
4465
4411
|
itemId,
|
|
4466
4412
|
sizeIdentifier,
|
|
4467
4413
|
pageSize,
|
|
4414
|
+
q,
|
|
4468
4415
|
locationIds,
|
|
4469
4416
|
} = {}) {
|
|
4470
4417
|
const paginator = new Paginator();
|
|
@@ -4479,6 +4426,7 @@ class Catalog {
|
|
|
4479
4426
|
sizeIdentifier: sizeIdentifier,
|
|
4480
4427
|
pageNo: pageNo,
|
|
4481
4428
|
pageSize: pageSize,
|
|
4429
|
+
q: q,
|
|
4482
4430
|
locationIds: locationIds,
|
|
4483
4431
|
});
|
|
4484
4432
|
paginator.setPaginator({
|
|
@@ -4497,7 +4445,7 @@ class Catalog {
|
|
|
4497
4445
|
*
|
|
4498
4446
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4499
4447
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4500
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4448
|
+
* @returns {Promise<CatalogPlatformModel.GetConfigResponse>} - Success response
|
|
4501
4449
|
* @name getGroupConfigurations
|
|
4502
4450
|
* @summary: Get group configurations
|
|
4503
4451
|
* @description: Retrieve the details of product group configurations based on config types for a company and an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getGroupConfigurations/).
|
|
@@ -4567,7 +4515,7 @@ class Catalog {
|
|
|
4567
4515
|
|
|
4568
4516
|
const {
|
|
4569
4517
|
error: res_error,
|
|
4570
|
-
} = CatalogPlatformModel.
|
|
4518
|
+
} = CatalogPlatformModel.GetConfigResponse().validate(responseData, {
|
|
4571
4519
|
abortEarly: false,
|
|
4572
4520
|
allowUnknown: true,
|
|
4573
4521
|
});
|
|
@@ -4592,7 +4540,7 @@ class Catalog {
|
|
|
4592
4540
|
*
|
|
4593
4541
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4594
4542
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4595
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4543
|
+
* @returns {Promise<CatalogPlatformModel.GetConfigResponse>} - Success response
|
|
4596
4544
|
* @name getListingConfigurations
|
|
4597
4545
|
* @summary: Get listing configurations
|
|
4598
4546
|
* @description: Retrieve product listing configurations based on specific config_type for a company and an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getListingConfigurations/).
|
|
@@ -4659,7 +4607,7 @@ class Catalog {
|
|
|
4659
4607
|
|
|
4660
4608
|
const {
|
|
4661
4609
|
error: res_error,
|
|
4662
|
-
} = CatalogPlatformModel.
|
|
4610
|
+
} = CatalogPlatformModel.GetConfigResponse().validate(responseData, {
|
|
4663
4611
|
abortEarly: false,
|
|
4664
4612
|
allowUnknown: true,
|
|
4665
4613
|
});
|
|
@@ -4763,8 +4711,7 @@ class Catalog {
|
|
|
4763
4711
|
* @param {CatalogPlatformApplicationValidator.GetQueryFiltersParam} arg - Arg object
|
|
4764
4712
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4765
4713
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4766
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4767
|
-
* Success response
|
|
4714
|
+
* @returns {Promise<CatalogPlatformModel.GetQueryFiltersResponse>} - Success response
|
|
4768
4715
|
* @name getQueryFilters
|
|
4769
4716
|
* @summary: Get collection query filters
|
|
4770
4717
|
* @description: Retrieve query filters to configure a collection for a company and a sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getQueryFilters/).
|
|
@@ -4816,10 +4763,10 @@ class Catalog {
|
|
|
4816
4763
|
|
|
4817
4764
|
const {
|
|
4818
4765
|
error: res_error,
|
|
4819
|
-
} = CatalogPlatformModel.
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
);
|
|
4766
|
+
} = CatalogPlatformModel.GetQueryFiltersResponse().validate(responseData, {
|
|
4767
|
+
abortEarly: false,
|
|
4768
|
+
allowUnknown: true,
|
|
4769
|
+
});
|
|
4823
4770
|
|
|
4824
4771
|
if (res_error) {
|
|
4825
4772
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4841,7 +4788,7 @@ class Catalog {
|
|
|
4841
4788
|
*
|
|
4842
4789
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4843
4790
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4844
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4791
|
+
* @returns {Promise<CatalogPlatformModel.GetSearchConfigurationResponse>}
|
|
4845
4792
|
* - Success response
|
|
4846
4793
|
*
|
|
4847
4794
|
* @name getSearchConfiguration
|
|
@@ -4895,7 +4842,7 @@ class Catalog {
|
|
|
4895
4842
|
|
|
4896
4843
|
const {
|
|
4897
4844
|
error: res_error,
|
|
4898
|
-
} = CatalogPlatformModel.
|
|
4845
|
+
} = CatalogPlatformModel.GetSearchConfigurationResponse().validate(
|
|
4899
4846
|
responseData,
|
|
4900
4847
|
{ abortEarly: false, allowUnknown: true }
|
|
4901
4848
|
);
|
|
@@ -4920,9 +4867,8 @@ class Catalog {
|
|
|
4920
4867
|
*
|
|
4921
4868
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4922
4869
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4923
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
4924
|
-
*
|
|
4925
|
-
*
|
|
4870
|
+
* @returns {Promise<CatalogPlatformModel.GetSearchWordsDetailResponse>} -
|
|
4871
|
+
* Success response
|
|
4926
4872
|
* @name getSearchKeywords
|
|
4927
4873
|
* @summary: Get search keywords
|
|
4928
4874
|
* @description: Retrieve a list of a specific list of keywords by its id for a specific company and sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSearchKeywords/).
|
|
@@ -4978,7 +4924,7 @@ class Catalog {
|
|
|
4978
4924
|
|
|
4979
4925
|
const {
|
|
4980
4926
|
error: res_error,
|
|
4981
|
-
} = CatalogPlatformModel.
|
|
4927
|
+
} = CatalogPlatformModel.GetSearchWordsDetailResponse().validate(
|
|
4982
4928
|
responseData,
|
|
4983
4929
|
{ abortEarly: false, allowUnknown: true }
|
|
4984
4930
|
);
|
|
@@ -5003,8 +4949,7 @@ class Catalog {
|
|
|
5003
4949
|
*
|
|
5004
4950
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5005
4951
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5006
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
5007
|
-
* Success response
|
|
4952
|
+
* @returns {Promise<CatalogPlatformModel.ConfigSuccessResponse>} - Success response
|
|
5008
4953
|
* @name updateAllowSingle
|
|
5009
4954
|
* @summary: Update 'Allow Single' setting
|
|
5010
4955
|
* @description: Modify allow single flag for filters of the sales channel for a company and an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAllowSingle/).
|
|
@@ -5060,10 +5005,10 @@ class Catalog {
|
|
|
5060
5005
|
|
|
5061
5006
|
const {
|
|
5062
5007
|
error: res_error,
|
|
5063
|
-
} = CatalogPlatformModel.
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
);
|
|
5008
|
+
} = CatalogPlatformModel.ConfigSuccessResponse().validate(responseData, {
|
|
5009
|
+
abortEarly: false,
|
|
5010
|
+
allowUnknown: true,
|
|
5011
|
+
});
|
|
5067
5012
|
|
|
5068
5013
|
if (res_error) {
|
|
5069
5014
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -5249,7 +5194,7 @@ class Catalog {
|
|
|
5249
5194
|
*
|
|
5250
5195
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5251
5196
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5252
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
5197
|
+
* @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
|
|
5253
5198
|
* @name updateAppCategoryReturnConfiguration
|
|
5254
5199
|
* @summary: Update return Configuration
|
|
5255
5200
|
* @description: Update Category level sales channel Return Configuration setttings - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppCategoryReturnConfiguration/).
|
|
@@ -5305,7 +5250,7 @@ class Catalog {
|
|
|
5305
5250
|
|
|
5306
5251
|
const {
|
|
5307
5252
|
error: res_error,
|
|
5308
|
-
} = CatalogPlatformModel.
|
|
5253
|
+
} = CatalogPlatformModel.SuccessResponse().validate(responseData, {
|
|
5309
5254
|
abortEarly: false,
|
|
5310
5255
|
allowUnknown: true,
|
|
5311
5256
|
});
|
|
@@ -5497,7 +5442,7 @@ class Catalog {
|
|
|
5497
5442
|
* @returns {Promise<CatalogPlatformModel.SuccessResponseObject>} - Success response
|
|
5498
5443
|
* @name updateAppProduct
|
|
5499
5444
|
* @summary: Update sales channel product
|
|
5500
|
-
* @description: Allows to update data associated to a item by its item_id for
|
|
5445
|
+
* @description: Allows to update data associated to a item by its item_id for an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAppProduct/).
|
|
5501
5446
|
*/
|
|
5502
5447
|
async updateAppProduct(
|
|
5503
5448
|
{ itemId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -5658,9 +5603,8 @@ class Catalog {
|
|
|
5658
5603
|
*
|
|
5659
5604
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5660
5605
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5661
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
5662
|
-
*
|
|
5663
|
-
*
|
|
5606
|
+
* @returns {Promise<CatalogPlatformModel.GetAutocompleteWordsResponse>} -
|
|
5607
|
+
* Success response
|
|
5664
5608
|
* @name updateAutocompleteKeyword
|
|
5665
5609
|
* @summary: Update autocomplete keyword
|
|
5666
5610
|
* @description: Update a specific autocomplete keyword configuration by its id for a specific sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateAutocompleteKeyword/).
|
|
@@ -5718,7 +5662,7 @@ class Catalog {
|
|
|
5718
5662
|
|
|
5719
5663
|
const {
|
|
5720
5664
|
error: res_error,
|
|
5721
|
-
} = CatalogPlatformModel.
|
|
5665
|
+
} = CatalogPlatformModel.GetAutocompleteWordsResponse().validate(
|
|
5722
5666
|
responseData,
|
|
5723
5667
|
{ abortEarly: false, allowUnknown: true }
|
|
5724
5668
|
);
|
|
@@ -5824,8 +5768,7 @@ class Catalog {
|
|
|
5824
5768
|
*
|
|
5825
5769
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5826
5770
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5827
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
5828
|
-
* Success response
|
|
5771
|
+
* @returns {Promise<CatalogPlatformModel.ConfigSuccessResponse>} - Success response
|
|
5829
5772
|
* @name updateDefaultSort
|
|
5830
5773
|
* @summary: Update default sorting
|
|
5831
5774
|
* @description: Modify the default sort key configuration for a company and an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateDefaultSort/).
|
|
@@ -5881,10 +5824,10 @@ class Catalog {
|
|
|
5881
5824
|
|
|
5882
5825
|
const {
|
|
5883
5826
|
error: res_error,
|
|
5884
|
-
} = CatalogPlatformModel.
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
);
|
|
5827
|
+
} = CatalogPlatformModel.ConfigSuccessResponse().validate(responseData, {
|
|
5828
|
+
abortEarly: false,
|
|
5829
|
+
allowUnknown: true,
|
|
5830
|
+
});
|
|
5888
5831
|
|
|
5889
5832
|
if (res_error) {
|
|
5890
5833
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -6076,7 +6019,7 @@ class Catalog {
|
|
|
6076
6019
|
*
|
|
6077
6020
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
6078
6021
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
6079
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
6022
|
+
* @returns {Promise<CatalogPlatformModel.UpdateSearchConfigurationResponse>}
|
|
6080
6023
|
* - Success response
|
|
6081
6024
|
*
|
|
6082
6025
|
* @name updateSearchConfiguration
|
|
@@ -6134,7 +6077,7 @@ class Catalog {
|
|
|
6134
6077
|
|
|
6135
6078
|
const {
|
|
6136
6079
|
error: res_error,
|
|
6137
|
-
} = CatalogPlatformModel.
|
|
6080
|
+
} = CatalogPlatformModel.UpdateSearchConfigurationResponse().validate(
|
|
6138
6081
|
responseData,
|
|
6139
6082
|
{ abortEarly: false, allowUnknown: true }
|
|
6140
6083
|
);
|