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