@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +5 -3
- package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
- package/sdk/application/Cart/CartApplicationModel.js +74 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationValidator.js +4 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
- package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
- package/sdk/application/Content/ContentApplicationClient.js +246 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
- package/sdk/application/Content/ContentApplicationModel.js +252 -0
- package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
- package/sdk/application/Content/ContentApplicationValidator.js +41 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
- package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +32 -8
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
- package/sdk/application/Order/OrderApplicationValidator.js +8 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
- package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
- package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
- package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
- package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
- package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
- package/sdk/application/User/UserApplicationClient.d.ts +33 -0
- package/sdk/application/User/UserApplicationClient.js +239 -0
- package/sdk/application/User/UserApplicationModel.d.ts +28 -13
- package/sdk/application/User/UserApplicationModel.js +36 -12
- package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
- package/sdk/application/User/UserApplicationValidator.js +36 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
- package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
- package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
- package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
- package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
- package/sdk/platform/Cart/CartPlatformModel.js +71 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
- package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
- package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
- package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
- package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
- package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
- package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +4 -2
- package/sdk/platform/PlatformClient.js +8 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
- package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
- package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
- package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
- package/sdk/platform/User/UserPlatformModel.js +256 -5
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
- package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
- package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
- package/sdk/public/Billing/BillingPublicClient.js +116 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
- package/sdk/public/Billing/BillingPublicModel.js +96 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
- package/sdk/public/Billing/BillingPublicValidator.js +19 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +114 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
- package/sdk/public/Content/ContentPublicModel.js +60 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +4 -0
- package/sdk/public/PublicClient.js +8 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
- package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
|
@@ -713,6 +713,13 @@ const Joi = require("joi");
|
|
|
713
713
|
* @property {number} [priority]
|
|
714
714
|
*/
|
|
715
715
|
|
|
716
|
+
/**
|
|
717
|
+
* @typedef CollectionItemSchemaV2
|
|
718
|
+
* @property {string} action
|
|
719
|
+
* @property {number} item_id
|
|
720
|
+
* @property {number} [priority]
|
|
721
|
+
*/
|
|
722
|
+
|
|
716
723
|
/**
|
|
717
724
|
* @typedef CollectionItemUpdate
|
|
718
725
|
* @property {boolean} [allow_facets]
|
|
@@ -723,6 +730,16 @@ const Joi = require("joi");
|
|
|
723
730
|
* @property {string[]} [visible_facets_keys]
|
|
724
731
|
*/
|
|
725
732
|
|
|
733
|
+
/**
|
|
734
|
+
* @typedef CollectionItemUpdateSchemaV2
|
|
735
|
+
* @property {boolean} [allow_facets]
|
|
736
|
+
* @property {boolean} [allow_sort]
|
|
737
|
+
* @property {CollectionItemSchemaV2[]} [items]
|
|
738
|
+
* @property {CollectionQuerySchemaV2[]} [query]
|
|
739
|
+
* @property {string} type
|
|
740
|
+
* @property {string[]} [visible_facets_keys]
|
|
741
|
+
*/
|
|
742
|
+
|
|
726
743
|
/**
|
|
727
744
|
* @typedef CollectionListingFilter
|
|
728
745
|
* @property {CollectionListingFilterTag[]} [tags]
|
|
@@ -751,6 +768,14 @@ const Joi = require("joi");
|
|
|
751
768
|
* @property {Object[]} value - The value of the attribute of the collection query
|
|
752
769
|
*/
|
|
753
770
|
|
|
771
|
+
/**
|
|
772
|
+
* @typedef CollectionQuerySchemaV2
|
|
773
|
+
* @property {string} attribute - The attribute of the collection query
|
|
774
|
+
* @property {string} op - The operation to be performed on the attribute of the
|
|
775
|
+
* collection query
|
|
776
|
+
* @property {Object[]} value - The value of the attribute of the collection query
|
|
777
|
+
*/
|
|
778
|
+
|
|
754
779
|
/**
|
|
755
780
|
* @typedef CollectionSchedule
|
|
756
781
|
* @property {string} [cron]
|
|
@@ -760,6 +785,11 @@ const Joi = require("joi");
|
|
|
760
785
|
* @property {string} [start]
|
|
761
786
|
*/
|
|
762
787
|
|
|
788
|
+
/**
|
|
789
|
+
* @typedef CommonResponseSchemaCollection
|
|
790
|
+
* @property {string} [message]
|
|
791
|
+
*/
|
|
792
|
+
|
|
763
793
|
/**
|
|
764
794
|
* @typedef CompanyBrandDetail
|
|
765
795
|
* @property {number} [brand_id]
|
|
@@ -943,6 +973,12 @@ const Joi = require("joi");
|
|
|
943
973
|
* @property {string[]} [visible_facets_keys]
|
|
944
974
|
*/
|
|
945
975
|
|
|
976
|
+
/**
|
|
977
|
+
* @typedef CreatedBy
|
|
978
|
+
* @property {string} [user_id]
|
|
979
|
+
* @property {string} [username]
|
|
980
|
+
*/
|
|
981
|
+
|
|
946
982
|
/**
|
|
947
983
|
* @typedef CreateSearchConfigurationRequest
|
|
948
984
|
* @property {string} application_id - The application id where custom search
|
|
@@ -1206,6 +1242,12 @@ const Joi = require("joi");
|
|
|
1206
1242
|
* @property {string} [state]
|
|
1207
1243
|
*/
|
|
1208
1244
|
|
|
1245
|
+
/**
|
|
1246
|
+
* @typedef GetAllMarketplaces
|
|
1247
|
+
* @property {Marketplaces[]} [items]
|
|
1248
|
+
* @property {Page} [page]
|
|
1249
|
+
*/
|
|
1250
|
+
|
|
1209
1251
|
/**
|
|
1210
1252
|
* @typedef GetAllSizes
|
|
1211
1253
|
* @property {AllSizes[]} [all_sizes]
|
|
@@ -1282,6 +1324,35 @@ const Joi = require("joi");
|
|
|
1282
1324
|
* @property {string[]} [visible_facets_keys]
|
|
1283
1325
|
*/
|
|
1284
1326
|
|
|
1327
|
+
/**
|
|
1328
|
+
* @typedef GetCollectionDetailResponse
|
|
1329
|
+
* @property {Object} [_custom_json]
|
|
1330
|
+
* @property {Object} [_locale_language]
|
|
1331
|
+
* @property {CollectionSchedule} [_schedule]
|
|
1332
|
+
* @property {Object} [action]
|
|
1333
|
+
* @property {boolean} [allow_facets]
|
|
1334
|
+
* @property {boolean} [allow_sort]
|
|
1335
|
+
* @property {string} [app_id]
|
|
1336
|
+
* @property {CollectionBadge} [badge]
|
|
1337
|
+
* @property {ImageUrls} [banners]
|
|
1338
|
+
* @property {string} [description]
|
|
1339
|
+
* @property {boolean} [is_active]
|
|
1340
|
+
* @property {boolean} [is_visible]
|
|
1341
|
+
* @property {Media} [logo]
|
|
1342
|
+
* @property {Object} [meta]
|
|
1343
|
+
* @property {string} [name]
|
|
1344
|
+
* @property {number} [priority]
|
|
1345
|
+
* @property {boolean} [published]
|
|
1346
|
+
* @property {CollectionQuery[]} [query]
|
|
1347
|
+
* @property {SeoDetail} [seo]
|
|
1348
|
+
* @property {string} [slug]
|
|
1349
|
+
* @property {string} [sort_on]
|
|
1350
|
+
* @property {string[]} [tags]
|
|
1351
|
+
* @property {string} [type]
|
|
1352
|
+
* @property {string} [uid]
|
|
1353
|
+
* @property {string[]} [visible_facets_keys]
|
|
1354
|
+
*/
|
|
1355
|
+
|
|
1285
1356
|
/**
|
|
1286
1357
|
* @typedef GetCollectionItemsResponse
|
|
1287
1358
|
* @property {ProductFilters[]} [filters]
|
|
@@ -1290,6 +1361,12 @@ const Joi = require("joi");
|
|
|
1290
1361
|
* @property {ProductSortOn[]} [sort_on]
|
|
1291
1362
|
*/
|
|
1292
1363
|
|
|
1364
|
+
/**
|
|
1365
|
+
* @typedef GetCollectionItemsResponseSchemaV2
|
|
1366
|
+
* @property {ProductDetailV2[]} [items]
|
|
1367
|
+
* @property {Page1} [page]
|
|
1368
|
+
*/
|
|
1369
|
+
|
|
1293
1370
|
/**
|
|
1294
1371
|
* @typedef GetCollectionListingResponse
|
|
1295
1372
|
* @property {CollectionListingFilter} [filters]
|
|
@@ -1325,6 +1402,7 @@ const Joi = require("joi");
|
|
|
1325
1402
|
* @typedef GetConfigMetadataResponse
|
|
1326
1403
|
* @property {Object[]} [condition]
|
|
1327
1404
|
* @property {Object[]} data
|
|
1405
|
+
* @property {Page} [page]
|
|
1328
1406
|
* @property {Object[]} [values]
|
|
1329
1407
|
*/
|
|
1330
1408
|
|
|
@@ -1480,6 +1558,13 @@ const Joi = require("joi");
|
|
|
1480
1558
|
* @property {Size[]} [sizes]
|
|
1481
1559
|
*/
|
|
1482
1560
|
|
|
1561
|
+
/**
|
|
1562
|
+
* @typedef GetQueryFiltersResponse
|
|
1563
|
+
* @property {ProductFilters[]} [filters]
|
|
1564
|
+
* @property {Object} operators
|
|
1565
|
+
* @property {ProductSortOn[]} [sort_on]
|
|
1566
|
+
*/
|
|
1567
|
+
|
|
1483
1568
|
/**
|
|
1484
1569
|
* @typedef GetSearchConfigurationResponse
|
|
1485
1570
|
* @property {string} application_id - The application id where custom search
|
|
@@ -2069,6 +2154,22 @@ const Joi = require("joi");
|
|
|
2069
2154
|
* @property {string} [name]
|
|
2070
2155
|
*/
|
|
2071
2156
|
|
|
2157
|
+
/**
|
|
2158
|
+
* @typedef Marketplaces
|
|
2159
|
+
* @property {string} [_id]
|
|
2160
|
+
* @property {string} [app_id]
|
|
2161
|
+
* @property {number[]} [brand_ids]
|
|
2162
|
+
* @property {number} [company_id]
|
|
2163
|
+
* @property {CreatedBy} [created_by]
|
|
2164
|
+
* @property {Object} [created_on]
|
|
2165
|
+
* @property {boolean} [enabled]
|
|
2166
|
+
* @property {CreatedBy} [modified_by]
|
|
2167
|
+
* @property {Object} [modified_on]
|
|
2168
|
+
* @property {string} [opt_level]
|
|
2169
|
+
* @property {string} [platforms]
|
|
2170
|
+
* @property {number[]} [store_ids]
|
|
2171
|
+
*/
|
|
2172
|
+
|
|
2072
2173
|
/**
|
|
2073
2174
|
* @typedef Media
|
|
2074
2175
|
* @property {Object} [meta]
|
|
@@ -2224,6 +2325,19 @@ const Joi = require("joi");
|
|
|
2224
2325
|
* @property {string} type
|
|
2225
2326
|
*/
|
|
2226
2327
|
|
|
2328
|
+
/**
|
|
2329
|
+
* @typedef Page1
|
|
2330
|
+
* @property {boolean} [ca]
|
|
2331
|
+
* @property {string} [department]
|
|
2332
|
+
* @property {number} [page_no]
|
|
2333
|
+
* @property {number} [page_size]
|
|
2334
|
+
* @property {string} [q]
|
|
2335
|
+
* @property {string} [sort]
|
|
2336
|
+
* @property {string} [sort_on]
|
|
2337
|
+
* @property {string} [type]
|
|
2338
|
+
* @property {string} [variant]
|
|
2339
|
+
*/
|
|
2340
|
+
|
|
2227
2341
|
/**
|
|
2228
2342
|
* @typedef PageResponse
|
|
2229
2343
|
* @property {string} [current] - It is the current page of the page response schema.
|
|
@@ -2544,6 +2658,21 @@ const Joi = require("joi");
|
|
|
2544
2658
|
* @property {string} [title]
|
|
2545
2659
|
*/
|
|
2546
2660
|
|
|
2661
|
+
/**
|
|
2662
|
+
* @typedef ProductDetailV2
|
|
2663
|
+
* @property {ProductBrand} [brand]
|
|
2664
|
+
* @property {boolean} [is_excluded]
|
|
2665
|
+
* @property {boolean} [is_pinned]
|
|
2666
|
+
* @property {string} [item_code]
|
|
2667
|
+
* @property {string} [item_type]
|
|
2668
|
+
* @property {Media[]} [medias]
|
|
2669
|
+
* @property {string} [name]
|
|
2670
|
+
* @property {number} [priority]
|
|
2671
|
+
* @property {string} [short_description]
|
|
2672
|
+
* @property {string} slug
|
|
2673
|
+
* @property {number} [uid]
|
|
2674
|
+
*/
|
|
2675
|
+
|
|
2547
2676
|
/**
|
|
2548
2677
|
* @typedef ProductDownloadsResponse
|
|
2549
2678
|
* @property {ProductTemplateExportResponse[]} [items] - The items of the job.
|
|
@@ -3032,6 +3161,7 @@ const Joi = require("joi");
|
|
|
3032
3161
|
/**
|
|
3033
3162
|
* @typedef SEOData
|
|
3034
3163
|
* @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs]
|
|
3164
|
+
* @property {string} [canonical_url]
|
|
3035
3165
|
* @property {string} [description]
|
|
3036
3166
|
* @property {Metatags[]} [meta_tags]
|
|
3037
3167
|
* @property {Sitemap} [sitemap]
|
|
@@ -3041,6 +3171,7 @@ const Joi = require("joi");
|
|
|
3041
3171
|
/**
|
|
3042
3172
|
* @typedef SeoDetail
|
|
3043
3173
|
* @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs]
|
|
3174
|
+
* @property {string} [canonical_url]
|
|
3044
3175
|
* @property {string} [description]
|
|
3045
3176
|
* @property {Metatags[]} [meta_tags]
|
|
3046
3177
|
* @property {Object} [sitemap]
|
|
@@ -3280,6 +3411,29 @@ const Joi = require("joi");
|
|
|
3280
3411
|
* @property {string} [message]
|
|
3281
3412
|
*/
|
|
3282
3413
|
|
|
3414
|
+
/**
|
|
3415
|
+
* @typedef UpdateMarketplaceOptinRequest
|
|
3416
|
+
* @property {number[]} [brand_ids]
|
|
3417
|
+
* @property {number} [company_id]
|
|
3418
|
+
* @property {boolean} [enabled]
|
|
3419
|
+
* @property {string} [opt_level]
|
|
3420
|
+
* @property {string} [platform]
|
|
3421
|
+
* @property {number[]} [store_ids]
|
|
3422
|
+
*/
|
|
3423
|
+
|
|
3424
|
+
/**
|
|
3425
|
+
* @typedef UpdateMarketplaceOptinResponse
|
|
3426
|
+
* @property {string} [app_id]
|
|
3427
|
+
* @property {number[]} [brand_ids]
|
|
3428
|
+
* @property {number} [company_id]
|
|
3429
|
+
* @property {CreatedBy} [created_by]
|
|
3430
|
+
* @property {boolean} [enabled]
|
|
3431
|
+
* @property {CreatedBy} [modified_by]
|
|
3432
|
+
* @property {string} [opt_level]
|
|
3433
|
+
* @property {string} [platform]
|
|
3434
|
+
* @property {number[]} [store_ids]
|
|
3435
|
+
*/
|
|
3436
|
+
|
|
3283
3437
|
/**
|
|
3284
3438
|
* @typedef UpdateSearchConfigurationRequest
|
|
3285
3439
|
* @property {string} application_id - The application id where custom search
|
|
@@ -4343,6 +4497,15 @@ class CatalogPlatformModel {
|
|
|
4343
4497
|
});
|
|
4344
4498
|
}
|
|
4345
4499
|
|
|
4500
|
+
/** @returns {CollectionItemSchemaV2} */
|
|
4501
|
+
static CollectionItemSchemaV2() {
|
|
4502
|
+
return Joi.object({
|
|
4503
|
+
action: Joi.string().allow("").required(),
|
|
4504
|
+
item_id: Joi.number().required(),
|
|
4505
|
+
priority: Joi.number(),
|
|
4506
|
+
});
|
|
4507
|
+
}
|
|
4508
|
+
|
|
4346
4509
|
/** @returns {CollectionItemUpdate} */
|
|
4347
4510
|
static CollectionItemUpdate() {
|
|
4348
4511
|
return Joi.object({
|
|
@@ -4355,6 +4518,18 @@ class CatalogPlatformModel {
|
|
|
4355
4518
|
});
|
|
4356
4519
|
}
|
|
4357
4520
|
|
|
4521
|
+
/** @returns {CollectionItemUpdateSchemaV2} */
|
|
4522
|
+
static CollectionItemUpdateSchemaV2() {
|
|
4523
|
+
return Joi.object({
|
|
4524
|
+
allow_facets: Joi.boolean(),
|
|
4525
|
+
allow_sort: Joi.boolean(),
|
|
4526
|
+
items: Joi.array().items(CatalogPlatformModel.CollectionItemSchemaV2()),
|
|
4527
|
+
query: Joi.array().items(CatalogPlatformModel.CollectionQuerySchemaV2()),
|
|
4528
|
+
type: Joi.string().allow("").required(),
|
|
4529
|
+
visible_facets_keys: Joi.array().items(Joi.string().allow("")),
|
|
4530
|
+
});
|
|
4531
|
+
}
|
|
4532
|
+
|
|
4358
4533
|
/** @returns {CollectionListingFilter} */
|
|
4359
4534
|
static CollectionListingFilter() {
|
|
4360
4535
|
return Joi.object({
|
|
@@ -4394,6 +4569,15 @@ class CatalogPlatformModel {
|
|
|
4394
4569
|
});
|
|
4395
4570
|
}
|
|
4396
4571
|
|
|
4572
|
+
/** @returns {CollectionQuerySchemaV2} */
|
|
4573
|
+
static CollectionQuerySchemaV2() {
|
|
4574
|
+
return Joi.object({
|
|
4575
|
+
attribute: Joi.string().allow("").required(),
|
|
4576
|
+
op: Joi.string().allow("").required(),
|
|
4577
|
+
value: Joi.array().items(Joi.any()).required(),
|
|
4578
|
+
});
|
|
4579
|
+
}
|
|
4580
|
+
|
|
4397
4581
|
/** @returns {CollectionSchedule} */
|
|
4398
4582
|
static CollectionSchedule() {
|
|
4399
4583
|
return Joi.object({
|
|
@@ -4405,6 +4589,13 @@ class CatalogPlatformModel {
|
|
|
4405
4589
|
});
|
|
4406
4590
|
}
|
|
4407
4591
|
|
|
4592
|
+
/** @returns {CommonResponseSchemaCollection} */
|
|
4593
|
+
static CommonResponseSchemaCollection() {
|
|
4594
|
+
return Joi.object({
|
|
4595
|
+
message: Joi.string().allow(""),
|
|
4596
|
+
});
|
|
4597
|
+
}
|
|
4598
|
+
|
|
4408
4599
|
/** @returns {CompanyBrandDetail} */
|
|
4409
4600
|
static CompanyBrandDetail() {
|
|
4410
4601
|
return Joi.object({
|
|
@@ -4640,6 +4831,14 @@ class CatalogPlatformModel {
|
|
|
4640
4831
|
});
|
|
4641
4832
|
}
|
|
4642
4833
|
|
|
4834
|
+
/** @returns {CreatedBy} */
|
|
4835
|
+
static CreatedBy() {
|
|
4836
|
+
return Joi.object({
|
|
4837
|
+
user_id: Joi.string().allow(""),
|
|
4838
|
+
username: Joi.string().allow(""),
|
|
4839
|
+
});
|
|
4840
|
+
}
|
|
4841
|
+
|
|
4643
4842
|
/** @returns {CreateSearchConfigurationRequest} */
|
|
4644
4843
|
static CreateSearchConfigurationRequest() {
|
|
4645
4844
|
return Joi.object({
|
|
@@ -4954,6 +5153,14 @@ class CatalogPlatformModel {
|
|
|
4954
5153
|
});
|
|
4955
5154
|
}
|
|
4956
5155
|
|
|
5156
|
+
/** @returns {GetAllMarketplaces} */
|
|
5157
|
+
static GetAllMarketplaces() {
|
|
5158
|
+
return Joi.object({
|
|
5159
|
+
items: Joi.array().items(CatalogPlatformModel.Marketplaces()),
|
|
5160
|
+
page: CatalogPlatformModel.Page(),
|
|
5161
|
+
});
|
|
5162
|
+
}
|
|
5163
|
+
|
|
4957
5164
|
/** @returns {GetAllSizes} */
|
|
4958
5165
|
static GetAllSizes() {
|
|
4959
5166
|
return Joi.object({
|
|
@@ -5048,6 +5255,37 @@ class CatalogPlatformModel {
|
|
|
5048
5255
|
});
|
|
5049
5256
|
}
|
|
5050
5257
|
|
|
5258
|
+
/** @returns {GetCollectionDetailResponse} */
|
|
5259
|
+
static GetCollectionDetailResponse() {
|
|
5260
|
+
return Joi.object({
|
|
5261
|
+
_custom_json: Joi.any(),
|
|
5262
|
+
_locale_language: Joi.any(),
|
|
5263
|
+
_schedule: CatalogPlatformModel.CollectionSchedule(),
|
|
5264
|
+
action: Joi.any(),
|
|
5265
|
+
allow_facets: Joi.boolean(),
|
|
5266
|
+
allow_sort: Joi.boolean(),
|
|
5267
|
+
app_id: Joi.string().allow(""),
|
|
5268
|
+
badge: CatalogPlatformModel.CollectionBadge(),
|
|
5269
|
+
banners: CatalogPlatformModel.ImageUrls(),
|
|
5270
|
+
description: Joi.string().allow(""),
|
|
5271
|
+
is_active: Joi.boolean(),
|
|
5272
|
+
is_visible: Joi.boolean(),
|
|
5273
|
+
logo: CatalogPlatformModel.Media(),
|
|
5274
|
+
meta: Joi.any(),
|
|
5275
|
+
name: Joi.string().allow(""),
|
|
5276
|
+
priority: Joi.number(),
|
|
5277
|
+
published: Joi.boolean(),
|
|
5278
|
+
query: Joi.array().items(CatalogPlatformModel.CollectionQuery()),
|
|
5279
|
+
seo: CatalogPlatformModel.SeoDetail(),
|
|
5280
|
+
slug: Joi.string().allow(""),
|
|
5281
|
+
sort_on: Joi.string().allow(""),
|
|
5282
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
5283
|
+
type: Joi.string().allow(""),
|
|
5284
|
+
uid: Joi.string().allow(""),
|
|
5285
|
+
visible_facets_keys: Joi.array().items(Joi.string().allow("")),
|
|
5286
|
+
});
|
|
5287
|
+
}
|
|
5288
|
+
|
|
5051
5289
|
/** @returns {GetCollectionItemsResponse} */
|
|
5052
5290
|
static GetCollectionItemsResponse() {
|
|
5053
5291
|
return Joi.object({
|
|
@@ -5058,6 +5296,14 @@ class CatalogPlatformModel {
|
|
|
5058
5296
|
});
|
|
5059
5297
|
}
|
|
5060
5298
|
|
|
5299
|
+
/** @returns {GetCollectionItemsResponseSchemaV2} */
|
|
5300
|
+
static GetCollectionItemsResponseSchemaV2() {
|
|
5301
|
+
return Joi.object({
|
|
5302
|
+
items: Joi.array().items(CatalogPlatformModel.ProductDetailV2()),
|
|
5303
|
+
page: CatalogPlatformModel.Page1(),
|
|
5304
|
+
});
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5061
5307
|
/** @returns {GetCollectionListingResponse} */
|
|
5062
5308
|
static GetCollectionListingResponse() {
|
|
5063
5309
|
return Joi.object({
|
|
@@ -5100,6 +5346,7 @@ class CatalogPlatformModel {
|
|
|
5100
5346
|
return Joi.object({
|
|
5101
5347
|
condition: Joi.array().items(Joi.any()),
|
|
5102
5348
|
data: Joi.array().items(Joi.any()).required(),
|
|
5349
|
+
page: CatalogPlatformModel.Page(),
|
|
5103
5350
|
values: Joi.array().items(Joi.any()),
|
|
5104
5351
|
});
|
|
5105
5352
|
}
|
|
@@ -5284,6 +5531,15 @@ class CatalogPlatformModel {
|
|
|
5284
5531
|
});
|
|
5285
5532
|
}
|
|
5286
5533
|
|
|
5534
|
+
/** @returns {GetQueryFiltersResponse} */
|
|
5535
|
+
static GetQueryFiltersResponse() {
|
|
5536
|
+
return Joi.object({
|
|
5537
|
+
filters: Joi.array().items(CatalogPlatformModel.ProductFilters()),
|
|
5538
|
+
operators: Joi.object().pattern(/\S/, Joi.string().allow("")).required(),
|
|
5539
|
+
sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()),
|
|
5540
|
+
});
|
|
5541
|
+
}
|
|
5542
|
+
|
|
5287
5543
|
/** @returns {GetSearchConfigurationResponse} */
|
|
5288
5544
|
static GetSearchConfigurationResponse() {
|
|
5289
5545
|
return Joi.object({
|
|
@@ -5960,6 +6216,24 @@ class CatalogPlatformModel {
|
|
|
5960
6216
|
});
|
|
5961
6217
|
}
|
|
5962
6218
|
|
|
6219
|
+
/** @returns {Marketplaces} */
|
|
6220
|
+
static Marketplaces() {
|
|
6221
|
+
return Joi.object({
|
|
6222
|
+
_id: Joi.string().allow(""),
|
|
6223
|
+
app_id: Joi.string().allow(""),
|
|
6224
|
+
brand_ids: Joi.array().items(Joi.number()),
|
|
6225
|
+
company_id: Joi.number(),
|
|
6226
|
+
created_by: CatalogPlatformModel.CreatedBy(),
|
|
6227
|
+
created_on: Joi.any(),
|
|
6228
|
+
enabled: Joi.boolean(),
|
|
6229
|
+
modified_by: CatalogPlatformModel.CreatedBy(),
|
|
6230
|
+
modified_on: Joi.any(),
|
|
6231
|
+
opt_level: Joi.string().allow(""),
|
|
6232
|
+
platforms: Joi.string().allow(""),
|
|
6233
|
+
store_ids: Joi.array().items(Joi.number()),
|
|
6234
|
+
});
|
|
6235
|
+
}
|
|
6236
|
+
|
|
5963
6237
|
/** @returns {Media} */
|
|
5964
6238
|
static Media() {
|
|
5965
6239
|
return Joi.object({
|
|
@@ -6162,6 +6436,21 @@ class CatalogPlatformModel {
|
|
|
6162
6436
|
});
|
|
6163
6437
|
}
|
|
6164
6438
|
|
|
6439
|
+
/** @returns {Page1} */
|
|
6440
|
+
static Page1() {
|
|
6441
|
+
return Joi.object({
|
|
6442
|
+
ca: Joi.boolean(),
|
|
6443
|
+
department: Joi.string().allow(""),
|
|
6444
|
+
page_no: Joi.number(),
|
|
6445
|
+
page_size: Joi.number(),
|
|
6446
|
+
q: Joi.string().allow(""),
|
|
6447
|
+
sort: Joi.string().allow(""),
|
|
6448
|
+
sort_on: Joi.string().allow(""),
|
|
6449
|
+
type: Joi.string().allow(""),
|
|
6450
|
+
variant: Joi.string().allow(""),
|
|
6451
|
+
});
|
|
6452
|
+
}
|
|
6453
|
+
|
|
6165
6454
|
/** @returns {PageResponse} */
|
|
6166
6455
|
static PageResponse() {
|
|
6167
6456
|
return Joi.object({
|
|
@@ -6532,6 +6821,23 @@ class CatalogPlatformModel {
|
|
|
6532
6821
|
});
|
|
6533
6822
|
}
|
|
6534
6823
|
|
|
6824
|
+
/** @returns {ProductDetailV2} */
|
|
6825
|
+
static ProductDetailV2() {
|
|
6826
|
+
return Joi.object({
|
|
6827
|
+
brand: CatalogPlatformModel.ProductBrand(),
|
|
6828
|
+
is_excluded: Joi.boolean(),
|
|
6829
|
+
is_pinned: Joi.boolean(),
|
|
6830
|
+
item_code: Joi.string().allow(""),
|
|
6831
|
+
item_type: Joi.string().allow(""),
|
|
6832
|
+
medias: Joi.array().items(CatalogPlatformModel.Media()),
|
|
6833
|
+
name: Joi.string().allow(""),
|
|
6834
|
+
priority: Joi.number(),
|
|
6835
|
+
short_description: Joi.string().allow(""),
|
|
6836
|
+
slug: Joi.string().allow("").required(),
|
|
6837
|
+
uid: Joi.number(),
|
|
6838
|
+
});
|
|
6839
|
+
}
|
|
6840
|
+
|
|
6535
6841
|
/** @returns {ProductDownloadsResponse} */
|
|
6536
6842
|
static ProductDownloadsResponse() {
|
|
6537
6843
|
return Joi.object({
|
|
@@ -7103,6 +7409,7 @@ class CatalogPlatformModel {
|
|
|
7103
7409
|
breadcrumbs: Joi.array().items(
|
|
7104
7410
|
CatalogPlatformModel.ApplicationItemSeoBreadcrumbs()
|
|
7105
7411
|
),
|
|
7412
|
+
canonical_url: Joi.string().allow(""),
|
|
7106
7413
|
description: Joi.string().allow(""),
|
|
7107
7414
|
meta_tags: Joi.array().items(CatalogPlatformModel.Metatags()),
|
|
7108
7415
|
sitemap: CatalogPlatformModel.Sitemap(),
|
|
@@ -7116,6 +7423,7 @@ class CatalogPlatformModel {
|
|
|
7116
7423
|
breadcrumbs: Joi.array().items(
|
|
7117
7424
|
CatalogPlatformModel.ApplicationItemSeoBreadcrumbs()
|
|
7118
7425
|
),
|
|
7426
|
+
canonical_url: Joi.string().allow(""),
|
|
7119
7427
|
description: Joi.string().allow(""),
|
|
7120
7428
|
meta_tags: Joi.array().items(CatalogPlatformModel.Metatags()),
|
|
7121
7429
|
sitemap: Joi.any(),
|
|
@@ -7408,6 +7716,33 @@ class CatalogPlatformModel {
|
|
|
7408
7716
|
});
|
|
7409
7717
|
}
|
|
7410
7718
|
|
|
7719
|
+
/** @returns {UpdateMarketplaceOptinRequest} */
|
|
7720
|
+
static UpdateMarketplaceOptinRequest() {
|
|
7721
|
+
return Joi.object({
|
|
7722
|
+
brand_ids: Joi.array().items(Joi.number()),
|
|
7723
|
+
company_id: Joi.number(),
|
|
7724
|
+
enabled: Joi.boolean(),
|
|
7725
|
+
opt_level: Joi.string().allow(""),
|
|
7726
|
+
platform: Joi.string().allow(""),
|
|
7727
|
+
store_ids: Joi.array().items(Joi.number()),
|
|
7728
|
+
});
|
|
7729
|
+
}
|
|
7730
|
+
|
|
7731
|
+
/** @returns {UpdateMarketplaceOptinResponse} */
|
|
7732
|
+
static UpdateMarketplaceOptinResponse() {
|
|
7733
|
+
return Joi.object({
|
|
7734
|
+
app_id: Joi.string().allow(""),
|
|
7735
|
+
brand_ids: Joi.array().items(Joi.number()),
|
|
7736
|
+
company_id: Joi.number(),
|
|
7737
|
+
created_by: CatalogPlatformModel.CreatedBy(),
|
|
7738
|
+
enabled: Joi.boolean(),
|
|
7739
|
+
modified_by: CatalogPlatformModel.CreatedBy(),
|
|
7740
|
+
opt_level: Joi.string().allow(""),
|
|
7741
|
+
platform: Joi.string().allow(""),
|
|
7742
|
+
store_ids: Joi.array().items(Joi.number()),
|
|
7743
|
+
});
|
|
7744
|
+
}
|
|
7745
|
+
|
|
7411
7746
|
/** @returns {UpdateSearchConfigurationRequest} */
|
|
7412
7747
|
static UpdateSearchConfigurationRequest() {
|
|
7413
7748
|
return Joi.object({
|
|
@@ -207,6 +207,7 @@ export = CatalogPlatformValidator;
|
|
|
207
207
|
*/
|
|
208
208
|
/** @typedef GetInventoryExportParam */
|
|
209
209
|
/** @typedef GetMarketplaceOptinDetailParam */
|
|
210
|
+
/** @typedef GetMarketplacesParam */
|
|
210
211
|
/**
|
|
211
212
|
* @typedef GetOptimalLocationsParam
|
|
212
213
|
* @property {CatalogPlatformModel.AssignStore} body
|
|
@@ -304,6 +305,7 @@ export = CatalogPlatformValidator;
|
|
|
304
305
|
* set of results
|
|
305
306
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
306
307
|
* Default is 10.
|
|
308
|
+
* @property {number} [brandId] - Brand id that is to be searched.
|
|
307
309
|
*/
|
|
308
310
|
/**
|
|
309
311
|
* @typedef GetStoreDetailParam
|
|
@@ -324,12 +326,13 @@ export = CatalogPlatformValidator;
|
|
|
324
326
|
/**
|
|
325
327
|
* @typedef ListCategoriesParam
|
|
326
328
|
* @property {string} [level] - Get category for multiple levels
|
|
327
|
-
* @property {
|
|
329
|
+
* @property {number} [department] - Get category for multiple departments filtered
|
|
328
330
|
* @property {string} [q] - Get multiple categories filtered by search string
|
|
329
331
|
* @property {number} [pageNo] - The page number to navigate through the given
|
|
330
332
|
* set of results
|
|
331
333
|
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
332
334
|
* Default is 10.
|
|
335
|
+
* @property {number[]} [uids] - Get multiple categories filtered by category uids.
|
|
333
336
|
*/
|
|
334
337
|
/**
|
|
335
338
|
* @typedef ListDepartmentsDataParam
|
|
@@ -394,6 +397,11 @@ export = CatalogPlatformValidator;
|
|
|
394
397
|
* @typedef UpdateInventoriesParam
|
|
395
398
|
* @property {CatalogPlatformModel.InventoryRequestSchemaV2} body
|
|
396
399
|
*/
|
|
400
|
+
/**
|
|
401
|
+
* @typedef UpdateMarketplaceOptinParam
|
|
402
|
+
* @property {string} marketplaceSlug - Slug of the marketplace .
|
|
403
|
+
* @property {CatalogPlatformModel.UpdateMarketplaceOptinRequest} body
|
|
404
|
+
*/
|
|
397
405
|
/**
|
|
398
406
|
* @typedef UpdateProductBundleParam
|
|
399
407
|
* @property {string} id - A `id` is a unique identifier for a particular
|
|
@@ -517,6 +525,8 @@ declare class CatalogPlatformValidator {
|
|
|
517
525
|
static getInventoryExport(): any;
|
|
518
526
|
/** @returns {GetMarketplaceOptinDetailParam} */
|
|
519
527
|
static getMarketplaceOptinDetail(): any;
|
|
528
|
+
/** @returns {GetMarketplacesParam} */
|
|
529
|
+
static getMarketplaces(): any;
|
|
520
530
|
/** @returns {GetOptimalLocationsParam} */
|
|
521
531
|
static getOptimalLocations(): GetOptimalLocationsParam;
|
|
522
532
|
/** @returns {GetProductParam} */
|
|
@@ -577,6 +587,8 @@ declare class CatalogPlatformValidator {
|
|
|
577
587
|
static updateHsnCode(): UpdateHsnCodeParam;
|
|
578
588
|
/** @returns {UpdateInventoriesParam} */
|
|
579
589
|
static updateInventories(): UpdateInventoriesParam;
|
|
590
|
+
/** @returns {UpdateMarketplaceOptinParam} */
|
|
591
|
+
static updateMarketplaceOptin(): UpdateMarketplaceOptinParam;
|
|
580
592
|
/** @returns {UpdateProductBundleParam} */
|
|
581
593
|
static updateProductBundle(): UpdateProductBundleParam;
|
|
582
594
|
/** @returns {UpdateRealtimeInventoryParam} */
|
|
@@ -591,7 +603,7 @@ declare class CatalogPlatformValidator {
|
|
|
591
603
|
static validateProductTemplateSchema(): ValidateProductTemplateSchemaParam;
|
|
592
604
|
}
|
|
593
605
|
declare namespace CatalogPlatformValidator {
|
|
594
|
-
export { AddInventoryParam, AllSizesParam, BulkHsnCodeParam, CreateBulkInventoryParam, CreateBulkInventoryJobParam, CreateBulkProductUploadJobParam, CreateCategoriesParam, CreateDepartmentsParam, CreateInventoryExportParam, CreateInventoryExportJobParam, CreateMarketplaceOptinParam, CreateProductParam, CreateProductAssetsInBulkParam, CreateProductBundleParam, CreateProductExportJobParam, CreateProductsInBulkParam, CreateSizeGuideParam, DeleteBulkInventoryJobParam, DeleteInventoryParam, DeleteProductParam, DeleteProductBulkJobParam, DeleteRealtimeInventoryParam, DeleteSizeParam, DownloadInventoryTemplateViewParam, DownloadProductTemplateViewsParam, EditProductParam, ExportInventoryConfigParam, GetAllProductHsnCodesParam, GetCategoryDataParam, GetCompanyBrandDetailParam, GetCompanyDetailParam, GetCompanyMetricsParam, GetDepartmentDataParam, GetGenderAttributeParam, GetHsnCodeParam, GetInventoriesParam, GetInventoryBulkUploadHistoryParam, GetInventoryBySizeParam, GetInventoryBySizeIdentifierParam, GetInventoryExportParam, GetMarketplaceOptinDetailParam, GetOptimalLocationsParam, GetProductParam, GetProductAssetsInBulkParam, GetProductAttributesParam, GetProductBulkUploadHistoryParam, GetProductBundleParam, GetProductBundleDetailParam, GetProductExportJobsParam, GetProductSizeParam, GetProductTagsParam, GetProductValidationParam, GetProductsParam, GetSellerInsightsParam, GetSingleProductHSNCodeParam, GetSizeGuideParam, GetSizeGuidesParam, GetStoreDetailParam, GetVariantsOfProductsParam, ListCategoriesParam, ListDepartmentsDataParam, ListHSNCodesParam, ListInventoryExportParam, ListProductTemplateParam, ListProductTemplateCategoriesParam, ListProductTemplateExportDetailsParam, ListTemplateBrandTypeValuesParam, UpdateCategoryParam, UpdateDepartmentParam, UpdateHsnCodeParam, UpdateInventoriesParam, UpdateProductBundleParam, UpdateRealtimeInventoryParam, UpdateSizeGuideParam, UploadBulkProductsParam, ValidateProductTemplateParam, ValidateProductTemplateSchemaParam };
|
|
606
|
+
export { AddInventoryParam, AllSizesParam, BulkHsnCodeParam, CreateBulkInventoryParam, CreateBulkInventoryJobParam, CreateBulkProductUploadJobParam, CreateCategoriesParam, CreateDepartmentsParam, CreateInventoryExportParam, CreateInventoryExportJobParam, CreateMarketplaceOptinParam, CreateProductParam, CreateProductAssetsInBulkParam, CreateProductBundleParam, CreateProductExportJobParam, CreateProductsInBulkParam, CreateSizeGuideParam, DeleteBulkInventoryJobParam, DeleteInventoryParam, DeleteProductParam, DeleteProductBulkJobParam, DeleteRealtimeInventoryParam, DeleteSizeParam, DownloadInventoryTemplateViewParam, DownloadProductTemplateViewsParam, EditProductParam, ExportInventoryConfigParam, GetAllProductHsnCodesParam, GetCategoryDataParam, GetCompanyBrandDetailParam, GetCompanyDetailParam, GetCompanyMetricsParam, GetDepartmentDataParam, GetGenderAttributeParam, GetHsnCodeParam, GetInventoriesParam, GetInventoryBulkUploadHistoryParam, GetInventoryBySizeParam, GetInventoryBySizeIdentifierParam, GetInventoryExportParam, GetMarketplaceOptinDetailParam, GetMarketplacesParam, GetOptimalLocationsParam, GetProductParam, GetProductAssetsInBulkParam, GetProductAttributesParam, GetProductBulkUploadHistoryParam, GetProductBundleParam, GetProductBundleDetailParam, GetProductExportJobsParam, GetProductSizeParam, GetProductTagsParam, GetProductValidationParam, GetProductsParam, GetSellerInsightsParam, GetSingleProductHSNCodeParam, GetSizeGuideParam, GetSizeGuidesParam, GetStoreDetailParam, GetVariantsOfProductsParam, ListCategoriesParam, ListDepartmentsDataParam, ListHSNCodesParam, ListInventoryExportParam, ListProductTemplateParam, ListProductTemplateCategoriesParam, ListProductTemplateExportDetailsParam, ListTemplateBrandTypeValuesParam, UpdateCategoryParam, UpdateDepartmentParam, UpdateHsnCodeParam, UpdateInventoriesParam, UpdateMarketplaceOptinParam, UpdateProductBundleParam, UpdateRealtimeInventoryParam, UpdateSizeGuideParam, UploadBulkProductsParam, ValidateProductTemplateParam, ValidateProductTemplateSchemaParam };
|
|
595
607
|
}
|
|
596
608
|
type AddInventoryParam = {
|
|
597
609
|
/**
|
|
@@ -1126,6 +1138,10 @@ type GetSizeGuidesParam = {
|
|
|
1126
1138
|
* Default is 10.
|
|
1127
1139
|
*/
|
|
1128
1140
|
pageSize?: number;
|
|
1141
|
+
/**
|
|
1142
|
+
* - Brand id that is to be searched.
|
|
1143
|
+
*/
|
|
1144
|
+
brandId?: number;
|
|
1129
1145
|
};
|
|
1130
1146
|
type GetStoreDetailParam = {
|
|
1131
1147
|
/**
|
|
@@ -1170,7 +1186,7 @@ type ListCategoriesParam = {
|
|
|
1170
1186
|
/**
|
|
1171
1187
|
* - Get category for multiple departments filtered
|
|
1172
1188
|
*/
|
|
1173
|
-
|
|
1189
|
+
department?: number;
|
|
1174
1190
|
/**
|
|
1175
1191
|
* - Get multiple categories filtered by search string
|
|
1176
1192
|
*/
|
|
@@ -1185,6 +1201,10 @@ type ListCategoriesParam = {
|
|
|
1185
1201
|
* Default is 10.
|
|
1186
1202
|
*/
|
|
1187
1203
|
pageSize?: number;
|
|
1204
|
+
/**
|
|
1205
|
+
* - Get multiple categories filtered by category uids.
|
|
1206
|
+
*/
|
|
1207
|
+
uids?: number[];
|
|
1188
1208
|
};
|
|
1189
1209
|
type ListDepartmentsDataParam = {
|
|
1190
1210
|
/**
|
|
@@ -1295,6 +1315,13 @@ type UpdateHsnCodeParam = {
|
|
|
1295
1315
|
type UpdateInventoriesParam = {
|
|
1296
1316
|
body: CatalogPlatformModel.InventoryRequestSchemaV2;
|
|
1297
1317
|
};
|
|
1318
|
+
type UpdateMarketplaceOptinParam = {
|
|
1319
|
+
/**
|
|
1320
|
+
* - Slug of the marketplace .
|
|
1321
|
+
*/
|
|
1322
|
+
marketplaceSlug: string;
|
|
1323
|
+
body: CatalogPlatformModel.UpdateMarketplaceOptinRequest;
|
|
1324
|
+
};
|
|
1298
1325
|
type UpdateProductBundleParam = {
|
|
1299
1326
|
/**
|
|
1300
1327
|
* - A `id` is a unique identifier for a particular
|
|
@@ -1363,6 +1390,7 @@ type GetCompanyDetailParam = any;
|
|
|
1363
1390
|
type GetCompanyMetricsParam = any;
|
|
1364
1391
|
type GetInventoryExportParam = any;
|
|
1365
1392
|
type GetMarketplaceOptinDetailParam = any;
|
|
1393
|
+
type GetMarketplacesParam = any;
|
|
1366
1394
|
type GetProductTagsParam = any;
|
|
1367
1395
|
type GetProductValidationParam = any;
|
|
1368
1396
|
type ListHSNCodesParam = any;
|