@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,2071 +1,1417 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
class ConfigurationModel {
|
|
4
|
-
static
|
|
5
|
-
return Joi.object({
|
|
6
|
-
inventory: ConfigurationModel.AppInventoryConfig(),
|
|
7
|
-
|
|
8
|
-
authentication: ConfigurationModel.AuthenticationConfig(),
|
|
9
|
-
|
|
10
|
-
article_assignment: ConfigurationModel.ArticleAssignmentConfig(),
|
|
11
|
-
|
|
12
|
-
reward_points: ConfigurationModel.RewardPointsConfig(),
|
|
13
|
-
|
|
14
|
-
cart: ConfigurationModel.AppCartConfig(),
|
|
15
|
-
|
|
16
|
-
payment: ConfigurationModel.AppPaymentConfig(),
|
|
17
|
-
|
|
18
|
-
order: ConfigurationModel.AppOrderConfig(),
|
|
19
|
-
|
|
20
|
-
logistics: ConfigurationModel.AppLogisticsConfig(),
|
|
21
|
-
|
|
22
|
-
business: Joi.string().allow(""),
|
|
23
|
-
|
|
24
|
-
comms_enabled: Joi.boolean(),
|
|
25
|
-
|
|
26
|
-
platforms: Joi.array().items(Joi.string().allow("")),
|
|
27
|
-
|
|
28
|
-
_id: Joi.string().allow(""),
|
|
29
|
-
|
|
30
|
-
loyalty_points: ConfigurationModel.LoyaltyPointsConfig(),
|
|
31
|
-
|
|
32
|
-
app: Joi.string().allow(""),
|
|
33
|
-
|
|
34
|
-
created_at: Joi.string().allow(""),
|
|
35
|
-
|
|
36
|
-
updated_at: Joi.string().allow(""),
|
|
37
|
-
|
|
38
|
-
modified_by: Joi.string().allow(""),
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
static AppInventoryConfig() {
|
|
43
|
-
return Joi.object({
|
|
44
|
-
brand: ConfigurationModel.InventoryBrand(),
|
|
45
|
-
|
|
46
|
-
store: ConfigurationModel.InventoryStore(),
|
|
47
|
-
|
|
48
|
-
category: ConfigurationModel.InventoryCategory(),
|
|
49
|
-
|
|
50
|
-
price: ConfigurationModel.InventoryPrice(),
|
|
51
|
-
|
|
52
|
-
discount: ConfigurationModel.InventoryDiscount(),
|
|
53
|
-
|
|
54
|
-
out_of_stock: Joi.boolean(),
|
|
55
|
-
|
|
56
|
-
only_verified_products: Joi.boolean(),
|
|
57
|
-
|
|
58
|
-
franchise_enabled: Joi.boolean(),
|
|
59
|
-
|
|
60
|
-
exclude_category: Joi.array().items(Joi.any()),
|
|
61
|
-
|
|
62
|
-
image: Joi.array().items(Joi.string().allow("")),
|
|
63
|
-
|
|
64
|
-
company_store: Joi.array().items(Joi.any()),
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
static InventoryBrand() {
|
|
69
|
-
return Joi.object({
|
|
70
|
-
criteria: Joi.string().allow(""),
|
|
71
|
-
|
|
72
|
-
brands: Joi.array().items(Joi.any()),
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
static InventoryStore() {
|
|
77
|
-
return Joi.object({
|
|
78
|
-
criteria: Joi.string().allow(""),
|
|
79
|
-
|
|
80
|
-
stores: Joi.array().items(Joi.any()),
|
|
81
|
-
|
|
82
|
-
rules: ConfigurationModel.AppStoreRules(),
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
static AppStoreRules() {
|
|
87
|
-
return Joi.object({
|
|
88
|
-
companies: Joi.array().items(Joi.number()),
|
|
89
|
-
|
|
90
|
-
brands: Joi.array().items(Joi.any()),
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
static InventoryCategory() {
|
|
4
|
+
static Android() {
|
|
95
5
|
return Joi.object({
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
categories: Joi.array().items(Joi.any()),
|
|
6
|
+
api_key: Joi.string().allow(""),
|
|
7
|
+
application_id: Joi.string().allow(""),
|
|
99
8
|
});
|
|
100
9
|
}
|
|
101
|
-
|
|
102
|
-
static InventoryPrice() {
|
|
10
|
+
static App() {
|
|
103
11
|
return Joi.object({
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
12
|
+
auth: ConfigurationModel.ApplicationAuth(),
|
|
13
|
+
channel_type: Joi.string().allow(""),
|
|
14
|
+
company_id: Joi.string().allow(""),
|
|
15
|
+
desc: Joi.string().allow(""),
|
|
16
|
+
name: Joi.string().allow(""),
|
|
107
17
|
});
|
|
108
18
|
}
|
|
109
|
-
|
|
110
|
-
static InventoryDiscount() {
|
|
19
|
+
static AppCartConfig() {
|
|
111
20
|
return Joi.object({
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
21
|
+
bulk_coupons: Joi.boolean(),
|
|
22
|
+
delivery_charges: ConfigurationModel.DeliveryCharges(),
|
|
23
|
+
enabled: Joi.boolean(),
|
|
24
|
+
max_cart_items: Joi.number(),
|
|
25
|
+
min_cart_value: Joi.number(),
|
|
26
|
+
revenue_engine_coupon: Joi.boolean(),
|
|
115
27
|
});
|
|
116
28
|
}
|
|
117
|
-
|
|
118
|
-
static AuthenticationConfig() {
|
|
29
|
+
static AppCurrencyResponse() {
|
|
119
30
|
return Joi.object({
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
31
|
+
application: Joi.string().allow(""),
|
|
32
|
+
default_currency: ConfigurationModel.DefaultCurrency(),
|
|
33
|
+
supported_currency: Joi.array().items(ConfigurationModel.Currency()),
|
|
123
34
|
});
|
|
124
35
|
}
|
|
125
|
-
|
|
126
|
-
static ArticleAssignmentConfig() {
|
|
36
|
+
static AppDomain() {
|
|
127
37
|
return Joi.object({
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
post_order_reassignment: Joi.boolean(),
|
|
38
|
+
name: Joi.string().allow(""),
|
|
131
39
|
});
|
|
132
40
|
}
|
|
133
|
-
|
|
134
|
-
static ArticleAssignmentRules() {
|
|
41
|
+
static AppFeature() {
|
|
135
42
|
return Joi.object({
|
|
136
|
-
|
|
43
|
+
__v: Joi.number(),
|
|
44
|
+
_id: Joi.string().allow(""),
|
|
45
|
+
app: Joi.string().allow(""),
|
|
46
|
+
cart: ConfigurationModel.CartFeature(),
|
|
47
|
+
common: ConfigurationModel.CommonFeature(),
|
|
48
|
+
created_at: Joi.string().allow(""),
|
|
49
|
+
home_page: ConfigurationModel.HomePageFeature(),
|
|
50
|
+
landing_page: ConfigurationModel.LandingPageFeature(),
|
|
51
|
+
order: ConfigurationModel.OrderFeature(),
|
|
52
|
+
pcr: ConfigurationModel.PcrFeature(),
|
|
53
|
+
product_detail: ConfigurationModel.ProductDetailFeature(),
|
|
54
|
+
qr: ConfigurationModel.QrFeature(),
|
|
55
|
+
registration_page: ConfigurationModel.RegistrationPageFeature(),
|
|
56
|
+
updated_at: Joi.string().allow(""),
|
|
137
57
|
});
|
|
138
58
|
}
|
|
139
|
-
|
|
140
|
-
static StorePriority() {
|
|
59
|
+
static AppFeatureRequest() {
|
|
141
60
|
return Joi.object({
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
storetype_order: Joi.array().items(Joi.any()),
|
|
61
|
+
feature: ConfigurationModel.AppFeature(),
|
|
145
62
|
});
|
|
146
63
|
}
|
|
147
|
-
|
|
148
|
-
static AppCartConfig() {
|
|
64
|
+
static AppFeatureResponse() {
|
|
149
65
|
return Joi.object({
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
enabled: Joi.boolean(),
|
|
153
|
-
|
|
154
|
-
max_cart_items: Joi.number(),
|
|
155
|
-
|
|
156
|
-
min_cart_value: Joi.number(),
|
|
157
|
-
|
|
158
|
-
bulk_coupons: Joi.boolean(),
|
|
159
|
-
|
|
160
|
-
revenue_engine_coupon: Joi.boolean(),
|
|
66
|
+
feature: ConfigurationModel.AppFeature(),
|
|
161
67
|
});
|
|
162
68
|
}
|
|
163
|
-
|
|
164
|
-
static DeliveryCharges() {
|
|
69
|
+
static AppInventory() {
|
|
165
70
|
return Joi.object({
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
71
|
+
article_assignment: ConfigurationModel.InventoryArticleAssignment(),
|
|
72
|
+
brand: ConfigurationModel.InventoryBrandRule(),
|
|
73
|
+
franchise_enabled: Joi.boolean(),
|
|
74
|
+
image: Joi.array().items(Joi.string().allow("")),
|
|
75
|
+
only_verified_products: Joi.boolean(),
|
|
76
|
+
out_of_stock: Joi.boolean(),
|
|
77
|
+
payment: ConfigurationModel.InventoryPaymentConfig(),
|
|
78
|
+
store: ConfigurationModel.InventoryStoreRule(),
|
|
169
79
|
});
|
|
170
80
|
}
|
|
171
|
-
|
|
172
|
-
static Charges() {
|
|
81
|
+
static AppInventoryCompanies() {
|
|
173
82
|
return Joi.object({
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
83
|
+
company_type: Joi.string().allow(""),
|
|
84
|
+
name: Joi.string().allow(""),
|
|
85
|
+
uid: Joi.number(),
|
|
177
86
|
});
|
|
178
87
|
}
|
|
179
|
-
|
|
180
|
-
static AppPaymentConfig() {
|
|
88
|
+
static AppInventoryConfig() {
|
|
181
89
|
return Joi.object({
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
cod_amount_limit: Joi.number(),
|
|
195
|
-
|
|
196
|
-
cod_charges: Joi.number(),
|
|
90
|
+
brand: ConfigurationModel.InventoryBrand(),
|
|
91
|
+
category: ConfigurationModel.InventoryCategory(),
|
|
92
|
+
company_store: Joi.array().items(Joi.any()),
|
|
93
|
+
discount: ConfigurationModel.InventoryDiscount(),
|
|
94
|
+
exclude_category: Joi.array().items(Joi.any()),
|
|
95
|
+
franchise_enabled: Joi.boolean(),
|
|
96
|
+
image: Joi.array().items(Joi.string().allow("")),
|
|
97
|
+
only_verified_products: Joi.boolean(),
|
|
98
|
+
out_of_stock: Joi.boolean(),
|
|
99
|
+
price: ConfigurationModel.InventoryPrice(),
|
|
100
|
+
store: ConfigurationModel.InventoryStore(),
|
|
197
101
|
});
|
|
198
102
|
}
|
|
199
|
-
|
|
200
|
-
static CallbackUrl() {
|
|
103
|
+
static AppInventoryPartialUpdate() {
|
|
201
104
|
return Joi.object({
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
105
|
+
cart: ConfigurationModel.AppCartConfig(),
|
|
106
|
+
comms_enabled: Joi.boolean(),
|
|
107
|
+
communication: ConfigurationModel.CommunicationConfig(),
|
|
108
|
+
loyalty_points: ConfigurationModel.LoyaltyPointsConfig(),
|
|
109
|
+
payment: ConfigurationModel.AppPaymentConfig(),
|
|
110
|
+
reward_points: ConfigurationModel.RewardPointsConfig(),
|
|
205
111
|
});
|
|
206
112
|
}
|
|
207
|
-
|
|
208
|
-
static Methods() {
|
|
113
|
+
static AppInventoryStores() {
|
|
209
114
|
return Joi.object({
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
ps: ConfigurationModel.PaymentModeConfig(),
|
|
219
|
-
|
|
220
|
-
upi: ConfigurationModel.PaymentModeConfig(),
|
|
221
|
-
|
|
222
|
-
qr: ConfigurationModel.PaymentModeConfig(),
|
|
223
|
-
|
|
224
|
-
cod: ConfigurationModel.PaymentModeConfig(),
|
|
225
|
-
|
|
226
|
-
pp: ConfigurationModel.PaymentModeConfig(),
|
|
227
|
-
|
|
228
|
-
jp: ConfigurationModel.PaymentModeConfig(),
|
|
229
|
-
|
|
230
|
-
pac: ConfigurationModel.PaymentModeConfig(),
|
|
231
|
-
|
|
232
|
-
fc: ConfigurationModel.PaymentModeConfig(),
|
|
233
|
-
|
|
234
|
-
jiopp: ConfigurationModel.PaymentModeConfig(),
|
|
235
|
-
|
|
236
|
-
stripepg: ConfigurationModel.PaymentModeConfig(),
|
|
237
|
-
|
|
238
|
-
juspaypg: ConfigurationModel.PaymentModeConfig(),
|
|
239
|
-
|
|
240
|
-
payubizpg: ConfigurationModel.PaymentModeConfig(),
|
|
241
|
-
|
|
242
|
-
payumoneypg: ConfigurationModel.PaymentModeConfig(),
|
|
243
|
-
|
|
244
|
-
rupifipg: ConfigurationModel.PaymentModeConfig(),
|
|
245
|
-
|
|
246
|
-
simpl: ConfigurationModel.PaymentModeConfig(),
|
|
115
|
+
_id: Joi.string().allow(""),
|
|
116
|
+
company_id: Joi.number(),
|
|
117
|
+
display_name: Joi.string().allow(""),
|
|
118
|
+
modified_on: Joi.string().allow(""),
|
|
119
|
+
name: Joi.string().allow(""),
|
|
120
|
+
store_code: Joi.string().allow(""),
|
|
121
|
+
store_type: Joi.string().allow(""),
|
|
122
|
+
uid: Joi.number(),
|
|
247
123
|
});
|
|
248
124
|
}
|
|
249
|
-
|
|
250
|
-
static PaymentModeConfig() {
|
|
125
|
+
static Application() {
|
|
251
126
|
return Joi.object({
|
|
252
|
-
|
|
127
|
+
__v: Joi.number(),
|
|
128
|
+
_id: Joi.string().allow(""),
|
|
129
|
+
app_type: Joi.string().allow(""),
|
|
130
|
+
auth: ConfigurationModel.ApplicationAuth(),
|
|
131
|
+
banner: ConfigurationModel.SecureUrl(),
|
|
132
|
+
cache_ttl: Joi.number(),
|
|
133
|
+
channel_type: Joi.string().allow(""),
|
|
134
|
+
company_id: Joi.number(),
|
|
135
|
+
cors: ConfigurationModel.ApplicationCors(),
|
|
136
|
+
created_at: Joi.string().allow(""),
|
|
137
|
+
description: Joi.string().allow(""),
|
|
138
|
+
domain: ConfigurationModel.Domain(),
|
|
139
|
+
domains: Joi.array().items(ConfigurationModel.Domain()),
|
|
140
|
+
favicon: ConfigurationModel.SecureUrl(),
|
|
141
|
+
is_active: Joi.boolean(),
|
|
142
|
+
is_internal: Joi.boolean(),
|
|
143
|
+
logo: ConfigurationModel.SecureUrl(),
|
|
144
|
+
meta: Joi.array().items(ConfigurationModel.ApplicationMeta()),
|
|
145
|
+
mobile_logo: ConfigurationModel.SecureUrl(),
|
|
146
|
+
name: Joi.string().allow(""),
|
|
147
|
+
owner: Joi.string().allow(""),
|
|
148
|
+
redirections: Joi.array().items(
|
|
149
|
+
ConfigurationModel.ApplicationRedirections()
|
|
150
|
+
),
|
|
151
|
+
token: Joi.string().allow(""),
|
|
152
|
+
updated_at: Joi.string().allow(""),
|
|
153
|
+
website: ConfigurationModel.ApplicationWebsite(),
|
|
253
154
|
});
|
|
254
155
|
}
|
|
255
|
-
|
|
256
|
-
static PaymentSelectionLock() {
|
|
156
|
+
static ApplicationAuth() {
|
|
257
157
|
return Joi.object({
|
|
258
158
|
enabled: Joi.boolean(),
|
|
259
|
-
|
|
260
|
-
default_options: Joi.string().allow(""),
|
|
261
|
-
|
|
262
|
-
payment_identifier: Joi.string().allow(""),
|
|
263
159
|
});
|
|
264
160
|
}
|
|
265
|
-
|
|
266
|
-
static AppOrderConfig() {
|
|
161
|
+
static ApplicationCors() {
|
|
267
162
|
return Joi.object({
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
force_reassignment: Joi.boolean(),
|
|
271
|
-
|
|
272
|
-
message: Joi.string().allow(""),
|
|
163
|
+
domains: Joi.array().items(Joi.string().allow("")),
|
|
273
164
|
});
|
|
274
165
|
}
|
|
275
|
-
|
|
276
|
-
static AppLogisticsConfig() {
|
|
166
|
+
static ApplicationDetail() {
|
|
277
167
|
return Joi.object({
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
168
|
+
_id: Joi.string().allow(""),
|
|
169
|
+
banner: ConfigurationModel.SecureUrl().required(),
|
|
170
|
+
description: Joi.string().allow("").required(),
|
|
171
|
+
domain: ConfigurationModel.Domain(),
|
|
172
|
+
domains: Joi.array().items(ConfigurationModel.Domain()),
|
|
173
|
+
favicon: ConfigurationModel.SecureUrl().required(),
|
|
174
|
+
logo: ConfigurationModel.SecureUrl().required(),
|
|
175
|
+
mobile_logo: ConfigurationModel.SecureUrl().required(),
|
|
176
|
+
name: Joi.string().allow("").required(),
|
|
285
177
|
});
|
|
286
178
|
}
|
|
287
|
-
|
|
288
|
-
static LoyaltyPointsConfig() {
|
|
179
|
+
static ApplicationInformation() {
|
|
289
180
|
return Joi.object({
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
181
|
+
__v: Joi.number(),
|
|
182
|
+
_id: Joi.string().allow(""),
|
|
183
|
+
address: ConfigurationModel.InformationAddress(),
|
|
184
|
+
application: Joi.string().allow(""),
|
|
185
|
+
business_highlights: ConfigurationModel.BusinessHighlights(),
|
|
186
|
+
copyright_text: Joi.string().allow(""),
|
|
187
|
+
created_at: Joi.string().allow(""),
|
|
188
|
+
links: ConfigurationModel.Links(),
|
|
189
|
+
social_links: ConfigurationModel.SocialLinks(),
|
|
190
|
+
support: ConfigurationModel.InformationSupport(),
|
|
191
|
+
updated_at: Joi.string().allow(""),
|
|
293
192
|
});
|
|
294
193
|
}
|
|
295
|
-
|
|
296
|
-
static AppInventoryPartialUpdate() {
|
|
194
|
+
static ApplicationInventory() {
|
|
297
195
|
return Joi.object({
|
|
298
|
-
|
|
299
|
-
|
|
196
|
+
_id: Joi.string().allow(""),
|
|
197
|
+
app: Joi.string().allow(""),
|
|
198
|
+
article_assignment: ConfigurationModel.ArticleAssignmentConfig(),
|
|
199
|
+
authentication: ConfigurationModel.AuthenticationConfig(),
|
|
200
|
+
business: Joi.string().allow(""),
|
|
300
201
|
cart: ConfigurationModel.AppCartConfig(),
|
|
301
|
-
|
|
302
|
-
payment: ConfigurationModel.AppPaymentConfig(),
|
|
303
|
-
|
|
304
|
-
loyalty_points: ConfigurationModel.LoyaltyPointsConfig(),
|
|
305
|
-
|
|
306
202
|
comms_enabled: Joi.boolean(),
|
|
203
|
+
communication: ConfigurationModel.CommunicationConfig(),
|
|
204
|
+
created_at: Joi.string().allow(""),
|
|
205
|
+
inventory: ConfigurationModel.AppInventoryConfig(),
|
|
206
|
+
logistics: ConfigurationModel.AppLogisticsConfig(),
|
|
207
|
+
loyalty_points: ConfigurationModel.LoyaltyPointsConfig(),
|
|
208
|
+
modified_by: Joi.string().allow(""),
|
|
209
|
+
order: ConfigurationModel.AppOrderConfig(),
|
|
210
|
+
payment: ConfigurationModel.AppPaymentConfig(),
|
|
211
|
+
platforms: Joi.array().items(Joi.string().allow("")),
|
|
212
|
+
reward_points: ConfigurationModel.RewardPointsConfig(),
|
|
213
|
+
updated_at: Joi.string().allow(""),
|
|
307
214
|
});
|
|
308
215
|
}
|
|
309
|
-
|
|
310
|
-
static BrandCompanyInfo() {
|
|
216
|
+
static ApplicationMeta() {
|
|
311
217
|
return Joi.object({
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
company_id: Joi.number(),
|
|
218
|
+
name: Joi.string().allow(""),
|
|
219
|
+
value: Joi.string().allow(""),
|
|
315
220
|
});
|
|
316
221
|
}
|
|
317
|
-
|
|
318
|
-
static CompanyByBrandsRequest() {
|
|
222
|
+
static ApplicationRedirections() {
|
|
319
223
|
return Joi.object({
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
224
|
+
redirect_from: Joi.string().allow(""),
|
|
225
|
+
redirect_to: Joi.string().allow(""),
|
|
226
|
+
type: Joi.string().allow(""),
|
|
323
227
|
});
|
|
324
228
|
}
|
|
325
|
-
|
|
326
|
-
static CompanyByBrandsResponse() {
|
|
229
|
+
static ApplicationsResponse() {
|
|
327
230
|
return Joi.object({
|
|
328
|
-
items: Joi.array().items(ConfigurationModel.
|
|
329
|
-
|
|
231
|
+
items: Joi.array().items(ConfigurationModel.Application()),
|
|
330
232
|
page: ConfigurationModel.Page(),
|
|
331
233
|
});
|
|
332
234
|
}
|
|
333
|
-
|
|
334
|
-
static StoreByBrandsRequest() {
|
|
335
|
-
return Joi.object({
|
|
336
|
-
company_id: Joi.number(),
|
|
337
|
-
|
|
338
|
-
brands: Joi.number().required(),
|
|
339
|
-
|
|
340
|
-
search_text: Joi.string().allow(""),
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
static StoreByBrandsResponse() {
|
|
235
|
+
static ApplicationWebsite() {
|
|
345
236
|
return Joi.object({
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
page: ConfigurationModel.Page(),
|
|
237
|
+
basepath: Joi.string().allow(""),
|
|
238
|
+
enabled: Joi.boolean(),
|
|
349
239
|
});
|
|
350
240
|
}
|
|
351
|
-
|
|
352
|
-
static BrandStoreInfo() {
|
|
241
|
+
static AppLogisticsConfig() {
|
|
353
242
|
return Joi.object({
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
store_type: Joi.string().allow(""),
|
|
359
|
-
|
|
360
|
-
store_code: Joi.string().allow(""),
|
|
361
|
-
|
|
362
|
-
store_address: ConfigurationModel.OptedStoreAddress(),
|
|
363
|
-
|
|
364
|
-
company: ConfigurationModel.OptedCompany(),
|
|
243
|
+
dp_assignment: Joi.boolean(),
|
|
244
|
+
logistics_by_seller: Joi.boolean(),
|
|
245
|
+
same_day_delivery: Joi.boolean(),
|
|
246
|
+
serviceability_check: Joi.boolean(),
|
|
365
247
|
});
|
|
366
248
|
}
|
|
367
|
-
|
|
368
|
-
static CompanyBrandInfo() {
|
|
249
|
+
static AppOrderConfig() {
|
|
369
250
|
return Joi.object({
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
brand_logo_url: Joi.string().allow(""),
|
|
375
|
-
|
|
376
|
-
brand_banner_url: Joi.string().allow(""),
|
|
377
|
-
|
|
378
|
-
brand_banner_portrait_url: Joi.string().allow(""),
|
|
251
|
+
enabled: Joi.boolean(),
|
|
252
|
+
force_reassignment: Joi.boolean(),
|
|
253
|
+
message: Joi.string().allow(""),
|
|
379
254
|
});
|
|
380
255
|
}
|
|
381
|
-
|
|
382
|
-
static BrandsByCompanyResponse() {
|
|
256
|
+
static AppPaymentConfig() {
|
|
383
257
|
return Joi.object({
|
|
384
|
-
|
|
258
|
+
callback_url: ConfigurationModel.CallbackUrl(),
|
|
259
|
+
cod_amount_limit: Joi.number(),
|
|
260
|
+
cod_charges: Joi.number(),
|
|
261
|
+
enabled: Joi.boolean(),
|
|
262
|
+
methods: ConfigurationModel.Methods(),
|
|
263
|
+
mode_of_payment: Joi.string().allow(""),
|
|
264
|
+
payment_selection_lock: ConfigurationModel.PaymentSelectionLock(),
|
|
265
|
+
source: Joi.string().allow(""),
|
|
385
266
|
});
|
|
386
267
|
}
|
|
387
|
-
|
|
388
|
-
static CreateApplicationRequest() {
|
|
268
|
+
static AppStoreRules() {
|
|
389
269
|
return Joi.object({
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
configuration: ConfigurationModel.AppInventory(),
|
|
393
|
-
|
|
394
|
-
domain: ConfigurationModel.AppDomain(),
|
|
270
|
+
brands: Joi.array().items(Joi.any()),
|
|
271
|
+
companies: Joi.array().items(Joi.number()),
|
|
395
272
|
});
|
|
396
273
|
}
|
|
397
|
-
|
|
398
|
-
static CreateAppResponse() {
|
|
274
|
+
static AppSupportedCurrency() {
|
|
399
275
|
return Joi.object({
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
276
|
+
_id: Joi.string().allow(""),
|
|
277
|
+
application: Joi.string().allow(""),
|
|
278
|
+
created_at: Joi.string().allow(""),
|
|
279
|
+
default_currency: ConfigurationModel.DefaultCurrency(),
|
|
280
|
+
supported_currency: Joi.array().items(Joi.string().allow("")),
|
|
281
|
+
updated_at: Joi.string().allow(""),
|
|
403
282
|
});
|
|
404
283
|
}
|
|
405
|
-
|
|
406
|
-
static ApplicationsResponse() {
|
|
284
|
+
static ArticleAssignmentConfig() {
|
|
407
285
|
return Joi.object({
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
page: ConfigurationModel.Page(),
|
|
286
|
+
post_order_reassignment: Joi.boolean(),
|
|
287
|
+
rules: ConfigurationModel.ArticleAssignmentRules(),
|
|
411
288
|
});
|
|
412
289
|
}
|
|
413
|
-
|
|
414
|
-
static MobileAppConfiguration() {
|
|
290
|
+
static ArticleAssignmentRule() {
|
|
415
291
|
return Joi.object({
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
_id: Joi.string().allow(""),
|
|
419
|
-
|
|
420
|
-
app_name: Joi.string().allow(""),
|
|
421
|
-
|
|
422
|
-
landing_image: ConfigurationModel.LandingImage(),
|
|
423
|
-
|
|
424
|
-
splash_image: ConfigurationModel.SplashImage(),
|
|
425
|
-
|
|
426
|
-
application: Joi.string().allow(""),
|
|
427
|
-
|
|
428
|
-
platform_type: Joi.string().allow(""),
|
|
429
|
-
|
|
430
|
-
created_at: Joi.string().allow(""),
|
|
431
|
-
|
|
432
|
-
updated_at: Joi.string().allow(""),
|
|
433
|
-
|
|
434
|
-
__v: Joi.number(),
|
|
435
|
-
|
|
436
|
-
package_name: Joi.string().allow(""),
|
|
292
|
+
store_priority: ConfigurationModel.StorePriorityRule(),
|
|
437
293
|
});
|
|
438
294
|
}
|
|
439
|
-
|
|
440
|
-
static LandingImage() {
|
|
295
|
+
static ArticleAssignmentRules() {
|
|
441
296
|
return Joi.object({
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
secure_url: Joi.string().allow(""),
|
|
297
|
+
store_priority: ConfigurationModel.StorePriority(),
|
|
445
298
|
});
|
|
446
299
|
}
|
|
447
|
-
|
|
448
|
-
static SplashImage() {
|
|
300
|
+
static AuthenticationConfig() {
|
|
449
301
|
return Joi.object({
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
secure_url: Joi.string().allow(""),
|
|
302
|
+
provider: Joi.string().allow(""),
|
|
303
|
+
required: Joi.boolean(),
|
|
453
304
|
});
|
|
454
305
|
}
|
|
455
|
-
|
|
456
|
-
static MobileAppConfigRequest() {
|
|
306
|
+
static BlogLink() {
|
|
457
307
|
return Joi.object({
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
splash_image: ConfigurationModel.SplashImage(),
|
|
463
|
-
|
|
464
|
-
is_active: Joi.boolean(),
|
|
308
|
+
icon: Joi.string().allow(""),
|
|
309
|
+
link: Joi.string().allow(""),
|
|
310
|
+
title: Joi.string().allow(""),
|
|
465
311
|
});
|
|
466
312
|
}
|
|
467
|
-
|
|
468
|
-
static BuildVersionHistory() {
|
|
313
|
+
static BrandCompanyInfo() {
|
|
469
314
|
return Joi.object({
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
latest_available_version_name: Joi.string().allow(""),
|
|
315
|
+
company_id: Joi.number(),
|
|
316
|
+
company_name: Joi.string().allow(""),
|
|
473
317
|
});
|
|
474
318
|
}
|
|
475
|
-
|
|
476
|
-
static BuildVersion() {
|
|
319
|
+
static BrandsByCompanyResponse() {
|
|
477
320
|
return Joi.object({
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
application: Joi.string().allow(""),
|
|
481
|
-
|
|
482
|
-
platform_type: Joi.string().allow(""),
|
|
483
|
-
|
|
484
|
-
build_status: Joi.string().allow(""),
|
|
485
|
-
|
|
486
|
-
version_name: Joi.string().allow(""),
|
|
487
|
-
|
|
488
|
-
version_code: Joi.number(),
|
|
489
|
-
|
|
490
|
-
created_at: Joi.string().allow(""),
|
|
491
|
-
|
|
492
|
-
updated_at: Joi.string().allow(""),
|
|
493
|
-
|
|
494
|
-
__v: Joi.number(),
|
|
321
|
+
brands: ConfigurationModel.CompanyBrandInfo(),
|
|
495
322
|
});
|
|
496
323
|
}
|
|
497
|
-
|
|
498
|
-
|
|
324
|
+
static BrandStoreInfo() {
|
|
325
|
+
return Joi.object({
|
|
326
|
+
company: ConfigurationModel.OptedCompany(),
|
|
327
|
+
store_address: ConfigurationModel.OptedStoreAddress(),
|
|
328
|
+
store_code: Joi.string().allow(""),
|
|
329
|
+
store_id: Joi.number(),
|
|
330
|
+
store_name: Joi.string().allow(""),
|
|
331
|
+
store_type: Joi.string().allow(""),
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
static BuildVersion() {
|
|
499
335
|
return Joi.object({
|
|
336
|
+
__v: Joi.number(),
|
|
500
337
|
_id: Joi.string().allow(""),
|
|
501
|
-
|
|
502
|
-
supported_currency: Joi.array().items(Joi.string().allow("")),
|
|
503
|
-
|
|
504
338
|
application: Joi.string().allow(""),
|
|
505
|
-
|
|
506
|
-
default_currency: ConfigurationModel.DefaultCurrency(),
|
|
507
|
-
|
|
339
|
+
build_status: Joi.string().allow(""),
|
|
508
340
|
created_at: Joi.string().allow(""),
|
|
509
|
-
|
|
341
|
+
platform_type: Joi.string().allow(""),
|
|
510
342
|
updated_at: Joi.string().allow(""),
|
|
343
|
+
version_code: Joi.number(),
|
|
344
|
+
version_name: Joi.string().allow(""),
|
|
511
345
|
});
|
|
512
346
|
}
|
|
513
|
-
|
|
514
|
-
static DefaultCurrency() {
|
|
347
|
+
static BuildVersionHistory() {
|
|
515
348
|
return Joi.object({
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
code: Joi.string().allow(""),
|
|
349
|
+
latest_available_version_name: Joi.string().allow(""),
|
|
350
|
+
versions: ConfigurationModel.BuildVersion(),
|
|
519
351
|
});
|
|
520
352
|
}
|
|
521
|
-
|
|
522
|
-
static CurrencyConfig() {
|
|
353
|
+
static BusinessHighlights() {
|
|
523
354
|
return Joi.object({
|
|
524
355
|
_id: Joi.string().allow(""),
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
name: Joi.string().allow(""),
|
|
529
|
-
|
|
530
|
-
code: Joi.string().allow(""),
|
|
531
|
-
|
|
532
|
-
created_at: Joi.string().allow(""),
|
|
533
|
-
|
|
534
|
-
updated_at: Joi.string().allow(""),
|
|
535
|
-
|
|
536
|
-
decimal_digits: Joi.number(),
|
|
537
|
-
|
|
538
|
-
symbol: Joi.string().allow(""),
|
|
356
|
+
icon: Joi.string().allow(""),
|
|
357
|
+
sub_title: Joi.string().allow(""),
|
|
358
|
+
title: Joi.string().allow(""),
|
|
539
359
|
});
|
|
540
360
|
}
|
|
541
|
-
|
|
542
|
-
static DomainAdd() {
|
|
361
|
+
static CallbackUrl() {
|
|
543
362
|
return Joi.object({
|
|
544
|
-
|
|
363
|
+
app: Joi.string().allow(""),
|
|
364
|
+
web: Joi.string().allow(""),
|
|
545
365
|
});
|
|
546
366
|
}
|
|
547
|
-
|
|
548
|
-
static DomainAddRequest() {
|
|
367
|
+
static CartFeature() {
|
|
549
368
|
return Joi.object({
|
|
550
|
-
|
|
369
|
+
google_map: Joi.boolean(),
|
|
370
|
+
gst_input: Joi.boolean(),
|
|
371
|
+
placing_for_customer: Joi.boolean(),
|
|
372
|
+
revenue_engine_coupon: Joi.boolean(),
|
|
373
|
+
staff_selection: Joi.boolean(),
|
|
551
374
|
});
|
|
552
375
|
}
|
|
553
|
-
|
|
554
|
-
static DomainsResponse() {
|
|
376
|
+
static Charges() {
|
|
555
377
|
return Joi.object({
|
|
556
|
-
|
|
378
|
+
charges: Joi.number(),
|
|
379
|
+
threshold: Joi.number(),
|
|
557
380
|
});
|
|
558
381
|
}
|
|
559
|
-
|
|
560
|
-
static UpdateDomain() {
|
|
382
|
+
static CommonFeature() {
|
|
561
383
|
return Joi.object({
|
|
562
|
-
|
|
384
|
+
communication_optin_dialog: ConfigurationModel.CommunicationOptinDialogFeature(),
|
|
385
|
+
compare_products: ConfigurationModel.CompareProductsFeature(),
|
|
386
|
+
currency: ConfigurationModel.CurrencyFeature(),
|
|
387
|
+
deployment_store_selection: ConfigurationModel.DeploymentStoreSelectionFeature(),
|
|
388
|
+
feedback: ConfigurationModel.FeedbackFeature(),
|
|
389
|
+
listing_price: ConfigurationModel.ListingPriceFeature(),
|
|
390
|
+
revenue_engine: ConfigurationModel.RevenueEngineFeature(),
|
|
391
|
+
reward_points: ConfigurationModel.RewardPointsConfig(),
|
|
563
392
|
});
|
|
564
393
|
}
|
|
565
|
-
|
|
566
|
-
static UpdateDomainTypeRequest() {
|
|
394
|
+
static CommsConfig() {
|
|
567
395
|
return Joi.object({
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
action: Joi.string().allow(""),
|
|
396
|
+
enabled: Joi.boolean(),
|
|
571
397
|
});
|
|
572
398
|
}
|
|
573
|
-
|
|
574
|
-
static DomainStatusRequest() {
|
|
399
|
+
static CommunicationConfig() {
|
|
575
400
|
return Joi.object({
|
|
576
|
-
|
|
401
|
+
email: ConfigurationModel.CommsConfig(),
|
|
402
|
+
sms: ConfigurationModel.CommsConfig(),
|
|
403
|
+
voice: ConfigurationModel.CommsConfig(),
|
|
577
404
|
});
|
|
578
405
|
}
|
|
579
|
-
|
|
580
|
-
static DomainStatus() {
|
|
406
|
+
static CommunicationOptinDialogFeature() {
|
|
581
407
|
return Joi.object({
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
status: Joi.boolean(),
|
|
408
|
+
visibility: Joi.boolean(),
|
|
585
409
|
});
|
|
586
410
|
}
|
|
587
|
-
|
|
588
|
-
static DomainStatusResponse() {
|
|
411
|
+
static CompaniesResponse() {
|
|
589
412
|
return Joi.object({
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
status: Joi.array().items(ConfigurationModel.DomainStatus()),
|
|
413
|
+
items: ConfigurationModel.AppInventoryCompanies(),
|
|
414
|
+
page: ConfigurationModel.Page(),
|
|
593
415
|
});
|
|
594
416
|
}
|
|
595
|
-
|
|
596
|
-
static DomainSuggestionsRequest() {
|
|
417
|
+
static CompanyAboutAddress() {
|
|
597
418
|
return Joi.object({
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
419
|
+
address1: Joi.string().allow(""),
|
|
420
|
+
address2: Joi.string().allow(""),
|
|
421
|
+
address_type: Joi.string().allow(""),
|
|
422
|
+
city: Joi.string().allow(""),
|
|
423
|
+
country: Joi.string().allow(""),
|
|
424
|
+
pincode: Joi.number(),
|
|
425
|
+
state: Joi.string().allow(""),
|
|
601
426
|
});
|
|
602
427
|
}
|
|
603
|
-
|
|
604
|
-
static DomainSuggestion() {
|
|
428
|
+
static CompanyBrandInfo() {
|
|
605
429
|
return Joi.object({
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
price: Joi.number(),
|
|
613
|
-
|
|
614
|
-
currency: Joi.string().allow(""),
|
|
430
|
+
brand_banner_portrait_url: Joi.string().allow(""),
|
|
431
|
+
brand_banner_url: Joi.string().allow(""),
|
|
432
|
+
brand_logo_url: Joi.string().allow(""),
|
|
433
|
+
name: Joi.string().allow(""),
|
|
434
|
+
value: Joi.number(),
|
|
615
435
|
});
|
|
616
436
|
}
|
|
617
|
-
|
|
618
|
-
static DomainSuggestionsResponse() {
|
|
437
|
+
static CompanyByBrandsRequest() {
|
|
619
438
|
return Joi.object({
|
|
620
|
-
|
|
439
|
+
brands: Joi.number().required(),
|
|
440
|
+
search_text: Joi.string().allow(""),
|
|
621
441
|
});
|
|
622
442
|
}
|
|
623
|
-
|
|
624
|
-
static GetIntegrationsOptInsResponse() {
|
|
443
|
+
static CompanyByBrandsResponse() {
|
|
625
444
|
return Joi.object({
|
|
626
|
-
items: Joi.array().items(ConfigurationModel.
|
|
627
|
-
|
|
445
|
+
items: Joi.array().items(ConfigurationModel.BrandCompanyInfo()),
|
|
628
446
|
page: ConfigurationModel.Page(),
|
|
629
447
|
});
|
|
630
448
|
}
|
|
631
|
-
|
|
632
|
-
static IntegrationOptIn() {
|
|
449
|
+
static CompanyValidator() {
|
|
633
450
|
return Joi.object({
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
description: Joi.string().allow(""),
|
|
637
|
-
|
|
638
|
-
description_html: Joi.string().allow(""),
|
|
639
|
-
|
|
640
|
-
constants: Joi.string().allow(""),
|
|
641
|
-
|
|
642
|
-
companies: Joi.array().items(Joi.any()),
|
|
643
|
-
|
|
644
|
-
support: Joi.array().items(Joi.string().allow("")),
|
|
645
|
-
|
|
646
|
-
_id: Joi.string().allow(""),
|
|
647
|
-
|
|
648
|
-
name: Joi.string().allow(""),
|
|
649
|
-
|
|
650
|
-
meta: Joi.array().items(ConfigurationModel.IntegrationMeta()),
|
|
651
|
-
|
|
652
|
-
icon: Joi.string().allow(""),
|
|
653
|
-
|
|
654
|
-
owner: Joi.string().allow(""),
|
|
655
|
-
|
|
656
|
-
created_at: Joi.string().allow(""),
|
|
657
|
-
|
|
658
|
-
updated_at: Joi.string().allow(""),
|
|
659
|
-
|
|
660
|
-
token: Joi.string().allow(""),
|
|
661
|
-
|
|
662
|
-
secret: Joi.string().allow(""),
|
|
663
|
-
|
|
664
|
-
__v: Joi.number(),
|
|
451
|
+
browser_script: Joi.string().allow(""),
|
|
452
|
+
json_schema: Joi.array().items(ConfigurationModel.JsonSchema()),
|
|
665
453
|
});
|
|
666
454
|
}
|
|
667
|
-
|
|
668
|
-
static Validators() {
|
|
455
|
+
static CompareProductsFeature() {
|
|
669
456
|
return Joi.object({
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
store: ConfigurationModel.StoreValidator(),
|
|
673
|
-
|
|
674
|
-
inventory: ConfigurationModel.InventoryValidator(),
|
|
675
|
-
|
|
676
|
-
order: ConfigurationModel.OrderValidator(),
|
|
457
|
+
enabled: Joi.boolean(),
|
|
677
458
|
});
|
|
678
459
|
}
|
|
679
|
-
|
|
680
|
-
static CompanyValidator() {
|
|
460
|
+
static CreateApplicationRequest() {
|
|
681
461
|
return Joi.object({
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
462
|
+
app: ConfigurationModel.App(),
|
|
463
|
+
configuration: ConfigurationModel.AppInventory(),
|
|
464
|
+
domain: ConfigurationModel.AppDomain(),
|
|
685
465
|
});
|
|
686
466
|
}
|
|
687
|
-
|
|
688
|
-
static JsonSchema() {
|
|
467
|
+
static CreateAppResponse() {
|
|
689
468
|
return Joi.object({
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
key: Joi.string().allow(""),
|
|
693
|
-
|
|
694
|
-
type: Joi.string().allow(""),
|
|
695
|
-
|
|
696
|
-
tooltip: Joi.string().allow(""),
|
|
469
|
+
app: ConfigurationModel.Application(),
|
|
470
|
+
configuration: ConfigurationModel.ApplicationInventory(),
|
|
697
471
|
});
|
|
698
472
|
}
|
|
699
|
-
|
|
700
|
-
static StoreValidator() {
|
|
473
|
+
static Credentials() {
|
|
701
474
|
return Joi.object({
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
475
|
+
android: ConfigurationModel.Android(),
|
|
476
|
+
api_key: Joi.string().allow(""),
|
|
477
|
+
application_id: Joi.string().allow(""),
|
|
478
|
+
gcm_sender_id: Joi.string().allow(""),
|
|
479
|
+
ios: ConfigurationModel.Ios(),
|
|
480
|
+
project_id: Joi.string().allow(""),
|
|
705
481
|
});
|
|
706
482
|
}
|
|
707
|
-
|
|
708
|
-
static InventoryValidator() {
|
|
483
|
+
static Credit() {
|
|
709
484
|
return Joi.object({
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
browser_script: Joi.string().allow(""),
|
|
485
|
+
enabled: Joi.boolean(),
|
|
713
486
|
});
|
|
714
487
|
}
|
|
715
|
-
|
|
716
|
-
static OrderValidator() {
|
|
488
|
+
static CurrenciesResponse() {
|
|
717
489
|
return Joi.object({
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
browser_script: Joi.string().allow(""),
|
|
490
|
+
items: Joi.array().items(ConfigurationModel.Currency()),
|
|
721
491
|
});
|
|
722
492
|
}
|
|
723
|
-
|
|
724
|
-
static IntegrationMeta() {
|
|
493
|
+
static Currency() {
|
|
725
494
|
return Joi.object({
|
|
726
|
-
is_public: Joi.boolean(),
|
|
727
|
-
|
|
728
495
|
_id: Joi.string().allow(""),
|
|
729
|
-
|
|
496
|
+
code: Joi.string().allow(""),
|
|
497
|
+
created_at: Joi.string().allow(""),
|
|
498
|
+
decimal_digits: Joi.number(),
|
|
499
|
+
is_active: Joi.boolean(),
|
|
730
500
|
name: Joi.string().allow(""),
|
|
731
|
-
|
|
732
|
-
|
|
501
|
+
symbol: Joi.string().allow(""),
|
|
502
|
+
updated_at: Joi.string().allow(""),
|
|
733
503
|
});
|
|
734
504
|
}
|
|
735
|
-
|
|
736
|
-
static Integration() {
|
|
505
|
+
static CurrencyConfig() {
|
|
737
506
|
return Joi.object({
|
|
738
|
-
validators: ConfigurationModel.Validators(),
|
|
739
|
-
|
|
740
|
-
description: Joi.string().allow(""),
|
|
741
|
-
|
|
742
|
-
description_html: Joi.string().allow(""),
|
|
743
|
-
|
|
744
|
-
constants: Joi.any(),
|
|
745
|
-
|
|
746
|
-
companies: Joi.array().items(Joi.any()),
|
|
747
|
-
|
|
748
|
-
support: Joi.array().items(Joi.string().allow("")),
|
|
749
|
-
|
|
750
507
|
_id: Joi.string().allow(""),
|
|
751
|
-
|
|
752
|
-
name: Joi.string().allow(""),
|
|
753
|
-
|
|
754
|
-
meta: Joi.array().items(ConfigurationModel.IntegrationMeta()),
|
|
755
|
-
|
|
756
|
-
icon: Joi.string().allow(""),
|
|
757
|
-
|
|
758
|
-
owner: Joi.string().allow(""),
|
|
759
|
-
|
|
508
|
+
code: Joi.string().allow(""),
|
|
760
509
|
created_at: Joi.string().allow(""),
|
|
761
|
-
|
|
510
|
+
decimal_digits: Joi.number(),
|
|
511
|
+
is_active: Joi.boolean(),
|
|
512
|
+
name: Joi.string().allow(""),
|
|
513
|
+
symbol: Joi.string().allow(""),
|
|
762
514
|
updated_at: Joi.string().allow(""),
|
|
763
|
-
|
|
764
|
-
token: Joi.string().allow(""),
|
|
765
|
-
|
|
766
|
-
secret: Joi.string().allow(""),
|
|
767
|
-
|
|
768
|
-
__v: Joi.number(),
|
|
769
515
|
});
|
|
770
516
|
}
|
|
771
|
-
|
|
772
|
-
static IntegrationConfigResponse() {
|
|
517
|
+
static CurrencyFeature() {
|
|
773
518
|
return Joi.object({
|
|
774
|
-
|
|
519
|
+
default_currency: Joi.string().allow(""),
|
|
520
|
+
type: Joi.string().allow(""),
|
|
521
|
+
value: Joi.array().items(Joi.string().allow("")),
|
|
775
522
|
});
|
|
776
523
|
}
|
|
777
|
-
|
|
778
|
-
static IntegrationLevel() {
|
|
524
|
+
static Debit() {
|
|
779
525
|
return Joi.object({
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
last_patch: Joi.array().items(ConfigurationModel.LastPatch()),
|
|
785
|
-
|
|
786
|
-
_id: Joi.string().allow(""),
|
|
787
|
-
|
|
788
|
-
integration: Joi.string().allow(""),
|
|
789
|
-
|
|
790
|
-
level: Joi.string().allow(""),
|
|
791
|
-
|
|
792
|
-
uid: Joi.number(),
|
|
793
|
-
|
|
794
|
-
meta: Joi.array().items(ConfigurationModel.IntegrationMeta()),
|
|
795
|
-
|
|
796
|
-
token: Joi.string().allow(""),
|
|
797
|
-
|
|
798
|
-
created_at: Joi.string().allow(""),
|
|
799
|
-
|
|
800
|
-
updated_at: Joi.string().allow(""),
|
|
801
|
-
|
|
802
|
-
__v: Joi.number(),
|
|
803
|
-
|
|
804
|
-
data: Joi.any(),
|
|
526
|
+
auto_apply: Joi.boolean(),
|
|
527
|
+
enabled: Joi.boolean(),
|
|
528
|
+
strategy_channel: Joi.string().allow(""),
|
|
805
529
|
});
|
|
806
530
|
}
|
|
807
|
-
|
|
808
|
-
static UpdateIntegrationLevelRequest() {
|
|
531
|
+
static DefaultCurrency() {
|
|
809
532
|
return Joi.object({
|
|
810
|
-
|
|
533
|
+
code: Joi.string().allow(""),
|
|
534
|
+
ref: Joi.string().allow(""),
|
|
811
535
|
});
|
|
812
536
|
}
|
|
813
|
-
|
|
814
|
-
static OptedStoreIntegration() {
|
|
537
|
+
static DeliveryCharges() {
|
|
815
538
|
return Joi.object({
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
other_integration: ConfigurationModel.IntegrationOptIn(),
|
|
819
|
-
|
|
820
|
-
other_entity: ConfigurationModel.OtherEntity(),
|
|
539
|
+
charges: ConfigurationModel.Charges(),
|
|
540
|
+
enabled: Joi.boolean(),
|
|
821
541
|
});
|
|
822
542
|
}
|
|
823
|
-
|
|
824
|
-
static OtherEntity() {
|
|
543
|
+
static DeploymentMeta() {
|
|
825
544
|
return Joi.object({
|
|
826
|
-
opted: Joi.boolean(),
|
|
827
|
-
|
|
828
|
-
permissions: Joi.array().items(Joi.string().allow("")),
|
|
829
|
-
|
|
830
|
-
last_patch: Joi.array().items(ConfigurationModel.LastPatch()),
|
|
831
|
-
|
|
832
545
|
_id: Joi.string().allow(""),
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
uid: Joi.number(),
|
|
839
|
-
|
|
840
|
-
data: ConfigurationModel.OtherEntityData(),
|
|
841
|
-
|
|
842
|
-
meta: Joi.array().items(Joi.any()),
|
|
843
|
-
|
|
844
|
-
token: Joi.string().allow(""),
|
|
845
|
-
|
|
846
|
-
created_at: Joi.string().allow(""),
|
|
847
|
-
|
|
848
|
-
updated_at: Joi.string().allow(""),
|
|
849
|
-
|
|
850
|
-
__v: Joi.number(),
|
|
546
|
+
all_stores: Joi.boolean(),
|
|
547
|
+
app: Joi.string().allow(""),
|
|
548
|
+
deployed_stores: Joi.array().items(Joi.number()),
|
|
549
|
+
enabled: Joi.boolean(),
|
|
550
|
+
type: Joi.string().allow(""),
|
|
851
551
|
});
|
|
852
552
|
}
|
|
853
|
-
|
|
854
|
-
static LastPatch() {
|
|
553
|
+
static DeploymentStoreSelectionFeature() {
|
|
855
554
|
return Joi.object({
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
path: Joi.string().allow(""),
|
|
859
|
-
|
|
860
|
-
value: Joi.string().allow(""),
|
|
555
|
+
enabled: Joi.boolean(),
|
|
556
|
+
type: Joi.string().allow(""),
|
|
861
557
|
});
|
|
862
558
|
}
|
|
863
|
-
|
|
864
|
-
static OtherEntityData() {
|
|
559
|
+
static Domain() {
|
|
865
560
|
return Joi.object({
|
|
866
|
-
|
|
561
|
+
_id: Joi.string().allow(""),
|
|
562
|
+
is_predefined: Joi.boolean(),
|
|
563
|
+
is_primary: Joi.boolean(),
|
|
564
|
+
is_shortlink: Joi.boolean(),
|
|
565
|
+
name: Joi.string().allow(""),
|
|
566
|
+
verified: Joi.boolean(),
|
|
867
567
|
});
|
|
868
568
|
}
|
|
869
|
-
|
|
870
|
-
static App() {
|
|
569
|
+
static DomainAdd() {
|
|
871
570
|
return Joi.object({
|
|
872
|
-
company_id: Joi.string().allow(""),
|
|
873
|
-
|
|
874
|
-
channel_type: Joi.string().allow(""),
|
|
875
|
-
|
|
876
|
-
auth: ConfigurationModel.ApplicationAuth(),
|
|
877
|
-
|
|
878
571
|
name: Joi.string().allow(""),
|
|
879
|
-
|
|
880
|
-
desc: Joi.string().allow(""),
|
|
881
572
|
});
|
|
882
573
|
}
|
|
883
|
-
|
|
884
|
-
static AppInventory() {
|
|
574
|
+
static DomainAddRequest() {
|
|
885
575
|
return Joi.object({
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
store: ConfigurationModel.InventoryStoreRule(),
|
|
889
|
-
|
|
890
|
-
image: Joi.array().items(Joi.string().allow("")),
|
|
891
|
-
|
|
892
|
-
franchise_enabled: Joi.boolean(),
|
|
893
|
-
|
|
894
|
-
out_of_stock: Joi.boolean(),
|
|
895
|
-
|
|
896
|
-
only_verified_products: Joi.boolean(),
|
|
897
|
-
|
|
898
|
-
payment: ConfigurationModel.InventoryPaymentConfig(),
|
|
899
|
-
|
|
900
|
-
article_assignment: ConfigurationModel.InventoryArticleAssignment(),
|
|
576
|
+
domain: ConfigurationModel.DomainAdd(),
|
|
901
577
|
});
|
|
902
578
|
}
|
|
903
|
-
|
|
904
|
-
static AppDomain() {
|
|
579
|
+
static DomainsResponse() {
|
|
905
580
|
return Joi.object({
|
|
906
|
-
|
|
581
|
+
domains: Joi.array().items(ConfigurationModel.Domain()),
|
|
907
582
|
});
|
|
908
583
|
}
|
|
909
|
-
|
|
910
|
-
static CompaniesResponse() {
|
|
584
|
+
static DomainStatus() {
|
|
911
585
|
return Joi.object({
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
page: ConfigurationModel.Page(),
|
|
586
|
+
display: Joi.string().allow(""),
|
|
587
|
+
status: Joi.boolean(),
|
|
915
588
|
});
|
|
916
589
|
}
|
|
917
|
-
|
|
918
|
-
static AppInventoryCompanies() {
|
|
590
|
+
static DomainStatusRequest() {
|
|
919
591
|
return Joi.object({
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
name: Joi.string().allow(""),
|
|
923
|
-
|
|
924
|
-
company_type: Joi.string().allow(""),
|
|
592
|
+
domain_url: Joi.string().allow(""),
|
|
925
593
|
});
|
|
926
594
|
}
|
|
927
|
-
|
|
928
|
-
|
|
595
|
+
static DomainStatusResponse() {
|
|
596
|
+
return Joi.object({
|
|
597
|
+
connected: Joi.boolean(),
|
|
598
|
+
status: Joi.array().items(ConfigurationModel.DomainStatus()),
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
static DomainSuggestion() {
|
|
602
|
+
return Joi.object({
|
|
603
|
+
currency: Joi.string().allow(""),
|
|
604
|
+
is_available: Joi.boolean().required(),
|
|
605
|
+
name: Joi.string().allow("").required(),
|
|
606
|
+
price: Joi.number(),
|
|
607
|
+
unsupported: Joi.boolean(),
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
static DomainSuggestionsRequest() {
|
|
611
|
+
return Joi.object({
|
|
612
|
+
custom: Joi.boolean(),
|
|
613
|
+
domain_url: Joi.string().allow(""),
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
static DomainSuggestionsResponse() {
|
|
617
|
+
return Joi.object({
|
|
618
|
+
domains: Joi.array().items(ConfigurationModel.DomainSuggestion()),
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
static FacebookLink() {
|
|
929
622
|
return Joi.object({
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
623
|
+
icon: Joi.string().allow(""),
|
|
624
|
+
link: Joi.string().allow(""),
|
|
625
|
+
title: Joi.string().allow(""),
|
|
933
626
|
});
|
|
934
627
|
}
|
|
935
|
-
|
|
936
|
-
static AppInventoryStores() {
|
|
628
|
+
static FeedbackFeature() {
|
|
937
629
|
return Joi.object({
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
modified_on: Joi.string().allow(""),
|
|
941
|
-
|
|
942
|
-
uid: Joi.number(),
|
|
943
|
-
|
|
944
|
-
name: Joi.string().allow(""),
|
|
945
|
-
|
|
946
|
-
display_name: Joi.string().allow(""),
|
|
947
|
-
|
|
948
|
-
store_type: Joi.string().allow(""),
|
|
949
|
-
|
|
950
|
-
store_code: Joi.string().allow(""),
|
|
951
|
-
|
|
952
|
-
company_id: Joi.number(),
|
|
630
|
+
enabled: Joi.boolean(),
|
|
953
631
|
});
|
|
954
632
|
}
|
|
955
|
-
|
|
956
633
|
static FilterOrderingStoreRequest() {
|
|
957
634
|
return Joi.object({
|
|
958
635
|
all_stores: Joi.boolean(),
|
|
959
|
-
|
|
960
636
|
deployed_stores: Joi.array().items(Joi.number()),
|
|
961
|
-
|
|
962
637
|
q: Joi.string().allow(""),
|
|
963
638
|
});
|
|
964
639
|
}
|
|
965
|
-
|
|
966
|
-
static DeploymentMeta() {
|
|
640
|
+
static Firebase() {
|
|
967
641
|
return Joi.object({
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
all_stores: Joi.boolean(),
|
|
971
|
-
|
|
642
|
+
credentials: ConfigurationModel.Credentials(),
|
|
972
643
|
enabled: Joi.boolean(),
|
|
973
|
-
|
|
974
|
-
type: Joi.string().allow(""),
|
|
975
|
-
|
|
976
|
-
_id: Joi.string().allow(""),
|
|
977
|
-
|
|
978
|
-
app: Joi.string().allow(""),
|
|
979
644
|
});
|
|
980
645
|
}
|
|
981
|
-
|
|
982
|
-
static OrderingStoreConfig() {
|
|
646
|
+
static Freshchat() {
|
|
983
647
|
return Joi.object({
|
|
984
|
-
|
|
648
|
+
credentials: ConfigurationModel.FreshchatCredentials(),
|
|
649
|
+
enabled: Joi.boolean(),
|
|
985
650
|
});
|
|
986
651
|
}
|
|
987
|
-
|
|
988
|
-
static OtherSellerCompany() {
|
|
652
|
+
static FreshchatCredentials() {
|
|
989
653
|
return Joi.object({
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
654
|
+
app_id: Joi.string().allow(""),
|
|
655
|
+
app_key: Joi.string().allow(""),
|
|
656
|
+
web_token: Joi.string().allow(""),
|
|
993
657
|
});
|
|
994
658
|
}
|
|
995
|
-
|
|
996
|
-
static OtherSellerApplication() {
|
|
659
|
+
static FyndRewards() {
|
|
997
660
|
return Joi.object({
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
description: Joi.string().allow(""),
|
|
1001
|
-
|
|
1002
|
-
_id: Joi.string().allow(""),
|
|
1003
|
-
|
|
1004
|
-
domain: Joi.string().allow(""),
|
|
1005
|
-
|
|
1006
|
-
company: ConfigurationModel.OtherSellerCompany(),
|
|
1007
|
-
|
|
1008
|
-
opt_type: Joi.string().allow(""),
|
|
661
|
+
credentials: ConfigurationModel.FyndRewardsCredentials(),
|
|
1009
662
|
});
|
|
1010
663
|
}
|
|
1011
|
-
|
|
1012
|
-
static OtherSellerApplications() {
|
|
664
|
+
static FyndRewardsCredentials() {
|
|
1013
665
|
return Joi.object({
|
|
1014
|
-
|
|
1015
|
-
|
|
666
|
+
public_key: Joi.string().allow(""),
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
static GetIntegrationsOptInsResponse() {
|
|
670
|
+
return Joi.object({
|
|
671
|
+
items: Joi.array().items(ConfigurationModel.IntegrationOptIn()),
|
|
1016
672
|
page: ConfigurationModel.Page(),
|
|
1017
673
|
});
|
|
1018
674
|
}
|
|
1019
|
-
|
|
1020
|
-
static OptedApplicationResponse() {
|
|
675
|
+
static GoogleMap() {
|
|
1021
676
|
return Joi.object({
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
description: Joi.string().allow(""),
|
|
1025
|
-
|
|
1026
|
-
_id: Joi.string().allow(""),
|
|
1027
|
-
|
|
1028
|
-
domain: Joi.string().allow(""),
|
|
1029
|
-
|
|
1030
|
-
company: ConfigurationModel.OptedCompany(),
|
|
1031
|
-
|
|
1032
|
-
opted_inventory: ConfigurationModel.OptedInventory(),
|
|
1033
|
-
|
|
1034
|
-
opt_out_inventory: ConfigurationModel.OptOutInventory(),
|
|
677
|
+
credentials: ConfigurationModel.GoogleMapCredentials(),
|
|
1035
678
|
});
|
|
1036
679
|
}
|
|
1037
|
-
|
|
1038
|
-
static OptedCompany() {
|
|
680
|
+
static GoogleMapCredentials() {
|
|
1039
681
|
return Joi.object({
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
name: Joi.string().allow(""),
|
|
682
|
+
api_key: Joi.string().allow(""),
|
|
1043
683
|
});
|
|
1044
684
|
}
|
|
1045
|
-
|
|
1046
|
-
static OptedInventory() {
|
|
685
|
+
static GooglePlusLink() {
|
|
1047
686
|
return Joi.object({
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
687
|
+
icon: Joi.string().allow(""),
|
|
688
|
+
link: Joi.string().allow(""),
|
|
689
|
+
title: Joi.string().allow(""),
|
|
1051
690
|
});
|
|
1052
691
|
}
|
|
1053
|
-
|
|
1054
|
-
static OptType() {
|
|
692
|
+
static Gtm() {
|
|
1055
693
|
return Joi.object({
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
display: Joi.string().allow(""),
|
|
694
|
+
credentials: ConfigurationModel.GtmCredentials(),
|
|
695
|
+
enabled: Joi.boolean(),
|
|
1059
696
|
});
|
|
1060
697
|
}
|
|
1061
|
-
|
|
1062
|
-
static OptedStore() {
|
|
698
|
+
static GtmCredentials() {
|
|
1063
699
|
return Joi.object({
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
store_code: Joi.string().allow(""),
|
|
1067
|
-
|
|
1068
|
-
_id: Joi.string().allow(""),
|
|
1069
|
-
|
|
1070
|
-
modified_on: Joi.string().allow(""),
|
|
1071
|
-
|
|
1072
|
-
uid: Joi.number(),
|
|
1073
|
-
|
|
1074
|
-
address: ConfigurationModel.OptedStoreAddress(),
|
|
1075
|
-
|
|
1076
|
-
display_name: Joi.string().allow(""),
|
|
1077
|
-
|
|
1078
|
-
store_type: Joi.string().allow(""),
|
|
1079
|
-
|
|
1080
|
-
company_id: Joi.number(),
|
|
700
|
+
api_key: Joi.string().allow(""),
|
|
1081
701
|
});
|
|
1082
702
|
}
|
|
1083
|
-
|
|
1084
|
-
static OptOutInventory() {
|
|
703
|
+
static HomePageFeature() {
|
|
1085
704
|
return Joi.object({
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
company: Joi.array().items(Joi.number()).required(),
|
|
705
|
+
order_processing: Joi.boolean(),
|
|
1089
706
|
});
|
|
1090
707
|
}
|
|
1091
|
-
|
|
1092
|
-
static TokenResponse() {
|
|
708
|
+
static InformationAddress() {
|
|
1093
709
|
return Joi.object({
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
created_at: Joi.string().allow(""),
|
|
1101
|
-
|
|
1102
|
-
updated_at: Joi.string().allow(""),
|
|
1103
|
-
|
|
1104
|
-
__v: Joi.number(),
|
|
710
|
+
address_line: Joi.array().items(Joi.string().allow("")),
|
|
711
|
+
city: Joi.string().allow(""),
|
|
712
|
+
country: Joi.string().allow(""),
|
|
713
|
+
loc: Joi.string().allow(""),
|
|
714
|
+
phone: ConfigurationModel.InformationPhone(),
|
|
715
|
+
pincode: Joi.number(),
|
|
1105
716
|
});
|
|
1106
717
|
}
|
|
1107
|
-
|
|
1108
|
-
static Tokens() {
|
|
718
|
+
static InformationPhone() {
|
|
1109
719
|
return Joi.object({
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
moengage: ConfigurationModel.Moengage(),
|
|
1113
|
-
|
|
1114
|
-
segment: ConfigurationModel.Segment(),
|
|
1115
|
-
|
|
1116
|
-
gtm: ConfigurationModel.Gtm(),
|
|
1117
|
-
|
|
1118
|
-
freshchat: ConfigurationModel.Freshchat(),
|
|
1119
|
-
|
|
1120
|
-
safetynet: ConfigurationModel.Safetynet(),
|
|
1121
|
-
|
|
1122
|
-
fynd_rewards: ConfigurationModel.FyndRewards(),
|
|
1123
|
-
|
|
1124
|
-
google_map: ConfigurationModel.GoogleMap(),
|
|
720
|
+
code: Joi.string().allow(""),
|
|
721
|
+
number: Joi.string().allow(""),
|
|
1125
722
|
});
|
|
1126
723
|
}
|
|
1127
|
-
|
|
1128
|
-
static Firebase() {
|
|
724
|
+
static InformationSupport() {
|
|
1129
725
|
return Joi.object({
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
726
|
+
email: Joi.array().items(Joi.string().allow("")),
|
|
727
|
+
phone: Joi.array().items(Joi.string().allow("")),
|
|
728
|
+
timing: Joi.string().allow(""),
|
|
1133
729
|
});
|
|
1134
730
|
}
|
|
1135
|
-
|
|
1136
|
-
static Credentials() {
|
|
731
|
+
static InstagramLink() {
|
|
1137
732
|
return Joi.object({
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
project_id: Joi.string().allow(""),
|
|
1143
|
-
|
|
1144
|
-
gcm_sender_id: Joi.string().allow(""),
|
|
1145
|
-
|
|
1146
|
-
application_id: Joi.string().allow(""),
|
|
1147
|
-
|
|
1148
|
-
api_key: Joi.string().allow(""),
|
|
733
|
+
icon: Joi.string().allow(""),
|
|
734
|
+
link: Joi.string().allow(""),
|
|
735
|
+
title: Joi.string().allow(""),
|
|
1149
736
|
});
|
|
1150
737
|
}
|
|
1151
|
-
|
|
1152
|
-
static Ios() {
|
|
738
|
+
static Integration() {
|
|
1153
739
|
return Joi.object({
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
740
|
+
__v: Joi.number(),
|
|
741
|
+
_id: Joi.string().allow(""),
|
|
742
|
+
companies: Joi.array().items(Joi.any()),
|
|
743
|
+
constants: Joi.any(),
|
|
744
|
+
created_at: Joi.string().allow(""),
|
|
745
|
+
description: Joi.string().allow(""),
|
|
746
|
+
description_html: Joi.string().allow(""),
|
|
747
|
+
icon: Joi.string().allow(""),
|
|
748
|
+
meta: Joi.array().items(ConfigurationModel.IntegrationMeta()),
|
|
749
|
+
name: Joi.string().allow(""),
|
|
750
|
+
owner: Joi.string().allow(""),
|
|
751
|
+
secret: Joi.string().allow(""),
|
|
752
|
+
support: Joi.array().items(Joi.string().allow("")),
|
|
753
|
+
token: Joi.string().allow(""),
|
|
754
|
+
updated_at: Joi.string().allow(""),
|
|
755
|
+
validators: ConfigurationModel.Validators(),
|
|
1157
756
|
});
|
|
1158
757
|
}
|
|
1159
|
-
|
|
1160
|
-
static Android() {
|
|
758
|
+
static IntegrationConfigResponse() {
|
|
1161
759
|
return Joi.object({
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
760
|
+
items: Joi.array().items(ConfigurationModel.IntegrationLevel()),
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
static IntegrationLevel() {
|
|
764
|
+
return Joi.object({
|
|
765
|
+
__v: Joi.number(),
|
|
766
|
+
_id: Joi.string().allow(""),
|
|
767
|
+
created_at: Joi.string().allow(""),
|
|
768
|
+
data: Joi.any(),
|
|
769
|
+
integration: Joi.string().allow(""),
|
|
770
|
+
last_patch: Joi.array().items(ConfigurationModel.LastPatch()),
|
|
771
|
+
level: Joi.string().allow(""),
|
|
772
|
+
meta: Joi.array().items(ConfigurationModel.IntegrationMeta()),
|
|
773
|
+
opted: Joi.boolean(),
|
|
774
|
+
permissions: Joi.array().items(Joi.any()),
|
|
775
|
+
token: Joi.string().allow(""),
|
|
776
|
+
uid: Joi.number(),
|
|
777
|
+
updated_at: Joi.string().allow(""),
|
|
1165
778
|
});
|
|
1166
779
|
}
|
|
1167
|
-
|
|
1168
|
-
static Moengage() {
|
|
780
|
+
static IntegrationMeta() {
|
|
1169
781
|
return Joi.object({
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
782
|
+
_id: Joi.string().allow(""),
|
|
783
|
+
is_public: Joi.boolean(),
|
|
784
|
+
name: Joi.string().allow(""),
|
|
785
|
+
value: Joi.string().allow(""),
|
|
1173
786
|
});
|
|
1174
787
|
}
|
|
1175
|
-
|
|
1176
|
-
static MoengageCredentials() {
|
|
788
|
+
static IntegrationOptIn() {
|
|
1177
789
|
return Joi.object({
|
|
1178
|
-
|
|
790
|
+
__v: Joi.number(),
|
|
791
|
+
_id: Joi.string().allow(""),
|
|
792
|
+
companies: Joi.array().items(Joi.any()),
|
|
793
|
+
constants: Joi.string().allow(""),
|
|
794
|
+
created_at: Joi.string().allow(""),
|
|
795
|
+
description: Joi.string().allow(""),
|
|
796
|
+
description_html: Joi.string().allow(""),
|
|
797
|
+
icon: Joi.string().allow(""),
|
|
798
|
+
meta: Joi.array().items(ConfigurationModel.IntegrationMeta()),
|
|
799
|
+
name: Joi.string().allow(""),
|
|
800
|
+
owner: Joi.string().allow(""),
|
|
801
|
+
secret: Joi.string().allow(""),
|
|
802
|
+
support: Joi.array().items(Joi.string().allow("")),
|
|
803
|
+
token: Joi.string().allow(""),
|
|
804
|
+
updated_at: Joi.string().allow(""),
|
|
805
|
+
validators: ConfigurationModel.Validators(),
|
|
1179
806
|
});
|
|
1180
807
|
}
|
|
1181
|
-
|
|
1182
|
-
static Segment() {
|
|
808
|
+
static InvalidPayloadRequest() {
|
|
1183
809
|
return Joi.object({
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
enabled: Joi.boolean(),
|
|
810
|
+
message: Joi.string().allow(""),
|
|
1187
811
|
});
|
|
1188
812
|
}
|
|
1189
|
-
|
|
1190
|
-
static SegmentCredentials() {
|
|
813
|
+
static InventoryArticleAssignment() {
|
|
1191
814
|
return Joi.object({
|
|
1192
|
-
|
|
815
|
+
post_order_reassignment: Joi.boolean(),
|
|
816
|
+
rules: ConfigurationModel.ArticleAssignmentRule(),
|
|
1193
817
|
});
|
|
1194
818
|
}
|
|
1195
|
-
|
|
1196
|
-
static Gtm() {
|
|
819
|
+
static InventoryBrand() {
|
|
1197
820
|
return Joi.object({
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
enabled: Joi.boolean(),
|
|
821
|
+
brands: Joi.array().items(Joi.any()),
|
|
822
|
+
criteria: Joi.string().allow(""),
|
|
1201
823
|
});
|
|
1202
824
|
}
|
|
1203
|
-
|
|
1204
|
-
static GtmCredentials() {
|
|
825
|
+
static InventoryBrandRule() {
|
|
1205
826
|
return Joi.object({
|
|
1206
|
-
|
|
827
|
+
brands: Joi.array().items(Joi.number()),
|
|
828
|
+
criteria: Joi.string().allow(""),
|
|
1207
829
|
});
|
|
1208
830
|
}
|
|
1209
|
-
|
|
1210
|
-
static Freshchat() {
|
|
831
|
+
static InventoryCategory() {
|
|
1211
832
|
return Joi.object({
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
enabled: Joi.boolean(),
|
|
833
|
+
categories: Joi.array().items(Joi.any()),
|
|
834
|
+
criteria: Joi.string().allow(""),
|
|
1215
835
|
});
|
|
1216
836
|
}
|
|
1217
|
-
|
|
1218
|
-
static FreshchatCredentials() {
|
|
837
|
+
static InventoryDiscount() {
|
|
1219
838
|
return Joi.object({
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
app_key: Joi.string().allow(""),
|
|
1223
|
-
|
|
1224
|
-
web_token: Joi.string().allow(""),
|
|
839
|
+
max: Joi.number(),
|
|
840
|
+
min: Joi.number(),
|
|
1225
841
|
});
|
|
1226
842
|
}
|
|
1227
|
-
|
|
1228
|
-
static Safetynet() {
|
|
843
|
+
static InventoryPaymentConfig() {
|
|
1229
844
|
return Joi.object({
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
enabled: Joi.boolean(),
|
|
845
|
+
mode_of_payment: Joi.string().allow(""),
|
|
846
|
+
source: Joi.string().allow(""),
|
|
1233
847
|
});
|
|
1234
848
|
}
|
|
1235
|
-
|
|
1236
|
-
static SafetynetCredentials() {
|
|
849
|
+
static InventoryPrice() {
|
|
1237
850
|
return Joi.object({
|
|
1238
|
-
|
|
851
|
+
max: Joi.number(),
|
|
852
|
+
min: Joi.number(),
|
|
1239
853
|
});
|
|
1240
854
|
}
|
|
1241
|
-
|
|
1242
|
-
static FyndRewards() {
|
|
855
|
+
static InventoryStore() {
|
|
1243
856
|
return Joi.object({
|
|
1244
|
-
|
|
857
|
+
criteria: Joi.string().allow(""),
|
|
858
|
+
rules: ConfigurationModel.AppStoreRules(),
|
|
859
|
+
stores: Joi.array().items(Joi.any()),
|
|
1245
860
|
});
|
|
1246
861
|
}
|
|
1247
|
-
|
|
1248
|
-
static FyndRewardsCredentials() {
|
|
862
|
+
static InventoryStoreRule() {
|
|
1249
863
|
return Joi.object({
|
|
1250
|
-
|
|
864
|
+
criteria: Joi.string().allow(""),
|
|
865
|
+
rules: Joi.array().items(ConfigurationModel.StoreCriteriaRule()),
|
|
866
|
+
stores: Joi.array().items(Joi.number()),
|
|
1251
867
|
});
|
|
1252
868
|
}
|
|
1253
|
-
|
|
1254
|
-
static GoogleMap() {
|
|
869
|
+
static InventoryValidator() {
|
|
1255
870
|
return Joi.object({
|
|
1256
|
-
|
|
871
|
+
browser_script: Joi.string().allow(""),
|
|
872
|
+
json_schema: Joi.array().items(ConfigurationModel.JsonSchema()),
|
|
1257
873
|
});
|
|
1258
874
|
}
|
|
1259
|
-
|
|
1260
|
-
static GoogleMapCredentials() {
|
|
875
|
+
static Ios() {
|
|
1261
876
|
return Joi.object({
|
|
1262
877
|
api_key: Joi.string().allow(""),
|
|
878
|
+
application_id: Joi.string().allow(""),
|
|
1263
879
|
});
|
|
1264
880
|
}
|
|
1265
|
-
|
|
1266
|
-
static RewardPointsConfig() {
|
|
881
|
+
static JsonSchema() {
|
|
1267
882
|
return Joi.object({
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
883
|
+
display: Joi.string().allow(""),
|
|
884
|
+
key: Joi.string().allow(""),
|
|
885
|
+
tooltip: Joi.string().allow(""),
|
|
886
|
+
type: Joi.string().allow(""),
|
|
1271
887
|
});
|
|
1272
888
|
}
|
|
1273
|
-
|
|
1274
|
-
static Credit() {
|
|
889
|
+
static LandingImage() {
|
|
1275
890
|
return Joi.object({
|
|
1276
|
-
|
|
891
|
+
aspect_ratio: Joi.string().allow(""),
|
|
892
|
+
secure_url: Joi.string().allow(""),
|
|
1277
893
|
});
|
|
1278
894
|
}
|
|
1279
|
-
|
|
1280
|
-
static Debit() {
|
|
895
|
+
static LandingPageFeature() {
|
|
1281
896
|
return Joi.object({
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
897
|
+
continue_as_guest: Joi.boolean(),
|
|
898
|
+
launch_page: ConfigurationModel.LaunchPage(),
|
|
899
|
+
login_btn_text: Joi.string().allow(""),
|
|
900
|
+
show_domain_textbox: Joi.boolean(),
|
|
901
|
+
show_register_btn: Joi.boolean(),
|
|
1287
902
|
});
|
|
1288
903
|
}
|
|
1289
|
-
|
|
1290
|
-
static ProductDetailFeature() {
|
|
904
|
+
static LastPatch() {
|
|
1291
905
|
return Joi.object({
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
update_product_meta: Joi.boolean(),
|
|
1297
|
-
|
|
1298
|
-
request_product: Joi.boolean(),
|
|
906
|
+
op: Joi.string().allow(""),
|
|
907
|
+
path: Joi.string().allow(""),
|
|
908
|
+
value: Joi.string().allow(""),
|
|
1299
909
|
});
|
|
1300
910
|
}
|
|
1301
|
-
|
|
1302
911
|
static LaunchPage() {
|
|
1303
912
|
return Joi.object({
|
|
1304
913
|
page_type: Joi.string().allow(""),
|
|
1305
|
-
|
|
1306
914
|
params: Joi.any(),
|
|
1307
|
-
|
|
1308
915
|
query: Joi.any(),
|
|
1309
916
|
});
|
|
1310
917
|
}
|
|
1311
|
-
|
|
1312
|
-
static LandingPageFeature() {
|
|
918
|
+
static LinkedInLink() {
|
|
1313
919
|
return Joi.object({
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
login_btn_text: Joi.string().allow(""),
|
|
1319
|
-
|
|
1320
|
-
show_domain_textbox: Joi.boolean(),
|
|
1321
|
-
|
|
1322
|
-
show_register_btn: Joi.boolean(),
|
|
920
|
+
icon: Joi.string().allow(""),
|
|
921
|
+
link: Joi.string().allow(""),
|
|
922
|
+
title: Joi.string().allow(""),
|
|
1323
923
|
});
|
|
1324
924
|
}
|
|
1325
|
-
|
|
1326
|
-
static RegistrationPageFeature() {
|
|
925
|
+
static Links() {
|
|
1327
926
|
return Joi.object({
|
|
1328
|
-
|
|
927
|
+
link: Joi.string().allow(""),
|
|
928
|
+
title: Joi.string().allow(""),
|
|
1329
929
|
});
|
|
1330
930
|
}
|
|
1331
|
-
|
|
1332
|
-
static AppFeature() {
|
|
931
|
+
static ListingPriceFeature() {
|
|
1333
932
|
return Joi.object({
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
landing_page: ConfigurationModel.LandingPageFeature(),
|
|
1337
|
-
|
|
1338
|
-
registration_page: ConfigurationModel.RegistrationPageFeature(),
|
|
1339
|
-
|
|
1340
|
-
home_page: ConfigurationModel.HomePageFeature(),
|
|
1341
|
-
|
|
1342
|
-
common: ConfigurationModel.CommonFeature(),
|
|
1343
|
-
|
|
1344
|
-
cart: ConfigurationModel.CartFeature(),
|
|
1345
|
-
|
|
1346
|
-
qr: ConfigurationModel.QrFeature(),
|
|
1347
|
-
|
|
1348
|
-
pcr: ConfigurationModel.PcrFeature(),
|
|
1349
|
-
|
|
1350
|
-
order: ConfigurationModel.OrderFeature(),
|
|
1351
|
-
|
|
1352
|
-
_id: Joi.string().allow(""),
|
|
1353
|
-
|
|
1354
|
-
app: Joi.string().allow(""),
|
|
1355
|
-
|
|
1356
|
-
created_at: Joi.string().allow(""),
|
|
1357
|
-
|
|
1358
|
-
updated_at: Joi.string().allow(""),
|
|
1359
|
-
|
|
1360
|
-
__v: Joi.number(),
|
|
933
|
+
value: Joi.string().allow(""),
|
|
1361
934
|
});
|
|
1362
935
|
}
|
|
1363
|
-
|
|
1364
|
-
static HomePageFeature() {
|
|
936
|
+
static LoyaltyPointsConfig() {
|
|
1365
937
|
return Joi.object({
|
|
1366
|
-
|
|
938
|
+
auto_apply: Joi.boolean(),
|
|
939
|
+
enabled: Joi.boolean(),
|
|
1367
940
|
});
|
|
1368
941
|
}
|
|
1369
|
-
|
|
1370
|
-
static CommonFeature() {
|
|
942
|
+
static Methods() {
|
|
1371
943
|
return Joi.object({
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
944
|
+
card: ConfigurationModel.PaymentModeConfig(),
|
|
945
|
+
cod: ConfigurationModel.PaymentModeConfig(),
|
|
946
|
+
fc: ConfigurationModel.PaymentModeConfig(),
|
|
947
|
+
jiopp: ConfigurationModel.PaymentModeConfig(),
|
|
948
|
+
jp: ConfigurationModel.PaymentModeConfig(),
|
|
949
|
+
juspaypg: ConfigurationModel.PaymentModeConfig(),
|
|
950
|
+
nb: ConfigurationModel.PaymentModeConfig(),
|
|
951
|
+
pac: ConfigurationModel.PaymentModeConfig(),
|
|
952
|
+
payubizpg: ConfigurationModel.PaymentModeConfig(),
|
|
953
|
+
payumoneypg: ConfigurationModel.PaymentModeConfig(),
|
|
954
|
+
pl: ConfigurationModel.PaymentModeConfig(),
|
|
955
|
+
pp: ConfigurationModel.PaymentModeConfig(),
|
|
956
|
+
ps: ConfigurationModel.PaymentModeConfig(),
|
|
957
|
+
qr: ConfigurationModel.PaymentModeConfig(),
|
|
958
|
+
rupifipg: ConfigurationModel.PaymentModeConfig(),
|
|
959
|
+
simpl: ConfigurationModel.PaymentModeConfig(),
|
|
960
|
+
stripepg: ConfigurationModel.PaymentModeConfig(),
|
|
961
|
+
upi: ConfigurationModel.PaymentModeConfig(),
|
|
962
|
+
wl: ConfigurationModel.PaymentModeConfig(),
|
|
1387
963
|
});
|
|
1388
964
|
}
|
|
1389
|
-
|
|
1390
|
-
static CommunicationOptinDialogFeature() {
|
|
965
|
+
static MobileAppConfigRequest() {
|
|
1391
966
|
return Joi.object({
|
|
1392
|
-
|
|
967
|
+
app_name: Joi.string().allow(""),
|
|
968
|
+
is_active: Joi.boolean(),
|
|
969
|
+
landing_image: ConfigurationModel.LandingImage(),
|
|
970
|
+
splash_image: ConfigurationModel.SplashImage(),
|
|
1393
971
|
});
|
|
1394
972
|
}
|
|
1395
|
-
|
|
1396
|
-
static DeploymentStoreSelectionFeature() {
|
|
973
|
+
static MobileAppConfiguration() {
|
|
1397
974
|
return Joi.object({
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
975
|
+
__v: Joi.number(),
|
|
976
|
+
_id: Joi.string().allow(""),
|
|
977
|
+
app_name: Joi.string().allow(""),
|
|
978
|
+
application: Joi.string().allow(""),
|
|
979
|
+
created_at: Joi.string().allow(""),
|
|
980
|
+
is_active: Joi.boolean(),
|
|
981
|
+
landing_image: ConfigurationModel.LandingImage(),
|
|
982
|
+
package_name: Joi.string().allow(""),
|
|
983
|
+
platform_type: Joi.string().allow(""),
|
|
984
|
+
splash_image: ConfigurationModel.SplashImage(),
|
|
985
|
+
updated_at: Joi.string().allow(""),
|
|
1401
986
|
});
|
|
1402
987
|
}
|
|
1403
|
-
|
|
1404
|
-
static ListingPriceFeature() {
|
|
988
|
+
static Moengage() {
|
|
1405
989
|
return Joi.object({
|
|
1406
|
-
|
|
990
|
+
credentials: ConfigurationModel.MoengageCredentials(),
|
|
991
|
+
enabled: Joi.boolean(),
|
|
1407
992
|
});
|
|
1408
993
|
}
|
|
1409
|
-
|
|
1410
|
-
static CurrencyFeature() {
|
|
994
|
+
static MoengageCredentials() {
|
|
1411
995
|
return Joi.object({
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
type: Joi.string().allow(""),
|
|
1415
|
-
|
|
1416
|
-
default_currency: Joi.string().allow(""),
|
|
996
|
+
app_id: Joi.string().allow(""),
|
|
1417
997
|
});
|
|
1418
998
|
}
|
|
1419
|
-
|
|
1420
|
-
static RevenueEngineFeature() {
|
|
999
|
+
static NotFound() {
|
|
1421
1000
|
return Joi.object({
|
|
1422
|
-
|
|
1001
|
+
message: Joi.string().allow(""),
|
|
1423
1002
|
});
|
|
1424
1003
|
}
|
|
1425
|
-
|
|
1426
|
-
static FeedbackFeature() {
|
|
1004
|
+
static OptedApplicationResponse() {
|
|
1427
1005
|
return Joi.object({
|
|
1428
|
-
|
|
1006
|
+
_id: Joi.string().allow(""),
|
|
1007
|
+
company: ConfigurationModel.OptedCompany(),
|
|
1008
|
+
description: Joi.string().allow(""),
|
|
1009
|
+
domain: Joi.string().allow(""),
|
|
1010
|
+
name: Joi.string().allow(""),
|
|
1011
|
+
opt_out_inventory: ConfigurationModel.OptOutInventory(),
|
|
1012
|
+
opted_inventory: ConfigurationModel.OptedInventory(),
|
|
1429
1013
|
});
|
|
1430
1014
|
}
|
|
1431
|
-
|
|
1432
|
-
static CompareProductsFeature() {
|
|
1015
|
+
static OptedCompany() {
|
|
1433
1016
|
return Joi.object({
|
|
1434
|
-
|
|
1017
|
+
name: Joi.string().allow(""),
|
|
1018
|
+
uid: Joi.number(),
|
|
1435
1019
|
});
|
|
1436
1020
|
}
|
|
1437
|
-
|
|
1438
|
-
static CartFeature() {
|
|
1021
|
+
static OptedInventory() {
|
|
1439
1022
|
return Joi.object({
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
staff_selection: Joi.boolean(),
|
|
1443
|
-
|
|
1444
|
-
placing_for_customer: Joi.boolean(),
|
|
1445
|
-
|
|
1446
|
-
google_map: Joi.boolean(),
|
|
1447
|
-
|
|
1448
|
-
revenue_engine_coupon: Joi.boolean(),
|
|
1023
|
+
items: Joi.any(),
|
|
1024
|
+
opt_type: ConfigurationModel.OptType(),
|
|
1449
1025
|
});
|
|
1450
1026
|
}
|
|
1451
|
-
|
|
1452
|
-
static QrFeature() {
|
|
1027
|
+
static OptedStore() {
|
|
1453
1028
|
return Joi.object({
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1029
|
+
_id: Joi.string().allow(""),
|
|
1030
|
+
address: ConfigurationModel.OptedStoreAddress(),
|
|
1031
|
+
company_id: Joi.number(),
|
|
1032
|
+
display_name: Joi.string().allow(""),
|
|
1033
|
+
modified_on: Joi.string().allow(""),
|
|
1034
|
+
name: Joi.string().allow(""),
|
|
1035
|
+
store_code: Joi.string().allow(""),
|
|
1036
|
+
store_type: Joi.string().allow(""),
|
|
1037
|
+
uid: Joi.number(),
|
|
1459
1038
|
});
|
|
1460
1039
|
}
|
|
1461
|
-
|
|
1462
|
-
static PcrFeature() {
|
|
1040
|
+
static OptedStoreAddress() {
|
|
1463
1041
|
return Joi.object({
|
|
1464
|
-
|
|
1042
|
+
address1: Joi.string().allow(""),
|
|
1043
|
+
address2: Joi.string().allow(""),
|
|
1044
|
+
city: Joi.string().allow(""),
|
|
1045
|
+
country: Joi.string().allow(""),
|
|
1046
|
+
lat_long: ConfigurationModel.StoreLatLong(),
|
|
1047
|
+
pincode: Joi.number(),
|
|
1048
|
+
state: Joi.string().allow(""),
|
|
1465
1049
|
});
|
|
1466
1050
|
}
|
|
1467
|
-
|
|
1468
|
-
static OrderFeature() {
|
|
1051
|
+
static OptedStoreIntegration() {
|
|
1469
1052
|
return Joi.object({
|
|
1470
|
-
|
|
1053
|
+
other_entity: ConfigurationModel.OtherEntity(),
|
|
1054
|
+
other_integration: ConfigurationModel.IntegrationOptIn(),
|
|
1055
|
+
other_opted: Joi.boolean(),
|
|
1471
1056
|
});
|
|
1472
1057
|
}
|
|
1473
|
-
|
|
1474
|
-
static AppFeatureRequest() {
|
|
1058
|
+
static OptOutInventory() {
|
|
1475
1059
|
return Joi.object({
|
|
1476
|
-
|
|
1060
|
+
company: Joi.array().items(Joi.number()).required(),
|
|
1061
|
+
store: Joi.array().items(Joi.number()).required(),
|
|
1477
1062
|
});
|
|
1478
1063
|
}
|
|
1479
|
-
|
|
1480
|
-
static AppFeatureResponse() {
|
|
1064
|
+
static OptType() {
|
|
1481
1065
|
return Joi.object({
|
|
1482
|
-
|
|
1066
|
+
display: Joi.string().allow(""),
|
|
1067
|
+
key: Joi.string().allow(""),
|
|
1483
1068
|
});
|
|
1484
1069
|
}
|
|
1485
|
-
|
|
1486
|
-
static Currency() {
|
|
1070
|
+
static OrderFeature() {
|
|
1487
1071
|
return Joi.object({
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
is_active: Joi.boolean(),
|
|
1491
|
-
|
|
1492
|
-
name: Joi.string().allow(""),
|
|
1493
|
-
|
|
1494
|
-
code: Joi.string().allow(""),
|
|
1495
|
-
|
|
1496
|
-
created_at: Joi.string().allow(""),
|
|
1497
|
-
|
|
1498
|
-
updated_at: Joi.string().allow(""),
|
|
1499
|
-
|
|
1500
|
-
decimal_digits: Joi.number(),
|
|
1501
|
-
|
|
1502
|
-
symbol: Joi.string().allow(""),
|
|
1072
|
+
buy_again: Joi.boolean(),
|
|
1503
1073
|
});
|
|
1504
1074
|
}
|
|
1505
|
-
|
|
1506
|
-
static Domain() {
|
|
1075
|
+
static OrderingStore() {
|
|
1507
1076
|
return Joi.object({
|
|
1508
|
-
verified: Joi.boolean(),
|
|
1509
|
-
|
|
1510
|
-
is_primary: Joi.boolean(),
|
|
1511
|
-
|
|
1512
|
-
is_shortlink: Joi.boolean(),
|
|
1513
|
-
|
|
1514
1077
|
_id: Joi.string().allow(""),
|
|
1515
|
-
|
|
1078
|
+
address: ConfigurationModel.OptedStoreAddress(),
|
|
1079
|
+
code: Joi.string().allow(""),
|
|
1080
|
+
display_name: Joi.string().allow(""),
|
|
1516
1081
|
name: Joi.string().allow(""),
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
static ApplicationWebsite() {
|
|
1523
|
-
return Joi.object({
|
|
1524
|
-
enabled: Joi.boolean(),
|
|
1525
|
-
|
|
1526
|
-
basepath: Joi.string().allow(""),
|
|
1082
|
+
pincode: Joi.number(),
|
|
1083
|
+
store_code: Joi.string().allow(""),
|
|
1084
|
+
store_type: Joi.string().allow(""),
|
|
1085
|
+
uid: Joi.number(),
|
|
1527
1086
|
});
|
|
1528
1087
|
}
|
|
1529
|
-
|
|
1530
|
-
static ApplicationCors() {
|
|
1088
|
+
static OrderingStoreConfig() {
|
|
1531
1089
|
return Joi.object({
|
|
1532
|
-
|
|
1090
|
+
deployment_meta: ConfigurationModel.DeploymentMeta(),
|
|
1533
1091
|
});
|
|
1534
1092
|
}
|
|
1535
|
-
|
|
1536
|
-
static ApplicationAuth() {
|
|
1093
|
+
static OrderingStores() {
|
|
1537
1094
|
return Joi.object({
|
|
1095
|
+
__v: Joi.number(),
|
|
1096
|
+
_id: Joi.string().allow(""),
|
|
1097
|
+
all_stores: Joi.boolean(),
|
|
1098
|
+
app: Joi.string().allow(""),
|
|
1099
|
+
deployed_stores: Joi.array().items(Joi.number()),
|
|
1538
1100
|
enabled: Joi.boolean(),
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
static ApplicationRedirections() {
|
|
1543
|
-
return Joi.object({
|
|
1544
|
-
redirect_from: Joi.string().allow(""),
|
|
1545
|
-
|
|
1546
|
-
redirect_to: Joi.string().allow(""),
|
|
1547
|
-
|
|
1101
|
+
items: Joi.array().items(ConfigurationModel.OrderingStore()),
|
|
1102
|
+
page: ConfigurationModel.Page(),
|
|
1548
1103
|
type: Joi.string().allow(""),
|
|
1549
1104
|
});
|
|
1550
1105
|
}
|
|
1551
|
-
|
|
1552
|
-
static ApplicationMeta() {
|
|
1106
|
+
static OrderingStoresResponse() {
|
|
1553
1107
|
return Joi.object({
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
value: Joi.string().allow(""),
|
|
1108
|
+
items: Joi.array().items(ConfigurationModel.OrderingStore()),
|
|
1109
|
+
page: ConfigurationModel.Page(),
|
|
1557
1110
|
});
|
|
1558
1111
|
}
|
|
1559
|
-
|
|
1560
|
-
static SecureUrl() {
|
|
1112
|
+
static OrderValidator() {
|
|
1561
1113
|
return Joi.object({
|
|
1562
|
-
|
|
1114
|
+
browser_script: Joi.string().allow(""),
|
|
1115
|
+
json_schema: Joi.array().items(ConfigurationModel.JsonSchema()),
|
|
1563
1116
|
});
|
|
1564
1117
|
}
|
|
1565
|
-
|
|
1566
|
-
static Application() {
|
|
1118
|
+
static OtherEntity() {
|
|
1567
1119
|
return Joi.object({
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
cors: ConfigurationModel.ApplicationCors(),
|
|
1571
|
-
|
|
1572
|
-
auth: ConfigurationModel.ApplicationAuth(),
|
|
1573
|
-
|
|
1574
|
-
description: Joi.string().allow(""),
|
|
1575
|
-
|
|
1576
|
-
channel_type: Joi.string().allow(""),
|
|
1577
|
-
|
|
1578
|
-
cache_ttl: Joi.number(),
|
|
1579
|
-
|
|
1580
|
-
is_internal: Joi.boolean(),
|
|
1581
|
-
|
|
1582
|
-
is_active: Joi.boolean(),
|
|
1583
|
-
|
|
1120
|
+
__v: Joi.number(),
|
|
1584
1121
|
_id: Joi.string().allow(""),
|
|
1585
|
-
|
|
1586
|
-
name: Joi.string().allow(""),
|
|
1587
|
-
|
|
1588
|
-
owner: Joi.string().allow(""),
|
|
1589
|
-
|
|
1590
|
-
company_id: Joi.number(),
|
|
1591
|
-
|
|
1592
|
-
token: Joi.string().allow(""),
|
|
1593
|
-
|
|
1594
|
-
redirections: Joi.array().items(
|
|
1595
|
-
ConfigurationModel.ApplicationRedirections()
|
|
1596
|
-
),
|
|
1597
|
-
|
|
1598
|
-
meta: Joi.array().items(ConfigurationModel.ApplicationMeta()),
|
|
1599
|
-
|
|
1600
1122
|
created_at: Joi.string().allow(""),
|
|
1601
|
-
|
|
1123
|
+
data: ConfigurationModel.OtherEntityData(),
|
|
1124
|
+
integration: Joi.string().allow(""),
|
|
1125
|
+
last_patch: Joi.array().items(ConfigurationModel.LastPatch()),
|
|
1126
|
+
level: Joi.string().allow(""),
|
|
1127
|
+
meta: Joi.array().items(Joi.any()),
|
|
1128
|
+
opted: Joi.boolean(),
|
|
1129
|
+
permissions: Joi.array().items(Joi.string().allow("")),
|
|
1130
|
+
token: Joi.string().allow(""),
|
|
1131
|
+
uid: Joi.number(),
|
|
1602
1132
|
updated_at: Joi.string().allow(""),
|
|
1603
|
-
|
|
1604
|
-
__v: Joi.number(),
|
|
1605
|
-
|
|
1606
|
-
banner: ConfigurationModel.SecureUrl(),
|
|
1607
|
-
|
|
1608
|
-
logo: ConfigurationModel.SecureUrl(),
|
|
1609
|
-
|
|
1610
|
-
favicon: ConfigurationModel.SecureUrl(),
|
|
1611
|
-
|
|
1612
|
-
domains: Joi.array().items(ConfigurationModel.Domain()),
|
|
1613
|
-
|
|
1614
|
-
app_type: Joi.string().allow(""),
|
|
1615
|
-
|
|
1616
|
-
mobile_logo: ConfigurationModel.SecureUrl(),
|
|
1617
|
-
|
|
1618
|
-
domain: ConfigurationModel.Domain(),
|
|
1619
1133
|
});
|
|
1620
1134
|
}
|
|
1621
|
-
|
|
1622
|
-
static NotFound() {
|
|
1135
|
+
static OtherEntityData() {
|
|
1623
1136
|
return Joi.object({
|
|
1624
|
-
|
|
1137
|
+
article_identifier: Joi.string().allow(""),
|
|
1625
1138
|
});
|
|
1626
1139
|
}
|
|
1627
|
-
|
|
1628
|
-
static UnhandledError() {
|
|
1140
|
+
static OtherSellerApplication() {
|
|
1629
1141
|
return Joi.object({
|
|
1630
|
-
|
|
1142
|
+
_id: Joi.string().allow(""),
|
|
1143
|
+
company: ConfigurationModel.OtherSellerCompany(),
|
|
1144
|
+
description: Joi.string().allow(""),
|
|
1145
|
+
domain: Joi.string().allow(""),
|
|
1146
|
+
name: Joi.string().allow(""),
|
|
1147
|
+
opt_type: Joi.string().allow(""),
|
|
1631
1148
|
});
|
|
1632
1149
|
}
|
|
1633
|
-
|
|
1634
|
-
static InvalidPayloadRequest() {
|
|
1150
|
+
static OtherSellerApplications() {
|
|
1635
1151
|
return Joi.object({
|
|
1636
|
-
|
|
1152
|
+
items: Joi.array().items(ConfigurationModel.OtherSellerApplication()),
|
|
1153
|
+
page: ConfigurationModel.Page(),
|
|
1637
1154
|
});
|
|
1638
1155
|
}
|
|
1639
|
-
|
|
1640
|
-
static SuccessMessageResponse() {
|
|
1156
|
+
static OtherSellerCompany() {
|
|
1641
1157
|
return Joi.object({
|
|
1642
|
-
|
|
1158
|
+
name: Joi.string().allow(""),
|
|
1159
|
+
uid: Joi.number(),
|
|
1643
1160
|
});
|
|
1644
1161
|
}
|
|
1645
|
-
|
|
1646
|
-
static InventoryBrandRule() {
|
|
1162
|
+
static Page() {
|
|
1647
1163
|
return Joi.object({
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1164
|
+
current: Joi.number(),
|
|
1165
|
+
has_next: Joi.boolean(),
|
|
1166
|
+
has_previous: Joi.boolean(),
|
|
1167
|
+
item_total: Joi.number(),
|
|
1168
|
+
next_id: Joi.string().allow(""),
|
|
1169
|
+
size: Joi.number(),
|
|
1170
|
+
type: Joi.string().allow("").required(),
|
|
1651
1171
|
});
|
|
1652
1172
|
}
|
|
1653
|
-
|
|
1654
|
-
static StoreCriteriaRule() {
|
|
1173
|
+
static PaymentModeConfig() {
|
|
1655
1174
|
return Joi.object({
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
brands: Joi.array().items(Joi.number()),
|
|
1175
|
+
enabled: Joi.boolean(),
|
|
1659
1176
|
});
|
|
1660
1177
|
}
|
|
1661
|
-
|
|
1662
|
-
static InventoryStoreRule() {
|
|
1178
|
+
static PaymentSelectionLock() {
|
|
1663
1179
|
return Joi.object({
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
stores: Joi.array().items(Joi.number()),
|
|
1180
|
+
default_options: Joi.string().allow(""),
|
|
1181
|
+
enabled: Joi.boolean(),
|
|
1182
|
+
payment_identifier: Joi.string().allow(""),
|
|
1669
1183
|
});
|
|
1670
1184
|
}
|
|
1671
|
-
|
|
1672
|
-
static InventoryPaymentConfig() {
|
|
1185
|
+
static PcrFeature() {
|
|
1673
1186
|
return Joi.object({
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
source: Joi.string().allow(""),
|
|
1187
|
+
staff_selection: Joi.boolean(),
|
|
1677
1188
|
});
|
|
1678
1189
|
}
|
|
1679
|
-
|
|
1680
|
-
|
|
1190
|
+
static PinterestLink() {
|
|
1191
|
+
return Joi.object({
|
|
1192
|
+
icon: Joi.string().allow(""),
|
|
1193
|
+
link: Joi.string().allow(""),
|
|
1194
|
+
title: Joi.string().allow(""),
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
static ProductDetailFeature() {
|
|
1198
|
+
return Joi.object({
|
|
1199
|
+
request_product: Joi.boolean(),
|
|
1200
|
+
seller_selection: Joi.boolean(),
|
|
1201
|
+
similar: Joi.array().items(Joi.string().allow("")),
|
|
1202
|
+
update_product_meta: Joi.boolean(),
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
static QrFeature() {
|
|
1206
|
+
return Joi.object({
|
|
1207
|
+
application: Joi.boolean(),
|
|
1208
|
+
collections: Joi.boolean(),
|
|
1209
|
+
products: Joi.boolean(),
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
static RegistrationPageFeature() {
|
|
1213
|
+
return Joi.object({
|
|
1214
|
+
ask_store_address: Joi.boolean(),
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
static RevenueEngineFeature() {
|
|
1681
1218
|
return Joi.object({
|
|
1682
1219
|
enabled: Joi.boolean(),
|
|
1683
|
-
|
|
1684
|
-
storetype_order: Joi.array().items(Joi.string().allow("")),
|
|
1685
1220
|
});
|
|
1686
1221
|
}
|
|
1687
|
-
|
|
1688
|
-
static ArticleAssignmentRule() {
|
|
1222
|
+
static RewardPointsConfig() {
|
|
1689
1223
|
return Joi.object({
|
|
1690
|
-
|
|
1224
|
+
credit: ConfigurationModel.Credit(),
|
|
1225
|
+
debit: ConfigurationModel.Debit(),
|
|
1691
1226
|
});
|
|
1692
1227
|
}
|
|
1693
|
-
|
|
1694
|
-
static InventoryArticleAssignment() {
|
|
1228
|
+
static Safetynet() {
|
|
1695
1229
|
return Joi.object({
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
rules: ConfigurationModel.ArticleAssignmentRule(),
|
|
1230
|
+
credentials: ConfigurationModel.SafetynetCredentials(),
|
|
1231
|
+
enabled: Joi.boolean(),
|
|
1699
1232
|
});
|
|
1700
1233
|
}
|
|
1701
|
-
|
|
1702
|
-
static CompanyAboutAddress() {
|
|
1234
|
+
static SafetynetCredentials() {
|
|
1703
1235
|
return Joi.object({
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
address1: Joi.string().allow(""),
|
|
1707
|
-
|
|
1708
|
-
address2: Joi.string().allow(""),
|
|
1709
|
-
|
|
1710
|
-
city: Joi.string().allow(""),
|
|
1711
|
-
|
|
1712
|
-
state: Joi.string().allow(""),
|
|
1713
|
-
|
|
1714
|
-
country: Joi.string().allow(""),
|
|
1715
|
-
|
|
1716
|
-
address_type: Joi.string().allow(""),
|
|
1236
|
+
api_key: Joi.string().allow(""),
|
|
1717
1237
|
});
|
|
1718
1238
|
}
|
|
1719
|
-
|
|
1720
|
-
static UserEmail() {
|
|
1239
|
+
static SecureUrl() {
|
|
1721
1240
|
return Joi.object({
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
primary: Joi.boolean(),
|
|
1725
|
-
|
|
1726
|
-
verified: Joi.boolean(),
|
|
1727
|
-
|
|
1728
|
-
email: Joi.string().allow(""),
|
|
1241
|
+
secure_url: Joi.string().allow(""),
|
|
1729
1242
|
});
|
|
1730
1243
|
}
|
|
1731
|
-
|
|
1732
|
-
static UserPhoneNumber() {
|
|
1244
|
+
static Segment() {
|
|
1733
1245
|
return Joi.object({
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
primary: Joi.boolean(),
|
|
1737
|
-
|
|
1738
|
-
verified: Joi.boolean(),
|
|
1739
|
-
|
|
1740
|
-
country_code: Joi.number(),
|
|
1741
|
-
|
|
1742
|
-
phone: Joi.string().allow(""),
|
|
1246
|
+
credentials: ConfigurationModel.SegmentCredentials(),
|
|
1247
|
+
enabled: Joi.boolean(),
|
|
1743
1248
|
});
|
|
1744
1249
|
}
|
|
1745
|
-
|
|
1746
|
-
static Page() {
|
|
1250
|
+
static SegmentCredentials() {
|
|
1747
1251
|
return Joi.object({
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
next_id: Joi.string().allow(""),
|
|
1751
|
-
|
|
1752
|
-
has_previous: Joi.boolean(),
|
|
1753
|
-
|
|
1754
|
-
has_next: Joi.boolean(),
|
|
1755
|
-
|
|
1756
|
-
current: Joi.number(),
|
|
1757
|
-
|
|
1758
|
-
type: Joi.string().allow("").required(),
|
|
1759
|
-
|
|
1760
|
-
size: Joi.number(),
|
|
1252
|
+
write_key: Joi.string().allow(""),
|
|
1761
1253
|
});
|
|
1762
1254
|
}
|
|
1763
|
-
|
|
1764
|
-
static ApplicationInformation() {
|
|
1255
|
+
static SocialLinks() {
|
|
1765
1256
|
return Joi.object({
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
_id: Joi.string().allow(""),
|
|
1777
|
-
|
|
1778
|
-
business_highlights: ConfigurationModel.BusinessHighlights(),
|
|
1779
|
-
|
|
1780
|
-
application: Joi.string().allow(""),
|
|
1781
|
-
|
|
1782
|
-
created_at: Joi.string().allow(""),
|
|
1783
|
-
|
|
1784
|
-
updated_at: Joi.string().allow(""),
|
|
1785
|
-
|
|
1786
|
-
__v: Joi.number(),
|
|
1257
|
+
blog_link: ConfigurationModel.BlogLink(),
|
|
1258
|
+
facebook: ConfigurationModel.FacebookLink(),
|
|
1259
|
+
google_plus: ConfigurationModel.GooglePlusLink(),
|
|
1260
|
+
instagram: ConfigurationModel.InstagramLink(),
|
|
1261
|
+
linked_in: ConfigurationModel.LinkedInLink(),
|
|
1262
|
+
pinterest: ConfigurationModel.PinterestLink(),
|
|
1263
|
+
twitter: ConfigurationModel.TwitterLink(),
|
|
1264
|
+
vimeo: ConfigurationModel.VimeoLink(),
|
|
1265
|
+
youtube: ConfigurationModel.YoutubeLink(),
|
|
1787
1266
|
});
|
|
1788
1267
|
}
|
|
1789
|
-
|
|
1790
|
-
static InformationAddress() {
|
|
1268
|
+
static SplashImage() {
|
|
1791
1269
|
return Joi.object({
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
address_line: Joi.array().items(Joi.string().allow("")),
|
|
1795
|
-
|
|
1796
|
-
phone: ConfigurationModel.InformationPhone(),
|
|
1797
|
-
|
|
1798
|
-
city: Joi.string().allow(""),
|
|
1799
|
-
|
|
1800
|
-
country: Joi.string().allow(""),
|
|
1801
|
-
|
|
1802
|
-
pincode: Joi.number(),
|
|
1270
|
+
aspect_ratio: Joi.string().allow(""),
|
|
1271
|
+
secure_url: Joi.string().allow(""),
|
|
1803
1272
|
});
|
|
1804
1273
|
}
|
|
1805
|
-
|
|
1806
|
-
static InformationPhone() {
|
|
1274
|
+
static StoreByBrandsRequest() {
|
|
1807
1275
|
return Joi.object({
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1276
|
+
brands: Joi.number().required(),
|
|
1277
|
+
company_id: Joi.number(),
|
|
1278
|
+
search_text: Joi.string().allow(""),
|
|
1811
1279
|
});
|
|
1812
1280
|
}
|
|
1813
|
-
|
|
1814
|
-
static InformationSupport() {
|
|
1281
|
+
static StoreByBrandsResponse() {
|
|
1815
1282
|
return Joi.object({
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
email: Joi.array().items(Joi.string().allow("")),
|
|
1819
|
-
|
|
1820
|
-
timing: Joi.string().allow(""),
|
|
1283
|
+
items: Joi.array().items(ConfigurationModel.BrandStoreInfo()),
|
|
1284
|
+
page: ConfigurationModel.Page(),
|
|
1821
1285
|
});
|
|
1822
1286
|
}
|
|
1823
|
-
|
|
1824
|
-
static SocialLinks() {
|
|
1287
|
+
static StoreCriteriaRule() {
|
|
1825
1288
|
return Joi.object({
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
instagram: ConfigurationModel.InstagramLink(),
|
|
1829
|
-
|
|
1830
|
-
twitter: ConfigurationModel.TwitterLink(),
|
|
1831
|
-
|
|
1832
|
-
pinterest: ConfigurationModel.PinterestLink(),
|
|
1833
|
-
|
|
1834
|
-
google_plus: ConfigurationModel.GooglePlusLink(),
|
|
1835
|
-
|
|
1836
|
-
youtube: ConfigurationModel.YoutubeLink(),
|
|
1837
|
-
|
|
1838
|
-
linked_in: ConfigurationModel.LinkedInLink(),
|
|
1839
|
-
|
|
1840
|
-
vimeo: ConfigurationModel.VimeoLink(),
|
|
1841
|
-
|
|
1842
|
-
blog_link: ConfigurationModel.BlogLink(),
|
|
1289
|
+
brands: Joi.array().items(Joi.number()),
|
|
1290
|
+
companies: Joi.array().items(Joi.number()),
|
|
1843
1291
|
});
|
|
1844
1292
|
}
|
|
1845
|
-
|
|
1846
|
-
static FacebookLink() {
|
|
1293
|
+
static StoreLatLong() {
|
|
1847
1294
|
return Joi.object({
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
icon: Joi.string().allow(""),
|
|
1851
|
-
|
|
1852
|
-
link: Joi.string().allow(""),
|
|
1295
|
+
coordinates: Joi.array().items(Joi.number()),
|
|
1296
|
+
type: Joi.string().allow(""),
|
|
1853
1297
|
});
|
|
1854
1298
|
}
|
|
1855
|
-
|
|
1856
|
-
static InstagramLink() {
|
|
1299
|
+
static StorePriority() {
|
|
1857
1300
|
return Joi.object({
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
icon: Joi.string().allow(""),
|
|
1861
|
-
|
|
1862
|
-
link: Joi.string().allow(""),
|
|
1301
|
+
enabled: Joi.boolean(),
|
|
1302
|
+
storetype_order: Joi.array().items(Joi.any()),
|
|
1863
1303
|
});
|
|
1864
1304
|
}
|
|
1865
|
-
|
|
1866
|
-
static TwitterLink() {
|
|
1305
|
+
static StorePriorityRule() {
|
|
1867
1306
|
return Joi.object({
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
icon: Joi.string().allow(""),
|
|
1871
|
-
|
|
1872
|
-
link: Joi.string().allow(""),
|
|
1307
|
+
enabled: Joi.boolean(),
|
|
1308
|
+
storetype_order: Joi.array().items(Joi.string().allow("")),
|
|
1873
1309
|
});
|
|
1874
1310
|
}
|
|
1875
|
-
|
|
1876
|
-
static PinterestLink() {
|
|
1311
|
+
static StoresResponse() {
|
|
1877
1312
|
return Joi.object({
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
icon: Joi.string().allow(""),
|
|
1881
|
-
|
|
1882
|
-
link: Joi.string().allow(""),
|
|
1313
|
+
items: ConfigurationModel.AppInventoryStores(),
|
|
1314
|
+
page: ConfigurationModel.Page(),
|
|
1883
1315
|
});
|
|
1884
1316
|
}
|
|
1885
|
-
|
|
1886
|
-
static GooglePlusLink() {
|
|
1317
|
+
static StoreValidator() {
|
|
1887
1318
|
return Joi.object({
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
icon: Joi.string().allow(""),
|
|
1891
|
-
|
|
1892
|
-
link: Joi.string().allow(""),
|
|
1319
|
+
browser_script: Joi.string().allow(""),
|
|
1320
|
+
json_schema: Joi.array().items(ConfigurationModel.JsonSchema()),
|
|
1893
1321
|
});
|
|
1894
1322
|
}
|
|
1895
|
-
|
|
1896
|
-
static YoutubeLink() {
|
|
1323
|
+
static SuccessMessageResponse() {
|
|
1897
1324
|
return Joi.object({
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
icon: Joi.string().allow(""),
|
|
1901
|
-
|
|
1902
|
-
link: Joi.string().allow(""),
|
|
1325
|
+
message: Joi.string().allow(""),
|
|
1903
1326
|
});
|
|
1904
1327
|
}
|
|
1905
|
-
|
|
1906
|
-
static LinkedInLink() {
|
|
1328
|
+
static TokenResponse() {
|
|
1907
1329
|
return Joi.object({
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1330
|
+
__v: Joi.number(),
|
|
1331
|
+
_id: Joi.string().allow(""),
|
|
1332
|
+
application: Joi.string().allow(""),
|
|
1333
|
+
created_at: Joi.string().allow(""),
|
|
1334
|
+
tokens: ConfigurationModel.Tokens(),
|
|
1335
|
+
updated_at: Joi.string().allow(""),
|
|
1913
1336
|
});
|
|
1914
1337
|
}
|
|
1915
|
-
|
|
1916
|
-
static VimeoLink() {
|
|
1338
|
+
static Tokens() {
|
|
1917
1339
|
return Joi.object({
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1340
|
+
firebase: ConfigurationModel.Firebase(),
|
|
1341
|
+
freshchat: ConfigurationModel.Freshchat(),
|
|
1342
|
+
fynd_rewards: ConfigurationModel.FyndRewards(),
|
|
1343
|
+
google_map: ConfigurationModel.GoogleMap(),
|
|
1344
|
+
gtm: ConfigurationModel.Gtm(),
|
|
1345
|
+
moengage: ConfigurationModel.Moengage(),
|
|
1346
|
+
safetynet: ConfigurationModel.Safetynet(),
|
|
1347
|
+
segment: ConfigurationModel.Segment(),
|
|
1923
1348
|
});
|
|
1924
1349
|
}
|
|
1925
|
-
|
|
1926
|
-
static BlogLink() {
|
|
1350
|
+
static TwitterLink() {
|
|
1927
1351
|
return Joi.object({
|
|
1928
|
-
title: Joi.string().allow(""),
|
|
1929
|
-
|
|
1930
1352
|
icon: Joi.string().allow(""),
|
|
1931
|
-
|
|
1932
1353
|
link: Joi.string().allow(""),
|
|
1933
|
-
});
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
static Links() {
|
|
1937
|
-
return Joi.object({
|
|
1938
1354
|
title: Joi.string().allow(""),
|
|
1939
|
-
|
|
1940
|
-
link: Joi.string().allow(""),
|
|
1941
1355
|
});
|
|
1942
1356
|
}
|
|
1943
|
-
|
|
1944
|
-
static BusinessHighlights() {
|
|
1357
|
+
static UnhandledError() {
|
|
1945
1358
|
return Joi.object({
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
title: Joi.string().allow(""),
|
|
1949
|
-
|
|
1950
|
-
icon: Joi.string().allow(""),
|
|
1951
|
-
|
|
1952
|
-
sub_title: Joi.string().allow(""),
|
|
1359
|
+
message: Joi.string().allow(""),
|
|
1953
1360
|
});
|
|
1954
1361
|
}
|
|
1955
|
-
|
|
1956
|
-
static ApplicationDetail() {
|
|
1362
|
+
static UpdateDomain() {
|
|
1957
1363
|
return Joi.object({
|
|
1958
|
-
name: Joi.string().allow("").required(),
|
|
1959
|
-
|
|
1960
|
-
description: Joi.string().allow("").required(),
|
|
1961
|
-
|
|
1962
|
-
logo: ConfigurationModel.SecureUrl().required(),
|
|
1963
|
-
|
|
1964
|
-
mobile_logo: ConfigurationModel.SecureUrl().required(),
|
|
1965
|
-
|
|
1966
|
-
favicon: ConfigurationModel.SecureUrl().required(),
|
|
1967
|
-
|
|
1968
|
-
banner: ConfigurationModel.SecureUrl().required(),
|
|
1969
|
-
|
|
1970
|
-
domain: ConfigurationModel.Domain(),
|
|
1971
|
-
|
|
1972
|
-
domains: Joi.array().items(ConfigurationModel.Domain()),
|
|
1973
|
-
|
|
1974
1364
|
_id: Joi.string().allow(""),
|
|
1975
1365
|
});
|
|
1976
1366
|
}
|
|
1977
|
-
|
|
1978
|
-
static CurrenciesResponse() {
|
|
1367
|
+
static UpdateDomainTypeRequest() {
|
|
1979
1368
|
return Joi.object({
|
|
1980
|
-
|
|
1369
|
+
action: Joi.string().allow(""),
|
|
1370
|
+
domain: ConfigurationModel.UpdateDomain(),
|
|
1981
1371
|
});
|
|
1982
1372
|
}
|
|
1983
|
-
|
|
1984
|
-
static AppCurrencyResponse() {
|
|
1373
|
+
static UpdateIntegrationLevelRequest() {
|
|
1985
1374
|
return Joi.object({
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
default_currency: ConfigurationModel.DefaultCurrency(),
|
|
1989
|
-
|
|
1990
|
-
supported_currency: Joi.array().items(ConfigurationModel.Currency()),
|
|
1375
|
+
items: Joi.array().items(ConfigurationModel.IntegrationLevel()),
|
|
1991
1376
|
});
|
|
1992
1377
|
}
|
|
1993
|
-
|
|
1994
|
-
static StoreLatLong() {
|
|
1378
|
+
static UserEmail() {
|
|
1995
1379
|
return Joi.object({
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1380
|
+
active: Joi.boolean(),
|
|
1381
|
+
email: Joi.string().allow(""),
|
|
1382
|
+
primary: Joi.boolean(),
|
|
1383
|
+
verified: Joi.boolean(),
|
|
1999
1384
|
});
|
|
2000
1385
|
}
|
|
2001
|
-
|
|
2002
|
-
static OptedStoreAddress() {
|
|
1386
|
+
static UserPhoneNumber() {
|
|
2003
1387
|
return Joi.object({
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
address2: Joi.string().allow(""),
|
|
2011
|
-
|
|
2012
|
-
pincode: Joi.number(),
|
|
2013
|
-
|
|
2014
|
-
country: Joi.string().allow(""),
|
|
2015
|
-
|
|
2016
|
-
city: Joi.string().allow(""),
|
|
1388
|
+
active: Joi.boolean(),
|
|
1389
|
+
country_code: Joi.number(),
|
|
1390
|
+
phone: Joi.string().allow(""),
|
|
1391
|
+
primary: Joi.boolean(),
|
|
1392
|
+
verified: Joi.boolean(),
|
|
2017
1393
|
});
|
|
2018
1394
|
}
|
|
2019
|
-
|
|
2020
|
-
static OrderingStore() {
|
|
1395
|
+
static Validators() {
|
|
2021
1396
|
return Joi.object({
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
uid: Joi.number(),
|
|
2027
|
-
|
|
2028
|
-
name: Joi.string().allow(""),
|
|
2029
|
-
|
|
2030
|
-
display_name: Joi.string().allow(""),
|
|
2031
|
-
|
|
2032
|
-
store_type: Joi.string().allow(""),
|
|
2033
|
-
|
|
2034
|
-
store_code: Joi.string().allow(""),
|
|
2035
|
-
|
|
2036
|
-
pincode: Joi.number(),
|
|
2037
|
-
|
|
2038
|
-
code: Joi.string().allow(""),
|
|
1397
|
+
company: ConfigurationModel.CompanyValidator(),
|
|
1398
|
+
inventory: ConfigurationModel.InventoryValidator(),
|
|
1399
|
+
order: ConfigurationModel.OrderValidator(),
|
|
1400
|
+
store: ConfigurationModel.StoreValidator(),
|
|
2039
1401
|
});
|
|
2040
1402
|
}
|
|
2041
|
-
|
|
2042
|
-
static OrderingStores() {
|
|
1403
|
+
static VimeoLink() {
|
|
2043
1404
|
return Joi.object({
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
deployed_stores: Joi.array().items(Joi.number()),
|
|
2049
|
-
|
|
2050
|
-
all_stores: Joi.boolean(),
|
|
2051
|
-
|
|
2052
|
-
enabled: Joi.boolean(),
|
|
2053
|
-
|
|
2054
|
-
type: Joi.string().allow(""),
|
|
2055
|
-
|
|
2056
|
-
_id: Joi.string().allow(""),
|
|
2057
|
-
|
|
2058
|
-
app: Joi.string().allow(""),
|
|
2059
|
-
|
|
2060
|
-
__v: Joi.number(),
|
|
1405
|
+
icon: Joi.string().allow(""),
|
|
1406
|
+
link: Joi.string().allow(""),
|
|
1407
|
+
title: Joi.string().allow(""),
|
|
2061
1408
|
});
|
|
2062
1409
|
}
|
|
2063
|
-
|
|
2064
|
-
static OrderingStoresResponse() {
|
|
1410
|
+
static YoutubeLink() {
|
|
2065
1411
|
return Joi.object({
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
1412
|
+
icon: Joi.string().allow(""),
|
|
1413
|
+
link: Joi.string().allow(""),
|
|
1414
|
+
title: Joi.string().allow(""),
|
|
2069
1415
|
});
|
|
2070
1416
|
}
|
|
2071
1417
|
}
|