@gofynd/fdk-client-javascript 1.4.12 → 1.4.14
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 +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +96 -39
- package/sdk/application/Content/ContentApplicationModel.js +88 -34
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +51 -19
- package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/common/Clickstream.js +12 -0
- package/sdk/common/Constant.d.ts +5 -0
- package/sdk/common/Constant.js +5 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +99 -39
- package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +192 -164
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
- package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1244 -397
- package/sdk/platform/Content/ContentPlatformModel.js +526 -392
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +138 -101
- package/sdk/platform/Order/OrderPlatformClient.js +267 -203
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
- package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
- package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +40 -13
- package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +791 -5
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -20,7 +20,7 @@ const Joi = require("joi");
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* @typedef
|
|
23
|
+
* @typedef AllowSingleRequestSchema
|
|
24
24
|
* @property {boolean} allow_single
|
|
25
25
|
*/
|
|
26
26
|
|
|
@@ -42,17 +42,16 @@ const Joi = require("joi");
|
|
|
42
42
|
/**
|
|
43
43
|
* @typedef AppCategoryReturnConfig
|
|
44
44
|
* @property {number} category_id - Unique identifier for L3 category
|
|
45
|
-
* @property {
|
|
46
|
-
* configuration details
|
|
45
|
+
* @property {ProductReturnConfigBaseSchema} return_config - Return configuration details
|
|
47
46
|
*/
|
|
48
47
|
|
|
49
48
|
/**
|
|
50
|
-
* @typedef
|
|
49
|
+
* @typedef AppCategoryReturnConfigResponseSchema
|
|
51
50
|
* @property {string} [app_id] - Channel identifier
|
|
52
51
|
* @property {number} [category_id] - Unique identifer of L3 category
|
|
53
52
|
* @property {string} [logo]
|
|
54
53
|
* @property {string} [name] - Name of L3 category
|
|
55
|
-
* @property {
|
|
54
|
+
* @property {ProductReturnConfigBaseSchema} [return_config]
|
|
56
55
|
*/
|
|
57
56
|
|
|
58
57
|
/**
|
|
@@ -120,7 +119,7 @@ const Joi = require("joi");
|
|
|
120
119
|
*/
|
|
121
120
|
|
|
122
121
|
/**
|
|
123
|
-
* @typedef
|
|
122
|
+
* @typedef ApplicationDepartmentListingResponseSchema
|
|
124
123
|
* @property {ApplicationDepartment[]} [items]
|
|
125
124
|
* @property {Page} page
|
|
126
125
|
*/
|
|
@@ -165,9 +164,103 @@ const Joi = require("joi");
|
|
|
165
164
|
*/
|
|
166
165
|
|
|
167
166
|
/**
|
|
168
|
-
* @typedef
|
|
167
|
+
* @typedef ApplicationProductsSchema
|
|
168
|
+
* @property {Object} [attributes] - Additional attributes of the product, such
|
|
169
|
+
* as custom properties or features.
|
|
170
|
+
* @property {ProductBrand} [brand]
|
|
171
|
+
* @property {string} [color]
|
|
172
|
+
* @property {string} [description] - A detailed description of the product.
|
|
173
|
+
* @property {string} [discount] - The discount applied to the product.
|
|
174
|
+
* @property {boolean} [has_variant] - Indicates whether the product has
|
|
175
|
+
* variants, such as different sizes or colors.
|
|
176
|
+
* @property {string[]} [highlights] - Key highlights of the product.
|
|
177
|
+
* @property {string} image_nature - The nature of the product image, indicating
|
|
178
|
+
* if it's the default or a standard image.
|
|
179
|
+
* @property {string} item_code - A unique code assigned to the product item at
|
|
180
|
+
* company and brand level.
|
|
181
|
+
* @property {string} item_type - The type of the product, defining its nature.
|
|
182
|
+
* @property {Media[]} [medias] - A list of media items associated with the
|
|
183
|
+
* product, such as images or videos.
|
|
184
|
+
* @property {string} name - The name of the product.
|
|
185
|
+
* @property {ProductListingPrice} [price]
|
|
186
|
+
* @property {string} [product_online_date] - The date and time when the product
|
|
187
|
+
* becomes available online.
|
|
188
|
+
* @property {Object} [promo_meta] - Metadata related to any promotions
|
|
189
|
+
* associated with the product.
|
|
190
|
+
* @property {number} [rating] - The average rating of the product, typically
|
|
191
|
+
* based on customer reviews.
|
|
192
|
+
* @property {number} [rating_count] - The total number of ratings the product
|
|
193
|
+
* has received.
|
|
194
|
+
* @property {boolean} [sellable] - Indicates whether the product is available for sale.
|
|
195
|
+
* @property {string} [short_description] - A brief description of the product.
|
|
196
|
+
* @property {string[]} [similars] - A list of similar products.
|
|
197
|
+
* @property {string} slug - A URL-friendly string representing the product.
|
|
198
|
+
* @property {Object} [teaser_tag] - A teaser tag object providing short
|
|
199
|
+
* promotional information about the product.
|
|
200
|
+
* @property {string[]} [tryouts] - A list of tryout options or samples
|
|
201
|
+
* available for the product.
|
|
202
|
+
* @property {string} [type] - The type or category of the product.
|
|
203
|
+
* @property {number} uid - A unique identifier for the product.
|
|
204
|
+
* @property {number} [popularity] - A numerical value indicating the popularity
|
|
205
|
+
* of the product.
|
|
206
|
+
* @property {number} brand_uid - The unique identifier for the brand associated
|
|
207
|
+
* with the product.
|
|
208
|
+
* @property {number} category_uid - The unique identifier for the category to
|
|
209
|
+
* which the product belongs.
|
|
210
|
+
* @property {number} [verification_status] - The verification status of the
|
|
211
|
+
* product, typically represented as an integer.
|
|
212
|
+
* @property {string} [channel_identifier] - The identifier for the sales
|
|
213
|
+
* channel through which the product is sold.
|
|
214
|
+
* @property {string} [category_slug] - A URL-friendly string representing the
|
|
215
|
+
* product's category.
|
|
216
|
+
* @property {string} [size_guide] - A guide or chart providing size information
|
|
217
|
+
* for the product.
|
|
218
|
+
* @property {number[]} l3_categories - A list of L3 category IDs of the product.
|
|
219
|
+
* @property {number[]} [store_ids] - A list of store IDs where the product is available.
|
|
220
|
+
* @property {number[]} [company_ids] - A list of company IDs associated with the product.
|
|
221
|
+
* @property {number[]} departments - A list of department IDs where the product
|
|
222
|
+
* is categorized.
|
|
223
|
+
* @property {string[]} [tags] - A list of tags or keywords associated with the product.
|
|
224
|
+
* @property {string[]} [l3_category_names] - A list of names of L3 categories
|
|
225
|
+
* of the product.
|
|
226
|
+
* @property {string[]} [sizes] - A list of available sizes for the product.
|
|
227
|
+
* @property {string[]} [product_group_tag] - Tags that group the product with
|
|
228
|
+
* other similar products.
|
|
229
|
+
* @property {boolean} multi_size - Indicates whether the product is available
|
|
230
|
+
* in multiple sizes.
|
|
231
|
+
* @property {boolean} is_gift - Indicates whether the product can be considered
|
|
232
|
+
* as a gift.
|
|
233
|
+
* @property {boolean} is_cod - Indicates whether the product is eligible for
|
|
234
|
+
* cash on delivery (COD).
|
|
235
|
+
* @property {boolean} is_dependent - Indicates whether the product depends on
|
|
236
|
+
* another product.
|
|
237
|
+
* @property {boolean} is_available - Indicates whether the product is currently
|
|
238
|
+
* available for purchase.
|
|
239
|
+
* @property {ApplicationItemMOQ} moq
|
|
240
|
+
* @property {ApplicationItemSEO} seo
|
|
241
|
+
* @property {Object} [variants] - An object containing details about the
|
|
242
|
+
* product variants.
|
|
243
|
+
* @property {Object} [variant_media] - Media items specific to the product variants.
|
|
244
|
+
* @property {Object} [variant_group] - A group identifier for products that are
|
|
245
|
+
* variants of one another.
|
|
246
|
+
* @property {MultiCategoriesSchema[]} [multi_categories]
|
|
247
|
+
* @property {string} [template_tag] - Tag used for categorizing or templating purposes.
|
|
248
|
+
* @property {Object} [net_quantity] - Net quantity details for the product.
|
|
249
|
+
* @property {CustomOrder} [custom_order]
|
|
250
|
+
* @property {string} country_of_origin - Country where the product is
|
|
251
|
+
* manufactured or sourced from.
|
|
252
|
+
* @property {Object} [_custom_json] - Custom JSON data associated with the product.
|
|
253
|
+
* @property {string[]} [identifiers] - Identifiers associated with the product.
|
|
254
|
+
* @property {number} [item_id] - Unique identifier for the item.
|
|
255
|
+
* @property {CustomMeta[]} [_custom_meta] - Custom meta associated with the product.
|
|
256
|
+
* @property {number} [discount_percentage] - The discount applied to the
|
|
257
|
+
* product in percentage.
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @typedef ApplicationProductListingResponseSchema
|
|
169
262
|
* @property {ProductFilters[]} [filters]
|
|
170
|
-
* @property {
|
|
263
|
+
* @property {ApplicationProductsSchema[]} [items]
|
|
171
264
|
* @property {Object} [operators]
|
|
172
265
|
* @property {Page} page
|
|
173
266
|
* @property {ProductSortOn[]} [sort_on]
|
|
@@ -179,7 +272,7 @@ const Joi = require("joi");
|
|
|
179
272
|
*/
|
|
180
273
|
|
|
181
274
|
/**
|
|
182
|
-
* @typedef
|
|
275
|
+
* @typedef AppReturnConfigResponseSchema
|
|
183
276
|
* @property {string} [app_id] - Channel identifier
|
|
184
277
|
* @property {number} [category_count] - Count of L3 category return config set
|
|
185
278
|
* for application
|
|
@@ -211,7 +304,7 @@ const Joi = require("joi");
|
|
|
211
304
|
*/
|
|
212
305
|
|
|
213
306
|
/**
|
|
214
|
-
* @typedef
|
|
307
|
+
* @typedef ArticleStoreResponseSchema
|
|
215
308
|
* @property {string} [name]
|
|
216
309
|
* @property {string} [store_code]
|
|
217
310
|
* @property {string} [store_type]
|
|
@@ -284,7 +377,7 @@ const Joi = require("joi");
|
|
|
284
377
|
*/
|
|
285
378
|
|
|
286
379
|
/**
|
|
287
|
-
* @typedef
|
|
380
|
+
* @typedef AttributeMasterSchema
|
|
288
381
|
* @property {Object} [created_by]
|
|
289
382
|
* @property {string} [created_on]
|
|
290
383
|
* @property {string[]} departments
|
|
@@ -351,15 +444,13 @@ const Joi = require("joi");
|
|
|
351
444
|
|
|
352
445
|
/**
|
|
353
446
|
* @typedef BaseAppCategoryReturnConfig
|
|
354
|
-
* @property {string} app_id - Channel identifier
|
|
355
|
-
* @property {number} company_id - Unique identifer of company
|
|
356
447
|
* @property {AppCategoryReturnConfig[]} data - Category level return config details
|
|
357
448
|
*/
|
|
358
449
|
|
|
359
450
|
/**
|
|
360
|
-
* @typedef
|
|
361
|
-
* @property {
|
|
362
|
-
* @property {
|
|
451
|
+
* @typedef BaseAppCategoryReturnConfigResponseSchema
|
|
452
|
+
* @property {AppCategoryReturnConfigResponseSchema[]} [data]
|
|
453
|
+
* @property {PageResponseSchema} [page]
|
|
363
454
|
*/
|
|
364
455
|
|
|
365
456
|
/**
|
|
@@ -382,7 +473,57 @@ const Joi = require("joi");
|
|
|
382
473
|
*/
|
|
383
474
|
|
|
384
475
|
/**
|
|
385
|
-
* @typedef
|
|
476
|
+
* @typedef ApplicationCategoryListingSchema
|
|
477
|
+
* @property {ApplicationCategoryListingItemSchema[]} [items]
|
|
478
|
+
* @property {Page} [page]
|
|
479
|
+
*/
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* @typedef ApplicationCategoryListingItemSchema
|
|
483
|
+
* @property {string} [name] - Name of the category.
|
|
484
|
+
* @property {string} [logo] - URL of the category's logo.
|
|
485
|
+
* @property {number[]} [departments] - List of department IDs.
|
|
486
|
+
* @property {string} [attr_name] - Attribute name of the category.
|
|
487
|
+
* @property {string} [landscape_url] - URL of the landscape banner.
|
|
488
|
+
* @property {string} [portrait_url] - URL of the portrait banner.
|
|
489
|
+
* @property {Object} [_custom_json] - Custom JSON object for additional data.
|
|
490
|
+
* @property {number} [priority] - Priority of the category.
|
|
491
|
+
* @property {CreatedBy} [created_by]
|
|
492
|
+
* @property {string} [created_on] - Timestamp when the category was created.
|
|
493
|
+
* @property {ModifiedBy} [modified_by]
|
|
494
|
+
* @property {string} [modified_on] - Timestamp when the category was last modified.
|
|
495
|
+
* @property {string} [app_id] - Application ID associated with the category.
|
|
496
|
+
* @property {boolean} [is_active] - Indicates whether the category is active.
|
|
497
|
+
* @property {number} [uid] - Unique identifier of the category.
|
|
498
|
+
*/
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* @typedef ApplicationBrandListingSchema
|
|
502
|
+
* @property {ApplicationBrandListingItemSchema[]} [items]
|
|
503
|
+
* @property {Page} [page]
|
|
504
|
+
*/
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* @typedef ApplicationBrandListingItemSchema
|
|
508
|
+
* @property {Object} [_custom_json] - Custom JSON object for additional data.
|
|
509
|
+
* @property {Object} [_locale_language] - Custom object for locale-specific
|
|
510
|
+
* language data.
|
|
511
|
+
* @property {string} [brand_banner_portrait_url] - URL of the brand's portrait banner.
|
|
512
|
+
* @property {string} [brand_banner_url] - URL of the brand's landscape banner.
|
|
513
|
+
* @property {string} [brand_logo_url] - URL of the brand's logo.
|
|
514
|
+
* @property {string} [description] - Description of the brand.
|
|
515
|
+
* @property {string} [name] - Name of the brand.
|
|
516
|
+
* @property {string} [slug_key] - Unique slug key for the brand.
|
|
517
|
+
* @property {number} [priority] - Priority of the brand in listing.
|
|
518
|
+
* @property {number} [uid] - Unique identifier of the brand.
|
|
519
|
+
* @property {string} [created_on] - Timestamp when the category was created.
|
|
520
|
+
* @property {string} [last_updated] - Timestamp when the category was created.
|
|
521
|
+
* @property {boolean} [is_active] - Indicates if the brand is active.
|
|
522
|
+
* @property {number[]} [departments] - List of department IDs associated with the brand.
|
|
523
|
+
*/
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @typedef BrandListingResponseSchema
|
|
386
527
|
* @property {BrandItem[]} [items]
|
|
387
528
|
* @property {Page} page
|
|
388
529
|
*/
|
|
@@ -400,13 +541,13 @@ const Joi = require("joi");
|
|
|
400
541
|
*/
|
|
401
542
|
|
|
402
543
|
/**
|
|
403
|
-
* @typedef
|
|
544
|
+
* @typedef BulkAssetResponseSchema
|
|
404
545
|
* @property {Items[]} [items]
|
|
405
546
|
* @property {Page} [page]
|
|
406
547
|
*/
|
|
407
548
|
|
|
408
549
|
/**
|
|
409
|
-
* @typedef
|
|
550
|
+
* @typedef BulkHsnResponseSchema
|
|
410
551
|
* @property {boolean} [success] - Flag indicating the success status of the
|
|
411
552
|
* bulk HSN operation.
|
|
412
553
|
*/
|
|
@@ -478,7 +619,7 @@ const Joi = require("joi");
|
|
|
478
619
|
*/
|
|
479
620
|
|
|
480
621
|
/**
|
|
481
|
-
* @typedef
|
|
622
|
+
* @typedef BulkProductRequestSchema
|
|
482
623
|
* @property {string} batch_id
|
|
483
624
|
* @property {number} company_id
|
|
484
625
|
* @property {Object[]} data
|
|
@@ -486,7 +627,7 @@ const Joi = require("joi");
|
|
|
486
627
|
*/
|
|
487
628
|
|
|
488
629
|
/**
|
|
489
|
-
* @typedef
|
|
630
|
+
* @typedef BulkResponseSchema
|
|
490
631
|
* @property {string} batch_id
|
|
491
632
|
* @property {UserInfo1} [created_by] - The user who created the item.
|
|
492
633
|
* @property {string} created_on - The date and time when the item was created.
|
|
@@ -513,13 +654,13 @@ const Joi = require("joi");
|
|
|
513
654
|
*/
|
|
514
655
|
|
|
515
656
|
/**
|
|
516
|
-
* @typedef
|
|
657
|
+
* @typedef CatalogInsightResponseSchema
|
|
517
658
|
* @property {CatalogInsightBrand} [brand_distribution]
|
|
518
659
|
* @property {CatalogInsightItem} [item]
|
|
519
660
|
*/
|
|
520
661
|
|
|
521
662
|
/**
|
|
522
|
-
* @typedef
|
|
663
|
+
* @typedef CategoriesResponseSchema
|
|
523
664
|
* @property {string} [name]
|
|
524
665
|
* @property {string} [slug]
|
|
525
666
|
* @property {string} [slug_key]
|
|
@@ -565,7 +706,7 @@ const Joi = require("joi");
|
|
|
565
706
|
*/
|
|
566
707
|
|
|
567
708
|
/**
|
|
568
|
-
* @typedef
|
|
709
|
+
* @typedef CategoryListingResponseSchema
|
|
569
710
|
* @property {DepartmentCategoryTree[]} [data]
|
|
570
711
|
* @property {DepartmentIdentifier[]} [departments]
|
|
571
712
|
*/
|
|
@@ -588,7 +729,7 @@ const Joi = require("joi");
|
|
|
588
729
|
*/
|
|
589
730
|
|
|
590
731
|
/**
|
|
591
|
-
* @typedef
|
|
732
|
+
* @typedef CategoryResponseSchema
|
|
592
733
|
* @property {Category[]} [items]
|
|
593
734
|
* @property {Page} [page]
|
|
594
735
|
*/
|
|
@@ -617,7 +758,7 @@ const Joi = require("joi");
|
|
|
617
758
|
*/
|
|
618
759
|
|
|
619
760
|
/**
|
|
620
|
-
* @typedef
|
|
761
|
+
* @typedef CollectionCreateResponseSchema
|
|
621
762
|
* @property {string} [uid]
|
|
622
763
|
* @property {Object} [_schedule]
|
|
623
764
|
* @property {boolean} [allow_facets]
|
|
@@ -641,7 +782,7 @@ const Joi = require("joi");
|
|
|
641
782
|
*/
|
|
642
783
|
|
|
643
784
|
/**
|
|
644
|
-
* @typedef
|
|
785
|
+
* @typedef CollectionDetailResponseSchema
|
|
645
786
|
* @property {Object} [_schedule]
|
|
646
787
|
* @property {boolean} [allow_facets]
|
|
647
788
|
* @property {boolean} [allow_sort]
|
|
@@ -756,12 +897,12 @@ const Joi = require("joi");
|
|
|
756
897
|
*/
|
|
757
898
|
|
|
758
899
|
/**
|
|
759
|
-
* @typedef
|
|
900
|
+
* @typedef ConfigErrorResponseSchema
|
|
760
901
|
* @property {string} message
|
|
761
902
|
*/
|
|
762
903
|
|
|
763
904
|
/**
|
|
764
|
-
* @typedef
|
|
905
|
+
* @typedef ConfigSuccessResponseSchema
|
|
765
906
|
* @property {string} message
|
|
766
907
|
*/
|
|
767
908
|
|
|
@@ -870,7 +1011,7 @@ const Joi = require("joi");
|
|
|
870
1011
|
*/
|
|
871
1012
|
|
|
872
1013
|
/**
|
|
873
|
-
* @typedef
|
|
1014
|
+
* @typedef CreateAutocompleteWordsResponseSchema
|
|
874
1015
|
* @property {Object} [_custom_json]
|
|
875
1016
|
* @property {string} [app_id]
|
|
876
1017
|
* @property {Object[]} [results]
|
|
@@ -907,18 +1048,16 @@ const Joi = require("joi");
|
|
|
907
1048
|
*/
|
|
908
1049
|
|
|
909
1050
|
/**
|
|
910
|
-
* @typedef
|
|
1051
|
+
* @typedef CreateSearchConfigurationRequestSchema
|
|
911
1052
|
* @property {string} application_id - The application id where custom search
|
|
912
1053
|
* configuration is set
|
|
913
1054
|
* @property {number} company_id - The company id where custom search configuration is set
|
|
914
|
-
* @property {
|
|
915
|
-
* configuration.
|
|
1055
|
+
* @property {UserSchema} [created_by] - The user who created the search configuration.
|
|
916
1056
|
* @property {string} [created_on] - The date and time when the search
|
|
917
1057
|
* configuration was created.
|
|
918
1058
|
* @property {boolean} [is_proximity_enabled] - Flag indicating if proximity
|
|
919
1059
|
* search is enabled for this attribute.
|
|
920
|
-
* @property {
|
|
921
|
-
* configuration.
|
|
1060
|
+
* @property {UserSchema} [modified_by] - The user who modified the search configuration.
|
|
922
1061
|
* @property {string} [modified_on] - The date and time when the search
|
|
923
1062
|
* configuration was last modified.
|
|
924
1063
|
* @property {number} [proximity] - Proximity distance configuration
|
|
@@ -927,7 +1066,7 @@ const Joi = require("joi");
|
|
|
927
1066
|
*/
|
|
928
1067
|
|
|
929
1068
|
/**
|
|
930
|
-
* @typedef
|
|
1069
|
+
* @typedef CreateSearchConfigurationResponseSchema
|
|
931
1070
|
* @property {boolean} [success]
|
|
932
1071
|
*/
|
|
933
1072
|
|
|
@@ -942,8 +1081,6 @@ const Joi = require("joi");
|
|
|
942
1081
|
|
|
943
1082
|
/**
|
|
944
1083
|
* @typedef CreateUpdateAppReturnConfig
|
|
945
|
-
* @property {string} app_id - Channel identifier
|
|
946
|
-
* @property {number} company_id - Unique identifer of company
|
|
947
1084
|
* @property {string} return_config_level - Return configurtion Level
|
|
948
1085
|
* category|product|no-return
|
|
949
1086
|
*/
|
|
@@ -955,16 +1092,19 @@ const Joi = require("joi");
|
|
|
955
1092
|
*/
|
|
956
1093
|
|
|
957
1094
|
/**
|
|
958
|
-
* @typedef
|
|
1095
|
+
* @typedef CrossSellingResponseSchema
|
|
959
1096
|
* @property {CatalogInsightBrand} [brand_distribution]
|
|
960
1097
|
* @property {CrossSellingData} [data]
|
|
961
1098
|
*/
|
|
962
1099
|
|
|
963
1100
|
/**
|
|
964
1101
|
* @typedef CustomOrder
|
|
965
|
-
* @property {
|
|
966
|
-
*
|
|
967
|
-
* @property {
|
|
1102
|
+
* @property {string} [manufacturing_time_unit] - Unit of time for manufacturing
|
|
1103
|
+
* (e.g., days, weeks).
|
|
1104
|
+
* @property {boolean} is_custom_order - Indicates if the product is available
|
|
1105
|
+
* for custom orders.
|
|
1106
|
+
* @property {number} [manufacturing_time] - Time required for manufacturing in
|
|
1107
|
+
* the specified unit.
|
|
968
1108
|
*/
|
|
969
1109
|
|
|
970
1110
|
/**
|
|
@@ -976,24 +1116,22 @@ const Joi = require("joi");
|
|
|
976
1116
|
*/
|
|
977
1117
|
|
|
978
1118
|
/**
|
|
979
|
-
* @typedef
|
|
1119
|
+
* @typedef DefaultKeyRequestSchema
|
|
980
1120
|
* @property {string} default_key
|
|
981
1121
|
*/
|
|
982
1122
|
|
|
983
1123
|
/**
|
|
984
1124
|
* @typedef DeleteAppCategoryReturnConfig
|
|
985
|
-
* @property {string} app_id - Channel identifier
|
|
986
1125
|
* @property {number[]} category_ids - List of category_ids to be deleted.
|
|
987
|
-
* @property {number} company_id - Unique identifer of company
|
|
988
1126
|
*/
|
|
989
1127
|
|
|
990
1128
|
/**
|
|
991
|
-
* @typedef
|
|
1129
|
+
* @typedef DeleteResponseSchema
|
|
992
1130
|
* @property {string} [message]
|
|
993
1131
|
*/
|
|
994
1132
|
|
|
995
1133
|
/**
|
|
996
|
-
* @typedef
|
|
1134
|
+
* @typedef DeleteSearchConfigurationResponseSchema
|
|
997
1135
|
* @property {boolean} [success]
|
|
998
1136
|
*/
|
|
999
1137
|
|
|
@@ -1013,7 +1151,7 @@ const Joi = require("joi");
|
|
|
1013
1151
|
*/
|
|
1014
1152
|
|
|
1015
1153
|
/**
|
|
1016
|
-
* @typedef
|
|
1154
|
+
* @typedef DepartmentErrorResponseSchema
|
|
1017
1155
|
* @property {string} [code]
|
|
1018
1156
|
* @property {Object} [errors]
|
|
1019
1157
|
* @property {string} [message]
|
|
@@ -1028,18 +1166,18 @@ const Joi = require("joi");
|
|
|
1028
1166
|
*/
|
|
1029
1167
|
|
|
1030
1168
|
/**
|
|
1031
|
-
* @typedef
|
|
1169
|
+
* @typedef DepartmentResponseSchema
|
|
1032
1170
|
* @property {Department[]} [items]
|
|
1033
1171
|
*/
|
|
1034
1172
|
|
|
1035
1173
|
/**
|
|
1036
|
-
* @typedef
|
|
1174
|
+
* @typedef DepartmentsResponseSchema
|
|
1037
1175
|
* @property {GetDepartment[]} [items]
|
|
1038
1176
|
* @property {Page} [page]
|
|
1039
1177
|
*/
|
|
1040
1178
|
|
|
1041
1179
|
/**
|
|
1042
|
-
* @typedef
|
|
1180
|
+
* @typedef DimensionResponseSchema
|
|
1043
1181
|
* @property {number} height - The height dimension.
|
|
1044
1182
|
* @property {boolean} is_default - Indicates if it is the default dimension.
|
|
1045
1183
|
* @property {number} length - The length dimension.
|
|
@@ -1075,7 +1213,7 @@ const Joi = require("joi");
|
|
|
1075
1213
|
*/
|
|
1076
1214
|
|
|
1077
1215
|
/**
|
|
1078
|
-
* @typedef
|
|
1216
|
+
* @typedef ErrorResponseSchema
|
|
1079
1217
|
* @property {string} [code]
|
|
1080
1218
|
* @property {string} [error]
|
|
1081
1219
|
* @property {string} [message]
|
|
@@ -1130,20 +1268,20 @@ const Joi = require("joi");
|
|
|
1130
1268
|
* @property {Object} [moq]
|
|
1131
1269
|
* @property {boolean} [multi_size]
|
|
1132
1270
|
* @property {string} [name]
|
|
1133
|
-
* @property {
|
|
1271
|
+
* @property {NetQuantityResponseSchema} [net_quantity]
|
|
1134
1272
|
* @property {number} [no_of_boxes]
|
|
1135
1273
|
* @property {string} [pending]
|
|
1136
1274
|
* @property {string} [primary_color]
|
|
1137
1275
|
* @property {string[]} [product_group_tag]
|
|
1138
1276
|
* @property {ProductPublished} [product_publish]
|
|
1139
|
-
* @property {
|
|
1277
|
+
* @property {ReturnConfigResponseSchema} [return_config]
|
|
1140
1278
|
* @property {string} [short_description]
|
|
1141
1279
|
* @property {string} [size_guide]
|
|
1142
1280
|
* @property {Object[]} [sizes]
|
|
1143
1281
|
* @property {string} [slug]
|
|
1144
1282
|
* @property {string} [stage]
|
|
1145
1283
|
* @property {string[]} [tags]
|
|
1146
|
-
* @property {
|
|
1284
|
+
* @property {TaxIdentifier} [tax_identifier]
|
|
1147
1285
|
* @property {Object} [teaser_tag]
|
|
1148
1286
|
* @property {string} [template_tag]
|
|
1149
1287
|
* @property {Trader[]} [trader]
|
|
@@ -1157,7 +1295,7 @@ const Joi = require("joi");
|
|
|
1157
1295
|
*/
|
|
1158
1296
|
|
|
1159
1297
|
/**
|
|
1160
|
-
* @typedef
|
|
1298
|
+
* @typedef RawProductListingResponseSchema
|
|
1161
1299
|
* @property {RawProduct[]} [items]
|
|
1162
1300
|
* @property {Page} [page]
|
|
1163
1301
|
*/
|
|
@@ -1186,7 +1324,7 @@ const Joi = require("joi");
|
|
|
1186
1324
|
*/
|
|
1187
1325
|
|
|
1188
1326
|
/**
|
|
1189
|
-
* @typedef
|
|
1327
|
+
* @typedef GetAddressSchema
|
|
1190
1328
|
* @property {string} [address1]
|
|
1191
1329
|
* @property {string} [address2]
|
|
1192
1330
|
* @property {string} [address_type]
|
|
@@ -1227,7 +1365,7 @@ const Joi = require("joi");
|
|
|
1227
1365
|
*/
|
|
1228
1366
|
|
|
1229
1367
|
/**
|
|
1230
|
-
* @typedef
|
|
1368
|
+
* @typedef GetAutocompleteWordsResponseSchema
|
|
1231
1369
|
* @property {GetAutocompleteWordsData[]} [items]
|
|
1232
1370
|
* @property {Page} [page]
|
|
1233
1371
|
*/
|
|
@@ -1248,7 +1386,7 @@ const Joi = require("joi");
|
|
|
1248
1386
|
|
|
1249
1387
|
/**
|
|
1250
1388
|
* @typedef GetCatalogConfigurationMetaData
|
|
1251
|
-
* @property {
|
|
1389
|
+
* @property {MetaDataListingResponseSchema} [listing]
|
|
1252
1390
|
* @property {GetCatalogConfigurationDetailsProduct} [product]
|
|
1253
1391
|
*/
|
|
1254
1392
|
|
|
@@ -1277,30 +1415,30 @@ const Joi = require("joi");
|
|
|
1277
1415
|
*/
|
|
1278
1416
|
|
|
1279
1417
|
/**
|
|
1280
|
-
* @typedef
|
|
1418
|
+
* @typedef GetCollectionItemsResponseSchema
|
|
1281
1419
|
* @property {ProductFilters[]} [filters]
|
|
1282
|
-
* @property {
|
|
1420
|
+
* @property {ApplicationProductsSchema[]} [items]
|
|
1283
1421
|
* @property {Page} [page]
|
|
1284
1422
|
* @property {ProductSortOn[]} [sort_on]
|
|
1285
1423
|
*/
|
|
1286
1424
|
|
|
1287
1425
|
/**
|
|
1288
|
-
* @typedef
|
|
1426
|
+
* @typedef GetCollectionListingResponseSchema
|
|
1289
1427
|
* @property {CollectionListingFilter} [filters]
|
|
1290
1428
|
* @property {GetCollectionDetailNest[]} [items]
|
|
1291
1429
|
* @property {Page} [page]
|
|
1292
1430
|
*/
|
|
1293
1431
|
|
|
1294
1432
|
/**
|
|
1295
|
-
* @typedef
|
|
1433
|
+
* @typedef GetCollectionQueryOptionResponseSchema
|
|
1296
1434
|
* @property {ProductFilters[]} [filters]
|
|
1297
1435
|
* @property {Object} operators
|
|
1298
1436
|
* @property {ProductSortOn[]} [sort_on]
|
|
1299
1437
|
*/
|
|
1300
1438
|
|
|
1301
1439
|
/**
|
|
1302
|
-
* @typedef
|
|
1303
|
-
* @property {
|
|
1440
|
+
* @typedef GetCompanySchema
|
|
1441
|
+
* @property {GetAddressSchema[]} [addresses]
|
|
1304
1442
|
* @property {string} [business_type]
|
|
1305
1443
|
* @property {string} [company_type]
|
|
1306
1444
|
* @property {UserSerializer2} [created_by]
|
|
@@ -1342,7 +1480,7 @@ const Joi = require("joi");
|
|
|
1342
1480
|
*/
|
|
1343
1481
|
|
|
1344
1482
|
/**
|
|
1345
|
-
* @typedef
|
|
1483
|
+
* @typedef GetConfigMetadataResponseSchema
|
|
1346
1484
|
* @property {ConditionItem[]} [condition]
|
|
1347
1485
|
* @property {DataItem[]} data
|
|
1348
1486
|
* @property {Page} [page]
|
|
@@ -1356,7 +1494,7 @@ const Joi = require("joi");
|
|
|
1356
1494
|
*/
|
|
1357
1495
|
|
|
1358
1496
|
/**
|
|
1359
|
-
* @typedef
|
|
1497
|
+
* @typedef GetConfigResponseSchema
|
|
1360
1498
|
* @property {Object[]} data
|
|
1361
1499
|
* @property {PageResponseType} page
|
|
1362
1500
|
*/
|
|
@@ -1390,7 +1528,7 @@ const Joi = require("joi");
|
|
|
1390
1528
|
* @property {DimensionResponse1} [dimension]
|
|
1391
1529
|
* @property {string} [expiration_date]
|
|
1392
1530
|
* @property {string} [id]
|
|
1393
|
-
* @property {
|
|
1531
|
+
* @property {Identifier} [identifier]
|
|
1394
1532
|
* @property {string} [inventory_updated_on]
|
|
1395
1533
|
* @property {boolean} [is_set]
|
|
1396
1534
|
* @property {number} [item_id]
|
|
@@ -1403,9 +1541,9 @@ const Joi = require("joi");
|
|
|
1403
1541
|
* @property {string} [seller_identifier]
|
|
1404
1542
|
* @property {string} [size]
|
|
1405
1543
|
* @property {string} [stage]
|
|
1406
|
-
* @property {
|
|
1544
|
+
* @property {ArticleStoreResponseSchema} [store]
|
|
1407
1545
|
* @property {string[]} [tags]
|
|
1408
|
-
* @property {
|
|
1546
|
+
* @property {TaxIdentifier} [tax_identifier]
|
|
1409
1547
|
* @property {number} [total_quantity]
|
|
1410
1548
|
* @property {string} [trace_id]
|
|
1411
1549
|
* @property {boolean} [track_inventory]
|
|
@@ -1415,34 +1553,34 @@ const Joi = require("joi");
|
|
|
1415
1553
|
*/
|
|
1416
1554
|
|
|
1417
1555
|
/**
|
|
1418
|
-
* @typedef
|
|
1556
|
+
* @typedef GetInventoriesResponseSchema
|
|
1419
1557
|
* @property {GetInventories[]} [items]
|
|
1420
1558
|
* @property {Page} [page]
|
|
1421
1559
|
*/
|
|
1422
1560
|
|
|
1423
1561
|
/**
|
|
1424
|
-
* @typedef
|
|
1562
|
+
* @typedef GetLocationSchema
|
|
1425
1563
|
* @property {Object} [_custom_json]
|
|
1426
|
-
* @property {
|
|
1564
|
+
* @property {GetAddressSchema} address
|
|
1427
1565
|
* @property {string} code
|
|
1428
|
-
* @property {
|
|
1566
|
+
* @property {GetCompanySchema} [company]
|
|
1429
1567
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
1430
1568
|
* @property {UserSerializer3} [created_by]
|
|
1431
1569
|
* @property {string} [created_on]
|
|
1432
1570
|
* @property {string} display_name
|
|
1433
1571
|
* @property {Document[]} [documents]
|
|
1434
|
-
* @property {
|
|
1572
|
+
* @property {InvoiceDetailsSchema} [gst_credentials]
|
|
1435
1573
|
* @property {LocationIntegrationType} [integration_type]
|
|
1436
|
-
* @property {
|
|
1574
|
+
* @property {LocationManagerSchema} [manager]
|
|
1437
1575
|
* @property {UserSerializer3} [modified_by]
|
|
1438
1576
|
* @property {string} [modified_on]
|
|
1439
1577
|
* @property {string} name
|
|
1440
1578
|
* @property {string[]} [notification_emails]
|
|
1441
1579
|
* @property {string} phone_number
|
|
1442
|
-
* @property {
|
|
1580
|
+
* @property {ProductReturnConfigSchema} [product_return_config]
|
|
1443
1581
|
* @property {string} [stage]
|
|
1444
1582
|
* @property {string} [store_type]
|
|
1445
|
-
* @property {
|
|
1583
|
+
* @property {LocationDayWiseSchema[]} [timing]
|
|
1446
1584
|
* @property {number} [uid]
|
|
1447
1585
|
* @property {UserSerializer3} [verified_by]
|
|
1448
1586
|
* @property {string} [verified_on]
|
|
@@ -1456,7 +1594,7 @@ const Joi = require("joi");
|
|
|
1456
1594
|
*/
|
|
1457
1595
|
|
|
1458
1596
|
/**
|
|
1459
|
-
* @typedef
|
|
1597
|
+
* @typedef GetProductBundleCreateResponseSchema
|
|
1460
1598
|
* @property {string} choice
|
|
1461
1599
|
* @property {number} [company_id]
|
|
1462
1600
|
* @property {Object} [created_by]
|
|
@@ -1475,13 +1613,13 @@ const Joi = require("joi");
|
|
|
1475
1613
|
*/
|
|
1476
1614
|
|
|
1477
1615
|
/**
|
|
1478
|
-
* @typedef
|
|
1479
|
-
* @property {
|
|
1616
|
+
* @typedef GetProductBundleListingResponseSchema
|
|
1617
|
+
* @property {GetProductBundleCreateResponseSchema[]} [items]
|
|
1480
1618
|
* @property {Page} [page]
|
|
1481
1619
|
*/
|
|
1482
1620
|
|
|
1483
1621
|
/**
|
|
1484
|
-
* @typedef
|
|
1622
|
+
* @typedef GetProductBundleResponseSchema
|
|
1485
1623
|
* @property {string} [choice]
|
|
1486
1624
|
* @property {number} [company_id]
|
|
1487
1625
|
* @property {boolean} [is_active]
|
|
@@ -1508,7 +1646,7 @@ const Joi = require("joi");
|
|
|
1508
1646
|
*/
|
|
1509
1647
|
|
|
1510
1648
|
/**
|
|
1511
|
-
* @typedef
|
|
1649
|
+
* @typedef GetCollectionDetailResponseSchema
|
|
1512
1650
|
* @property {Object} [_custom_json]
|
|
1513
1651
|
* @property {Object} [_locale_language]
|
|
1514
1652
|
* @property {CollectionSchedule} [_schedule]
|
|
@@ -1542,14 +1680,14 @@ const Joi = require("joi");
|
|
|
1542
1680
|
*/
|
|
1543
1681
|
|
|
1544
1682
|
/**
|
|
1545
|
-
* @typedef
|
|
1683
|
+
* @typedef GetQueryFiltersKeysResponseSchema
|
|
1546
1684
|
* @property {ProductFiltersKeysOnly[]} [filters]
|
|
1547
1685
|
* @property {Object} operators
|
|
1548
1686
|
* @property {ProductSortOn[]} [sort_on]
|
|
1549
1687
|
*/
|
|
1550
1688
|
|
|
1551
1689
|
/**
|
|
1552
|
-
* @typedef
|
|
1690
|
+
* @typedef GetQueryFiltersResponseSchema
|
|
1553
1691
|
* @property {ProductFilters[]} [filters]
|
|
1554
1692
|
* @property {Object} operators
|
|
1555
1693
|
* @property {ProductSortOn[]} [sort_on]
|
|
@@ -1615,18 +1753,16 @@ const Joi = require("joi");
|
|
|
1615
1753
|
*/
|
|
1616
1754
|
|
|
1617
1755
|
/**
|
|
1618
|
-
* @typedef
|
|
1756
|
+
* @typedef GetSearchConfigurationResponseSchema
|
|
1619
1757
|
* @property {string} application_id - The application id where custom search
|
|
1620
1758
|
* configuration is set
|
|
1621
1759
|
* @property {number} company_id - The company id where custom search configuration is set
|
|
1622
|
-
* @property {
|
|
1623
|
-
* configuration.
|
|
1760
|
+
* @property {UserSchema} [created_by] - The user who created the search configuration.
|
|
1624
1761
|
* @property {string} [created_on] - The date and time when the search
|
|
1625
1762
|
* configuration was created.
|
|
1626
1763
|
* @property {boolean} [is_proximity_enabled] - Flag indicating if proximity
|
|
1627
1764
|
* search is enabled for this attribute.
|
|
1628
|
-
* @property {
|
|
1629
|
-
* configuration.
|
|
1765
|
+
* @property {UserSchema} [modified_by] - The user who modified the search configuration.
|
|
1630
1766
|
* @property {string} [modified_on] - The date and time when the search
|
|
1631
1767
|
* configuration was last modified.
|
|
1632
1768
|
* @property {number} [proximity] - Proximity distance configuration
|
|
@@ -1645,13 +1781,13 @@ const Joi = require("joi");
|
|
|
1645
1781
|
*/
|
|
1646
1782
|
|
|
1647
1783
|
/**
|
|
1648
|
-
* @typedef
|
|
1784
|
+
* @typedef GetSearchWordsDetailResponseSchema
|
|
1649
1785
|
* @property {GetSearchWordsData} [items]
|
|
1650
1786
|
* @property {Page} [page]
|
|
1651
1787
|
*/
|
|
1652
1788
|
|
|
1653
1789
|
/**
|
|
1654
|
-
* @typedef
|
|
1790
|
+
* @typedef GetSearchWordsResponseSchema
|
|
1655
1791
|
* @property {GetSearchWordsData[]} [items]
|
|
1656
1792
|
* @property {Page} [page]
|
|
1657
1793
|
*/
|
|
@@ -1672,7 +1808,7 @@ const Joi = require("joi");
|
|
|
1672
1808
|
*/
|
|
1673
1809
|
|
|
1674
1810
|
/**
|
|
1675
|
-
* @typedef
|
|
1811
|
+
* @typedef HSNCodesResponseSchema
|
|
1676
1812
|
* @property {HSNData} [data]
|
|
1677
1813
|
* @property {string} [message]
|
|
1678
1814
|
*/
|
|
@@ -1716,7 +1852,7 @@ const Joi = require("joi");
|
|
|
1716
1852
|
/**
|
|
1717
1853
|
* @typedef HsnCodesListingResponseSchemaV2
|
|
1718
1854
|
* @property {HSNDataInsertV2[]} [items]
|
|
1719
|
-
* @property {
|
|
1855
|
+
* @property {PageResponseSchema} [page]
|
|
1720
1856
|
*/
|
|
1721
1857
|
|
|
1722
1858
|
/**
|
|
@@ -1738,7 +1874,7 @@ const Joi = require("joi");
|
|
|
1738
1874
|
/**
|
|
1739
1875
|
* @typedef HsnUpsert
|
|
1740
1876
|
* @property {number} company_id - The ID of the company.
|
|
1741
|
-
* @property {string} hs2_code - The HS2 code.
|
|
1877
|
+
* @property {string} [hs2_code] - The HS2 code.
|
|
1742
1878
|
* @property {string} hsn_code - The HSN code.
|
|
1743
1879
|
* @property {boolean} [is_active] - Flag indicating whether the entry is active.
|
|
1744
1880
|
* @property {number} tax1 - The first tax rate.
|
|
@@ -1788,7 +1924,7 @@ const Joi = require("joi");
|
|
|
1788
1924
|
*/
|
|
1789
1925
|
|
|
1790
1926
|
/**
|
|
1791
|
-
* @typedef
|
|
1927
|
+
* @typedef InventoryBulkRequestSchema
|
|
1792
1928
|
* @property {string} batch_id
|
|
1793
1929
|
* @property {number} company_id
|
|
1794
1930
|
* @property {InventoryJobPayload[]} sizes
|
|
@@ -1802,7 +1938,7 @@ const Joi = require("joi");
|
|
|
1802
1938
|
*/
|
|
1803
1939
|
|
|
1804
1940
|
/**
|
|
1805
|
-
* @typedef
|
|
1941
|
+
* @typedef InventoryCreateRequestSchema
|
|
1806
1942
|
* @property {string[]} [data] - The list of attributes that you want to extract
|
|
1807
1943
|
* in the export job.
|
|
1808
1944
|
* @property {InventoryExportFilter} filters - This filters that are applied for
|
|
@@ -1847,9 +1983,9 @@ const Joi = require("joi");
|
|
|
1847
1983
|
*/
|
|
1848
1984
|
|
|
1849
1985
|
/**
|
|
1850
|
-
* @typedef
|
|
1851
|
-
* @property {
|
|
1852
|
-
* all the jobs.
|
|
1986
|
+
* @typedef InventoryExportJobListResponseSchema
|
|
1987
|
+
* @property {InventoryJobDetailResponseSchema} items - This is the list/history
|
|
1988
|
+
* of all the jobs.
|
|
1853
1989
|
* @property {Page} [page]
|
|
1854
1990
|
*/
|
|
1855
1991
|
|
|
@@ -1861,17 +1997,17 @@ const Joi = require("joi");
|
|
|
1861
1997
|
*/
|
|
1862
1998
|
|
|
1863
1999
|
/**
|
|
1864
|
-
* @typedef
|
|
2000
|
+
* @typedef InventoryExportRequestSchema
|
|
1865
2001
|
* @property {number[]} [brand]
|
|
1866
2002
|
* @property {number[]} [store]
|
|
1867
2003
|
* @property {string} [type]
|
|
1868
2004
|
*/
|
|
1869
2005
|
|
|
1870
2006
|
/**
|
|
1871
|
-
* @typedef
|
|
2007
|
+
* @typedef InventoryExportResponseSchema
|
|
1872
2008
|
* @property {string} [created_by] - The user that created the job.
|
|
1873
2009
|
* @property {string} [created_on] - Creation datetime of the job
|
|
1874
|
-
* @property {
|
|
2010
|
+
* @property {Filters} [filters]
|
|
1875
2011
|
* @property {string} [modified_on] - Modification date of the job
|
|
1876
2012
|
* @property {string[]} [notification_emails] - The notification emails for the job.
|
|
1877
2013
|
* @property {number} seller_id - The seller id that needs to be exported.
|
|
@@ -1887,7 +2023,7 @@ const Joi = require("joi");
|
|
|
1887
2023
|
*/
|
|
1888
2024
|
|
|
1889
2025
|
/**
|
|
1890
|
-
* @typedef
|
|
2026
|
+
* @typedef InventoryJobDetailResponseSchema
|
|
1891
2027
|
* @property {UserDetail} [cancelled_by] - This is the user detail of the user
|
|
1892
2028
|
* who cancelled the job.
|
|
1893
2029
|
* @property {string} [cancelled_on] - This is the timestamp of the cacellation
|
|
@@ -1964,7 +2100,7 @@ const Joi = require("joi");
|
|
|
1964
2100
|
*/
|
|
1965
2101
|
|
|
1966
2102
|
/**
|
|
1967
|
-
* @typedef
|
|
2103
|
+
* @typedef InventoryRequestSchema
|
|
1968
2104
|
* @property {number} company_id
|
|
1969
2105
|
* @property {ItemQuery} item
|
|
1970
2106
|
* @property {InvSize[]} sizes
|
|
@@ -1978,7 +2114,7 @@ const Joi = require("joi");
|
|
|
1978
2114
|
*/
|
|
1979
2115
|
|
|
1980
2116
|
/**
|
|
1981
|
-
* @typedef
|
|
2117
|
+
* @typedef InventoryResponseSchema
|
|
1982
2118
|
* @property {string} [currency]
|
|
1983
2119
|
* @property {Object} [identifiers]
|
|
1984
2120
|
* @property {string} [inventory_updated_on]
|
|
@@ -2002,18 +2138,18 @@ const Joi = require("joi");
|
|
|
2002
2138
|
|
|
2003
2139
|
/**
|
|
2004
2140
|
* @typedef InventoryResponsePaginated
|
|
2005
|
-
* @property {
|
|
2141
|
+
* @property {InventoryResponseSchema[]} [items]
|
|
2006
2142
|
* @property {Page} [page]
|
|
2007
2143
|
*/
|
|
2008
2144
|
|
|
2009
2145
|
/**
|
|
2010
2146
|
* @typedef InventorySellerIdentifierResponsePaginated
|
|
2011
|
-
* @property {
|
|
2147
|
+
* @property {InventorySellerResponseSchema[]} [items]
|
|
2012
2148
|
* @property {Page} [page]
|
|
2013
2149
|
*/
|
|
2014
2150
|
|
|
2015
2151
|
/**
|
|
2016
|
-
* @typedef
|
|
2152
|
+
* @typedef InventorySellerResponseSchema
|
|
2017
2153
|
* @property {Object} [_custom_json] - Custom JSON data for the article.
|
|
2018
2154
|
* @property {string} [added_on_store] - The date and time when the article was
|
|
2019
2155
|
* added to the store.
|
|
@@ -2021,7 +2157,7 @@ const Joi = require("joi");
|
|
|
2021
2157
|
* @property {CompanyMeta} company - The metadata of the company.
|
|
2022
2158
|
* @property {string} country_of_origin - The country of origin of the article.
|
|
2023
2159
|
* @property {string} [created_by] - The user who created the article.
|
|
2024
|
-
* @property {
|
|
2160
|
+
* @property {DimensionResponseSchema} dimension - The dimensions of the article.
|
|
2025
2161
|
* @property {string} [expiration_date] - The expiration date of the article.
|
|
2026
2162
|
* @property {boolean} fragile - Indicates if the article is fragile.
|
|
2027
2163
|
* @property {string} fynd_article_code - The Fynd article code.
|
|
@@ -2031,7 +2167,7 @@ const Joi = require("joi");
|
|
|
2031
2167
|
* @property {boolean} [is_active] - Indicates if the article is active.
|
|
2032
2168
|
* @property {boolean} [is_set]
|
|
2033
2169
|
* @property {number} item_id - The ID of the item.
|
|
2034
|
-
* @property {
|
|
2170
|
+
* @property {ManufacturerResponseSchema} manufacturer - The manufacturer of the article.
|
|
2035
2171
|
* @property {Object} [meta] - Additional metadata for the article.
|
|
2036
2172
|
* @property {string} [modified_by] - The user who modified the article.
|
|
2037
2173
|
* @property {PriceMeta} price - The price metadata of the article.
|
|
@@ -2044,14 +2180,14 @@ const Joi = require("joi");
|
|
|
2044
2180
|
* @property {string} [stage] - The stage of the article.
|
|
2045
2181
|
* @property {StoreMeta} store - The metadata of the store.
|
|
2046
2182
|
* @property {string[]} [tags] - The tags associated with the article.
|
|
2047
|
-
* @property {
|
|
2183
|
+
* @property {TaxIdentifier} [tax_identifier]
|
|
2048
2184
|
* @property {number} total_quantity - The total quantity of the article.
|
|
2049
2185
|
* @property {string} [trace_id] - The trace ID of the article.
|
|
2050
2186
|
* @property {boolean} [track_inventory] - Indicates if the inventory is tracked
|
|
2051
2187
|
* for the article.
|
|
2052
2188
|
* @property {Trader1[]} [trader] - The traders associated with the article.
|
|
2053
2189
|
* @property {string} uid - The unique identifier of the article.
|
|
2054
|
-
* @property {
|
|
2190
|
+
* @property {WeightResponseSchema} weight - The weight of the article.
|
|
2055
2191
|
*/
|
|
2056
2192
|
|
|
2057
2193
|
/**
|
|
@@ -2062,34 +2198,34 @@ const Joi = require("joi");
|
|
|
2062
2198
|
*/
|
|
2063
2199
|
|
|
2064
2200
|
/**
|
|
2065
|
-
* @typedef
|
|
2201
|
+
* @typedef InventoryStockResponseSchema
|
|
2066
2202
|
* @property {Object[]} [items]
|
|
2067
2203
|
* @property {InventoryPage} page
|
|
2068
2204
|
*/
|
|
2069
2205
|
|
|
2070
2206
|
/**
|
|
2071
|
-
* @typedef
|
|
2207
|
+
* @typedef InventoryUpdateResponseSchema
|
|
2072
2208
|
* @property {InventoryResponseItem[]} [items]
|
|
2073
2209
|
* @property {string} message - It is the success message of the inventory update.
|
|
2074
2210
|
*/
|
|
2075
2211
|
|
|
2076
2212
|
/**
|
|
2077
|
-
* @typedef
|
|
2213
|
+
* @typedef InventoryValidationResponseSchema
|
|
2078
2214
|
* @property {Object} [data]
|
|
2079
2215
|
* @property {string} [message]
|
|
2080
2216
|
*/
|
|
2081
2217
|
|
|
2082
2218
|
/**
|
|
2083
|
-
* @typedef
|
|
2219
|
+
* @typedef InvoiceCredSchema
|
|
2084
2220
|
* @property {boolean} [enabled]
|
|
2085
2221
|
* @property {string} [password]
|
|
2086
2222
|
* @property {string} [username]
|
|
2087
2223
|
*/
|
|
2088
2224
|
|
|
2089
2225
|
/**
|
|
2090
|
-
* @typedef
|
|
2091
|
-
* @property {
|
|
2092
|
-
* @property {
|
|
2226
|
+
* @typedef InvoiceDetailsSchema
|
|
2227
|
+
* @property {InvoiceCredSchema} [e_invoice]
|
|
2228
|
+
* @property {InvoiceCredSchema} [e_waybill]
|
|
2093
2229
|
*/
|
|
2094
2230
|
|
|
2095
2231
|
/**
|
|
@@ -2143,34 +2279,33 @@ const Joi = require("joi");
|
|
|
2143
2279
|
*/
|
|
2144
2280
|
|
|
2145
2281
|
/**
|
|
2146
|
-
* @typedef
|
|
2147
|
-
* @property {
|
|
2282
|
+
* @typedef LocationDayWiseSchema
|
|
2283
|
+
* @property {LocationTimingSchema} [closing]
|
|
2148
2284
|
* @property {boolean} open
|
|
2149
|
-
* @property {
|
|
2285
|
+
* @property {LocationTimingSchema} [opening]
|
|
2150
2286
|
* @property {string} weekday
|
|
2151
2287
|
*/
|
|
2152
2288
|
|
|
2153
2289
|
/**
|
|
2154
2290
|
* @typedef LocationIntegrationType
|
|
2155
2291
|
* @property {string} [inventory]
|
|
2156
|
-
* @property {string} [order]
|
|
2157
2292
|
*/
|
|
2158
2293
|
|
|
2159
2294
|
/**
|
|
2160
|
-
* @typedef
|
|
2161
|
-
* @property {
|
|
2295
|
+
* @typedef LocationListSchema
|
|
2296
|
+
* @property {GetLocationSchema[]} [items]
|
|
2162
2297
|
* @property {Page} [page]
|
|
2163
2298
|
*/
|
|
2164
2299
|
|
|
2165
2300
|
/**
|
|
2166
|
-
* @typedef
|
|
2301
|
+
* @typedef LocationManagerSchema
|
|
2167
2302
|
* @property {string} [email]
|
|
2168
2303
|
* @property {SellerPhoneNumber} mobile_no
|
|
2169
2304
|
* @property {string} [name]
|
|
2170
2305
|
*/
|
|
2171
2306
|
|
|
2172
2307
|
/**
|
|
2173
|
-
* @typedef
|
|
2308
|
+
* @typedef LocationTimingSchema
|
|
2174
2309
|
* @property {number} [hour]
|
|
2175
2310
|
* @property {number} [minute]
|
|
2176
2311
|
*/
|
|
@@ -2191,7 +2326,7 @@ const Joi = require("joi");
|
|
|
2191
2326
|
*/
|
|
2192
2327
|
|
|
2193
2328
|
/**
|
|
2194
|
-
* @typedef
|
|
2329
|
+
* @typedef ManufacturerResponseSchema
|
|
2195
2330
|
* @property {string} address - The address of the manufacturer.
|
|
2196
2331
|
* @property {boolean} is_default - Indicates if it is the default manufacturer.
|
|
2197
2332
|
* @property {string} name - The name of the manufacturer.
|
|
@@ -2206,9 +2341,14 @@ const Joi = require("joi");
|
|
|
2206
2341
|
|
|
2207
2342
|
/**
|
|
2208
2343
|
* @typedef Media
|
|
2209
|
-
* @property {Object} [meta]
|
|
2210
|
-
*
|
|
2211
|
-
* @property {string}
|
|
2344
|
+
* @property {Object} [meta] - A metadata object containing additional
|
|
2345
|
+
* information about the media, such as dimensions, format, or other relevant details.
|
|
2346
|
+
* @property {string} [type] - The type of media.
|
|
2347
|
+
* @property {string} url - The URL where the media can be accessed.
|
|
2348
|
+
* @property {string} [alt] - The alternative text for the media, used for
|
|
2349
|
+
* accessibility and as a fallback when the media cannot be displayed.
|
|
2350
|
+
* @property {string} [thumbnail] - The URL of the thumbnail image, typically a
|
|
2351
|
+
* smaller or lower-resolution version of the main media.
|
|
2212
2352
|
*/
|
|
2213
2353
|
|
|
2214
2354
|
/**
|
|
@@ -2233,7 +2373,7 @@ const Joi = require("joi");
|
|
|
2233
2373
|
*/
|
|
2234
2374
|
|
|
2235
2375
|
/**
|
|
2236
|
-
* @typedef
|
|
2376
|
+
* @typedef MetaDataListingFilterMetaResponseSchema
|
|
2237
2377
|
* @property {string} [display]
|
|
2238
2378
|
* @property {string[]} [filter_types]
|
|
2239
2379
|
* @property {string} [key]
|
|
@@ -2241,25 +2381,25 @@ const Joi = require("joi");
|
|
|
2241
2381
|
*/
|
|
2242
2382
|
|
|
2243
2383
|
/**
|
|
2244
|
-
* @typedef
|
|
2245
|
-
* @property {
|
|
2384
|
+
* @typedef MetaDataListingFilterResponseSchema
|
|
2385
|
+
* @property {MetaDataListingFilterMetaResponseSchema[]} [data]
|
|
2246
2386
|
*/
|
|
2247
2387
|
|
|
2248
2388
|
/**
|
|
2249
|
-
* @typedef
|
|
2250
|
-
* @property {
|
|
2251
|
-
* @property {
|
|
2389
|
+
* @typedef MetaDataListingResponseSchema
|
|
2390
|
+
* @property {MetaDataListingFilterResponseSchema} filter
|
|
2391
|
+
* @property {MetaDataListingSortResponseSchema} sort
|
|
2252
2392
|
*/
|
|
2253
2393
|
|
|
2254
2394
|
/**
|
|
2255
|
-
* @typedef
|
|
2395
|
+
* @typedef MetaDataListingSortMetaResponseSchema
|
|
2256
2396
|
* @property {string} [display]
|
|
2257
2397
|
* @property {string} [key]
|
|
2258
2398
|
*/
|
|
2259
2399
|
|
|
2260
2400
|
/**
|
|
2261
|
-
* @typedef
|
|
2262
|
-
* @property {
|
|
2401
|
+
* @typedef MetaDataListingSortResponseSchema
|
|
2402
|
+
* @property {MetaDataListingSortMetaResponseSchema[]} [data]
|
|
2263
2403
|
*/
|
|
2264
2404
|
|
|
2265
2405
|
/**
|
|
@@ -2278,7 +2418,7 @@ const Joi = require("joi");
|
|
|
2278
2418
|
*/
|
|
2279
2419
|
|
|
2280
2420
|
/**
|
|
2281
|
-
* @typedef
|
|
2421
|
+
* @typedef NetQuantityResponseSchema
|
|
2282
2422
|
* @property {string} [unit]
|
|
2283
2423
|
* @property {number} [value]
|
|
2284
2424
|
*/
|
|
@@ -2290,7 +2430,7 @@ const Joi = require("joi");
|
|
|
2290
2430
|
*/
|
|
2291
2431
|
|
|
2292
2432
|
/**
|
|
2293
|
-
* @typedef
|
|
2433
|
+
* @typedef OptInPostRequestSchema
|
|
2294
2434
|
* @property {number[]} [brand_ids]
|
|
2295
2435
|
* @property {number} [company_id]
|
|
2296
2436
|
* @property {boolean} [enabled]
|
|
@@ -2327,7 +2467,7 @@ const Joi = require("joi");
|
|
|
2327
2467
|
*/
|
|
2328
2468
|
|
|
2329
2469
|
/**
|
|
2330
|
-
* @typedef
|
|
2470
|
+
* @typedef OwnerAppItemResponseSchema
|
|
2331
2471
|
* @property {Object} [alt_text]
|
|
2332
2472
|
* @property {boolean} [is_cod]
|
|
2333
2473
|
* @property {boolean} [is_gift]
|
|
@@ -2338,7 +2478,7 @@ const Joi = require("joi");
|
|
|
2338
2478
|
*/
|
|
2339
2479
|
|
|
2340
2480
|
/**
|
|
2341
|
-
* @typedef
|
|
2481
|
+
* @typedef PTErrorResponseSchema
|
|
2342
2482
|
* @property {string} [code]
|
|
2343
2483
|
* @property {Object} [errors]
|
|
2344
2484
|
* @property {string} [message]
|
|
@@ -2358,7 +2498,7 @@ const Joi = require("joi");
|
|
|
2358
2498
|
*/
|
|
2359
2499
|
|
|
2360
2500
|
/**
|
|
2361
|
-
* @typedef
|
|
2501
|
+
* @typedef PageResponseSchema
|
|
2362
2502
|
* @property {string} [current] - It is the current page of the page response schema.
|
|
2363
2503
|
* @property {boolean} [has_next] - It is the bool indicates if there is a next page.
|
|
2364
2504
|
* @property {boolean} [has_previous] - It is the bool indicates if there is a
|
|
@@ -2368,16 +2508,6 @@ const Joi = require("joi");
|
|
|
2368
2508
|
* @property {number} [size] - It is the size of each page.
|
|
2369
2509
|
*/
|
|
2370
2510
|
|
|
2371
|
-
/**
|
|
2372
|
-
* @typedef PageResponse1
|
|
2373
|
-
* @property {number} [current]
|
|
2374
|
-
* @property {boolean} [has_next]
|
|
2375
|
-
* @property {boolean} [has_previous]
|
|
2376
|
-
* @property {number} [item_total]
|
|
2377
|
-
* @property {number} [size]
|
|
2378
|
-
* @property {string} [type]
|
|
2379
|
-
*/
|
|
2380
|
-
|
|
2381
2511
|
/**
|
|
2382
2512
|
* @typedef PageResponseType
|
|
2383
2513
|
* @property {number} current
|
|
@@ -2395,14 +2525,6 @@ const Joi = require("joi");
|
|
|
2395
2525
|
* @property {number} [min_marked]
|
|
2396
2526
|
*/
|
|
2397
2527
|
|
|
2398
|
-
/**
|
|
2399
|
-
* @typedef Price1
|
|
2400
|
-
* @property {string} [currency_code]
|
|
2401
|
-
* @property {string} [currency_symbol]
|
|
2402
|
-
* @property {number} [max]
|
|
2403
|
-
* @property {number} [min]
|
|
2404
|
-
*/
|
|
2405
|
-
|
|
2406
2528
|
/**
|
|
2407
2529
|
* @typedef PriceArticle
|
|
2408
2530
|
* @property {string} [currency]
|
|
@@ -2423,8 +2545,8 @@ const Joi = require("joi");
|
|
|
2423
2545
|
*/
|
|
2424
2546
|
|
|
2425
2547
|
/**
|
|
2426
|
-
* @typedef
|
|
2427
|
-
* @property {
|
|
2548
|
+
* @typedef ProdcutTemplateCategoriesResponseSchema
|
|
2549
|
+
* @property {CategoriesResponseSchema[]} [items]
|
|
2428
2550
|
* @property {Page} [page]
|
|
2429
2551
|
*/
|
|
2430
2552
|
|
|
@@ -2469,20 +2591,20 @@ const Joi = require("joi");
|
|
|
2469
2591
|
* @property {Object} [moq]
|
|
2470
2592
|
* @property {boolean} [multi_size]
|
|
2471
2593
|
* @property {string} [name]
|
|
2472
|
-
* @property {
|
|
2594
|
+
* @property {NetQuantityResponseSchema} [net_quantity]
|
|
2473
2595
|
* @property {number} [no_of_boxes]
|
|
2474
2596
|
* @property {string} [pending]
|
|
2475
2597
|
* @property {string} [primary_color]
|
|
2476
2598
|
* @property {string[]} [product_group_tag]
|
|
2477
2599
|
* @property {ProductPublished} [product_publish]
|
|
2478
|
-
* @property {
|
|
2600
|
+
* @property {ReturnConfigResponseSchema} [return_config]
|
|
2479
2601
|
* @property {string} [short_description]
|
|
2480
2602
|
* @property {string} [size_guide]
|
|
2481
2603
|
* @property {Object[]} [sizes]
|
|
2482
2604
|
* @property {string} [slug]
|
|
2483
2605
|
* @property {string} [stage]
|
|
2484
2606
|
* @property {string[]} [tags]
|
|
2485
|
-
* @property {
|
|
2607
|
+
* @property {TaxIdentifier} [tax_identifier]
|
|
2486
2608
|
* @property {Object} [teaser_tag]
|
|
2487
2609
|
* @property {string} [template_tag]
|
|
2488
2610
|
* @property {Trader[]} [trader]
|
|
@@ -2495,8 +2617,8 @@ const Joi = require("joi");
|
|
|
2495
2617
|
*/
|
|
2496
2618
|
|
|
2497
2619
|
/**
|
|
2498
|
-
* @typedef
|
|
2499
|
-
* @property {
|
|
2620
|
+
* @typedef ProductAttributesResponseSchema
|
|
2621
|
+
* @property {AttributeMasterSchema[]} items
|
|
2500
2622
|
*/
|
|
2501
2623
|
|
|
2502
2624
|
/**
|
|
@@ -2516,7 +2638,7 @@ const Joi = require("joi");
|
|
|
2516
2638
|
*/
|
|
2517
2639
|
|
|
2518
2640
|
/**
|
|
2519
|
-
* @typedef
|
|
2641
|
+
* @typedef ProductBulkRequestSchema
|
|
2520
2642
|
* @property {number} [cancelled]
|
|
2521
2643
|
* @property {Object[]} [cancelled_records]
|
|
2522
2644
|
* @property {number} [company_id]
|
|
@@ -2537,7 +2659,7 @@ const Joi = require("joi");
|
|
|
2537
2659
|
|
|
2538
2660
|
/**
|
|
2539
2661
|
* @typedef ProductBulkRequestList
|
|
2540
|
-
* @property {
|
|
2662
|
+
* @property {Object} [items]
|
|
2541
2663
|
* @property {Page} [page]
|
|
2542
2664
|
*/
|
|
2543
2665
|
|
|
@@ -2552,7 +2674,7 @@ const Joi = require("joi");
|
|
|
2552
2674
|
*/
|
|
2553
2675
|
|
|
2554
2676
|
/**
|
|
2555
|
-
* @typedef
|
|
2677
|
+
* @typedef ProductBundleRequestSchema
|
|
2556
2678
|
* @property {string} choice
|
|
2557
2679
|
* @property {number} [company_id]
|
|
2558
2680
|
* @property {Object} [created_by]
|
|
@@ -2570,7 +2692,7 @@ const Joi = require("joi");
|
|
|
2570
2692
|
*/
|
|
2571
2693
|
|
|
2572
2694
|
/**
|
|
2573
|
-
* @typedef
|
|
2695
|
+
* @typedef ProductBundleUpdateRequestSchema
|
|
2574
2696
|
* @property {string} choice
|
|
2575
2697
|
* @property {number} [company_id]
|
|
2576
2698
|
* @property {boolean} is_active
|
|
@@ -2678,8 +2800,8 @@ const Joi = require("joi");
|
|
|
2678
2800
|
*/
|
|
2679
2801
|
|
|
2680
2802
|
/**
|
|
2681
|
-
* @typedef
|
|
2682
|
-
* @property {
|
|
2803
|
+
* @typedef ProductDownloadsResponseSchema
|
|
2804
|
+
* @property {ProductTemplateExportResponseSchema[]} [items] - The items of the job.
|
|
2683
2805
|
* @property {Page} [page]
|
|
2684
2806
|
*/
|
|
2685
2807
|
|
|
@@ -2690,7 +2812,7 @@ const Joi = require("joi");
|
|
|
2690
2812
|
*/
|
|
2691
2813
|
|
|
2692
2814
|
/**
|
|
2693
|
-
* @typedef
|
|
2815
|
+
* @typedef GetQueryFiltersValuesResponseSchema
|
|
2694
2816
|
* @property {ProductFiltersValue[]} values
|
|
2695
2817
|
* @property {Page} page
|
|
2696
2818
|
*/
|
|
@@ -2726,43 +2848,7 @@ const Joi = require("joi");
|
|
|
2726
2848
|
*/
|
|
2727
2849
|
|
|
2728
2850
|
/**
|
|
2729
|
-
* @typedef
|
|
2730
|
-
* @property {Object} [attributes]
|
|
2731
|
-
* @property {ProductBrand} [brand]
|
|
2732
|
-
* @property {string} [color]
|
|
2733
|
-
* @property {string} [description]
|
|
2734
|
-
* @property {string} [discount]
|
|
2735
|
-
* @property {ProductDetailGroupedAttribute[]} [grouped_attributes]
|
|
2736
|
-
* @property {boolean} [has_variant]
|
|
2737
|
-
* @property {string[]} [highlights]
|
|
2738
|
-
* @property {string} [image_nature]
|
|
2739
|
-
* @property {string} [item_code]
|
|
2740
|
-
* @property {string} [item_type]
|
|
2741
|
-
* @property {Media[]} [medias]
|
|
2742
|
-
* @property {string} [name]
|
|
2743
|
-
* @property {ProductListingPrice} [price]
|
|
2744
|
-
* @property {string} [product_online_date]
|
|
2745
|
-
* @property {Object} [promo_meta]
|
|
2746
|
-
* @property {number} [rating]
|
|
2747
|
-
* @property {number} [rating_count]
|
|
2748
|
-
* @property {boolean} [sellable]
|
|
2749
|
-
* @property {string} [short_description]
|
|
2750
|
-
* @property {string[]} [similars]
|
|
2751
|
-
* @property {string} slug
|
|
2752
|
-
* @property {Object} [teaser_tag]
|
|
2753
|
-
* @property {string[]} [tryouts]
|
|
2754
|
-
* @property {string} [type]
|
|
2755
|
-
* @property {number} [uid]
|
|
2756
|
-
*/
|
|
2757
|
-
|
|
2758
|
-
/**
|
|
2759
|
-
* @typedef ProductListingPrice
|
|
2760
|
-
* @property {Price1} [effective]
|
|
2761
|
-
* @property {Price1} [marked]
|
|
2762
|
-
*/
|
|
2763
|
-
|
|
2764
|
-
/**
|
|
2765
|
-
* @typedef ProductListingResponse
|
|
2851
|
+
* @typedef ProductListingResponseSchema
|
|
2766
2852
|
* @property {Product[]} [items]
|
|
2767
2853
|
* @property {Page} [page]
|
|
2768
2854
|
*/
|
|
@@ -2792,13 +2878,13 @@ const Joi = require("joi");
|
|
|
2792
2878
|
*/
|
|
2793
2879
|
|
|
2794
2880
|
/**
|
|
2795
|
-
* @typedef
|
|
2881
|
+
* @typedef ProductReturnConfigSchema
|
|
2796
2882
|
* @property {boolean} [on_same_store]
|
|
2797
2883
|
* @property {number} [store_uid]
|
|
2798
2884
|
*/
|
|
2799
2885
|
|
|
2800
2886
|
/**
|
|
2801
|
-
* @typedef
|
|
2887
|
+
* @typedef ProductReturnConfigBaseSchema
|
|
2802
2888
|
* @property {boolean} returnable - Boolean Flag for item returnable
|
|
2803
2889
|
* @property {number} time - Valid return time for an item
|
|
2804
2890
|
* @property {string} unit - Unit of return config days|hours
|
|
@@ -2845,20 +2931,20 @@ const Joi = require("joi");
|
|
|
2845
2931
|
* @property {Object} [moq]
|
|
2846
2932
|
* @property {boolean} [multi_size]
|
|
2847
2933
|
* @property {string} [name]
|
|
2848
|
-
* @property {
|
|
2934
|
+
* @property {NetQuantityResponseSchema} [net_quantity]
|
|
2849
2935
|
* @property {number} [no_of_boxes]
|
|
2850
2936
|
* @property {string} [pending]
|
|
2851
2937
|
* @property {string} [primary_color]
|
|
2852
2938
|
* @property {string[]} [product_group_tag]
|
|
2853
2939
|
* @property {ProductPublish} [product_publish]
|
|
2854
|
-
* @property {
|
|
2940
|
+
* @property {ReturnConfigResponseSchema} [return_config]
|
|
2855
2941
|
* @property {string} [short_description]
|
|
2856
2942
|
* @property {string} [size_guide]
|
|
2857
2943
|
* @property {Object[]} [sizes]
|
|
2858
2944
|
* @property {string} [slug]
|
|
2859
2945
|
* @property {string} [stage]
|
|
2860
2946
|
* @property {string[]} [tags]
|
|
2861
|
-
* @property {
|
|
2947
|
+
* @property {TaxIdentifier} [tax_identifier]
|
|
2862
2948
|
* @property {Object} [teaser_tag]
|
|
2863
2949
|
* @property {string} [template_tag]
|
|
2864
2950
|
* @property {Trader[]} [trader]
|
|
@@ -2877,15 +2963,15 @@ const Joi = require("joi");
|
|
|
2877
2963
|
*/
|
|
2878
2964
|
|
|
2879
2965
|
/**
|
|
2880
|
-
* @typedef
|
|
2966
|
+
* @typedef ProductSizeDeleteDataResponseSchema
|
|
2881
2967
|
* @property {number} [company_id]
|
|
2882
2968
|
* @property {number} [item_id]
|
|
2883
2969
|
* @property {string} [size]
|
|
2884
2970
|
*/
|
|
2885
2971
|
|
|
2886
2972
|
/**
|
|
2887
|
-
* @typedef
|
|
2888
|
-
* @property {
|
|
2973
|
+
* @typedef ProductSizeDeleteResponseSchema
|
|
2974
|
+
* @property {ProductSizeDeleteDataResponseSchema} [data]
|
|
2889
2975
|
* @property {boolean} [success]
|
|
2890
2976
|
*/
|
|
2891
2977
|
|
|
@@ -2897,7 +2983,7 @@ const Joi = require("joi");
|
|
|
2897
2983
|
*/
|
|
2898
2984
|
|
|
2899
2985
|
/**
|
|
2900
|
-
* @typedef
|
|
2986
|
+
* @typedef ProductTagsViewResponseSchema
|
|
2901
2987
|
* @property {string[]} [items]
|
|
2902
2988
|
*/
|
|
2903
2989
|
|
|
@@ -2923,7 +3009,7 @@ const Joi = require("joi");
|
|
|
2923
3009
|
|
|
2924
3010
|
/**
|
|
2925
3011
|
* @typedef ProductTemplateDownloadsExport
|
|
2926
|
-
* @property {
|
|
3012
|
+
* @property {ProductTemplateExportFilterRequestSchema} [filters] - This is the
|
|
2927
3013
|
* filters of the file for the export.
|
|
2928
3014
|
* @property {string[]} [notification_emails] - The list of the emails to be
|
|
2929
3015
|
* notified after the completion of the job.
|
|
@@ -2931,7 +3017,7 @@ const Joi = require("joi");
|
|
|
2931
3017
|
*/
|
|
2932
3018
|
|
|
2933
3019
|
/**
|
|
2934
|
-
* @typedef
|
|
3020
|
+
* @typedef ProductTemplateExportFilterRequestSchema
|
|
2935
3021
|
* @property {string[]} [brands] - The list of the brands that needs to be exported.
|
|
2936
3022
|
* @property {string[]} catalogue_types - The list of the type of the catalog
|
|
2937
3023
|
* such as set, standard and composite.
|
|
@@ -2943,7 +3029,7 @@ const Joi = require("joi");
|
|
|
2943
3029
|
*/
|
|
2944
3030
|
|
|
2945
3031
|
/**
|
|
2946
|
-
* @typedef
|
|
3032
|
+
* @typedef ProductTemplateExportResponseSchema
|
|
2947
3033
|
* @property {string} [completed_on] - Completion datetime of the job
|
|
2948
3034
|
* @property {UserInfo1} [created_by] - The user that created the job.
|
|
2949
3035
|
* @property {Object} [filters] - The filters that needs to be exported.
|
|
@@ -2967,7 +3053,7 @@ const Joi = require("joi");
|
|
|
2967
3053
|
*/
|
|
2968
3054
|
|
|
2969
3055
|
/**
|
|
2970
|
-
* @typedef
|
|
3056
|
+
* @typedef ProductVariantsResponseSchema
|
|
2971
3057
|
* @property {Page} [page]
|
|
2972
3058
|
* @property {ProductVariants[]} [variants]
|
|
2973
3059
|
*/
|
|
@@ -3055,7 +3141,7 @@ const Joi = require("joi");
|
|
|
3055
3141
|
*/
|
|
3056
3142
|
|
|
3057
3143
|
/**
|
|
3058
|
-
* @typedef
|
|
3144
|
+
* @typedef ReturnConfigResponseSchema
|
|
3059
3145
|
* @property {boolean} [returnable]
|
|
3060
3146
|
* @property {number} [time]
|
|
3061
3147
|
* @property {string} [unit]
|
|
@@ -3163,12 +3249,12 @@ const Joi = require("joi");
|
|
|
3163
3249
|
*/
|
|
3164
3250
|
|
|
3165
3251
|
/**
|
|
3166
|
-
* @typedef
|
|
3252
|
+
* @typedef SingleCategoryResponseSchema
|
|
3167
3253
|
* @property {Category} [data]
|
|
3168
3254
|
*/
|
|
3169
3255
|
|
|
3170
3256
|
/**
|
|
3171
|
-
* @typedef
|
|
3257
|
+
* @typedef SingleProductResponseSchema
|
|
3172
3258
|
* @property {ProductSchemaV2} [data]
|
|
3173
3259
|
*/
|
|
3174
3260
|
|
|
@@ -3186,7 +3272,7 @@ const Joi = require("joi");
|
|
|
3186
3272
|
*/
|
|
3187
3273
|
|
|
3188
3274
|
/**
|
|
3189
|
-
* @typedef
|
|
3275
|
+
* @typedef SizeGuideResponseSchema
|
|
3190
3276
|
* @property {boolean} [active]
|
|
3191
3277
|
* @property {number} [brand_id]
|
|
3192
3278
|
* @property {number} [company_id]
|
|
@@ -3203,7 +3289,7 @@ const Joi = require("joi");
|
|
|
3203
3289
|
*/
|
|
3204
3290
|
|
|
3205
3291
|
/**
|
|
3206
|
-
* @typedef
|
|
3292
|
+
* @typedef StoreAssignResponseSchema
|
|
3207
3293
|
* @property {string} [_id]
|
|
3208
3294
|
* @property {ArticleAssignment1} article_assignment
|
|
3209
3295
|
* @property {number} [company_id]
|
|
@@ -3246,7 +3332,7 @@ const Joi = require("joi");
|
|
|
3246
3332
|
*/
|
|
3247
3333
|
|
|
3248
3334
|
/**
|
|
3249
|
-
* @typedef
|
|
3335
|
+
* @typedef SuccessResponseSchema
|
|
3250
3336
|
* @property {boolean} [success]
|
|
3251
3337
|
*/
|
|
3252
3338
|
|
|
@@ -3301,13 +3387,13 @@ const Joi = require("joi");
|
|
|
3301
3387
|
*/
|
|
3302
3388
|
|
|
3303
3389
|
/**
|
|
3304
|
-
* @typedef
|
|
3390
|
+
* @typedef TemplatesResponseSchema
|
|
3305
3391
|
* @property {ProductTemplate} [items]
|
|
3306
3392
|
* @property {Page} [page]
|
|
3307
3393
|
*/
|
|
3308
3394
|
|
|
3309
3395
|
/**
|
|
3310
|
-
* @typedef
|
|
3396
|
+
* @typedef TemplatesValidationResponseSchema
|
|
3311
3397
|
* @property {TemplateValidationData} [data]
|
|
3312
3398
|
* @property {TemplateDetails} [template_details]
|
|
3313
3399
|
*/
|
|
@@ -3372,18 +3458,16 @@ const Joi = require("joi");
|
|
|
3372
3458
|
*/
|
|
3373
3459
|
|
|
3374
3460
|
/**
|
|
3375
|
-
* @typedef
|
|
3461
|
+
* @typedef UpdateSearchConfigurationRequestSchema
|
|
3376
3462
|
* @property {string} application_id - The application id where custom search
|
|
3377
3463
|
* configuration is set
|
|
3378
3464
|
* @property {number} company_id - The company id where custom search configuration is set
|
|
3379
|
-
* @property {
|
|
3380
|
-
* configuration.
|
|
3465
|
+
* @property {UserSchema} [created_by] - The user who created the search configuration.
|
|
3381
3466
|
* @property {string} [created_on] - The date and time when the search
|
|
3382
3467
|
* configuration was created.
|
|
3383
3468
|
* @property {boolean} [is_proximity_enabled] - Flag indicating if proximity
|
|
3384
3469
|
* search is enabled for this attribute.
|
|
3385
|
-
* @property {
|
|
3386
|
-
* configuration.
|
|
3470
|
+
* @property {UserSchema} [modified_by] - The user who modified the search configuration.
|
|
3387
3471
|
* @property {string} [modified_on] - The date and time when the search
|
|
3388
3472
|
* configuration was last modified.
|
|
3389
3473
|
* @property {number} [proximity] - Proximity distance configuration
|
|
@@ -3392,12 +3476,12 @@ const Joi = require("joi");
|
|
|
3392
3476
|
*/
|
|
3393
3477
|
|
|
3394
3478
|
/**
|
|
3395
|
-
* @typedef
|
|
3479
|
+
* @typedef UpdateSearchConfigurationResponseSchema
|
|
3396
3480
|
* @property {boolean} [success]
|
|
3397
3481
|
*/
|
|
3398
3482
|
|
|
3399
3483
|
/**
|
|
3400
|
-
* @typedef
|
|
3484
|
+
* @typedef CreateMarketplaceOptinResponseSchema
|
|
3401
3485
|
* @property {number[]} [store_ids]
|
|
3402
3486
|
* @property {number[]} [brand_ids]
|
|
3403
3487
|
* @property {number} [company_id]
|
|
@@ -3448,7 +3532,7 @@ const Joi = require("joi");
|
|
|
3448
3532
|
*/
|
|
3449
3533
|
|
|
3450
3534
|
/**
|
|
3451
|
-
* @typedef
|
|
3535
|
+
* @typedef UserSchema
|
|
3452
3536
|
* @property {string} [contact] - The contact information of the user.
|
|
3453
3537
|
* @property {string} [user_id] - The unique ID of the user.
|
|
3454
3538
|
* @property {string} [username] - The username of the user.
|
|
@@ -3515,7 +3599,7 @@ const Joi = require("joi");
|
|
|
3515
3599
|
*/
|
|
3516
3600
|
|
|
3517
3601
|
/**
|
|
3518
|
-
* @typedef
|
|
3602
|
+
* @typedef WeightResponseSchema
|
|
3519
3603
|
* @property {boolean} is_default - Indicates if it is the default weight.
|
|
3520
3604
|
* @property {number} shipping - The shipping weight.
|
|
3521
3605
|
* @property {string} unit - The unit of weight.
|
|
@@ -3533,6 +3617,12 @@ const Joi = require("joi");
|
|
|
3533
3617
|
* @property {string} [user_id]
|
|
3534
3618
|
*/
|
|
3535
3619
|
|
|
3620
|
+
/**
|
|
3621
|
+
* @typedef ModifiedBy
|
|
3622
|
+
* @property {string} [username]
|
|
3623
|
+
* @property {string} [user_id]
|
|
3624
|
+
*/
|
|
3625
|
+
|
|
3536
3626
|
/**
|
|
3537
3627
|
* @typedef Marketplaces
|
|
3538
3628
|
* @property {number[]} [brand_ids]
|
|
@@ -3556,7 +3646,7 @@ const Joi = require("joi");
|
|
|
3556
3646
|
*/
|
|
3557
3647
|
|
|
3558
3648
|
/**
|
|
3559
|
-
* @typedef
|
|
3649
|
+
* @typedef UpdateMarketplaceOptinRequestSchema
|
|
3560
3650
|
* @property {number[]} [brand_ids]
|
|
3561
3651
|
* @property {number} [company_id]
|
|
3562
3652
|
* @property {boolean} [enabled]
|
|
@@ -3566,7 +3656,7 @@ const Joi = require("joi");
|
|
|
3566
3656
|
*/
|
|
3567
3657
|
|
|
3568
3658
|
/**
|
|
3569
|
-
* @typedef
|
|
3659
|
+
* @typedef UpdateMarketplaceOptinResponseSchema
|
|
3570
3660
|
* @property {number[]} [brand_ids]
|
|
3571
3661
|
* @property {number} [company_id]
|
|
3572
3662
|
* @property {string} [app_id]
|
|
@@ -3578,6 +3668,29 @@ const Joi = require("joi");
|
|
|
3578
3668
|
* @property {CreatedBy} [modified_by]
|
|
3579
3669
|
*/
|
|
3580
3670
|
|
|
3671
|
+
/**
|
|
3672
|
+
* @typedef Identifier
|
|
3673
|
+
* @property {string} [ean] - The European Article Number (EAN) of the item.
|
|
3674
|
+
* @property {string} [sku_code] - The Stock Keeping Unit (SKU) code of the item.
|
|
3675
|
+
* @property {string} [alu] - The Alternative Lookup Product of the item.
|
|
3676
|
+
* @property {string} [upc] - Universal Product Code of the item.
|
|
3677
|
+
* @property {string} [isbn] - ISBN (International Standard Book Number) is a
|
|
3678
|
+
* unique identifier used globally to identify books and other non-periodical
|
|
3679
|
+
* publications
|
|
3680
|
+
*/
|
|
3681
|
+
|
|
3682
|
+
/**
|
|
3683
|
+
* @typedef Filters
|
|
3684
|
+
* @property {string[]} [brands] - The list of all the brands selected.
|
|
3685
|
+
* @property {string} [from_date] - The modified-on date from which the data
|
|
3686
|
+
* needs to be exported.
|
|
3687
|
+
* @property {InventoryExportQuantityFilter} [quantity] - The quantity range
|
|
3688
|
+
* that needs to be exported.
|
|
3689
|
+
* @property {string[]} [stores] - The list of all the stores selected.
|
|
3690
|
+
* @property {string} [to_date] - The modified-on date till when the data needs
|
|
3691
|
+
* to be exported.
|
|
3692
|
+
*/
|
|
3693
|
+
|
|
3581
3694
|
/**
|
|
3582
3695
|
* @typedef ActionPage
|
|
3583
3696
|
* @property {Object} [params] - Parameters that should be considered in path.
|
|
@@ -3586,6 +3699,73 @@ const Joi = require("joi");
|
|
|
3586
3699
|
* @property {PageType} type
|
|
3587
3700
|
*/
|
|
3588
3701
|
|
|
3702
|
+
/**
|
|
3703
|
+
* @typedef ProductListingPrice
|
|
3704
|
+
* @property {Price1} [effective]
|
|
3705
|
+
* @property {Price1} [marked]
|
|
3706
|
+
* @property {Price1} [selling]
|
|
3707
|
+
*/
|
|
3708
|
+
|
|
3709
|
+
/**
|
|
3710
|
+
* @typedef Price1
|
|
3711
|
+
* @property {CurrencyCodeEnum} [currency_code]
|
|
3712
|
+
* @property {string} [currency_symbol]
|
|
3713
|
+
* @property {number} [max]
|
|
3714
|
+
* @property {number} [min]
|
|
3715
|
+
*/
|
|
3716
|
+
|
|
3717
|
+
/**
|
|
3718
|
+
* @typedef MultiCategoriesSchema
|
|
3719
|
+
* @property {number} [l1] - The ID of the Level 1 (L1) category of the product.
|
|
3720
|
+
* @property {number} [l2] - The ID of the Level 2 (L2) category of the product.
|
|
3721
|
+
* @property {number} [l3] - The ID of the Level 3 (L3) category of the product.
|
|
3722
|
+
* @property {boolean} [is_active] - Indicates whether the L3 category of the
|
|
3723
|
+
* product is currently active.
|
|
3724
|
+
* @property {number} [department] - The department associated with the L3
|
|
3725
|
+
* category of the product.
|
|
3726
|
+
*/
|
|
3727
|
+
|
|
3728
|
+
/**
|
|
3729
|
+
* @typedef CustomMeta
|
|
3730
|
+
* @property {string} key - The key of the metadata. Should be a non-empty
|
|
3731
|
+
* string and length should not exceed 30 characters.
|
|
3732
|
+
* @property {string} value - The value of the metadata. Should be a non-empty
|
|
3733
|
+
* string and length should not exceed 100 characters.
|
|
3734
|
+
*/
|
|
3735
|
+
|
|
3736
|
+
/**
|
|
3737
|
+
* @typedef {| "browntape_v2"
|
|
3738
|
+
* | "easyops"
|
|
3739
|
+
* | "holisol"
|
|
3740
|
+
* | "logic"
|
|
3741
|
+
* | "tcnss"
|
|
3742
|
+
* | "increff"
|
|
3743
|
+
* | "liberty"
|
|
3744
|
+
* | "browntape"
|
|
3745
|
+
* | "easyecom"
|
|
3746
|
+
* | "major_brands"
|
|
3747
|
+
* | "jiopos"
|
|
3748
|
+
* | "jockey"
|
|
3749
|
+
* | "omsguru"
|
|
3750
|
+
* | "pulse"
|
|
3751
|
+
* | "sellerware"
|
|
3752
|
+
* | "unicommerce"
|
|
3753
|
+
* | "ethos"
|
|
3754
|
+
* | "sarasuole"
|
|
3755
|
+
* | "vajor"
|
|
3756
|
+
* | "vinculum"
|
|
3757
|
+
* | "jiomart_pos"
|
|
3758
|
+
* | "rbl_sap"
|
|
3759
|
+
* | "ginesys-pos"
|
|
3760
|
+
* | "fyndpos"
|
|
3761
|
+
* | "jiopos_openapi"
|
|
3762
|
+
* | "jiopos_hamleys"
|
|
3763
|
+
* | "westelm"
|
|
3764
|
+
* | "rbl_sap_furniture"
|
|
3765
|
+
* | "vinculum_v2"
|
|
3766
|
+
* | "wizapp"} order
|
|
3767
|
+
*/
|
|
3768
|
+
|
|
3589
3769
|
/**
|
|
3590
3770
|
* @typedef {| "about-us"
|
|
3591
3771
|
* | "addresses"
|
|
@@ -3633,9 +3813,12 @@ const Joi = require("joi");
|
|
|
3633
3813
|
* | "register"
|
|
3634
3814
|
* | "shipping-policy"
|
|
3635
3815
|
* | "return-policy"
|
|
3636
|
-
* | "order-status"
|
|
3816
|
+
* | "order-status"
|
|
3817
|
+
* | "locate-us"} PageType
|
|
3637
3818
|
*/
|
|
3638
3819
|
|
|
3820
|
+
/** @typedef {"INR" | "USD" | "EUR"} CurrencyCodeEnum */
|
|
3821
|
+
|
|
3639
3822
|
class CatalogPlatformModel {
|
|
3640
3823
|
/** @returns {Action} */
|
|
3641
3824
|
static Action() {
|
|
@@ -3660,8 +3843,8 @@ class CatalogPlatformModel {
|
|
|
3660
3843
|
});
|
|
3661
3844
|
}
|
|
3662
3845
|
|
|
3663
|
-
/** @returns {
|
|
3664
|
-
static
|
|
3846
|
+
/** @returns {AllowSingleRequestSchema} */
|
|
3847
|
+
static AllowSingleRequestSchema() {
|
|
3665
3848
|
return Joi.object({
|
|
3666
3849
|
allow_single: Joi.boolean().required(),
|
|
3667
3850
|
});
|
|
@@ -3673,11 +3856,11 @@ class CatalogPlatformModel {
|
|
|
3673
3856
|
app_id: Joi.string().allow("").required(),
|
|
3674
3857
|
config_id: Joi.string().allow(""),
|
|
3675
3858
|
config_type: Joi.string().allow("").required(),
|
|
3676
|
-
created_by: Joi.any(),
|
|
3859
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
3677
3860
|
created_on: Joi.string().allow(""),
|
|
3678
3861
|
id: Joi.string().allow(""),
|
|
3679
3862
|
listing: CatalogPlatformModel.ConfigurationListing(),
|
|
3680
|
-
modified_by: Joi.any(),
|
|
3863
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
3681
3864
|
modified_on: Joi.string().allow(""),
|
|
3682
3865
|
product: CatalogPlatformModel.ConfigurationProduct(),
|
|
3683
3866
|
type: Joi.string().allow(""),
|
|
@@ -3688,18 +3871,18 @@ class CatalogPlatformModel {
|
|
|
3688
3871
|
static AppCategoryReturnConfig() {
|
|
3689
3872
|
return Joi.object({
|
|
3690
3873
|
category_id: Joi.number().required(),
|
|
3691
|
-
return_config: CatalogPlatformModel.
|
|
3874
|
+
return_config: CatalogPlatformModel.ProductReturnConfigBaseSchema().required(),
|
|
3692
3875
|
});
|
|
3693
3876
|
}
|
|
3694
3877
|
|
|
3695
|
-
/** @returns {
|
|
3696
|
-
static
|
|
3878
|
+
/** @returns {AppCategoryReturnConfigResponseSchema} */
|
|
3879
|
+
static AppCategoryReturnConfigResponseSchema() {
|
|
3697
3880
|
return Joi.object({
|
|
3698
3881
|
app_id: Joi.string().allow(""),
|
|
3699
3882
|
category_id: Joi.number(),
|
|
3700
3883
|
logo: Joi.string().allow(""),
|
|
3701
3884
|
name: Joi.string().allow(""),
|
|
3702
|
-
return_config: CatalogPlatformModel.
|
|
3885
|
+
return_config: CatalogPlatformModel.ProductReturnConfigBaseSchema(),
|
|
3703
3886
|
});
|
|
3704
3887
|
}
|
|
3705
3888
|
|
|
@@ -3709,10 +3892,10 @@ class CatalogPlatformModel {
|
|
|
3709
3892
|
app_id: Joi.string().allow("").required(),
|
|
3710
3893
|
config_id: Joi.string().allow(""),
|
|
3711
3894
|
config_type: Joi.string().allow("").required(),
|
|
3712
|
-
created_by: Joi.any(),
|
|
3895
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
3713
3896
|
created_on: Joi.string().allow(""),
|
|
3714
3897
|
listing: CatalogPlatformModel.ConfigurationListing(),
|
|
3715
|
-
modified_by: Joi.any(),
|
|
3898
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
3716
3899
|
modified_on: Joi.string().allow(""),
|
|
3717
3900
|
product: CatalogPlatformModel.ConfigurationProduct(),
|
|
3718
3901
|
type: Joi.string().allow(""),
|
|
@@ -3753,21 +3936,21 @@ class CatalogPlatformModel {
|
|
|
3753
3936
|
/** @returns {ApplicationBrandJson} */
|
|
3754
3937
|
static ApplicationBrandJson() {
|
|
3755
3938
|
return Joi.object({
|
|
3756
|
-
_custom_json: Joi.any().required(),
|
|
3939
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
3757
3940
|
});
|
|
3758
3941
|
}
|
|
3759
3942
|
|
|
3760
3943
|
/** @returns {ApplicationCategoryJson} */
|
|
3761
3944
|
static ApplicationCategoryJson() {
|
|
3762
3945
|
return Joi.object({
|
|
3763
|
-
_custom_json: Joi.any().required(),
|
|
3946
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
3764
3947
|
});
|
|
3765
3948
|
}
|
|
3766
3949
|
|
|
3767
3950
|
/** @returns {ApplicationDepartment} */
|
|
3768
3951
|
static ApplicationDepartment() {
|
|
3769
3952
|
return Joi.object({
|
|
3770
|
-
_custom_json: Joi.any(),
|
|
3953
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
3771
3954
|
app_id: Joi.string().allow("").required(),
|
|
3772
3955
|
is_active: Joi.boolean(),
|
|
3773
3956
|
logo: Joi.string().allow(""),
|
|
@@ -3779,12 +3962,12 @@ class CatalogPlatformModel {
|
|
|
3779
3962
|
/** @returns {ApplicationDepartmentJson} */
|
|
3780
3963
|
static ApplicationDepartmentJson() {
|
|
3781
3964
|
return Joi.object({
|
|
3782
|
-
_custom_json: Joi.any().required(),
|
|
3965
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
3783
3966
|
});
|
|
3784
3967
|
}
|
|
3785
3968
|
|
|
3786
|
-
/** @returns {
|
|
3787
|
-
static
|
|
3969
|
+
/** @returns {ApplicationDepartmentListingResponseSchema} */
|
|
3970
|
+
static ApplicationDepartmentListingResponseSchema() {
|
|
3788
3971
|
return Joi.object({
|
|
3789
3972
|
items: Joi.array().items(CatalogPlatformModel.ApplicationDepartment()),
|
|
3790
3973
|
page: CatalogPlatformModel.Page().required(),
|
|
@@ -3803,9 +3986,9 @@ class CatalogPlatformModel {
|
|
|
3803
3986
|
/** @returns {ApplicationItemMeta} */
|
|
3804
3987
|
static ApplicationItemMeta() {
|
|
3805
3988
|
return Joi.object({
|
|
3806
|
-
_custom_json: Joi.any(),
|
|
3989
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
3807
3990
|
_custom_meta: Joi.array().items(CatalogPlatformModel.MetaFields()),
|
|
3808
|
-
alt_text: Joi.any(),
|
|
3991
|
+
alt_text: Joi.object().pattern(/\S/, Joi.any()),
|
|
3809
3992
|
is_cod: Joi.boolean(),
|
|
3810
3993
|
is_gift: Joi.boolean(),
|
|
3811
3994
|
moq: CatalogPlatformModel.ApplicationItemMOQ(),
|
|
@@ -3838,12 +4021,82 @@ class CatalogPlatformModel {
|
|
|
3838
4021
|
});
|
|
3839
4022
|
}
|
|
3840
4023
|
|
|
3841
|
-
/** @returns {
|
|
3842
|
-
static
|
|
4024
|
+
/** @returns {ApplicationProductsSchema} */
|
|
4025
|
+
static ApplicationProductsSchema() {
|
|
4026
|
+
return Joi.object({
|
|
4027
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
4028
|
+
brand: CatalogPlatformModel.ProductBrand(),
|
|
4029
|
+
color: Joi.string().allow(""),
|
|
4030
|
+
description: Joi.string().allow(""),
|
|
4031
|
+
discount: Joi.string().allow(""),
|
|
4032
|
+
has_variant: Joi.boolean(),
|
|
4033
|
+
highlights: Joi.array().items(Joi.string().allow("")),
|
|
4034
|
+
image_nature: Joi.string().allow("").required(),
|
|
4035
|
+
item_code: Joi.string().allow("").required(),
|
|
4036
|
+
item_type: Joi.string().allow("").required(),
|
|
4037
|
+
medias: Joi.array().items(CatalogPlatformModel.Media()),
|
|
4038
|
+
name: Joi.string().allow("").required(),
|
|
4039
|
+
price: CatalogPlatformModel.ProductListingPrice(),
|
|
4040
|
+
product_online_date: Joi.string().allow(""),
|
|
4041
|
+
promo_meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
4042
|
+
rating: Joi.number(),
|
|
4043
|
+
rating_count: Joi.number(),
|
|
4044
|
+
sellable: Joi.boolean(),
|
|
4045
|
+
short_description: Joi.string().allow(""),
|
|
4046
|
+
similars: Joi.array().items(Joi.string().allow("")),
|
|
4047
|
+
slug: Joi.string().allow("").required(),
|
|
4048
|
+
teaser_tag: Joi.object().pattern(/\S/, Joi.any()),
|
|
4049
|
+
tryouts: Joi.array().items(Joi.string().allow("")),
|
|
4050
|
+
type: Joi.string().allow(""),
|
|
4051
|
+
uid: Joi.number().required(),
|
|
4052
|
+
popularity: Joi.number(),
|
|
4053
|
+
brand_uid: Joi.number().required(),
|
|
4054
|
+
category_uid: Joi.number().required(),
|
|
4055
|
+
verification_status: Joi.number(),
|
|
4056
|
+
channel_identifier: Joi.string().allow(""),
|
|
4057
|
+
category_slug: Joi.string().allow(""),
|
|
4058
|
+
size_guide: Joi.string().allow(""),
|
|
4059
|
+
l3_categories: Joi.array().items(Joi.number()).required(),
|
|
4060
|
+
store_ids: Joi.array().items(Joi.number()),
|
|
4061
|
+
company_ids: Joi.array().items(Joi.number()),
|
|
4062
|
+
departments: Joi.array().items(Joi.number()).required(),
|
|
4063
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
4064
|
+
l3_category_names: Joi.array().items(Joi.string().allow("")),
|
|
4065
|
+
sizes: Joi.array().items(Joi.string().allow("")),
|
|
4066
|
+
product_group_tag: Joi.array().items(Joi.string().allow("")),
|
|
4067
|
+
multi_size: Joi.boolean().required(),
|
|
4068
|
+
is_gift: Joi.boolean().required(),
|
|
4069
|
+
is_cod: Joi.boolean().required(),
|
|
4070
|
+
is_dependent: Joi.boolean().required(),
|
|
4071
|
+
is_available: Joi.boolean().required(),
|
|
4072
|
+
moq: CatalogPlatformModel.ApplicationItemMOQ().required(),
|
|
4073
|
+
seo: CatalogPlatformModel.ApplicationItemSEO().required(),
|
|
4074
|
+
variants: Joi.object().pattern(/\S/, Joi.any()),
|
|
4075
|
+
variant_media: Joi.object().pattern(/\S/, Joi.any()),
|
|
4076
|
+
variant_group: Joi.object().pattern(/\S/, Joi.any()),
|
|
4077
|
+
multi_categories: Joi.array().items(
|
|
4078
|
+
CatalogPlatformModel.MultiCategoriesSchema()
|
|
4079
|
+
),
|
|
4080
|
+
template_tag: Joi.string().allow(""),
|
|
4081
|
+
net_quantity: Joi.object().pattern(/\S/, Joi.any()),
|
|
4082
|
+
custom_order: CatalogPlatformModel.CustomOrder(),
|
|
4083
|
+
country_of_origin: Joi.string().allow("").required(),
|
|
4084
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
4085
|
+
identifiers: Joi.array().items(Joi.string().allow("")),
|
|
4086
|
+
item_id: Joi.number(),
|
|
4087
|
+
_custom_meta: Joi.array().items(CatalogPlatformModel.CustomMeta()),
|
|
4088
|
+
discount_percentage: Joi.number(),
|
|
4089
|
+
});
|
|
4090
|
+
}
|
|
4091
|
+
|
|
4092
|
+
/** @returns {ApplicationProductListingResponseSchema} */
|
|
4093
|
+
static ApplicationProductListingResponseSchema() {
|
|
3843
4094
|
return Joi.object({
|
|
3844
4095
|
filters: Joi.array().items(CatalogPlatformModel.ProductFilters()),
|
|
3845
|
-
items: Joi.array().items(
|
|
3846
|
-
|
|
4096
|
+
items: Joi.array().items(
|
|
4097
|
+
CatalogPlatformModel.ApplicationProductsSchema()
|
|
4098
|
+
),
|
|
4099
|
+
operators: Joi.object().pattern(/\S/, Joi.any()),
|
|
3847
4100
|
page: CatalogPlatformModel.Page().required(),
|
|
3848
4101
|
sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()),
|
|
3849
4102
|
});
|
|
@@ -3852,18 +4105,18 @@ class CatalogPlatformModel {
|
|
|
3852
4105
|
/** @returns {ApplicationStoreJson} */
|
|
3853
4106
|
static ApplicationStoreJson() {
|
|
3854
4107
|
return Joi.object({
|
|
3855
|
-
_custom_json: Joi.any().required(),
|
|
4108
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
3856
4109
|
});
|
|
3857
4110
|
}
|
|
3858
4111
|
|
|
3859
|
-
/** @returns {
|
|
3860
|
-
static
|
|
4112
|
+
/** @returns {AppReturnConfigResponseSchema} */
|
|
4113
|
+
static AppReturnConfigResponseSchema() {
|
|
3861
4114
|
return Joi.object({
|
|
3862
4115
|
app_id: Joi.string().allow(""),
|
|
3863
4116
|
category_count: Joi.number(),
|
|
3864
4117
|
company_id: Joi.number(),
|
|
3865
|
-
created_by: Joi.any(),
|
|
3866
|
-
modified_by: Joi.any(),
|
|
4118
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
4119
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
3867
4120
|
modified_on: Joi.string().allow(""),
|
|
3868
4121
|
return_config_level: Joi.string().allow(""),
|
|
3869
4122
|
});
|
|
@@ -3894,8 +4147,8 @@ class CatalogPlatformModel {
|
|
|
3894
4147
|
});
|
|
3895
4148
|
}
|
|
3896
4149
|
|
|
3897
|
-
/** @returns {
|
|
3898
|
-
static
|
|
4150
|
+
/** @returns {ArticleStoreResponseSchema} */
|
|
4151
|
+
static ArticleStoreResponseSchema() {
|
|
3899
4152
|
return Joi.object({
|
|
3900
4153
|
name: Joi.string().allow(""),
|
|
3901
4154
|
store_code: Joi.string().allow(""),
|
|
@@ -3924,7 +4177,7 @@ class CatalogPlatformModel {
|
|
|
3924
4177
|
return Joi.object({
|
|
3925
4178
|
article_assignment: CatalogPlatformModel.ArticleAssignment(),
|
|
3926
4179
|
group_id: Joi.string().allow(""),
|
|
3927
|
-
meta: Joi.any(),
|
|
4180
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
3928
4181
|
quantity: Joi.number(),
|
|
3929
4182
|
query: CatalogPlatformModel.ArticleQuery(),
|
|
3930
4183
|
});
|
|
@@ -3987,10 +4240,10 @@ class CatalogPlatformModel {
|
|
|
3987
4240
|
});
|
|
3988
4241
|
}
|
|
3989
4242
|
|
|
3990
|
-
/** @returns {
|
|
3991
|
-
static
|
|
4243
|
+
/** @returns {AttributeMasterSchema} */
|
|
4244
|
+
static AttributeMasterSchema() {
|
|
3992
4245
|
return Joi.object({
|
|
3993
|
-
created_by: Joi.any(),
|
|
4246
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
3994
4247
|
created_on: Joi.string().allow(""),
|
|
3995
4248
|
departments: Joi.array().items(Joi.string().allow("")).required(),
|
|
3996
4249
|
description: Joi.string().allow(""),
|
|
@@ -3999,14 +4252,14 @@ class CatalogPlatformModel {
|
|
|
3999
4252
|
filters: CatalogPlatformModel.AttributeMasterFilter().required(),
|
|
4000
4253
|
is_nested: Joi.boolean(),
|
|
4001
4254
|
logo: Joi.string().allow(""),
|
|
4002
|
-
modified_by: Joi.any(),
|
|
4255
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
4003
4256
|
modified_on: Joi.string().allow(""),
|
|
4004
4257
|
name: Joi.string().allow(""),
|
|
4005
4258
|
raw_key: Joi.string().allow(""),
|
|
4006
4259
|
schema: CatalogPlatformModel.AttributeMaster().required(),
|
|
4007
4260
|
slug: Joi.string().allow("").required(),
|
|
4008
4261
|
suggestion: Joi.string().allow(""),
|
|
4009
|
-
synonyms: Joi.any(),
|
|
4262
|
+
synonyms: Joi.object().pattern(/\S/, Joi.any()),
|
|
4010
4263
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
4011
4264
|
unit: Joi.string().allow(""),
|
|
4012
4265
|
variant: Joi.boolean(),
|
|
@@ -4041,8 +4294,8 @@ class CatalogPlatformModel {
|
|
|
4041
4294
|
/** @returns {AutocompletePageAction} */
|
|
4042
4295
|
static AutocompletePageAction() {
|
|
4043
4296
|
return Joi.object({
|
|
4044
|
-
params: Joi.any(),
|
|
4045
|
-
query: Joi.any(),
|
|
4297
|
+
params: Joi.object().pattern(/\S/, Joi.any()),
|
|
4298
|
+
query: Joi.object().pattern(/\S/, Joi.any()),
|
|
4046
4299
|
type: Joi.string().allow(""),
|
|
4047
4300
|
url: Joi.string().allow(""),
|
|
4048
4301
|
});
|
|
@@ -4051,7 +4304,7 @@ class CatalogPlatformModel {
|
|
|
4051
4304
|
/** @returns {AutocompleteResult} */
|
|
4052
4305
|
static AutocompleteResult() {
|
|
4053
4306
|
return Joi.object({
|
|
4054
|
-
_custom_json: Joi.any(),
|
|
4307
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
4055
4308
|
action: CatalogPlatformModel.AutocompleteAction(),
|
|
4056
4309
|
display: Joi.string().allow(""),
|
|
4057
4310
|
logo: CatalogPlatformModel.AutoCompleteMedia(),
|
|
@@ -4070,21 +4323,19 @@ class CatalogPlatformModel {
|
|
|
4070
4323
|
/** @returns {BaseAppCategoryReturnConfig} */
|
|
4071
4324
|
static BaseAppCategoryReturnConfig() {
|
|
4072
4325
|
return Joi.object({
|
|
4073
|
-
app_id: Joi.string().allow("").required(),
|
|
4074
|
-
company_id: Joi.number().required(),
|
|
4075
4326
|
data: Joi.array()
|
|
4076
4327
|
.items(CatalogPlatformModel.AppCategoryReturnConfig())
|
|
4077
4328
|
.required(),
|
|
4078
4329
|
});
|
|
4079
4330
|
}
|
|
4080
4331
|
|
|
4081
|
-
/** @returns {
|
|
4082
|
-
static
|
|
4332
|
+
/** @returns {BaseAppCategoryReturnConfigResponseSchema} */
|
|
4333
|
+
static BaseAppCategoryReturnConfigResponseSchema() {
|
|
4083
4334
|
return Joi.object({
|
|
4084
4335
|
data: Joi.array().items(
|
|
4085
|
-
CatalogPlatformModel.
|
|
4336
|
+
CatalogPlatformModel.AppCategoryReturnConfigResponseSchema()
|
|
4086
4337
|
),
|
|
4087
|
-
page: CatalogPlatformModel.
|
|
4338
|
+
page: CatalogPlatformModel.PageResponseSchema(),
|
|
4088
4339
|
});
|
|
4089
4340
|
}
|
|
4090
4341
|
|
|
@@ -4111,8 +4362,69 @@ class CatalogPlatformModel {
|
|
|
4111
4362
|
});
|
|
4112
4363
|
}
|
|
4113
4364
|
|
|
4114
|
-
/** @returns {
|
|
4115
|
-
static
|
|
4365
|
+
/** @returns {ApplicationCategoryListingSchema} */
|
|
4366
|
+
static ApplicationCategoryListingSchema() {
|
|
4367
|
+
return Joi.object({
|
|
4368
|
+
items: Joi.array().items(
|
|
4369
|
+
CatalogPlatformModel.ApplicationCategoryListingItemSchema()
|
|
4370
|
+
),
|
|
4371
|
+
page: CatalogPlatformModel.Page(),
|
|
4372
|
+
});
|
|
4373
|
+
}
|
|
4374
|
+
|
|
4375
|
+
/** @returns {ApplicationCategoryListingItemSchema} */
|
|
4376
|
+
static ApplicationCategoryListingItemSchema() {
|
|
4377
|
+
return Joi.object({
|
|
4378
|
+
name: Joi.string().allow(""),
|
|
4379
|
+
logo: Joi.string().allow(""),
|
|
4380
|
+
departments: Joi.array().items(Joi.number()),
|
|
4381
|
+
attr_name: Joi.string().allow(""),
|
|
4382
|
+
landscape_url: Joi.string().allow(""),
|
|
4383
|
+
portrait_url: Joi.string().allow(""),
|
|
4384
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
4385
|
+
priority: Joi.number(),
|
|
4386
|
+
created_by: CatalogPlatformModel.CreatedBy(),
|
|
4387
|
+
created_on: Joi.string().allow(""),
|
|
4388
|
+
modified_by: CatalogPlatformModel.ModifiedBy(),
|
|
4389
|
+
modified_on: Joi.string().allow(""),
|
|
4390
|
+
app_id: Joi.string().allow(""),
|
|
4391
|
+
is_active: Joi.boolean(),
|
|
4392
|
+
uid: Joi.number(),
|
|
4393
|
+
});
|
|
4394
|
+
}
|
|
4395
|
+
|
|
4396
|
+
/** @returns {ApplicationBrandListingSchema} */
|
|
4397
|
+
static ApplicationBrandListingSchema() {
|
|
4398
|
+
return Joi.object({
|
|
4399
|
+
items: Joi.array().items(
|
|
4400
|
+
CatalogPlatformModel.ApplicationBrandListingItemSchema()
|
|
4401
|
+
),
|
|
4402
|
+
page: CatalogPlatformModel.Page(),
|
|
4403
|
+
});
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
/** @returns {ApplicationBrandListingItemSchema} */
|
|
4407
|
+
static ApplicationBrandListingItemSchema() {
|
|
4408
|
+
return Joi.object({
|
|
4409
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
4410
|
+
_locale_language: Joi.object().pattern(/\S/, Joi.any()),
|
|
4411
|
+
brand_banner_portrait_url: Joi.string().allow(""),
|
|
4412
|
+
brand_banner_url: Joi.string().allow(""),
|
|
4413
|
+
brand_logo_url: Joi.string().allow(""),
|
|
4414
|
+
description: Joi.string().allow(""),
|
|
4415
|
+
name: Joi.string().allow(""),
|
|
4416
|
+
slug_key: Joi.string().allow(""),
|
|
4417
|
+
priority: Joi.number(),
|
|
4418
|
+
uid: Joi.number(),
|
|
4419
|
+
created_on: Joi.string().allow(""),
|
|
4420
|
+
last_updated: Joi.string().allow(""),
|
|
4421
|
+
is_active: Joi.boolean(),
|
|
4422
|
+
departments: Joi.array().items(Joi.number()),
|
|
4423
|
+
});
|
|
4424
|
+
}
|
|
4425
|
+
|
|
4426
|
+
/** @returns {BrandListingResponseSchema} */
|
|
4427
|
+
static BrandListingResponseSchema() {
|
|
4116
4428
|
return Joi.object({
|
|
4117
4429
|
items: Joi.array().items(CatalogPlatformModel.BrandItem()),
|
|
4118
4430
|
page: CatalogPlatformModel.Page().required(),
|
|
@@ -4135,16 +4447,16 @@ class CatalogPlatformModel {
|
|
|
4135
4447
|
});
|
|
4136
4448
|
}
|
|
4137
4449
|
|
|
4138
|
-
/** @returns {
|
|
4139
|
-
static
|
|
4450
|
+
/** @returns {BulkAssetResponseSchema} */
|
|
4451
|
+
static BulkAssetResponseSchema() {
|
|
4140
4452
|
return Joi.object({
|
|
4141
4453
|
items: Joi.array().items(CatalogPlatformModel.Items()),
|
|
4142
4454
|
page: CatalogPlatformModel.Page(),
|
|
4143
4455
|
});
|
|
4144
4456
|
}
|
|
4145
4457
|
|
|
4146
|
-
/** @returns {
|
|
4147
|
-
static
|
|
4458
|
+
/** @returns {BulkHsnResponseSchema} */
|
|
4459
|
+
static BulkHsnResponseSchema() {
|
|
4148
4460
|
return Joi.object({
|
|
4149
4461
|
success: Joi.boolean(),
|
|
4150
4462
|
});
|
|
@@ -4179,14 +4491,14 @@ class CatalogPlatformModel {
|
|
|
4179
4491
|
cancelled: Joi.number(),
|
|
4180
4492
|
cancelled_records: Joi.array().items(Joi.string().allow("")),
|
|
4181
4493
|
company_id: Joi.number(),
|
|
4182
|
-
created_by: Joi.any(),
|
|
4494
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
4183
4495
|
created_on: Joi.string().allow(""),
|
|
4184
4496
|
failed: Joi.number(),
|
|
4185
4497
|
failed_records: Joi.array().items(CatalogPlatformModel.FailedRecord()),
|
|
4186
4498
|
file_path: Joi.string().allow(""),
|
|
4187
4499
|
id: Joi.string().allow(""),
|
|
4188
4500
|
is_active: Joi.boolean(),
|
|
4189
|
-
modified_by: Joi.any(),
|
|
4501
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
4190
4502
|
modified_on: Joi.string().allow(""),
|
|
4191
4503
|
stage: Joi.string().allow(""),
|
|
4192
4504
|
succeed: Joi.number(),
|
|
@@ -4209,13 +4521,15 @@ class CatalogPlatformModel {
|
|
|
4209
4521
|
static BulkJob() {
|
|
4210
4522
|
return Joi.object({
|
|
4211
4523
|
cancelled: Joi.number(),
|
|
4212
|
-
cancelled_records: Joi.array().items(
|
|
4524
|
+
cancelled_records: Joi.array().items(
|
|
4525
|
+
Joi.object().pattern(/\S/, Joi.any())
|
|
4526
|
+
),
|
|
4213
4527
|
company_id: Joi.number().required(),
|
|
4214
4528
|
created_by: CatalogPlatformModel.UserInfo1(),
|
|
4215
4529
|
created_on: Joi.string().allow("").required(),
|
|
4216
4530
|
custom_template_tag: Joi.string().allow(""),
|
|
4217
4531
|
failed: Joi.number(),
|
|
4218
|
-
failed_records: Joi.array().items(Joi.any()),
|
|
4532
|
+
failed_records: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
4219
4533
|
file_path: Joi.string().allow(""),
|
|
4220
4534
|
is_active: Joi.boolean(),
|
|
4221
4535
|
modified_by: Joi.string().allow("").allow(null),
|
|
@@ -4228,18 +4542,18 @@ class CatalogPlatformModel {
|
|
|
4228
4542
|
});
|
|
4229
4543
|
}
|
|
4230
4544
|
|
|
4231
|
-
/** @returns {
|
|
4232
|
-
static
|
|
4545
|
+
/** @returns {BulkProductRequestSchema} */
|
|
4546
|
+
static BulkProductRequestSchema() {
|
|
4233
4547
|
return Joi.object({
|
|
4234
4548
|
batch_id: Joi.string().allow("").required(),
|
|
4235
4549
|
company_id: Joi.number().required(),
|
|
4236
|
-
data: Joi.array().items(Joi.any()).required(),
|
|
4550
|
+
data: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())).required(),
|
|
4237
4551
|
template_tag: Joi.string().allow("").required(),
|
|
4238
4552
|
});
|
|
4239
4553
|
}
|
|
4240
4554
|
|
|
4241
|
-
/** @returns {
|
|
4242
|
-
static
|
|
4555
|
+
/** @returns {BulkResponseSchema} */
|
|
4556
|
+
static BulkResponseSchema() {
|
|
4243
4557
|
return Joi.object({
|
|
4244
4558
|
batch_id: Joi.string().allow("").required(),
|
|
4245
4559
|
created_by: CatalogPlatformModel.UserInfo1(),
|
|
@@ -4271,16 +4585,16 @@ class CatalogPlatformModel {
|
|
|
4271
4585
|
});
|
|
4272
4586
|
}
|
|
4273
4587
|
|
|
4274
|
-
/** @returns {
|
|
4275
|
-
static
|
|
4588
|
+
/** @returns {CatalogInsightResponseSchema} */
|
|
4589
|
+
static CatalogInsightResponseSchema() {
|
|
4276
4590
|
return Joi.object({
|
|
4277
4591
|
brand_distribution: CatalogPlatformModel.CatalogInsightBrand(),
|
|
4278
4592
|
item: CatalogPlatformModel.CatalogInsightItem(),
|
|
4279
4593
|
});
|
|
4280
4594
|
}
|
|
4281
4595
|
|
|
4282
|
-
/** @returns {
|
|
4283
|
-
static
|
|
4596
|
+
/** @returns {CategoriesResponseSchema} */
|
|
4597
|
+
static CategoriesResponseSchema() {
|
|
4284
4598
|
return Joi.object({
|
|
4285
4599
|
name: Joi.string().allow(""),
|
|
4286
4600
|
slug: Joi.string().allow(""),
|
|
@@ -4293,7 +4607,7 @@ class CatalogPlatformModel {
|
|
|
4293
4607
|
/** @returns {Category} */
|
|
4294
4608
|
static Category() {
|
|
4295
4609
|
return Joi.object({
|
|
4296
|
-
created_by: Joi.any(),
|
|
4610
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
4297
4611
|
created_on: Joi.string().allow(""),
|
|
4298
4612
|
departments: Joi.array().items(Joi.number()).required(),
|
|
4299
4613
|
hierarchy: Joi.array().items(CatalogPlatformModel.Hierarchy()),
|
|
@@ -4302,7 +4616,7 @@ class CatalogPlatformModel {
|
|
|
4302
4616
|
level: Joi.number().required(),
|
|
4303
4617
|
marketplaces: CatalogPlatformModel.CategoryMapping(),
|
|
4304
4618
|
media: CatalogPlatformModel.Media1(),
|
|
4305
|
-
modified_by: Joi.any(),
|
|
4619
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
4306
4620
|
modified_on: Joi.string().allow(""),
|
|
4307
4621
|
name: Joi.string().allow("").required(),
|
|
4308
4622
|
priority: Joi.number(),
|
|
@@ -4325,8 +4639,8 @@ class CatalogPlatformModel {
|
|
|
4325
4639
|
});
|
|
4326
4640
|
}
|
|
4327
4641
|
|
|
4328
|
-
/** @returns {
|
|
4329
|
-
static
|
|
4642
|
+
/** @returns {CategoryListingResponseSchema} */
|
|
4643
|
+
static CategoryListingResponseSchema() {
|
|
4330
4644
|
return Joi.object({
|
|
4331
4645
|
data: Joi.array().items(CatalogPlatformModel.DepartmentCategoryTree()),
|
|
4332
4646
|
departments: Joi.array().items(
|
|
@@ -4352,8 +4666,8 @@ class CatalogPlatformModel {
|
|
|
4352
4666
|
});
|
|
4353
4667
|
}
|
|
4354
4668
|
|
|
4355
|
-
/** @returns {
|
|
4356
|
-
static
|
|
4669
|
+
/** @returns {CategoryResponseSchema} */
|
|
4670
|
+
static CategoryResponseSchema() {
|
|
4357
4671
|
return Joi.object({
|
|
4358
4672
|
items: Joi.array().items(CatalogPlatformModel.Category()),
|
|
4359
4673
|
page: CatalogPlatformModel.Page(),
|
|
@@ -4363,7 +4677,7 @@ class CatalogPlatformModel {
|
|
|
4363
4677
|
/** @returns {Child} */
|
|
4364
4678
|
static Child() {
|
|
4365
4679
|
return Joi.object({
|
|
4366
|
-
_custom_json: Joi.any(),
|
|
4680
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
4367
4681
|
action: CatalogPlatformModel.Action(),
|
|
4368
4682
|
banners: CatalogPlatformModel.ImageUrls(),
|
|
4369
4683
|
childs: Joi.array().items(CatalogPlatformModel.SecondLevelChild()),
|
|
@@ -4389,21 +4703,21 @@ class CatalogPlatformModel {
|
|
|
4389
4703
|
});
|
|
4390
4704
|
}
|
|
4391
4705
|
|
|
4392
|
-
/** @returns {
|
|
4393
|
-
static
|
|
4706
|
+
/** @returns {CollectionCreateResponseSchema} */
|
|
4707
|
+
static CollectionCreateResponseSchema() {
|
|
4394
4708
|
return Joi.object({
|
|
4395
4709
|
uid: Joi.string().allow(""),
|
|
4396
|
-
_schedule: Joi.any(),
|
|
4710
|
+
_schedule: Joi.object().pattern(/\S/, Joi.any()),
|
|
4397
4711
|
allow_facets: Joi.boolean(),
|
|
4398
4712
|
allow_sort: Joi.boolean(),
|
|
4399
4713
|
app_id: Joi.string().allow(""),
|
|
4400
|
-
badge: Joi.any(),
|
|
4714
|
+
badge: Joi.object().pattern(/\S/, Joi.any()),
|
|
4401
4715
|
banners: CatalogPlatformModel.ImageUrls(),
|
|
4402
|
-
cron: Joi.any(),
|
|
4716
|
+
cron: Joi.object().pattern(/\S/, Joi.any()),
|
|
4403
4717
|
description: Joi.string().allow(""),
|
|
4404
4718
|
is_active: Joi.boolean(),
|
|
4405
4719
|
logo: CatalogPlatformModel.BannerImage(),
|
|
4406
|
-
meta: Joi.any(),
|
|
4720
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
4407
4721
|
name: Joi.string().allow(""),
|
|
4408
4722
|
priority: Joi.number(),
|
|
4409
4723
|
query: Joi.array().items(CatalogPlatformModel.CollectionQuery()),
|
|
@@ -4415,20 +4729,20 @@ class CatalogPlatformModel {
|
|
|
4415
4729
|
});
|
|
4416
4730
|
}
|
|
4417
4731
|
|
|
4418
|
-
/** @returns {
|
|
4419
|
-
static
|
|
4732
|
+
/** @returns {CollectionDetailResponseSchema} */
|
|
4733
|
+
static CollectionDetailResponseSchema() {
|
|
4420
4734
|
return Joi.object({
|
|
4421
|
-
_schedule: Joi.any(),
|
|
4735
|
+
_schedule: Joi.object().pattern(/\S/, Joi.any()),
|
|
4422
4736
|
allow_facets: Joi.boolean(),
|
|
4423
4737
|
allow_sort: Joi.boolean(),
|
|
4424
4738
|
app_id: Joi.string().allow(""),
|
|
4425
|
-
badge: Joi.any(),
|
|
4739
|
+
badge: Joi.object().pattern(/\S/, Joi.any()),
|
|
4426
4740
|
banners: CatalogPlatformModel.ImageUrls(),
|
|
4427
|
-
cron: Joi.any(),
|
|
4741
|
+
cron: Joi.object().pattern(/\S/, Joi.any()),
|
|
4428
4742
|
description: Joi.string().allow(""),
|
|
4429
4743
|
is_active: Joi.boolean(),
|
|
4430
4744
|
logo: CatalogPlatformModel.Media(),
|
|
4431
|
-
meta: Joi.any(),
|
|
4745
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
4432
4746
|
name: Joi.string().allow(""),
|
|
4433
4747
|
priority: Joi.number(),
|
|
4434
4748
|
query: Joi.array().items(CatalogPlatformModel.CollectionQuery()),
|
|
@@ -4548,10 +4862,10 @@ class CatalogPlatformModel {
|
|
|
4548
4862
|
return Joi.object({
|
|
4549
4863
|
brand_ids: Joi.array().items(Joi.number()).required(),
|
|
4550
4864
|
company_id: Joi.number().required(),
|
|
4551
|
-
created_by: Joi.any(),
|
|
4865
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
4552
4866
|
created_on: Joi.number().required(),
|
|
4553
4867
|
enabled: Joi.boolean().required(),
|
|
4554
|
-
modified_by: Joi.any(),
|
|
4868
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
4555
4869
|
modified_on: Joi.number().required(),
|
|
4556
4870
|
opt_level: Joi.string().allow("").required(),
|
|
4557
4871
|
platform: Joi.string().allow("").required(),
|
|
@@ -4559,15 +4873,15 @@ class CatalogPlatformModel {
|
|
|
4559
4873
|
});
|
|
4560
4874
|
}
|
|
4561
4875
|
|
|
4562
|
-
/** @returns {
|
|
4563
|
-
static
|
|
4876
|
+
/** @returns {ConfigErrorResponseSchema} */
|
|
4877
|
+
static ConfigErrorResponseSchema() {
|
|
4564
4878
|
return Joi.object({
|
|
4565
4879
|
message: Joi.string().allow("").required(),
|
|
4566
4880
|
});
|
|
4567
4881
|
}
|
|
4568
4882
|
|
|
4569
|
-
/** @returns {
|
|
4570
|
-
static
|
|
4883
|
+
/** @returns {ConfigSuccessResponseSchema} */
|
|
4884
|
+
static ConfigSuccessResponseSchema() {
|
|
4571
4885
|
return Joi.object({
|
|
4572
4886
|
message: Joi.string().allow("").required(),
|
|
4573
4887
|
});
|
|
@@ -4621,8 +4935,8 @@ class CatalogPlatformModel {
|
|
|
4621
4935
|
CatalogPlatformModel.ConfigurationBucketPoints()
|
|
4622
4936
|
),
|
|
4623
4937
|
condition: Joi.string().allow(""),
|
|
4624
|
-
map: Joi.any(),
|
|
4625
|
-
map_values: Joi.array().items(Joi.any()),
|
|
4938
|
+
map: Joi.object().pattern(/\S/, Joi.any()),
|
|
4939
|
+
map_values: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
4626
4940
|
priority: Joi.array().items(Joi.string().allow("")),
|
|
4627
4941
|
sort: Joi.string().allow(""),
|
|
4628
4942
|
value: Joi.string().allow(""),
|
|
@@ -4705,7 +5019,7 @@ class CatalogPlatformModel {
|
|
|
4705
5019
|
/** @returns {CreateAutocompleteKeyword} */
|
|
4706
5020
|
static CreateAutocompleteKeyword() {
|
|
4707
5021
|
return Joi.object({
|
|
4708
|
-
_custom_json: Joi.any(),
|
|
5022
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
4709
5023
|
app_id: Joi.string().allow(""),
|
|
4710
5024
|
is_active: Joi.boolean(),
|
|
4711
5025
|
results: Joi.array().items(CatalogPlatformModel.AutocompleteResult()),
|
|
@@ -4713,12 +5027,12 @@ class CatalogPlatformModel {
|
|
|
4713
5027
|
});
|
|
4714
5028
|
}
|
|
4715
5029
|
|
|
4716
|
-
/** @returns {
|
|
4717
|
-
static
|
|
5030
|
+
/** @returns {CreateAutocompleteWordsResponseSchema} */
|
|
5031
|
+
static CreateAutocompleteWordsResponseSchema() {
|
|
4718
5032
|
return Joi.object({
|
|
4719
|
-
_custom_json: Joi.any(),
|
|
5033
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
4720
5034
|
app_id: Joi.string().allow(""),
|
|
4721
|
-
results: Joi.array().items(Joi.any()),
|
|
5035
|
+
results: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
4722
5036
|
words: Joi.array().items(Joi.string().allow("")),
|
|
4723
5037
|
});
|
|
4724
5038
|
}
|
|
@@ -4726,8 +5040,8 @@ class CatalogPlatformModel {
|
|
|
4726
5040
|
/** @returns {CreateCollection} */
|
|
4727
5041
|
static CreateCollection() {
|
|
4728
5042
|
return Joi.object({
|
|
4729
|
-
_custom_json: Joi.any(),
|
|
4730
|
-
_locale_language: Joi.any(),
|
|
5043
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
5044
|
+
_locale_language: Joi.object().pattern(/\S/, Joi.any()),
|
|
4731
5045
|
_schedule: CatalogPlatformModel.CollectionSchedule(),
|
|
4732
5046
|
allow_facets: Joi.boolean(),
|
|
4733
5047
|
allow_sort: Joi.boolean(),
|
|
@@ -4739,7 +5053,7 @@ class CatalogPlatformModel {
|
|
|
4739
5053
|
is_active: Joi.boolean(),
|
|
4740
5054
|
is_visible: Joi.boolean(),
|
|
4741
5055
|
logo: CatalogPlatformModel.CollectionImage().required(),
|
|
4742
|
-
meta: Joi.any(),
|
|
5056
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
4743
5057
|
modified_by: CatalogPlatformModel.UserInfo(),
|
|
4744
5058
|
name: Joi.string().allow("").required(),
|
|
4745
5059
|
priority: Joi.number(),
|
|
@@ -4754,15 +5068,15 @@ class CatalogPlatformModel {
|
|
|
4754
5068
|
});
|
|
4755
5069
|
}
|
|
4756
5070
|
|
|
4757
|
-
/** @returns {
|
|
4758
|
-
static
|
|
5071
|
+
/** @returns {CreateSearchConfigurationRequestSchema} */
|
|
5072
|
+
static CreateSearchConfigurationRequestSchema() {
|
|
4759
5073
|
return Joi.object({
|
|
4760
5074
|
application_id: Joi.string().allow("").required(),
|
|
4761
5075
|
company_id: Joi.number().required(),
|
|
4762
|
-
created_by: CatalogPlatformModel.
|
|
5076
|
+
created_by: CatalogPlatformModel.UserSchema(),
|
|
4763
5077
|
created_on: Joi.string().allow(""),
|
|
4764
5078
|
is_proximity_enabled: Joi.boolean(),
|
|
4765
|
-
modified_by: CatalogPlatformModel.
|
|
5079
|
+
modified_by: CatalogPlatformModel.UserSchema(),
|
|
4766
5080
|
modified_on: Joi.string().allow(""),
|
|
4767
5081
|
proximity: Joi.number(),
|
|
4768
5082
|
searchable_attributes: Joi.array().items(
|
|
@@ -4771,8 +5085,8 @@ class CatalogPlatformModel {
|
|
|
4771
5085
|
});
|
|
4772
5086
|
}
|
|
4773
5087
|
|
|
4774
|
-
/** @returns {
|
|
4775
|
-
static
|
|
5088
|
+
/** @returns {CreateSearchConfigurationResponseSchema} */
|
|
5089
|
+
static CreateSearchConfigurationResponseSchema() {
|
|
4776
5090
|
return Joi.object({
|
|
4777
5091
|
success: Joi.boolean(),
|
|
4778
5092
|
});
|
|
@@ -4781,7 +5095,7 @@ class CatalogPlatformModel {
|
|
|
4781
5095
|
/** @returns {CreateSearchKeyword} */
|
|
4782
5096
|
static CreateSearchKeyword() {
|
|
4783
5097
|
return Joi.object({
|
|
4784
|
-
_custom_json: Joi.any(),
|
|
5098
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
4785
5099
|
app_id: Joi.string().allow(""),
|
|
4786
5100
|
is_active: Joi.boolean(),
|
|
4787
5101
|
result: CatalogPlatformModel.SearchKeywordResult().required(),
|
|
@@ -4792,8 +5106,6 @@ class CatalogPlatformModel {
|
|
|
4792
5106
|
/** @returns {CreateUpdateAppReturnConfig} */
|
|
4793
5107
|
static CreateUpdateAppReturnConfig() {
|
|
4794
5108
|
return Joi.object({
|
|
4795
|
-
app_id: Joi.string().allow("").required(),
|
|
4796
|
-
company_id: Joi.number().required(),
|
|
4797
5109
|
return_config_level: Joi.string().allow("").required(),
|
|
4798
5110
|
});
|
|
4799
5111
|
}
|
|
@@ -4806,8 +5118,8 @@ class CatalogPlatformModel {
|
|
|
4806
5118
|
});
|
|
4807
5119
|
}
|
|
4808
5120
|
|
|
4809
|
-
/** @returns {
|
|
4810
|
-
static
|
|
5121
|
+
/** @returns {CrossSellingResponseSchema} */
|
|
5122
|
+
static CrossSellingResponseSchema() {
|
|
4811
5123
|
return Joi.object({
|
|
4812
5124
|
brand_distribution: CatalogPlatformModel.CatalogInsightBrand(),
|
|
4813
5125
|
data: CatalogPlatformModel.CrossSellingData(),
|
|
@@ -4817,9 +5129,9 @@ class CatalogPlatformModel {
|
|
|
4817
5129
|
/** @returns {CustomOrder} */
|
|
4818
5130
|
static CustomOrder() {
|
|
4819
5131
|
return Joi.object({
|
|
4820
|
-
is_custom_order: Joi.boolean(),
|
|
4821
|
-
manufacturing_time: Joi.number(),
|
|
4822
5132
|
manufacturing_time_unit: Joi.string().allow(""),
|
|
5133
|
+
is_custom_order: Joi.boolean().required(),
|
|
5134
|
+
manufacturing_time: Joi.number(),
|
|
4823
5135
|
});
|
|
4824
5136
|
}
|
|
4825
5137
|
|
|
@@ -4833,8 +5145,8 @@ class CatalogPlatformModel {
|
|
|
4833
5145
|
});
|
|
4834
5146
|
}
|
|
4835
5147
|
|
|
4836
|
-
/** @returns {
|
|
4837
|
-
static
|
|
5148
|
+
/** @returns {DefaultKeyRequestSchema} */
|
|
5149
|
+
static DefaultKeyRequestSchema() {
|
|
4838
5150
|
return Joi.object({
|
|
4839
5151
|
default_key: Joi.string().allow("").required(),
|
|
4840
5152
|
});
|
|
@@ -4843,21 +5155,19 @@ class CatalogPlatformModel {
|
|
|
4843
5155
|
/** @returns {DeleteAppCategoryReturnConfig} */
|
|
4844
5156
|
static DeleteAppCategoryReturnConfig() {
|
|
4845
5157
|
return Joi.object({
|
|
4846
|
-
app_id: Joi.string().allow("").required(),
|
|
4847
5158
|
category_ids: Joi.array().items(Joi.number()).required(),
|
|
4848
|
-
company_id: Joi.number().required(),
|
|
4849
5159
|
});
|
|
4850
5160
|
}
|
|
4851
5161
|
|
|
4852
|
-
/** @returns {
|
|
4853
|
-
static
|
|
5162
|
+
/** @returns {DeleteResponseSchema} */
|
|
5163
|
+
static DeleteResponseSchema() {
|
|
4854
5164
|
return Joi.object({
|
|
4855
5165
|
message: Joi.string().allow(""),
|
|
4856
5166
|
});
|
|
4857
5167
|
}
|
|
4858
5168
|
|
|
4859
|
-
/** @returns {
|
|
4860
|
-
static
|
|
5169
|
+
/** @returns {DeleteSearchConfigurationResponseSchema} */
|
|
5170
|
+
static DeleteSearchConfigurationResponseSchema() {
|
|
4861
5171
|
return Joi.object({
|
|
4862
5172
|
success: Joi.boolean(),
|
|
4863
5173
|
});
|
|
@@ -4882,13 +5192,13 @@ class CatalogPlatformModel {
|
|
|
4882
5192
|
});
|
|
4883
5193
|
}
|
|
4884
5194
|
|
|
4885
|
-
/** @returns {
|
|
4886
|
-
static
|
|
5195
|
+
/** @returns {DepartmentErrorResponseSchema} */
|
|
5196
|
+
static DepartmentErrorResponseSchema() {
|
|
4887
5197
|
return Joi.object({
|
|
4888
5198
|
code: Joi.string().allow(""),
|
|
4889
|
-
errors: Joi.any(),
|
|
5199
|
+
errors: Joi.object().pattern(/\S/, Joi.any()),
|
|
4890
5200
|
message: Joi.string().allow(""),
|
|
4891
|
-
meta: Joi.any(),
|
|
5201
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
4892
5202
|
status: Joi.number(),
|
|
4893
5203
|
});
|
|
4894
5204
|
}
|
|
@@ -4901,23 +5211,23 @@ class CatalogPlatformModel {
|
|
|
4901
5211
|
});
|
|
4902
5212
|
}
|
|
4903
5213
|
|
|
4904
|
-
/** @returns {
|
|
4905
|
-
static
|
|
5214
|
+
/** @returns {DepartmentResponseSchema} */
|
|
5215
|
+
static DepartmentResponseSchema() {
|
|
4906
5216
|
return Joi.object({
|
|
4907
5217
|
items: Joi.array().items(CatalogPlatformModel.Department()),
|
|
4908
5218
|
});
|
|
4909
5219
|
}
|
|
4910
5220
|
|
|
4911
|
-
/** @returns {
|
|
4912
|
-
static
|
|
5221
|
+
/** @returns {DepartmentsResponseSchema} */
|
|
5222
|
+
static DepartmentsResponseSchema() {
|
|
4913
5223
|
return Joi.object({
|
|
4914
5224
|
items: Joi.array().items(CatalogPlatformModel.GetDepartment()),
|
|
4915
5225
|
page: CatalogPlatformModel.Page(),
|
|
4916
5226
|
});
|
|
4917
5227
|
}
|
|
4918
5228
|
|
|
4919
|
-
/** @returns {
|
|
4920
|
-
static
|
|
5229
|
+
/** @returns {DimensionResponseSchema} */
|
|
5230
|
+
static DimensionResponseSchema() {
|
|
4921
5231
|
return Joi.object({
|
|
4922
5232
|
height: Joi.number().required(),
|
|
4923
5233
|
is_default: Joi.boolean().required(),
|
|
@@ -4960,13 +5270,13 @@ class CatalogPlatformModel {
|
|
|
4960
5270
|
});
|
|
4961
5271
|
}
|
|
4962
5272
|
|
|
4963
|
-
/** @returns {
|
|
4964
|
-
static
|
|
5273
|
+
/** @returns {ErrorResponseSchema} */
|
|
5274
|
+
static ErrorResponseSchema() {
|
|
4965
5275
|
return Joi.object({
|
|
4966
5276
|
code: Joi.string().allow(""),
|
|
4967
5277
|
error: Joi.string().allow(""),
|
|
4968
5278
|
message: Joi.string().allow(""),
|
|
4969
|
-
meta: Joi.any(),
|
|
5279
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
4970
5280
|
status: Joi.number(),
|
|
4971
5281
|
});
|
|
4972
5282
|
}
|
|
@@ -4982,23 +5292,23 @@ class CatalogPlatformModel {
|
|
|
4982
5292
|
/** @returns {RawProduct} */
|
|
4983
5293
|
static RawProduct() {
|
|
4984
5294
|
return Joi.object({
|
|
4985
|
-
_custom_json: Joi.any(),
|
|
5295
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
4986
5296
|
all_company_ids: Joi.array().items(Joi.number()),
|
|
4987
5297
|
all_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
4988
|
-
all_sizes: Joi.array().items(Joi.any()),
|
|
4989
|
-
attributes: Joi.any(),
|
|
5298
|
+
all_sizes: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
5299
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
4990
5300
|
brand: CatalogPlatformModel.Brand(),
|
|
4991
5301
|
brand_uid: Joi.number(),
|
|
4992
|
-
category: Joi.any(),
|
|
5302
|
+
category: Joi.object().pattern(/\S/, Joi.any()),
|
|
4993
5303
|
category_slug: Joi.string().allow(""),
|
|
4994
5304
|
category_uid: Joi.number(),
|
|
4995
5305
|
color: Joi.string().allow(""),
|
|
4996
5306
|
company_id: Joi.number(),
|
|
4997
5307
|
country_of_origin: Joi.string().allow(""),
|
|
4998
|
-
created_by: Joi.any(),
|
|
5308
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
4999
5309
|
created_on: Joi.string().allow(""),
|
|
5000
5310
|
currency: Joi.string().allow(""),
|
|
5001
|
-
custom_order: Joi.any(),
|
|
5311
|
+
custom_order: Joi.object().pattern(/\S/, Joi.any()),
|
|
5002
5312
|
departments: Joi.array().items(Joi.number()),
|
|
5003
5313
|
description: Joi.string().allow(""),
|
|
5004
5314
|
highlights: Joi.array().items(Joi.string().allow("")),
|
|
@@ -5016,40 +5326,40 @@ class CatalogPlatformModel {
|
|
|
5016
5326
|
item_type: Joi.string().allow(""),
|
|
5017
5327
|
l3_mapping: Joi.array().items(Joi.string().allow("")),
|
|
5018
5328
|
media: Joi.array().items(CatalogPlatformModel.Media()),
|
|
5019
|
-
modified_by: Joi.any(),
|
|
5329
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
5020
5330
|
modified_on: Joi.string().allow(""),
|
|
5021
|
-
moq: Joi.any(),
|
|
5331
|
+
moq: Joi.object().pattern(/\S/, Joi.any()),
|
|
5022
5332
|
multi_size: Joi.boolean(),
|
|
5023
5333
|
name: Joi.string().allow(""),
|
|
5024
|
-
net_quantity: CatalogPlatformModel.
|
|
5334
|
+
net_quantity: CatalogPlatformModel.NetQuantityResponseSchema(),
|
|
5025
5335
|
no_of_boxes: Joi.number(),
|
|
5026
5336
|
pending: Joi.string().allow(""),
|
|
5027
5337
|
primary_color: Joi.string().allow(""),
|
|
5028
5338
|
product_group_tag: Joi.array().items(Joi.string().allow("")),
|
|
5029
5339
|
product_publish: CatalogPlatformModel.ProductPublished(),
|
|
5030
|
-
return_config: CatalogPlatformModel.
|
|
5340
|
+
return_config: CatalogPlatformModel.ReturnConfigResponseSchema(),
|
|
5031
5341
|
short_description: Joi.string().allow(""),
|
|
5032
5342
|
size_guide: Joi.string().allow(""),
|
|
5033
|
-
sizes: Joi.array().items(Joi.any()),
|
|
5343
|
+
sizes: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
5034
5344
|
slug: Joi.string().allow(""),
|
|
5035
5345
|
stage: Joi.string().allow(""),
|
|
5036
5346
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
5037
|
-
tax_identifier:
|
|
5038
|
-
teaser_tag: Joi.any(),
|
|
5347
|
+
tax_identifier: CatalogPlatformModel.TaxIdentifier(),
|
|
5348
|
+
teaser_tag: Joi.object().pattern(/\S/, Joi.any()),
|
|
5039
5349
|
template_tag: Joi.string().allow(""),
|
|
5040
5350
|
trader: Joi.array().items(CatalogPlatformModel.Trader()),
|
|
5041
5351
|
uid: Joi.number(),
|
|
5042
|
-
variant_group: Joi.any(),
|
|
5043
|
-
variant_media: Joi.any(),
|
|
5044
|
-
variants: Joi.any(),
|
|
5352
|
+
variant_group: Joi.object().pattern(/\S/, Joi.any()),
|
|
5353
|
+
variant_media: Joi.object().pattern(/\S/, Joi.any()),
|
|
5354
|
+
variants: Joi.object().pattern(/\S/, Joi.any()),
|
|
5045
5355
|
verified_by: CatalogPlatformModel.VerifiedBy(),
|
|
5046
5356
|
verified_on: Joi.string().allow(""),
|
|
5047
5357
|
store_id_list: Joi.array().items(Joi.string().allow("")),
|
|
5048
5358
|
});
|
|
5049
5359
|
}
|
|
5050
5360
|
|
|
5051
|
-
/** @returns {
|
|
5052
|
-
static
|
|
5361
|
+
/** @returns {RawProductListingResponseSchema} */
|
|
5362
|
+
static RawProductListingResponseSchema() {
|
|
5053
5363
|
return Joi.object({
|
|
5054
5364
|
items: Joi.array().items(CatalogPlatformModel.RawProduct()),
|
|
5055
5365
|
page: CatalogPlatformModel.Page(),
|
|
@@ -5083,8 +5393,8 @@ class CatalogPlatformModel {
|
|
|
5083
5393
|
});
|
|
5084
5394
|
}
|
|
5085
5395
|
|
|
5086
|
-
/** @returns {
|
|
5087
|
-
static
|
|
5396
|
+
/** @returns {GetAddressSchema} */
|
|
5397
|
+
static GetAddressSchema() {
|
|
5088
5398
|
return Joi.object({
|
|
5089
5399
|
address1: Joi.string().allow(""),
|
|
5090
5400
|
address2: Joi.string().allow(""),
|
|
@@ -5126,16 +5436,16 @@ class CatalogPlatformModel {
|
|
|
5126
5436
|
/** @returns {GetAutocompleteWordsData} */
|
|
5127
5437
|
static GetAutocompleteWordsData() {
|
|
5128
5438
|
return Joi.object({
|
|
5129
|
-
_custom_json: Joi.any(),
|
|
5439
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
5130
5440
|
app_id: Joi.string().allow(""),
|
|
5131
|
-
results: Joi.array().items(Joi.any()),
|
|
5441
|
+
results: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
5132
5442
|
uid: Joi.string().allow(""),
|
|
5133
5443
|
words: Joi.array().items(Joi.string().allow("")),
|
|
5134
5444
|
});
|
|
5135
5445
|
}
|
|
5136
5446
|
|
|
5137
|
-
/** @returns {
|
|
5138
|
-
static
|
|
5447
|
+
/** @returns {GetAutocompleteWordsResponseSchema} */
|
|
5448
|
+
static GetAutocompleteWordsResponseSchema() {
|
|
5139
5449
|
return Joi.object({
|
|
5140
5450
|
items: Joi.array().items(CatalogPlatformModel.GetAutocompleteWordsData()),
|
|
5141
5451
|
page: CatalogPlatformModel.Page(),
|
|
@@ -5145,25 +5455,25 @@ class CatalogPlatformModel {
|
|
|
5145
5455
|
/** @returns {GetCatalogConfigurationDetailsProduct} */
|
|
5146
5456
|
static GetCatalogConfigurationDetailsProduct() {
|
|
5147
5457
|
return Joi.object({
|
|
5148
|
-
compare: Joi.any(),
|
|
5149
|
-
detail: Joi.any(),
|
|
5150
|
-
similar: Joi.any(),
|
|
5151
|
-
variant: Joi.any(),
|
|
5458
|
+
compare: Joi.object().pattern(/\S/, Joi.any()),
|
|
5459
|
+
detail: Joi.object().pattern(/\S/, Joi.any()),
|
|
5460
|
+
similar: Joi.object().pattern(/\S/, Joi.any()),
|
|
5461
|
+
variant: Joi.object().pattern(/\S/, Joi.any()),
|
|
5152
5462
|
});
|
|
5153
5463
|
}
|
|
5154
5464
|
|
|
5155
5465
|
/** @returns {GetCatalogConfigurationDetailsSchemaListing} */
|
|
5156
5466
|
static GetCatalogConfigurationDetailsSchemaListing() {
|
|
5157
5467
|
return Joi.object({
|
|
5158
|
-
filter: Joi.any(),
|
|
5159
|
-
sort: Joi.any(),
|
|
5468
|
+
filter: Joi.object().pattern(/\S/, Joi.any()),
|
|
5469
|
+
sort: Joi.object().pattern(/\S/, Joi.any()),
|
|
5160
5470
|
});
|
|
5161
5471
|
}
|
|
5162
5472
|
|
|
5163
5473
|
/** @returns {GetCatalogConfigurationMetaData} */
|
|
5164
5474
|
static GetCatalogConfigurationMetaData() {
|
|
5165
5475
|
return Joi.object({
|
|
5166
|
-
listing: CatalogPlatformModel.
|
|
5476
|
+
listing: CatalogPlatformModel.MetaDataListingResponseSchema(),
|
|
5167
5477
|
product: CatalogPlatformModel.GetCatalogConfigurationDetailsProduct(),
|
|
5168
5478
|
});
|
|
5169
5479
|
}
|
|
@@ -5171,18 +5481,18 @@ class CatalogPlatformModel {
|
|
|
5171
5481
|
/** @returns {GetCollectionDetailNest} */
|
|
5172
5482
|
static GetCollectionDetailNest() {
|
|
5173
5483
|
return Joi.object({
|
|
5174
|
-
_schedule: Joi.any(),
|
|
5484
|
+
_schedule: Joi.object().pattern(/\S/, Joi.any()),
|
|
5175
5485
|
action: CatalogPlatformModel.Action(),
|
|
5176
5486
|
allow_facets: Joi.boolean(),
|
|
5177
5487
|
allow_sort: Joi.boolean(),
|
|
5178
5488
|
app_id: Joi.string().allow(""),
|
|
5179
|
-
badge: Joi.any(),
|
|
5489
|
+
badge: Joi.object().pattern(/\S/, Joi.any()),
|
|
5180
5490
|
banners: CatalogPlatformModel.ImageUrls(),
|
|
5181
|
-
cron: Joi.any(),
|
|
5491
|
+
cron: Joi.object().pattern(/\S/, Joi.any()),
|
|
5182
5492
|
description: Joi.string().allow(""),
|
|
5183
5493
|
is_active: Joi.boolean(),
|
|
5184
5494
|
logo: CatalogPlatformModel.Media(),
|
|
5185
|
-
meta: Joi.any(),
|
|
5495
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
5186
5496
|
name: Joi.string().allow(""),
|
|
5187
5497
|
priority: Joi.number(),
|
|
5188
5498
|
query: Joi.array().items(CatalogPlatformModel.CollectionQuery()),
|
|
@@ -5194,18 +5504,20 @@ class CatalogPlatformModel {
|
|
|
5194
5504
|
});
|
|
5195
5505
|
}
|
|
5196
5506
|
|
|
5197
|
-
/** @returns {
|
|
5198
|
-
static
|
|
5507
|
+
/** @returns {GetCollectionItemsResponseSchema} */
|
|
5508
|
+
static GetCollectionItemsResponseSchema() {
|
|
5199
5509
|
return Joi.object({
|
|
5200
5510
|
filters: Joi.array().items(CatalogPlatformModel.ProductFilters()),
|
|
5201
|
-
items: Joi.array().items(
|
|
5511
|
+
items: Joi.array().items(
|
|
5512
|
+
CatalogPlatformModel.ApplicationProductsSchema()
|
|
5513
|
+
),
|
|
5202
5514
|
page: CatalogPlatformModel.Page(),
|
|
5203
5515
|
sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()),
|
|
5204
5516
|
});
|
|
5205
5517
|
}
|
|
5206
5518
|
|
|
5207
|
-
/** @returns {
|
|
5208
|
-
static
|
|
5519
|
+
/** @returns {GetCollectionListingResponseSchema} */
|
|
5520
|
+
static GetCollectionListingResponseSchema() {
|
|
5209
5521
|
return Joi.object({
|
|
5210
5522
|
filters: CatalogPlatformModel.CollectionListingFilter(),
|
|
5211
5523
|
items: Joi.array().items(CatalogPlatformModel.GetCollectionDetailNest()),
|
|
@@ -5213,19 +5525,19 @@ class CatalogPlatformModel {
|
|
|
5213
5525
|
});
|
|
5214
5526
|
}
|
|
5215
5527
|
|
|
5216
|
-
/** @returns {
|
|
5217
|
-
static
|
|
5528
|
+
/** @returns {GetCollectionQueryOptionResponseSchema} */
|
|
5529
|
+
static GetCollectionQueryOptionResponseSchema() {
|
|
5218
5530
|
return Joi.object({
|
|
5219
5531
|
filters: Joi.array().items(CatalogPlatformModel.ProductFilters()),
|
|
5220
|
-
operators: Joi.object().pattern(/\S/, Joi.
|
|
5532
|
+
operators: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
5221
5533
|
sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()),
|
|
5222
5534
|
});
|
|
5223
5535
|
}
|
|
5224
5536
|
|
|
5225
|
-
/** @returns {
|
|
5226
|
-
static
|
|
5537
|
+
/** @returns {GetCompanySchema} */
|
|
5538
|
+
static GetCompanySchema() {
|
|
5227
5539
|
return Joi.object({
|
|
5228
|
-
addresses: Joi.array().items(CatalogPlatformModel.
|
|
5540
|
+
addresses: Joi.array().items(CatalogPlatformModel.GetAddressSchema()),
|
|
5229
5541
|
business_type: Joi.string().allow(""),
|
|
5230
5542
|
company_type: Joi.string().allow(""),
|
|
5231
5543
|
created_by: CatalogPlatformModel.UserSerializer2(),
|
|
@@ -5275,8 +5587,8 @@ class CatalogPlatformModel {
|
|
|
5275
5587
|
});
|
|
5276
5588
|
}
|
|
5277
5589
|
|
|
5278
|
-
/** @returns {
|
|
5279
|
-
static
|
|
5590
|
+
/** @returns {GetConfigMetadataResponseSchema} */
|
|
5591
|
+
static GetConfigMetadataResponseSchema() {
|
|
5280
5592
|
return Joi.object({
|
|
5281
5593
|
condition: Joi.array().items(CatalogPlatformModel.ConditionItem()),
|
|
5282
5594
|
data: Joi.array().items(CatalogPlatformModel.DataItem()).required(),
|
|
@@ -5293,10 +5605,10 @@ class CatalogPlatformModel {
|
|
|
5293
5605
|
});
|
|
5294
5606
|
}
|
|
5295
5607
|
|
|
5296
|
-
/** @returns {
|
|
5297
|
-
static
|
|
5608
|
+
/** @returns {GetConfigResponseSchema} */
|
|
5609
|
+
static GetConfigResponseSchema() {
|
|
5298
5610
|
return Joi.object({
|
|
5299
|
-
data: Joi.array().items(Joi.any()).required(),
|
|
5611
|
+
data: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())).required(),
|
|
5300
5612
|
page: CatalogPlatformModel.PageResponseType().required(),
|
|
5301
5613
|
});
|
|
5302
5614
|
}
|
|
@@ -5333,22 +5645,22 @@ class CatalogPlatformModel {
|
|
|
5333
5645
|
dimension: CatalogPlatformModel.DimensionResponse1(),
|
|
5334
5646
|
expiration_date: Joi.string().allow(""),
|
|
5335
5647
|
id: Joi.string().allow(""),
|
|
5336
|
-
identifier:
|
|
5648
|
+
identifier: CatalogPlatformModel.Identifier(),
|
|
5337
5649
|
inventory_updated_on: Joi.string().allow(""),
|
|
5338
5650
|
is_set: Joi.boolean(),
|
|
5339
5651
|
item_id: Joi.number(),
|
|
5340
5652
|
manufacturer: CatalogPlatformModel.ManufacturerResponse1(),
|
|
5341
5653
|
modified_by: CatalogPlatformModel.UserSerializer1(),
|
|
5342
|
-
platforms: Joi.any(),
|
|
5654
|
+
platforms: Joi.object().pattern(/\S/, Joi.any()),
|
|
5343
5655
|
price: CatalogPlatformModel.PriceArticle(),
|
|
5344
5656
|
quantities: CatalogPlatformModel.QuantitiesArticle(),
|
|
5345
5657
|
return_config: CatalogPlatformModel.ReturnConfig2(),
|
|
5346
5658
|
seller_identifier: Joi.string().allow(""),
|
|
5347
5659
|
size: Joi.string().allow(""),
|
|
5348
5660
|
stage: Joi.string().allow(""),
|
|
5349
|
-
store: CatalogPlatformModel.
|
|
5661
|
+
store: CatalogPlatformModel.ArticleStoreResponseSchema(),
|
|
5350
5662
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
5351
|
-
tax_identifier:
|
|
5663
|
+
tax_identifier: CatalogPlatformModel.TaxIdentifier(),
|
|
5352
5664
|
total_quantity: Joi.number(),
|
|
5353
5665
|
trace_id: Joi.string().allow(""),
|
|
5354
5666
|
track_inventory: Joi.boolean(),
|
|
@@ -5358,21 +5670,21 @@ class CatalogPlatformModel {
|
|
|
5358
5670
|
});
|
|
5359
5671
|
}
|
|
5360
5672
|
|
|
5361
|
-
/** @returns {
|
|
5362
|
-
static
|
|
5673
|
+
/** @returns {GetInventoriesResponseSchema} */
|
|
5674
|
+
static GetInventoriesResponseSchema() {
|
|
5363
5675
|
return Joi.object({
|
|
5364
5676
|
items: Joi.array().items(CatalogPlatformModel.GetInventories()),
|
|
5365
5677
|
page: CatalogPlatformModel.Page(),
|
|
5366
5678
|
});
|
|
5367
5679
|
}
|
|
5368
5680
|
|
|
5369
|
-
/** @returns {
|
|
5370
|
-
static
|
|
5681
|
+
/** @returns {GetLocationSchema} */
|
|
5682
|
+
static GetLocationSchema() {
|
|
5371
5683
|
return Joi.object({
|
|
5372
|
-
_custom_json: Joi.any(),
|
|
5373
|
-
address: CatalogPlatformModel.
|
|
5684
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
5685
|
+
address: CatalogPlatformModel.GetAddressSchema().required(),
|
|
5374
5686
|
code: Joi.string().allow("").required(),
|
|
5375
|
-
company: CatalogPlatformModel.
|
|
5687
|
+
company: CatalogPlatformModel.GetCompanySchema(),
|
|
5376
5688
|
contact_numbers: Joi.array().items(
|
|
5377
5689
|
CatalogPlatformModel.SellerPhoneNumber()
|
|
5378
5690
|
),
|
|
@@ -5380,24 +5692,22 @@ class CatalogPlatformModel {
|
|
|
5380
5692
|
created_on: Joi.string().allow(""),
|
|
5381
5693
|
display_name: Joi.string().allow("").required(),
|
|
5382
5694
|
documents: Joi.array().items(CatalogPlatformModel.Document()),
|
|
5383
|
-
gst_credentials: CatalogPlatformModel.
|
|
5695
|
+
gst_credentials: CatalogPlatformModel.InvoiceDetailsSchema(),
|
|
5384
5696
|
integration_type: CatalogPlatformModel.LocationIntegrationType(),
|
|
5385
|
-
manager: CatalogPlatformModel.
|
|
5697
|
+
manager: CatalogPlatformModel.LocationManagerSchema(),
|
|
5386
5698
|
modified_by: CatalogPlatformModel.UserSerializer3(),
|
|
5387
5699
|
modified_on: Joi.string().allow(""),
|
|
5388
5700
|
name: Joi.string().allow("").required(),
|
|
5389
5701
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
5390
5702
|
phone_number: Joi.string().allow("").required(),
|
|
5391
|
-
product_return_config: CatalogPlatformModel.
|
|
5703
|
+
product_return_config: CatalogPlatformModel.ProductReturnConfigSchema(),
|
|
5392
5704
|
stage: Joi.string().allow(""),
|
|
5393
5705
|
store_type: Joi.string().allow(""),
|
|
5394
|
-
timing: Joi.array().items(
|
|
5395
|
-
CatalogPlatformModel.LocationDayWiseSerializer()
|
|
5396
|
-
),
|
|
5706
|
+
timing: Joi.array().items(CatalogPlatformModel.LocationDayWiseSchema()),
|
|
5397
5707
|
uid: Joi.number(),
|
|
5398
5708
|
verified_by: CatalogPlatformModel.UserSerializer3(),
|
|
5399
5709
|
verified_on: Joi.string().allow(""),
|
|
5400
|
-
warnings: Joi.any(),
|
|
5710
|
+
warnings: Joi.object().pattern(/\S/, Joi.any()),
|
|
5401
5711
|
});
|
|
5402
5712
|
}
|
|
5403
5713
|
|
|
@@ -5409,18 +5719,18 @@ class CatalogPlatformModel {
|
|
|
5409
5719
|
});
|
|
5410
5720
|
}
|
|
5411
5721
|
|
|
5412
|
-
/** @returns {
|
|
5413
|
-
static
|
|
5722
|
+
/** @returns {GetProductBundleCreateResponseSchema} */
|
|
5723
|
+
static GetProductBundleCreateResponseSchema() {
|
|
5414
5724
|
return Joi.object({
|
|
5415
5725
|
choice: Joi.string().allow("").required(),
|
|
5416
5726
|
company_id: Joi.number(),
|
|
5417
|
-
created_by: Joi.any(),
|
|
5727
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
5418
5728
|
created_on: Joi.string().allow(""),
|
|
5419
5729
|
id: Joi.string().allow(""),
|
|
5420
5730
|
is_active: Joi.boolean().required(),
|
|
5421
5731
|
logo: Joi.string().allow("").allow(null),
|
|
5422
|
-
meta: Joi.any(),
|
|
5423
|
-
modified_by: Joi.any(),
|
|
5732
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
5733
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
5424
5734
|
modified_on: Joi.string().allow(""),
|
|
5425
5735
|
name: Joi.string().allow("").required(),
|
|
5426
5736
|
page_visibility: Joi.array().items(Joi.string().allow("")),
|
|
@@ -5432,24 +5742,24 @@ class CatalogPlatformModel {
|
|
|
5432
5742
|
});
|
|
5433
5743
|
}
|
|
5434
5744
|
|
|
5435
|
-
/** @returns {
|
|
5436
|
-
static
|
|
5745
|
+
/** @returns {GetProductBundleListingResponseSchema} */
|
|
5746
|
+
static GetProductBundleListingResponseSchema() {
|
|
5437
5747
|
return Joi.object({
|
|
5438
5748
|
items: Joi.array().items(
|
|
5439
|
-
CatalogPlatformModel.
|
|
5749
|
+
CatalogPlatformModel.GetProductBundleCreateResponseSchema()
|
|
5440
5750
|
),
|
|
5441
5751
|
page: CatalogPlatformModel.Page(),
|
|
5442
5752
|
});
|
|
5443
5753
|
}
|
|
5444
5754
|
|
|
5445
|
-
/** @returns {
|
|
5446
|
-
static
|
|
5755
|
+
/** @returns {GetProductBundleResponseSchema} */
|
|
5756
|
+
static GetProductBundleResponseSchema() {
|
|
5447
5757
|
return Joi.object({
|
|
5448
5758
|
choice: Joi.string().allow(""),
|
|
5449
5759
|
company_id: Joi.number(),
|
|
5450
5760
|
is_active: Joi.boolean(),
|
|
5451
5761
|
logo: Joi.string().allow(""),
|
|
5452
|
-
meta: Joi.any(),
|
|
5762
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
5453
5763
|
name: Joi.string().allow(""),
|
|
5454
5764
|
page_visibility: Joi.array().items(Joi.string().allow("")),
|
|
5455
5765
|
products: Joi.array().items(CatalogPlatformModel.GetProducts()),
|
|
@@ -5473,13 +5783,13 @@ class CatalogPlatformModel {
|
|
|
5473
5783
|
});
|
|
5474
5784
|
}
|
|
5475
5785
|
|
|
5476
|
-
/** @returns {
|
|
5477
|
-
static
|
|
5786
|
+
/** @returns {GetCollectionDetailResponseSchema} */
|
|
5787
|
+
static GetCollectionDetailResponseSchema() {
|
|
5478
5788
|
return Joi.object({
|
|
5479
|
-
_custom_json: Joi.any(),
|
|
5480
|
-
_locale_language: Joi.any(),
|
|
5789
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
5790
|
+
_locale_language: Joi.object().pattern(/\S/, Joi.any()),
|
|
5481
5791
|
_schedule: CatalogPlatformModel.CollectionSchedule(),
|
|
5482
|
-
action: Joi.any(),
|
|
5792
|
+
action: Joi.object().pattern(/\S/, Joi.any()),
|
|
5483
5793
|
allow_facets: Joi.boolean(),
|
|
5484
5794
|
allow_sort: Joi.boolean(),
|
|
5485
5795
|
app_id: Joi.string().allow(""),
|
|
@@ -5489,7 +5799,7 @@ class CatalogPlatformModel {
|
|
|
5489
5799
|
is_active: Joi.boolean(),
|
|
5490
5800
|
is_visible: Joi.boolean(),
|
|
5491
5801
|
logo: CatalogPlatformModel.Media(),
|
|
5492
|
-
meta: Joi.any(),
|
|
5802
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
5493
5803
|
name: Joi.string().allow(""),
|
|
5494
5804
|
priority: Joi.number(),
|
|
5495
5805
|
published: Joi.boolean(),
|
|
@@ -5511,20 +5821,20 @@ class CatalogPlatformModel {
|
|
|
5511
5821
|
});
|
|
5512
5822
|
}
|
|
5513
5823
|
|
|
5514
|
-
/** @returns {
|
|
5515
|
-
static
|
|
5824
|
+
/** @returns {GetQueryFiltersKeysResponseSchema} */
|
|
5825
|
+
static GetQueryFiltersKeysResponseSchema() {
|
|
5516
5826
|
return Joi.object({
|
|
5517
5827
|
filters: Joi.array().items(CatalogPlatformModel.ProductFiltersKeysOnly()),
|
|
5518
|
-
operators: Joi.object().pattern(/\S/, Joi.
|
|
5828
|
+
operators: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
5519
5829
|
sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()),
|
|
5520
5830
|
});
|
|
5521
5831
|
}
|
|
5522
5832
|
|
|
5523
|
-
/** @returns {
|
|
5524
|
-
static
|
|
5833
|
+
/** @returns {GetQueryFiltersResponseSchema} */
|
|
5834
|
+
static GetQueryFiltersResponseSchema() {
|
|
5525
5835
|
return Joi.object({
|
|
5526
5836
|
filters: Joi.array().items(CatalogPlatformModel.ProductFilters()),
|
|
5527
|
-
operators: Joi.object().pattern(/\S/, Joi.
|
|
5837
|
+
operators: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
5528
5838
|
sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()),
|
|
5529
5839
|
});
|
|
5530
5840
|
}
|
|
@@ -5599,15 +5909,15 @@ class CatalogPlatformModel {
|
|
|
5599
5909
|
});
|
|
5600
5910
|
}
|
|
5601
5911
|
|
|
5602
|
-
/** @returns {
|
|
5603
|
-
static
|
|
5912
|
+
/** @returns {GetSearchConfigurationResponseSchema} */
|
|
5913
|
+
static GetSearchConfigurationResponseSchema() {
|
|
5604
5914
|
return Joi.object({
|
|
5605
5915
|
application_id: Joi.string().allow("").required(),
|
|
5606
5916
|
company_id: Joi.number().required(),
|
|
5607
|
-
created_by: CatalogPlatformModel.
|
|
5917
|
+
created_by: CatalogPlatformModel.UserSchema(),
|
|
5608
5918
|
created_on: Joi.string().allow(""),
|
|
5609
5919
|
is_proximity_enabled: Joi.boolean(),
|
|
5610
|
-
modified_by: CatalogPlatformModel.
|
|
5920
|
+
modified_by: CatalogPlatformModel.UserSchema(),
|
|
5611
5921
|
modified_on: Joi.string().allow(""),
|
|
5612
5922
|
proximity: Joi.number(),
|
|
5613
5923
|
searchable_attributes: Joi.array().items(
|
|
@@ -5619,25 +5929,25 @@ class CatalogPlatformModel {
|
|
|
5619
5929
|
/** @returns {GetSearchWordsData} */
|
|
5620
5930
|
static GetSearchWordsData() {
|
|
5621
5931
|
return Joi.object({
|
|
5622
|
-
_custom_json: Joi.any(),
|
|
5932
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
5623
5933
|
app_id: Joi.string().allow(""),
|
|
5624
5934
|
is_active: Joi.boolean(),
|
|
5625
|
-
result: Joi.any(),
|
|
5935
|
+
result: Joi.object().pattern(/\S/, Joi.any()),
|
|
5626
5936
|
uid: Joi.string().allow(""),
|
|
5627
5937
|
words: Joi.array().items(Joi.string().allow("")),
|
|
5628
5938
|
});
|
|
5629
5939
|
}
|
|
5630
5940
|
|
|
5631
|
-
/** @returns {
|
|
5632
|
-
static
|
|
5941
|
+
/** @returns {GetSearchWordsDetailResponseSchema} */
|
|
5942
|
+
static GetSearchWordsDetailResponseSchema() {
|
|
5633
5943
|
return Joi.object({
|
|
5634
5944
|
items: CatalogPlatformModel.GetSearchWordsData(),
|
|
5635
5945
|
page: CatalogPlatformModel.Page(),
|
|
5636
5946
|
});
|
|
5637
5947
|
}
|
|
5638
5948
|
|
|
5639
|
-
/** @returns {
|
|
5640
|
-
static
|
|
5949
|
+
/** @returns {GetSearchWordsResponseSchema} */
|
|
5950
|
+
static GetSearchWordsResponseSchema() {
|
|
5641
5951
|
return Joi.object({
|
|
5642
5952
|
items: Joi.array().items(CatalogPlatformModel.GetSearchWordsData()),
|
|
5643
5953
|
page: CatalogPlatformModel.Page(),
|
|
@@ -5647,7 +5957,7 @@ class CatalogPlatformModel {
|
|
|
5647
5957
|
/** @returns {GlobalValidation} */
|
|
5648
5958
|
static GlobalValidation() {
|
|
5649
5959
|
return Joi.object({
|
|
5650
|
-
definitions: Joi.any(),
|
|
5960
|
+
definitions: Joi.object().pattern(/\S/, Joi.any()),
|
|
5651
5961
|
description: Joi.string().allow(""),
|
|
5652
5962
|
properties: CatalogPlatformModel.Properties(),
|
|
5653
5963
|
required: Joi.array().items(Joi.string().allow("")),
|
|
@@ -5663,8 +5973,8 @@ class CatalogPlatformModel {
|
|
|
5663
5973
|
});
|
|
5664
5974
|
}
|
|
5665
5975
|
|
|
5666
|
-
/** @returns {
|
|
5667
|
-
static
|
|
5976
|
+
/** @returns {HSNCodesResponseSchema} */
|
|
5977
|
+
static HSNCodesResponseSchema() {
|
|
5668
5978
|
return Joi.object({
|
|
5669
5979
|
data: CatalogPlatformModel.HSNData(),
|
|
5670
5980
|
message: Joi.string().allow(""),
|
|
@@ -5683,12 +5993,12 @@ class CatalogPlatformModel {
|
|
|
5683
5993
|
static HSNDataInsertV2() {
|
|
5684
5994
|
return Joi.object({
|
|
5685
5995
|
country_code: Joi.string().allow("").required(),
|
|
5686
|
-
created_by: Joi.any(),
|
|
5996
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
5687
5997
|
created_on: Joi.string().allow(""),
|
|
5688
5998
|
description: Joi.string().allow("").required(),
|
|
5689
5999
|
hsn_code: Joi.string().allow("").required(),
|
|
5690
6000
|
hsn_code_id: Joi.string().allow(""),
|
|
5691
|
-
modified_by: Joi.any(),
|
|
6001
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
5692
6002
|
modified_on: Joi.string().allow(""),
|
|
5693
6003
|
reporting_hsn: Joi.string().allow("").required(),
|
|
5694
6004
|
taxes: Joi.array().items(CatalogPlatformModel.TaxSlab()).required(),
|
|
@@ -5716,7 +6026,7 @@ class CatalogPlatformModel {
|
|
|
5716
6026
|
static HsnCodesListingResponseSchemaV2() {
|
|
5717
6027
|
return Joi.object({
|
|
5718
6028
|
items: Joi.array().items(CatalogPlatformModel.HSNDataInsertV2()),
|
|
5719
|
-
page: CatalogPlatformModel.
|
|
6029
|
+
page: CatalogPlatformModel.PageResponseSchema(),
|
|
5720
6030
|
});
|
|
5721
6031
|
}
|
|
5722
6032
|
|
|
@@ -5741,7 +6051,7 @@ class CatalogPlatformModel {
|
|
|
5741
6051
|
static HsnUpsert() {
|
|
5742
6052
|
return Joi.object({
|
|
5743
6053
|
company_id: Joi.number().required(),
|
|
5744
|
-
hs2_code: Joi.string().allow("").allow(null)
|
|
6054
|
+
hs2_code: Joi.string().allow("").allow(null),
|
|
5745
6055
|
hsn_code: Joi.string().allow("").required(),
|
|
5746
6056
|
is_active: Joi.boolean(),
|
|
5747
6057
|
tax1: Joi.number().required(),
|
|
@@ -5795,15 +6105,15 @@ class CatalogPlatformModel {
|
|
|
5795
6105
|
});
|
|
5796
6106
|
}
|
|
5797
6107
|
|
|
5798
|
-
/** @returns {
|
|
5799
|
-
static
|
|
6108
|
+
/** @returns {InventoryBulkRequestSchema} */
|
|
6109
|
+
static InventoryBulkRequestSchema() {
|
|
5800
6110
|
return Joi.object({
|
|
5801
6111
|
batch_id: Joi.string().allow("").required(),
|
|
5802
6112
|
company_id: Joi.number().required(),
|
|
5803
6113
|
sizes: Joi.array()
|
|
5804
6114
|
.items(CatalogPlatformModel.InventoryJobPayload())
|
|
5805
6115
|
.required(),
|
|
5806
|
-
user: Joi.any(),
|
|
6116
|
+
user: Joi.object().pattern(/\S/, Joi.any()),
|
|
5807
6117
|
});
|
|
5808
6118
|
}
|
|
5809
6119
|
|
|
@@ -5815,8 +6125,8 @@ class CatalogPlatformModel {
|
|
|
5815
6125
|
});
|
|
5816
6126
|
}
|
|
5817
6127
|
|
|
5818
|
-
/** @returns {
|
|
5819
|
-
static
|
|
6128
|
+
/** @returns {InventoryCreateRequestSchema} */
|
|
6129
|
+
static InventoryCreateRequestSchema() {
|
|
5820
6130
|
return Joi.object({
|
|
5821
6131
|
data: Joi.array().items(Joi.string().allow("")),
|
|
5822
6132
|
filters: CatalogPlatformModel.InventoryExportFilter().required(),
|
|
@@ -5861,10 +6171,10 @@ class CatalogPlatformModel {
|
|
|
5861
6171
|
});
|
|
5862
6172
|
}
|
|
5863
6173
|
|
|
5864
|
-
/** @returns {
|
|
5865
|
-
static
|
|
6174
|
+
/** @returns {InventoryExportJobListResponseSchema} */
|
|
6175
|
+
static InventoryExportJobListResponseSchema() {
|
|
5866
6176
|
return Joi.object({
|
|
5867
|
-
items: CatalogPlatformModel.
|
|
6177
|
+
items: CatalogPlatformModel.InventoryJobDetailResponseSchema().required(),
|
|
5868
6178
|
page: CatalogPlatformModel.Page(),
|
|
5869
6179
|
});
|
|
5870
6180
|
}
|
|
@@ -5878,8 +6188,8 @@ class CatalogPlatformModel {
|
|
|
5878
6188
|
});
|
|
5879
6189
|
}
|
|
5880
6190
|
|
|
5881
|
-
/** @returns {
|
|
5882
|
-
static
|
|
6191
|
+
/** @returns {InventoryExportRequestSchema} */
|
|
6192
|
+
static InventoryExportRequestSchema() {
|
|
5883
6193
|
return Joi.object({
|
|
5884
6194
|
brand: Joi.array().items(Joi.number()),
|
|
5885
6195
|
store: Joi.array().items(Joi.number()),
|
|
@@ -5887,12 +6197,12 @@ class CatalogPlatformModel {
|
|
|
5887
6197
|
});
|
|
5888
6198
|
}
|
|
5889
6199
|
|
|
5890
|
-
/** @returns {
|
|
5891
|
-
static
|
|
6200
|
+
/** @returns {InventoryExportResponseSchema} */
|
|
6201
|
+
static InventoryExportResponseSchema() {
|
|
5892
6202
|
return Joi.object({
|
|
5893
6203
|
created_by: Joi.string().allow(""),
|
|
5894
6204
|
created_on: Joi.string().allow(""),
|
|
5895
|
-
filters:
|
|
6205
|
+
filters: CatalogPlatformModel.Filters(),
|
|
5896
6206
|
modified_on: Joi.string().allow(""),
|
|
5897
6207
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
5898
6208
|
seller_id: Joi.number().required(),
|
|
@@ -5910,8 +6220,8 @@ class CatalogPlatformModel {
|
|
|
5910
6220
|
});
|
|
5911
6221
|
}
|
|
5912
6222
|
|
|
5913
|
-
/** @returns {
|
|
5914
|
-
static
|
|
6223
|
+
/** @returns {InventoryJobDetailResponseSchema} */
|
|
6224
|
+
static InventoryJobDetailResponseSchema() {
|
|
5915
6225
|
return Joi.object({
|
|
5916
6226
|
cancelled_by: CatalogPlatformModel.UserDetail(),
|
|
5917
6227
|
cancelled_on: Joi.string().allow(""),
|
|
@@ -5985,8 +6295,8 @@ class CatalogPlatformModel {
|
|
|
5985
6295
|
});
|
|
5986
6296
|
}
|
|
5987
6297
|
|
|
5988
|
-
/** @returns {
|
|
5989
|
-
static
|
|
6298
|
+
/** @returns {InventoryRequestSchema} */
|
|
6299
|
+
static InventoryRequestSchema() {
|
|
5990
6300
|
return Joi.object({
|
|
5991
6301
|
company_id: Joi.number().required(),
|
|
5992
6302
|
item: CatalogPlatformModel.ItemQuery().required(),
|
|
@@ -5998,16 +6308,16 @@ class CatalogPlatformModel {
|
|
|
5998
6308
|
static InventoryRequestSchemaV2() {
|
|
5999
6309
|
return Joi.object({
|
|
6000
6310
|
company_id: Joi.number().required(),
|
|
6001
|
-
meta: Joi.any(),
|
|
6311
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
6002
6312
|
payload: Joi.array().items(CatalogPlatformModel.InventoryPayload()),
|
|
6003
6313
|
});
|
|
6004
6314
|
}
|
|
6005
6315
|
|
|
6006
|
-
/** @returns {
|
|
6007
|
-
static
|
|
6316
|
+
/** @returns {InventoryResponseSchema} */
|
|
6317
|
+
static InventoryResponseSchema() {
|
|
6008
6318
|
return Joi.object({
|
|
6009
6319
|
currency: Joi.string().allow(""),
|
|
6010
|
-
identifiers: Joi.any(),
|
|
6320
|
+
identifiers: Joi.object().pattern(/\S/, Joi.any()),
|
|
6011
6321
|
inventory_updated_on: Joi.string().allow(""),
|
|
6012
6322
|
item_id: Joi.number(),
|
|
6013
6323
|
price: Joi.number(),
|
|
@@ -6017,7 +6327,7 @@ class CatalogPlatformModel {
|
|
|
6017
6327
|
sellable_quantity: Joi.number(),
|
|
6018
6328
|
seller_identifier: Joi.string().allow(""),
|
|
6019
6329
|
size: Joi.string().allow(""),
|
|
6020
|
-
store: Joi.any(),
|
|
6330
|
+
store: Joi.object().pattern(/\S/, Joi.any()),
|
|
6021
6331
|
uid: Joi.string().allow(""),
|
|
6022
6332
|
});
|
|
6023
6333
|
}
|
|
@@ -6033,7 +6343,7 @@ class CatalogPlatformModel {
|
|
|
6033
6343
|
/** @returns {InventoryResponsePaginated} */
|
|
6034
6344
|
static InventoryResponsePaginated() {
|
|
6035
6345
|
return Joi.object({
|
|
6036
|
-
items: Joi.array().items(CatalogPlatformModel.
|
|
6346
|
+
items: Joi.array().items(CatalogPlatformModel.InventoryResponseSchema()),
|
|
6037
6347
|
page: CatalogPlatformModel.Page(),
|
|
6038
6348
|
});
|
|
6039
6349
|
}
|
|
@@ -6041,36 +6351,38 @@ class CatalogPlatformModel {
|
|
|
6041
6351
|
/** @returns {InventorySellerIdentifierResponsePaginated} */
|
|
6042
6352
|
static InventorySellerIdentifierResponsePaginated() {
|
|
6043
6353
|
return Joi.object({
|
|
6044
|
-
items: Joi.array().items(
|
|
6354
|
+
items: Joi.array().items(
|
|
6355
|
+
CatalogPlatformModel.InventorySellerResponseSchema()
|
|
6356
|
+
),
|
|
6045
6357
|
page: CatalogPlatformModel.Page(),
|
|
6046
6358
|
});
|
|
6047
6359
|
}
|
|
6048
6360
|
|
|
6049
|
-
/** @returns {
|
|
6050
|
-
static
|
|
6361
|
+
/** @returns {InventorySellerResponseSchema} */
|
|
6362
|
+
static InventorySellerResponseSchema() {
|
|
6051
6363
|
return Joi.object({
|
|
6052
|
-
_custom_json: Joi.any(),
|
|
6364
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
6053
6365
|
added_on_store: Joi.string().allow(""),
|
|
6054
6366
|
brand: CatalogPlatformModel.BrandMeta().required(),
|
|
6055
6367
|
company: CatalogPlatformModel.CompanyMeta().required(),
|
|
6056
6368
|
country_of_origin: Joi.string().allow("").required(),
|
|
6057
6369
|
created_by: Joi.string().allow("").allow(null),
|
|
6058
|
-
dimension: CatalogPlatformModel.
|
|
6370
|
+
dimension: CatalogPlatformModel.DimensionResponseSchema().required(),
|
|
6059
6371
|
expiration_date: Joi.string().allow(""),
|
|
6060
6372
|
fragile: Joi.boolean().required(),
|
|
6061
6373
|
fynd_article_code: Joi.string().allow("").required(),
|
|
6062
6374
|
fynd_item_code: Joi.string().allow("").required(),
|
|
6063
|
-
fynd_meta: Joi.any(),
|
|
6064
|
-
identifier: Joi.any().required(),
|
|
6375
|
+
fynd_meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
6376
|
+
identifier: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
6065
6377
|
is_active: Joi.boolean(),
|
|
6066
6378
|
is_set: Joi.boolean(),
|
|
6067
6379
|
item_id: Joi.number().required(),
|
|
6068
|
-
manufacturer: CatalogPlatformModel.
|
|
6069
|
-
meta: Joi.any().allow(null),
|
|
6380
|
+
manufacturer: CatalogPlatformModel.ManufacturerResponseSchema().required(),
|
|
6381
|
+
meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
6070
6382
|
modified_by: Joi.string().allow("").allow(null),
|
|
6071
6383
|
price: CatalogPlatformModel.PriceMeta().required(),
|
|
6072
6384
|
quantities: CatalogPlatformModel.Quantities(),
|
|
6073
|
-
raw_meta: Joi.any(),
|
|
6385
|
+
raw_meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
6074
6386
|
return_config: CatalogPlatformModel.ReturnConfig1(),
|
|
6075
6387
|
seller_identifier: Joi.string().allow("").required(),
|
|
6076
6388
|
set: CatalogPlatformModel.InventorySet(),
|
|
@@ -6078,13 +6390,13 @@ class CatalogPlatformModel {
|
|
|
6078
6390
|
stage: Joi.string().allow(""),
|
|
6079
6391
|
store: CatalogPlatformModel.StoreMeta().required(),
|
|
6080
6392
|
tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
6081
|
-
tax_identifier:
|
|
6393
|
+
tax_identifier: CatalogPlatformModel.TaxIdentifier(),
|
|
6082
6394
|
total_quantity: Joi.number().required(),
|
|
6083
6395
|
trace_id: Joi.string().allow(""),
|
|
6084
6396
|
track_inventory: Joi.boolean(),
|
|
6085
6397
|
trader: Joi.array().items(CatalogPlatformModel.Trader1()).allow(null, ""),
|
|
6086
6398
|
uid: Joi.string().allow("").required(),
|
|
6087
|
-
weight: CatalogPlatformModel.
|
|
6399
|
+
weight: CatalogPlatformModel.WeightResponseSchema().required(),
|
|
6088
6400
|
});
|
|
6089
6401
|
}
|
|
6090
6402
|
|
|
@@ -6097,32 +6409,32 @@ class CatalogPlatformModel {
|
|
|
6097
6409
|
});
|
|
6098
6410
|
}
|
|
6099
6411
|
|
|
6100
|
-
/** @returns {
|
|
6101
|
-
static
|
|
6412
|
+
/** @returns {InventoryStockResponseSchema} */
|
|
6413
|
+
static InventoryStockResponseSchema() {
|
|
6102
6414
|
return Joi.object({
|
|
6103
|
-
items: Joi.array().items(Joi.any()),
|
|
6415
|
+
items: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
6104
6416
|
page: CatalogPlatformModel.InventoryPage().required(),
|
|
6105
6417
|
});
|
|
6106
6418
|
}
|
|
6107
6419
|
|
|
6108
|
-
/** @returns {
|
|
6109
|
-
static
|
|
6420
|
+
/** @returns {InventoryUpdateResponseSchema} */
|
|
6421
|
+
static InventoryUpdateResponseSchema() {
|
|
6110
6422
|
return Joi.object({
|
|
6111
6423
|
items: Joi.array().items(CatalogPlatformModel.InventoryResponseItem()),
|
|
6112
6424
|
message: Joi.string().allow("").required(),
|
|
6113
6425
|
});
|
|
6114
6426
|
}
|
|
6115
6427
|
|
|
6116
|
-
/** @returns {
|
|
6117
|
-
static
|
|
6428
|
+
/** @returns {InventoryValidationResponseSchema} */
|
|
6429
|
+
static InventoryValidationResponseSchema() {
|
|
6118
6430
|
return Joi.object({
|
|
6119
|
-
data: Joi.any(),
|
|
6431
|
+
data: Joi.object().pattern(/\S/, Joi.any()),
|
|
6120
6432
|
message: Joi.string().allow(""),
|
|
6121
6433
|
});
|
|
6122
6434
|
}
|
|
6123
6435
|
|
|
6124
|
-
/** @returns {
|
|
6125
|
-
static
|
|
6436
|
+
/** @returns {InvoiceCredSchema} */
|
|
6437
|
+
static InvoiceCredSchema() {
|
|
6126
6438
|
return Joi.object({
|
|
6127
6439
|
enabled: Joi.boolean(),
|
|
6128
6440
|
password: Joi.string().allow(""),
|
|
@@ -6130,11 +6442,11 @@ class CatalogPlatformModel {
|
|
|
6130
6442
|
});
|
|
6131
6443
|
}
|
|
6132
6444
|
|
|
6133
|
-
/** @returns {
|
|
6134
|
-
static
|
|
6445
|
+
/** @returns {InvoiceDetailsSchema} */
|
|
6446
|
+
static InvoiceDetailsSchema() {
|
|
6135
6447
|
return Joi.object({
|
|
6136
|
-
e_invoice: CatalogPlatformModel.
|
|
6137
|
-
e_waybill: CatalogPlatformModel.
|
|
6448
|
+
e_invoice: CatalogPlatformModel.InvoiceCredSchema(),
|
|
6449
|
+
e_waybill: CatalogPlatformModel.InvoiceCredSchema(),
|
|
6138
6450
|
});
|
|
6139
6451
|
}
|
|
6140
6452
|
|
|
@@ -6173,13 +6485,13 @@ class CatalogPlatformModel {
|
|
|
6173
6485
|
/** @returns {LimitedProductData} */
|
|
6174
6486
|
static LimitedProductData() {
|
|
6175
6487
|
return Joi.object({
|
|
6176
|
-
attributes: Joi.any(),
|
|
6488
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
6177
6489
|
country_of_origin: Joi.string().allow(""),
|
|
6178
|
-
identifier: Joi.any(),
|
|
6490
|
+
identifier: Joi.object().pattern(/\S/, Joi.any()),
|
|
6179
6491
|
images: Joi.array().items(Joi.string().allow("")),
|
|
6180
6492
|
item_code: Joi.string().allow(""),
|
|
6181
6493
|
name: Joi.string().allow(""),
|
|
6182
|
-
price: Joi.any(),
|
|
6494
|
+
price: Joi.object().pattern(/\S/, Joi.any()),
|
|
6183
6495
|
quantity: Joi.number(),
|
|
6184
6496
|
short_description: Joi.string().allow(""),
|
|
6185
6497
|
sizes: Joi.array().items(Joi.string().allow("")),
|
|
@@ -6191,17 +6503,17 @@ class CatalogPlatformModel {
|
|
|
6191
6503
|
/** @returns {ListSizeGuide} */
|
|
6192
6504
|
static ListSizeGuide() {
|
|
6193
6505
|
return Joi.object({
|
|
6194
|
-
items: Joi.array().items(Joi.any()),
|
|
6195
|
-
page: Joi.any(),
|
|
6506
|
+
items: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
6507
|
+
page: Joi.object().pattern(/\S/, Joi.any()),
|
|
6196
6508
|
});
|
|
6197
6509
|
}
|
|
6198
6510
|
|
|
6199
|
-
/** @returns {
|
|
6200
|
-
static
|
|
6511
|
+
/** @returns {LocationDayWiseSchema} */
|
|
6512
|
+
static LocationDayWiseSchema() {
|
|
6201
6513
|
return Joi.object({
|
|
6202
|
-
closing: CatalogPlatformModel.
|
|
6514
|
+
closing: CatalogPlatformModel.LocationTimingSchema(),
|
|
6203
6515
|
open: Joi.boolean().required(),
|
|
6204
|
-
opening: CatalogPlatformModel.
|
|
6516
|
+
opening: CatalogPlatformModel.LocationTimingSchema(),
|
|
6205
6517
|
weekday: Joi.string().allow("").required(),
|
|
6206
6518
|
});
|
|
6207
6519
|
}
|
|
@@ -6210,20 +6522,19 @@ class CatalogPlatformModel {
|
|
|
6210
6522
|
static LocationIntegrationType() {
|
|
6211
6523
|
return Joi.object({
|
|
6212
6524
|
inventory: Joi.string().allow(""),
|
|
6213
|
-
order: Joi.string().allow(""),
|
|
6214
6525
|
});
|
|
6215
6526
|
}
|
|
6216
6527
|
|
|
6217
|
-
/** @returns {
|
|
6218
|
-
static
|
|
6528
|
+
/** @returns {LocationListSchema} */
|
|
6529
|
+
static LocationListSchema() {
|
|
6219
6530
|
return Joi.object({
|
|
6220
|
-
items: Joi.array().items(CatalogPlatformModel.
|
|
6531
|
+
items: Joi.array().items(CatalogPlatformModel.GetLocationSchema()),
|
|
6221
6532
|
page: CatalogPlatformModel.Page(),
|
|
6222
6533
|
});
|
|
6223
6534
|
}
|
|
6224
6535
|
|
|
6225
|
-
/** @returns {
|
|
6226
|
-
static
|
|
6536
|
+
/** @returns {LocationManagerSchema} */
|
|
6537
|
+
static LocationManagerSchema() {
|
|
6227
6538
|
return Joi.object({
|
|
6228
6539
|
email: Joi.string().allow(""),
|
|
6229
6540
|
mobile_no: CatalogPlatformModel.SellerPhoneNumber().required(),
|
|
@@ -6231,8 +6542,8 @@ class CatalogPlatformModel {
|
|
|
6231
6542
|
});
|
|
6232
6543
|
}
|
|
6233
6544
|
|
|
6234
|
-
/** @returns {
|
|
6235
|
-
static
|
|
6545
|
+
/** @returns {LocationTimingSchema} */
|
|
6546
|
+
static LocationTimingSchema() {
|
|
6236
6547
|
return Joi.object({
|
|
6237
6548
|
hour: Joi.number(),
|
|
6238
6549
|
minute: Joi.number(),
|
|
@@ -6258,8 +6569,8 @@ class CatalogPlatformModel {
|
|
|
6258
6569
|
});
|
|
6259
6570
|
}
|
|
6260
6571
|
|
|
6261
|
-
/** @returns {
|
|
6262
|
-
static
|
|
6572
|
+
/** @returns {ManufacturerResponseSchema} */
|
|
6573
|
+
static ManufacturerResponseSchema() {
|
|
6263
6574
|
return Joi.object({
|
|
6264
6575
|
address: Joi.string().allow("").required(),
|
|
6265
6576
|
is_default: Joi.boolean().required(),
|
|
@@ -6279,9 +6590,11 @@ class CatalogPlatformModel {
|
|
|
6279
6590
|
/** @returns {Media} */
|
|
6280
6591
|
static Media() {
|
|
6281
6592
|
return Joi.object({
|
|
6282
|
-
meta: Joi.any(),
|
|
6593
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
6283
6594
|
type: Joi.string().allow(""),
|
|
6284
6595
|
url: Joi.string().allow("").required(),
|
|
6596
|
+
alt: Joi.string().allow(""),
|
|
6597
|
+
thumbnail: Joi.string().allow(""),
|
|
6285
6598
|
});
|
|
6286
6599
|
}
|
|
6287
6600
|
|
|
@@ -6306,52 +6619,52 @@ class CatalogPlatformModel {
|
|
|
6306
6619
|
/** @returns {Meta} */
|
|
6307
6620
|
static Meta() {
|
|
6308
6621
|
return Joi.object({
|
|
6309
|
-
headers: Joi.any(),
|
|
6622
|
+
headers: Joi.object().pattern(/\S/, Joi.any()),
|
|
6310
6623
|
unit: Joi.string().allow(""),
|
|
6311
|
-
values: Joi.array().items(Joi.any()),
|
|
6624
|
+
values: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
6312
6625
|
});
|
|
6313
6626
|
}
|
|
6314
6627
|
|
|
6315
|
-
/** @returns {
|
|
6316
|
-
static
|
|
6628
|
+
/** @returns {MetaDataListingFilterMetaResponseSchema} */
|
|
6629
|
+
static MetaDataListingFilterMetaResponseSchema() {
|
|
6317
6630
|
return Joi.object({
|
|
6318
6631
|
display: Joi.string().allow(""),
|
|
6319
6632
|
filter_types: Joi.array().items(Joi.string().allow("")),
|
|
6320
6633
|
key: Joi.string().allow(""),
|
|
6321
|
-
units: Joi.array().items(Joi.any()),
|
|
6634
|
+
units: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
6322
6635
|
});
|
|
6323
6636
|
}
|
|
6324
6637
|
|
|
6325
|
-
/** @returns {
|
|
6326
|
-
static
|
|
6638
|
+
/** @returns {MetaDataListingFilterResponseSchema} */
|
|
6639
|
+
static MetaDataListingFilterResponseSchema() {
|
|
6327
6640
|
return Joi.object({
|
|
6328
6641
|
data: Joi.array().items(
|
|
6329
|
-
CatalogPlatformModel.
|
|
6642
|
+
CatalogPlatformModel.MetaDataListingFilterMetaResponseSchema()
|
|
6330
6643
|
),
|
|
6331
6644
|
});
|
|
6332
6645
|
}
|
|
6333
6646
|
|
|
6334
|
-
/** @returns {
|
|
6335
|
-
static
|
|
6647
|
+
/** @returns {MetaDataListingResponseSchema} */
|
|
6648
|
+
static MetaDataListingResponseSchema() {
|
|
6336
6649
|
return Joi.object({
|
|
6337
|
-
filter: CatalogPlatformModel.
|
|
6338
|
-
sort: CatalogPlatformModel.
|
|
6650
|
+
filter: CatalogPlatformModel.MetaDataListingFilterResponseSchema().required(),
|
|
6651
|
+
sort: CatalogPlatformModel.MetaDataListingSortResponseSchema().required(),
|
|
6339
6652
|
});
|
|
6340
6653
|
}
|
|
6341
6654
|
|
|
6342
|
-
/** @returns {
|
|
6343
|
-
static
|
|
6655
|
+
/** @returns {MetaDataListingSortMetaResponseSchema} */
|
|
6656
|
+
static MetaDataListingSortMetaResponseSchema() {
|
|
6344
6657
|
return Joi.object({
|
|
6345
6658
|
display: Joi.string().allow(""),
|
|
6346
6659
|
key: Joi.string().allow(""),
|
|
6347
6660
|
});
|
|
6348
6661
|
}
|
|
6349
6662
|
|
|
6350
|
-
/** @returns {
|
|
6351
|
-
static
|
|
6663
|
+
/** @returns {MetaDataListingSortResponseSchema} */
|
|
6664
|
+
static MetaDataListingSortResponseSchema() {
|
|
6352
6665
|
return Joi.object({
|
|
6353
6666
|
data: Joi.array().items(
|
|
6354
|
-
CatalogPlatformModel.
|
|
6667
|
+
CatalogPlatformModel.MetaDataListingSortMetaResponseSchema()
|
|
6355
6668
|
),
|
|
6356
6669
|
});
|
|
6357
6670
|
}
|
|
@@ -6372,8 +6685,8 @@ class CatalogPlatformModel {
|
|
|
6372
6685
|
});
|
|
6373
6686
|
}
|
|
6374
6687
|
|
|
6375
|
-
/** @returns {
|
|
6376
|
-
static
|
|
6688
|
+
/** @returns {NetQuantityResponseSchema} */
|
|
6689
|
+
static NetQuantityResponseSchema() {
|
|
6377
6690
|
return Joi.object({
|
|
6378
6691
|
unit: Joi.string().allow(""),
|
|
6379
6692
|
value: Joi.number(),
|
|
@@ -6388,8 +6701,8 @@ class CatalogPlatformModel {
|
|
|
6388
6701
|
});
|
|
6389
6702
|
}
|
|
6390
6703
|
|
|
6391
|
-
/** @returns {
|
|
6392
|
-
static
|
|
6704
|
+
/** @returns {OptInPostRequestSchema} */
|
|
6705
|
+
static OptInPostRequestSchema() {
|
|
6393
6706
|
return Joi.object({
|
|
6394
6707
|
brand_ids: Joi.array().items(Joi.number()),
|
|
6395
6708
|
company_id: Joi.number(),
|
|
@@ -6435,26 +6748,26 @@ class CatalogPlatformModel {
|
|
|
6435
6748
|
});
|
|
6436
6749
|
}
|
|
6437
6750
|
|
|
6438
|
-
/** @returns {
|
|
6439
|
-
static
|
|
6751
|
+
/** @returns {OwnerAppItemResponseSchema} */
|
|
6752
|
+
static OwnerAppItemResponseSchema() {
|
|
6440
6753
|
return Joi.object({
|
|
6441
|
-
alt_text: Joi.any(),
|
|
6754
|
+
alt_text: Joi.object().pattern(/\S/, Joi.any()),
|
|
6442
6755
|
is_cod: Joi.boolean(),
|
|
6443
6756
|
is_gift: Joi.boolean(),
|
|
6444
6757
|
moq: CatalogPlatformModel.MOQData(),
|
|
6445
6758
|
seo: CatalogPlatformModel.SEOData(),
|
|
6446
|
-
_custom_json: Joi.any(),
|
|
6759
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
6447
6760
|
_custom_meta: Joi.array().items(CatalogPlatformModel.MetaFields()),
|
|
6448
6761
|
});
|
|
6449
6762
|
}
|
|
6450
6763
|
|
|
6451
|
-
/** @returns {
|
|
6452
|
-
static
|
|
6764
|
+
/** @returns {PTErrorResponseSchema} */
|
|
6765
|
+
static PTErrorResponseSchema() {
|
|
6453
6766
|
return Joi.object({
|
|
6454
6767
|
code: Joi.string().allow(""),
|
|
6455
|
-
errors: Joi.any(),
|
|
6768
|
+
errors: Joi.object().pattern(/\S/, Joi.any()),
|
|
6456
6769
|
message: Joi.string().allow(""),
|
|
6457
|
-
meta: Joi.any(),
|
|
6770
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
6458
6771
|
status: Joi.number(),
|
|
6459
6772
|
});
|
|
6460
6773
|
}
|
|
@@ -6472,8 +6785,8 @@ class CatalogPlatformModel {
|
|
|
6472
6785
|
});
|
|
6473
6786
|
}
|
|
6474
6787
|
|
|
6475
|
-
/** @returns {
|
|
6476
|
-
static
|
|
6788
|
+
/** @returns {PageResponseSchema} */
|
|
6789
|
+
static PageResponseSchema() {
|
|
6477
6790
|
return Joi.object({
|
|
6478
6791
|
current: Joi.string().allow(""),
|
|
6479
6792
|
has_next: Joi.boolean(),
|
|
@@ -6483,18 +6796,6 @@ class CatalogPlatformModel {
|
|
|
6483
6796
|
});
|
|
6484
6797
|
}
|
|
6485
6798
|
|
|
6486
|
-
/** @returns {PageResponse1} */
|
|
6487
|
-
static PageResponse1() {
|
|
6488
|
-
return Joi.object({
|
|
6489
|
-
current: Joi.number(),
|
|
6490
|
-
has_next: Joi.boolean(),
|
|
6491
|
-
has_previous: Joi.boolean(),
|
|
6492
|
-
item_total: Joi.number(),
|
|
6493
|
-
size: Joi.number(),
|
|
6494
|
-
type: Joi.string().allow(""),
|
|
6495
|
-
});
|
|
6496
|
-
}
|
|
6497
|
-
|
|
6498
6799
|
/** @returns {PageResponseType} */
|
|
6499
6800
|
static PageResponseType() {
|
|
6500
6801
|
return Joi.object({
|
|
@@ -6516,23 +6817,13 @@ class CatalogPlatformModel {
|
|
|
6516
6817
|
});
|
|
6517
6818
|
}
|
|
6518
6819
|
|
|
6519
|
-
/** @returns {Price1} */
|
|
6520
|
-
static Price1() {
|
|
6521
|
-
return Joi.object({
|
|
6522
|
-
currency_code: Joi.string().allow(""),
|
|
6523
|
-
currency_symbol: Joi.string().allow(""),
|
|
6524
|
-
max: Joi.number(),
|
|
6525
|
-
min: Joi.number(),
|
|
6526
|
-
});
|
|
6527
|
-
}
|
|
6528
|
-
|
|
6529
6820
|
/** @returns {PriceArticle} */
|
|
6530
6821
|
static PriceArticle() {
|
|
6531
6822
|
return Joi.object({
|
|
6532
6823
|
currency: Joi.string().allow(""),
|
|
6533
6824
|
effective: Joi.number(),
|
|
6534
6825
|
marked: Joi.number(),
|
|
6535
|
-
tp_notes: Joi.any(),
|
|
6826
|
+
tp_notes: Joi.object().pattern(/\S/, Joi.any()),
|
|
6536
6827
|
transfer: Joi.number(),
|
|
6537
6828
|
});
|
|
6538
6829
|
}
|
|
@@ -6543,16 +6834,16 @@ class CatalogPlatformModel {
|
|
|
6543
6834
|
currency: Joi.string().allow("").required(),
|
|
6544
6835
|
effective: Joi.number().required(),
|
|
6545
6836
|
marked: Joi.number().required(),
|
|
6546
|
-
tp_notes: Joi.any(),
|
|
6837
|
+
tp_notes: Joi.object().pattern(/\S/, Joi.any()),
|
|
6547
6838
|
transfer: Joi.number().required(),
|
|
6548
6839
|
updated_at: Joi.string().allow(""),
|
|
6549
6840
|
});
|
|
6550
6841
|
}
|
|
6551
6842
|
|
|
6552
|
-
/** @returns {
|
|
6553
|
-
static
|
|
6843
|
+
/** @returns {ProdcutTemplateCategoriesResponseSchema} */
|
|
6844
|
+
static ProdcutTemplateCategoriesResponseSchema() {
|
|
6554
6845
|
return Joi.object({
|
|
6555
|
-
items: Joi.array().items(CatalogPlatformModel.
|
|
6846
|
+
items: Joi.array().items(CatalogPlatformModel.CategoriesResponseSchema()),
|
|
6556
6847
|
page: CatalogPlatformModel.Page(),
|
|
6557
6848
|
});
|
|
6558
6849
|
}
|
|
@@ -6560,23 +6851,23 @@ class CatalogPlatformModel {
|
|
|
6560
6851
|
/** @returns {Product} */
|
|
6561
6852
|
static Product() {
|
|
6562
6853
|
return Joi.object({
|
|
6563
|
-
_custom_json: Joi.any(),
|
|
6854
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
6564
6855
|
all_company_ids: Joi.array().items(Joi.number()),
|
|
6565
6856
|
all_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
6566
|
-
all_sizes: Joi.array().items(Joi.any()),
|
|
6567
|
-
attributes: Joi.any(),
|
|
6857
|
+
all_sizes: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
6858
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
6568
6859
|
brand: CatalogPlatformModel.Brand(),
|
|
6569
6860
|
brand_uid: Joi.number(),
|
|
6570
|
-
category: Joi.any(),
|
|
6861
|
+
category: Joi.object().pattern(/\S/, Joi.any()),
|
|
6571
6862
|
category_slug: Joi.string().allow(""),
|
|
6572
6863
|
category_uid: Joi.number(),
|
|
6573
6864
|
color: Joi.string().allow(""),
|
|
6574
6865
|
company_id: Joi.number(),
|
|
6575
6866
|
country_of_origin: Joi.string().allow(""),
|
|
6576
|
-
created_by: Joi.any(),
|
|
6867
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
6577
6868
|
created_on: Joi.string().allow(""),
|
|
6578
6869
|
currency: Joi.string().allow(""),
|
|
6579
|
-
custom_order: Joi.any(),
|
|
6870
|
+
custom_order: Joi.object().pattern(/\S/, Joi.any()),
|
|
6580
6871
|
departments: Joi.array().items(Joi.number()),
|
|
6581
6872
|
description: Joi.string().allow(""),
|
|
6582
6873
|
highlights: Joi.array().items(Joi.string().allow("")),
|
|
@@ -6594,42 +6885,42 @@ class CatalogPlatformModel {
|
|
|
6594
6885
|
item_type: Joi.string().allow(""),
|
|
6595
6886
|
l3_mapping: Joi.array().items(Joi.string().allow("")),
|
|
6596
6887
|
media: Joi.array().items(CatalogPlatformModel.Media()),
|
|
6597
|
-
modified_by: Joi.any(),
|
|
6888
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
6598
6889
|
modified_on: Joi.string().allow(""),
|
|
6599
|
-
moq: Joi.any(),
|
|
6890
|
+
moq: Joi.object().pattern(/\S/, Joi.any()),
|
|
6600
6891
|
multi_size: Joi.boolean(),
|
|
6601
6892
|
name: Joi.string().allow(""),
|
|
6602
|
-
net_quantity: CatalogPlatformModel.
|
|
6893
|
+
net_quantity: CatalogPlatformModel.NetQuantityResponseSchema(),
|
|
6603
6894
|
no_of_boxes: Joi.number(),
|
|
6604
6895
|
pending: Joi.string().allow(""),
|
|
6605
6896
|
primary_color: Joi.string().allow(""),
|
|
6606
6897
|
product_group_tag: Joi.array().items(Joi.string().allow("")),
|
|
6607
6898
|
product_publish: CatalogPlatformModel.ProductPublished(),
|
|
6608
|
-
return_config: CatalogPlatformModel.
|
|
6899
|
+
return_config: CatalogPlatformModel.ReturnConfigResponseSchema(),
|
|
6609
6900
|
short_description: Joi.string().allow(""),
|
|
6610
6901
|
size_guide: Joi.string().allow(""),
|
|
6611
|
-
sizes: Joi.array().items(Joi.any()),
|
|
6902
|
+
sizes: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
6612
6903
|
slug: Joi.string().allow(""),
|
|
6613
6904
|
stage: Joi.string().allow(""),
|
|
6614
6905
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
6615
|
-
tax_identifier:
|
|
6616
|
-
teaser_tag: Joi.any(),
|
|
6906
|
+
tax_identifier: CatalogPlatformModel.TaxIdentifier(),
|
|
6907
|
+
teaser_tag: Joi.object().pattern(/\S/, Joi.any()),
|
|
6617
6908
|
template_tag: Joi.string().allow(""),
|
|
6618
6909
|
trader: Joi.array().items(CatalogPlatformModel.Trader()),
|
|
6619
6910
|
uid: Joi.number(),
|
|
6620
|
-
variant_group: Joi.any(),
|
|
6621
|
-
variant_media: Joi.any(),
|
|
6622
|
-
variants: Joi.any(),
|
|
6911
|
+
variant_group: Joi.object().pattern(/\S/, Joi.any()),
|
|
6912
|
+
variant_media: Joi.object().pattern(/\S/, Joi.any()),
|
|
6913
|
+
variants: Joi.object().pattern(/\S/, Joi.any()),
|
|
6623
6914
|
verified_by: CatalogPlatformModel.VerifiedBy(),
|
|
6624
6915
|
verified_on: Joi.string().allow(""),
|
|
6625
6916
|
});
|
|
6626
6917
|
}
|
|
6627
6918
|
|
|
6628
|
-
/** @returns {
|
|
6629
|
-
static
|
|
6919
|
+
/** @returns {ProductAttributesResponseSchema} */
|
|
6920
|
+
static ProductAttributesResponseSchema() {
|
|
6630
6921
|
return Joi.object({
|
|
6631
6922
|
items: Joi.array()
|
|
6632
|
-
.items(CatalogPlatformModel.
|
|
6923
|
+
.items(CatalogPlatformModel.AttributeMasterSchema())
|
|
6633
6924
|
.required(),
|
|
6634
6925
|
});
|
|
6635
6926
|
}
|
|
@@ -6650,20 +6941,22 @@ class CatalogPlatformModel {
|
|
|
6650
6941
|
batch_id: Joi.string().allow(""),
|
|
6651
6942
|
company_id: Joi.number(),
|
|
6652
6943
|
url: Joi.string().allow("").required(),
|
|
6653
|
-
user: Joi.any().required(),
|
|
6944
|
+
user: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
6654
6945
|
});
|
|
6655
6946
|
}
|
|
6656
6947
|
|
|
6657
|
-
/** @returns {
|
|
6658
|
-
static
|
|
6948
|
+
/** @returns {ProductBulkRequestSchema} */
|
|
6949
|
+
static ProductBulkRequestSchema() {
|
|
6659
6950
|
return Joi.object({
|
|
6660
6951
|
cancelled: Joi.number(),
|
|
6661
|
-
cancelled_records: Joi.array().items(
|
|
6952
|
+
cancelled_records: Joi.array().items(
|
|
6953
|
+
Joi.object().pattern(/\S/, Joi.any())
|
|
6954
|
+
),
|
|
6662
6955
|
company_id: Joi.number(),
|
|
6663
6956
|
created_by: CatalogPlatformModel.UserDetail1(),
|
|
6664
6957
|
created_on: Joi.string().allow(""),
|
|
6665
6958
|
failed: Joi.number(),
|
|
6666
|
-
failed_records: Joi.array().items(Joi.any()),
|
|
6959
|
+
failed_records: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
6667
6960
|
file_path: Joi.string().allow(""),
|
|
6668
6961
|
is_active: Joi.boolean(),
|
|
6669
6962
|
modified_by: CatalogPlatformModel.UserDetail1(),
|
|
@@ -6679,7 +6972,7 @@ class CatalogPlatformModel {
|
|
|
6679
6972
|
/** @returns {ProductBulkRequestList} */
|
|
6680
6973
|
static ProductBulkRequestList() {
|
|
6681
6974
|
return Joi.object({
|
|
6682
|
-
items: Joi.
|
|
6975
|
+
items: Joi.any(),
|
|
6683
6976
|
page: CatalogPlatformModel.Page(),
|
|
6684
6977
|
});
|
|
6685
6978
|
}
|
|
@@ -6696,17 +6989,17 @@ class CatalogPlatformModel {
|
|
|
6696
6989
|
});
|
|
6697
6990
|
}
|
|
6698
6991
|
|
|
6699
|
-
/** @returns {
|
|
6700
|
-
static
|
|
6992
|
+
/** @returns {ProductBundleRequestSchema} */
|
|
6993
|
+
static ProductBundleRequestSchema() {
|
|
6701
6994
|
return Joi.object({
|
|
6702
6995
|
choice: Joi.string().allow("").required(),
|
|
6703
6996
|
company_id: Joi.number(),
|
|
6704
|
-
created_by: Joi.any(),
|
|
6997
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
6705
6998
|
created_on: Joi.string().allow(""),
|
|
6706
6999
|
is_active: Joi.boolean().required(),
|
|
6707
7000
|
logo: Joi.string().allow("").allow(null),
|
|
6708
|
-
meta: Joi.any(),
|
|
6709
|
-
modified_by: Joi.any(),
|
|
7001
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
7002
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
6710
7003
|
modified_on: Joi.string().allow(""),
|
|
6711
7004
|
name: Joi.string().allow("").required(),
|
|
6712
7005
|
page_visibility: Joi.array().items(Joi.string().allow("")),
|
|
@@ -6718,15 +7011,15 @@ class CatalogPlatformModel {
|
|
|
6718
7011
|
});
|
|
6719
7012
|
}
|
|
6720
7013
|
|
|
6721
|
-
/** @returns {
|
|
6722
|
-
static
|
|
7014
|
+
/** @returns {ProductBundleUpdateRequestSchema} */
|
|
7015
|
+
static ProductBundleUpdateRequestSchema() {
|
|
6723
7016
|
return Joi.object({
|
|
6724
7017
|
choice: Joi.string().allow("").required(),
|
|
6725
7018
|
company_id: Joi.number(),
|
|
6726
7019
|
is_active: Joi.boolean().required(),
|
|
6727
7020
|
logo: Joi.string().allow("").allow(null),
|
|
6728
|
-
meta: Joi.any(),
|
|
6729
|
-
modified_by: Joi.any(),
|
|
7021
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
7022
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
6730
7023
|
modified_on: Joi.string().allow(""),
|
|
6731
7024
|
name: Joi.string().allow("").required(),
|
|
6732
7025
|
page_visibility: Joi.array().items(Joi.string().allow("")),
|
|
@@ -6741,7 +7034,7 @@ class CatalogPlatformModel {
|
|
|
6741
7034
|
/** @returns {ProductConfigurationDownloads} */
|
|
6742
7035
|
static ProductConfigurationDownloads() {
|
|
6743
7036
|
return Joi.object({
|
|
6744
|
-
data: Joi.array().items(Joi.any()),
|
|
7037
|
+
data: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
6745
7038
|
multivalue: Joi.boolean(),
|
|
6746
7039
|
});
|
|
6747
7040
|
}
|
|
@@ -6749,9 +7042,9 @@ class CatalogPlatformModel {
|
|
|
6749
7042
|
/** @returns {ProductCreateUpdateSchemaV2} */
|
|
6750
7043
|
static ProductCreateUpdateSchemaV2() {
|
|
6751
7044
|
return Joi.object({
|
|
6752
|
-
_custom_json: Joi.any(),
|
|
7045
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
6753
7046
|
action: Joi.string().allow(""),
|
|
6754
|
-
attributes: Joi.any(),
|
|
7047
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
6755
7048
|
brand_uid: Joi.number().required(),
|
|
6756
7049
|
bulk_job_id: Joi.string().allow(""),
|
|
6757
7050
|
category_slug: Joi.string().allow("").required(),
|
|
@@ -6782,7 +7075,9 @@ class CatalogPlatformModel {
|
|
|
6782
7075
|
return_config: CatalogPlatformModel.ReturnConfig().required(),
|
|
6783
7076
|
short_description: Joi.string().allow(""),
|
|
6784
7077
|
size_guide: Joi.string().allow(""),
|
|
6785
|
-
sizes: Joi.array()
|
|
7078
|
+
sizes: Joi.array()
|
|
7079
|
+
.items(Joi.object().pattern(/\S/, Joi.any()))
|
|
7080
|
+
.required(),
|
|
6786
7081
|
slug: Joi.string().allow("").required(),
|
|
6787
7082
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
6788
7083
|
tax_identifier: CatalogPlatformModel.TaxIdentifier().required(),
|
|
@@ -6790,16 +7085,16 @@ class CatalogPlatformModel {
|
|
|
6790
7085
|
template_tag: Joi.string().allow("").required(),
|
|
6791
7086
|
trader: Joi.array().items(CatalogPlatformModel.Trader()).required(),
|
|
6792
7087
|
uid: Joi.number().allow(null),
|
|
6793
|
-
variant_group: Joi.any(),
|
|
6794
|
-
variant_media: Joi.any(),
|
|
6795
|
-
variants: Joi.any(),
|
|
7088
|
+
variant_group: Joi.object().pattern(/\S/, Joi.any()),
|
|
7089
|
+
variant_media: Joi.object().pattern(/\S/, Joi.any()),
|
|
7090
|
+
variants: Joi.object().pattern(/\S/, Joi.any()),
|
|
6796
7091
|
});
|
|
6797
7092
|
}
|
|
6798
7093
|
|
|
6799
7094
|
/** @returns {ProductDetail} */
|
|
6800
7095
|
static ProductDetail() {
|
|
6801
7096
|
return Joi.object({
|
|
6802
|
-
attributes: Joi.any(),
|
|
7097
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
6803
7098
|
brand: CatalogPlatformModel.ProductBrand(),
|
|
6804
7099
|
color: Joi.string().allow(""),
|
|
6805
7100
|
description: Joi.string().allow(""),
|
|
@@ -6814,13 +7109,13 @@ class CatalogPlatformModel {
|
|
|
6814
7109
|
medias: Joi.array().items(CatalogPlatformModel.Media()),
|
|
6815
7110
|
name: Joi.string().allow(""),
|
|
6816
7111
|
product_online_date: Joi.string().allow(""),
|
|
6817
|
-
promo_meta: Joi.any(),
|
|
7112
|
+
promo_meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
6818
7113
|
rating: Joi.number(),
|
|
6819
7114
|
rating_count: Joi.number(),
|
|
6820
7115
|
short_description: Joi.string().allow(""),
|
|
6821
7116
|
similars: Joi.array().items(Joi.string().allow("")),
|
|
6822
7117
|
slug: Joi.string().allow("").required(),
|
|
6823
|
-
teaser_tag: Joi.any(),
|
|
7118
|
+
teaser_tag: Joi.object().pattern(/\S/, Joi.any()),
|
|
6824
7119
|
tryouts: Joi.array().items(Joi.string().allow("")),
|
|
6825
7120
|
type: Joi.string().allow(""),
|
|
6826
7121
|
uid: Joi.number(),
|
|
@@ -6844,11 +7139,11 @@ class CatalogPlatformModel {
|
|
|
6844
7139
|
});
|
|
6845
7140
|
}
|
|
6846
7141
|
|
|
6847
|
-
/** @returns {
|
|
6848
|
-
static
|
|
7142
|
+
/** @returns {ProductDownloadsResponseSchema} */
|
|
7143
|
+
static ProductDownloadsResponseSchema() {
|
|
6849
7144
|
return Joi.object({
|
|
6850
7145
|
items: Joi.array().items(
|
|
6851
|
-
CatalogPlatformModel.
|
|
7146
|
+
CatalogPlatformModel.ProductTemplateExportResponseSchema()
|
|
6852
7147
|
),
|
|
6853
7148
|
page: CatalogPlatformModel.Page(),
|
|
6854
7149
|
});
|
|
@@ -6864,8 +7159,8 @@ class CatalogPlatformModel {
|
|
|
6864
7159
|
});
|
|
6865
7160
|
}
|
|
6866
7161
|
|
|
6867
|
-
/** @returns {
|
|
6868
|
-
static
|
|
7162
|
+
/** @returns {GetQueryFiltersValuesResponseSchema} */
|
|
7163
|
+
static GetQueryFiltersValuesResponseSchema() {
|
|
6869
7164
|
return Joi.object({
|
|
6870
7165
|
values: Joi.array()
|
|
6871
7166
|
.items(CatalogPlatformModel.ProductFiltersValue())
|
|
@@ -6910,50 +7205,8 @@ class CatalogPlatformModel {
|
|
|
6910
7205
|
});
|
|
6911
7206
|
}
|
|
6912
7207
|
|
|
6913
|
-
/** @returns {
|
|
6914
|
-
static
|
|
6915
|
-
return Joi.object({
|
|
6916
|
-
attributes: Joi.any(),
|
|
6917
|
-
brand: CatalogPlatformModel.ProductBrand(),
|
|
6918
|
-
color: Joi.string().allow(""),
|
|
6919
|
-
description: Joi.string().allow(""),
|
|
6920
|
-
discount: Joi.string().allow(""),
|
|
6921
|
-
grouped_attributes: Joi.array().items(
|
|
6922
|
-
CatalogPlatformModel.ProductDetailGroupedAttribute()
|
|
6923
|
-
),
|
|
6924
|
-
has_variant: Joi.boolean(),
|
|
6925
|
-
highlights: Joi.array().items(Joi.string().allow("")),
|
|
6926
|
-
image_nature: Joi.string().allow(""),
|
|
6927
|
-
item_code: Joi.string().allow(""),
|
|
6928
|
-
item_type: Joi.string().allow(""),
|
|
6929
|
-
medias: Joi.array().items(CatalogPlatformModel.Media()),
|
|
6930
|
-
name: Joi.string().allow(""),
|
|
6931
|
-
price: CatalogPlatformModel.ProductListingPrice(),
|
|
6932
|
-
product_online_date: Joi.string().allow(""),
|
|
6933
|
-
promo_meta: Joi.any(),
|
|
6934
|
-
rating: Joi.number(),
|
|
6935
|
-
rating_count: Joi.number(),
|
|
6936
|
-
sellable: Joi.boolean(),
|
|
6937
|
-
short_description: Joi.string().allow(""),
|
|
6938
|
-
similars: Joi.array().items(Joi.string().allow("")),
|
|
6939
|
-
slug: Joi.string().allow("").required(),
|
|
6940
|
-
teaser_tag: Joi.any(),
|
|
6941
|
-
tryouts: Joi.array().items(Joi.string().allow("")),
|
|
6942
|
-
type: Joi.string().allow(""),
|
|
6943
|
-
uid: Joi.number(),
|
|
6944
|
-
});
|
|
6945
|
-
}
|
|
6946
|
-
|
|
6947
|
-
/** @returns {ProductListingPrice} */
|
|
6948
|
-
static ProductListingPrice() {
|
|
6949
|
-
return Joi.object({
|
|
6950
|
-
effective: CatalogPlatformModel.Price1(),
|
|
6951
|
-
marked: CatalogPlatformModel.Price1(),
|
|
6952
|
-
});
|
|
6953
|
-
}
|
|
6954
|
-
|
|
6955
|
-
/** @returns {ProductListingResponse} */
|
|
6956
|
-
static ProductListingResponse() {
|
|
7208
|
+
/** @returns {ProductListingResponseSchema} */
|
|
7209
|
+
static ProductListingResponseSchema() {
|
|
6957
7210
|
return Joi.object({
|
|
6958
7211
|
items: Joi.array().items(CatalogPlatformModel.Product()),
|
|
6959
7212
|
page: CatalogPlatformModel.Page(),
|
|
@@ -6992,16 +7245,16 @@ class CatalogPlatformModel {
|
|
|
6992
7245
|
});
|
|
6993
7246
|
}
|
|
6994
7247
|
|
|
6995
|
-
/** @returns {
|
|
6996
|
-
static
|
|
7248
|
+
/** @returns {ProductReturnConfigSchema} */
|
|
7249
|
+
static ProductReturnConfigSchema() {
|
|
6997
7250
|
return Joi.object({
|
|
6998
7251
|
on_same_store: Joi.boolean(),
|
|
6999
7252
|
store_uid: Joi.number(),
|
|
7000
7253
|
});
|
|
7001
7254
|
}
|
|
7002
7255
|
|
|
7003
|
-
/** @returns {
|
|
7004
|
-
static
|
|
7256
|
+
/** @returns {ProductReturnConfigBaseSchema} */
|
|
7257
|
+
static ProductReturnConfigBaseSchema() {
|
|
7005
7258
|
return Joi.object({
|
|
7006
7259
|
returnable: Joi.boolean().required(),
|
|
7007
7260
|
time: Joi.number().required(),
|
|
@@ -7012,23 +7265,23 @@ class CatalogPlatformModel {
|
|
|
7012
7265
|
/** @returns {ProductSchemaV2} */
|
|
7013
7266
|
static ProductSchemaV2() {
|
|
7014
7267
|
return Joi.object({
|
|
7015
|
-
_custom_json: Joi.any(),
|
|
7268
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
7016
7269
|
all_company_ids: Joi.array().items(Joi.number()),
|
|
7017
7270
|
all_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
7018
|
-
all_sizes: Joi.array().items(Joi.any()),
|
|
7019
|
-
attributes: Joi.any(),
|
|
7271
|
+
all_sizes: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
7272
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
7020
7273
|
brand: CatalogPlatformModel.Brand(),
|
|
7021
7274
|
brand_uid: Joi.number(),
|
|
7022
|
-
category: Joi.any(),
|
|
7275
|
+
category: Joi.object().pattern(/\S/, Joi.any()),
|
|
7023
7276
|
category_slug: Joi.string().allow(""),
|
|
7024
7277
|
category_uid: Joi.number(),
|
|
7025
7278
|
color: Joi.string().allow(""),
|
|
7026
7279
|
company_id: Joi.number(),
|
|
7027
7280
|
country_of_origin: Joi.string().allow(""),
|
|
7028
|
-
created_by: Joi.any(),
|
|
7281
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
7029
7282
|
created_on: Joi.string().allow(""),
|
|
7030
7283
|
currency: Joi.string().allow(""),
|
|
7031
|
-
custom_order: Joi.any(),
|
|
7284
|
+
custom_order: Joi.object().pattern(/\S/, Joi.any()),
|
|
7032
7285
|
departments: Joi.array().items(Joi.number()),
|
|
7033
7286
|
description: Joi.string().allow(""),
|
|
7034
7287
|
highlights: Joi.array().items(Joi.string().allow("")),
|
|
@@ -7046,32 +7299,32 @@ class CatalogPlatformModel {
|
|
|
7046
7299
|
item_type: Joi.string().allow(""),
|
|
7047
7300
|
l3_mapping: Joi.array().items(Joi.string().allow("")),
|
|
7048
7301
|
media: Joi.array().items(CatalogPlatformModel.Media()),
|
|
7049
|
-
modified_by: Joi.any(),
|
|
7302
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
7050
7303
|
modified_on: Joi.string().allow(""),
|
|
7051
|
-
moq: Joi.any(),
|
|
7304
|
+
moq: Joi.object().pattern(/\S/, Joi.any()),
|
|
7052
7305
|
multi_size: Joi.boolean(),
|
|
7053
7306
|
name: Joi.string().allow(""),
|
|
7054
|
-
net_quantity: CatalogPlatformModel.
|
|
7307
|
+
net_quantity: CatalogPlatformModel.NetQuantityResponseSchema(),
|
|
7055
7308
|
no_of_boxes: Joi.number(),
|
|
7056
7309
|
pending: Joi.string().allow(""),
|
|
7057
7310
|
primary_color: Joi.string().allow(""),
|
|
7058
7311
|
product_group_tag: Joi.array().items(Joi.string().allow("")),
|
|
7059
7312
|
product_publish: CatalogPlatformModel.ProductPublish(),
|
|
7060
|
-
return_config: CatalogPlatformModel.
|
|
7313
|
+
return_config: CatalogPlatformModel.ReturnConfigResponseSchema(),
|
|
7061
7314
|
short_description: Joi.string().allow(""),
|
|
7062
7315
|
size_guide: Joi.string().allow(""),
|
|
7063
|
-
sizes: Joi.array().items(Joi.any()),
|
|
7316
|
+
sizes: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
7064
7317
|
slug: Joi.string().allow(""),
|
|
7065
7318
|
stage: Joi.string().allow(""),
|
|
7066
7319
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
7067
|
-
tax_identifier:
|
|
7068
|
-
teaser_tag: Joi.any(),
|
|
7320
|
+
tax_identifier: CatalogPlatformModel.TaxIdentifier(),
|
|
7321
|
+
teaser_tag: Joi.object().pattern(/\S/, Joi.any()),
|
|
7069
7322
|
template_tag: Joi.string().allow(""),
|
|
7070
7323
|
trader: Joi.array().items(CatalogPlatformModel.Trader()),
|
|
7071
7324
|
uid: Joi.number(),
|
|
7072
|
-
variant_group: Joi.any(),
|
|
7073
|
-
variant_media: Joi.any(),
|
|
7074
|
-
variants: Joi.any(),
|
|
7325
|
+
variant_group: Joi.object().pattern(/\S/, Joi.any()),
|
|
7326
|
+
variant_media: Joi.object().pattern(/\S/, Joi.any()),
|
|
7327
|
+
variants: Joi.object().pattern(/\S/, Joi.any()),
|
|
7075
7328
|
verified_by: CatalogPlatformModel.VerifiedBy(),
|
|
7076
7329
|
verified_on: Joi.string().allow(""),
|
|
7077
7330
|
});
|
|
@@ -7085,8 +7338,8 @@ class CatalogPlatformModel {
|
|
|
7085
7338
|
});
|
|
7086
7339
|
}
|
|
7087
7340
|
|
|
7088
|
-
/** @returns {
|
|
7089
|
-
static
|
|
7341
|
+
/** @returns {ProductSizeDeleteDataResponseSchema} */
|
|
7342
|
+
static ProductSizeDeleteDataResponseSchema() {
|
|
7090
7343
|
return Joi.object({
|
|
7091
7344
|
company_id: Joi.number(),
|
|
7092
7345
|
item_id: Joi.number(),
|
|
@@ -7094,10 +7347,10 @@ class CatalogPlatformModel {
|
|
|
7094
7347
|
});
|
|
7095
7348
|
}
|
|
7096
7349
|
|
|
7097
|
-
/** @returns {
|
|
7098
|
-
static
|
|
7350
|
+
/** @returns {ProductSizeDeleteResponseSchema} */
|
|
7351
|
+
static ProductSizeDeleteResponseSchema() {
|
|
7099
7352
|
return Joi.object({
|
|
7100
|
-
data: CatalogPlatformModel.
|
|
7353
|
+
data: CatalogPlatformModel.ProductSizeDeleteDataResponseSchema(),
|
|
7101
7354
|
success: Joi.boolean(),
|
|
7102
7355
|
});
|
|
7103
7356
|
}
|
|
@@ -7111,8 +7364,8 @@ class CatalogPlatformModel {
|
|
|
7111
7364
|
});
|
|
7112
7365
|
}
|
|
7113
7366
|
|
|
7114
|
-
/** @returns {
|
|
7115
|
-
static
|
|
7367
|
+
/** @returns {ProductTagsViewResponseSchema} */
|
|
7368
|
+
static ProductTagsViewResponseSchema() {
|
|
7116
7369
|
return Joi.object({
|
|
7117
7370
|
items: Joi.array().items(Joi.string().allow("")),
|
|
7118
7371
|
});
|
|
@@ -7123,7 +7376,7 @@ class CatalogPlatformModel {
|
|
|
7123
7376
|
return Joi.object({
|
|
7124
7377
|
attributes: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
7125
7378
|
categories: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
7126
|
-
created_by: Joi.any(),
|
|
7379
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
7127
7380
|
created_on: Joi.string().allow(""),
|
|
7128
7381
|
departments: Joi.array().items(Joi.string().allow("")).allow(null, ""),
|
|
7129
7382
|
description: Joi.string().allow(""),
|
|
@@ -7132,7 +7385,7 @@ class CatalogPlatformModel {
|
|
|
7132
7385
|
is_expirable: Joi.boolean().required(),
|
|
7133
7386
|
is_physical: Joi.boolean().required(),
|
|
7134
7387
|
logo: Joi.string().allow(""),
|
|
7135
|
-
modified_by: Joi.any(),
|
|
7388
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
7136
7389
|
modified_on: Joi.string().allow(""),
|
|
7137
7390
|
name: Joi.string().allow(""),
|
|
7138
7391
|
slug: Joi.string().allow("").required(),
|
|
@@ -7143,14 +7396,14 @@ class CatalogPlatformModel {
|
|
|
7143
7396
|
/** @returns {ProductTemplateDownloadsExport} */
|
|
7144
7397
|
static ProductTemplateDownloadsExport() {
|
|
7145
7398
|
return Joi.object({
|
|
7146
|
-
filters: CatalogPlatformModel.
|
|
7399
|
+
filters: CatalogPlatformModel.ProductTemplateExportFilterRequestSchema(),
|
|
7147
7400
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
7148
7401
|
type: Joi.string().allow("").allow(null),
|
|
7149
7402
|
});
|
|
7150
7403
|
}
|
|
7151
7404
|
|
|
7152
|
-
/** @returns {
|
|
7153
|
-
static
|
|
7405
|
+
/** @returns {ProductTemplateExportFilterRequestSchema} */
|
|
7406
|
+
static ProductTemplateExportFilterRequestSchema() {
|
|
7154
7407
|
return Joi.object({
|
|
7155
7408
|
brands: Joi.array().items(Joi.string().allow("")),
|
|
7156
7409
|
catalogue_types: Joi.array().items(Joi.string().allow("")).required(),
|
|
@@ -7160,12 +7413,12 @@ class CatalogPlatformModel {
|
|
|
7160
7413
|
});
|
|
7161
7414
|
}
|
|
7162
7415
|
|
|
7163
|
-
/** @returns {
|
|
7164
|
-
static
|
|
7416
|
+
/** @returns {ProductTemplateExportResponseSchema} */
|
|
7417
|
+
static ProductTemplateExportResponseSchema() {
|
|
7165
7418
|
return Joi.object({
|
|
7166
7419
|
completed_on: Joi.string().allow(""),
|
|
7167
7420
|
created_by: CatalogPlatformModel.UserInfo1(),
|
|
7168
|
-
filters: Joi.any(),
|
|
7421
|
+
filters: Joi.object().pattern(/\S/, Joi.any()),
|
|
7169
7422
|
modified_on: Joi.string().allow(""),
|
|
7170
7423
|
notification_emails: Joi.array().items(Joi.string().allow("")),
|
|
7171
7424
|
seller_id: Joi.number().required(),
|
|
@@ -7188,8 +7441,8 @@ class CatalogPlatformModel {
|
|
|
7188
7441
|
});
|
|
7189
7442
|
}
|
|
7190
7443
|
|
|
7191
|
-
/** @returns {
|
|
7192
|
-
static
|
|
7444
|
+
/** @returns {ProductVariantsResponseSchema} */
|
|
7445
|
+
static ProductVariantsResponseSchema() {
|
|
7193
7446
|
return Joi.object({
|
|
7194
7447
|
page: CatalogPlatformModel.Page(),
|
|
7195
7448
|
variants: Joi.array().items(CatalogPlatformModel.ProductVariants()),
|
|
@@ -7199,35 +7452,35 @@ class CatalogPlatformModel {
|
|
|
7199
7452
|
/** @returns {Properties} */
|
|
7200
7453
|
static Properties() {
|
|
7201
7454
|
return Joi.object({
|
|
7202
|
-
brand_uid: Joi.any(),
|
|
7203
|
-
category_slug: Joi.any(),
|
|
7204
|
-
command: Joi.any(),
|
|
7205
|
-
country_of_origin: Joi.any(),
|
|
7206
|
-
currency: Joi.any(),
|
|
7207
|
-
custom_order: Joi.any(),
|
|
7208
|
-
description: Joi.any(),
|
|
7209
|
-
highlights: Joi.any(),
|
|
7210
|
-
hsn_code: Joi.any(),
|
|
7211
|
-
is_active: Joi.any(),
|
|
7212
|
-
is_dependent: Joi.any(),
|
|
7213
|
-
item_code: Joi.any(),
|
|
7214
|
-
item_type: Joi.any(),
|
|
7215
|
-
media: Joi.any(),
|
|
7216
|
-
multi_size: Joi.any(),
|
|
7217
|
-
name: Joi.any(),
|
|
7218
|
-
no_of_boxes: Joi.any(),
|
|
7219
|
-
product_group_tag: Joi.any(),
|
|
7220
|
-
product_publish: Joi.any(),
|
|
7221
|
-
return_config: Joi.any(),
|
|
7222
|
-
short_description: Joi.any(),
|
|
7223
|
-
size_guide: Joi.any(),
|
|
7224
|
-
sizes: Joi.any(),
|
|
7225
|
-
slug: Joi.any(),
|
|
7226
|
-
tags: Joi.any(),
|
|
7227
|
-
teaser_tag: Joi.any(),
|
|
7228
|
-
trader: Joi.any(),
|
|
7229
|
-
trader_type: Joi.any(),
|
|
7230
|
-
variants: Joi.any(),
|
|
7455
|
+
brand_uid: Joi.object().pattern(/\S/, Joi.any()),
|
|
7456
|
+
category_slug: Joi.object().pattern(/\S/, Joi.any()),
|
|
7457
|
+
command: Joi.object().pattern(/\S/, Joi.any()),
|
|
7458
|
+
country_of_origin: Joi.object().pattern(/\S/, Joi.any()),
|
|
7459
|
+
currency: Joi.object().pattern(/\S/, Joi.any()),
|
|
7460
|
+
custom_order: Joi.object().pattern(/\S/, Joi.any()),
|
|
7461
|
+
description: Joi.object().pattern(/\S/, Joi.any()),
|
|
7462
|
+
highlights: Joi.object().pattern(/\S/, Joi.any()),
|
|
7463
|
+
hsn_code: Joi.object().pattern(/\S/, Joi.any()),
|
|
7464
|
+
is_active: Joi.object().pattern(/\S/, Joi.any()),
|
|
7465
|
+
is_dependent: Joi.object().pattern(/\S/, Joi.any()),
|
|
7466
|
+
item_code: Joi.object().pattern(/\S/, Joi.any()),
|
|
7467
|
+
item_type: Joi.object().pattern(/\S/, Joi.any()),
|
|
7468
|
+
media: Joi.object().pattern(/\S/, Joi.any()),
|
|
7469
|
+
multi_size: Joi.object().pattern(/\S/, Joi.any()),
|
|
7470
|
+
name: Joi.object().pattern(/\S/, Joi.any()),
|
|
7471
|
+
no_of_boxes: Joi.object().pattern(/\S/, Joi.any()),
|
|
7472
|
+
product_group_tag: Joi.object().pattern(/\S/, Joi.any()),
|
|
7473
|
+
product_publish: Joi.object().pattern(/\S/, Joi.any()),
|
|
7474
|
+
return_config: Joi.object().pattern(/\S/, Joi.any()),
|
|
7475
|
+
short_description: Joi.object().pattern(/\S/, Joi.any()),
|
|
7476
|
+
size_guide: Joi.object().pattern(/\S/, Joi.any()),
|
|
7477
|
+
sizes: Joi.object().pattern(/\S/, Joi.any()),
|
|
7478
|
+
slug: Joi.object().pattern(/\S/, Joi.any()),
|
|
7479
|
+
tags: Joi.object().pattern(/\S/, Joi.any()),
|
|
7480
|
+
teaser_tag: Joi.object().pattern(/\S/, Joi.any()),
|
|
7481
|
+
trader: Joi.object().pattern(/\S/, Joi.any()),
|
|
7482
|
+
trader_type: Joi.object().pattern(/\S/, Joi.any()),
|
|
7483
|
+
variants: Joi.object().pattern(/\S/, Joi.any()),
|
|
7231
7484
|
});
|
|
7232
7485
|
}
|
|
7233
7486
|
|
|
@@ -7294,8 +7547,8 @@ class CatalogPlatformModel {
|
|
|
7294
7547
|
});
|
|
7295
7548
|
}
|
|
7296
7549
|
|
|
7297
|
-
/** @returns {
|
|
7298
|
-
static
|
|
7550
|
+
/** @returns {ReturnConfigResponseSchema} */
|
|
7551
|
+
static ReturnConfigResponseSchema() {
|
|
7299
7552
|
return Joi.object({
|
|
7300
7553
|
returnable: Joi.boolean(),
|
|
7301
7554
|
time: Joi.number(),
|
|
@@ -7314,7 +7567,7 @@ class CatalogPlatformModel {
|
|
|
7314
7567
|
/** @returns {ApplicationItemSeoAction} */
|
|
7315
7568
|
static ApplicationItemSeoAction() {
|
|
7316
7569
|
return Joi.object({
|
|
7317
|
-
page: Joi.any(),
|
|
7570
|
+
page: Joi.object().pattern(/\S/, Joi.any()),
|
|
7318
7571
|
type: Joi.string().allow("").required(),
|
|
7319
7572
|
});
|
|
7320
7573
|
}
|
|
@@ -7382,7 +7635,7 @@ class CatalogPlatformModel {
|
|
|
7382
7635
|
/** @returns {SearchKeywordResult} */
|
|
7383
7636
|
static SearchKeywordResult() {
|
|
7384
7637
|
return Joi.object({
|
|
7385
|
-
query: Joi.any().required(),
|
|
7638
|
+
query: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
7386
7639
|
sort_on: Joi.string().allow("").required(),
|
|
7387
7640
|
});
|
|
7388
7641
|
}
|
|
@@ -7399,7 +7652,7 @@ class CatalogPlatformModel {
|
|
|
7399
7652
|
/** @returns {SecondLevelChild} */
|
|
7400
7653
|
static SecondLevelChild() {
|
|
7401
7654
|
return Joi.object({
|
|
7402
|
-
_custom_json: Joi.any(),
|
|
7655
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
7403
7656
|
action: CatalogPlatformModel.Action(),
|
|
7404
7657
|
banners: CatalogPlatformModel.ImageUrls(),
|
|
7405
7658
|
childs: Joi.array().items(CatalogPlatformModel.ThirdLevelChild()),
|
|
@@ -7422,7 +7675,7 @@ class CatalogPlatformModel {
|
|
|
7422
7675
|
return Joi.object({
|
|
7423
7676
|
description: Joi.string().allow(""),
|
|
7424
7677
|
title: Joi.string().allow(""),
|
|
7425
|
-
sitemap: Joi.any(),
|
|
7678
|
+
sitemap: Joi.object().pattern(/\S/, Joi.any()),
|
|
7426
7679
|
breadcrumbs: Joi.array().items(
|
|
7427
7680
|
CatalogPlatformModel.ApplicationItemSeoBreadcrumbs()
|
|
7428
7681
|
),
|
|
@@ -7439,15 +7692,15 @@ class CatalogPlatformModel {
|
|
|
7439
7692
|
});
|
|
7440
7693
|
}
|
|
7441
7694
|
|
|
7442
|
-
/** @returns {
|
|
7443
|
-
static
|
|
7695
|
+
/** @returns {SingleCategoryResponseSchema} */
|
|
7696
|
+
static SingleCategoryResponseSchema() {
|
|
7444
7697
|
return Joi.object({
|
|
7445
7698
|
data: CatalogPlatformModel.Category(),
|
|
7446
7699
|
});
|
|
7447
7700
|
}
|
|
7448
7701
|
|
|
7449
|
-
/** @returns {
|
|
7450
|
-
static
|
|
7702
|
+
/** @returns {SingleProductResponseSchema} */
|
|
7703
|
+
static SingleProductResponseSchema() {
|
|
7451
7704
|
return Joi.object({
|
|
7452
7705
|
data: CatalogPlatformModel.ProductSchemaV2(),
|
|
7453
7706
|
});
|
|
@@ -7470,17 +7723,17 @@ class CatalogPlatformModel {
|
|
|
7470
7723
|
});
|
|
7471
7724
|
}
|
|
7472
7725
|
|
|
7473
|
-
/** @returns {
|
|
7474
|
-
static
|
|
7726
|
+
/** @returns {SizeGuideResponseSchema} */
|
|
7727
|
+
static SizeGuideResponseSchema() {
|
|
7475
7728
|
return Joi.object({
|
|
7476
7729
|
active: Joi.boolean(),
|
|
7477
7730
|
brand_id: Joi.number(),
|
|
7478
7731
|
company_id: Joi.number(),
|
|
7479
|
-
created_by: Joi.any(),
|
|
7732
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
7480
7733
|
created_on: Joi.string().allow(""),
|
|
7481
|
-
guide: Joi.any(),
|
|
7734
|
+
guide: Joi.object().pattern(/\S/, Joi.any()),
|
|
7482
7735
|
id: Joi.string().allow(""),
|
|
7483
|
-
modified_by: Joi.any(),
|
|
7736
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
7484
7737
|
modified_on: Joi.string().allow(""),
|
|
7485
7738
|
name: Joi.string().allow(""),
|
|
7486
7739
|
subtitle: Joi.string().allow(""),
|
|
@@ -7489,8 +7742,8 @@ class CatalogPlatformModel {
|
|
|
7489
7742
|
});
|
|
7490
7743
|
}
|
|
7491
7744
|
|
|
7492
|
-
/** @returns {
|
|
7493
|
-
static
|
|
7745
|
+
/** @returns {StoreAssignResponseSchema} */
|
|
7746
|
+
static StoreAssignResponseSchema() {
|
|
7494
7747
|
return Joi.object({
|
|
7495
7748
|
_id: Joi.string().allow(""),
|
|
7496
7749
|
article_assignment: CatalogPlatformModel.ArticleAssignment1().required(),
|
|
@@ -7498,7 +7751,7 @@ class CatalogPlatformModel {
|
|
|
7498
7751
|
group_id: Joi.string().allow(""),
|
|
7499
7752
|
index: Joi.number(),
|
|
7500
7753
|
item_id: Joi.number().required(),
|
|
7501
|
-
meta: Joi.any(),
|
|
7754
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
7502
7755
|
price_effective: Joi.number(),
|
|
7503
7756
|
price_marked: Joi.number(),
|
|
7504
7757
|
quantity: Joi.number().required(),
|
|
@@ -7507,7 +7760,9 @@ class CatalogPlatformModel {
|
|
|
7507
7760
|
status: Joi.boolean().required(),
|
|
7508
7761
|
store_id: Joi.number(),
|
|
7509
7762
|
store_pincode: Joi.number(),
|
|
7510
|
-
strategy_wise_listing: Joi.array().items(
|
|
7763
|
+
strategy_wise_listing: Joi.array().items(
|
|
7764
|
+
Joi.object().pattern(/\S/, Joi.any())
|
|
7765
|
+
),
|
|
7511
7766
|
uid: Joi.string().allow(""),
|
|
7512
7767
|
});
|
|
7513
7768
|
}
|
|
@@ -7515,18 +7770,20 @@ class CatalogPlatformModel {
|
|
|
7515
7770
|
/** @returns {StoreDetail} */
|
|
7516
7771
|
static StoreDetail() {
|
|
7517
7772
|
return Joi.object({
|
|
7518
|
-
additional_contacts: Joi.array().items(
|
|
7519
|
-
|
|
7773
|
+
additional_contacts: Joi.array().items(
|
|
7774
|
+
Joi.object().pattern(/\S/, Joi.any())
|
|
7775
|
+
),
|
|
7776
|
+
address: Joi.object().pattern(/\S/, Joi.any()),
|
|
7520
7777
|
company_id: Joi.number(),
|
|
7521
7778
|
created_on: Joi.string().allow(""),
|
|
7522
7779
|
display_name: Joi.string().allow(""),
|
|
7523
|
-
documents: Joi.array().items(Joi.any()),
|
|
7524
|
-
manager: Joi.any(),
|
|
7780
|
+
documents: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
7781
|
+
manager: Joi.object().pattern(/\S/, Joi.any()),
|
|
7525
7782
|
modified_on: Joi.string().allow(""),
|
|
7526
7783
|
name: Joi.string().allow(""),
|
|
7527
7784
|
store_code: Joi.string().allow(""),
|
|
7528
7785
|
store_type: Joi.string().allow(""),
|
|
7529
|
-
timing: Joi.any(),
|
|
7786
|
+
timing: Joi.object().pattern(/\S/, Joi.any()),
|
|
7530
7787
|
uid: Joi.number(),
|
|
7531
7788
|
});
|
|
7532
7789
|
}
|
|
@@ -7538,8 +7795,8 @@ class CatalogPlatformModel {
|
|
|
7538
7795
|
});
|
|
7539
7796
|
}
|
|
7540
7797
|
|
|
7541
|
-
/** @returns {
|
|
7542
|
-
static
|
|
7798
|
+
/** @returns {SuccessResponseSchema} */
|
|
7799
|
+
static SuccessResponseSchema() {
|
|
7543
7800
|
return Joi.object({
|
|
7544
7801
|
success: Joi.boolean(),
|
|
7545
7802
|
});
|
|
@@ -7603,20 +7860,20 @@ class CatalogPlatformModel {
|
|
|
7603
7860
|
static TemplateValidationData() {
|
|
7604
7861
|
return Joi.object({
|
|
7605
7862
|
global_validation: CatalogPlatformModel.GlobalValidation(),
|
|
7606
|
-
template_validation: Joi.any(),
|
|
7863
|
+
template_validation: Joi.object().pattern(/\S/, Joi.any()),
|
|
7607
7864
|
});
|
|
7608
7865
|
}
|
|
7609
7866
|
|
|
7610
|
-
/** @returns {
|
|
7611
|
-
static
|
|
7867
|
+
/** @returns {TemplatesResponseSchema} */
|
|
7868
|
+
static TemplatesResponseSchema() {
|
|
7612
7869
|
return Joi.object({
|
|
7613
7870
|
items: CatalogPlatformModel.ProductTemplate(),
|
|
7614
7871
|
page: CatalogPlatformModel.Page(),
|
|
7615
7872
|
});
|
|
7616
7873
|
}
|
|
7617
7874
|
|
|
7618
|
-
/** @returns {
|
|
7619
|
-
static
|
|
7875
|
+
/** @returns {TemplatesValidationResponseSchema} */
|
|
7876
|
+
static TemplatesValidationResponseSchema() {
|
|
7620
7877
|
return Joi.object({
|
|
7621
7878
|
data: CatalogPlatformModel.TemplateValidationData(),
|
|
7622
7879
|
template_details: CatalogPlatformModel.TemplateDetails(),
|
|
@@ -7626,10 +7883,10 @@ class CatalogPlatformModel {
|
|
|
7626
7883
|
/** @returns {ThirdLevelChild} */
|
|
7627
7884
|
static ThirdLevelChild() {
|
|
7628
7885
|
return Joi.object({
|
|
7629
|
-
_custom_json: Joi.any(),
|
|
7886
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
7630
7887
|
action: CatalogPlatformModel.Action(),
|
|
7631
7888
|
banners: CatalogPlatformModel.ImageUrls(),
|
|
7632
|
-
childs: Joi.array().items(Joi.any()),
|
|
7889
|
+
childs: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
7633
7890
|
name: Joi.string().allow(""),
|
|
7634
7891
|
slug: Joi.string().allow(""),
|
|
7635
7892
|
uid: Joi.number(),
|
|
@@ -7666,8 +7923,8 @@ class CatalogPlatformModel {
|
|
|
7666
7923
|
/** @returns {UpdateCollection} */
|
|
7667
7924
|
static UpdateCollection() {
|
|
7668
7925
|
return Joi.object({
|
|
7669
|
-
_custom_json: Joi.any(),
|
|
7670
|
-
_locale_language: Joi.any(),
|
|
7926
|
+
_custom_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
7927
|
+
_locale_language: Joi.object().pattern(/\S/, Joi.any()),
|
|
7671
7928
|
_schedule: CatalogPlatformModel.CollectionSchedule(),
|
|
7672
7929
|
allow_facets: Joi.boolean(),
|
|
7673
7930
|
allow_sort: Joi.boolean(),
|
|
@@ -7677,7 +7934,7 @@ class CatalogPlatformModel {
|
|
|
7677
7934
|
is_active: Joi.boolean(),
|
|
7678
7935
|
is_visible: Joi.boolean(),
|
|
7679
7936
|
logo: CatalogPlatformModel.CollectionImage(),
|
|
7680
|
-
meta: Joi.any(),
|
|
7937
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
7681
7938
|
modified_by: Joi.string().allow("").allow(null),
|
|
7682
7939
|
name: Joi.string().allow(""),
|
|
7683
7940
|
priority: Joi.number(),
|
|
@@ -7692,15 +7949,15 @@ class CatalogPlatformModel {
|
|
|
7692
7949
|
});
|
|
7693
7950
|
}
|
|
7694
7951
|
|
|
7695
|
-
/** @returns {
|
|
7696
|
-
static
|
|
7952
|
+
/** @returns {UpdateSearchConfigurationRequestSchema} */
|
|
7953
|
+
static UpdateSearchConfigurationRequestSchema() {
|
|
7697
7954
|
return Joi.object({
|
|
7698
7955
|
application_id: Joi.string().allow("").required(),
|
|
7699
7956
|
company_id: Joi.number().required(),
|
|
7700
|
-
created_by: CatalogPlatformModel.
|
|
7957
|
+
created_by: CatalogPlatformModel.UserSchema(),
|
|
7701
7958
|
created_on: Joi.string().allow(""),
|
|
7702
7959
|
is_proximity_enabled: Joi.boolean(),
|
|
7703
|
-
modified_by: CatalogPlatformModel.
|
|
7960
|
+
modified_by: CatalogPlatformModel.UserSchema(),
|
|
7704
7961
|
modified_on: Joi.string().allow(""),
|
|
7705
7962
|
proximity: Joi.number(),
|
|
7706
7963
|
searchable_attributes: Joi.array().items(
|
|
@@ -7709,15 +7966,15 @@ class CatalogPlatformModel {
|
|
|
7709
7966
|
});
|
|
7710
7967
|
}
|
|
7711
7968
|
|
|
7712
|
-
/** @returns {
|
|
7713
|
-
static
|
|
7969
|
+
/** @returns {UpdateSearchConfigurationResponseSchema} */
|
|
7970
|
+
static UpdateSearchConfigurationResponseSchema() {
|
|
7714
7971
|
return Joi.object({
|
|
7715
7972
|
success: Joi.boolean(),
|
|
7716
7973
|
});
|
|
7717
7974
|
}
|
|
7718
7975
|
|
|
7719
|
-
/** @returns {
|
|
7720
|
-
static
|
|
7976
|
+
/** @returns {CreateMarketplaceOptinResponseSchema} */
|
|
7977
|
+
static CreateMarketplaceOptinResponseSchema() {
|
|
7721
7978
|
return Joi.object({
|
|
7722
7979
|
store_ids: Joi.array().items(Joi.number()),
|
|
7723
7980
|
brand_ids: Joi.array().items(Joi.number()),
|
|
@@ -7779,8 +8036,8 @@ class CatalogPlatformModel {
|
|
|
7779
8036
|
});
|
|
7780
8037
|
}
|
|
7781
8038
|
|
|
7782
|
-
/** @returns {
|
|
7783
|
-
static
|
|
8039
|
+
/** @returns {UserSchema} */
|
|
8040
|
+
static UserSchema() {
|
|
7784
8041
|
return Joi.object({
|
|
7785
8042
|
contact: Joi.string().allow(""),
|
|
7786
8043
|
user_id: Joi.string().allow(""),
|
|
@@ -7839,13 +8096,13 @@ class CatalogPlatformModel {
|
|
|
7839
8096
|
active: Joi.boolean(),
|
|
7840
8097
|
brand_id: Joi.number(),
|
|
7841
8098
|
company_id: Joi.number(),
|
|
7842
|
-
created_by: Joi.any(),
|
|
8099
|
+
created_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
7843
8100
|
created_on: Joi.string().allow(""),
|
|
7844
8101
|
description: Joi.string().allow(""),
|
|
7845
8102
|
guide: CatalogPlatformModel.Guide(),
|
|
7846
8103
|
id: Joi.string().allow(""),
|
|
7847
8104
|
image: Joi.string().allow(""),
|
|
7848
|
-
modified_by: Joi.any(),
|
|
8105
|
+
modified_by: Joi.object().pattern(/\S/, Joi.any()),
|
|
7849
8106
|
modified_on: Joi.string().allow(""),
|
|
7850
8107
|
name: Joi.string().allow("").required(),
|
|
7851
8108
|
subtitle: Joi.string().allow(""),
|
|
@@ -7862,8 +8119,8 @@ class CatalogPlatformModel {
|
|
|
7862
8119
|
});
|
|
7863
8120
|
}
|
|
7864
8121
|
|
|
7865
|
-
/** @returns {
|
|
7866
|
-
static
|
|
8122
|
+
/** @returns {WeightResponseSchema} */
|
|
8123
|
+
static WeightResponseSchema() {
|
|
7867
8124
|
return Joi.object({
|
|
7868
8125
|
is_default: Joi.boolean().required(),
|
|
7869
8126
|
shipping: Joi.number().required(),
|
|
@@ -7887,6 +8144,14 @@ class CatalogPlatformModel {
|
|
|
7887
8144
|
});
|
|
7888
8145
|
}
|
|
7889
8146
|
|
|
8147
|
+
/** @returns {ModifiedBy} */
|
|
8148
|
+
static ModifiedBy() {
|
|
8149
|
+
return Joi.object({
|
|
8150
|
+
username: Joi.string().allow(""),
|
|
8151
|
+
user_id: Joi.string().allow(""),
|
|
8152
|
+
});
|
|
8153
|
+
}
|
|
8154
|
+
|
|
7890
8155
|
/** @returns {Marketplaces} */
|
|
7891
8156
|
static Marketplaces() {
|
|
7892
8157
|
return Joi.object({
|
|
@@ -7913,8 +8178,8 @@ class CatalogPlatformModel {
|
|
|
7913
8178
|
});
|
|
7914
8179
|
}
|
|
7915
8180
|
|
|
7916
|
-
/** @returns {
|
|
7917
|
-
static
|
|
8181
|
+
/** @returns {UpdateMarketplaceOptinRequestSchema} */
|
|
8182
|
+
static UpdateMarketplaceOptinRequestSchema() {
|
|
7918
8183
|
return Joi.object({
|
|
7919
8184
|
brand_ids: Joi.array().items(Joi.number()),
|
|
7920
8185
|
company_id: Joi.number(),
|
|
@@ -7925,8 +8190,8 @@ class CatalogPlatformModel {
|
|
|
7925
8190
|
});
|
|
7926
8191
|
}
|
|
7927
8192
|
|
|
7928
|
-
/** @returns {
|
|
7929
|
-
static
|
|
8193
|
+
/** @returns {UpdateMarketplaceOptinResponseSchema} */
|
|
8194
|
+
static UpdateMarketplaceOptinResponseSchema() {
|
|
7930
8195
|
return Joi.object({
|
|
7931
8196
|
brand_ids: Joi.array().items(Joi.number()),
|
|
7932
8197
|
company_id: Joi.number(),
|
|
@@ -7940,6 +8205,28 @@ class CatalogPlatformModel {
|
|
|
7940
8205
|
});
|
|
7941
8206
|
}
|
|
7942
8207
|
|
|
8208
|
+
/** @returns {Identifier} */
|
|
8209
|
+
static Identifier() {
|
|
8210
|
+
return Joi.object({
|
|
8211
|
+
ean: Joi.string().allow(""),
|
|
8212
|
+
sku_code: Joi.string().allow(""),
|
|
8213
|
+
alu: Joi.string().allow(""),
|
|
8214
|
+
upc: Joi.string().allow(""),
|
|
8215
|
+
isbn: Joi.string().allow(""),
|
|
8216
|
+
});
|
|
8217
|
+
}
|
|
8218
|
+
|
|
8219
|
+
/** @returns {Filters} */
|
|
8220
|
+
static Filters() {
|
|
8221
|
+
return Joi.object({
|
|
8222
|
+
brands: Joi.array().items(Joi.string().allow("")),
|
|
8223
|
+
from_date: Joi.string().allow(""),
|
|
8224
|
+
quantity: CatalogPlatformModel.InventoryExportQuantityFilter(),
|
|
8225
|
+
stores: Joi.array().items(Joi.string().allow("")),
|
|
8226
|
+
to_date: Joi.string().allow(""),
|
|
8227
|
+
});
|
|
8228
|
+
}
|
|
8229
|
+
|
|
7943
8230
|
/** @returns {ActionPage} */
|
|
7944
8231
|
static ActionPage() {
|
|
7945
8232
|
return Joi.object({
|
|
@@ -7956,6 +8243,113 @@ class CatalogPlatformModel {
|
|
|
7956
8243
|
});
|
|
7957
8244
|
}
|
|
7958
8245
|
|
|
8246
|
+
/** @returns {ProductListingPrice} */
|
|
8247
|
+
static ProductListingPrice() {
|
|
8248
|
+
return Joi.object({
|
|
8249
|
+
effective: CatalogPlatformModel.Price1(),
|
|
8250
|
+
marked: CatalogPlatformModel.Price1(),
|
|
8251
|
+
selling: CatalogPlatformModel.Price1(),
|
|
8252
|
+
});
|
|
8253
|
+
}
|
|
8254
|
+
|
|
8255
|
+
/** @returns {Price1} */
|
|
8256
|
+
static Price1() {
|
|
8257
|
+
return Joi.object({
|
|
8258
|
+
currency_code: CatalogPlatformModel.CurrencyCodeEnum(),
|
|
8259
|
+
currency_symbol: Joi.string().allow(""),
|
|
8260
|
+
max: Joi.number(),
|
|
8261
|
+
min: Joi.number(),
|
|
8262
|
+
});
|
|
8263
|
+
}
|
|
8264
|
+
|
|
8265
|
+
/** @returns {MultiCategoriesSchema} */
|
|
8266
|
+
static MultiCategoriesSchema() {
|
|
8267
|
+
return Joi.object({
|
|
8268
|
+
l1: Joi.number(),
|
|
8269
|
+
l2: Joi.number(),
|
|
8270
|
+
l3: Joi.number(),
|
|
8271
|
+
is_active: Joi.boolean(),
|
|
8272
|
+
department: Joi.number(),
|
|
8273
|
+
});
|
|
8274
|
+
}
|
|
8275
|
+
|
|
8276
|
+
/** @returns {CustomMeta} */
|
|
8277
|
+
static CustomMeta() {
|
|
8278
|
+
return Joi.object({
|
|
8279
|
+
key: Joi.string().allow("").required(),
|
|
8280
|
+
value: Joi.string().allow("").required(),
|
|
8281
|
+
});
|
|
8282
|
+
}
|
|
8283
|
+
|
|
8284
|
+
/**
|
|
8285
|
+
* Enum: order Used By: Catalog
|
|
8286
|
+
*
|
|
8287
|
+
* @returns {order}
|
|
8288
|
+
*/
|
|
8289
|
+
static order() {
|
|
8290
|
+
return Joi.string().valid(
|
|
8291
|
+
"browntape_v2",
|
|
8292
|
+
|
|
8293
|
+
"easyops",
|
|
8294
|
+
|
|
8295
|
+
"holisol",
|
|
8296
|
+
|
|
8297
|
+
"logic",
|
|
8298
|
+
|
|
8299
|
+
"tcnss",
|
|
8300
|
+
|
|
8301
|
+
"increff",
|
|
8302
|
+
|
|
8303
|
+
"liberty",
|
|
8304
|
+
|
|
8305
|
+
"browntape",
|
|
8306
|
+
|
|
8307
|
+
"easyecom",
|
|
8308
|
+
|
|
8309
|
+
"major_brands",
|
|
8310
|
+
|
|
8311
|
+
"jiopos",
|
|
8312
|
+
|
|
8313
|
+
"jockey",
|
|
8314
|
+
|
|
8315
|
+
"omsguru",
|
|
8316
|
+
|
|
8317
|
+
"pulse",
|
|
8318
|
+
|
|
8319
|
+
"sellerware",
|
|
8320
|
+
|
|
8321
|
+
"unicommerce",
|
|
8322
|
+
|
|
8323
|
+
"ethos",
|
|
8324
|
+
|
|
8325
|
+
"sarasuole",
|
|
8326
|
+
|
|
8327
|
+
"vajor",
|
|
8328
|
+
|
|
8329
|
+
"vinculum",
|
|
8330
|
+
|
|
8331
|
+
"jiomart_pos",
|
|
8332
|
+
|
|
8333
|
+
"rbl_sap",
|
|
8334
|
+
|
|
8335
|
+
"ginesys-pos",
|
|
8336
|
+
|
|
8337
|
+
"fyndpos",
|
|
8338
|
+
|
|
8339
|
+
"jiopos_openapi",
|
|
8340
|
+
|
|
8341
|
+
"jiopos_hamleys",
|
|
8342
|
+
|
|
8343
|
+
"westelm",
|
|
8344
|
+
|
|
8345
|
+
"rbl_sap_furniture",
|
|
8346
|
+
|
|
8347
|
+
"vinculum_v2",
|
|
8348
|
+
|
|
8349
|
+
"wizapp"
|
|
8350
|
+
);
|
|
8351
|
+
}
|
|
8352
|
+
|
|
7959
8353
|
/**
|
|
7960
8354
|
* Enum: PageType Used By: Catalog
|
|
7961
8355
|
*
|
|
@@ -8055,7 +8449,24 @@ class CatalogPlatformModel {
|
|
|
8055
8449
|
|
|
8056
8450
|
"return-policy",
|
|
8057
8451
|
|
|
8058
|
-
"order-status"
|
|
8452
|
+
"order-status",
|
|
8453
|
+
|
|
8454
|
+
"locate-us"
|
|
8455
|
+
);
|
|
8456
|
+
}
|
|
8457
|
+
|
|
8458
|
+
/**
|
|
8459
|
+
* Enum: CurrencyCodeEnum Used By: Catalog
|
|
8460
|
+
*
|
|
8461
|
+
* @returns {CurrencyCodeEnum}
|
|
8462
|
+
*/
|
|
8463
|
+
static CurrencyCodeEnum() {
|
|
8464
|
+
return Joi.string().valid(
|
|
8465
|
+
"INR",
|
|
8466
|
+
|
|
8467
|
+
"USD",
|
|
8468
|
+
|
|
8469
|
+
"EUR"
|
|
8059
8470
|
);
|
|
8060
8471
|
}
|
|
8061
8472
|
}
|