@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-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/Cart/CartApplicationModel.d.ts +1742 -1726
- package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
- package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
- package/sdk/application/Content/ContentApplicationModel.js +757 -757
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
- package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
- package/sdk/application/Order/OrderApplicationModel.d.ts +852 -846
- package/sdk/application/Order/OrderApplicationModel.js +828 -822
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +2176 -2145
- package/sdk/application/Payment/PaymentApplicationModel.js +1474 -1453
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
- package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
- package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
- package/sdk/application/User/UserApplicationClient.d.ts +2 -2
- package/sdk/application/User/UserApplicationClient.js +4 -7
- package/sdk/application/User/UserApplicationModel.d.ts +769 -764
- package/sdk/application/User/UserApplicationModel.js +731 -741
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
- package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
- package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
- package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
- package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
- package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -980
- package/sdk/platform/Catalog/CatalogPlatformModel.js +977 -933
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1842 -1825
- package/sdk/platform/Content/ContentPlatformModel.js +1868 -1848
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
- package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +882 -869
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +894 -878
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
- package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
- package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5192 -5176
- package/sdk/platform/Order/OrderPlatformModel.js +4752 -4736
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2693 -2657
- package/sdk/platform/Payment/PaymentPlatformModel.js +1842 -1819
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1674 -1539
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1663 -1534
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
- package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
- package/sdk/platform/User/UserPlatformModel.d.ts +823 -753
- package/sdk/platform/User/UserPlatformModel.js +731 -661
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
- package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
- package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
- package/sdk/public/Billing/BillingPublicModel.js +51 -51
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
- package/sdk/public/Content/ContentPublicModel.js +28 -28
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
- package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
|
@@ -11,13 +11,8 @@ const Joi = require("joi");
|
|
|
11
11
|
* @typedef ActionPage
|
|
12
12
|
* @property {Object} [params]
|
|
13
13
|
* @property {Object} [query]
|
|
14
|
-
* @property {PageType} type
|
|
15
14
|
* @property {string} [url]
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @typedef AllowSingleRequest
|
|
20
|
-
* @property {boolean} allow_single
|
|
15
|
+
* @property {PageType} type
|
|
21
16
|
*/
|
|
22
17
|
|
|
23
18
|
/**
|
|
@@ -32,6 +27,11 @@ const Joi = require("joi");
|
|
|
32
27
|
* @property {string} size
|
|
33
28
|
*/
|
|
34
29
|
|
|
30
|
+
/**
|
|
31
|
+
* @typedef AllowSingleRequest
|
|
32
|
+
* @property {boolean} allow_single
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
35
|
/**
|
|
36
36
|
* @typedef AppCatalogConfiguration
|
|
37
37
|
* @property {string} app_id
|
|
@@ -133,6 +133,14 @@ const Joi = require("joi");
|
|
|
133
133
|
* @property {Page} page
|
|
134
134
|
*/
|
|
135
135
|
|
|
136
|
+
/**
|
|
137
|
+
* @typedef ApplicationItemMOQ
|
|
138
|
+
* @property {number} [increment_unit] - The minimum quantity increment in which
|
|
139
|
+
* the item can be purchased.
|
|
140
|
+
* @property {number} [maximum] - The maximum quantity allowed for purchase.
|
|
141
|
+
* @property {number} [minimum] - The minimum quantity required for purchase.
|
|
142
|
+
*/
|
|
143
|
+
|
|
136
144
|
/**
|
|
137
145
|
* @typedef ApplicationItemMeta
|
|
138
146
|
* @property {Object} [_custom_json] - Custom JSON data for the item
|
|
@@ -148,44 +156,12 @@ const Joi = require("joi");
|
|
|
148
156
|
* promotion limitation information for item
|
|
149
157
|
*/
|
|
150
158
|
|
|
151
|
-
/**
|
|
152
|
-
* @typedef ApplicationItemMOQ
|
|
153
|
-
* @property {number} [increment_unit] - The minimum quantity increment in which
|
|
154
|
-
* the item can be purchased.
|
|
155
|
-
* @property {number} [maximum] - The maximum quantity allowed for purchase.
|
|
156
|
-
* @property {number} [minimum] - The minimum quantity required for purchase.
|
|
157
|
-
*/
|
|
158
|
-
|
|
159
159
|
/**
|
|
160
160
|
* @typedef ApplicationItemSEO
|
|
161
161
|
* @property {string} [description] - The SEO description of the item
|
|
162
162
|
* @property {string} [title] - The SEO title of the item
|
|
163
163
|
*/
|
|
164
164
|
|
|
165
|
-
/**
|
|
166
|
-
* @typedef ApplicationItemSeoAction
|
|
167
|
-
* @property {Object} [page]
|
|
168
|
-
* @property {string} [type]
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* @typedef ApplicationItemSeoBreadcrumbs
|
|
173
|
-
* @property {ApplicationItemSeoAction[]} [action]
|
|
174
|
-
* @property {string} [url]
|
|
175
|
-
*/
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* @typedef ApplicationItemSeoMetaTagItem
|
|
179
|
-
* @property {string} [key]
|
|
180
|
-
* @property {string} [value]
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* @typedef ApplicationItemSeoMetaTags
|
|
185
|
-
* @property {ApplicationItemSeoMetaTagItem[]} [items]
|
|
186
|
-
* @property {string} [title]
|
|
187
|
-
*/
|
|
188
|
-
|
|
189
165
|
/**
|
|
190
166
|
* @typedef ApplicationProductListingResponse
|
|
191
167
|
* @property {ProductFilters[]} [filters]
|
|
@@ -336,16 +312,16 @@ const Joi = require("joi");
|
|
|
336
312
|
*/
|
|
337
313
|
|
|
338
314
|
/**
|
|
339
|
-
* @typedef
|
|
340
|
-
* @property {
|
|
315
|
+
* @typedef AutoCompleteMedia
|
|
316
|
+
* @property {string} [aspect_ratio]
|
|
341
317
|
* @property {string} [type]
|
|
318
|
+
* @property {string} [url]
|
|
342
319
|
*/
|
|
343
320
|
|
|
344
321
|
/**
|
|
345
|
-
* @typedef
|
|
346
|
-
* @property {
|
|
322
|
+
* @typedef AutocompleteAction
|
|
323
|
+
* @property {AutocompletePageAction} [page]
|
|
347
324
|
* @property {string} [type]
|
|
348
|
-
* @property {string} [url]
|
|
349
325
|
*/
|
|
350
326
|
|
|
351
327
|
/**
|
|
@@ -655,6 +631,7 @@ const Joi = require("joi");
|
|
|
655
631
|
|
|
656
632
|
/**
|
|
657
633
|
* @typedef CollectionCreateResponse
|
|
634
|
+
* @property {string} [uid]
|
|
658
635
|
* @property {Object} [_schedule]
|
|
659
636
|
* @property {boolean} [allow_facets]
|
|
660
637
|
* @property {boolean} [allow_sort]
|
|
@@ -673,7 +650,6 @@ const Joi = require("joi");
|
|
|
673
650
|
* @property {string} [sort_on]
|
|
674
651
|
* @property {string[]} [tag]
|
|
675
652
|
* @property {string} [type]
|
|
676
|
-
* @property {string} [uid]
|
|
677
653
|
* @property {string[]} [visible_facets_keys]
|
|
678
654
|
*/
|
|
679
655
|
|
|
@@ -713,13 +689,6 @@ const Joi = require("joi");
|
|
|
713
689
|
* @property {number} [priority]
|
|
714
690
|
*/
|
|
715
691
|
|
|
716
|
-
/**
|
|
717
|
-
* @typedef CollectionItemSchemaV2
|
|
718
|
-
* @property {string} action
|
|
719
|
-
* @property {number} item_id
|
|
720
|
-
* @property {number} [priority]
|
|
721
|
-
*/
|
|
722
|
-
|
|
723
692
|
/**
|
|
724
693
|
* @typedef CollectionItemUpdate
|
|
725
694
|
* @property {boolean} [allow_facets]
|
|
@@ -730,16 +699,6 @@ const Joi = require("joi");
|
|
|
730
699
|
* @property {string[]} [visible_facets_keys]
|
|
731
700
|
*/
|
|
732
701
|
|
|
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
|
-
|
|
743
702
|
/**
|
|
744
703
|
* @typedef CollectionListingFilter
|
|
745
704
|
* @property {CollectionListingFilterTag[]} [tags]
|
|
@@ -768,14 +727,6 @@ const Joi = require("joi");
|
|
|
768
727
|
* @property {Object[]} value - The value of the attribute of the collection query
|
|
769
728
|
*/
|
|
770
729
|
|
|
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
|
-
|
|
779
730
|
/**
|
|
780
731
|
* @typedef CollectionSchedule
|
|
781
732
|
* @property {string} [cron]
|
|
@@ -785,11 +736,6 @@ const Joi = require("joi");
|
|
|
785
736
|
* @property {string} [start]
|
|
786
737
|
*/
|
|
787
738
|
|
|
788
|
-
/**
|
|
789
|
-
* @typedef CommonResponseSchemaCollection
|
|
790
|
-
* @property {string} [message]
|
|
791
|
-
*/
|
|
792
|
-
|
|
793
739
|
/**
|
|
794
740
|
* @typedef CompanyBrandDetail
|
|
795
741
|
* @property {number} [brand_id]
|
|
@@ -973,12 +919,6 @@ const Joi = require("joi");
|
|
|
973
919
|
* @property {string[]} [visible_facets_keys]
|
|
974
920
|
*/
|
|
975
921
|
|
|
976
|
-
/**
|
|
977
|
-
* @typedef CreatedBy
|
|
978
|
-
* @property {string} [user_id]
|
|
979
|
-
* @property {string} [username]
|
|
980
|
-
*/
|
|
981
|
-
|
|
982
922
|
/**
|
|
983
923
|
* @typedef CreateSearchConfigurationRequest
|
|
984
924
|
* @property {string} application_id - The application id where custom search
|
|
@@ -1211,6 +1151,85 @@ const Joi = require("joi");
|
|
|
1211
1151
|
* @property {string} [value]
|
|
1212
1152
|
*/
|
|
1213
1153
|
|
|
1154
|
+
/**
|
|
1155
|
+
* @typedef RawProduct
|
|
1156
|
+
* @property {Object} [_custom_json]
|
|
1157
|
+
* @property {number[]} [all_company_ids]
|
|
1158
|
+
* @property {string[]} [all_identifiers]
|
|
1159
|
+
* @property {Object[]} [all_sizes]
|
|
1160
|
+
* @property {Object} [attributes]
|
|
1161
|
+
* @property {Brand} [brand]
|
|
1162
|
+
* @property {number} [brand_uid]
|
|
1163
|
+
* @property {Object} [category]
|
|
1164
|
+
* @property {string} [category_slug]
|
|
1165
|
+
* @property {number} [category_uid]
|
|
1166
|
+
* @property {string} [color]
|
|
1167
|
+
* @property {number} [company_id]
|
|
1168
|
+
* @property {string} [country_of_origin]
|
|
1169
|
+
* @property {Object} [created_by]
|
|
1170
|
+
* @property {string} [created_on]
|
|
1171
|
+
* @property {string} [currency]
|
|
1172
|
+
* @property {Object} [custom_order]
|
|
1173
|
+
* @property {number[]} [departments]
|
|
1174
|
+
* @property {string} [description]
|
|
1175
|
+
* @property {string[]} [highlights]
|
|
1176
|
+
* @property {string} [hsn_code]
|
|
1177
|
+
* @property {string} [id]
|
|
1178
|
+
* @property {string} [image_nature]
|
|
1179
|
+
* @property {string[]} [images]
|
|
1180
|
+
* @property {boolean} [is_active]
|
|
1181
|
+
* @property {boolean} [is_dependent]
|
|
1182
|
+
* @property {boolean} [is_expirable]
|
|
1183
|
+
* @property {boolean} [is_image_less_product]
|
|
1184
|
+
* @property {boolean} [is_physical]
|
|
1185
|
+
* @property {boolean} [is_set]
|
|
1186
|
+
* @property {string} [item_code]
|
|
1187
|
+
* @property {string} [item_type]
|
|
1188
|
+
* @property {string[]} [l3_mapping]
|
|
1189
|
+
* @property {Media[]} [media]
|
|
1190
|
+
* @property {Object} [modified_by]
|
|
1191
|
+
* @property {string} [modified_on]
|
|
1192
|
+
* @property {Object} [moq]
|
|
1193
|
+
* @property {boolean} [multi_size]
|
|
1194
|
+
* @property {string} [name]
|
|
1195
|
+
* @property {NetQuantityResponse} [net_quantity]
|
|
1196
|
+
* @property {number} [no_of_boxes]
|
|
1197
|
+
* @property {string} [pending]
|
|
1198
|
+
* @property {string} [primary_color]
|
|
1199
|
+
* @property {string[]} [product_group_tag]
|
|
1200
|
+
* @property {ProductPublished} [product_publish]
|
|
1201
|
+
* @property {ReturnConfigResponse} [return_config]
|
|
1202
|
+
* @property {string} [short_description]
|
|
1203
|
+
* @property {string} [size_guide]
|
|
1204
|
+
* @property {Object[]} [sizes]
|
|
1205
|
+
* @property {string} [slug]
|
|
1206
|
+
* @property {string} [stage]
|
|
1207
|
+
* @property {string[]} [tags]
|
|
1208
|
+
* @property {Object} [tax_identifier]
|
|
1209
|
+
* @property {Object} [teaser_tag]
|
|
1210
|
+
* @property {string} [template_tag]
|
|
1211
|
+
* @property {Trader[]} [trader]
|
|
1212
|
+
* @property {number} [uid]
|
|
1213
|
+
* @property {Object} [variant_group]
|
|
1214
|
+
* @property {Object} [variant_media]
|
|
1215
|
+
* @property {Object} [variants]
|
|
1216
|
+
* @property {VerifiedBy} [verified_by]
|
|
1217
|
+
* @property {string} [verified_on]
|
|
1218
|
+
*/
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* @typedef RawProductListingResponse
|
|
1222
|
+
* @property {RawProduct[]} [items]
|
|
1223
|
+
* @property {Page} [page]
|
|
1224
|
+
*/
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* @typedef GTIN
|
|
1228
|
+
* @property {string} gtin_type
|
|
1229
|
+
* @property {string} gtin_value
|
|
1230
|
+
* @property {boolean} [primary]
|
|
1231
|
+
*/
|
|
1232
|
+
|
|
1214
1233
|
/**
|
|
1215
1234
|
* @typedef GenderDetail
|
|
1216
1235
|
* @property {string[]} [departments]
|
|
@@ -1229,9 +1248,9 @@ const Joi = require("joi");
|
|
|
1229
1248
|
|
|
1230
1249
|
/**
|
|
1231
1250
|
* @typedef GetAddressSerializer
|
|
1232
|
-
* @property {string} [address_type]
|
|
1233
1251
|
* @property {string} [address1]
|
|
1234
1252
|
* @property {string} [address2]
|
|
1253
|
+
* @property {string} [address_type]
|
|
1235
1254
|
* @property {string} [city]
|
|
1236
1255
|
* @property {string} [country]
|
|
1237
1256
|
* @property {string} [country_code]
|
|
@@ -1242,12 +1261,6 @@ const Joi = require("joi");
|
|
|
1242
1261
|
* @property {string} [state]
|
|
1243
1262
|
*/
|
|
1244
1263
|
|
|
1245
|
-
/**
|
|
1246
|
-
* @typedef GetAllMarketplaces
|
|
1247
|
-
* @property {Marketplaces[]} [items]
|
|
1248
|
-
* @property {Page} [page]
|
|
1249
|
-
*/
|
|
1250
|
-
|
|
1251
1264
|
/**
|
|
1252
1265
|
* @typedef GetAllSizes
|
|
1253
1266
|
* @property {AllSizes[]} [all_sizes]
|
|
@@ -1324,35 +1337,6 @@ const Joi = require("joi");
|
|
|
1324
1337
|
* @property {string[]} [visible_facets_keys]
|
|
1325
1338
|
*/
|
|
1326
1339
|
|
|
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
|
-
|
|
1356
1340
|
/**
|
|
1357
1341
|
* @typedef GetCollectionItemsResponse
|
|
1358
1342
|
* @property {ProductFilters[]} [filters]
|
|
@@ -1361,12 +1345,6 @@ const Joi = require("joi");
|
|
|
1361
1345
|
* @property {ProductSortOn[]} [sort_on]
|
|
1362
1346
|
*/
|
|
1363
1347
|
|
|
1364
|
-
/**
|
|
1365
|
-
* @typedef GetCollectionItemsResponseSchemaV2
|
|
1366
|
-
* @property {ProductDetailV2[]} [items]
|
|
1367
|
-
* @property {Page1} [page]
|
|
1368
|
-
*/
|
|
1369
|
-
|
|
1370
1348
|
/**
|
|
1371
1349
|
* @typedef GetCollectionListingResponse
|
|
1372
1350
|
* @property {CollectionListingFilter} [filters]
|
|
@@ -1559,17 +1537,117 @@ const Joi = require("joi");
|
|
|
1559
1537
|
*/
|
|
1560
1538
|
|
|
1561
1539
|
/**
|
|
1562
|
-
* @typedef
|
|
1563
|
-
* @property {
|
|
1564
|
-
* @property {Object}
|
|
1565
|
-
* @property {
|
|
1540
|
+
* @typedef GetCollectionDetailResponse
|
|
1541
|
+
* @property {Object} [_custom_json]
|
|
1542
|
+
* @property {Object} [_locale_language]
|
|
1543
|
+
* @property {CollectionSchedule} [_schedule]
|
|
1544
|
+
* @property {Object} [action]
|
|
1545
|
+
* @property {boolean} [allow_facets]
|
|
1546
|
+
* @property {boolean} [allow_sort]
|
|
1547
|
+
* @property {string} [app_id]
|
|
1548
|
+
* @property {CollectionBadge} [badge]
|
|
1549
|
+
* @property {ImageUrls} [banners]
|
|
1550
|
+
* @property {string} [description]
|
|
1551
|
+
* @property {boolean} [is_active]
|
|
1552
|
+
* @property {boolean} [is_visible]
|
|
1553
|
+
* @property {Media} [logo]
|
|
1554
|
+
* @property {Object} [meta]
|
|
1555
|
+
* @property {string} [name]
|
|
1556
|
+
* @property {number} [priority]
|
|
1557
|
+
* @property {boolean} [published]
|
|
1558
|
+
* @property {CollectionQuery[]} [query]
|
|
1559
|
+
* @property {SeoDetail} [seo]
|
|
1560
|
+
* @property {string} [slug]
|
|
1561
|
+
* @property {string} [sort_on]
|
|
1562
|
+
* @property {string[]} [tags]
|
|
1563
|
+
* @property {string} [type]
|
|
1564
|
+
* @property {string} [uid]
|
|
1565
|
+
* @property {string[]} [visible_facets_keys]
|
|
1566
1566
|
*/
|
|
1567
1567
|
|
|
1568
1568
|
/**
|
|
1569
|
-
* @typedef
|
|
1570
|
-
* @property {string}
|
|
1571
|
-
|
|
1572
|
-
|
|
1569
|
+
* @typedef CommonResponseSchemaCollection
|
|
1570
|
+
* @property {string} [message]
|
|
1571
|
+
*/
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* @typedef GetQueryFiltersKeysResponse
|
|
1575
|
+
* @property {ProductFiltersKeysOnly[]} [filters]
|
|
1576
|
+
* @property {Object} operators
|
|
1577
|
+
* @property {ProductSortOn[]} [sort_on]
|
|
1578
|
+
*/
|
|
1579
|
+
|
|
1580
|
+
/**
|
|
1581
|
+
* @typedef GetQueryFiltersResponse
|
|
1582
|
+
* @property {ProductFilters[]} [filters]
|
|
1583
|
+
* @property {Object} operators
|
|
1584
|
+
* @property {ProductSortOn[]} [sort_on]
|
|
1585
|
+
*/
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* @typedef GetCollectionItemsResponseSchemaV2
|
|
1589
|
+
* @property {ProductDetailV2[]} [items]
|
|
1590
|
+
* @property {Page1} [page]
|
|
1591
|
+
*/
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* @typedef Page1
|
|
1595
|
+
* @property {boolean} [ca]
|
|
1596
|
+
* @property {string} [department]
|
|
1597
|
+
* @property {number} [page_no]
|
|
1598
|
+
* @property {number} [page_size]
|
|
1599
|
+
* @property {string} [q]
|
|
1600
|
+
* @property {string} [sort]
|
|
1601
|
+
* @property {string} [sort_on]
|
|
1602
|
+
* @property {string} [type]
|
|
1603
|
+
* @property {string} [variant]
|
|
1604
|
+
*/
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* @typedef CollectionItemSchemaV2
|
|
1608
|
+
* @property {string} action
|
|
1609
|
+
* @property {number} item_id
|
|
1610
|
+
* @property {number} [priority]
|
|
1611
|
+
*/
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* @typedef CollectionItemUpdateSchemaV2
|
|
1615
|
+
* @property {boolean} [allow_facets]
|
|
1616
|
+
* @property {boolean} [allow_sort]
|
|
1617
|
+
* @property {CollectionItemSchemaV2[]} [items]
|
|
1618
|
+
* @property {CollectionQuerySchemaV2[]} [query]
|
|
1619
|
+
* @property {string} type
|
|
1620
|
+
* @property {string[]} [visible_facets_keys]
|
|
1621
|
+
*/
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* @typedef CollectionQuerySchemaV2
|
|
1625
|
+
* @property {string} attribute - The attribute of the collection query
|
|
1626
|
+
* @property {string} op - The operation to be performed on the attribute of the
|
|
1627
|
+
* collection query
|
|
1628
|
+
* @property {Object[]} value - The value of the attribute of the collection query
|
|
1629
|
+
*/
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* @typedef ProductDetailV2
|
|
1633
|
+
* @property {ProductBrand} [brand]
|
|
1634
|
+
* @property {boolean} [is_excluded]
|
|
1635
|
+
* @property {boolean} [is_pinned]
|
|
1636
|
+
* @property {string} [item_code]
|
|
1637
|
+
* @property {string} [item_type]
|
|
1638
|
+
* @property {Media[]} [medias]
|
|
1639
|
+
* @property {string} [name]
|
|
1640
|
+
* @property {number} [priority]
|
|
1641
|
+
* @property {string} [short_description]
|
|
1642
|
+
* @property {string} slug
|
|
1643
|
+
* @property {number} [uid]
|
|
1644
|
+
*/
|
|
1645
|
+
|
|
1646
|
+
/**
|
|
1647
|
+
* @typedef GetSearchConfigurationResponse
|
|
1648
|
+
* @property {string} application_id - The application id where custom search
|
|
1649
|
+
* configuration is set
|
|
1650
|
+
* @property {number} company_id - The company id where custom search configuration is set
|
|
1573
1651
|
* @property {UserSerializer} [created_by] - The user who created the search
|
|
1574
1652
|
* configuration.
|
|
1575
1653
|
* @property {string} [created_on] - The date and time when the search
|
|
@@ -1618,15 +1696,35 @@ const Joi = require("joi");
|
|
|
1618
1696
|
*/
|
|
1619
1697
|
|
|
1620
1698
|
/**
|
|
1621
|
-
* @typedef
|
|
1622
|
-
* @property {
|
|
1623
|
-
* @property {string} gtin_value
|
|
1624
|
-
* @property {boolean} [primary]
|
|
1699
|
+
* @typedef Guide
|
|
1700
|
+
* @property {Meta} [meta]
|
|
1625
1701
|
*/
|
|
1626
1702
|
|
|
1627
1703
|
/**
|
|
1628
|
-
* @typedef
|
|
1629
|
-
* @property {
|
|
1704
|
+
* @typedef HSNCodesResponse
|
|
1705
|
+
* @property {HSNData} [data]
|
|
1706
|
+
* @property {string} [message]
|
|
1707
|
+
*/
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* @typedef HSNData
|
|
1711
|
+
* @property {string[]} [country_of_origin]
|
|
1712
|
+
* @property {string[]} [hsn_code]
|
|
1713
|
+
*/
|
|
1714
|
+
|
|
1715
|
+
/**
|
|
1716
|
+
* @typedef HSNDataInsertV2
|
|
1717
|
+
* @property {string} country_code - Country code.
|
|
1718
|
+
* @property {Object} [created_by] - Details of the user who created the HSN data.
|
|
1719
|
+
* @property {string} [created_on] - Date and time when the HSN data was created.
|
|
1720
|
+
* @property {string} description - Description of the HSN data.
|
|
1721
|
+
* @property {string} hsn_code - HSN code.
|
|
1722
|
+
* @property {string} [hsn_code_id] - Unique identifier of the HSN code.
|
|
1723
|
+
* @property {Object} [modified_by] - Details of the user who last modified the HSN data.
|
|
1724
|
+
* @property {string} [modified_on] - Date and time when the HSN data was last modified.
|
|
1725
|
+
* @property {string} reporting_hsn - HSN code.
|
|
1726
|
+
* @property {TaxSlab[]} taxes - List of tax slabs.
|
|
1727
|
+
* @property {string} type - Type of HSN data (goods or services).
|
|
1630
1728
|
*/
|
|
1631
1729
|
|
|
1632
1730
|
/**
|
|
@@ -1658,51 +1756,24 @@ const Joi = require("joi");
|
|
|
1658
1756
|
* @property {string} [id] - The identifier of the HSN code.
|
|
1659
1757
|
* @property {string} [modified_on] - The date and time when the HSN code was
|
|
1660
1758
|
* last modified.
|
|
1661
|
-
* @property {boolean} [tax_on_esp] - Flag indicating whether tax is applicable on ESP.
|
|
1662
|
-
* @property {boolean} [tax_on_mrp] - Flag indicating whether tax is applicable on MRP.
|
|
1663
1759
|
* @property {number} [tax1] - The first tax rate.
|
|
1664
1760
|
* @property {number} [tax2] - The second tax rate.
|
|
1761
|
+
* @property {boolean} [tax_on_esp] - Flag indicating whether tax is applicable on ESP.
|
|
1762
|
+
* @property {boolean} [tax_on_mrp] - Flag indicating whether tax is applicable on MRP.
|
|
1665
1763
|
* @property {number} [threshold1] - The threshold for the first tax rate.
|
|
1666
1764
|
* @property {number} [threshold2] - The threshold for the second tax rate.
|
|
1667
1765
|
*/
|
|
1668
1766
|
|
|
1669
|
-
/**
|
|
1670
|
-
* @typedef HSNCodesResponse
|
|
1671
|
-
* @property {HSNData} [data]
|
|
1672
|
-
* @property {string} [message]
|
|
1673
|
-
*/
|
|
1674
|
-
|
|
1675
|
-
/**
|
|
1676
|
-
* @typedef HSNData
|
|
1677
|
-
* @property {string[]} [country_of_origin]
|
|
1678
|
-
* @property {string[]} [hsn_code]
|
|
1679
|
-
*/
|
|
1680
|
-
|
|
1681
|
-
/**
|
|
1682
|
-
* @typedef HSNDataInsertV2
|
|
1683
|
-
* @property {string} country_code - Country code.
|
|
1684
|
-
* @property {Object} [created_by] - Details of the user who created the HSN data.
|
|
1685
|
-
* @property {string} [created_on] - Date and time when the HSN data was created.
|
|
1686
|
-
* @property {string} description - Description of the HSN data.
|
|
1687
|
-
* @property {string} hsn_code - HSN code.
|
|
1688
|
-
* @property {string} [hsn_code_id] - Unique identifier of the HSN code.
|
|
1689
|
-
* @property {Object} [modified_by] - Details of the user who last modified the HSN data.
|
|
1690
|
-
* @property {string} [modified_on] - Date and time when the HSN data was last modified.
|
|
1691
|
-
* @property {string} reporting_hsn - HSN code.
|
|
1692
|
-
* @property {TaxSlab[]} taxes - List of tax slabs.
|
|
1693
|
-
* @property {string} type - Type of HSN data (goods or services).
|
|
1694
|
-
*/
|
|
1695
|
-
|
|
1696
1767
|
/**
|
|
1697
1768
|
* @typedef HsnUpsert
|
|
1698
1769
|
* @property {number} company_id - The ID of the company.
|
|
1699
1770
|
* @property {string} hs2_code - The HS2 code.
|
|
1700
1771
|
* @property {string} hsn_code - The HSN code.
|
|
1701
1772
|
* @property {boolean} [is_active] - Flag indicating whether the entry is active.
|
|
1702
|
-
* @property {boolean} [tax_on_esp] - Flag indicating whether tax is applicable on ESP.
|
|
1703
|
-
* @property {boolean} tax_on_mrp - Flag indicating whether tax is applicable on MRP.
|
|
1704
1773
|
* @property {number} tax1 - The first tax rate.
|
|
1705
1774
|
* @property {number} [tax2] - The second tax rate.
|
|
1775
|
+
* @property {boolean} [tax_on_esp] - Flag indicating whether tax is applicable on ESP.
|
|
1776
|
+
* @property {boolean} tax_on_mrp - Flag indicating whether tax is applicable on MRP.
|
|
1706
1777
|
* @property {number} threshold1 - The threshold for the first tax rate.
|
|
1707
1778
|
* @property {number} [threshold2] - The threshold for the second tax rate.
|
|
1708
1779
|
* @property {number} [uid] - The unique identifier.
|
|
@@ -1722,6 +1793,29 @@ const Joi = require("joi");
|
|
|
1722
1793
|
* @property {BannerImage} [portrait]
|
|
1723
1794
|
*/
|
|
1724
1795
|
|
|
1796
|
+
/**
|
|
1797
|
+
* @typedef InvSize
|
|
1798
|
+
* @property {string} currency - The currency used for the item price.
|
|
1799
|
+
* @property {string} [expiration_date]
|
|
1800
|
+
* @property {GTIN[]} identifiers
|
|
1801
|
+
* @property {boolean} [is_set]
|
|
1802
|
+
* @property {string} [item_dimensions_unit_of_measure] - The unit of measure
|
|
1803
|
+
* for the item dimensions.
|
|
1804
|
+
* @property {number} [item_height] - The height of the item.
|
|
1805
|
+
* @property {number} [item_length] - The length of the item.
|
|
1806
|
+
* @property {number} [item_weight] - The weight of the item.
|
|
1807
|
+
* @property {string} [item_weight_unit_of_measure] - The unit of measure for
|
|
1808
|
+
* the item weight.
|
|
1809
|
+
* @property {number} [item_width] - The width of the item.
|
|
1810
|
+
* @property {number} [price]
|
|
1811
|
+
* @property {number} price_effective
|
|
1812
|
+
* @property {number} [price_transfer]
|
|
1813
|
+
* @property {number} quantity
|
|
1814
|
+
* @property {InventorySet} [set]
|
|
1815
|
+
* @property {string} size
|
|
1816
|
+
* @property {string} store_code
|
|
1817
|
+
*/
|
|
1818
|
+
|
|
1725
1819
|
/**
|
|
1726
1820
|
* @typedef InventoryBulkRequest
|
|
1727
1821
|
* @property {string} batch_id
|
|
@@ -2026,29 +2120,6 @@ const Joi = require("joi");
|
|
|
2026
2120
|
* @property {InvoiceCredSerializer} [e_waybill]
|
|
2027
2121
|
*/
|
|
2028
2122
|
|
|
2029
|
-
/**
|
|
2030
|
-
* @typedef InvSize
|
|
2031
|
-
* @property {string} currency - The currency used for the item price.
|
|
2032
|
-
* @property {string} [expiration_date]
|
|
2033
|
-
* @property {GTIN[]} identifiers
|
|
2034
|
-
* @property {boolean} [is_set]
|
|
2035
|
-
* @property {string} [item_dimensions_unit_of_measure] - The unit of measure
|
|
2036
|
-
* for the item dimensions.
|
|
2037
|
-
* @property {number} [item_height] - The height of the item.
|
|
2038
|
-
* @property {number} [item_length] - The length of the item.
|
|
2039
|
-
* @property {number} [item_weight] - The weight of the item.
|
|
2040
|
-
* @property {string} [item_weight_unit_of_measure] - The unit of measure for
|
|
2041
|
-
* the item weight.
|
|
2042
|
-
* @property {number} [item_width] - The width of the item.
|
|
2043
|
-
* @property {number} [price]
|
|
2044
|
-
* @property {number} price_effective
|
|
2045
|
-
* @property {number} [price_transfer]
|
|
2046
|
-
* @property {number} quantity
|
|
2047
|
-
* @property {InventorySet} [set]
|
|
2048
|
-
* @property {string} size
|
|
2049
|
-
* @property {string} store_code
|
|
2050
|
-
*/
|
|
2051
|
-
|
|
2052
2123
|
/**
|
|
2053
2124
|
* @typedef ItemQuery
|
|
2054
2125
|
* @property {number} [brand_uid]
|
|
@@ -2140,6 +2211,13 @@ const Joi = require("joi");
|
|
|
2140
2211
|
* @property {string} [url]
|
|
2141
2212
|
*/
|
|
2142
2213
|
|
|
2214
|
+
/**
|
|
2215
|
+
* @typedef MOQData
|
|
2216
|
+
* @property {number} [increment_unit]
|
|
2217
|
+
* @property {number} [maximum]
|
|
2218
|
+
* @property {number} [minimum]
|
|
2219
|
+
*/
|
|
2220
|
+
|
|
2143
2221
|
/**
|
|
2144
2222
|
* @typedef ManufacturerResponse
|
|
2145
2223
|
* @property {string} address - The address of the manufacturer.
|
|
@@ -2154,22 +2232,6 @@ const Joi = require("joi");
|
|
|
2154
2232
|
* @property {string} [name]
|
|
2155
2233
|
*/
|
|
2156
2234
|
|
|
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
|
-
|
|
2173
2235
|
/**
|
|
2174
2236
|
* @typedef Media
|
|
2175
2237
|
* @property {Object} [meta]
|
|
@@ -2236,19 +2298,6 @@ const Joi = require("joi");
|
|
|
2236
2298
|
* string and length should not exceed 100 characters.
|
|
2237
2299
|
*/
|
|
2238
2300
|
|
|
2239
|
-
/**
|
|
2240
|
-
* @typedef Metatags
|
|
2241
|
-
* @property {ApplicationItemSeoMetaTags[]} [items]
|
|
2242
|
-
* @property {string} [title]
|
|
2243
|
-
*/
|
|
2244
|
-
|
|
2245
|
-
/**
|
|
2246
|
-
* @typedef MOQData
|
|
2247
|
-
* @property {number} [increment_unit]
|
|
2248
|
-
* @property {number} [maximum]
|
|
2249
|
-
* @property {number} [minimum]
|
|
2250
|
-
*/
|
|
2251
|
-
|
|
2252
2301
|
/**
|
|
2253
2302
|
* @typedef NetQuantity
|
|
2254
2303
|
* @property {string} [unit] - The unit of measurement used for the net quantity
|
|
@@ -2268,6 +2317,16 @@ const Joi = require("joi");
|
|
|
2268
2317
|
* @property {string} [start]
|
|
2269
2318
|
*/
|
|
2270
2319
|
|
|
2320
|
+
/**
|
|
2321
|
+
* @typedef OptInPostRequest
|
|
2322
|
+
* @property {number[]} [brand_ids]
|
|
2323
|
+
* @property {number} [company_id]
|
|
2324
|
+
* @property {boolean} [enabled]
|
|
2325
|
+
* @property {string} opt_level
|
|
2326
|
+
* @property {string} [platform]
|
|
2327
|
+
* @property {number[]} [store_ids]
|
|
2328
|
+
*/
|
|
2329
|
+
|
|
2271
2330
|
/**
|
|
2272
2331
|
* @typedef OptinCompanyBrandDetailsView
|
|
2273
2332
|
* @property {CompanyBrandDetail[]} [items]
|
|
@@ -2289,16 +2348,6 @@ const Joi = require("joi");
|
|
|
2289
2348
|
* @property {number} [store]
|
|
2290
2349
|
*/
|
|
2291
2350
|
|
|
2292
|
-
/**
|
|
2293
|
-
* @typedef OptInPostRequest
|
|
2294
|
-
* @property {number[]} [brand_ids]
|
|
2295
|
-
* @property {number} [company_id]
|
|
2296
|
-
* @property {boolean} [enabled]
|
|
2297
|
-
* @property {string} opt_level
|
|
2298
|
-
* @property {string} [platform]
|
|
2299
|
-
* @property {number[]} [store_ids]
|
|
2300
|
-
*/
|
|
2301
|
-
|
|
2302
2351
|
/**
|
|
2303
2352
|
* @typedef OptinStoreDetails
|
|
2304
2353
|
* @property {StoreDetail[]} [items]
|
|
@@ -2315,27 +2364,23 @@ const Joi = require("joi");
|
|
|
2315
2364
|
*/
|
|
2316
2365
|
|
|
2317
2366
|
/**
|
|
2318
|
-
* @typedef
|
|
2319
|
-
* @property {
|
|
2320
|
-
* @property {
|
|
2321
|
-
* @property {
|
|
2322
|
-
* @property {
|
|
2323
|
-
* @property {
|
|
2324
|
-
* @property {number} [size]
|
|
2325
|
-
* @property {string} type
|
|
2367
|
+
* @typedef PTErrorResponse
|
|
2368
|
+
* @property {string} [code]
|
|
2369
|
+
* @property {Object} [errors]
|
|
2370
|
+
* @property {string} [message]
|
|
2371
|
+
* @property {Object} [meta]
|
|
2372
|
+
* @property {number} [status]
|
|
2326
2373
|
*/
|
|
2327
2374
|
|
|
2328
2375
|
/**
|
|
2329
|
-
* @typedef
|
|
2330
|
-
* @property {
|
|
2331
|
-
* @property {string} [
|
|
2332
|
-
* @property {
|
|
2333
|
-
* @property {
|
|
2334
|
-
* @property {
|
|
2335
|
-
* @property {string}
|
|
2336
|
-
* @property {
|
|
2337
|
-
* @property {string} [type]
|
|
2338
|
-
* @property {string} [variant]
|
|
2376
|
+
* @typedef Page
|
|
2377
|
+
* @property {number} [item_total]
|
|
2378
|
+
* @property {string} [next_id]
|
|
2379
|
+
* @property {boolean} [has_previous]
|
|
2380
|
+
* @property {boolean} [has_next]
|
|
2381
|
+
* @property {number} [current]
|
|
2382
|
+
* @property {string} type
|
|
2383
|
+
* @property {number} [size]
|
|
2339
2384
|
*/
|
|
2340
2385
|
|
|
2341
2386
|
/**
|
|
@@ -2658,21 +2703,6 @@ const Joi = require("joi");
|
|
|
2658
2703
|
* @property {string} [title]
|
|
2659
2704
|
*/
|
|
2660
2705
|
|
|
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
|
-
|
|
2676
2706
|
/**
|
|
2677
2707
|
* @typedef ProductDownloadsResponse
|
|
2678
2708
|
* @property {ProductTemplateExportResponse[]} [items] - The items of the job.
|
|
@@ -2684,6 +2714,17 @@ const Joi = require("joi");
|
|
|
2684
2714
|
* @property {ProductFiltersValue[]} values
|
|
2685
2715
|
*/
|
|
2686
2716
|
|
|
2717
|
+
/**
|
|
2718
|
+
* @typedef GetQueryFiltersValuesResponse
|
|
2719
|
+
* @property {ProductFiltersValue[]} values
|
|
2720
|
+
* @property {Page} page
|
|
2721
|
+
*/
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* @typedef ProductFiltersKeysOnly
|
|
2725
|
+
* @property {ProductFiltersKey} key
|
|
2726
|
+
*/
|
|
2727
|
+
|
|
2687
2728
|
/**
|
|
2688
2729
|
* @typedef ProductFiltersKey
|
|
2689
2730
|
* @property {string} display
|
|
@@ -2775,6 +2816,12 @@ const Joi = require("joi");
|
|
|
2775
2816
|
* @property {number} [product_online_date]
|
|
2776
2817
|
*/
|
|
2777
2818
|
|
|
2819
|
+
/**
|
|
2820
|
+
* @typedef ProductReturnConfigSerializer
|
|
2821
|
+
* @property {boolean} [on_same_store]
|
|
2822
|
+
* @property {number} [store_uid]
|
|
2823
|
+
*/
|
|
2824
|
+
|
|
2778
2825
|
/**
|
|
2779
2826
|
* @typedef ProductReturnConfigBaseSerializer
|
|
2780
2827
|
* @property {boolean} returnable - Boolean Flag for item returnable
|
|
@@ -2782,12 +2829,6 @@ const Joi = require("joi");
|
|
|
2782
2829
|
* @property {string} unit - Unit of return config days|hours
|
|
2783
2830
|
*/
|
|
2784
2831
|
|
|
2785
|
-
/**
|
|
2786
|
-
* @typedef ProductReturnConfigSerializer
|
|
2787
|
-
* @property {boolean} [on_same_store]
|
|
2788
|
-
* @property {number} [store_uid]
|
|
2789
|
-
*/
|
|
2790
|
-
|
|
2791
2832
|
/**
|
|
2792
2833
|
* @typedef ProductSchemaV2
|
|
2793
2834
|
* @property {Object} [_custom_json]
|
|
@@ -2989,15 +3030,6 @@ const Joi = require("joi");
|
|
|
2989
3030
|
* @property {Object} [variants]
|
|
2990
3031
|
*/
|
|
2991
3032
|
|
|
2992
|
-
/**
|
|
2993
|
-
* @typedef PTErrorResponse
|
|
2994
|
-
* @property {string} [code]
|
|
2995
|
-
* @property {Object} [errors]
|
|
2996
|
-
* @property {string} [message]
|
|
2997
|
-
* @property {Object} [meta]
|
|
2998
|
-
* @property {number} [status]
|
|
2999
|
-
*/
|
|
3000
|
-
|
|
3001
3033
|
/**
|
|
3002
3034
|
* @typedef Quantities
|
|
3003
3035
|
* @property {QuantityBase} [damaged]
|
|
@@ -3025,78 +3057,6 @@ const Joi = require("joi");
|
|
|
3025
3057
|
* @property {string} [updated_at]
|
|
3026
3058
|
*/
|
|
3027
3059
|
|
|
3028
|
-
/**
|
|
3029
|
-
* @typedef RawProduct
|
|
3030
|
-
* @property {Object} [_custom_json]
|
|
3031
|
-
* @property {number[]} [all_company_ids]
|
|
3032
|
-
* @property {string[]} [all_identifiers]
|
|
3033
|
-
* @property {Object[]} [all_sizes]
|
|
3034
|
-
* @property {Object} [attributes]
|
|
3035
|
-
* @property {Brand} [brand]
|
|
3036
|
-
* @property {number} [brand_uid]
|
|
3037
|
-
* @property {Object} [category]
|
|
3038
|
-
* @property {string} [category_slug]
|
|
3039
|
-
* @property {number} [category_uid]
|
|
3040
|
-
* @property {string} [color]
|
|
3041
|
-
* @property {number} [company_id]
|
|
3042
|
-
* @property {string} [country_of_origin]
|
|
3043
|
-
* @property {Object} [created_by]
|
|
3044
|
-
* @property {string} [created_on]
|
|
3045
|
-
* @property {string} [currency]
|
|
3046
|
-
* @property {Object} [custom_order]
|
|
3047
|
-
* @property {number[]} [departments]
|
|
3048
|
-
* @property {string} [description]
|
|
3049
|
-
* @property {string[]} [highlights]
|
|
3050
|
-
* @property {string} [hsn_code]
|
|
3051
|
-
* @property {string} [id]
|
|
3052
|
-
* @property {string} [image_nature]
|
|
3053
|
-
* @property {string[]} [images]
|
|
3054
|
-
* @property {boolean} [is_active]
|
|
3055
|
-
* @property {boolean} [is_dependent]
|
|
3056
|
-
* @property {boolean} [is_expirable]
|
|
3057
|
-
* @property {boolean} [is_image_less_product]
|
|
3058
|
-
* @property {boolean} [is_physical]
|
|
3059
|
-
* @property {boolean} [is_set]
|
|
3060
|
-
* @property {string} [item_code]
|
|
3061
|
-
* @property {string} [item_type]
|
|
3062
|
-
* @property {string[]} [l3_mapping]
|
|
3063
|
-
* @property {Media[]} [media]
|
|
3064
|
-
* @property {Object} [modified_by]
|
|
3065
|
-
* @property {string} [modified_on]
|
|
3066
|
-
* @property {Object} [moq]
|
|
3067
|
-
* @property {boolean} [multi_size]
|
|
3068
|
-
* @property {string} [name]
|
|
3069
|
-
* @property {NetQuantityResponse} [net_quantity]
|
|
3070
|
-
* @property {number} [no_of_boxes]
|
|
3071
|
-
* @property {string} [pending]
|
|
3072
|
-
* @property {string} [primary_color]
|
|
3073
|
-
* @property {string[]} [product_group_tag]
|
|
3074
|
-
* @property {ProductPublished} [product_publish]
|
|
3075
|
-
* @property {ReturnConfigResponse} [return_config]
|
|
3076
|
-
* @property {string} [short_description]
|
|
3077
|
-
* @property {string} [size_guide]
|
|
3078
|
-
* @property {Object[]} [sizes]
|
|
3079
|
-
* @property {string} [slug]
|
|
3080
|
-
* @property {string} [stage]
|
|
3081
|
-
* @property {string[]} [tags]
|
|
3082
|
-
* @property {Object} [tax_identifier]
|
|
3083
|
-
* @property {Object} [teaser_tag]
|
|
3084
|
-
* @property {string} [template_tag]
|
|
3085
|
-
* @property {Trader[]} [trader]
|
|
3086
|
-
* @property {number} [uid]
|
|
3087
|
-
* @property {Object} [variant_group]
|
|
3088
|
-
* @property {Object} [variant_media]
|
|
3089
|
-
* @property {Object} [variants]
|
|
3090
|
-
* @property {VerifiedBy} [verified_by]
|
|
3091
|
-
* @property {string} [verified_on]
|
|
3092
|
-
*/
|
|
3093
|
-
|
|
3094
|
-
/**
|
|
3095
|
-
* @typedef RawProductListingResponse
|
|
3096
|
-
* @property {RawProduct[]} [items]
|
|
3097
|
-
* @property {Page} [page]
|
|
3098
|
-
*/
|
|
3099
|
-
|
|
3100
3060
|
/**
|
|
3101
3061
|
* @typedef ReturnConfig
|
|
3102
3062
|
* @property {boolean} returnable
|
|
@@ -3125,6 +3085,64 @@ const Joi = require("joi");
|
|
|
3125
3085
|
* @property {string} [unit]
|
|
3126
3086
|
*/
|
|
3127
3087
|
|
|
3088
|
+
/**
|
|
3089
|
+
* @typedef Sitemap
|
|
3090
|
+
* @property {number} [priority]
|
|
3091
|
+
* @property {string} [frequency]
|
|
3092
|
+
*/
|
|
3093
|
+
|
|
3094
|
+
/**
|
|
3095
|
+
* @typedef ApplicationItemSeoAction
|
|
3096
|
+
* @property {Object} [page]
|
|
3097
|
+
* @property {string} [type]
|
|
3098
|
+
*/
|
|
3099
|
+
|
|
3100
|
+
/**
|
|
3101
|
+
* @typedef ApplicationItemSeoBreadcrumbs
|
|
3102
|
+
* @property {string} [url]
|
|
3103
|
+
* @property {ApplicationItemSeoAction[]} [action]
|
|
3104
|
+
*/
|
|
3105
|
+
|
|
3106
|
+
/**
|
|
3107
|
+
* @typedef ApplicationItemSeoMetaTagItem
|
|
3108
|
+
* @property {string} [key]
|
|
3109
|
+
* @property {string} [value]
|
|
3110
|
+
*/
|
|
3111
|
+
|
|
3112
|
+
/**
|
|
3113
|
+
* @typedef ApplicationItemSeoMetaTags
|
|
3114
|
+
* @property {string} [title]
|
|
3115
|
+
* @property {ApplicationItemSeoMetaTagItem[]} [items]
|
|
3116
|
+
*/
|
|
3117
|
+
|
|
3118
|
+
/**
|
|
3119
|
+
* @typedef Metatags
|
|
3120
|
+
* @property {string} [title]
|
|
3121
|
+
* @property {ApplicationItemSeoMetaTags[]} [items]
|
|
3122
|
+
*/
|
|
3123
|
+
|
|
3124
|
+
/**
|
|
3125
|
+
* @typedef SizePromotionThreshold
|
|
3126
|
+
* @property {string} [threshold_type]
|
|
3127
|
+
* @property {number} [threshold_value]
|
|
3128
|
+
*/
|
|
3129
|
+
|
|
3130
|
+
/**
|
|
3131
|
+
* @typedef SEOData
|
|
3132
|
+
* @property {string} [description]
|
|
3133
|
+
* @property {string} [title]
|
|
3134
|
+
* @property {Sitemap} [sitemap]
|
|
3135
|
+
* @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs]
|
|
3136
|
+
* @property {Metatags[]} [meta_tags]
|
|
3137
|
+
* @property {string} [canonical_url]
|
|
3138
|
+
*/
|
|
3139
|
+
|
|
3140
|
+
/**
|
|
3141
|
+
* @typedef SearchKeywordResult
|
|
3142
|
+
* @property {Object} query
|
|
3143
|
+
* @property {string} sort_on
|
|
3144
|
+
*/
|
|
3145
|
+
|
|
3128
3146
|
/**
|
|
3129
3147
|
* @typedef SearchableAttribute
|
|
3130
3148
|
* @property {string} key - The attribute key to search on. This key matches the
|
|
@@ -3135,12 +3153,6 @@ const Joi = require("joi");
|
|
|
3135
3153
|
* kick in. Higher the priority, higher the weight considered while searching
|
|
3136
3154
|
*/
|
|
3137
3155
|
|
|
3138
|
-
/**
|
|
3139
|
-
* @typedef SearchKeywordResult
|
|
3140
|
-
* @property {Object} query
|
|
3141
|
-
* @property {string} sort_on
|
|
3142
|
-
*/
|
|
3143
|
-
|
|
3144
3156
|
/**
|
|
3145
3157
|
* @typedef SecondLevelChild
|
|
3146
3158
|
* @property {Object} [_custom_json]
|
|
@@ -3159,23 +3171,13 @@ const Joi = require("joi");
|
|
|
3159
3171
|
*/
|
|
3160
3172
|
|
|
3161
3173
|
/**
|
|
3162
|
-
* @typedef
|
|
3163
|
-
* @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs]
|
|
3164
|
-
* @property {string} [canonical_url]
|
|
3174
|
+
* @typedef SeoDetail
|
|
3165
3175
|
* @property {string} [description]
|
|
3166
|
-
* @property {Metatags[]} [meta_tags]
|
|
3167
|
-
* @property {Sitemap} [sitemap]
|
|
3168
3176
|
* @property {string} [title]
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
/**
|
|
3172
|
-
* @typedef SeoDetail
|
|
3177
|
+
* @property {Object} [sitemap]
|
|
3173
3178
|
* @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs]
|
|
3174
|
-
* @property {string} [canonical_url]
|
|
3175
|
-
* @property {string} [description]
|
|
3176
3179
|
* @property {Metatags[]} [meta_tags]
|
|
3177
|
-
* @property {
|
|
3178
|
-
* @property {string} [title]
|
|
3180
|
+
* @property {string} [canonical_url]
|
|
3179
3181
|
*/
|
|
3180
3182
|
|
|
3181
3183
|
/**
|
|
@@ -3194,12 +3196,6 @@ const Joi = require("joi");
|
|
|
3194
3196
|
* @property {ProductSchemaV2} [data]
|
|
3195
3197
|
*/
|
|
3196
3198
|
|
|
3197
|
-
/**
|
|
3198
|
-
* @typedef Sitemap
|
|
3199
|
-
* @property {string} [frequency]
|
|
3200
|
-
* @property {number} [priority]
|
|
3201
|
-
*/
|
|
3202
|
-
|
|
3203
3199
|
/**
|
|
3204
3200
|
* @typedef Size
|
|
3205
3201
|
* @property {string} [display]
|
|
@@ -3230,12 +3226,6 @@ const Joi = require("joi");
|
|
|
3230
3226
|
* @property {string} [title]
|
|
3231
3227
|
*/
|
|
3232
3228
|
|
|
3233
|
-
/**
|
|
3234
|
-
* @typedef SizePromotionThreshold
|
|
3235
|
-
* @property {string} [threshold_type]
|
|
3236
|
-
* @property {number} [threshold_value]
|
|
3237
|
-
*/
|
|
3238
|
-
|
|
3239
3229
|
/**
|
|
3240
3230
|
* @typedef StoreAssignResponse
|
|
3241
3231
|
* @property {string} [_id]
|
|
@@ -3328,6 +3318,12 @@ const Joi = require("joi");
|
|
|
3328
3318
|
* @property {string} [tag]
|
|
3329
3319
|
*/
|
|
3330
3320
|
|
|
3321
|
+
/**
|
|
3322
|
+
* @typedef TemplateValidationData
|
|
3323
|
+
* @property {GlobalValidation} [global_validation]
|
|
3324
|
+
* @property {Object} [template_validation]
|
|
3325
|
+
*/
|
|
3326
|
+
|
|
3331
3327
|
/**
|
|
3332
3328
|
* @typedef TemplatesResponse
|
|
3333
3329
|
* @property {ProductTemplate} [items]
|
|
@@ -3340,12 +3336,6 @@ const Joi = require("joi");
|
|
|
3340
3336
|
* @property {TemplateDetails} [template_details]
|
|
3341
3337
|
*/
|
|
3342
3338
|
|
|
3343
|
-
/**
|
|
3344
|
-
* @typedef TemplateValidationData
|
|
3345
|
-
* @property {GlobalValidation} [global_validation]
|
|
3346
|
-
* @property {Object} [template_validation]
|
|
3347
|
-
*/
|
|
3348
|
-
|
|
3349
3339
|
/**
|
|
3350
3340
|
* @typedef ThirdLevelChild
|
|
3351
3341
|
* @property {Object} [_custom_json]
|
|
@@ -3405,35 +3395,6 @@ const Joi = require("joi");
|
|
|
3405
3395
|
* @property {string[]} [visible_facets_keys]
|
|
3406
3396
|
*/
|
|
3407
3397
|
|
|
3408
|
-
/**
|
|
3409
|
-
* @typedef UpdatedResponse
|
|
3410
|
-
* @property {number[]} [items_not_updated]
|
|
3411
|
-
* @property {string} [message]
|
|
3412
|
-
*/
|
|
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
|
-
|
|
3437
3398
|
/**
|
|
3438
3399
|
* @typedef UpdateSearchConfigurationRequest
|
|
3439
3400
|
* @property {string} application_id - The application id where custom search
|
|
@@ -3459,6 +3420,12 @@ const Joi = require("joi");
|
|
|
3459
3420
|
* @property {boolean} [success]
|
|
3460
3421
|
*/
|
|
3461
3422
|
|
|
3423
|
+
/**
|
|
3424
|
+
* @typedef UpdatedResponse
|
|
3425
|
+
* @property {number[]} [items_not_updated]
|
|
3426
|
+
* @property {string} [message]
|
|
3427
|
+
*/
|
|
3428
|
+
|
|
3462
3429
|
/**
|
|
3463
3430
|
* @typedef UserCommon
|
|
3464
3431
|
* @property {number} [company_id]
|
|
@@ -3577,6 +3544,57 @@ const Joi = require("joi");
|
|
|
3577
3544
|
* @property {string} [unit]
|
|
3578
3545
|
*/
|
|
3579
3546
|
|
|
3547
|
+
/**
|
|
3548
|
+
* @typedef CreatedBy
|
|
3549
|
+
* @property {string} [username]
|
|
3550
|
+
* @property {string} [user_id]
|
|
3551
|
+
*/
|
|
3552
|
+
|
|
3553
|
+
/**
|
|
3554
|
+
* @typedef Marketplaces
|
|
3555
|
+
* @property {number[]} [brand_ids]
|
|
3556
|
+
* @property {string} [app_id]
|
|
3557
|
+
* @property {boolean} [enabled]
|
|
3558
|
+
* @property {CreatedBy} [created_by]
|
|
3559
|
+
* @property {Object} [created_on]
|
|
3560
|
+
* @property {string} [opt_level]
|
|
3561
|
+
* @property {number} [company_id]
|
|
3562
|
+
* @property {CreatedBy} [modified_by]
|
|
3563
|
+
* @property {number[]} [store_ids]
|
|
3564
|
+
* @property {Object} [modified_on]
|
|
3565
|
+
* @property {string} [platforms]
|
|
3566
|
+
* @property {string} [_id]
|
|
3567
|
+
*/
|
|
3568
|
+
|
|
3569
|
+
/**
|
|
3570
|
+
* @typedef GetAllMarketplaces
|
|
3571
|
+
* @property {Marketplaces[]} [items]
|
|
3572
|
+
* @property {Page} [page]
|
|
3573
|
+
*/
|
|
3574
|
+
|
|
3575
|
+
/**
|
|
3576
|
+
* @typedef UpdateMarketplaceOptinRequest
|
|
3577
|
+
* @property {number[]} [brand_ids]
|
|
3578
|
+
* @property {number} [company_id]
|
|
3579
|
+
* @property {boolean} [enabled]
|
|
3580
|
+
* @property {string} [opt_level]
|
|
3581
|
+
* @property {string} [platform]
|
|
3582
|
+
* @property {number[]} [store_ids]
|
|
3583
|
+
*/
|
|
3584
|
+
|
|
3585
|
+
/**
|
|
3586
|
+
* @typedef UpdateMarketplaceOptinResponse
|
|
3587
|
+
* @property {number[]} [brand_ids]
|
|
3588
|
+
* @property {number} [company_id]
|
|
3589
|
+
* @property {string} [app_id]
|
|
3590
|
+
* @property {boolean} [enabled]
|
|
3591
|
+
* @property {string} [opt_level]
|
|
3592
|
+
* @property {string} [platform]
|
|
3593
|
+
* @property {number[]} [store_ids]
|
|
3594
|
+
* @property {CreatedBy} [created_by]
|
|
3595
|
+
* @property {CreatedBy} [modified_by]
|
|
3596
|
+
*/
|
|
3597
|
+
|
|
3580
3598
|
/**
|
|
3581
3599
|
* @typedef {| "about-us"
|
|
3582
3600
|
* | "addresses"
|
|
@@ -3647,15 +3665,8 @@ class CatalogPlatformModel {
|
|
|
3647
3665
|
/\S/,
|
|
3648
3666
|
Joi.array().items(Joi.string().allow(""))
|
|
3649
3667
|
),
|
|
3650
|
-
type: CatalogPlatformModel.PageType().required(),
|
|
3651
3668
|
url: Joi.string().allow(""),
|
|
3652
|
-
|
|
3653
|
-
}
|
|
3654
|
-
|
|
3655
|
-
/** @returns {AllowSingleRequest} */
|
|
3656
|
-
static AllowSingleRequest() {
|
|
3657
|
-
return Joi.object({
|
|
3658
|
-
allow_single: Joi.boolean().required(),
|
|
3669
|
+
type: CatalogPlatformModel.PageType().required(),
|
|
3659
3670
|
});
|
|
3660
3671
|
}
|
|
3661
3672
|
|
|
@@ -3673,6 +3684,13 @@ class CatalogPlatformModel {
|
|
|
3673
3684
|
});
|
|
3674
3685
|
}
|
|
3675
3686
|
|
|
3687
|
+
/** @returns {AllowSingleRequest} */
|
|
3688
|
+
static AllowSingleRequest() {
|
|
3689
|
+
return Joi.object({
|
|
3690
|
+
allow_single: Joi.boolean().required(),
|
|
3691
|
+
});
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3676
3694
|
/** @returns {AppCatalogConfiguration} */
|
|
3677
3695
|
static AppCatalogConfiguration() {
|
|
3678
3696
|
return Joi.object({
|
|
@@ -3797,6 +3815,15 @@ class CatalogPlatformModel {
|
|
|
3797
3815
|
});
|
|
3798
3816
|
}
|
|
3799
3817
|
|
|
3818
|
+
/** @returns {ApplicationItemMOQ} */
|
|
3819
|
+
static ApplicationItemMOQ() {
|
|
3820
|
+
return Joi.object({
|
|
3821
|
+
increment_unit: Joi.number(),
|
|
3822
|
+
maximum: Joi.number(),
|
|
3823
|
+
minimum: Joi.number(),
|
|
3824
|
+
});
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3800
3827
|
/** @returns {ApplicationItemMeta} */
|
|
3801
3828
|
static ApplicationItemMeta() {
|
|
3802
3829
|
return Joi.object({
|
|
@@ -3811,15 +3838,6 @@ class CatalogPlatformModel {
|
|
|
3811
3838
|
});
|
|
3812
3839
|
}
|
|
3813
3840
|
|
|
3814
|
-
/** @returns {ApplicationItemMOQ} */
|
|
3815
|
-
static ApplicationItemMOQ() {
|
|
3816
|
-
return Joi.object({
|
|
3817
|
-
increment_unit: Joi.number(),
|
|
3818
|
-
maximum: Joi.number(),
|
|
3819
|
-
minimum: Joi.number(),
|
|
3820
|
-
});
|
|
3821
|
-
}
|
|
3822
|
-
|
|
3823
3841
|
/** @returns {ApplicationItemSEO} */
|
|
3824
3842
|
static ApplicationItemSEO() {
|
|
3825
3843
|
return Joi.object({
|
|
@@ -3828,42 +3846,6 @@ class CatalogPlatformModel {
|
|
|
3828
3846
|
});
|
|
3829
3847
|
}
|
|
3830
3848
|
|
|
3831
|
-
/** @returns {ApplicationItemSeoAction} */
|
|
3832
|
-
static ApplicationItemSeoAction() {
|
|
3833
|
-
return Joi.object({
|
|
3834
|
-
page: Joi.any(),
|
|
3835
|
-
type: Joi.string().allow(""),
|
|
3836
|
-
});
|
|
3837
|
-
}
|
|
3838
|
-
|
|
3839
|
-
/** @returns {ApplicationItemSeoBreadcrumbs} */
|
|
3840
|
-
static ApplicationItemSeoBreadcrumbs() {
|
|
3841
|
-
return Joi.object({
|
|
3842
|
-
action: Joi.array().items(
|
|
3843
|
-
CatalogPlatformModel.ApplicationItemSeoAction()
|
|
3844
|
-
),
|
|
3845
|
-
url: Joi.string().allow(""),
|
|
3846
|
-
});
|
|
3847
|
-
}
|
|
3848
|
-
|
|
3849
|
-
/** @returns {ApplicationItemSeoMetaTagItem} */
|
|
3850
|
-
static ApplicationItemSeoMetaTagItem() {
|
|
3851
|
-
return Joi.object({
|
|
3852
|
-
key: Joi.string().allow(""),
|
|
3853
|
-
value: Joi.string().allow(""),
|
|
3854
|
-
});
|
|
3855
|
-
}
|
|
3856
|
-
|
|
3857
|
-
/** @returns {ApplicationItemSeoMetaTags} */
|
|
3858
|
-
static ApplicationItemSeoMetaTags() {
|
|
3859
|
-
return Joi.object({
|
|
3860
|
-
items: Joi.array().items(
|
|
3861
|
-
CatalogPlatformModel.ApplicationItemSeoMetaTagItem()
|
|
3862
|
-
),
|
|
3863
|
-
title: Joi.string().allow(""),
|
|
3864
|
-
});
|
|
3865
|
-
}
|
|
3866
|
-
|
|
3867
3849
|
/** @returns {ApplicationProductListingResponse} */
|
|
3868
3850
|
static ApplicationProductListingResponse() {
|
|
3869
3851
|
return Joi.object({
|
|
@@ -4047,20 +4029,20 @@ class CatalogPlatformModel {
|
|
|
4047
4029
|
});
|
|
4048
4030
|
}
|
|
4049
4031
|
|
|
4050
|
-
/** @returns {
|
|
4051
|
-
static
|
|
4032
|
+
/** @returns {AutoCompleteMedia} */
|
|
4033
|
+
static AutoCompleteMedia() {
|
|
4052
4034
|
return Joi.object({
|
|
4053
|
-
|
|
4035
|
+
aspect_ratio: Joi.string().allow(""),
|
|
4054
4036
|
type: Joi.string().allow(""),
|
|
4037
|
+
url: Joi.string().allow(""),
|
|
4055
4038
|
});
|
|
4056
4039
|
}
|
|
4057
4040
|
|
|
4058
|
-
/** @returns {
|
|
4059
|
-
static
|
|
4041
|
+
/** @returns {AutocompleteAction} */
|
|
4042
|
+
static AutocompleteAction() {
|
|
4060
4043
|
return Joi.object({
|
|
4061
|
-
|
|
4044
|
+
page: CatalogPlatformModel.AutocompletePageAction(),
|
|
4062
4045
|
type: Joi.string().allow(""),
|
|
4063
|
-
url: Joi.string().allow(""),
|
|
4064
4046
|
});
|
|
4065
4047
|
}
|
|
4066
4048
|
|
|
@@ -4432,6 +4414,7 @@ class CatalogPlatformModel {
|
|
|
4432
4414
|
/** @returns {CollectionCreateResponse} */
|
|
4433
4415
|
static CollectionCreateResponse() {
|
|
4434
4416
|
return Joi.object({
|
|
4417
|
+
uid: Joi.string().allow(""),
|
|
4435
4418
|
_schedule: Joi.any(),
|
|
4436
4419
|
allow_facets: Joi.boolean(),
|
|
4437
4420
|
allow_sort: Joi.boolean(),
|
|
@@ -4450,7 +4433,6 @@ class CatalogPlatformModel {
|
|
|
4450
4433
|
sort_on: Joi.string().allow(""),
|
|
4451
4434
|
tag: Joi.array().items(Joi.string().allow("")),
|
|
4452
4435
|
type: Joi.string().allow(""),
|
|
4453
|
-
uid: Joi.string().allow(""),
|
|
4454
4436
|
visible_facets_keys: Joi.array().items(Joi.string().allow("")),
|
|
4455
4437
|
});
|
|
4456
4438
|
}
|
|
@@ -4497,15 +4479,6 @@ class CatalogPlatformModel {
|
|
|
4497
4479
|
});
|
|
4498
4480
|
}
|
|
4499
4481
|
|
|
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
|
-
|
|
4509
4482
|
/** @returns {CollectionItemUpdate} */
|
|
4510
4483
|
static CollectionItemUpdate() {
|
|
4511
4484
|
return Joi.object({
|
|
@@ -4518,18 +4491,6 @@ class CatalogPlatformModel {
|
|
|
4518
4491
|
});
|
|
4519
4492
|
}
|
|
4520
4493
|
|
|
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
|
-
|
|
4533
4494
|
/** @returns {CollectionListingFilter} */
|
|
4534
4495
|
static CollectionListingFilter() {
|
|
4535
4496
|
return Joi.object({
|
|
@@ -4569,15 +4530,6 @@ class CatalogPlatformModel {
|
|
|
4569
4530
|
});
|
|
4570
4531
|
}
|
|
4571
4532
|
|
|
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
|
-
|
|
4581
4533
|
/** @returns {CollectionSchedule} */
|
|
4582
4534
|
static CollectionSchedule() {
|
|
4583
4535
|
return Joi.object({
|
|
@@ -4589,13 +4541,6 @@ class CatalogPlatformModel {
|
|
|
4589
4541
|
});
|
|
4590
4542
|
}
|
|
4591
4543
|
|
|
4592
|
-
/** @returns {CommonResponseSchemaCollection} */
|
|
4593
|
-
static CommonResponseSchemaCollection() {
|
|
4594
|
-
return Joi.object({
|
|
4595
|
-
message: Joi.string().allow(""),
|
|
4596
|
-
});
|
|
4597
|
-
}
|
|
4598
|
-
|
|
4599
4544
|
/** @returns {CompanyBrandDetail} */
|
|
4600
4545
|
static CompanyBrandDetail() {
|
|
4601
4546
|
return Joi.object({
|
|
@@ -4831,14 +4776,6 @@ class CatalogPlatformModel {
|
|
|
4831
4776
|
});
|
|
4832
4777
|
}
|
|
4833
4778
|
|
|
4834
|
-
/** @returns {CreatedBy} */
|
|
4835
|
-
static CreatedBy() {
|
|
4836
|
-
return Joi.object({
|
|
4837
|
-
user_id: Joi.string().allow(""),
|
|
4838
|
-
username: Joi.string().allow(""),
|
|
4839
|
-
});
|
|
4840
|
-
}
|
|
4841
|
-
|
|
4842
4779
|
/** @returns {CreateSearchConfigurationRequest} */
|
|
4843
4780
|
static CreateSearchConfigurationRequest() {
|
|
4844
4781
|
return Joi.object({
|
|
@@ -5118,30 +5055,115 @@ class CatalogPlatformModel {
|
|
|
5118
5055
|
});
|
|
5119
5056
|
}
|
|
5120
5057
|
|
|
5121
|
-
/** @returns {
|
|
5122
|
-
static
|
|
5058
|
+
/** @returns {RawProduct} */
|
|
5059
|
+
static RawProduct() {
|
|
5123
5060
|
return Joi.object({
|
|
5124
|
-
|
|
5061
|
+
_custom_json: Joi.any(),
|
|
5062
|
+
all_company_ids: Joi.array().items(Joi.number()),
|
|
5063
|
+
all_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
5064
|
+
all_sizes: Joi.array().items(Joi.any()),
|
|
5065
|
+
attributes: Joi.any(),
|
|
5066
|
+
brand: CatalogPlatformModel.Brand(),
|
|
5067
|
+
brand_uid: Joi.number(),
|
|
5068
|
+
category: Joi.any(),
|
|
5069
|
+
category_slug: Joi.string().allow(""),
|
|
5070
|
+
category_uid: Joi.number(),
|
|
5071
|
+
color: Joi.string().allow(""),
|
|
5072
|
+
company_id: Joi.number(),
|
|
5073
|
+
country_of_origin: Joi.string().allow(""),
|
|
5074
|
+
created_by: Joi.any(),
|
|
5075
|
+
created_on: Joi.string().allow(""),
|
|
5076
|
+
currency: Joi.string().allow(""),
|
|
5077
|
+
custom_order: Joi.any(),
|
|
5078
|
+
departments: Joi.array().items(Joi.number()),
|
|
5125
5079
|
description: Joi.string().allow(""),
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
filters: CatalogPlatformModel.AttributeMasterFilter(),
|
|
5080
|
+
highlights: Joi.array().items(Joi.string().allow("")),
|
|
5081
|
+
hsn_code: Joi.string().allow(""),
|
|
5129
5082
|
id: Joi.string().allow(""),
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5083
|
+
image_nature: Joi.string().allow(""),
|
|
5084
|
+
images: Joi.array().items(Joi.string().allow("")),
|
|
5085
|
+
is_active: Joi.boolean(),
|
|
5086
|
+
is_dependent: Joi.boolean(),
|
|
5087
|
+
is_expirable: Joi.boolean(),
|
|
5088
|
+
is_image_less_product: Joi.boolean(),
|
|
5089
|
+
is_physical: Joi.boolean(),
|
|
5090
|
+
is_set: Joi.boolean(),
|
|
5091
|
+
item_code: Joi.string().allow(""),
|
|
5092
|
+
item_type: Joi.string().allow(""),
|
|
5093
|
+
l3_mapping: Joi.array().items(Joi.string().allow("")),
|
|
5094
|
+
media: Joi.array().items(CatalogPlatformModel.Media()),
|
|
5095
|
+
modified_by: Joi.any(),
|
|
5096
|
+
modified_on: Joi.string().allow(""),
|
|
5097
|
+
moq: Joi.any(),
|
|
5098
|
+
multi_size: Joi.boolean(),
|
|
5133
5099
|
name: Joi.string().allow(""),
|
|
5134
|
-
|
|
5135
|
-
|
|
5100
|
+
net_quantity: CatalogPlatformModel.NetQuantityResponse(),
|
|
5101
|
+
no_of_boxes: Joi.number(),
|
|
5102
|
+
pending: Joi.string().allow(""),
|
|
5103
|
+
primary_color: Joi.string().allow(""),
|
|
5104
|
+
product_group_tag: Joi.array().items(Joi.string().allow("")),
|
|
5105
|
+
product_publish: CatalogPlatformModel.ProductPublished(),
|
|
5106
|
+
return_config: CatalogPlatformModel.ReturnConfigResponse(),
|
|
5107
|
+
short_description: Joi.string().allow(""),
|
|
5108
|
+
size_guide: Joi.string().allow(""),
|
|
5109
|
+
sizes: Joi.array().items(Joi.any()),
|
|
5110
|
+
slug: Joi.string().allow(""),
|
|
5111
|
+
stage: Joi.string().allow(""),
|
|
5112
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
5113
|
+
tax_identifier: Joi.any(),
|
|
5114
|
+
teaser_tag: Joi.any(),
|
|
5115
|
+
template_tag: Joi.string().allow(""),
|
|
5116
|
+
trader: Joi.array().items(CatalogPlatformModel.Trader()),
|
|
5117
|
+
uid: Joi.number(),
|
|
5118
|
+
variant_group: Joi.any(),
|
|
5119
|
+
variant_media: Joi.any(),
|
|
5120
|
+
variants: Joi.any(),
|
|
5121
|
+
verified_by: CatalogPlatformModel.VerifiedBy(),
|
|
5122
|
+
verified_on: Joi.string().allow(""),
|
|
5123
|
+
});
|
|
5124
|
+
}
|
|
5125
|
+
|
|
5126
|
+
/** @returns {RawProductListingResponse} */
|
|
5127
|
+
static RawProductListingResponse() {
|
|
5128
|
+
return Joi.object({
|
|
5129
|
+
items: Joi.array().items(CatalogPlatformModel.RawProduct()),
|
|
5130
|
+
page: CatalogPlatformModel.Page(),
|
|
5131
|
+
});
|
|
5132
|
+
}
|
|
5133
|
+
|
|
5134
|
+
/** @returns {GTIN} */
|
|
5135
|
+
static GTIN() {
|
|
5136
|
+
return Joi.object({
|
|
5137
|
+
gtin_type: Joi.string().allow("").required(),
|
|
5138
|
+
gtin_value: Joi.string().allow("").required(),
|
|
5139
|
+
primary: Joi.boolean(),
|
|
5140
|
+
});
|
|
5141
|
+
}
|
|
5142
|
+
|
|
5143
|
+
/** @returns {GenderDetail} */
|
|
5144
|
+
static GenderDetail() {
|
|
5145
|
+
return Joi.object({
|
|
5146
|
+
departments: Joi.array().items(Joi.string().allow("")),
|
|
5147
|
+
description: Joi.string().allow(""),
|
|
5148
|
+
details: CatalogPlatformModel.AttributeMasterDetails(),
|
|
5149
|
+
enabled_for_end_consumer: Joi.boolean(),
|
|
5150
|
+
filters: CatalogPlatformModel.AttributeMasterFilter(),
|
|
5151
|
+
id: Joi.string().allow(""),
|
|
5152
|
+
is_nested: Joi.boolean(),
|
|
5153
|
+
logo: Joi.string().allow(""),
|
|
5154
|
+
meta: CatalogPlatformModel.AttributeMasterMeta(),
|
|
5155
|
+
name: Joi.string().allow(""),
|
|
5156
|
+
schema: CatalogPlatformModel.AttributeMaster(),
|
|
5157
|
+
slug: Joi.string().allow(""),
|
|
5136
5158
|
});
|
|
5137
5159
|
}
|
|
5138
5160
|
|
|
5139
5161
|
/** @returns {GetAddressSerializer} */
|
|
5140
5162
|
static GetAddressSerializer() {
|
|
5141
5163
|
return Joi.object({
|
|
5142
|
-
address_type: Joi.string().allow(""),
|
|
5143
5164
|
address1: Joi.string().allow(""),
|
|
5144
5165
|
address2: Joi.string().allow(""),
|
|
5166
|
+
address_type: Joi.string().allow(""),
|
|
5145
5167
|
city: Joi.string().allow(""),
|
|
5146
5168
|
country: Joi.string().allow(""),
|
|
5147
5169
|
country_code: Joi.string().allow(""),
|
|
@@ -5153,14 +5175,6 @@ class CatalogPlatformModel {
|
|
|
5153
5175
|
});
|
|
5154
5176
|
}
|
|
5155
5177
|
|
|
5156
|
-
/** @returns {GetAllMarketplaces} */
|
|
5157
|
-
static GetAllMarketplaces() {
|
|
5158
|
-
return Joi.object({
|
|
5159
|
-
items: Joi.array().items(CatalogPlatformModel.Marketplaces()),
|
|
5160
|
-
page: CatalogPlatformModel.Page(),
|
|
5161
|
-
});
|
|
5162
|
-
}
|
|
5163
|
-
|
|
5164
5178
|
/** @returns {GetAllSizes} */
|
|
5165
5179
|
static GetAllSizes() {
|
|
5166
5180
|
return Joi.object({
|
|
@@ -5255,37 +5269,6 @@ class CatalogPlatformModel {
|
|
|
5255
5269
|
});
|
|
5256
5270
|
}
|
|
5257
5271
|
|
|
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
|
-
|
|
5289
5272
|
/** @returns {GetCollectionItemsResponse} */
|
|
5290
5273
|
static GetCollectionItemsResponse() {
|
|
5291
5274
|
return Joi.object({
|
|
@@ -5296,14 +5279,6 @@ class CatalogPlatformModel {
|
|
|
5296
5279
|
});
|
|
5297
5280
|
}
|
|
5298
5281
|
|
|
5299
|
-
/** @returns {GetCollectionItemsResponseSchemaV2} */
|
|
5300
|
-
static GetCollectionItemsResponseSchemaV2() {
|
|
5301
|
-
return Joi.object({
|
|
5302
|
-
items: Joi.array().items(CatalogPlatformModel.ProductDetailV2()),
|
|
5303
|
-
page: CatalogPlatformModel.Page1(),
|
|
5304
|
-
});
|
|
5305
|
-
}
|
|
5306
|
-
|
|
5307
5282
|
/** @returns {GetCollectionListingResponse} */
|
|
5308
5283
|
static GetCollectionListingResponse() {
|
|
5309
5284
|
return Joi.object({
|
|
@@ -5531,6 +5506,53 @@ class CatalogPlatformModel {
|
|
|
5531
5506
|
});
|
|
5532
5507
|
}
|
|
5533
5508
|
|
|
5509
|
+
/** @returns {GetCollectionDetailResponse} */
|
|
5510
|
+
static GetCollectionDetailResponse() {
|
|
5511
|
+
return Joi.object({
|
|
5512
|
+
_custom_json: Joi.any(),
|
|
5513
|
+
_locale_language: Joi.any(),
|
|
5514
|
+
_schedule: CatalogPlatformModel.CollectionSchedule(),
|
|
5515
|
+
action: Joi.any(),
|
|
5516
|
+
allow_facets: Joi.boolean(),
|
|
5517
|
+
allow_sort: Joi.boolean(),
|
|
5518
|
+
app_id: Joi.string().allow(""),
|
|
5519
|
+
badge: CatalogPlatformModel.CollectionBadge(),
|
|
5520
|
+
banners: CatalogPlatformModel.ImageUrls(),
|
|
5521
|
+
description: Joi.string().allow(""),
|
|
5522
|
+
is_active: Joi.boolean(),
|
|
5523
|
+
is_visible: Joi.boolean(),
|
|
5524
|
+
logo: CatalogPlatformModel.Media(),
|
|
5525
|
+
meta: Joi.any(),
|
|
5526
|
+
name: Joi.string().allow(""),
|
|
5527
|
+
priority: Joi.number(),
|
|
5528
|
+
published: Joi.boolean(),
|
|
5529
|
+
query: Joi.array().items(CatalogPlatformModel.CollectionQuery()),
|
|
5530
|
+
seo: CatalogPlatformModel.SeoDetail(),
|
|
5531
|
+
slug: Joi.string().allow(""),
|
|
5532
|
+
sort_on: Joi.string().allow(""),
|
|
5533
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
5534
|
+
type: Joi.string().allow(""),
|
|
5535
|
+
uid: Joi.string().allow(""),
|
|
5536
|
+
visible_facets_keys: Joi.array().items(Joi.string().allow("")),
|
|
5537
|
+
});
|
|
5538
|
+
}
|
|
5539
|
+
|
|
5540
|
+
/** @returns {CommonResponseSchemaCollection} */
|
|
5541
|
+
static CommonResponseSchemaCollection() {
|
|
5542
|
+
return Joi.object({
|
|
5543
|
+
message: Joi.string().allow(""),
|
|
5544
|
+
});
|
|
5545
|
+
}
|
|
5546
|
+
|
|
5547
|
+
/** @returns {GetQueryFiltersKeysResponse} */
|
|
5548
|
+
static GetQueryFiltersKeysResponse() {
|
|
5549
|
+
return Joi.object({
|
|
5550
|
+
filters: Joi.array().items(CatalogPlatformModel.ProductFiltersKeysOnly()),
|
|
5551
|
+
operators: Joi.object().pattern(/\S/, Joi.string().allow("")).required(),
|
|
5552
|
+
sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()),
|
|
5553
|
+
});
|
|
5554
|
+
}
|
|
5555
|
+
|
|
5534
5556
|
/** @returns {GetQueryFiltersResponse} */
|
|
5535
5557
|
static GetQueryFiltersResponse() {
|
|
5536
5558
|
return Joi.object({
|
|
@@ -5540,6 +5562,76 @@ class CatalogPlatformModel {
|
|
|
5540
5562
|
});
|
|
5541
5563
|
}
|
|
5542
5564
|
|
|
5565
|
+
/** @returns {GetCollectionItemsResponseSchemaV2} */
|
|
5566
|
+
static GetCollectionItemsResponseSchemaV2() {
|
|
5567
|
+
return Joi.object({
|
|
5568
|
+
items: Joi.array().items(CatalogPlatformModel.ProductDetailV2()),
|
|
5569
|
+
page: CatalogPlatformModel.Page1(),
|
|
5570
|
+
});
|
|
5571
|
+
}
|
|
5572
|
+
|
|
5573
|
+
/** @returns {Page1} */
|
|
5574
|
+
static Page1() {
|
|
5575
|
+
return Joi.object({
|
|
5576
|
+
ca: Joi.boolean(),
|
|
5577
|
+
department: Joi.string().allow(""),
|
|
5578
|
+
page_no: Joi.number(),
|
|
5579
|
+
page_size: Joi.number(),
|
|
5580
|
+
q: Joi.string().allow(""),
|
|
5581
|
+
sort: Joi.string().allow(""),
|
|
5582
|
+
sort_on: Joi.string().allow(""),
|
|
5583
|
+
type: Joi.string().allow(""),
|
|
5584
|
+
variant: Joi.string().allow(""),
|
|
5585
|
+
});
|
|
5586
|
+
}
|
|
5587
|
+
|
|
5588
|
+
/** @returns {CollectionItemSchemaV2} */
|
|
5589
|
+
static CollectionItemSchemaV2() {
|
|
5590
|
+
return Joi.object({
|
|
5591
|
+
action: Joi.string().allow("").required(),
|
|
5592
|
+
item_id: Joi.number().required(),
|
|
5593
|
+
priority: Joi.number(),
|
|
5594
|
+
});
|
|
5595
|
+
}
|
|
5596
|
+
|
|
5597
|
+
/** @returns {CollectionItemUpdateSchemaV2} */
|
|
5598
|
+
static CollectionItemUpdateSchemaV2() {
|
|
5599
|
+
return Joi.object({
|
|
5600
|
+
allow_facets: Joi.boolean(),
|
|
5601
|
+
allow_sort: Joi.boolean(),
|
|
5602
|
+
items: Joi.array().items(CatalogPlatformModel.CollectionItemSchemaV2()),
|
|
5603
|
+
query: Joi.array().items(CatalogPlatformModel.CollectionQuerySchemaV2()),
|
|
5604
|
+
type: Joi.string().allow("").required(),
|
|
5605
|
+
visible_facets_keys: Joi.array().items(Joi.string().allow("")),
|
|
5606
|
+
});
|
|
5607
|
+
}
|
|
5608
|
+
|
|
5609
|
+
/** @returns {CollectionQuerySchemaV2} */
|
|
5610
|
+
static CollectionQuerySchemaV2() {
|
|
5611
|
+
return Joi.object({
|
|
5612
|
+
attribute: Joi.string().allow("").required(),
|
|
5613
|
+
op: Joi.string().allow("").required(),
|
|
5614
|
+
value: Joi.array().items(Joi.any()).required(),
|
|
5615
|
+
});
|
|
5616
|
+
}
|
|
5617
|
+
|
|
5618
|
+
/** @returns {ProductDetailV2} */
|
|
5619
|
+
static ProductDetailV2() {
|
|
5620
|
+
return Joi.object({
|
|
5621
|
+
brand: CatalogPlatformModel.ProductBrand(),
|
|
5622
|
+
is_excluded: Joi.boolean(),
|
|
5623
|
+
is_pinned: Joi.boolean(),
|
|
5624
|
+
item_code: Joi.string().allow(""),
|
|
5625
|
+
item_type: Joi.string().allow(""),
|
|
5626
|
+
medias: Joi.array().items(CatalogPlatformModel.Media()),
|
|
5627
|
+
name: Joi.string().allow(""),
|
|
5628
|
+
priority: Joi.number(),
|
|
5629
|
+
short_description: Joi.string().allow(""),
|
|
5630
|
+
slug: Joi.string().allow("").required(),
|
|
5631
|
+
uid: Joi.number(),
|
|
5632
|
+
});
|
|
5633
|
+
}
|
|
5634
|
+
|
|
5543
5635
|
/** @returns {GetSearchConfigurationResponse} */
|
|
5544
5636
|
static GetSearchConfigurationResponse() {
|
|
5545
5637
|
return Joi.object({
|
|
@@ -5597,19 +5689,43 @@ class CatalogPlatformModel {
|
|
|
5597
5689
|
});
|
|
5598
5690
|
}
|
|
5599
5691
|
|
|
5600
|
-
/** @returns {
|
|
5601
|
-
static
|
|
5692
|
+
/** @returns {Guide} */
|
|
5693
|
+
static Guide() {
|
|
5602
5694
|
return Joi.object({
|
|
5603
|
-
|
|
5604
|
-
gtin_value: Joi.string().allow("").required(),
|
|
5605
|
-
primary: Joi.boolean(),
|
|
5695
|
+
meta: CatalogPlatformModel.Meta(),
|
|
5606
5696
|
});
|
|
5607
5697
|
}
|
|
5608
5698
|
|
|
5609
|
-
/** @returns {
|
|
5610
|
-
static
|
|
5699
|
+
/** @returns {HSNCodesResponse} */
|
|
5700
|
+
static HSNCodesResponse() {
|
|
5611
5701
|
return Joi.object({
|
|
5612
|
-
|
|
5702
|
+
data: CatalogPlatformModel.HSNData(),
|
|
5703
|
+
message: Joi.string().allow(""),
|
|
5704
|
+
});
|
|
5705
|
+
}
|
|
5706
|
+
|
|
5707
|
+
/** @returns {HSNData} */
|
|
5708
|
+
static HSNData() {
|
|
5709
|
+
return Joi.object({
|
|
5710
|
+
country_of_origin: Joi.array().items(Joi.string().allow("")),
|
|
5711
|
+
hsn_code: Joi.array().items(Joi.string().allow("")),
|
|
5712
|
+
});
|
|
5713
|
+
}
|
|
5714
|
+
|
|
5715
|
+
/** @returns {HSNDataInsertV2} */
|
|
5716
|
+
static HSNDataInsertV2() {
|
|
5717
|
+
return Joi.object({
|
|
5718
|
+
country_code: Joi.string().allow("").required(),
|
|
5719
|
+
created_by: Joi.any(),
|
|
5720
|
+
created_on: Joi.string().allow(""),
|
|
5721
|
+
description: Joi.string().allow("").required(),
|
|
5722
|
+
hsn_code: Joi.string().allow("").required(),
|
|
5723
|
+
hsn_code_id: Joi.string().allow(""),
|
|
5724
|
+
modified_by: Joi.any(),
|
|
5725
|
+
modified_on: Joi.string().allow(""),
|
|
5726
|
+
reporting_hsn: Joi.string().allow("").required(),
|
|
5727
|
+
taxes: Joi.array().items(CatalogPlatformModel.TaxSlab()).required(),
|
|
5728
|
+
type: Joi.string().allow("").required(),
|
|
5613
5729
|
});
|
|
5614
5730
|
}
|
|
5615
5731
|
|
|
@@ -5645,48 +5761,15 @@ class CatalogPlatformModel {
|
|
|
5645
5761
|
hsn_code: Joi.string().allow(""),
|
|
5646
5762
|
id: Joi.string().allow(""),
|
|
5647
5763
|
modified_on: Joi.string().allow(""),
|
|
5648
|
-
tax_on_esp: Joi.boolean(),
|
|
5649
|
-
tax_on_mrp: Joi.boolean(),
|
|
5650
5764
|
tax1: Joi.number(),
|
|
5651
5765
|
tax2: Joi.number(),
|
|
5766
|
+
tax_on_esp: Joi.boolean(),
|
|
5767
|
+
tax_on_mrp: Joi.boolean(),
|
|
5652
5768
|
threshold1: Joi.number(),
|
|
5653
5769
|
threshold2: Joi.number(),
|
|
5654
5770
|
});
|
|
5655
5771
|
}
|
|
5656
5772
|
|
|
5657
|
-
/** @returns {HSNCodesResponse} */
|
|
5658
|
-
static HSNCodesResponse() {
|
|
5659
|
-
return Joi.object({
|
|
5660
|
-
data: CatalogPlatformModel.HSNData(),
|
|
5661
|
-
message: Joi.string().allow(""),
|
|
5662
|
-
});
|
|
5663
|
-
}
|
|
5664
|
-
|
|
5665
|
-
/** @returns {HSNData} */
|
|
5666
|
-
static HSNData() {
|
|
5667
|
-
return Joi.object({
|
|
5668
|
-
country_of_origin: Joi.array().items(Joi.string().allow("")),
|
|
5669
|
-
hsn_code: Joi.array().items(Joi.string().allow("")),
|
|
5670
|
-
});
|
|
5671
|
-
}
|
|
5672
|
-
|
|
5673
|
-
/** @returns {HSNDataInsertV2} */
|
|
5674
|
-
static HSNDataInsertV2() {
|
|
5675
|
-
return Joi.object({
|
|
5676
|
-
country_code: Joi.string().allow("").required(),
|
|
5677
|
-
created_by: Joi.any(),
|
|
5678
|
-
created_on: Joi.string().allow(""),
|
|
5679
|
-
description: Joi.string().allow("").required(),
|
|
5680
|
-
hsn_code: Joi.string().allow("").required(),
|
|
5681
|
-
hsn_code_id: Joi.string().allow(""),
|
|
5682
|
-
modified_by: Joi.any(),
|
|
5683
|
-
modified_on: Joi.string().allow(""),
|
|
5684
|
-
reporting_hsn: Joi.string().allow("").required(),
|
|
5685
|
-
taxes: Joi.array().items(CatalogPlatformModel.TaxSlab()).required(),
|
|
5686
|
-
type: Joi.string().allow("").required(),
|
|
5687
|
-
});
|
|
5688
|
-
}
|
|
5689
|
-
|
|
5690
5773
|
/** @returns {HsnUpsert} */
|
|
5691
5774
|
static HsnUpsert() {
|
|
5692
5775
|
return Joi.object({
|
|
@@ -5694,10 +5777,10 @@ class CatalogPlatformModel {
|
|
|
5694
5777
|
hs2_code: Joi.string().allow("").allow(null).required(),
|
|
5695
5778
|
hsn_code: Joi.string().allow("").required(),
|
|
5696
5779
|
is_active: Joi.boolean(),
|
|
5697
|
-
tax_on_esp: Joi.boolean(),
|
|
5698
|
-
tax_on_mrp: Joi.boolean().required(),
|
|
5699
5780
|
tax1: Joi.number().required(),
|
|
5700
5781
|
tax2: Joi.number(),
|
|
5782
|
+
tax_on_esp: Joi.boolean(),
|
|
5783
|
+
tax_on_mrp: Joi.boolean().required(),
|
|
5701
5784
|
threshold1: Joi.number().required(),
|
|
5702
5785
|
threshold2: Joi.number(),
|
|
5703
5786
|
uid: Joi.number(),
|
|
@@ -5722,6 +5805,29 @@ class CatalogPlatformModel {
|
|
|
5722
5805
|
});
|
|
5723
5806
|
}
|
|
5724
5807
|
|
|
5808
|
+
/** @returns {InvSize} */
|
|
5809
|
+
static InvSize() {
|
|
5810
|
+
return Joi.object({
|
|
5811
|
+
currency: Joi.string().allow("").required(),
|
|
5812
|
+
expiration_date: Joi.string().allow(""),
|
|
5813
|
+
identifiers: Joi.array().items(CatalogPlatformModel.GTIN()).required(),
|
|
5814
|
+
is_set: Joi.boolean(),
|
|
5815
|
+
item_dimensions_unit_of_measure: Joi.string().allow("").allow(null),
|
|
5816
|
+
item_height: Joi.number().allow(null),
|
|
5817
|
+
item_length: Joi.number().allow(null),
|
|
5818
|
+
item_weight: Joi.number().allow(null),
|
|
5819
|
+
item_weight_unit_of_measure: Joi.string().allow("").allow(null),
|
|
5820
|
+
item_width: Joi.number().allow(null),
|
|
5821
|
+
price: Joi.number(),
|
|
5822
|
+
price_effective: Joi.number().required(),
|
|
5823
|
+
price_transfer: Joi.number().allow(null),
|
|
5824
|
+
quantity: Joi.number().required(),
|
|
5825
|
+
set: CatalogPlatformModel.InventorySet(),
|
|
5826
|
+
size: Joi.string().allow("").required(),
|
|
5827
|
+
store_code: Joi.string().allow("").required(),
|
|
5828
|
+
});
|
|
5829
|
+
}
|
|
5830
|
+
|
|
5725
5831
|
/** @returns {InventoryBulkRequest} */
|
|
5726
5832
|
static InventoryBulkRequest() {
|
|
5727
5833
|
return Joi.object({
|
|
@@ -6046,44 +6152,21 @@ class CatalogPlatformModel {
|
|
|
6046
6152
|
message: Joi.string().allow(""),
|
|
6047
6153
|
});
|
|
6048
6154
|
}
|
|
6049
|
-
|
|
6050
|
-
/** @returns {InvoiceCredSerializer} */
|
|
6051
|
-
static InvoiceCredSerializer() {
|
|
6052
|
-
return Joi.object({
|
|
6053
|
-
enabled: Joi.boolean(),
|
|
6054
|
-
password: Joi.string().allow(""),
|
|
6055
|
-
username: Joi.string().allow(""),
|
|
6056
|
-
});
|
|
6057
|
-
}
|
|
6058
|
-
|
|
6059
|
-
/** @returns {InvoiceDetailsSerializer} */
|
|
6060
|
-
static InvoiceDetailsSerializer() {
|
|
6061
|
-
return Joi.object({
|
|
6062
|
-
e_invoice: CatalogPlatformModel.InvoiceCredSerializer(),
|
|
6063
|
-
e_waybill: CatalogPlatformModel.InvoiceCredSerializer(),
|
|
6064
|
-
});
|
|
6065
|
-
}
|
|
6066
|
-
|
|
6067
|
-
/** @returns {InvSize} */
|
|
6068
|
-
static InvSize() {
|
|
6069
|
-
return Joi.object({
|
|
6070
|
-
currency: Joi.string().allow("").required(),
|
|
6071
|
-
expiration_date: Joi.string().allow(""),
|
|
6072
|
-
identifiers: Joi.array().items(CatalogPlatformModel.GTIN()).required(),
|
|
6073
|
-
is_set: Joi.boolean(),
|
|
6074
|
-
item_dimensions_unit_of_measure: Joi.string().allow("").allow(null),
|
|
6075
|
-
item_height: Joi.number().allow(null),
|
|
6076
|
-
item_length: Joi.number().allow(null),
|
|
6077
|
-
item_weight: Joi.number().allow(null),
|
|
6078
|
-
item_weight_unit_of_measure: Joi.string().allow("").allow(null),
|
|
6079
|
-
item_width: Joi.number().allow(null),
|
|
6080
|
-
price: Joi.number(),
|
|
6081
|
-
price_effective: Joi.number().required(),
|
|
6082
|
-
price_transfer: Joi.number().allow(null),
|
|
6083
|
-
quantity: Joi.number().required(),
|
|
6084
|
-
set: CatalogPlatformModel.InventorySet(),
|
|
6085
|
-
size: Joi.string().allow("").required(),
|
|
6086
|
-
store_code: Joi.string().allow("").required(),
|
|
6155
|
+
|
|
6156
|
+
/** @returns {InvoiceCredSerializer} */
|
|
6157
|
+
static InvoiceCredSerializer() {
|
|
6158
|
+
return Joi.object({
|
|
6159
|
+
enabled: Joi.boolean(),
|
|
6160
|
+
password: Joi.string().allow(""),
|
|
6161
|
+
username: Joi.string().allow(""),
|
|
6162
|
+
});
|
|
6163
|
+
}
|
|
6164
|
+
|
|
6165
|
+
/** @returns {InvoiceDetailsSerializer} */
|
|
6166
|
+
static InvoiceDetailsSerializer() {
|
|
6167
|
+
return Joi.object({
|
|
6168
|
+
e_invoice: CatalogPlatformModel.InvoiceCredSerializer(),
|
|
6169
|
+
e_waybill: CatalogPlatformModel.InvoiceCredSerializer(),
|
|
6087
6170
|
});
|
|
6088
6171
|
}
|
|
6089
6172
|
|
|
@@ -6198,6 +6281,15 @@ class CatalogPlatformModel {
|
|
|
6198
6281
|
});
|
|
6199
6282
|
}
|
|
6200
6283
|
|
|
6284
|
+
/** @returns {MOQData} */
|
|
6285
|
+
static MOQData() {
|
|
6286
|
+
return Joi.object({
|
|
6287
|
+
increment_unit: Joi.number(),
|
|
6288
|
+
maximum: Joi.number(),
|
|
6289
|
+
minimum: Joi.number(),
|
|
6290
|
+
});
|
|
6291
|
+
}
|
|
6292
|
+
|
|
6201
6293
|
/** @returns {ManufacturerResponse} */
|
|
6202
6294
|
static ManufacturerResponse() {
|
|
6203
6295
|
return Joi.object({
|
|
@@ -6216,24 +6308,6 @@ class CatalogPlatformModel {
|
|
|
6216
6308
|
});
|
|
6217
6309
|
}
|
|
6218
6310
|
|
|
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
|
-
|
|
6237
6311
|
/** @returns {Media} */
|
|
6238
6312
|
static Media() {
|
|
6239
6313
|
return Joi.object({
|
|
@@ -6322,25 +6396,6 @@ class CatalogPlatformModel {
|
|
|
6322
6396
|
});
|
|
6323
6397
|
}
|
|
6324
6398
|
|
|
6325
|
-
/** @returns {Metatags} */
|
|
6326
|
-
static Metatags() {
|
|
6327
|
-
return Joi.object({
|
|
6328
|
-
items: Joi.array().items(
|
|
6329
|
-
CatalogPlatformModel.ApplicationItemSeoMetaTags()
|
|
6330
|
-
),
|
|
6331
|
-
title: Joi.string().allow(""),
|
|
6332
|
-
});
|
|
6333
|
-
}
|
|
6334
|
-
|
|
6335
|
-
/** @returns {MOQData} */
|
|
6336
|
-
static MOQData() {
|
|
6337
|
-
return Joi.object({
|
|
6338
|
-
increment_unit: Joi.number(),
|
|
6339
|
-
maximum: Joi.number(),
|
|
6340
|
-
minimum: Joi.number(),
|
|
6341
|
-
});
|
|
6342
|
-
}
|
|
6343
|
-
|
|
6344
6399
|
/** @returns {NetQuantity} */
|
|
6345
6400
|
static NetQuantity() {
|
|
6346
6401
|
return Joi.object({
|
|
@@ -6365,6 +6420,18 @@ class CatalogPlatformModel {
|
|
|
6365
6420
|
});
|
|
6366
6421
|
}
|
|
6367
6422
|
|
|
6423
|
+
/** @returns {OptInPostRequest} */
|
|
6424
|
+
static OptInPostRequest() {
|
|
6425
|
+
return Joi.object({
|
|
6426
|
+
brand_ids: Joi.array().items(Joi.number()),
|
|
6427
|
+
company_id: Joi.number(),
|
|
6428
|
+
enabled: Joi.boolean(),
|
|
6429
|
+
opt_level: Joi.string().allow("").required(),
|
|
6430
|
+
platform: Joi.string().allow(""),
|
|
6431
|
+
store_ids: Joi.array().items(Joi.number()),
|
|
6432
|
+
});
|
|
6433
|
+
}
|
|
6434
|
+
|
|
6368
6435
|
/** @returns {OptinCompanyBrandDetailsView} */
|
|
6369
6436
|
static OptinCompanyBrandDetailsView() {
|
|
6370
6437
|
return Joi.object({
|
|
@@ -6392,18 +6459,6 @@ class CatalogPlatformModel {
|
|
|
6392
6459
|
});
|
|
6393
6460
|
}
|
|
6394
6461
|
|
|
6395
|
-
/** @returns {OptInPostRequest} */
|
|
6396
|
-
static OptInPostRequest() {
|
|
6397
|
-
return Joi.object({
|
|
6398
|
-
brand_ids: Joi.array().items(Joi.number()),
|
|
6399
|
-
company_id: Joi.number(),
|
|
6400
|
-
enabled: Joi.boolean(),
|
|
6401
|
-
opt_level: Joi.string().allow("").required(),
|
|
6402
|
-
platform: Joi.string().allow(""),
|
|
6403
|
-
store_ids: Joi.array().items(Joi.number()),
|
|
6404
|
-
});
|
|
6405
|
-
}
|
|
6406
|
-
|
|
6407
6462
|
/** @returns {OptinStoreDetails} */
|
|
6408
6463
|
static OptinStoreDetails() {
|
|
6409
6464
|
return Joi.object({
|
|
@@ -6423,31 +6478,27 @@ class CatalogPlatformModel {
|
|
|
6423
6478
|
});
|
|
6424
6479
|
}
|
|
6425
6480
|
|
|
6481
|
+
/** @returns {PTErrorResponse} */
|
|
6482
|
+
static PTErrorResponse() {
|
|
6483
|
+
return Joi.object({
|
|
6484
|
+
code: Joi.string().allow(""),
|
|
6485
|
+
errors: Joi.any(),
|
|
6486
|
+
message: Joi.string().allow(""),
|
|
6487
|
+
meta: Joi.any(),
|
|
6488
|
+
status: Joi.number(),
|
|
6489
|
+
});
|
|
6490
|
+
}
|
|
6491
|
+
|
|
6426
6492
|
/** @returns {Page} */
|
|
6427
6493
|
static Page() {
|
|
6428
6494
|
return Joi.object({
|
|
6429
|
-
current: Joi.number(),
|
|
6430
|
-
has_next: Joi.boolean(),
|
|
6431
|
-
has_previous: Joi.boolean(),
|
|
6432
6495
|
item_total: Joi.number(),
|
|
6433
6496
|
next_id: Joi.string().allow(""),
|
|
6434
|
-
|
|
6497
|
+
has_previous: Joi.boolean(),
|
|
6498
|
+
has_next: Joi.boolean(),
|
|
6499
|
+
current: Joi.number(),
|
|
6435
6500
|
type: Joi.string().allow("").required(),
|
|
6436
|
-
|
|
6437
|
-
}
|
|
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(""),
|
|
6501
|
+
size: Joi.number(),
|
|
6451
6502
|
});
|
|
6452
6503
|
}
|
|
6453
6504
|
|
|
@@ -6821,23 +6872,6 @@ class CatalogPlatformModel {
|
|
|
6821
6872
|
});
|
|
6822
6873
|
}
|
|
6823
6874
|
|
|
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
|
-
|
|
6841
6875
|
/** @returns {ProductDownloadsResponse} */
|
|
6842
6876
|
static ProductDownloadsResponse() {
|
|
6843
6877
|
return Joi.object({
|
|
@@ -6857,6 +6891,23 @@ class CatalogPlatformModel {
|
|
|
6857
6891
|
});
|
|
6858
6892
|
}
|
|
6859
6893
|
|
|
6894
|
+
/** @returns {GetQueryFiltersValuesResponse} */
|
|
6895
|
+
static GetQueryFiltersValuesResponse() {
|
|
6896
|
+
return Joi.object({
|
|
6897
|
+
values: Joi.array()
|
|
6898
|
+
.items(CatalogPlatformModel.ProductFiltersValue())
|
|
6899
|
+
.required(),
|
|
6900
|
+
page: CatalogPlatformModel.Page().required(),
|
|
6901
|
+
});
|
|
6902
|
+
}
|
|
6903
|
+
|
|
6904
|
+
/** @returns {ProductFiltersKeysOnly} */
|
|
6905
|
+
static ProductFiltersKeysOnly() {
|
|
6906
|
+
return Joi.object({
|
|
6907
|
+
key: CatalogPlatformModel.ProductFiltersKey().required(),
|
|
6908
|
+
});
|
|
6909
|
+
}
|
|
6910
|
+
|
|
6860
6911
|
/** @returns {ProductFiltersKey} */
|
|
6861
6912
|
static ProductFiltersKey() {
|
|
6862
6913
|
return Joi.object({
|
|
@@ -6968,6 +7019,14 @@ class CatalogPlatformModel {
|
|
|
6968
7019
|
});
|
|
6969
7020
|
}
|
|
6970
7021
|
|
|
7022
|
+
/** @returns {ProductReturnConfigSerializer} */
|
|
7023
|
+
static ProductReturnConfigSerializer() {
|
|
7024
|
+
return Joi.object({
|
|
7025
|
+
on_same_store: Joi.boolean(),
|
|
7026
|
+
store_uid: Joi.number(),
|
|
7027
|
+
});
|
|
7028
|
+
}
|
|
7029
|
+
|
|
6971
7030
|
/** @returns {ProductReturnConfigBaseSerializer} */
|
|
6972
7031
|
static ProductReturnConfigBaseSerializer() {
|
|
6973
7032
|
return Joi.object({
|
|
@@ -6977,14 +7036,6 @@ class CatalogPlatformModel {
|
|
|
6977
7036
|
});
|
|
6978
7037
|
}
|
|
6979
7038
|
|
|
6980
|
-
/** @returns {ProductReturnConfigSerializer} */
|
|
6981
|
-
static ProductReturnConfigSerializer() {
|
|
6982
|
-
return Joi.object({
|
|
6983
|
-
on_same_store: Joi.boolean(),
|
|
6984
|
-
store_uid: Joi.number(),
|
|
6985
|
-
});
|
|
6986
|
-
}
|
|
6987
|
-
|
|
6988
7039
|
/** @returns {ProductSchemaV2} */
|
|
6989
7040
|
static ProductSchemaV2() {
|
|
6990
7041
|
return Joi.object({
|
|
@@ -7207,17 +7258,6 @@ class CatalogPlatformModel {
|
|
|
7207
7258
|
});
|
|
7208
7259
|
}
|
|
7209
7260
|
|
|
7210
|
-
/** @returns {PTErrorResponse} */
|
|
7211
|
-
static PTErrorResponse() {
|
|
7212
|
-
return Joi.object({
|
|
7213
|
-
code: Joi.string().allow(""),
|
|
7214
|
-
errors: Joi.any(),
|
|
7215
|
-
message: Joi.string().allow(""),
|
|
7216
|
-
meta: Joi.any(),
|
|
7217
|
-
status: Joi.number(),
|
|
7218
|
-
});
|
|
7219
|
-
}
|
|
7220
|
-
|
|
7221
7261
|
/** @returns {Quantities} */
|
|
7222
7262
|
static Quantities() {
|
|
7223
7263
|
return Joi.object({
|
|
@@ -7238,94 +7278,18 @@ class CatalogPlatformModel {
|
|
|
7238
7278
|
});
|
|
7239
7279
|
}
|
|
7240
7280
|
|
|
7241
|
-
/** @returns {Quantity} */
|
|
7242
|
-
static Quantity() {
|
|
7243
|
-
return Joi.object({
|
|
7244
|
-
count: Joi.number(),
|
|
7245
|
-
});
|
|
7246
|
-
}
|
|
7247
|
-
|
|
7248
|
-
/** @returns {QuantityBase} */
|
|
7249
|
-
static QuantityBase() {
|
|
7250
|
-
return Joi.object({
|
|
7251
|
-
count: Joi.number(),
|
|
7252
|
-
updated_at: Joi.string().allow(""),
|
|
7253
|
-
});
|
|
7254
|
-
}
|
|
7255
|
-
|
|
7256
|
-
/** @returns {RawProduct} */
|
|
7257
|
-
static RawProduct() {
|
|
7258
|
-
return Joi.object({
|
|
7259
|
-
_custom_json: Joi.any(),
|
|
7260
|
-
all_company_ids: Joi.array().items(Joi.number()),
|
|
7261
|
-
all_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
7262
|
-
all_sizes: Joi.array().items(Joi.any()),
|
|
7263
|
-
attributes: Joi.any(),
|
|
7264
|
-
brand: CatalogPlatformModel.Brand(),
|
|
7265
|
-
brand_uid: Joi.number(),
|
|
7266
|
-
category: Joi.any(),
|
|
7267
|
-
category_slug: Joi.string().allow(""),
|
|
7268
|
-
category_uid: Joi.number(),
|
|
7269
|
-
color: Joi.string().allow(""),
|
|
7270
|
-
company_id: Joi.number(),
|
|
7271
|
-
country_of_origin: Joi.string().allow(""),
|
|
7272
|
-
created_by: Joi.any(),
|
|
7273
|
-
created_on: Joi.string().allow(""),
|
|
7274
|
-
currency: Joi.string().allow(""),
|
|
7275
|
-
custom_order: Joi.any(),
|
|
7276
|
-
departments: Joi.array().items(Joi.number()),
|
|
7277
|
-
description: Joi.string().allow(""),
|
|
7278
|
-
highlights: Joi.array().items(Joi.string().allow("")),
|
|
7279
|
-
hsn_code: Joi.string().allow(""),
|
|
7280
|
-
id: Joi.string().allow(""),
|
|
7281
|
-
image_nature: Joi.string().allow(""),
|
|
7282
|
-
images: Joi.array().items(Joi.string().allow("")),
|
|
7283
|
-
is_active: Joi.boolean(),
|
|
7284
|
-
is_dependent: Joi.boolean(),
|
|
7285
|
-
is_expirable: Joi.boolean(),
|
|
7286
|
-
is_image_less_product: Joi.boolean(),
|
|
7287
|
-
is_physical: Joi.boolean(),
|
|
7288
|
-
is_set: Joi.boolean(),
|
|
7289
|
-
item_code: Joi.string().allow(""),
|
|
7290
|
-
item_type: Joi.string().allow(""),
|
|
7291
|
-
l3_mapping: Joi.array().items(Joi.string().allow("")),
|
|
7292
|
-
media: Joi.array().items(CatalogPlatformModel.Media()),
|
|
7293
|
-
modified_by: Joi.any(),
|
|
7294
|
-
modified_on: Joi.string().allow(""),
|
|
7295
|
-
moq: Joi.any(),
|
|
7296
|
-
multi_size: Joi.boolean(),
|
|
7297
|
-
name: Joi.string().allow(""),
|
|
7298
|
-
net_quantity: CatalogPlatformModel.NetQuantityResponse(),
|
|
7299
|
-
no_of_boxes: Joi.number(),
|
|
7300
|
-
pending: Joi.string().allow(""),
|
|
7301
|
-
primary_color: Joi.string().allow(""),
|
|
7302
|
-
product_group_tag: Joi.array().items(Joi.string().allow("")),
|
|
7303
|
-
product_publish: CatalogPlatformModel.ProductPublished(),
|
|
7304
|
-
return_config: CatalogPlatformModel.ReturnConfigResponse(),
|
|
7305
|
-
short_description: Joi.string().allow(""),
|
|
7306
|
-
size_guide: Joi.string().allow(""),
|
|
7307
|
-
sizes: Joi.array().items(Joi.any()),
|
|
7308
|
-
slug: Joi.string().allow(""),
|
|
7309
|
-
stage: Joi.string().allow(""),
|
|
7310
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
7311
|
-
tax_identifier: Joi.any(),
|
|
7312
|
-
teaser_tag: Joi.any(),
|
|
7313
|
-
template_tag: Joi.string().allow(""),
|
|
7314
|
-
trader: Joi.array().items(CatalogPlatformModel.Trader()),
|
|
7315
|
-
uid: Joi.number(),
|
|
7316
|
-
variant_group: Joi.any(),
|
|
7317
|
-
variant_media: Joi.any(),
|
|
7318
|
-
variants: Joi.any(),
|
|
7319
|
-
verified_by: CatalogPlatformModel.VerifiedBy(),
|
|
7320
|
-
verified_on: Joi.string().allow(""),
|
|
7281
|
+
/** @returns {Quantity} */
|
|
7282
|
+
static Quantity() {
|
|
7283
|
+
return Joi.object({
|
|
7284
|
+
count: Joi.number(),
|
|
7321
7285
|
});
|
|
7322
7286
|
}
|
|
7323
7287
|
|
|
7324
|
-
/** @returns {
|
|
7325
|
-
static
|
|
7288
|
+
/** @returns {QuantityBase} */
|
|
7289
|
+
static QuantityBase() {
|
|
7326
7290
|
return Joi.object({
|
|
7327
|
-
|
|
7328
|
-
|
|
7291
|
+
count: Joi.number(),
|
|
7292
|
+
updated_at: Joi.string().allow(""),
|
|
7329
7293
|
});
|
|
7330
7294
|
}
|
|
7331
7295
|
|
|
@@ -7365,12 +7329,79 @@ class CatalogPlatformModel {
|
|
|
7365
7329
|
});
|
|
7366
7330
|
}
|
|
7367
7331
|
|
|
7368
|
-
/** @returns {
|
|
7369
|
-
static
|
|
7332
|
+
/** @returns {Sitemap} */
|
|
7333
|
+
static Sitemap() {
|
|
7370
7334
|
return Joi.object({
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7335
|
+
priority: Joi.number(),
|
|
7336
|
+
frequency: Joi.string().allow(""),
|
|
7337
|
+
});
|
|
7338
|
+
}
|
|
7339
|
+
|
|
7340
|
+
/** @returns {ApplicationItemSeoAction} */
|
|
7341
|
+
static ApplicationItemSeoAction() {
|
|
7342
|
+
return Joi.object({
|
|
7343
|
+
page: Joi.any(),
|
|
7344
|
+
type: Joi.string().allow(""),
|
|
7345
|
+
});
|
|
7346
|
+
}
|
|
7347
|
+
|
|
7348
|
+
/** @returns {ApplicationItemSeoBreadcrumbs} */
|
|
7349
|
+
static ApplicationItemSeoBreadcrumbs() {
|
|
7350
|
+
return Joi.object({
|
|
7351
|
+
url: Joi.string().allow(""),
|
|
7352
|
+
action: Joi.array().items(
|
|
7353
|
+
CatalogPlatformModel.ApplicationItemSeoAction()
|
|
7354
|
+
),
|
|
7355
|
+
});
|
|
7356
|
+
}
|
|
7357
|
+
|
|
7358
|
+
/** @returns {ApplicationItemSeoMetaTagItem} */
|
|
7359
|
+
static ApplicationItemSeoMetaTagItem() {
|
|
7360
|
+
return Joi.object({
|
|
7361
|
+
key: Joi.string().allow(""),
|
|
7362
|
+
value: Joi.string().allow(""),
|
|
7363
|
+
});
|
|
7364
|
+
}
|
|
7365
|
+
|
|
7366
|
+
/** @returns {ApplicationItemSeoMetaTags} */
|
|
7367
|
+
static ApplicationItemSeoMetaTags() {
|
|
7368
|
+
return Joi.object({
|
|
7369
|
+
title: Joi.string().allow(""),
|
|
7370
|
+
items: Joi.array().items(
|
|
7371
|
+
CatalogPlatformModel.ApplicationItemSeoMetaTagItem()
|
|
7372
|
+
),
|
|
7373
|
+
});
|
|
7374
|
+
}
|
|
7375
|
+
|
|
7376
|
+
/** @returns {Metatags} */
|
|
7377
|
+
static Metatags() {
|
|
7378
|
+
return Joi.object({
|
|
7379
|
+
title: Joi.string().allow(""),
|
|
7380
|
+
items: Joi.array().items(
|
|
7381
|
+
CatalogPlatformModel.ApplicationItemSeoMetaTags()
|
|
7382
|
+
),
|
|
7383
|
+
});
|
|
7384
|
+
}
|
|
7385
|
+
|
|
7386
|
+
/** @returns {SizePromotionThreshold} */
|
|
7387
|
+
static SizePromotionThreshold() {
|
|
7388
|
+
return Joi.object({
|
|
7389
|
+
threshold_type: Joi.string().allow(""),
|
|
7390
|
+
threshold_value: Joi.number(),
|
|
7391
|
+
});
|
|
7392
|
+
}
|
|
7393
|
+
|
|
7394
|
+
/** @returns {SEOData} */
|
|
7395
|
+
static SEOData() {
|
|
7396
|
+
return Joi.object({
|
|
7397
|
+
description: Joi.string().allow(""),
|
|
7398
|
+
title: Joi.string().allow(""),
|
|
7399
|
+
sitemap: CatalogPlatformModel.Sitemap(),
|
|
7400
|
+
breadcrumbs: Joi.array().items(
|
|
7401
|
+
CatalogPlatformModel.ApplicationItemSeoBreadcrumbs()
|
|
7402
|
+
),
|
|
7403
|
+
meta_tags: Joi.array().items(CatalogPlatformModel.Metatags()),
|
|
7404
|
+
canonical_url: Joi.string().allow(""),
|
|
7374
7405
|
});
|
|
7375
7406
|
}
|
|
7376
7407
|
|
|
@@ -7382,6 +7413,15 @@ class CatalogPlatformModel {
|
|
|
7382
7413
|
});
|
|
7383
7414
|
}
|
|
7384
7415
|
|
|
7416
|
+
/** @returns {SearchableAttribute} */
|
|
7417
|
+
static SearchableAttribute() {
|
|
7418
|
+
return Joi.object({
|
|
7419
|
+
key: Joi.string().allow("").required(),
|
|
7420
|
+
name: Joi.string().allow("").required(),
|
|
7421
|
+
priority: Joi.number().required(),
|
|
7422
|
+
});
|
|
7423
|
+
}
|
|
7424
|
+
|
|
7385
7425
|
/** @returns {SecondLevelChild} */
|
|
7386
7426
|
static SecondLevelChild() {
|
|
7387
7427
|
return Joi.object({
|
|
@@ -7403,31 +7443,17 @@ class CatalogPlatformModel {
|
|
|
7403
7443
|
});
|
|
7404
7444
|
}
|
|
7405
7445
|
|
|
7406
|
-
/** @returns {SEOData} */
|
|
7407
|
-
static SEOData() {
|
|
7408
|
-
return Joi.object({
|
|
7409
|
-
breadcrumbs: Joi.array().items(
|
|
7410
|
-
CatalogPlatformModel.ApplicationItemSeoBreadcrumbs()
|
|
7411
|
-
),
|
|
7412
|
-
canonical_url: Joi.string().allow(""),
|
|
7413
|
-
description: Joi.string().allow(""),
|
|
7414
|
-
meta_tags: Joi.array().items(CatalogPlatformModel.Metatags()),
|
|
7415
|
-
sitemap: CatalogPlatformModel.Sitemap(),
|
|
7416
|
-
title: Joi.string().allow(""),
|
|
7417
|
-
});
|
|
7418
|
-
}
|
|
7419
|
-
|
|
7420
7446
|
/** @returns {SeoDetail} */
|
|
7421
7447
|
static SeoDetail() {
|
|
7422
7448
|
return Joi.object({
|
|
7449
|
+
description: Joi.string().allow(""),
|
|
7450
|
+
title: Joi.string().allow(""),
|
|
7451
|
+
sitemap: Joi.any(),
|
|
7423
7452
|
breadcrumbs: Joi.array().items(
|
|
7424
7453
|
CatalogPlatformModel.ApplicationItemSeoBreadcrumbs()
|
|
7425
7454
|
),
|
|
7426
|
-
canonical_url: Joi.string().allow(""),
|
|
7427
|
-
description: Joi.string().allow(""),
|
|
7428
7455
|
meta_tags: Joi.array().items(CatalogPlatformModel.Metatags()),
|
|
7429
|
-
|
|
7430
|
-
title: Joi.string().allow(""),
|
|
7456
|
+
canonical_url: Joi.string().allow(""),
|
|
7431
7457
|
});
|
|
7432
7458
|
}
|
|
7433
7459
|
|
|
@@ -7453,14 +7479,6 @@ class CatalogPlatformModel {
|
|
|
7453
7479
|
});
|
|
7454
7480
|
}
|
|
7455
7481
|
|
|
7456
|
-
/** @returns {Sitemap} */
|
|
7457
|
-
static Sitemap() {
|
|
7458
|
-
return Joi.object({
|
|
7459
|
-
frequency: Joi.string().allow(""),
|
|
7460
|
-
priority: Joi.number(),
|
|
7461
|
-
});
|
|
7462
|
-
}
|
|
7463
|
-
|
|
7464
7482
|
/** @returns {Size} */
|
|
7465
7483
|
static Size() {
|
|
7466
7484
|
return Joi.object({
|
|
@@ -7497,14 +7515,6 @@ class CatalogPlatformModel {
|
|
|
7497
7515
|
});
|
|
7498
7516
|
}
|
|
7499
7517
|
|
|
7500
|
-
/** @returns {SizePromotionThreshold} */
|
|
7501
|
-
static SizePromotionThreshold() {
|
|
7502
|
-
return Joi.object({
|
|
7503
|
-
threshold_type: Joi.string().allow(""),
|
|
7504
|
-
threshold_value: Joi.number(),
|
|
7505
|
-
});
|
|
7506
|
-
}
|
|
7507
|
-
|
|
7508
7518
|
/** @returns {StoreAssignResponse} */
|
|
7509
7519
|
static StoreAssignResponse() {
|
|
7510
7520
|
return Joi.object({
|
|
@@ -7615,6 +7625,14 @@ class CatalogPlatformModel {
|
|
|
7615
7625
|
});
|
|
7616
7626
|
}
|
|
7617
7627
|
|
|
7628
|
+
/** @returns {TemplateValidationData} */
|
|
7629
|
+
static TemplateValidationData() {
|
|
7630
|
+
return Joi.object({
|
|
7631
|
+
global_validation: CatalogPlatformModel.GlobalValidation(),
|
|
7632
|
+
template_validation: Joi.any(),
|
|
7633
|
+
});
|
|
7634
|
+
}
|
|
7635
|
+
|
|
7618
7636
|
/** @returns {TemplatesResponse} */
|
|
7619
7637
|
static TemplatesResponse() {
|
|
7620
7638
|
return Joi.object({
|
|
@@ -7631,14 +7649,6 @@ class CatalogPlatformModel {
|
|
|
7631
7649
|
});
|
|
7632
7650
|
}
|
|
7633
7651
|
|
|
7634
|
-
/** @returns {TemplateValidationData} */
|
|
7635
|
-
static TemplateValidationData() {
|
|
7636
|
-
return Joi.object({
|
|
7637
|
-
global_validation: CatalogPlatformModel.GlobalValidation(),
|
|
7638
|
-
template_validation: Joi.any(),
|
|
7639
|
-
});
|
|
7640
|
-
}
|
|
7641
|
-
|
|
7642
7652
|
/** @returns {ThirdLevelChild} */
|
|
7643
7653
|
static ThirdLevelChild() {
|
|
7644
7654
|
return Joi.object({
|
|
@@ -7708,41 +7718,6 @@ class CatalogPlatformModel {
|
|
|
7708
7718
|
});
|
|
7709
7719
|
}
|
|
7710
7720
|
|
|
7711
|
-
/** @returns {UpdatedResponse} */
|
|
7712
|
-
static UpdatedResponse() {
|
|
7713
|
-
return Joi.object({
|
|
7714
|
-
items_not_updated: Joi.array().items(Joi.number()),
|
|
7715
|
-
message: Joi.string().allow(""),
|
|
7716
|
-
});
|
|
7717
|
-
}
|
|
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
|
-
|
|
7746
7721
|
/** @returns {UpdateSearchConfigurationRequest} */
|
|
7747
7722
|
static UpdateSearchConfigurationRequest() {
|
|
7748
7723
|
return Joi.object({
|
|
@@ -7767,6 +7742,14 @@ class CatalogPlatformModel {
|
|
|
7767
7742
|
});
|
|
7768
7743
|
}
|
|
7769
7744
|
|
|
7745
|
+
/** @returns {UpdatedResponse} */
|
|
7746
|
+
static UpdatedResponse() {
|
|
7747
|
+
return Joi.object({
|
|
7748
|
+
items_not_updated: Joi.array().items(Joi.number()),
|
|
7749
|
+
message: Joi.string().allow(""),
|
|
7750
|
+
});
|
|
7751
|
+
}
|
|
7752
|
+
|
|
7770
7753
|
/** @returns {UserCommon} */
|
|
7771
7754
|
static UserCommon() {
|
|
7772
7755
|
return Joi.object({
|
|
@@ -7915,6 +7898,67 @@ class CatalogPlatformModel {
|
|
|
7915
7898
|
});
|
|
7916
7899
|
}
|
|
7917
7900
|
|
|
7901
|
+
/** @returns {CreatedBy} */
|
|
7902
|
+
static CreatedBy() {
|
|
7903
|
+
return Joi.object({
|
|
7904
|
+
username: Joi.string().allow(""),
|
|
7905
|
+
user_id: Joi.string().allow(""),
|
|
7906
|
+
});
|
|
7907
|
+
}
|
|
7908
|
+
|
|
7909
|
+
/** @returns {Marketplaces} */
|
|
7910
|
+
static Marketplaces() {
|
|
7911
|
+
return Joi.object({
|
|
7912
|
+
brand_ids: Joi.array().items(Joi.number()),
|
|
7913
|
+
app_id: Joi.string().allow(""),
|
|
7914
|
+
enabled: Joi.boolean(),
|
|
7915
|
+
created_by: CatalogPlatformModel.CreatedBy(),
|
|
7916
|
+
created_on: Joi.any(),
|
|
7917
|
+
opt_level: Joi.string().allow(""),
|
|
7918
|
+
company_id: Joi.number(),
|
|
7919
|
+
modified_by: CatalogPlatformModel.CreatedBy(),
|
|
7920
|
+
store_ids: Joi.array().items(Joi.number()),
|
|
7921
|
+
modified_on: Joi.any(),
|
|
7922
|
+
platforms: Joi.string().allow(""),
|
|
7923
|
+
_id: Joi.string().allow(""),
|
|
7924
|
+
});
|
|
7925
|
+
}
|
|
7926
|
+
|
|
7927
|
+
/** @returns {GetAllMarketplaces} */
|
|
7928
|
+
static GetAllMarketplaces() {
|
|
7929
|
+
return Joi.object({
|
|
7930
|
+
items: Joi.array().items(CatalogPlatformModel.Marketplaces()),
|
|
7931
|
+
page: CatalogPlatformModel.Page(),
|
|
7932
|
+
});
|
|
7933
|
+
}
|
|
7934
|
+
|
|
7935
|
+
/** @returns {UpdateMarketplaceOptinRequest} */
|
|
7936
|
+
static UpdateMarketplaceOptinRequest() {
|
|
7937
|
+
return Joi.object({
|
|
7938
|
+
brand_ids: Joi.array().items(Joi.number()),
|
|
7939
|
+
company_id: Joi.number(),
|
|
7940
|
+
enabled: Joi.boolean(),
|
|
7941
|
+
opt_level: Joi.string().allow(""),
|
|
7942
|
+
platform: Joi.string().allow(""),
|
|
7943
|
+
store_ids: Joi.array().items(Joi.number()),
|
|
7944
|
+
});
|
|
7945
|
+
}
|
|
7946
|
+
|
|
7947
|
+
/** @returns {UpdateMarketplaceOptinResponse} */
|
|
7948
|
+
static UpdateMarketplaceOptinResponse() {
|
|
7949
|
+
return Joi.object({
|
|
7950
|
+
brand_ids: Joi.array().items(Joi.number()),
|
|
7951
|
+
company_id: Joi.number(),
|
|
7952
|
+
app_id: Joi.string().allow(""),
|
|
7953
|
+
enabled: Joi.boolean(),
|
|
7954
|
+
opt_level: Joi.string().allow(""),
|
|
7955
|
+
platform: Joi.string().allow(""),
|
|
7956
|
+
store_ids: Joi.array().items(Joi.number()),
|
|
7957
|
+
created_by: CatalogPlatformModel.CreatedBy(),
|
|
7958
|
+
modified_by: CatalogPlatformModel.CreatedBy(),
|
|
7959
|
+
});
|
|
7960
|
+
}
|
|
7961
|
+
|
|
7918
7962
|
/**
|
|
7919
7963
|
* Enum: PageType Used By: Catalog
|
|
7920
7964
|
*
|