@gofynd/fdk-client-javascript 1.0.2 → 1.0.3
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/documentation/application/CART.md +5934 -4502
- package/documentation/application/CATALOG.md +6338 -7245
- package/documentation/application/COMMON.md +95 -222
- package/documentation/application/COMMUNICATION.md +106 -186
- package/documentation/application/CONFIGURATION.md +903 -1597
- package/documentation/application/CONTENT.md +557 -1279
- package/documentation/application/FILESTORAGE.md +84 -220
- package/documentation/application/LEAD.md +314 -660
- package/documentation/application/LOGISTIC.md +229 -305
- package/documentation/application/ORDER.md +642 -1137
- package/documentation/application/PAYMENT.md +2285 -3031
- package/documentation/application/POSCART.md +6079 -4642
- package/documentation/application/REWARDS.md +94 -248
- package/documentation/application/SHARE.md +152 -250
- package/documentation/application/THEME.md +952 -1235
- package/documentation/application/USER.md +1228 -1765
- package/documentation/platform/ANALYTICS.md +207 -349
- package/documentation/platform/AUDITTRAIL.md +121 -204
- package/documentation/platform/BILLING.md +865 -1376
- package/documentation/platform/CART.md +2814 -3662
- package/documentation/platform/CATALOG.md +14453 -17192
- package/documentation/platform/COMMON.md +95 -222
- package/documentation/platform/COMMUNICATION.md +1632 -2380
- package/documentation/platform/COMPANYPROFILE.md +572 -957
- package/documentation/platform/CONFIGURATION.md +3050 -4073
- package/documentation/platform/CONTENT.md +3438 -4172
- package/documentation/platform/DISCOUNT.md +140 -236
- package/documentation/platform/FILESTORAGE.md +187 -323
- package/documentation/platform/INVENTORY.md +268 -911
- package/documentation/platform/LEAD.md +2195 -2541
- package/documentation/platform/ORDER.md +3400 -5361
- package/documentation/platform/PARTNER.md +9 -36
- package/documentation/platform/PAYMENT.md +903 -1213
- package/documentation/platform/REWARDS.md +183 -347
- package/documentation/platform/SHARE.md +120 -213
- package/documentation/platform/THEME.md +12956 -13239
- package/documentation/platform/USER.md +975 -1120
- package/documentation/platform/WEBHOOK.md +78 -184
- package/documentation/public/CONFIGURATION.md +95 -222
- package/documentation/public/INVENTORY.md +100 -282
- package/documentation/public/WEBHOOK.md +27 -133
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +567 -567
- package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
- package/sdk/application/Cart/CartApplicationModel.js +489 -886
- package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
- package/sdk/application/Cart/CartApplicationValidator.js +98 -98
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
- package/sdk/application/Catalog/CatalogApplicationClient.js +1036 -1036
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +677 -1243
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
- package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
- package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
- package/sdk/application/Common/CommonApplicationClient.js +38 -38
- package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
- package/sdk/application/Common/CommonApplicationModel.js +83 -160
- package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
- package/sdk/application/Common/CommonApplicationValidator.js +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
- package/sdk/application/Communication/CommunicationApplicationClient.js +26 -26
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +330 -330
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
- package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
- package/sdk/application/Content/ContentApplicationClient.js +191 -191
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
- package/sdk/application/Content/ContentApplicationModel.js +467 -884
- package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
- package/sdk/application/Content/ContentApplicationValidator.js +24 -24
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +59 -59
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
- package/sdk/application/Lead/LeadApplicationClient.js +100 -100
- package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
- package/sdk/application/Lead/LeadApplicationModel.js +267 -474
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -43
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
- package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
- package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
- package/sdk/application/Order/OrderApplicationClient.js +232 -232
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +352 -656
- package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
- package/sdk/application/Order/OrderApplicationValidator.js +28 -28
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
- package/sdk/application/Payment/PaymentApplicationClient.js +739 -739
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
- package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
- package/sdk/application/PosCart/PosCartApplicationClient.js +617 -617
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
- package/sdk/application/PosCart/PosCartApplicationModel.js +475 -871
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
- package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
- package/sdk/application/Rewards/RewardsApplicationClient.js +112 -112
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
- package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
- package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
- package/sdk/application/Share/ShareApplicationClient.js +84 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
- package/sdk/application/Share/ShareApplicationModel.js +63 -123
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationValidator.js +12 -12
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +31 -31
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
- package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
- package/sdk/application/User/UserApplicationClient.d.ts +280 -280
- package/sdk/application/User/UserApplicationClient.js +581 -581
- package/sdk/application/User/UserApplicationModel.d.ts +79 -72
- package/sdk/application/User/UserApplicationModel.js +440 -689
- package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
- package/sdk/application/User/UserApplicationValidator.js +89 -89
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +179 -179
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +41 -41
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
- package/sdk/platform/Billing/BillingPlatformClient.js +181 -181
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
- package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
- package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +168 -168
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +553 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
- package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
- package/sdk/platform/Cart/CartPlatformModel.js +671 -1205
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1525 -1525
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +174 -174
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +682 -682
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1557 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2127 -3904
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -229
- package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformClient.js +41 -41
- package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformModel.js +83 -160
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +943 -943
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +212 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +615 -552
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +342 -342
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +534 -534
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1324 -1324
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -50
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +156 -156
- package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
- package/sdk/platform/Content/ContentPlatformModel.js +484 -907
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
- package/sdk/platform/Discount/DiscountPlatformClient.js +216 -216
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +24 -24
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +58 -58
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +52 -52
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +123 -123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +228 -228
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
- package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +200 -200
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
- package/sdk/platform/Lead/LeadPlatformClient.js +212 -212
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
- package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
- package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +65 -65
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
- package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
- package/sdk/platform/Order/OrderPlatformClient.js +1035 -1035
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
- package/sdk/platform/Order/OrderPlatformModel.js +1574 -2861
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +160 -160
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +57 -57
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +167 -167
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
- package/sdk/platform/Payment/PaymentPlatformClient.js +153 -153
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
- package/sdk/platform/PlatformApplicationClient.js +1584 -13899
- package/sdk/platform/PlatformClient.d.ts +7965 -7885
- package/sdk/platform/PlatformClient.js +8672 -10105
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +83 -83
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +275 -275
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
- package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +59 -59
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
- package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
- package/sdk/platform/Share/SharePlatformModel.js +60 -118
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +310 -310
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
- package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
- package/sdk/platform/User/UserPlatformApplicationClient.js +505 -166
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
- package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
- package/sdk/platform/User/UserPlatformModel.js +440 -689
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
- package/sdk/platform/Webhook/WebhookPlatformClient.js +88 -88
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
- package/sdk/public/Configuration/ConfigurationPublicClient.js +38 -38
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
- package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
- package/sdk/public/Inventory/InventoryPublicClient.js +113 -113
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
- package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
- package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- package/tests/application/catalog.spec.js +7 -0
|
@@ -1,1605 +1,1039 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
class CatalogModel {
|
|
4
|
-
static
|
|
5
|
-
return Joi.object({
|
|
6
|
-
source: Joi.string().allow(""),
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
static Media() {
|
|
4
|
+
static ApplicationItemMOQ() {
|
|
11
5
|
return Joi.object({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
alt: Joi.string().allow(""),
|
|
17
|
-
|
|
18
|
-
type: Joi.string().allow(""),
|
|
6
|
+
increment_unit: Joi.number(),
|
|
7
|
+
maximum: Joi.number(),
|
|
8
|
+
minimum: Joi.number(),
|
|
19
9
|
});
|
|
20
10
|
}
|
|
21
|
-
|
|
22
|
-
static ProductListingActionPage() {
|
|
11
|
+
static ApplicationItemSEO() {
|
|
23
12
|
return Joi.object({
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
type: Joi.string().allow(""),
|
|
27
|
-
|
|
28
|
-
params: Joi.any(),
|
|
13
|
+
description: Joi.any(),
|
|
14
|
+
title: Joi.any(),
|
|
29
15
|
});
|
|
30
16
|
}
|
|
31
|
-
|
|
32
|
-
static ProductListingAction() {
|
|
17
|
+
static ApplicationStoreListing() {
|
|
33
18
|
return Joi.object({
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
filters: Joi.array().items(CatalogModel.StoreDepartments()),
|
|
20
|
+
items: Joi.array().items(CatalogModel.AppStore()),
|
|
21
|
+
page: CatalogModel.Page(),
|
|
37
22
|
});
|
|
38
23
|
}
|
|
39
|
-
|
|
40
|
-
static ProductBrand() {
|
|
24
|
+
static AppStore() {
|
|
41
25
|
return Joi.object({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
26
|
+
address: CatalogModel.StoreAddressSerializer(),
|
|
27
|
+
company: CatalogModel.CompanyStore(),
|
|
28
|
+
contact_numbers: Joi.array().items(CatalogModel.SellerPhoneNumber()),
|
|
29
|
+
departments: Joi.array().items(CatalogModel.StoreDepartments()),
|
|
30
|
+
manager: CatalogModel.StoreManagerSerializer(),
|
|
46
31
|
name: Joi.string().allow(""),
|
|
47
|
-
|
|
48
32
|
uid: Joi.number(),
|
|
49
|
-
|
|
50
|
-
description: Joi.string().allow(""),
|
|
51
33
|
});
|
|
52
34
|
}
|
|
53
|
-
|
|
54
|
-
static ProductCategoryMap() {
|
|
35
|
+
static ArticleAssignmentV3() {
|
|
55
36
|
return Joi.object({
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
l3: CatalogModel.ProductBrand(),
|
|
59
|
-
|
|
60
|
-
l1: CatalogModel.ProductBrand(),
|
|
37
|
+
level: Joi.string().allow(""),
|
|
38
|
+
strategy: Joi.string().allow(""),
|
|
61
39
|
});
|
|
62
40
|
}
|
|
63
|
-
|
|
64
|
-
static ProductDetailAttribute() {
|
|
41
|
+
static AttributeDetail() {
|
|
65
42
|
return Joi.object({
|
|
43
|
+
description: Joi.string().allow(""),
|
|
44
|
+
display: Joi.string().allow(""),
|
|
66
45
|
key: Joi.string().allow(""),
|
|
67
|
-
|
|
68
|
-
type: Joi.string().allow(""),
|
|
69
|
-
|
|
70
|
-
value: Joi.string().allow(""),
|
|
46
|
+
logo: Joi.string().allow(""),
|
|
71
47
|
});
|
|
72
48
|
}
|
|
73
|
-
|
|
74
|
-
static ProductDetailGroupedAttribute() {
|
|
49
|
+
static AttributeMetadata() {
|
|
75
50
|
return Joi.object({
|
|
76
|
-
details: Joi.array().items(CatalogModel.
|
|
77
|
-
|
|
51
|
+
details: Joi.array().items(CatalogModel.AttributeDetail()),
|
|
78
52
|
title: Joi.string().allow(""),
|
|
79
53
|
});
|
|
80
54
|
}
|
|
81
|
-
|
|
82
|
-
static Price() {
|
|
55
|
+
static AutocompleteItem() {
|
|
83
56
|
return Joi.object({
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
min: Joi.number(),
|
|
57
|
+
_custom_json: Joi.any(),
|
|
58
|
+
action: CatalogModel.ProductListingAction(),
|
|
59
|
+
display: Joi.string().allow(""),
|
|
60
|
+
logo: CatalogModel.Media(),
|
|
61
|
+
type: Joi.string().allow(""),
|
|
91
62
|
});
|
|
92
63
|
}
|
|
93
|
-
|
|
94
|
-
static ProductListingPrice() {
|
|
64
|
+
static AutoCompleteResponse() {
|
|
95
65
|
return Joi.object({
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
effective: CatalogModel.Price(),
|
|
66
|
+
items: Joi.array().items(CatalogModel.AutocompleteItem()),
|
|
99
67
|
});
|
|
100
68
|
}
|
|
101
|
-
|
|
102
|
-
static CustomMetaFields() {
|
|
69
|
+
static BrandDetailResponse() {
|
|
103
70
|
return Joi.object({
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
71
|
+
_custom_json: Joi.any(),
|
|
72
|
+
banners: CatalogModel.ImageUrls(),
|
|
73
|
+
description: Joi.string().allow(""),
|
|
74
|
+
logo: CatalogModel.Media(),
|
|
75
|
+
name: Joi.string().allow(""),
|
|
76
|
+
uid: Joi.number(),
|
|
107
77
|
});
|
|
108
78
|
}
|
|
109
|
-
|
|
110
|
-
static ApplicationItemSEO() {
|
|
79
|
+
static BrandItem() {
|
|
111
80
|
return Joi.object({
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
81
|
+
action: CatalogModel.ProductListingAction(),
|
|
82
|
+
banners: CatalogModel.ImageUrls(),
|
|
83
|
+
departments: Joi.array().items(Joi.string().allow("")),
|
|
84
|
+
description: Joi.string().allow(""),
|
|
85
|
+
discount: Joi.string().allow(""),
|
|
86
|
+
logo: CatalogModel.Media(),
|
|
87
|
+
name: Joi.string().allow(""),
|
|
88
|
+
slug: Joi.string().allow(""),
|
|
89
|
+
uid: Joi.number(),
|
|
115
90
|
});
|
|
116
91
|
}
|
|
117
|
-
|
|
118
|
-
static ApplicationItemMOQ() {
|
|
92
|
+
static BrandListingResponse() {
|
|
119
93
|
return Joi.object({
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
minimum: Joi.number(),
|
|
123
|
-
|
|
124
|
-
maximum: Joi.number(),
|
|
94
|
+
items: Joi.array().items(CatalogModel.BrandItem()),
|
|
95
|
+
page: CatalogModel.Page().required(),
|
|
125
96
|
});
|
|
126
97
|
}
|
|
127
|
-
|
|
128
|
-
static NetQuantity() {
|
|
98
|
+
static CategoryBanner() {
|
|
129
99
|
return Joi.object({
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
value: Joi.number(),
|
|
100
|
+
landscape: CatalogModel.Media().required(),
|
|
101
|
+
portrait: CatalogModel.Media().required(),
|
|
133
102
|
});
|
|
134
103
|
}
|
|
135
|
-
|
|
136
|
-
static ProductDetail() {
|
|
104
|
+
static CategoryItems() {
|
|
137
105
|
return Joi.object({
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
attributes: Joi.any(),
|
|
143
|
-
|
|
144
|
-
uid: Joi.number(),
|
|
145
|
-
|
|
146
|
-
color: Joi.string().allow(""),
|
|
147
|
-
|
|
148
|
-
similars: Joi.array().items(Joi.string().allow("")),
|
|
149
|
-
|
|
150
|
-
short_description: Joi.string().allow(""),
|
|
151
|
-
|
|
152
|
-
medias: Joi.array().items(CatalogModel.Media()),
|
|
153
|
-
|
|
154
|
-
has_variant: Joi.boolean(),
|
|
155
|
-
|
|
156
|
-
item_type: Joi.string().allow(""),
|
|
157
|
-
|
|
158
|
-
grouped_attributes: Joi.array().items(
|
|
159
|
-
CatalogModel.ProductDetailGroupedAttribute()
|
|
160
|
-
),
|
|
161
|
-
|
|
162
|
-
rating: Joi.number(),
|
|
163
|
-
|
|
164
|
-
categories: Joi.array().items(CatalogModel.ProductBrand()),
|
|
165
|
-
|
|
166
|
-
is_dependent: Joi.boolean(),
|
|
167
|
-
|
|
168
|
-
image_nature: Joi.string().allow(""),
|
|
169
|
-
|
|
170
|
-
name: Joi.string().allow(""),
|
|
171
|
-
|
|
172
|
-
price: CatalogModel.ProductListingPrice(),
|
|
173
|
-
|
|
174
|
-
_custom_meta: Joi.array().items(CatalogModel.CustomMetaFields()),
|
|
175
|
-
|
|
176
|
-
seo: CatalogModel.ApplicationItemSEO(),
|
|
177
|
-
|
|
178
|
-
description: Joi.string().allow(""),
|
|
179
|
-
|
|
180
|
-
brand: CatalogModel.ProductBrand(),
|
|
181
|
-
|
|
182
|
-
rating_count: Joi.number(),
|
|
183
|
-
|
|
184
|
-
_custom_json: Joi.any(),
|
|
185
|
-
|
|
186
|
-
moq: CatalogModel.ApplicationItemMOQ(),
|
|
187
|
-
|
|
188
|
-
highlights: Joi.array().items(Joi.string().allow("")),
|
|
189
|
-
|
|
190
|
-
action: CatalogModel.ProductListingAction(),
|
|
191
|
-
|
|
192
|
-
product_online_date: Joi.string().allow(""),
|
|
193
|
-
|
|
194
|
-
tryouts: Joi.array().items(Joi.string().allow("")),
|
|
195
|
-
|
|
196
|
-
item_code: Joi.string().allow(""),
|
|
197
|
-
|
|
198
|
-
discount: Joi.string().allow(""),
|
|
199
|
-
|
|
200
|
-
teaser_tag: Joi.string().allow(""),
|
|
201
|
-
|
|
202
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
203
|
-
|
|
106
|
+
action: CatalogModel.ProductListingAction().required(),
|
|
107
|
+
banners: CatalogModel.CategoryBanner().required(),
|
|
108
|
+
childs: Joi.array().items(CatalogModel.Child()),
|
|
109
|
+
name: Joi.string().allow("").required(),
|
|
204
110
|
slug: Joi.string().allow("").required(),
|
|
205
|
-
|
|
206
|
-
net_quantity: CatalogModel.NetQuantity(),
|
|
111
|
+
uid: Joi.number().required(),
|
|
207
112
|
});
|
|
208
113
|
}
|
|
209
|
-
|
|
210
|
-
static ErrorResponse() {
|
|
114
|
+
static CategoryListingResponse() {
|
|
211
115
|
return Joi.object({
|
|
212
|
-
|
|
116
|
+
data: Joi.array().items(CatalogModel.DepartmentCategoryTree()),
|
|
117
|
+
departments: Joi.array().items(CatalogModel.DepartmentIdentifier()),
|
|
213
118
|
});
|
|
214
119
|
}
|
|
215
|
-
|
|
216
|
-
static ColumnHeader() {
|
|
120
|
+
static CategoryMetaResponse() {
|
|
217
121
|
return Joi.object({
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
122
|
+
_custom_json: Joi.any(),
|
|
123
|
+
banners: CatalogModel.ImageUrls(),
|
|
124
|
+
logo: CatalogModel.Media(),
|
|
125
|
+
name: Joi.string().allow(""),
|
|
126
|
+
uid: Joi.number(),
|
|
221
127
|
});
|
|
222
128
|
}
|
|
223
|
-
|
|
224
|
-
static ColumnHeaders() {
|
|
129
|
+
static Child() {
|
|
225
130
|
return Joi.object({
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
col_3: CatalogModel.ColumnHeader(),
|
|
235
|
-
|
|
236
|
-
col_5: CatalogModel.ColumnHeader(),
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
static SizeChartValues() {
|
|
241
|
-
return Joi.object({
|
|
242
|
-
col_1: Joi.string().allow(""),
|
|
243
|
-
|
|
244
|
-
col_2: Joi.string().allow(""),
|
|
245
|
-
|
|
246
|
-
col_6: Joi.string().allow(""),
|
|
247
|
-
|
|
248
|
-
col_4: Joi.string().allow(""),
|
|
249
|
-
|
|
250
|
-
col_3: Joi.string().allow(""),
|
|
251
|
-
|
|
252
|
-
col_5: Joi.string().allow(""),
|
|
131
|
+
_custom_json: Joi.any(),
|
|
132
|
+
action: CatalogModel.ProductListingAction(),
|
|
133
|
+
banners: CatalogModel.ImageUrls(),
|
|
134
|
+
childs: Joi.array().items(CatalogModel.SecondLevelChild()),
|
|
135
|
+
name: Joi.string().allow(""),
|
|
136
|
+
slug: Joi.string().allow(""),
|
|
137
|
+
uid: Joi.number(),
|
|
253
138
|
});
|
|
254
139
|
}
|
|
255
|
-
|
|
256
|
-
static SizeChart() {
|
|
140
|
+
static CollectionDetailResponse() {
|
|
257
141
|
return Joi.object({
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
sizes: Joi.array().items(CatalogModel.SizeChartValues()),
|
|
267
|
-
|
|
142
|
+
_custom_json: Joi.any(),
|
|
143
|
+
_schedule: Joi.any(),
|
|
144
|
+
allow_facets: Joi.boolean(),
|
|
145
|
+
allow_sort: Joi.boolean(),
|
|
146
|
+
app_id: Joi.string().allow(""),
|
|
147
|
+
badge: Joi.any(),
|
|
148
|
+
banners: CatalogModel.ImageUrls(),
|
|
149
|
+
cron: Joi.any(),
|
|
268
150
|
description: Joi.string().allow(""),
|
|
269
|
-
|
|
270
|
-
|
|
151
|
+
is_active: Joi.boolean(),
|
|
152
|
+
logo: CatalogModel.Media(),
|
|
153
|
+
meta: Joi.any(),
|
|
154
|
+
name: Joi.string().allow(""),
|
|
155
|
+
priority: Joi.number(),
|
|
156
|
+
query: Joi.array().items(CatalogModel.CollectionQuery()),
|
|
157
|
+
slug: Joi.string().allow(""),
|
|
158
|
+
sort_on: Joi.string().allow(""),
|
|
159
|
+
tag: Joi.array().items(Joi.string().allow("")),
|
|
160
|
+
type: Joi.string().allow(""),
|
|
161
|
+
visible_facets_keys: Joi.array().items(Joi.string().allow("")),
|
|
271
162
|
});
|
|
272
163
|
}
|
|
273
|
-
|
|
274
|
-
static Weight() {
|
|
164
|
+
static CollectionListingFilter() {
|
|
275
165
|
return Joi.object({
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
unit: Joi.string().allow("").required(),
|
|
279
|
-
|
|
280
|
-
is_default: Joi.boolean().required(),
|
|
166
|
+
tags: Joi.array().items(CatalogModel.CollectionListingFilterTag()),
|
|
167
|
+
type: Joi.array().items(CatalogModel.CollectionListingFilterType()),
|
|
281
168
|
});
|
|
282
169
|
}
|
|
283
|
-
|
|
284
|
-
static Dimension() {
|
|
170
|
+
static CollectionListingFilterTag() {
|
|
285
171
|
return Joi.object({
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
length: Joi.number().required(),
|
|
291
|
-
|
|
292
|
-
unit: Joi.string().allow("").required(),
|
|
293
|
-
|
|
294
|
-
height: Joi.number().required(),
|
|
172
|
+
display: Joi.string().allow(""),
|
|
173
|
+
is_selected: Joi.boolean(),
|
|
174
|
+
name: Joi.string().allow(""),
|
|
295
175
|
});
|
|
296
176
|
}
|
|
297
|
-
|
|
298
|
-
static ProductSize() {
|
|
177
|
+
static CollectionListingFilterType() {
|
|
299
178
|
return Joi.object({
|
|
300
|
-
weight: CatalogModel.Weight(),
|
|
301
|
-
|
|
302
|
-
is_available: Joi.boolean(),
|
|
303
|
-
|
|
304
179
|
display: Joi.string().allow(""),
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
seller_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
309
|
-
|
|
310
|
-
dimension: CatalogModel.Dimension(),
|
|
311
|
-
|
|
312
|
-
quantity: Joi.number(),
|
|
180
|
+
is_selected: Joi.boolean(),
|
|
181
|
+
name: Joi.string().allow(""),
|
|
313
182
|
});
|
|
314
183
|
}
|
|
315
|
-
|
|
316
|
-
static ProductSizeStores() {
|
|
184
|
+
static CollectionQuery() {
|
|
317
185
|
return Joi.object({
|
|
318
|
-
|
|
186
|
+
attribute: Joi.string().allow("").required(),
|
|
187
|
+
op: Joi.string().allow("").required(),
|
|
188
|
+
value: Joi.array().items(Joi.any()).required(),
|
|
319
189
|
});
|
|
320
190
|
}
|
|
321
|
-
|
|
322
|
-
static ProductSizes() {
|
|
191
|
+
static ColumnHeader() {
|
|
323
192
|
return Joi.object({
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
sellable: Joi.boolean(),
|
|
327
|
-
|
|
328
|
-
price: CatalogModel.ProductListingPrice(),
|
|
329
|
-
|
|
330
|
-
multi_size: Joi.boolean(),
|
|
331
|
-
|
|
332
|
-
discount: Joi.string().allow(""),
|
|
333
|
-
|
|
334
|
-
sizes: Joi.array().items(CatalogModel.ProductSize()),
|
|
335
|
-
|
|
336
|
-
stores: CatalogModel.ProductSizeStores(),
|
|
193
|
+
convertable: Joi.boolean(),
|
|
194
|
+
value: Joi.string().allow(""),
|
|
337
195
|
});
|
|
338
196
|
}
|
|
339
|
-
|
|
340
|
-
static AttributeDetail() {
|
|
197
|
+
static ColumnHeaders() {
|
|
341
198
|
return Joi.object({
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
display: Joi.string().allow(""),
|
|
199
|
+
col_1: CatalogModel.ColumnHeader(),
|
|
200
|
+
col_2: CatalogModel.ColumnHeader(),
|
|
201
|
+
col_3: CatalogModel.ColumnHeader(),
|
|
202
|
+
col_4: CatalogModel.ColumnHeader(),
|
|
203
|
+
col_5: CatalogModel.ColumnHeader(),
|
|
204
|
+
col_6: CatalogModel.ColumnHeader(),
|
|
349
205
|
});
|
|
350
206
|
}
|
|
351
|
-
|
|
352
|
-
static AttributeMetadata() {
|
|
207
|
+
static CompanyDetail() {
|
|
353
208
|
return Joi.object({
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
title: Joi.string().allow(""),
|
|
209
|
+
id: Joi.number(),
|
|
210
|
+
name: Joi.string().allow(""),
|
|
357
211
|
});
|
|
358
212
|
}
|
|
359
|
-
|
|
360
|
-
static ProductsComparisonResponse() {
|
|
213
|
+
static CompanyStore() {
|
|
361
214
|
return Joi.object({
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
215
|
+
business_type: Joi.string().allow(""),
|
|
216
|
+
company_type: Joi.string().allow(""),
|
|
217
|
+
name: Joi.string().allow(""),
|
|
218
|
+
uid: Joi.number(),
|
|
365
219
|
});
|
|
366
220
|
}
|
|
367
|
-
|
|
368
|
-
static ProductCompareResponse() {
|
|
221
|
+
static CustomMetaFields() {
|
|
369
222
|
return Joi.object({
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
title: Joi.string().allow(""),
|
|
373
|
-
|
|
374
|
-
subtitle: Joi.string().allow(""),
|
|
375
|
-
|
|
376
|
-
items: Joi.array().items(CatalogModel.ProductDetail()),
|
|
223
|
+
key: Joi.string().allow("").required(),
|
|
224
|
+
value: Joi.string().allow("").required(),
|
|
377
225
|
});
|
|
378
226
|
}
|
|
379
|
-
|
|
380
|
-
static ProductFrequentlyComparedSimilarResponse() {
|
|
227
|
+
static Department() {
|
|
381
228
|
return Joi.object({
|
|
382
|
-
|
|
229
|
+
logo: CatalogModel.Media(),
|
|
230
|
+
name: Joi.string().allow(""),
|
|
231
|
+
priority_order: Joi.number(),
|
|
232
|
+
slug: Joi.string().allow(""),
|
|
233
|
+
uid: Joi.number(),
|
|
383
234
|
});
|
|
384
235
|
}
|
|
385
|
-
|
|
386
|
-
|
|
236
|
+
static DepartmentCategoryTree() {
|
|
237
|
+
return Joi.object({
|
|
238
|
+
department: Joi.string().allow("").required(),
|
|
239
|
+
items: Joi.array().items(CatalogModel.CategoryItems()),
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
static DepartmentIdentifier() {
|
|
387
243
|
return Joi.object({
|
|
388
|
-
medias: Joi.array().items(CatalogModel.Media()),
|
|
389
|
-
|
|
390
|
-
is_available: Joi.boolean(),
|
|
391
|
-
|
|
392
|
-
value: Joi.string().allow(""),
|
|
393
|
-
|
|
394
|
-
name: Joi.string().allow(""),
|
|
395
|
-
|
|
396
|
-
action: CatalogModel.ProductListingAction(),
|
|
397
|
-
|
|
398
|
-
color_name: Joi.string().allow(""),
|
|
399
|
-
|
|
400
|
-
_custom_meta: Joi.array().items(CatalogModel.CustomMetaFields()),
|
|
401
|
-
|
|
402
|
-
color: Joi.string().allow(""),
|
|
403
|
-
|
|
404
|
-
uid: Joi.number(),
|
|
405
|
-
|
|
406
244
|
slug: Joi.string().allow(""),
|
|
245
|
+
uid: Joi.number(),
|
|
407
246
|
});
|
|
408
247
|
}
|
|
409
|
-
|
|
410
|
-
static ProductVariantResponse() {
|
|
248
|
+
static DepartmentResponse() {
|
|
411
249
|
return Joi.object({
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
display_type: Joi.string().allow(""),
|
|
415
|
-
|
|
416
|
-
header: Joi.string().allow(""),
|
|
417
|
-
|
|
418
|
-
items: Joi.array().items(CatalogModel.ProductVariantItemResponse()),
|
|
250
|
+
items: Joi.array().items(CatalogModel.Department()),
|
|
419
251
|
});
|
|
420
252
|
}
|
|
421
|
-
|
|
422
|
-
static ProductVariantsResponse() {
|
|
253
|
+
static DetailsSchemaV3() {
|
|
423
254
|
return Joi.object({
|
|
424
|
-
|
|
255
|
+
key: Joi.string().allow(""),
|
|
256
|
+
type: Joi.string().allow(""),
|
|
257
|
+
value: Joi.string().allow(""),
|
|
425
258
|
});
|
|
426
259
|
}
|
|
427
|
-
|
|
428
|
-
static CompanyDetail() {
|
|
260
|
+
static Dimension() {
|
|
429
261
|
return Joi.object({
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
262
|
+
height: Joi.number().required(),
|
|
263
|
+
is_default: Joi.boolean().required(),
|
|
264
|
+
length: Joi.number().required(),
|
|
265
|
+
unit: Joi.string().allow("").required(),
|
|
266
|
+
width: Joi.number().required(),
|
|
433
267
|
});
|
|
434
268
|
}
|
|
435
|
-
|
|
436
|
-
static ProductStockPrice() {
|
|
269
|
+
static ErrorResponse() {
|
|
437
270
|
return Joi.object({
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
marked: Joi.number(),
|
|
441
|
-
|
|
442
|
-
effective: Joi.number(),
|
|
271
|
+
error: Joi.string().allow(""),
|
|
443
272
|
});
|
|
444
273
|
}
|
|
445
|
-
|
|
446
|
-
static Seller() {
|
|
274
|
+
static FollowerCountResponse() {
|
|
447
275
|
return Joi.object({
|
|
448
|
-
uid: Joi.number(),
|
|
449
|
-
|
|
450
276
|
count: Joi.number(),
|
|
451
|
-
|
|
452
|
-
name: Joi.string().allow(""),
|
|
453
277
|
});
|
|
454
278
|
}
|
|
455
|
-
|
|
456
|
-
static StoreDetail() {
|
|
279
|
+
static FollowIdsData() {
|
|
457
280
|
return Joi.object({
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
city: Joi.string().allow(""),
|
|
463
|
-
|
|
464
|
-
name: Joi.string().allow(""),
|
|
281
|
+
brands: Joi.array().items(Joi.number()),
|
|
282
|
+
collections: Joi.array().items(Joi.number()),
|
|
283
|
+
products: Joi.array().items(Joi.number()),
|
|
465
284
|
});
|
|
466
285
|
}
|
|
467
|
-
|
|
468
|
-
static ProductStockStatusItem() {
|
|
286
|
+
static FollowIdsResponse() {
|
|
469
287
|
return Joi.object({
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
company: CatalogModel.CompanyDetail(),
|
|
473
|
-
|
|
474
|
-
price: CatalogModel.ProductStockPrice(),
|
|
475
|
-
|
|
476
|
-
seller: CatalogModel.Seller(),
|
|
477
|
-
|
|
478
|
-
store: CatalogModel.StoreDetail(),
|
|
479
|
-
|
|
480
|
-
uid: Joi.string().allow(""),
|
|
481
|
-
|
|
482
|
-
item_id: Joi.number(),
|
|
483
|
-
|
|
484
|
-
quantity: Joi.number(),
|
|
485
|
-
|
|
486
|
-
identifier: Joi.any(),
|
|
288
|
+
data: CatalogModel.FollowIdsData(),
|
|
487
289
|
});
|
|
488
290
|
}
|
|
489
|
-
|
|
490
|
-
static ProductStockStatusResponse() {
|
|
291
|
+
static FollowPostResponse() {
|
|
491
292
|
return Joi.object({
|
|
492
|
-
|
|
293
|
+
id: Joi.string().allow("").required(),
|
|
294
|
+
message: Joi.string().allow("").required(),
|
|
493
295
|
});
|
|
494
296
|
}
|
|
495
|
-
|
|
496
|
-
static Page() {
|
|
297
|
+
static GetCollectionDetailNest() {
|
|
497
298
|
return Joi.object({
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
299
|
+
_custom_json: Joi.any(),
|
|
300
|
+
_schedule: Joi.any(),
|
|
301
|
+
action: CatalogModel.ProductListingAction(),
|
|
302
|
+
allow_facets: Joi.boolean(),
|
|
303
|
+
allow_sort: Joi.boolean(),
|
|
304
|
+
app_id: Joi.string().allow(""),
|
|
305
|
+
badge: Joi.any(),
|
|
306
|
+
banners: CatalogModel.ImageUrls(),
|
|
307
|
+
cron: Joi.any(),
|
|
308
|
+
description: Joi.string().allow(""),
|
|
309
|
+
is_active: Joi.boolean(),
|
|
310
|
+
logo: CatalogModel.Media(),
|
|
311
|
+
meta: Joi.any(),
|
|
312
|
+
name: Joi.string().allow(""),
|
|
313
|
+
priority: Joi.number(),
|
|
314
|
+
query: Joi.array().items(CatalogModel.CollectionQuery()),
|
|
315
|
+
slug: Joi.string().allow(""),
|
|
316
|
+
sort_on: Joi.string().allow(""),
|
|
317
|
+
tag: Joi.array().items(Joi.string().allow("")),
|
|
318
|
+
type: Joi.string().allow(""),
|
|
319
|
+
uid: Joi.string().allow(""),
|
|
320
|
+
visible_facets_keys: Joi.array().items(Joi.string().allow("")),
|
|
511
321
|
});
|
|
512
322
|
}
|
|
513
|
-
|
|
514
|
-
static ProductStockPolling() {
|
|
323
|
+
static GetCollectionListingResponse() {
|
|
515
324
|
return Joi.object({
|
|
325
|
+
filters: CatalogModel.CollectionListingFilter(),
|
|
326
|
+
items: Joi.array().items(CatalogModel.GetCollectionDetailNest()),
|
|
516
327
|
page: CatalogModel.Page().required(),
|
|
517
|
-
|
|
518
|
-
items: Joi.array().items(CatalogModel.ProductStockStatusItem()),
|
|
519
328
|
});
|
|
520
329
|
}
|
|
521
|
-
|
|
522
|
-
static ProductSortOn() {
|
|
330
|
+
static GetFollowListingResponse() {
|
|
523
331
|
return Joi.object({
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
value: Joi.string().allow(""),
|
|
527
|
-
|
|
528
|
-
name: Joi.string().allow(""),
|
|
332
|
+
items: Joi.array().items(CatalogModel.ProductListingDetail()).required(),
|
|
333
|
+
page: CatalogModel.Page().required(),
|
|
529
334
|
});
|
|
530
335
|
}
|
|
531
|
-
|
|
532
|
-
static ProductFiltersValue() {
|
|
336
|
+
static HomeListingResponse() {
|
|
533
337
|
return Joi.object({
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
currency_code: Joi.string().allow(""),
|
|
539
|
-
|
|
540
|
-
max: Joi.number(),
|
|
541
|
-
|
|
542
|
-
min: Joi.number(),
|
|
543
|
-
|
|
544
|
-
display: Joi.string().allow("").required(),
|
|
545
|
-
|
|
546
|
-
value: Joi.string().allow(""),
|
|
547
|
-
|
|
548
|
-
count: Joi.number(),
|
|
549
|
-
|
|
550
|
-
currency_symbol: Joi.string().allow(""),
|
|
551
|
-
|
|
552
|
-
is_selected: Joi.boolean().required(),
|
|
553
|
-
|
|
554
|
-
query_format: Joi.string().allow(""),
|
|
555
|
-
|
|
556
|
-
display_format: Joi.string().allow(""),
|
|
338
|
+
items: Joi.array().items(CatalogModel.ProductListingDetail()),
|
|
339
|
+
message: Joi.string().allow(""),
|
|
340
|
+
page: CatalogModel.Page().required(),
|
|
557
341
|
});
|
|
558
342
|
}
|
|
559
|
-
|
|
560
|
-
static ProductFiltersKey() {
|
|
343
|
+
static ImageUrls() {
|
|
561
344
|
return Joi.object({
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
name: Joi.string().allow("").required(),
|
|
565
|
-
|
|
566
|
-
logo: Joi.string().allow(""),
|
|
567
|
-
|
|
568
|
-
display: Joi.string().allow("").required(),
|
|
345
|
+
landscape: CatalogModel.Media(),
|
|
346
|
+
portrait: CatalogModel.Media(),
|
|
569
347
|
});
|
|
570
348
|
}
|
|
571
|
-
|
|
572
|
-
static ProductFilters() {
|
|
349
|
+
static LatLong() {
|
|
573
350
|
return Joi.object({
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
key: CatalogModel.ProductFiltersKey().required(),
|
|
351
|
+
coordinates: Joi.array().items(Joi.number()),
|
|
352
|
+
type: Joi.string().allow(""),
|
|
577
353
|
});
|
|
578
354
|
}
|
|
579
|
-
|
|
580
|
-
static ProductVariantListingResponse() {
|
|
355
|
+
static MarketPlaceSttributesSchemaV3() {
|
|
581
356
|
return Joi.object({
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
display_type: Joi.string().allow(""),
|
|
585
|
-
|
|
586
|
-
total: Joi.number(),
|
|
587
|
-
|
|
588
|
-
header: Joi.string().allow(""),
|
|
589
|
-
|
|
590
|
-
items: Joi.array().items(CatalogModel.ProductVariantItemResponse()),
|
|
357
|
+
details: Joi.array().items(CatalogModel.DetailsSchemaV3()),
|
|
358
|
+
title: Joi.string().allow(""),
|
|
591
359
|
});
|
|
592
360
|
}
|
|
593
|
-
|
|
594
|
-
static ProductListingDetail() {
|
|
361
|
+
static Media() {
|
|
595
362
|
return Joi.object({
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
category_map: CatalogModel.ProductCategoryMap(),
|
|
599
|
-
|
|
363
|
+
alt: Joi.string().allow(""),
|
|
364
|
+
meta: CatalogModel.Meta(),
|
|
600
365
|
type: Joi.string().allow(""),
|
|
601
|
-
|
|
602
|
-
attributes: Joi.any(),
|
|
603
|
-
|
|
604
|
-
uid: Joi.number(),
|
|
605
|
-
|
|
606
|
-
color: Joi.string().allow(""),
|
|
607
|
-
|
|
608
|
-
similars: Joi.array().items(Joi.string().allow("")),
|
|
609
|
-
|
|
610
|
-
short_description: Joi.string().allow(""),
|
|
611
|
-
|
|
612
|
-
medias: Joi.array().items(CatalogModel.Media()),
|
|
613
|
-
|
|
614
|
-
has_variant: Joi.boolean(),
|
|
615
|
-
|
|
616
|
-
item_type: Joi.string().allow(""),
|
|
617
|
-
|
|
618
|
-
identifiers: Joi.array().items(Joi.string().allow("")),
|
|
619
|
-
|
|
620
|
-
grouped_attributes: Joi.array().items(
|
|
621
|
-
CatalogModel.ProductDetailGroupedAttribute()
|
|
622
|
-
),
|
|
623
|
-
|
|
624
|
-
rating: Joi.number(),
|
|
625
|
-
|
|
626
|
-
categories: Joi.array().items(CatalogModel.ProductBrand()),
|
|
627
|
-
|
|
628
|
-
is_dependent: Joi.boolean(),
|
|
629
|
-
|
|
630
|
-
image_nature: Joi.string().allow(""),
|
|
631
|
-
|
|
632
|
-
name: Joi.string().allow(""),
|
|
633
|
-
|
|
634
|
-
sellable: Joi.boolean(),
|
|
635
|
-
|
|
636
|
-
price: CatalogModel.ProductListingPrice(),
|
|
637
|
-
|
|
638
|
-
_custom_meta: Joi.array().items(CatalogModel.CustomMetaFields()),
|
|
639
|
-
|
|
640
|
-
seo: CatalogModel.ApplicationItemSEO(),
|
|
641
|
-
|
|
642
|
-
description: Joi.string().allow(""),
|
|
643
|
-
|
|
644
|
-
brand: CatalogModel.ProductBrand(),
|
|
645
|
-
|
|
646
|
-
rating_count: Joi.number(),
|
|
647
|
-
|
|
648
|
-
_custom_json: Joi.any(),
|
|
649
|
-
|
|
650
|
-
moq: CatalogModel.ApplicationItemMOQ(),
|
|
651
|
-
|
|
652
|
-
highlights: Joi.array().items(Joi.string().allow("")),
|
|
653
|
-
|
|
654
|
-
action: CatalogModel.ProductListingAction(),
|
|
655
|
-
|
|
656
|
-
product_online_date: Joi.string().allow(""),
|
|
657
|
-
|
|
658
|
-
tryouts: Joi.array().items(Joi.string().allow("")),
|
|
659
|
-
|
|
660
|
-
item_code: Joi.string().allow(""),
|
|
661
|
-
|
|
662
|
-
discount: Joi.string().allow(""),
|
|
663
|
-
|
|
664
|
-
teaser_tag: Joi.string().allow(""),
|
|
665
|
-
|
|
666
|
-
sizes: Joi.array().items(Joi.string().allow("")),
|
|
667
|
-
|
|
668
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
669
|
-
|
|
670
|
-
slug: Joi.string().allow("").required(),
|
|
671
|
-
|
|
672
|
-
net_quantity: CatalogModel.NetQuantity(),
|
|
366
|
+
url: Joi.string().allow(""),
|
|
673
367
|
});
|
|
674
368
|
}
|
|
675
|
-
|
|
676
|
-
static ProductListingResponse() {
|
|
369
|
+
static Meta() {
|
|
677
370
|
return Joi.object({
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
sort_on: Joi.array().items(CatalogModel.ProductSortOn()),
|
|
681
|
-
|
|
682
|
-
filters: Joi.array().items(CatalogModel.ProductFilters()),
|
|
683
|
-
|
|
684
|
-
items: Joi.array().items(CatalogModel.ProductListingDetail()),
|
|
371
|
+
source: Joi.string().allow(""),
|
|
685
372
|
});
|
|
686
373
|
}
|
|
687
|
-
|
|
688
|
-
static ImageUrls() {
|
|
374
|
+
static NetQuantity() {
|
|
689
375
|
return Joi.object({
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
landscape: CatalogModel.Media(),
|
|
376
|
+
unit: Joi.any(),
|
|
377
|
+
value: Joi.number(),
|
|
693
378
|
});
|
|
694
379
|
}
|
|
695
|
-
|
|
696
|
-
static BrandItem() {
|
|
380
|
+
static Page() {
|
|
697
381
|
return Joi.object({
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
discount: Joi.string().allow(""),
|
|
707
|
-
|
|
708
|
-
uid: Joi.number(),
|
|
709
|
-
|
|
710
|
-
description: Joi.string().allow(""),
|
|
711
|
-
|
|
712
|
-
departments: Joi.array().items(Joi.string().allow("")),
|
|
713
|
-
|
|
714
|
-
slug: Joi.string().allow(""),
|
|
382
|
+
current: Joi.number(),
|
|
383
|
+
has_next: Joi.boolean(),
|
|
384
|
+
has_previous: Joi.boolean(),
|
|
385
|
+
item_total: Joi.number(),
|
|
386
|
+
next_id: Joi.string().allow(""),
|
|
387
|
+
size: Joi.number(),
|
|
388
|
+
type: Joi.string().allow("").required(),
|
|
715
389
|
});
|
|
716
390
|
}
|
|
717
|
-
|
|
718
|
-
static BrandListingResponse() {
|
|
391
|
+
static Price() {
|
|
719
392
|
return Joi.object({
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
393
|
+
currency_code: Joi.string().allow(""),
|
|
394
|
+
currency_symbol: Joi.string().allow(""),
|
|
395
|
+
max: Joi.number(),
|
|
396
|
+
min: Joi.number(),
|
|
723
397
|
});
|
|
724
398
|
}
|
|
725
|
-
|
|
726
|
-
static BrandDetailResponse() {
|
|
399
|
+
static ProductBrand() {
|
|
727
400
|
return Joi.object({
|
|
401
|
+
action: CatalogModel.ProductListingAction(),
|
|
402
|
+
description: Joi.string().allow(""),
|
|
728
403
|
logo: CatalogModel.Media(),
|
|
729
|
-
|
|
730
404
|
name: Joi.string().allow(""),
|
|
731
|
-
|
|
732
|
-
banners: CatalogModel.ImageUrls(),
|
|
733
|
-
|
|
734
405
|
uid: Joi.number(),
|
|
735
|
-
|
|
736
|
-
description: Joi.string().allow(""),
|
|
737
|
-
|
|
738
|
-
_custom_json: Joi.any(),
|
|
739
406
|
});
|
|
740
407
|
}
|
|
741
|
-
|
|
742
|
-
static DepartmentIdentifier() {
|
|
408
|
+
static ProductBundle() {
|
|
743
409
|
return Joi.object({
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
uid: Joi.number(),
|
|
410
|
+
items: Joi.array().items(CatalogModel.ProductGroupingModel()),
|
|
747
411
|
});
|
|
748
412
|
}
|
|
749
|
-
|
|
750
|
-
static ThirdLevelChild() {
|
|
413
|
+
static ProductCategoryMap() {
|
|
751
414
|
return Joi.object({
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
childs: Joi.array().items(Joi.any()),
|
|
757
|
-
|
|
758
|
-
banners: CatalogModel.ImageUrls(),
|
|
759
|
-
|
|
760
|
-
uid: Joi.number(),
|
|
761
|
-
|
|
762
|
-
slug: Joi.string().allow(""),
|
|
763
|
-
|
|
764
|
-
_custom_json: Joi.any(),
|
|
415
|
+
l1: CatalogModel.ProductBrand(),
|
|
416
|
+
l2: CatalogModel.ProductBrand(),
|
|
417
|
+
l3: CatalogModel.ProductBrand(),
|
|
765
418
|
});
|
|
766
419
|
}
|
|
767
|
-
|
|
768
|
-
static SecondLevelChild() {
|
|
420
|
+
static ProductCompareResponse() {
|
|
769
421
|
return Joi.object({
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
childs: Joi.array().items(CatalogModel.ThirdLevelChild()),
|
|
775
|
-
|
|
776
|
-
banners: CatalogModel.ImageUrls(),
|
|
777
|
-
|
|
778
|
-
uid: Joi.number(),
|
|
779
|
-
|
|
780
|
-
slug: Joi.string().allow(""),
|
|
781
|
-
|
|
782
|
-
_custom_json: Joi.any(),
|
|
422
|
+
attributes_metadata: Joi.array().items(CatalogModel.AttributeMetadata()),
|
|
423
|
+
items: Joi.array().items(CatalogModel.ProductDetail()),
|
|
424
|
+
subtitle: Joi.string().allow(""),
|
|
425
|
+
title: Joi.string().allow(""),
|
|
783
426
|
});
|
|
784
427
|
}
|
|
785
|
-
|
|
786
|
-
static Child() {
|
|
428
|
+
static ProductDetail() {
|
|
787
429
|
return Joi.object({
|
|
788
|
-
name: Joi.string().allow(""),
|
|
789
|
-
|
|
790
|
-
action: CatalogModel.ProductListingAction(),
|
|
791
|
-
|
|
792
|
-
childs: Joi.array().items(CatalogModel.SecondLevelChild()),
|
|
793
|
-
|
|
794
|
-
banners: CatalogModel.ImageUrls(),
|
|
795
|
-
|
|
796
|
-
uid: Joi.number(),
|
|
797
|
-
|
|
798
|
-
slug: Joi.string().allow(""),
|
|
799
|
-
|
|
800
430
|
_custom_json: Joi.any(),
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
431
|
+
_custom_meta: Joi.array().items(CatalogModel.CustomMetaFields()),
|
|
432
|
+
action: CatalogModel.ProductListingAction(),
|
|
433
|
+
attributes: Joi.any(),
|
|
434
|
+
brand: CatalogModel.ProductBrand(),
|
|
435
|
+
categories: Joi.array().items(CatalogModel.ProductBrand()),
|
|
436
|
+
category_map: CatalogModel.ProductCategoryMap(),
|
|
437
|
+
color: Joi.string().allow(""),
|
|
438
|
+
description: Joi.string().allow(""),
|
|
439
|
+
discount: Joi.string().allow(""),
|
|
440
|
+
grouped_attributes: Joi.array().items(
|
|
441
|
+
CatalogModel.ProductDetailGroupedAttribute()
|
|
442
|
+
),
|
|
443
|
+
has_variant: Joi.boolean(),
|
|
444
|
+
highlights: Joi.array().items(Joi.string().allow("")),
|
|
445
|
+
image_nature: Joi.string().allow(""),
|
|
446
|
+
is_dependent: Joi.boolean(),
|
|
447
|
+
item_code: Joi.string().allow(""),
|
|
448
|
+
item_type: Joi.string().allow(""),
|
|
449
|
+
medias: Joi.array().items(CatalogModel.Media()),
|
|
450
|
+
moq: CatalogModel.ApplicationItemMOQ(),
|
|
451
|
+
name: Joi.string().allow(""),
|
|
452
|
+
net_quantity: CatalogModel.NetQuantity(),
|
|
453
|
+
price: CatalogModel.ProductListingPrice(),
|
|
454
|
+
product_online_date: Joi.string().allow(""),
|
|
455
|
+
rating: Joi.number(),
|
|
456
|
+
rating_count: Joi.number(),
|
|
457
|
+
seo: CatalogModel.ApplicationItemSEO(),
|
|
458
|
+
short_description: Joi.string().allow(""),
|
|
459
|
+
similars: Joi.array().items(Joi.string().allow("")),
|
|
824
460
|
slug: Joi.string().allow("").required(),
|
|
461
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
462
|
+
teaser_tag: Joi.string().allow(""),
|
|
463
|
+
tryouts: Joi.array().items(Joi.string().allow("")),
|
|
464
|
+
type: Joi.string().allow(""),
|
|
465
|
+
uid: Joi.number(),
|
|
825
466
|
});
|
|
826
467
|
}
|
|
827
|
-
|
|
828
|
-
static DepartmentCategoryTree() {
|
|
468
|
+
static ProductDetailAttribute() {
|
|
829
469
|
return Joi.object({
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
470
|
+
key: Joi.string().allow(""),
|
|
471
|
+
type: Joi.string().allow(""),
|
|
472
|
+
value: Joi.string().allow(""),
|
|
833
473
|
});
|
|
834
474
|
}
|
|
835
|
-
|
|
836
|
-
static CategoryListingResponse() {
|
|
475
|
+
static ProductDetailGroupedAttribute() {
|
|
837
476
|
return Joi.object({
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
data: Joi.array().items(CatalogModel.DepartmentCategoryTree()),
|
|
477
|
+
details: Joi.array().items(CatalogModel.ProductDetailAttribute()),
|
|
478
|
+
title: Joi.string().allow(""),
|
|
841
479
|
});
|
|
842
480
|
}
|
|
843
|
-
|
|
844
|
-
static CategoryMetaResponse() {
|
|
481
|
+
static ProductDetails() {
|
|
845
482
|
return Joi.object({
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
483
|
+
attributes: Joi.any(),
|
|
484
|
+
brand_uid: Joi.number(),
|
|
485
|
+
country_of_origin: Joi.any(),
|
|
486
|
+
description: Joi.any(),
|
|
487
|
+
grouped_attributes: Joi.any(),
|
|
488
|
+
has_variant: Joi.boolean(),
|
|
489
|
+
highlights: Joi.array().items(Joi.any()),
|
|
490
|
+
hsn_code: Joi.number(),
|
|
491
|
+
identifier: Joi.any(),
|
|
492
|
+
image_nature: Joi.any(),
|
|
493
|
+
images: Joi.array().items(Joi.any()),
|
|
494
|
+
is_set: Joi.boolean(),
|
|
495
|
+
item_code: Joi.any(),
|
|
496
|
+
media: Joi.array().items(Joi.any()),
|
|
497
|
+
name: Joi.any(),
|
|
498
|
+
out_of_stock: Joi.boolean(),
|
|
499
|
+
rating: Joi.number(),
|
|
500
|
+
rating_count: Joi.number(),
|
|
501
|
+
short_description: Joi.any(),
|
|
502
|
+
slug: Joi.any(),
|
|
503
|
+
template_tag: Joi.any(),
|
|
855
504
|
});
|
|
856
505
|
}
|
|
857
|
-
|
|
858
|
-
static HomeListingResponse() {
|
|
506
|
+
static ProductFilters() {
|
|
859
507
|
return Joi.object({
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
message: Joi.string().allow(""),
|
|
863
|
-
|
|
864
|
-
items: Joi.array().items(CatalogModel.ProductListingDetail()),
|
|
508
|
+
key: CatalogModel.ProductFiltersKey().required(),
|
|
509
|
+
values: Joi.array().items(CatalogModel.ProductFiltersValue()).required(),
|
|
865
510
|
});
|
|
866
511
|
}
|
|
867
|
-
|
|
868
|
-
static Department() {
|
|
512
|
+
static ProductFiltersKey() {
|
|
869
513
|
return Joi.object({
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
priority_order: Joi.number(),
|
|
875
|
-
|
|
876
|
-
uid: Joi.number(),
|
|
877
|
-
|
|
878
|
-
slug: Joi.string().allow(""),
|
|
514
|
+
display: Joi.string().allow("").required(),
|
|
515
|
+
kind: Joi.string().allow(""),
|
|
516
|
+
logo: Joi.string().allow(""),
|
|
517
|
+
name: Joi.string().allow("").required(),
|
|
879
518
|
});
|
|
880
519
|
}
|
|
881
|
-
|
|
882
|
-
static DepartmentResponse() {
|
|
520
|
+
static ProductFiltersValue() {
|
|
883
521
|
return Joi.object({
|
|
884
|
-
|
|
522
|
+
count: Joi.number(),
|
|
523
|
+
currency_code: Joi.string().allow(""),
|
|
524
|
+
currency_symbol: Joi.string().allow(""),
|
|
525
|
+
display: Joi.string().allow("").required(),
|
|
526
|
+
display_format: Joi.string().allow(""),
|
|
527
|
+
is_selected: Joi.boolean().required(),
|
|
528
|
+
max: Joi.number(),
|
|
529
|
+
min: Joi.number(),
|
|
530
|
+
query_format: Joi.string().allow(""),
|
|
531
|
+
selected_max: Joi.number(),
|
|
532
|
+
selected_min: Joi.number(),
|
|
533
|
+
value: Joi.string().allow(""),
|
|
885
534
|
});
|
|
886
535
|
}
|
|
887
|
-
|
|
888
|
-
static AutocompleteItem() {
|
|
536
|
+
static ProductFrequentlyComparedSimilarResponse() {
|
|
889
537
|
return Joi.object({
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
display: Joi.string().allow(""),
|
|
893
|
-
|
|
894
|
-
action: CatalogModel.ProductListingAction(),
|
|
895
|
-
|
|
896
|
-
type: Joi.string().allow(""),
|
|
897
|
-
|
|
898
|
-
_custom_json: Joi.any(),
|
|
538
|
+
similars: CatalogModel.ProductCompareResponse(),
|
|
899
539
|
});
|
|
900
540
|
}
|
|
901
|
-
|
|
902
|
-
static AutoCompleteResponse() {
|
|
541
|
+
static ProductGroupingModel() {
|
|
903
542
|
return Joi.object({
|
|
904
|
-
|
|
543
|
+
_id: Joi.any(),
|
|
544
|
+
choice: Joi.any(),
|
|
545
|
+
company_id: Joi.number(),
|
|
546
|
+
created_by: CatalogModel.UserDetail(),
|
|
547
|
+
created_on: Joi.string().allow("").required(),
|
|
548
|
+
is_active: Joi.boolean(),
|
|
549
|
+
logo: Joi.string().allow("").allow(null),
|
|
550
|
+
meta: Joi.any(),
|
|
551
|
+
modified_by: CatalogModel.UserDetail(),
|
|
552
|
+
modified_on: Joi.string().allow("").required(),
|
|
553
|
+
name: Joi.any().required(),
|
|
554
|
+
page_visibility: Joi.array().items(Joi.any()),
|
|
555
|
+
products: Joi.array().items(CatalogModel.ProductInGroup()).required(),
|
|
556
|
+
same_store_assignment: Joi.boolean(),
|
|
557
|
+
slug: Joi.any(),
|
|
558
|
+
verified_by: CatalogModel.UserDetail(),
|
|
559
|
+
verified_on: Joi.string().allow(""),
|
|
905
560
|
});
|
|
906
561
|
}
|
|
907
|
-
|
|
908
|
-
static CollectionListingFilterTag() {
|
|
562
|
+
static ProductGroupPrice() {
|
|
909
563
|
return Joi.object({
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
564
|
+
currency: Joi.any(),
|
|
565
|
+
max_effective: Joi.number(),
|
|
566
|
+
max_marked: Joi.number(),
|
|
567
|
+
min_effective: Joi.number(),
|
|
568
|
+
min_marked: Joi.number(),
|
|
915
569
|
});
|
|
916
570
|
}
|
|
917
|
-
|
|
918
|
-
static CollectionListingFilterType() {
|
|
571
|
+
static ProductInGroup() {
|
|
919
572
|
return Joi.object({
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
573
|
+
allow_remove: Joi.boolean(),
|
|
574
|
+
auto_add_to_cart: Joi.boolean(),
|
|
575
|
+
auto_select: Joi.boolean(),
|
|
576
|
+
max_quantity: Joi.number().required(),
|
|
577
|
+
min_quantity: Joi.number(),
|
|
578
|
+
price: CatalogModel.ProductGroupPrice(),
|
|
579
|
+
product_details: CatalogModel.ProductDetails(),
|
|
580
|
+
product_uid: Joi.number().required(),
|
|
581
|
+
sizes: Joi.array().items(CatalogModel.Size()),
|
|
925
582
|
});
|
|
926
583
|
}
|
|
927
|
-
|
|
928
|
-
static CollectionListingFilter() {
|
|
584
|
+
static ProductListingAction() {
|
|
929
585
|
return Joi.object({
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
type: Joi.array().items(CatalogModel.CollectionListingFilterType()),
|
|
586
|
+
page: CatalogModel.ProductListingActionPage(),
|
|
587
|
+
type: Joi.string().allow(""),
|
|
933
588
|
});
|
|
934
589
|
}
|
|
935
|
-
|
|
936
|
-
static CollectionQuery() {
|
|
590
|
+
static ProductListingActionPage() {
|
|
937
591
|
return Joi.object({
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
value: Joi.array().items(Joi.any()).required(),
|
|
592
|
+
params: Joi.any(),
|
|
593
|
+
query: Joi.any(),
|
|
594
|
+
type: Joi.string().allow(""),
|
|
943
595
|
});
|
|
944
596
|
}
|
|
945
|
-
|
|
946
|
-
static GetCollectionDetailNest() {
|
|
597
|
+
static ProductListingDetail() {
|
|
947
598
|
return Joi.object({
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
is_active: Joi.boolean(),
|
|
971
|
-
|
|
972
|
-
tag: Joi.array().items(Joi.string().allow("")),
|
|
973
|
-
|
|
599
|
+
_custom_json: Joi.any(),
|
|
600
|
+
_custom_meta: Joi.array().items(CatalogModel.CustomMetaFields()),
|
|
601
|
+
action: CatalogModel.ProductListingAction(),
|
|
602
|
+
attributes: Joi.any(),
|
|
603
|
+
brand: CatalogModel.ProductBrand(),
|
|
604
|
+
categories: Joi.array().items(CatalogModel.ProductBrand()),
|
|
605
|
+
category_map: CatalogModel.ProductCategoryMap(),
|
|
606
|
+
color: Joi.string().allow(""),
|
|
607
|
+
description: Joi.string().allow(""),
|
|
608
|
+
discount: Joi.string().allow(""),
|
|
609
|
+
grouped_attributes: Joi.array().items(
|
|
610
|
+
CatalogModel.ProductDetailGroupedAttribute()
|
|
611
|
+
),
|
|
612
|
+
has_variant: Joi.boolean(),
|
|
613
|
+
highlights: Joi.array().items(Joi.string().allow("")),
|
|
614
|
+
identifiers: Joi.array().items(Joi.string().allow("")),
|
|
615
|
+
image_nature: Joi.string().allow(""),
|
|
616
|
+
is_dependent: Joi.boolean(),
|
|
617
|
+
item_code: Joi.string().allow(""),
|
|
618
|
+
item_type: Joi.string().allow(""),
|
|
619
|
+
medias: Joi.array().items(CatalogModel.Media()),
|
|
620
|
+
moq: CatalogModel.ApplicationItemMOQ(),
|
|
974
621
|
name: Joi.string().allow(""),
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
622
|
+
net_quantity: CatalogModel.NetQuantity(),
|
|
623
|
+
price: CatalogModel.ProductListingPrice(),
|
|
624
|
+
product_online_date: Joi.string().allow(""),
|
|
625
|
+
rating: Joi.number(),
|
|
626
|
+
rating_count: Joi.number(),
|
|
627
|
+
sellable: Joi.boolean(),
|
|
628
|
+
seo: CatalogModel.ApplicationItemSEO(),
|
|
629
|
+
short_description: Joi.string().allow(""),
|
|
630
|
+
similars: Joi.array().items(Joi.string().allow("")),
|
|
631
|
+
sizes: Joi.array().items(Joi.string().allow("")),
|
|
632
|
+
slug: Joi.string().allow("").required(),
|
|
633
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
634
|
+
teaser_tag: Joi.string().allow(""),
|
|
635
|
+
tryouts: Joi.array().items(Joi.string().allow("")),
|
|
636
|
+
type: Joi.string().allow(""),
|
|
637
|
+
uid: Joi.number(),
|
|
638
|
+
variants: Joi.array().items(CatalogModel.ProductVariantListingResponse()),
|
|
991
639
|
});
|
|
992
640
|
}
|
|
993
|
-
|
|
994
|
-
|
|
641
|
+
static ProductListingPrice() {
|
|
642
|
+
return Joi.object({
|
|
643
|
+
effective: CatalogModel.Price(),
|
|
644
|
+
marked: CatalogModel.Price(),
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
static ProductListingResponse() {
|
|
995
648
|
return Joi.object({
|
|
649
|
+
filters: Joi.array().items(CatalogModel.ProductFilters()),
|
|
650
|
+
items: Joi.array().items(CatalogModel.ProductListingDetail()),
|
|
996
651
|
page: CatalogModel.Page().required(),
|
|
997
|
-
|
|
998
|
-
filters: CatalogModel.CollectionListingFilter(),
|
|
999
|
-
|
|
1000
|
-
items: Joi.array().items(CatalogModel.GetCollectionDetailNest()),
|
|
652
|
+
sort_on: Joi.array().items(CatalogModel.ProductSortOn()),
|
|
1001
653
|
});
|
|
1002
654
|
}
|
|
1003
|
-
|
|
1004
|
-
static CollectionDetailResponse() {
|
|
655
|
+
static ProductsComparisonResponse() {
|
|
1005
656
|
return Joi.object({
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
allow_facets: Joi.boolean(),
|
|
1009
|
-
|
|
1010
|
-
logo: CatalogModel.Media(),
|
|
1011
|
-
|
|
1012
|
-
cron: Joi.any(),
|
|
1013
|
-
|
|
1014
|
-
type: Joi.string().allow(""),
|
|
1015
|
-
|
|
1016
|
-
meta: Joi.any(),
|
|
1017
|
-
|
|
1018
|
-
visible_facets_keys: Joi.array().items(Joi.string().allow("")),
|
|
1019
|
-
|
|
1020
|
-
badge: Joi.any(),
|
|
1021
|
-
|
|
1022
|
-
sort_on: Joi.string().allow(""),
|
|
1023
|
-
|
|
1024
|
-
banners: CatalogModel.ImageUrls(),
|
|
1025
|
-
|
|
1026
|
-
is_active: Joi.boolean(),
|
|
1027
|
-
|
|
1028
|
-
tag: Joi.array().items(Joi.string().allow("")),
|
|
1029
|
-
|
|
1030
|
-
name: Joi.string().allow(""),
|
|
1031
|
-
|
|
1032
|
-
description: Joi.string().allow(""),
|
|
1033
|
-
|
|
1034
|
-
_custom_json: Joi.any(),
|
|
1035
|
-
|
|
1036
|
-
_schedule: Joi.any(),
|
|
1037
|
-
|
|
1038
|
-
app_id: Joi.string().allow(""),
|
|
1039
|
-
|
|
1040
|
-
priority: Joi.number(),
|
|
1041
|
-
|
|
1042
|
-
allow_sort: Joi.boolean(),
|
|
1043
|
-
|
|
1044
|
-
slug: Joi.string().allow(""),
|
|
657
|
+
attributes_metadata: Joi.array().items(CatalogModel.AttributeMetadata()),
|
|
658
|
+
items: Joi.array().items(CatalogModel.ProductDetail()),
|
|
1045
659
|
});
|
|
1046
660
|
}
|
|
1047
|
-
|
|
1048
|
-
static GetFollowListingResponse() {
|
|
661
|
+
static ProductSetDistributionSizeV3() {
|
|
1049
662
|
return Joi.object({
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
items: Joi.array().items(CatalogModel.ProductListingDetail()).required(),
|
|
663
|
+
pieces: Joi.number(),
|
|
664
|
+
size: Joi.string().allow(""),
|
|
1053
665
|
});
|
|
1054
666
|
}
|
|
1055
|
-
|
|
1056
|
-
static FollowPostResponse() {
|
|
667
|
+
static ProductSetDistributionV3() {
|
|
1057
668
|
return Joi.object({
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
message: Joi.string().allow("").required(),
|
|
669
|
+
sizes: Joi.array().items(CatalogModel.ProductSetDistributionSizeV3()),
|
|
1061
670
|
});
|
|
1062
671
|
}
|
|
1063
|
-
|
|
1064
|
-
static FollowerCountResponse() {
|
|
672
|
+
static ProductSetV3() {
|
|
1065
673
|
return Joi.object({
|
|
1066
|
-
|
|
674
|
+
quantity: Joi.number(),
|
|
675
|
+
size_distribution: CatalogModel.ProductSetDistributionV3(),
|
|
1067
676
|
});
|
|
1068
677
|
}
|
|
1069
|
-
|
|
1070
|
-
static FollowIdsData() {
|
|
678
|
+
static ProductSize() {
|
|
1071
679
|
return Joi.object({
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
680
|
+
dimension: CatalogModel.Dimension(),
|
|
681
|
+
display: Joi.string().allow(""),
|
|
682
|
+
is_available: Joi.boolean(),
|
|
683
|
+
quantity: Joi.number(),
|
|
684
|
+
seller_identifiers: Joi.array().items(Joi.string().allow("")),
|
|
685
|
+
value: Joi.string().allow(""),
|
|
686
|
+
weight: CatalogModel.Weight(),
|
|
1077
687
|
});
|
|
1078
688
|
}
|
|
1079
|
-
|
|
1080
|
-
static FollowIdsResponse() {
|
|
689
|
+
static ProductSizePriceResponseV3() {
|
|
1081
690
|
return Joi.object({
|
|
1082
|
-
|
|
691
|
+
article_assignment: CatalogModel.ArticleAssignmentV3(),
|
|
692
|
+
article_id: Joi.string().allow(""),
|
|
693
|
+
discount: Joi.string().allow(""),
|
|
694
|
+
grouped_attributes: Joi.array().items(
|
|
695
|
+
CatalogModel.SellerGroupAttributes()
|
|
696
|
+
),
|
|
697
|
+
is_cod: Joi.boolean(),
|
|
698
|
+
is_gift: Joi.boolean(),
|
|
699
|
+
item_type: Joi.string().allow(""),
|
|
700
|
+
long_lat: Joi.array().items(Joi.number()),
|
|
701
|
+
marketplace_attributes: Joi.array().items(
|
|
702
|
+
CatalogModel.MarketPlaceSttributesSchemaV3()
|
|
703
|
+
),
|
|
704
|
+
pincode: Joi.number(),
|
|
705
|
+
price: CatalogModel.ProductStockPriceV3(),
|
|
706
|
+
price_per_piece: CatalogModel.ProductStockPriceV3(),
|
|
707
|
+
price_per_unit: CatalogModel.ProductStockUnitPriceV3(),
|
|
708
|
+
quantity: Joi.number(),
|
|
709
|
+
return_config: CatalogModel.ReturnConfigSchemaV3(),
|
|
710
|
+
seller: CatalogModel.SellerV3(),
|
|
711
|
+
seller_count: Joi.number(),
|
|
712
|
+
set: CatalogModel.ProductSetV3(),
|
|
713
|
+
special_badge: Joi.string().allow(""),
|
|
714
|
+
store: CatalogModel.StoreV3(),
|
|
715
|
+
strategy_wise_listing: Joi.array().items(
|
|
716
|
+
CatalogModel.StrategyWiseListingSchemaV3()
|
|
717
|
+
),
|
|
1083
718
|
});
|
|
1084
719
|
}
|
|
1085
|
-
|
|
1086
|
-
static LatLong() {
|
|
720
|
+
static ProductSizes() {
|
|
1087
721
|
return Joi.object({
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
722
|
+
discount: Joi.string().allow(""),
|
|
723
|
+
multi_size: Joi.boolean(),
|
|
724
|
+
price: CatalogModel.ProductListingPrice(),
|
|
725
|
+
sellable: Joi.boolean(),
|
|
726
|
+
size_chart: CatalogModel.SizeChart(),
|
|
727
|
+
sizes: Joi.array().items(CatalogModel.ProductSize()),
|
|
728
|
+
stores: CatalogModel.ProductSizeStores(),
|
|
1091
729
|
});
|
|
1092
730
|
}
|
|
1093
|
-
|
|
1094
|
-
static Store() {
|
|
731
|
+
static ProductSizeSellerFilterSchemaV3() {
|
|
1095
732
|
return Joi.object({
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
lat_long: CatalogModel.LatLong(),
|
|
1099
|
-
|
|
1100
|
-
address: Joi.string().allow(""),
|
|
1101
|
-
|
|
733
|
+
is_selected: Joi.boolean(),
|
|
1102
734
|
name: Joi.string().allow(""),
|
|
1103
|
-
|
|
1104
|
-
store_email: Joi.string().allow(""),
|
|
1105
|
-
|
|
1106
|
-
state: Joi.string().allow(""),
|
|
1107
|
-
|
|
1108
|
-
uid: Joi.number(),
|
|
1109
|
-
|
|
1110
|
-
country: Joi.string().allow(""),
|
|
1111
|
-
|
|
1112
|
-
store_code: Joi.string().allow(""),
|
|
1113
|
-
|
|
1114
|
-
city: Joi.string().allow(""),
|
|
735
|
+
value: Joi.string().allow(""),
|
|
1115
736
|
});
|
|
1116
737
|
}
|
|
1117
|
-
|
|
1118
|
-
static StoreListingResponse() {
|
|
738
|
+
static ProductSizeSellersResponseV3() {
|
|
1119
739
|
return Joi.object({
|
|
740
|
+
items: Joi.array().items(CatalogModel.ProductSizePriceResponseV3()),
|
|
1120
741
|
page: CatalogModel.Page().required(),
|
|
1121
|
-
|
|
1122
|
-
|
|
742
|
+
sort_on: Joi.array().items(
|
|
743
|
+
CatalogModel.ProductSizeSellerFilterSchemaV3()
|
|
744
|
+
),
|
|
1123
745
|
});
|
|
1124
746
|
}
|
|
1125
|
-
|
|
1126
|
-
static StoreDepartments() {
|
|
747
|
+
static ProductSizeStores() {
|
|
1127
748
|
return Joi.object({
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
name: Joi.string().allow(""),
|
|
1131
|
-
|
|
1132
|
-
priority_order: Joi.number(),
|
|
1133
|
-
|
|
1134
|
-
uid: Joi.number(),
|
|
1135
|
-
|
|
1136
|
-
slug: Joi.string().allow(""),
|
|
749
|
+
count: Joi.number(),
|
|
1137
750
|
});
|
|
1138
751
|
}
|
|
1139
|
-
|
|
1140
|
-
static CompanyStore() {
|
|
752
|
+
static ProductSortOn() {
|
|
1141
753
|
return Joi.object({
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
company_type: Joi.string().allow(""),
|
|
1145
|
-
|
|
1146
|
-
uid: Joi.number(),
|
|
1147
|
-
|
|
754
|
+
is_selected: Joi.boolean(),
|
|
1148
755
|
name: Joi.string().allow(""),
|
|
756
|
+
value: Joi.string().allow(""),
|
|
1149
757
|
});
|
|
1150
758
|
}
|
|
1151
|
-
|
|
1152
|
-
static StoreAddressSerializer() {
|
|
1153
|
-
return Joi.object({
|
|
1154
|
-
pincode: Joi.number(),
|
|
1155
|
-
|
|
1156
|
-
landmark: Joi.string().allow(""),
|
|
1157
|
-
|
|
1158
|
-
address1: Joi.string().allow(""),
|
|
1159
|
-
|
|
1160
|
-
longitude: Joi.number(),
|
|
1161
|
-
|
|
1162
|
-
state: Joi.string().allow(""),
|
|
1163
|
-
|
|
1164
|
-
latitude: Joi.number(),
|
|
1165
|
-
|
|
1166
|
-
address2: Joi.string().allow(""),
|
|
1167
|
-
|
|
1168
|
-
country: Joi.string().allow(""),
|
|
1169
|
-
|
|
1170
|
-
city: Joi.string().allow(""),
|
|
1171
|
-
});
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
static SellerPhoneNumber() {
|
|
759
|
+
static ProductStockPolling() {
|
|
1175
760
|
return Joi.object({
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
number: Joi.string().allow("").required(),
|
|
761
|
+
items: Joi.array().items(CatalogModel.ProductStockStatusItem()),
|
|
762
|
+
page: CatalogModel.Page().required(),
|
|
1179
763
|
});
|
|
1180
764
|
}
|
|
1181
|
-
|
|
1182
|
-
static StoreManagerSerializer() {
|
|
765
|
+
static ProductStockPrice() {
|
|
1183
766
|
return Joi.object({
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
name: Joi.string().allow(""),
|
|
767
|
+
currency: Joi.string().allow(""),
|
|
768
|
+
effective: Joi.number(),
|
|
769
|
+
marked: Joi.number(),
|
|
1189
770
|
});
|
|
1190
771
|
}
|
|
1191
|
-
|
|
1192
|
-
static AppStore() {
|
|
772
|
+
static ProductStockPriceV3() {
|
|
1193
773
|
return Joi.object({
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
name: Joi.string().allow(""),
|
|
1199
|
-
|
|
1200
|
-
manager: CatalogModel.StoreManagerSerializer(),
|
|
1201
|
-
|
|
1202
|
-
contact_numbers: Joi.array().items(CatalogModel.SellerPhoneNumber()),
|
|
1203
|
-
|
|
1204
|
-
uid: Joi.number(),
|
|
1205
|
-
|
|
1206
|
-
departments: Joi.array().items(CatalogModel.StoreDepartments()),
|
|
774
|
+
currency: Joi.string().allow(""),
|
|
775
|
+
effective: Joi.number(),
|
|
776
|
+
marked: Joi.number(),
|
|
1207
777
|
});
|
|
1208
778
|
}
|
|
1209
|
-
|
|
1210
|
-
static ApplicationStoreListing() {
|
|
779
|
+
static ProductStockStatusItem() {
|
|
1211
780
|
return Joi.object({
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
781
|
+
company: CatalogModel.CompanyDetail(),
|
|
782
|
+
identifier: Joi.any(),
|
|
783
|
+
item_id: Joi.number(),
|
|
784
|
+
price: CatalogModel.ProductStockPrice(),
|
|
785
|
+
quantity: Joi.number(),
|
|
786
|
+
seller: CatalogModel.Seller(),
|
|
787
|
+
size: Joi.string().allow(""),
|
|
788
|
+
store: CatalogModel.StoreDetail(),
|
|
789
|
+
uid: Joi.string().allow(""),
|
|
1217
790
|
});
|
|
1218
791
|
}
|
|
1219
|
-
|
|
1220
|
-
static Time() {
|
|
792
|
+
static ProductStockStatusResponse() {
|
|
1221
793
|
return Joi.object({
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
hour: Joi.number(),
|
|
794
|
+
items: Joi.array().items(CatalogModel.ProductStockStatusItem()),
|
|
1225
795
|
});
|
|
1226
796
|
}
|
|
1227
|
-
|
|
1228
|
-
static StoreTiming() {
|
|
797
|
+
static ProductStockUnitPriceV3() {
|
|
1229
798
|
return Joi.object({
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
open: Joi.boolean(),
|
|
1235
|
-
|
|
1236
|
-
opening: CatalogModel.Time(),
|
|
799
|
+
currency_code: Joi.string().allow(""),
|
|
800
|
+
currency_symbol: Joi.string().allow(""),
|
|
801
|
+
price: Joi.number(),
|
|
802
|
+
unit: Joi.string().allow(""),
|
|
1237
803
|
});
|
|
1238
804
|
}
|
|
1239
|
-
|
|
1240
|
-
static StoreDetails() {
|
|
805
|
+
static ProductVariantItemResponse() {
|
|
1241
806
|
return Joi.object({
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
807
|
+
_custom_meta: Joi.array().items(CatalogModel.CustomMetaFields()),
|
|
808
|
+
action: CatalogModel.ProductListingAction(),
|
|
809
|
+
color: Joi.string().allow(""),
|
|
810
|
+
color_name: Joi.string().allow(""),
|
|
811
|
+
is_available: Joi.boolean(),
|
|
812
|
+
medias: Joi.array().items(CatalogModel.Media()),
|
|
1246
813
|
name: Joi.string().allow(""),
|
|
1247
|
-
|
|
1248
|
-
manager: CatalogModel.StoreManagerSerializer(),
|
|
1249
|
-
|
|
1250
|
-
contact_numbers: Joi.array().items(CatalogModel.SellerPhoneNumber()),
|
|
1251
|
-
|
|
1252
|
-
timing: Joi.array().items(CatalogModel.StoreTiming()),
|
|
1253
|
-
|
|
814
|
+
slug: Joi.string().allow(""),
|
|
1254
815
|
uid: Joi.number(),
|
|
1255
|
-
|
|
1256
|
-
departments: Joi.array().items(CatalogModel.StoreDepartments()),
|
|
1257
|
-
|
|
1258
|
-
_custom_json: Joi.any(),
|
|
816
|
+
value: Joi.string().allow(""),
|
|
1259
817
|
});
|
|
1260
818
|
}
|
|
1261
|
-
|
|
1262
|
-
static UserDetail() {
|
|
819
|
+
static ProductVariantListingResponse() {
|
|
1263
820
|
return Joi.object({
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
contact: Joi.string().allow(""),
|
|
821
|
+
display_type: Joi.string().allow(""),
|
|
822
|
+
header: Joi.string().allow(""),
|
|
823
|
+
items: Joi.array().items(CatalogModel.ProductVariantItemResponse()),
|
|
824
|
+
key: Joi.string().allow(""),
|
|
825
|
+
total: Joi.number(),
|
|
1271
826
|
});
|
|
1272
827
|
}
|
|
1273
|
-
|
|
1274
|
-
static ProductGroupPrice() {
|
|
828
|
+
static ProductVariantResponse() {
|
|
1275
829
|
return Joi.object({
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
max_effective: Joi.number(),
|
|
1281
|
-
|
|
1282
|
-
min_marked: Joi.number(),
|
|
1283
|
-
|
|
1284
|
-
min_effective: Joi.number(),
|
|
830
|
+
display_type: Joi.string().allow(""),
|
|
831
|
+
header: Joi.string().allow(""),
|
|
832
|
+
items: Joi.array().items(CatalogModel.ProductVariantItemResponse()),
|
|
833
|
+
key: Joi.string().allow(""),
|
|
1285
834
|
});
|
|
1286
835
|
}
|
|
1287
|
-
|
|
1288
|
-
static Size() {
|
|
836
|
+
static ProductVariantsResponse() {
|
|
1289
837
|
return Joi.object({
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
is_available: Joi.boolean(),
|
|
1293
|
-
|
|
1294
|
-
value: Joi.any(),
|
|
1295
|
-
|
|
1296
|
-
display: Joi.any(),
|
|
838
|
+
variants: Joi.array().items(CatalogModel.ProductVariantResponse()),
|
|
1297
839
|
});
|
|
1298
840
|
}
|
|
1299
|
-
|
|
1300
|
-
static ProductDetails() {
|
|
841
|
+
static ReturnConfigSchemaV3() {
|
|
1301
842
|
return Joi.object({
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
template_tag: Joi.any(),
|
|
1307
|
-
|
|
1308
|
-
short_description: Joi.any(),
|
|
1309
|
-
|
|
1310
|
-
has_variant: Joi.boolean(),
|
|
1311
|
-
|
|
1312
|
-
media: Joi.array().items(Joi.any()),
|
|
1313
|
-
|
|
1314
|
-
brand_uid: Joi.number(),
|
|
1315
|
-
|
|
1316
|
-
grouped_attributes: Joi.any(),
|
|
1317
|
-
|
|
1318
|
-
rating: Joi.number(),
|
|
1319
|
-
|
|
1320
|
-
image_nature: Joi.any(),
|
|
1321
|
-
|
|
1322
|
-
name: Joi.any(),
|
|
1323
|
-
|
|
1324
|
-
is_set: Joi.boolean(),
|
|
1325
|
-
|
|
1326
|
-
description: Joi.any(),
|
|
1327
|
-
|
|
1328
|
-
rating_count: Joi.number(),
|
|
1329
|
-
|
|
1330
|
-
out_of_stock: Joi.boolean(),
|
|
1331
|
-
|
|
1332
|
-
highlights: Joi.array().items(Joi.any()),
|
|
1333
|
-
|
|
1334
|
-
item_code: Joi.any(),
|
|
1335
|
-
|
|
1336
|
-
images: Joi.array().items(Joi.any()),
|
|
1337
|
-
|
|
1338
|
-
slug: Joi.any(),
|
|
1339
|
-
|
|
1340
|
-
hsn_code: Joi.number(),
|
|
1341
|
-
|
|
1342
|
-
identifier: Joi.any(),
|
|
843
|
+
returnable: Joi.boolean(),
|
|
844
|
+
time: Joi.number(),
|
|
845
|
+
unit: Joi.string().allow(""),
|
|
1343
846
|
});
|
|
1344
847
|
}
|
|
1345
|
-
|
|
1346
|
-
static ProductInGroup() {
|
|
848
|
+
static SecondLevelChild() {
|
|
1347
849
|
return Joi.object({
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
product_uid: Joi.number().required(),
|
|
1357
|
-
|
|
1358
|
-
auto_select: Joi.boolean(),
|
|
1359
|
-
|
|
1360
|
-
max_quantity: Joi.number().required(),
|
|
1361
|
-
|
|
1362
|
-
product_details: CatalogModel.ProductDetails(),
|
|
1363
|
-
|
|
1364
|
-
min_quantity: Joi.number(),
|
|
850
|
+
_custom_json: Joi.any(),
|
|
851
|
+
action: CatalogModel.ProductListingAction(),
|
|
852
|
+
banners: CatalogModel.ImageUrls(),
|
|
853
|
+
childs: Joi.array().items(CatalogModel.ThirdLevelChild()),
|
|
854
|
+
name: Joi.string().allow(""),
|
|
855
|
+
slug: Joi.string().allow(""),
|
|
856
|
+
uid: Joi.number(),
|
|
1365
857
|
});
|
|
1366
858
|
}
|
|
1367
|
-
|
|
1368
|
-
static ProductGroupingModel() {
|
|
859
|
+
static Seller() {
|
|
1369
860
|
return Joi.object({
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
verified_by: CatalogModel.UserDetail(),
|
|
1375
|
-
|
|
1376
|
-
created_by: CatalogModel.UserDetail(),
|
|
1377
|
-
|
|
1378
|
-
modified_on: Joi.string().allow("").required(),
|
|
1379
|
-
|
|
1380
|
-
logo: Joi.string().allow("").allow(null),
|
|
1381
|
-
|
|
1382
|
-
is_active: Joi.boolean(),
|
|
1383
|
-
|
|
1384
|
-
modified_by: CatalogModel.UserDetail(),
|
|
1385
|
-
|
|
1386
|
-
name: Joi.any().required(),
|
|
1387
|
-
|
|
1388
|
-
same_store_assignment: Joi.boolean(),
|
|
1389
|
-
|
|
1390
|
-
page_visibility: Joi.array().items(Joi.any()),
|
|
1391
|
-
|
|
1392
|
-
products: Joi.array().items(CatalogModel.ProductInGroup()).required(),
|
|
1393
|
-
|
|
1394
|
-
created_on: Joi.string().allow("").required(),
|
|
1395
|
-
|
|
1396
|
-
meta: Joi.any(),
|
|
1397
|
-
|
|
1398
|
-
slug: Joi.any(),
|
|
1399
|
-
|
|
1400
|
-
verified_on: Joi.string().allow(""),
|
|
1401
|
-
|
|
1402
|
-
company_id: Joi.number(),
|
|
861
|
+
count: Joi.number(),
|
|
862
|
+
name: Joi.string().allow(""),
|
|
863
|
+
uid: Joi.number(),
|
|
1403
864
|
});
|
|
1404
865
|
}
|
|
1405
|
-
|
|
1406
|
-
static ProductBundle() {
|
|
866
|
+
static SellerGroupAttributes() {
|
|
1407
867
|
return Joi.object({
|
|
1408
|
-
|
|
868
|
+
details: Joi.array().items(CatalogModel.DetailsSchemaV3()),
|
|
869
|
+
title: Joi.string().allow(""),
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
static SellerPhoneNumber() {
|
|
873
|
+
return Joi.object({
|
|
874
|
+
country_code: Joi.number().required(),
|
|
875
|
+
number: Joi.string().allow("").required(),
|
|
1409
876
|
});
|
|
1410
877
|
}
|
|
1411
|
-
|
|
1412
878
|
static SellerV3() {
|
|
1413
879
|
return Joi.object({
|
|
1414
|
-
uid: Joi.number(),
|
|
1415
|
-
|
|
1416
880
|
count: Joi.number(),
|
|
1417
|
-
|
|
1418
881
|
name: Joi.string().allow(""),
|
|
882
|
+
uid: Joi.number(),
|
|
1419
883
|
});
|
|
1420
884
|
}
|
|
1421
|
-
|
|
1422
|
-
static ReturnConfigSchemaV3() {
|
|
885
|
+
static Size() {
|
|
1423
886
|
return Joi.object({
|
|
1424
|
-
|
|
1425
|
-
|
|
887
|
+
display: Joi.any(),
|
|
888
|
+
is_available: Joi.boolean(),
|
|
889
|
+
quantity: Joi.number(),
|
|
890
|
+
value: Joi.any(),
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
static SizeChart() {
|
|
894
|
+
return Joi.object({
|
|
895
|
+
description: Joi.string().allow(""),
|
|
896
|
+
headers: CatalogModel.ColumnHeaders(),
|
|
897
|
+
image: Joi.string().allow(""),
|
|
898
|
+
size_tip: Joi.string().allow(""),
|
|
899
|
+
sizes: Joi.array().items(CatalogModel.SizeChartValues()),
|
|
900
|
+
title: Joi.string().allow(""),
|
|
1426
901
|
unit: Joi.string().allow(""),
|
|
1427
|
-
|
|
1428
|
-
time: Joi.number(),
|
|
1429
902
|
});
|
|
1430
903
|
}
|
|
1431
|
-
|
|
1432
|
-
static ProductStockPriceV3() {
|
|
904
|
+
static SizeChartValues() {
|
|
1433
905
|
return Joi.object({
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
906
|
+
col_1: Joi.string().allow(""),
|
|
907
|
+
col_2: Joi.string().allow(""),
|
|
908
|
+
col_3: Joi.string().allow(""),
|
|
909
|
+
col_4: Joi.string().allow(""),
|
|
910
|
+
col_5: Joi.string().allow(""),
|
|
911
|
+
col_6: Joi.string().allow(""),
|
|
1439
912
|
});
|
|
1440
913
|
}
|
|
1441
|
-
|
|
1442
|
-
static StrategyWiseListingSchemaV3() {
|
|
914
|
+
static Store() {
|
|
1443
915
|
return Joi.object({
|
|
916
|
+
address: Joi.string().allow(""),
|
|
917
|
+
city: Joi.string().allow(""),
|
|
918
|
+
country: Joi.string().allow(""),
|
|
919
|
+
lat_long: CatalogModel.LatLong(),
|
|
920
|
+
name: Joi.string().allow(""),
|
|
1444
921
|
pincode: Joi.number(),
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
quantity: Joi.number(),
|
|
922
|
+
state: Joi.string().allow(""),
|
|
923
|
+
store_code: Joi.string().allow(""),
|
|
924
|
+
store_email: Joi.string().allow(""),
|
|
925
|
+
uid: Joi.number(),
|
|
1451
926
|
});
|
|
1452
927
|
}
|
|
1453
|
-
|
|
1454
|
-
static DetailsSchemaV3() {
|
|
928
|
+
static StoreAddressSerializer() {
|
|
1455
929
|
return Joi.object({
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
930
|
+
address1: Joi.string().allow(""),
|
|
931
|
+
address2: Joi.string().allow(""),
|
|
932
|
+
city: Joi.string().allow(""),
|
|
933
|
+
country: Joi.string().allow(""),
|
|
934
|
+
landmark: Joi.string().allow(""),
|
|
935
|
+
latitude: Joi.number(),
|
|
936
|
+
longitude: Joi.number(),
|
|
937
|
+
pincode: Joi.number(),
|
|
938
|
+
state: Joi.string().allow(""),
|
|
1461
939
|
});
|
|
1462
940
|
}
|
|
1463
|
-
|
|
1464
|
-
static SellerGroupAttributes() {
|
|
941
|
+
static StoreDepartments() {
|
|
1465
942
|
return Joi.object({
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
943
|
+
logo: Joi.string().allow(""),
|
|
944
|
+
name: Joi.string().allow(""),
|
|
945
|
+
priority_order: Joi.number(),
|
|
946
|
+
slug: Joi.string().allow(""),
|
|
947
|
+
uid: Joi.number(),
|
|
1469
948
|
});
|
|
1470
949
|
}
|
|
1471
|
-
|
|
1472
|
-
static ProductStockUnitPriceV3() {
|
|
950
|
+
static StoreDetail() {
|
|
1473
951
|
return Joi.object({
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
unit: Joi.string().allow(""),
|
|
1479
|
-
|
|
1480
|
-
currency_code: Joi.string().allow(""),
|
|
952
|
+
city: Joi.string().allow(""),
|
|
953
|
+
code: Joi.string().allow(""),
|
|
954
|
+
id: Joi.number(),
|
|
955
|
+
name: Joi.string().allow(""),
|
|
1481
956
|
});
|
|
1482
957
|
}
|
|
1483
|
-
|
|
1484
|
-
static ProductSetDistributionSizeV3() {
|
|
958
|
+
static StoreDetails() {
|
|
1485
959
|
return Joi.object({
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
960
|
+
_custom_json: Joi.any(),
|
|
961
|
+
address: CatalogModel.StoreAddressSerializer(),
|
|
962
|
+
company: CatalogModel.CompanyStore(),
|
|
963
|
+
contact_numbers: Joi.array().items(CatalogModel.SellerPhoneNumber()),
|
|
964
|
+
departments: Joi.array().items(CatalogModel.StoreDepartments()),
|
|
965
|
+
manager: CatalogModel.StoreManagerSerializer(),
|
|
966
|
+
name: Joi.string().allow(""),
|
|
967
|
+
timing: Joi.array().items(CatalogModel.StoreTiming()),
|
|
968
|
+
uid: Joi.number(),
|
|
1489
969
|
});
|
|
1490
970
|
}
|
|
1491
|
-
|
|
1492
|
-
static ProductSetDistributionV3() {
|
|
971
|
+
static StoreListingResponse() {
|
|
1493
972
|
return Joi.object({
|
|
1494
|
-
|
|
973
|
+
items: Joi.array().items(CatalogModel.Store()).required(),
|
|
974
|
+
page: CatalogModel.Page().required(),
|
|
1495
975
|
});
|
|
1496
976
|
}
|
|
1497
|
-
|
|
1498
|
-
static ProductSetV3() {
|
|
977
|
+
static StoreManagerSerializer() {
|
|
1499
978
|
return Joi.object({
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
979
|
+
email: Joi.string().allow(""),
|
|
980
|
+
mobile_no: CatalogModel.SellerPhoneNumber(),
|
|
981
|
+
name: Joi.string().allow(""),
|
|
1503
982
|
});
|
|
1504
983
|
}
|
|
1505
|
-
|
|
1506
|
-
static MarketPlaceSttributesSchemaV3() {
|
|
984
|
+
static StoreTiming() {
|
|
1507
985
|
return Joi.object({
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
986
|
+
closing: CatalogModel.Time(),
|
|
987
|
+
open: Joi.boolean(),
|
|
988
|
+
opening: CatalogModel.Time(),
|
|
989
|
+
weekday: Joi.string().allow(""),
|
|
1511
990
|
});
|
|
1512
991
|
}
|
|
1513
|
-
|
|
1514
992
|
static StoreV3() {
|
|
1515
993
|
return Joi.object({
|
|
1516
|
-
uid: Joi.number(),
|
|
1517
|
-
|
|
1518
994
|
count: Joi.number(),
|
|
1519
|
-
|
|
1520
995
|
name: Joi.string().allow(""),
|
|
996
|
+
uid: Joi.number(),
|
|
1521
997
|
});
|
|
1522
998
|
}
|
|
1523
|
-
|
|
1524
|
-
static ArticleAssignmentV3() {
|
|
1525
|
-
return Joi.object({
|
|
1526
|
-
strategy: Joi.string().allow(""),
|
|
1527
|
-
|
|
1528
|
-
level: Joi.string().allow(""),
|
|
1529
|
-
});
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
static ProductSizePriceResponseV3() {
|
|
999
|
+
static StrategyWiseListingSchemaV3() {
|
|
1533
1000
|
return Joi.object({
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
seller_count: Joi.number(),
|
|
1537
|
-
|
|
1538
|
-
return_config: CatalogModel.ReturnConfigSchemaV3(),
|
|
1539
|
-
|
|
1001
|
+
distance: Joi.number(),
|
|
1540
1002
|
pincode: Joi.number(),
|
|
1541
|
-
|
|
1542
|
-
price_per_piece: CatalogModel.ProductStockPriceV3(),
|
|
1543
|
-
|
|
1544
|
-
item_type: Joi.string().allow(""),
|
|
1545
|
-
|
|
1546
|
-
is_cod: Joi.boolean(),
|
|
1547
|
-
|
|
1548
|
-
strategy_wise_listing: Joi.array().items(
|
|
1549
|
-
CatalogModel.StrategyWiseListingSchemaV3()
|
|
1550
|
-
),
|
|
1551
|
-
|
|
1552
|
-
grouped_attributes: Joi.array().items(
|
|
1553
|
-
CatalogModel.SellerGroupAttributes()
|
|
1554
|
-
),
|
|
1555
|
-
|
|
1556
1003
|
quantity: Joi.number(),
|
|
1557
|
-
|
|
1558
|
-
article_id: Joi.string().allow(""),
|
|
1559
|
-
|
|
1560
|
-
price_per_unit: CatalogModel.ProductStockUnitPriceV3(),
|
|
1561
|
-
|
|
1562
|
-
set: CatalogModel.ProductSetV3(),
|
|
1563
|
-
|
|
1564
|
-
price: CatalogModel.ProductStockPriceV3(),
|
|
1565
|
-
|
|
1566
|
-
special_badge: Joi.string().allow(""),
|
|
1567
|
-
|
|
1568
|
-
is_gift: Joi.boolean(),
|
|
1569
|
-
|
|
1570
|
-
marketplace_attributes: Joi.array().items(
|
|
1571
|
-
CatalogModel.MarketPlaceSttributesSchemaV3()
|
|
1572
|
-
),
|
|
1573
|
-
|
|
1574
|
-
store: CatalogModel.StoreV3(),
|
|
1575
|
-
|
|
1576
|
-
discount: Joi.string().allow(""),
|
|
1577
|
-
|
|
1578
|
-
article_assignment: CatalogModel.ArticleAssignmentV3(),
|
|
1579
|
-
|
|
1580
|
-
long_lat: Joi.array().items(Joi.number()),
|
|
1004
|
+
tat: Joi.number(),
|
|
1581
1005
|
});
|
|
1582
1006
|
}
|
|
1583
|
-
|
|
1584
|
-
static ProductSizeSellerFilterSchemaV3() {
|
|
1007
|
+
static ThirdLevelChild() {
|
|
1585
1008
|
return Joi.object({
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1009
|
+
_custom_json: Joi.any(),
|
|
1010
|
+
action: CatalogModel.ProductListingAction(),
|
|
1011
|
+
banners: CatalogModel.ImageUrls(),
|
|
1012
|
+
childs: Joi.array().items(Joi.any()),
|
|
1590
1013
|
name: Joi.string().allow(""),
|
|
1014
|
+
slug: Joi.string().allow(""),
|
|
1015
|
+
uid: Joi.number(),
|
|
1591
1016
|
});
|
|
1592
1017
|
}
|
|
1593
|
-
|
|
1594
|
-
static ProductSizeSellersResponseV3() {
|
|
1018
|
+
static Time() {
|
|
1595
1019
|
return Joi.object({
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1020
|
+
hour: Joi.number(),
|
|
1021
|
+
minute: Joi.number(),
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
static UserDetail() {
|
|
1025
|
+
return Joi.object({
|
|
1026
|
+
contact: Joi.string().allow(""),
|
|
1027
|
+
super_user: Joi.boolean(),
|
|
1028
|
+
user_id: Joi.string().allow("").required(),
|
|
1029
|
+
username: Joi.string().allow("").required(),
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
static Weight() {
|
|
1033
|
+
return Joi.object({
|
|
1034
|
+
is_default: Joi.boolean().required(),
|
|
1035
|
+
shipping: Joi.number().required(),
|
|
1036
|
+
unit: Joi.string().allow("").required(),
|
|
1603
1037
|
});
|
|
1604
1038
|
}
|
|
1605
1039
|
}
|