@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,1246 +1,839 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
class ContentModel {
|
|
4
|
-
static
|
|
5
|
-
return Joi.object({
|
|
6
|
-
application: Joi.string().allow(""),
|
|
7
|
-
|
|
8
|
-
tnc: Joi.string().allow(""),
|
|
9
|
-
|
|
10
|
-
policy: Joi.string().allow(""),
|
|
11
|
-
|
|
12
|
-
shipping: Joi.string().allow(""),
|
|
13
|
-
|
|
14
|
-
returns: Joi.string().allow(""),
|
|
15
|
-
|
|
16
|
-
faq: Joi.array().items(ContentModel.ApplicationLegalFAQ()),
|
|
17
|
-
|
|
18
|
-
_id: Joi.string().allow(""),
|
|
19
|
-
|
|
20
|
-
updated_at: Joi.string().allow(""),
|
|
21
|
-
|
|
22
|
-
created_at: Joi.string().allow(""),
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
static ApplicationLegalFAQ() {
|
|
27
|
-
return Joi.object({
|
|
28
|
-
question: Joi.string().allow(""),
|
|
29
|
-
|
|
30
|
-
answer: Joi.string().allow(""),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
static PathMappingSchema() {
|
|
35
|
-
return Joi.object({
|
|
36
|
-
application: Joi.string().allow(""),
|
|
37
|
-
|
|
38
|
-
_id: Joi.string().allow(""),
|
|
39
|
-
|
|
40
|
-
redirect_from: Joi.string().allow(""),
|
|
41
|
-
|
|
42
|
-
redirect_to: Joi.string().allow(""),
|
|
43
|
-
|
|
44
|
-
updated_at: Joi.string().allow(""),
|
|
45
|
-
|
|
46
|
-
created_at: Joi.string().allow(""),
|
|
47
|
-
|
|
48
|
-
__source: ContentModel.TagSourceSchema(),
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
static SeoComponent() {
|
|
53
|
-
return Joi.object({
|
|
54
|
-
seo: ContentModel.SeoSchema(),
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
static SeoSchema() {
|
|
59
|
-
return Joi.object({
|
|
60
|
-
app: Joi.string().allow(""),
|
|
61
|
-
|
|
62
|
-
_id: Joi.string().allow(""),
|
|
63
|
-
|
|
64
|
-
robots_txt: Joi.string().allow(""),
|
|
65
|
-
|
|
66
|
-
sitemap_enabled: Joi.boolean(),
|
|
67
|
-
|
|
68
|
-
custom_meta_tags: Joi.array().items(Joi.any()),
|
|
69
|
-
|
|
70
|
-
details: ContentModel.Detail(),
|
|
71
|
-
|
|
72
|
-
created_at: Joi.string().allow(""),
|
|
73
|
-
|
|
74
|
-
updated_at: Joi.string().allow(""),
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
static CustomMetaTag() {
|
|
79
|
-
return Joi.object({
|
|
80
|
-
name: Joi.string().allow(""),
|
|
81
|
-
|
|
82
|
-
content: Joi.string().allow(""),
|
|
83
|
-
|
|
84
|
-
_id: Joi.string().allow(""),
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
static Detail() {
|
|
89
|
-
return Joi.object({
|
|
90
|
-
title: Joi.string().allow(""),
|
|
91
|
-
|
|
92
|
-
description: Joi.string().allow(""),
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
static AnnouncementPageSchema() {
|
|
4
|
+
static Action() {
|
|
97
5
|
return Joi.object({
|
|
98
|
-
|
|
99
|
-
|
|
6
|
+
page: ContentModel.ActionPage(),
|
|
7
|
+
popup: ContentModel.ActionPage(),
|
|
100
8
|
type: Joi.string().allow(""),
|
|
101
9
|
});
|
|
102
10
|
}
|
|
103
|
-
|
|
104
|
-
static EditorMeta() {
|
|
105
|
-
return Joi.object({
|
|
106
|
-
foreground_color: Joi.string().allow(""),
|
|
107
|
-
|
|
108
|
-
background_color: Joi.string().allow(""),
|
|
109
|
-
|
|
110
|
-
content_type: Joi.string().allow(""),
|
|
111
|
-
|
|
112
|
-
content: Joi.string().allow(""),
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
static AnnouncementAuthorSchema() {
|
|
11
|
+
static ActionPage() {
|
|
117
12
|
return Joi.object({
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
13
|
+
params: Joi.object().pattern(
|
|
14
|
+
/\S/,
|
|
15
|
+
Joi.array().items(Joi.string().allow(""))
|
|
16
|
+
),
|
|
17
|
+
query: Joi.object().pattern(
|
|
18
|
+
/\S/,
|
|
19
|
+
Joi.array().items(Joi.string().allow(""))
|
|
20
|
+
),
|
|
21
|
+
type: ContentModel.PageType().required(),
|
|
22
|
+
url: Joi.string().allow(""),
|
|
121
23
|
});
|
|
122
24
|
}
|
|
123
|
-
|
|
124
25
|
static AdminAnnouncementSchema() {
|
|
125
26
|
return Joi.object({
|
|
126
27
|
_id: Joi.string().allow(""),
|
|
127
|
-
|
|
128
|
-
platforms: Joi.array().items(Joi.string().allow("")),
|
|
129
|
-
|
|
130
|
-
title: Joi.string().allow(""),
|
|
131
|
-
|
|
28
|
+
_schedule: ContentModel.ScheduleSchema(),
|
|
132
29
|
announcement: Joi.string().allow(""),
|
|
133
|
-
|
|
134
|
-
pages: Joi.array().items(ContentModel.AnnouncementPageSchema()),
|
|
135
|
-
|
|
136
|
-
editor_meta: ContentModel.EditorMeta(),
|
|
137
|
-
|
|
30
|
+
app: Joi.string().allow(""),
|
|
138
31
|
author: ContentModel.AnnouncementAuthorSchema(),
|
|
139
|
-
|
|
140
32
|
created_at: Joi.string().allow(""),
|
|
141
|
-
|
|
142
|
-
app: Joi.string().allow(""),
|
|
143
|
-
|
|
33
|
+
editor_meta: ContentModel.EditorMeta(),
|
|
144
34
|
modified_at: Joi.string().allow(""),
|
|
145
|
-
|
|
146
|
-
|
|
35
|
+
pages: Joi.array().items(ContentModel.AnnouncementPageSchema()),
|
|
36
|
+
platforms: Joi.array().items(Joi.string().allow("")),
|
|
37
|
+
title: Joi.string().allow(""),
|
|
147
38
|
});
|
|
148
39
|
}
|
|
149
|
-
|
|
150
|
-
static ScheduleSchema() {
|
|
40
|
+
static AnnouncementAuthorSchema() {
|
|
151
41
|
return Joi.object({
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
start: Joi.string().allow(""),
|
|
155
|
-
|
|
156
|
-
end: Joi.string().allow(""),
|
|
157
|
-
|
|
158
|
-
duration: Joi.number(),
|
|
159
|
-
|
|
160
|
-
next_schedule: Joi.array().items(Joi.any()),
|
|
42
|
+
created_by: Joi.string().allow(""),
|
|
43
|
+
modified_by: Joi.string().allow(""),
|
|
161
44
|
});
|
|
162
45
|
}
|
|
163
|
-
|
|
164
|
-
static NextSchedule() {
|
|
46
|
+
static AnnouncementPageSchema() {
|
|
165
47
|
return Joi.object({
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
end: Joi.string().allow(""),
|
|
48
|
+
page_slug: Joi.string().allow(""),
|
|
49
|
+
type: Joi.string().allow(""),
|
|
169
50
|
});
|
|
170
51
|
}
|
|
171
|
-
|
|
172
52
|
static AnnouncementSchema() {
|
|
173
53
|
return Joi.object({
|
|
174
54
|
announcement: Joi.string().allow(""),
|
|
175
|
-
|
|
176
55
|
schedule: ContentModel.ScheduleStartSchema(),
|
|
177
56
|
});
|
|
178
57
|
}
|
|
179
|
-
|
|
180
|
-
static ScheduleStartSchema() {
|
|
58
|
+
static AnnouncementsResponseSchema() {
|
|
181
59
|
return Joi.object({
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
60
|
+
announcements: Joi.object().pattern(
|
|
61
|
+
/\S/,
|
|
62
|
+
Joi.array().items(ContentModel.AnnouncementSchema())
|
|
63
|
+
),
|
|
64
|
+
refresh_pages: Joi.array().items(Joi.string().allow("")),
|
|
65
|
+
refresh_rate: Joi.number(),
|
|
185
66
|
});
|
|
186
67
|
}
|
|
187
|
-
|
|
188
|
-
static BlogGetResponse() {
|
|
68
|
+
static ApplicationLegal() {
|
|
189
69
|
return Joi.object({
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
70
|
+
_id: Joi.string().allow(""),
|
|
71
|
+
application: Joi.string().allow(""),
|
|
72
|
+
created_at: Joi.string().allow(""),
|
|
73
|
+
faq: Joi.array().items(ContentModel.ApplicationLegalFAQ()),
|
|
74
|
+
policy: Joi.string().allow(""),
|
|
75
|
+
returns: Joi.string().allow(""),
|
|
76
|
+
shipping: Joi.string().allow(""),
|
|
77
|
+
tnc: Joi.string().allow(""),
|
|
78
|
+
updated_at: Joi.string().allow(""),
|
|
193
79
|
});
|
|
194
80
|
}
|
|
195
|
-
|
|
196
|
-
static ResourceContent() {
|
|
81
|
+
static ApplicationLegalFAQ() {
|
|
197
82
|
return Joi.object({
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
value: Joi.string().allow(""),
|
|
83
|
+
answer: Joi.string().allow(""),
|
|
84
|
+
question: Joi.string().allow(""),
|
|
201
85
|
});
|
|
202
86
|
}
|
|
203
|
-
|
|
204
87
|
static Asset() {
|
|
205
88
|
return Joi.object({
|
|
206
89
|
aspect_ratio: Joi.string().allow(""),
|
|
207
|
-
|
|
208
90
|
id: Joi.string().allow(""),
|
|
209
|
-
|
|
210
91
|
secure_url: Joi.string().allow(""),
|
|
211
92
|
});
|
|
212
93
|
}
|
|
213
|
-
|
|
214
94
|
static Author() {
|
|
215
95
|
return Joi.object({
|
|
216
96
|
designation: Joi.string().allow(""),
|
|
217
|
-
|
|
218
97
|
id: Joi.string().allow(""),
|
|
219
|
-
|
|
220
98
|
name: Joi.string().allow(""),
|
|
221
99
|
});
|
|
222
100
|
}
|
|
223
|
-
|
|
224
|
-
|
|
101
|
+
static BlogGetResponse() {
|
|
102
|
+
return Joi.object({
|
|
103
|
+
items: Joi.array().items(ContentModel.BlogSchema()),
|
|
104
|
+
page: ContentModel.Page(),
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
static BlogRequest() {
|
|
225
108
|
return Joi.object({
|
|
226
|
-
_id: Joi.string().allow(""),
|
|
227
|
-
|
|
228
109
|
_custom_json: Joi.any(),
|
|
229
|
-
|
|
110
|
+
_schedule: ContentModel.CronSchedule(),
|
|
230
111
|
application: Joi.string().allow(""),
|
|
231
|
-
|
|
232
|
-
archived: Joi.boolean(),
|
|
233
|
-
|
|
234
112
|
author: ContentModel.Author(),
|
|
235
|
-
|
|
236
113
|
content: Joi.array().items(ContentModel.ResourceContent()),
|
|
237
|
-
|
|
238
114
|
feature_image: ContentModel.Asset(),
|
|
239
|
-
|
|
240
115
|
published: Joi.boolean(),
|
|
241
|
-
|
|
242
116
|
reading_time: Joi.string().allow(""),
|
|
243
|
-
|
|
117
|
+
seo: ContentModel.SEO(),
|
|
244
118
|
slug: Joi.string().allow(""),
|
|
245
|
-
|
|
246
119
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
247
|
-
|
|
248
|
-
seo: ContentModel.SEO(),
|
|
249
|
-
|
|
250
|
-
_schedule: ContentModel.CronSchedule(),
|
|
251
|
-
|
|
252
|
-
title: Joi.string().allow(""),
|
|
253
|
-
|
|
254
|
-
date_meta: ContentModel.DateMeta(),
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
static SEO() {
|
|
259
|
-
return Joi.object({
|
|
260
|
-
description: Joi.string().allow(""),
|
|
261
|
-
|
|
262
|
-
image: ContentModel.SEOImage(),
|
|
263
|
-
|
|
264
120
|
title: Joi.string().allow(""),
|
|
265
121
|
});
|
|
266
122
|
}
|
|
267
|
-
|
|
268
|
-
static SEOImage() {
|
|
123
|
+
static BlogSchema() {
|
|
269
124
|
return Joi.object({
|
|
270
|
-
url: Joi.string().allow(""),
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
static DateMeta() {
|
|
275
|
-
return Joi.object({
|
|
276
|
-
created_on: Joi.string().allow(""),
|
|
277
|
-
|
|
278
|
-
modified_on: Joi.string().allow(""),
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
static BlogRequest() {
|
|
283
|
-
return Joi.object({
|
|
284
|
-
application: Joi.string().allow(""),
|
|
285
|
-
|
|
286
125
|
_custom_json: Joi.any(),
|
|
287
|
-
|
|
126
|
+
_id: Joi.string().allow(""),
|
|
127
|
+
_schedule: ContentModel.CronSchedule(),
|
|
128
|
+
application: Joi.string().allow(""),
|
|
129
|
+
archived: Joi.boolean(),
|
|
288
130
|
author: ContentModel.Author(),
|
|
289
|
-
|
|
290
131
|
content: Joi.array().items(ContentModel.ResourceContent()),
|
|
291
|
-
|
|
132
|
+
date_meta: ContentModel.DateMeta(),
|
|
292
133
|
feature_image: ContentModel.Asset(),
|
|
293
|
-
|
|
294
134
|
published: Joi.boolean(),
|
|
295
|
-
|
|
296
135
|
reading_time: Joi.string().allow(""),
|
|
297
|
-
|
|
136
|
+
seo: ContentModel.SEO(),
|
|
298
137
|
slug: Joi.string().allow(""),
|
|
299
|
-
|
|
300
138
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
301
|
-
|
|
302
139
|
title: Joi.string().allow(""),
|
|
303
|
-
|
|
304
|
-
seo: ContentModel.SEO(),
|
|
305
|
-
|
|
306
|
-
_schedule: ContentModel.CronSchedule(),
|
|
307
140
|
});
|
|
308
141
|
}
|
|
309
|
-
|
|
310
|
-
static GetAnnouncementListSchema() {
|
|
142
|
+
static CategoryRequestSchema() {
|
|
311
143
|
return Joi.object({
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
page: ContentModel.Page(),
|
|
144
|
+
slug: Joi.string().allow(""),
|
|
145
|
+
title: Joi.string().allow(""),
|
|
315
146
|
});
|
|
316
147
|
}
|
|
317
|
-
|
|
318
|
-
static CreateAnnouncementSchema() {
|
|
148
|
+
static CategorySchema() {
|
|
319
149
|
return Joi.object({
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
150
|
+
_custom_json: Joi.any(),
|
|
151
|
+
_id: Joi.string().allow(""),
|
|
152
|
+
application: Joi.string().allow(""),
|
|
153
|
+
children: Joi.array().items(Joi.string().allow("")),
|
|
154
|
+
description: Joi.string().allow(""),
|
|
155
|
+
icon_url: Joi.string().allow(""),
|
|
156
|
+
index: Joi.number(),
|
|
157
|
+
slug: Joi.string().allow(""),
|
|
158
|
+
title: Joi.string().allow(""),
|
|
323
159
|
});
|
|
324
160
|
}
|
|
325
|
-
|
|
326
|
-
static DataLoaderResponseSchema() {
|
|
161
|
+
static ChildrenSchema() {
|
|
327
162
|
return Joi.object({
|
|
328
|
-
application: Joi.string().allow(""),
|
|
329
|
-
|
|
330
|
-
company: Joi.string().allow(""),
|
|
331
|
-
|
|
332
163
|
_id: Joi.string().allow(""),
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
operation_id: Joi.string().allow(""),
|
|
339
|
-
|
|
340
|
-
type: Joi.string().allow(""),
|
|
341
|
-
|
|
342
|
-
url: Joi.string().allow(""),
|
|
343
|
-
|
|
344
|
-
content: Joi.string().allow(""),
|
|
345
|
-
|
|
346
|
-
__source: ContentModel.DataLoaderSourceSchema(),
|
|
164
|
+
answer: Joi.string().allow(""),
|
|
165
|
+
application: Joi.string().allow(""),
|
|
166
|
+
question: Joi.string().allow(""),
|
|
167
|
+
slug: Joi.string().allow(""),
|
|
347
168
|
});
|
|
348
169
|
}
|
|
349
|
-
|
|
350
|
-
static DataLoaderResetResponseSchema() {
|
|
170
|
+
static CommonError() {
|
|
351
171
|
return Joi.object({
|
|
352
|
-
|
|
172
|
+
message: Joi.string().allow(""),
|
|
353
173
|
});
|
|
354
174
|
}
|
|
355
|
-
|
|
356
|
-
static Navigation() {
|
|
175
|
+
static ConfigurationSchema() {
|
|
357
176
|
return Joi.object({
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
orientation: Joi.string().allow(""),
|
|
363
|
-
|
|
364
|
-
created_by: ContentModel.CreatedBySchema(),
|
|
365
|
-
|
|
366
|
-
date_meta: ContentModel.DateMeta(),
|
|
367
|
-
|
|
368
|
-
_id: Joi.string().allow(""),
|
|
369
|
-
|
|
370
|
-
position: Joi.string().allow(""),
|
|
371
|
-
|
|
372
|
-
application: Joi.string().allow(""),
|
|
373
|
-
|
|
374
|
-
platform: Joi.string().allow(""),
|
|
375
|
-
|
|
376
|
-
navigation: ContentModel.NavigationReference(),
|
|
177
|
+
duration: Joi.number(),
|
|
178
|
+
sleep_time: Joi.number(),
|
|
179
|
+
slide_direction: Joi.string().allow(""),
|
|
180
|
+
start_on_launch: Joi.boolean(),
|
|
377
181
|
});
|
|
378
182
|
}
|
|
379
|
-
|
|
380
|
-
static LocaleLanguage() {
|
|
183
|
+
static ContactSchema() {
|
|
381
184
|
return Joi.object({
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
ar: ContentModel.Language(),
|
|
385
|
-
|
|
386
|
-
en_us: ContentModel.Language(),
|
|
185
|
+
email: ContentModel.EmailSchema(),
|
|
186
|
+
phone: ContentModel.PhoneSchema(),
|
|
387
187
|
});
|
|
388
188
|
}
|
|
389
|
-
|
|
390
|
-
static Language() {
|
|
189
|
+
static ContentAPIError() {
|
|
391
190
|
return Joi.object({
|
|
392
|
-
|
|
191
|
+
code: Joi.string().allow(""),
|
|
192
|
+
exception: Joi.string().allow(""),
|
|
193
|
+
info: Joi.string().allow(""),
|
|
194
|
+
message: Joi.string().allow(""),
|
|
195
|
+
meta: Joi.any(),
|
|
196
|
+
request_id: Joi.string().allow(""),
|
|
197
|
+
stack_trace: Joi.string().allow(""),
|
|
198
|
+
status: Joi.number(),
|
|
393
199
|
});
|
|
394
200
|
}
|
|
395
|
-
|
|
396
|
-
static Action() {
|
|
201
|
+
static ContentSchema() {
|
|
397
202
|
return Joi.object({
|
|
398
|
-
page: ContentModel.ActionPage(),
|
|
399
|
-
|
|
400
|
-
popup: ContentModel.ActionPage(),
|
|
401
|
-
|
|
402
203
|
type: Joi.string().allow(""),
|
|
204
|
+
value: Joi.any(),
|
|
403
205
|
});
|
|
404
206
|
}
|
|
405
|
-
|
|
406
|
-
static ActionPage() {
|
|
207
|
+
static CreateAnnouncementSchema() {
|
|
407
208
|
return Joi.object({
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
Joi.array().items(Joi.string().allow(""))
|
|
411
|
-
),
|
|
412
|
-
|
|
413
|
-
query: Joi.object().pattern(
|
|
414
|
-
/\S/,
|
|
415
|
-
Joi.array().items(Joi.string().allow(""))
|
|
416
|
-
),
|
|
417
|
-
|
|
418
|
-
url: Joi.string().allow(""),
|
|
419
|
-
|
|
420
|
-
type: ContentModel.PageType().required(),
|
|
209
|
+
data: ContentModel.AdminAnnouncementSchema(),
|
|
210
|
+
message: Joi.string().allow(""),
|
|
421
211
|
});
|
|
422
212
|
}
|
|
423
|
-
|
|
424
|
-
static NavigationReference() {
|
|
213
|
+
static CreatedBySchema() {
|
|
425
214
|
return Joi.object({
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
429
|
-
|
|
430
|
-
_locale_language: ContentModel.LocaleLanguage(),
|
|
431
|
-
|
|
432
|
-
image: Joi.string().allow(""),
|
|
433
|
-
|
|
434
|
-
type: Joi.string().allow(""),
|
|
435
|
-
|
|
436
|
-
action: ContentModel.Action(),
|
|
437
|
-
|
|
438
|
-
active: Joi.boolean(),
|
|
439
|
-
|
|
440
|
-
display: Joi.string().allow(""),
|
|
441
|
-
|
|
442
|
-
sort_order: Joi.number(),
|
|
443
|
-
|
|
444
|
-
sub_navigation: Joi.array().items(ContentModel.NavigationReference()),
|
|
215
|
+
id: Joi.string().allow(""),
|
|
445
216
|
});
|
|
446
217
|
}
|
|
447
|
-
|
|
448
|
-
static LandingPage() {
|
|
218
|
+
static CreateFaqCategoryRequestSchema() {
|
|
449
219
|
return Joi.object({
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
success: Joi.boolean(),
|
|
220
|
+
category: ContentModel.CategoryRequestSchema(),
|
|
453
221
|
});
|
|
454
222
|
}
|
|
455
|
-
|
|
456
|
-
static ConfigurationSchema() {
|
|
223
|
+
static CreateFaqCategorySchema() {
|
|
457
224
|
return Joi.object({
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
start_on_launch: Joi.boolean(),
|
|
461
|
-
|
|
462
|
-
duration: Joi.number(),
|
|
463
|
-
|
|
464
|
-
slide_direction: Joi.string().allow(""),
|
|
225
|
+
category: ContentModel.CategorySchema(),
|
|
465
226
|
});
|
|
466
227
|
}
|
|
467
|
-
|
|
468
|
-
static SlideshowMedia() {
|
|
228
|
+
static CreateFaqResponseSchema() {
|
|
469
229
|
return Joi.object({
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
url: Joi.string().allow(""),
|
|
473
|
-
|
|
474
|
-
bg_color: Joi.string().allow(""),
|
|
475
|
-
|
|
476
|
-
duration: Joi.number(),
|
|
477
|
-
|
|
478
|
-
auto_decide_duration: Joi.boolean(),
|
|
479
|
-
|
|
480
|
-
action: ContentModel.Action(),
|
|
230
|
+
faq: ContentModel.FaqSchema(),
|
|
481
231
|
});
|
|
482
232
|
}
|
|
483
|
-
|
|
484
|
-
static Slideshow() {
|
|
233
|
+
static CreateFaqSchema() {
|
|
485
234
|
return Joi.object({
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
success: Joi.boolean(),
|
|
235
|
+
faq: ContentModel.FAQ(),
|
|
489
236
|
});
|
|
490
237
|
}
|
|
491
|
-
|
|
492
|
-
static AnnouncementsResponseSchema() {
|
|
238
|
+
static CreateTagRequestSchema() {
|
|
493
239
|
return Joi.object({
|
|
494
|
-
|
|
495
|
-
/\S/,
|
|
496
|
-
Joi.array().items(this.AnnouncementSchema())
|
|
497
|
-
),
|
|
498
|
-
|
|
499
|
-
refresh_rate: Joi.number(),
|
|
500
|
-
|
|
501
|
-
refresh_pages: Joi.array().items(Joi.string().allow("")),
|
|
240
|
+
tags: Joi.array().items(ContentModel.CreateTagSchema()),
|
|
502
241
|
});
|
|
503
242
|
}
|
|
504
|
-
|
|
505
|
-
static FaqResponseSchema() {
|
|
243
|
+
static CreateTagSchema() {
|
|
506
244
|
return Joi.object({
|
|
507
|
-
|
|
245
|
+
_id: Joi.string().allow(""),
|
|
246
|
+
attributes: Joi.any(),
|
|
247
|
+
content: Joi.string().allow(""),
|
|
248
|
+
name: Joi.string().allow(""),
|
|
249
|
+
pages: Joi.array().items(Joi.any()),
|
|
250
|
+
position: Joi.string().allow(""),
|
|
251
|
+
sub_type: Joi.string().allow(""),
|
|
252
|
+
type: Joi.string().allow(""),
|
|
253
|
+
url: Joi.string().allow(""),
|
|
508
254
|
});
|
|
509
255
|
}
|
|
510
|
-
|
|
511
|
-
static UpdateHandpickedSchema() {
|
|
256
|
+
static CronSchedule() {
|
|
512
257
|
return Joi.object({
|
|
513
|
-
|
|
258
|
+
cron: Joi.string().allow(""),
|
|
259
|
+
duration: Joi.number(),
|
|
260
|
+
end: Joi.string().allow(""),
|
|
261
|
+
start: Joi.string().allow(""),
|
|
514
262
|
});
|
|
515
263
|
}
|
|
516
|
-
|
|
517
|
-
static HandpickedTagSchema() {
|
|
264
|
+
static CustomMetaTag() {
|
|
518
265
|
return Joi.object({
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
attributes: Joi.any(),
|
|
522
|
-
|
|
523
|
-
name: Joi.string().allow(""),
|
|
524
|
-
|
|
525
|
-
url: Joi.string().allow(""),
|
|
526
|
-
|
|
527
|
-
type: Joi.string().allow(""),
|
|
528
|
-
|
|
529
|
-
sub_type: Joi.string().allow(""),
|
|
530
|
-
|
|
266
|
+
_id: Joi.string().allow(""),
|
|
531
267
|
content: Joi.string().allow(""),
|
|
268
|
+
name: Joi.string().allow(""),
|
|
532
269
|
});
|
|
533
270
|
}
|
|
534
|
-
|
|
535
|
-
static RemoveHandpickedSchema() {
|
|
271
|
+
static CustomPage() {
|
|
536
272
|
return Joi.object({
|
|
537
|
-
|
|
273
|
+
data: ContentModel.CustomPageSchema(),
|
|
538
274
|
});
|
|
539
275
|
}
|
|
540
|
-
|
|
541
|
-
static CreateTagSchema() {
|
|
276
|
+
static CustomPageSchema() {
|
|
542
277
|
return Joi.object({
|
|
543
|
-
name: Joi.string().allow(""),
|
|
544
|
-
|
|
545
|
-
sub_type: Joi.string().allow(""),
|
|
546
|
-
|
|
547
278
|
_id: Joi.string().allow(""),
|
|
548
|
-
|
|
279
|
+
_schedule: ContentModel.ScheduleSchema(),
|
|
280
|
+
application: Joi.string().allow(""),
|
|
281
|
+
content: Joi.array().items(Joi.any()),
|
|
282
|
+
created_by: ContentModel.CreatedBySchema(),
|
|
283
|
+
date_meta: ContentModel.DateMeta(),
|
|
284
|
+
description: Joi.string().allow(""),
|
|
285
|
+
orientation: Joi.string().allow(""),
|
|
286
|
+
platform: Joi.string().allow(""),
|
|
287
|
+
published: Joi.boolean(),
|
|
288
|
+
slug: Joi.string().allow(""),
|
|
289
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
290
|
+
title: Joi.string().allow(""),
|
|
549
291
|
type: Joi.string().allow(""),
|
|
550
|
-
|
|
551
|
-
url: Joi.string().allow(""),
|
|
552
|
-
|
|
553
|
-
position: Joi.string().allow(""),
|
|
554
|
-
|
|
555
|
-
attributes: Joi.any(),
|
|
556
|
-
|
|
557
|
-
pages: Joi.array().items(Joi.any()),
|
|
558
|
-
|
|
559
|
-
content: Joi.string().allow(""),
|
|
560
292
|
});
|
|
561
293
|
}
|
|
562
|
-
|
|
563
|
-
|
|
294
|
+
static DataLoaderResetResponseSchema() {
|
|
295
|
+
return Joi.object({
|
|
296
|
+
reset: Joi.string().allow(""),
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
static DataLoaderResponseSchema() {
|
|
564
300
|
return Joi.object({
|
|
565
|
-
|
|
301
|
+
__source: ContentModel.DataLoaderSourceSchema(),
|
|
302
|
+
_id: Joi.string().allow(""),
|
|
303
|
+
application: Joi.string().allow(""),
|
|
304
|
+
company: Joi.string().allow(""),
|
|
305
|
+
content: Joi.string().allow(""),
|
|
306
|
+
name: Joi.string().allow(""),
|
|
307
|
+
operation_id: Joi.string().allow(""),
|
|
308
|
+
service: Joi.string().allow(""),
|
|
309
|
+
type: Joi.string().allow(""),
|
|
310
|
+
url: Joi.string().allow(""),
|
|
566
311
|
});
|
|
567
312
|
}
|
|
568
|
-
|
|
569
313
|
static DataLoaderSchema() {
|
|
570
314
|
return Joi.object({
|
|
315
|
+
__source: ContentModel.DataLoaderSourceSchema(),
|
|
316
|
+
_id: Joi.string().allow(""),
|
|
317
|
+
content: Joi.string().allow(""),
|
|
571
318
|
name: Joi.string().allow(""),
|
|
572
|
-
|
|
573
|
-
service: Joi.string().allow(""),
|
|
574
|
-
|
|
575
319
|
operation_id: Joi.string().allow(""),
|
|
576
|
-
|
|
320
|
+
service: Joi.string().allow(""),
|
|
577
321
|
type: Joi.string().allow(""),
|
|
578
|
-
|
|
579
322
|
url: Joi.string().allow(""),
|
|
580
|
-
|
|
581
|
-
content: Joi.string().allow(""),
|
|
582
|
-
|
|
583
|
-
__source: ContentModel.DataLoaderSourceSchema(),
|
|
584
|
-
|
|
585
|
-
_id: Joi.string().allow(""),
|
|
586
323
|
});
|
|
587
324
|
}
|
|
588
|
-
|
|
589
325
|
static DataLoaderSourceSchema() {
|
|
590
326
|
return Joi.object({
|
|
591
|
-
type: Joi.string().allow(""),
|
|
592
|
-
|
|
593
327
|
id: Joi.string().allow(""),
|
|
328
|
+
type: Joi.string().allow(""),
|
|
594
329
|
});
|
|
595
330
|
}
|
|
596
|
-
|
|
597
331
|
static DataLoadersSchema() {
|
|
598
332
|
return Joi.object({
|
|
599
333
|
items: Joi.array().items(ContentModel.DataLoaderSchema()),
|
|
600
334
|
});
|
|
601
335
|
}
|
|
602
|
-
|
|
603
|
-
static TagDeleteSuccessResponse() {
|
|
604
|
-
return Joi.object({
|
|
605
|
-
success: Joi.boolean(),
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
static ContentAPIError() {
|
|
336
|
+
static DateMeta() {
|
|
610
337
|
return Joi.object({
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
status: Joi.number(),
|
|
614
|
-
|
|
615
|
-
code: Joi.string().allow(""),
|
|
616
|
-
|
|
617
|
-
exception: Joi.string().allow(""),
|
|
618
|
-
|
|
619
|
-
info: Joi.string().allow(""),
|
|
620
|
-
|
|
621
|
-
request_id: Joi.string().allow(""),
|
|
622
|
-
|
|
623
|
-
stack_trace: Joi.string().allow(""),
|
|
624
|
-
|
|
625
|
-
meta: Joi.any(),
|
|
338
|
+
created_on: Joi.string().allow(""),
|
|
339
|
+
modified_on: Joi.string().allow(""),
|
|
626
340
|
});
|
|
627
341
|
}
|
|
628
|
-
|
|
629
|
-
static CommonError() {
|
|
342
|
+
static DefaultNavigationResponse() {
|
|
630
343
|
return Joi.object({
|
|
631
|
-
|
|
344
|
+
items: Joi.array().items(ContentModel.NavigationSchema()),
|
|
632
345
|
});
|
|
633
346
|
}
|
|
634
|
-
|
|
635
|
-
static CategorySchema() {
|
|
347
|
+
static Detail() {
|
|
636
348
|
return Joi.object({
|
|
637
|
-
index: Joi.number(),
|
|
638
|
-
|
|
639
|
-
title: Joi.string().allow(""),
|
|
640
|
-
|
|
641
349
|
description: Joi.string().allow(""),
|
|
642
|
-
|
|
643
|
-
children: Joi.array().items(Joi.string().allow("")),
|
|
644
|
-
|
|
645
|
-
_id: Joi.string().allow(""),
|
|
646
|
-
|
|
647
|
-
slug: Joi.string().allow(""),
|
|
648
|
-
|
|
649
|
-
application: Joi.string().allow(""),
|
|
650
|
-
|
|
651
|
-
icon_url: Joi.string().allow(""),
|
|
652
|
-
|
|
653
|
-
_custom_json: Joi.any(),
|
|
654
|
-
});
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
static ChildrenSchema() {
|
|
658
|
-
return Joi.object({
|
|
659
|
-
question: Joi.string().allow(""),
|
|
660
|
-
|
|
661
|
-
answer: Joi.string().allow(""),
|
|
662
|
-
|
|
663
|
-
slug: Joi.string().allow(""),
|
|
664
|
-
|
|
665
|
-
application: Joi.string().allow(""),
|
|
666
|
-
|
|
667
|
-
_id: Joi.string().allow(""),
|
|
350
|
+
title: Joi.string().allow(""),
|
|
668
351
|
});
|
|
669
352
|
}
|
|
670
|
-
|
|
671
|
-
static CategoryRequestSchema() {
|
|
353
|
+
static EditorMeta() {
|
|
672
354
|
return Joi.object({
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
355
|
+
background_color: Joi.string().allow(""),
|
|
356
|
+
content: Joi.string().allow(""),
|
|
357
|
+
content_type: Joi.string().allow(""),
|
|
358
|
+
foreground_color: Joi.string().allow(""),
|
|
676
359
|
});
|
|
677
360
|
}
|
|
678
|
-
|
|
679
|
-
static FAQCategorySchema() {
|
|
361
|
+
static EmailProperties() {
|
|
680
362
|
return Joi.object({
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
title: Joi.string().allow(""),
|
|
684
|
-
|
|
685
|
-
description: Joi.string().allow(""),
|
|
686
|
-
|
|
687
|
-
children: Joi.array().items(ContentModel.ChildrenSchema()),
|
|
688
|
-
|
|
689
|
-
_id: Joi.string().allow(""),
|
|
690
|
-
|
|
691
|
-
slug: Joi.string().allow(""),
|
|
692
|
-
|
|
693
|
-
application: Joi.string().allow(""),
|
|
694
|
-
|
|
695
|
-
icon_url: Joi.string().allow(""),
|
|
696
|
-
|
|
697
|
-
_custom_json: Joi.any(),
|
|
363
|
+
key: Joi.string().allow(""),
|
|
364
|
+
value: Joi.string().allow(""),
|
|
698
365
|
});
|
|
699
366
|
}
|
|
700
|
-
|
|
701
|
-
static FaqSchema() {
|
|
367
|
+
static EmailSchema() {
|
|
702
368
|
return Joi.object({
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
application: Joi.string().allow(""),
|
|
706
|
-
|
|
707
|
-
_id: Joi.string().allow(""),
|
|
708
|
-
|
|
709
|
-
question: Joi.string().allow(""),
|
|
710
|
-
|
|
711
|
-
answer: Joi.string().allow(""),
|
|
712
|
-
|
|
713
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
369
|
+
active: Joi.boolean(),
|
|
370
|
+
email: Joi.array().items(ContentModel.EmailProperties()),
|
|
714
371
|
});
|
|
715
372
|
}
|
|
716
|
-
|
|
717
373
|
static FAQ() {
|
|
718
374
|
return Joi.object({
|
|
719
|
-
slug: Joi.string().allow(""),
|
|
720
|
-
|
|
721
|
-
question: Joi.string().allow(""),
|
|
722
|
-
|
|
723
375
|
answer: Joi.string().allow(""),
|
|
376
|
+
question: Joi.string().allow(""),
|
|
377
|
+
slug: Joi.string().allow(""),
|
|
724
378
|
});
|
|
725
379
|
}
|
|
726
|
-
|
|
727
|
-
static CreateFaqResponseSchema() {
|
|
728
|
-
return Joi.object({
|
|
729
|
-
faq: ContentModel.FaqSchema(),
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
static CreateFaqSchema() {
|
|
380
|
+
static FAQCategorySchema() {
|
|
734
381
|
return Joi.object({
|
|
735
|
-
|
|
382
|
+
_custom_json: Joi.any(),
|
|
383
|
+
_id: Joi.string().allow(""),
|
|
384
|
+
application: Joi.string().allow(""),
|
|
385
|
+
children: Joi.array().items(ContentModel.ChildrenSchema()),
|
|
386
|
+
description: Joi.string().allow(""),
|
|
387
|
+
icon_url: Joi.string().allow(""),
|
|
388
|
+
index: Joi.number(),
|
|
389
|
+
slug: Joi.string().allow(""),
|
|
390
|
+
title: Joi.string().allow(""),
|
|
736
391
|
});
|
|
737
392
|
}
|
|
738
|
-
|
|
739
|
-
static GetFaqSchema() {
|
|
393
|
+
static FaqResponseSchema() {
|
|
740
394
|
return Joi.object({
|
|
741
395
|
faqs: Joi.array().items(ContentModel.FaqSchema()),
|
|
742
396
|
});
|
|
743
397
|
}
|
|
744
|
-
|
|
745
|
-
static UpdateFaqCategoryRequestSchema() {
|
|
398
|
+
static FaqSchema() {
|
|
746
399
|
return Joi.object({
|
|
747
|
-
|
|
400
|
+
_id: Joi.string().allow(""),
|
|
401
|
+
answer: Joi.string().allow(""),
|
|
402
|
+
application: Joi.string().allow(""),
|
|
403
|
+
question: Joi.string().allow(""),
|
|
404
|
+
slug: Joi.string().allow(""),
|
|
405
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
748
406
|
});
|
|
749
407
|
}
|
|
750
|
-
|
|
751
|
-
static CreateFaqCategoryRequestSchema() {
|
|
408
|
+
static FeatureImage() {
|
|
752
409
|
return Joi.object({
|
|
753
|
-
|
|
410
|
+
secure_url: Joi.string().allow(""),
|
|
754
411
|
});
|
|
755
412
|
}
|
|
756
|
-
|
|
757
|
-
static CreateFaqCategorySchema() {
|
|
413
|
+
static GetAnnouncementListSchema() {
|
|
758
414
|
return Joi.object({
|
|
759
|
-
|
|
415
|
+
items: Joi.array().items(ContentModel.AdminAnnouncementSchema()),
|
|
416
|
+
page: ContentModel.Page(),
|
|
760
417
|
});
|
|
761
418
|
}
|
|
762
|
-
|
|
763
419
|
static GetFaqCategoriesSchema() {
|
|
764
420
|
return Joi.object({
|
|
765
421
|
categories: Joi.array().items(ContentModel.CategorySchema()),
|
|
766
422
|
});
|
|
767
423
|
}
|
|
768
|
-
|
|
769
424
|
static GetFaqCategoryBySlugSchema() {
|
|
770
425
|
return Joi.object({
|
|
771
426
|
category: ContentModel.FAQCategorySchema(),
|
|
772
427
|
});
|
|
773
428
|
}
|
|
774
|
-
|
|
775
|
-
static Page() {
|
|
429
|
+
static GetFaqSchema() {
|
|
776
430
|
return Joi.object({
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
next_id: Joi.string().allow(""),
|
|
780
|
-
|
|
781
|
-
has_previous: Joi.boolean(),
|
|
782
|
-
|
|
783
|
-
has_next: Joi.boolean(),
|
|
784
|
-
|
|
785
|
-
current: Joi.number(),
|
|
786
|
-
|
|
787
|
-
type: Joi.string().allow("").required(),
|
|
788
|
-
|
|
789
|
-
size: Joi.number(),
|
|
431
|
+
faqs: Joi.array().items(ContentModel.FaqSchema()),
|
|
790
432
|
});
|
|
791
433
|
}
|
|
792
|
-
|
|
793
|
-
static LandingPageGetResponse() {
|
|
434
|
+
static HandpickedTagSchema() {
|
|
794
435
|
return Joi.object({
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
436
|
+
attributes: Joi.any(),
|
|
437
|
+
content: Joi.string().allow(""),
|
|
438
|
+
name: Joi.string().allow(""),
|
|
439
|
+
position: Joi.string().allow(""),
|
|
440
|
+
sub_type: Joi.string().allow(""),
|
|
441
|
+
type: Joi.string().allow(""),
|
|
442
|
+
url: Joi.string().allow(""),
|
|
798
443
|
});
|
|
799
444
|
}
|
|
800
|
-
|
|
801
|
-
static LandingPageSchema() {
|
|
445
|
+
static LandingPage() {
|
|
802
446
|
return Joi.object({
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
date_meta: ContentModel.DateMeta(),
|
|
812
|
-
|
|
813
|
-
_id: Joi.string().allow(""),
|
|
814
|
-
|
|
815
|
-
application: Joi.string().allow(""),
|
|
816
|
-
|
|
817
|
-
archived: Joi.boolean(),
|
|
818
|
-
|
|
819
|
-
_custom_json: Joi.any(),
|
|
447
|
+
data: ContentModel.LandingPageSchema(),
|
|
448
|
+
success: Joi.boolean(),
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
static LandingPageGetResponse() {
|
|
452
|
+
return Joi.object({
|
|
453
|
+
items: Joi.array().items(ContentModel.LandingPageSchema()),
|
|
454
|
+
page: ContentModel.Page(),
|
|
820
455
|
});
|
|
821
456
|
}
|
|
822
|
-
|
|
823
|
-
static DefaultNavigationResponse() {
|
|
457
|
+
static LandingPageSchema() {
|
|
824
458
|
return Joi.object({
|
|
825
|
-
|
|
459
|
+
_custom_json: Joi.any(),
|
|
460
|
+
_id: Joi.string().allow(""),
|
|
461
|
+
action: ContentModel.Action(),
|
|
462
|
+
application: Joi.string().allow(""),
|
|
463
|
+
archived: Joi.boolean(),
|
|
464
|
+
created_by: ContentModel.CreatedBySchema(),
|
|
465
|
+
date_meta: ContentModel.DateMeta(),
|
|
466
|
+
platform: Joi.array().items(Joi.string().allow("")),
|
|
467
|
+
slug: Joi.string().allow(""),
|
|
826
468
|
});
|
|
827
469
|
}
|
|
828
|
-
|
|
829
|
-
static NavigationGetResponse() {
|
|
470
|
+
static Language() {
|
|
830
471
|
return Joi.object({
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
page: ContentModel.Page(),
|
|
472
|
+
display: Joi.string().allow(""),
|
|
834
473
|
});
|
|
835
474
|
}
|
|
836
|
-
|
|
837
|
-
static Orientation() {
|
|
475
|
+
static LocaleLanguage() {
|
|
838
476
|
return Joi.object({
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
477
|
+
ar: ContentModel.Language(),
|
|
478
|
+
en_us: ContentModel.Language(),
|
|
479
|
+
hi: ContentModel.Language(),
|
|
842
480
|
});
|
|
843
481
|
}
|
|
844
|
-
|
|
845
|
-
static NavigationSchema() {
|
|
482
|
+
static Navigation() {
|
|
846
483
|
return Joi.object({
|
|
847
484
|
_id: Joi.string().allow(""),
|
|
848
|
-
|
|
849
485
|
application: Joi.string().allow(""),
|
|
850
|
-
|
|
851
|
-
archived: Joi.boolean(),
|
|
852
|
-
|
|
853
|
-
name: Joi.string().allow(""),
|
|
854
|
-
|
|
855
|
-
slug: Joi.string().allow(""),
|
|
856
|
-
|
|
857
|
-
platform: Joi.array().items(Joi.string().allow("")),
|
|
858
|
-
|
|
859
486
|
created_by: ContentModel.CreatedBySchema(),
|
|
860
|
-
|
|
861
487
|
date_meta: ContentModel.DateMeta(),
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
488
|
+
name: Joi.string().allow(""),
|
|
489
|
+
navigation: ContentModel.NavigationReference(),
|
|
490
|
+
orientation: Joi.string().allow(""),
|
|
491
|
+
platform: Joi.string().allow(""),
|
|
492
|
+
position: Joi.string().allow(""),
|
|
493
|
+
slug: Joi.string().allow(""),
|
|
868
494
|
});
|
|
869
495
|
}
|
|
870
|
-
|
|
496
|
+
static NavigationGetResponse() {
|
|
497
|
+
return Joi.object({
|
|
498
|
+
items: Joi.array().items(ContentModel.NavigationSchema()),
|
|
499
|
+
page: ContentModel.Page(),
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
static NavigationReference() {
|
|
503
|
+
return Joi.object({
|
|
504
|
+
_locale_language: ContentModel.LocaleLanguage(),
|
|
505
|
+
acl: Joi.array().items(Joi.string().allow("")),
|
|
506
|
+
action: ContentModel.Action(),
|
|
507
|
+
active: Joi.boolean(),
|
|
508
|
+
display: Joi.string().allow(""),
|
|
509
|
+
image: Joi.string().allow(""),
|
|
510
|
+
sort_order: Joi.number(),
|
|
511
|
+
sub_navigation: Joi.array().items(Joi.link("#NavigationReference")),
|
|
512
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
513
|
+
type: Joi.string().allow(""),
|
|
514
|
+
}).id("NavigationReference");
|
|
515
|
+
}
|
|
871
516
|
static NavigationRequest() {
|
|
872
517
|
return Joi.object({
|
|
873
518
|
name: Joi.string().allow(""),
|
|
874
|
-
|
|
875
|
-
slug: Joi.string().allow(""),
|
|
876
|
-
|
|
877
|
-
platform: Joi.array().items(Joi.string().allow("")),
|
|
878
|
-
|
|
879
|
-
orientation: ContentModel.Orientation(),
|
|
880
|
-
|
|
881
519
|
navigation: Joi.array().items(ContentModel.NavigationReference()),
|
|
520
|
+
orientation: ContentModel.Orientation(),
|
|
521
|
+
platform: Joi.array().items(Joi.string().allow("")),
|
|
522
|
+
slug: Joi.string().allow(""),
|
|
882
523
|
});
|
|
883
524
|
}
|
|
884
|
-
|
|
885
|
-
static CustomPageSchema() {
|
|
525
|
+
static NavigationSchema() {
|
|
886
526
|
return Joi.object({
|
|
887
527
|
_id: Joi.string().allow(""),
|
|
888
|
-
|
|
889
|
-
platform: Joi.string().allow(""),
|
|
890
|
-
|
|
891
|
-
title: Joi.string().allow(""),
|
|
892
|
-
|
|
893
|
-
slug: Joi.string().allow(""),
|
|
894
|
-
|
|
895
|
-
type: Joi.string().allow(""),
|
|
896
|
-
|
|
897
|
-
orientation: Joi.string().allow(""),
|
|
898
|
-
|
|
899
528
|
application: Joi.string().allow(""),
|
|
900
|
-
|
|
901
|
-
description: Joi.string().allow(""),
|
|
902
|
-
|
|
903
|
-
published: Joi.boolean(),
|
|
904
|
-
|
|
905
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
906
|
-
|
|
907
|
-
content: Joi.array().items(Joi.any()),
|
|
908
|
-
|
|
529
|
+
archived: Joi.boolean(),
|
|
909
530
|
created_by: ContentModel.CreatedBySchema(),
|
|
910
|
-
|
|
911
531
|
date_meta: ContentModel.DateMeta(),
|
|
912
|
-
|
|
913
|
-
|
|
532
|
+
name: Joi.string().allow(""),
|
|
533
|
+
navigation: Joi.array().items(ContentModel.NavigationReference()),
|
|
534
|
+
orientation: ContentModel.Orientation(),
|
|
535
|
+
platform: Joi.array().items(Joi.string().allow("")),
|
|
536
|
+
slug: Joi.string().allow(""),
|
|
537
|
+
version: Joi.number(),
|
|
914
538
|
});
|
|
915
539
|
}
|
|
916
|
-
|
|
917
|
-
static ContentSchema() {
|
|
540
|
+
static NextSchedule() {
|
|
918
541
|
return Joi.object({
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
value: Joi.any(),
|
|
542
|
+
end: Joi.string().allow(""),
|
|
543
|
+
start: Joi.string().allow(""),
|
|
922
544
|
});
|
|
923
545
|
}
|
|
924
|
-
|
|
925
|
-
static CustomPage() {
|
|
546
|
+
static Orientation() {
|
|
926
547
|
return Joi.object({
|
|
927
|
-
|
|
548
|
+
landscape: Joi.array().items(Joi.string().allow("")),
|
|
549
|
+
portrait: Joi.array().items(Joi.string().allow("")),
|
|
928
550
|
});
|
|
929
551
|
}
|
|
930
|
-
|
|
931
|
-
static FeatureImage() {
|
|
552
|
+
static Page() {
|
|
932
553
|
return Joi.object({
|
|
933
|
-
|
|
554
|
+
current: Joi.number(),
|
|
555
|
+
has_next: Joi.boolean(),
|
|
556
|
+
has_previous: Joi.boolean(),
|
|
557
|
+
item_total: Joi.number(),
|
|
558
|
+
next_id: Joi.string().allow(""),
|
|
559
|
+
size: Joi.number(),
|
|
560
|
+
type: Joi.string().allow("").required(),
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
static PageContent() {
|
|
564
|
+
return Joi.object({
|
|
565
|
+
type: Joi.string().allow(""),
|
|
566
|
+
value: Joi.any(),
|
|
934
567
|
});
|
|
935
568
|
}
|
|
936
|
-
|
|
937
569
|
static PageGetResponse() {
|
|
938
570
|
return Joi.object({
|
|
939
571
|
items: Joi.array().items(ContentModel.PageSchema()),
|
|
940
|
-
|
|
941
572
|
page: ContentModel.Page(),
|
|
942
573
|
});
|
|
943
574
|
}
|
|
944
|
-
|
|
945
|
-
static PageSpec() {
|
|
575
|
+
static PageMeta() {
|
|
946
576
|
return Joi.object({
|
|
947
|
-
|
|
577
|
+
key: Joi.string().allow(""),
|
|
578
|
+
value: Joi.any(),
|
|
948
579
|
});
|
|
949
580
|
}
|
|
950
|
-
|
|
951
|
-
static PageSpecParam() {
|
|
581
|
+
static PageMetaSchema() {
|
|
952
582
|
return Joi.object({
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
583
|
+
application_id: Joi.string().allow(""),
|
|
584
|
+
custom_pages: Joi.array().items(ContentModel.PageSchema()),
|
|
585
|
+
system_pages: Joi.array().items(ContentModel.NavigationSchema()),
|
|
956
586
|
});
|
|
957
587
|
}
|
|
958
|
-
|
|
959
|
-
static PageSpecItem() {
|
|
588
|
+
static PagePublishRequest() {
|
|
960
589
|
return Joi.object({
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
590
|
+
publish: Joi.boolean(),
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
static PageRequest() {
|
|
594
|
+
return Joi.object({
|
|
595
|
+
_custom_json: Joi.any(),
|
|
596
|
+
_schedule: ContentModel.CronSchedule(),
|
|
597
|
+
application: Joi.string().allow(""),
|
|
598
|
+
author: ContentModel.Author(),
|
|
599
|
+
content: Joi.array().items(Joi.any()),
|
|
600
|
+
feature_image: ContentModel.Asset(),
|
|
601
|
+
orientation: Joi.string().allow(""),
|
|
602
|
+
published: Joi.boolean(),
|
|
603
|
+
reading_time: Joi.string().allow(""),
|
|
604
|
+
seo: ContentModel.SEO(),
|
|
605
|
+
slug: Joi.string().allow(""),
|
|
606
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
607
|
+
title: Joi.string().allow(""),
|
|
968
608
|
});
|
|
969
609
|
}
|
|
970
|
-
|
|
971
610
|
static PageSchema() {
|
|
972
611
|
return Joi.object({
|
|
612
|
+
_custom_json: Joi.any(),
|
|
973
613
|
_id: Joi.string().allow(""),
|
|
974
|
-
|
|
614
|
+
_schedule: ContentModel.ScheduleSchema(),
|
|
975
615
|
application: Joi.string().allow(""),
|
|
976
|
-
|
|
616
|
+
archived: Joi.boolean(),
|
|
977
617
|
component_ids: Joi.array().items(Joi.string().allow("")),
|
|
978
|
-
|
|
979
618
|
content: Joi.array().items(Joi.any()),
|
|
980
|
-
|
|
981
619
|
content_path: Joi.string().allow(""),
|
|
982
|
-
|
|
983
620
|
created_by: ContentModel.CreatedBySchema(),
|
|
984
|
-
|
|
985
621
|
date_meta: ContentModel.DateMeta(),
|
|
986
|
-
|
|
987
622
|
description: Joi.string().allow(""),
|
|
988
|
-
|
|
989
623
|
feature_image: ContentModel.Asset(),
|
|
990
|
-
|
|
991
|
-
page_meta: Joi.array().items(Joi.any()),
|
|
992
|
-
|
|
993
|
-
_schedule: ContentModel.ScheduleSchema(),
|
|
994
|
-
|
|
995
|
-
_custom_json: Joi.any(),
|
|
996
|
-
|
|
997
624
|
orientation: Joi.string().allow(""),
|
|
998
|
-
|
|
625
|
+
page_meta: Joi.array().items(Joi.any()),
|
|
999
626
|
platform: Joi.string().allow(""),
|
|
1000
|
-
|
|
1001
627
|
published: Joi.boolean(),
|
|
1002
|
-
|
|
628
|
+
seo: ContentModel.SEO(),
|
|
1003
629
|
slug: Joi.string().allow(""),
|
|
1004
|
-
|
|
1005
630
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
1006
|
-
|
|
1007
631
|
title: Joi.string().allow(""),
|
|
1008
|
-
|
|
1009
632
|
type: Joi.string().allow(""),
|
|
1010
|
-
|
|
1011
|
-
seo: ContentModel.SEO(),
|
|
1012
|
-
|
|
1013
633
|
visibility: Joi.any(),
|
|
1014
|
-
|
|
1015
|
-
archived: Joi.boolean(),
|
|
1016
634
|
});
|
|
1017
635
|
}
|
|
1018
|
-
|
|
1019
|
-
static CreatedBySchema() {
|
|
636
|
+
static PageSpec() {
|
|
1020
637
|
return Joi.object({
|
|
1021
|
-
|
|
638
|
+
specifications: Joi.array().items(Joi.any()),
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
static PageSpecItem() {
|
|
642
|
+
return Joi.object({
|
|
643
|
+
display_name: Joi.string().allow(""),
|
|
644
|
+
page_type: Joi.string().allow(""),
|
|
645
|
+
params: Joi.array().items(ContentModel.PageSpecParam()),
|
|
646
|
+
query: Joi.array().items(ContentModel.PageSpecParam()),
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
static PageSpecParam() {
|
|
650
|
+
return Joi.object({
|
|
651
|
+
key: Joi.string().allow(""),
|
|
652
|
+
required: Joi.boolean(),
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
static PathMappingSchema() {
|
|
656
|
+
return Joi.object({
|
|
657
|
+
__source: ContentModel.PathSourceSchema(),
|
|
658
|
+
_id: Joi.string().allow(""),
|
|
659
|
+
application: Joi.string().allow(""),
|
|
660
|
+
created_at: Joi.string().allow(""),
|
|
661
|
+
redirect_from: Joi.string().allow(""),
|
|
662
|
+
redirect_to: Joi.string().allow(""),
|
|
663
|
+
updated_at: Joi.string().allow(""),
|
|
1022
664
|
});
|
|
1023
665
|
}
|
|
1024
|
-
|
|
1025
|
-
static PageContent() {
|
|
666
|
+
static PathSourceSchema() {
|
|
1026
667
|
return Joi.object({
|
|
668
|
+
id: Joi.string().allow(""),
|
|
1027
669
|
type: Joi.string().allow(""),
|
|
1028
|
-
|
|
1029
|
-
value: Joi.any(),
|
|
1030
670
|
});
|
|
1031
671
|
}
|
|
1032
|
-
|
|
1033
|
-
static PageMeta() {
|
|
672
|
+
static PhoneProperties() {
|
|
1034
673
|
return Joi.object({
|
|
674
|
+
code: Joi.string().allow(""),
|
|
1035
675
|
key: Joi.string().allow(""),
|
|
1036
|
-
|
|
1037
|
-
value: Joi.any(),
|
|
676
|
+
number: Joi.string().allow(""),
|
|
1038
677
|
});
|
|
1039
678
|
}
|
|
1040
|
-
|
|
1041
|
-
|
|
679
|
+
static PhoneSchema() {
|
|
680
|
+
return Joi.object({
|
|
681
|
+
active: Joi.boolean(),
|
|
682
|
+
phone: Joi.array().items(ContentModel.PhoneProperties()),
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
static RemoveHandpickedSchema() {
|
|
1042
686
|
return Joi.object({
|
|
1043
|
-
_schedule: ContentModel.CronSchedule(),
|
|
1044
|
-
|
|
1045
|
-
application: Joi.string().allow(""),
|
|
1046
|
-
|
|
1047
|
-
author: ContentModel.Author(),
|
|
1048
|
-
|
|
1049
|
-
_custom_json: Joi.any(),
|
|
1050
|
-
|
|
1051
|
-
orientation: Joi.string().allow(""),
|
|
1052
|
-
|
|
1053
|
-
content: Joi.array().items(Joi.any()),
|
|
1054
|
-
|
|
1055
|
-
feature_image: ContentModel.Asset(),
|
|
1056
|
-
|
|
1057
|
-
published: Joi.boolean(),
|
|
1058
|
-
|
|
1059
|
-
reading_time: Joi.string().allow(""),
|
|
1060
|
-
|
|
1061
|
-
slug: Joi.string().allow(""),
|
|
1062
|
-
|
|
1063
687
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
1064
|
-
|
|
1065
|
-
seo: ContentModel.SEO(),
|
|
1066
|
-
|
|
1067
|
-
title: Joi.string().allow(""),
|
|
1068
688
|
});
|
|
1069
689
|
}
|
|
1070
|
-
|
|
1071
|
-
static CronSchedule() {
|
|
690
|
+
static ResourceContent() {
|
|
1072
691
|
return Joi.object({
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
start: Joi.string().allow(""),
|
|
1076
|
-
|
|
1077
|
-
end: Joi.string().allow(""),
|
|
1078
|
-
|
|
1079
|
-
duration: Joi.number(),
|
|
692
|
+
type: Joi.string().allow(""),
|
|
693
|
+
value: Joi.string().allow(""),
|
|
1080
694
|
});
|
|
1081
695
|
}
|
|
1082
|
-
|
|
1083
|
-
static PagePublishRequest() {
|
|
696
|
+
static ScheduleSchema() {
|
|
1084
697
|
return Joi.object({
|
|
1085
|
-
|
|
698
|
+
cron: Joi.string().allow(""),
|
|
699
|
+
duration: Joi.number(),
|
|
700
|
+
end: Joi.string().allow(""),
|
|
701
|
+
next_schedule: Joi.array().items(Joi.any()),
|
|
702
|
+
start: Joi.string().allow(""),
|
|
1086
703
|
});
|
|
1087
704
|
}
|
|
1088
|
-
|
|
1089
|
-
static PageMetaSchema() {
|
|
705
|
+
static ScheduleStartSchema() {
|
|
1090
706
|
return Joi.object({
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
custom_pages: Joi.array().items(ContentModel.PageSchema()),
|
|
1094
|
-
|
|
1095
|
-
application_id: Joi.string().allow(""),
|
|
707
|
+
end: Joi.string().allow(""),
|
|
708
|
+
start: Joi.string().allow(""),
|
|
1096
709
|
});
|
|
1097
710
|
}
|
|
1098
|
-
|
|
1099
|
-
static SlideshowGetResponse() {
|
|
711
|
+
static SEO() {
|
|
1100
712
|
return Joi.object({
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
713
|
+
description: Joi.string().allow(""),
|
|
714
|
+
image: ContentModel.SEOImage(),
|
|
715
|
+
title: Joi.string().allow(""),
|
|
1104
716
|
});
|
|
1105
717
|
}
|
|
1106
|
-
|
|
1107
|
-
static SlideshowSchema() {
|
|
718
|
+
static SeoComponent() {
|
|
1108
719
|
return Joi.object({
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
slug: Joi.string().allow(""),
|
|
1112
|
-
|
|
1113
|
-
date_meta: ContentModel.DateMeta(),
|
|
1114
|
-
|
|
1115
|
-
application: Joi.string().allow(""),
|
|
1116
|
-
|
|
1117
|
-
platform: Joi.string().allow(""),
|
|
1118
|
-
|
|
1119
|
-
configuration: ContentModel.ConfigurationSchema(),
|
|
1120
|
-
|
|
1121
|
-
media: Joi.array().items(ContentModel.SlideshowMedia()),
|
|
1122
|
-
|
|
1123
|
-
active: Joi.boolean(),
|
|
1124
|
-
|
|
1125
|
-
archived: Joi.boolean(),
|
|
1126
|
-
|
|
1127
|
-
_custom_json: Joi.any(),
|
|
720
|
+
seo: ContentModel.SeoSchema(),
|
|
1128
721
|
});
|
|
1129
722
|
}
|
|
1130
|
-
|
|
1131
|
-
static SlideshowRequest() {
|
|
723
|
+
static SEOImage() {
|
|
1132
724
|
return Joi.object({
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
platform: Joi.string().allow(""),
|
|
1136
|
-
|
|
1137
|
-
configuration: ContentModel.ConfigurationSchema(),
|
|
1138
|
-
|
|
1139
|
-
media: ContentModel.SlideshowMedia(),
|
|
1140
|
-
|
|
1141
|
-
active: Joi.boolean(),
|
|
725
|
+
url: Joi.string().allow(""),
|
|
1142
726
|
});
|
|
1143
727
|
}
|
|
1144
|
-
|
|
1145
|
-
static Support() {
|
|
728
|
+
static SeoSchema() {
|
|
1146
729
|
return Joi.object({
|
|
1147
|
-
created: Joi.boolean(),
|
|
1148
|
-
|
|
1149
730
|
_id: Joi.string().allow(""),
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
application: Joi.string().allow(""),
|
|
1154
|
-
|
|
731
|
+
app: Joi.string().allow(""),
|
|
732
|
+
cannonical_enabled: Joi.boolean(),
|
|
1155
733
|
created_at: Joi.string().allow(""),
|
|
1156
|
-
|
|
734
|
+
custom_meta_tags: Joi.array().items(Joi.any()),
|
|
735
|
+
details: ContentModel.Detail(),
|
|
736
|
+
robots_txt: Joi.string().allow(""),
|
|
737
|
+
sitemap_enabled: Joi.boolean(),
|
|
1157
738
|
updated_at: Joi.string().allow(""),
|
|
1158
|
-
|
|
1159
|
-
contact: ContentModel.ContactSchema(),
|
|
1160
739
|
});
|
|
1161
740
|
}
|
|
1162
|
-
|
|
1163
|
-
static PhoneProperties() {
|
|
741
|
+
static Slideshow() {
|
|
1164
742
|
return Joi.object({
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
code: Joi.string().allow(""),
|
|
1168
|
-
|
|
1169
|
-
number: Joi.string().allow(""),
|
|
743
|
+
data: ContentModel.SlideshowSchema(),
|
|
744
|
+
success: Joi.boolean(),
|
|
1170
745
|
});
|
|
1171
746
|
}
|
|
1172
|
-
|
|
1173
|
-
static PhoneSchema() {
|
|
747
|
+
static SlideshowGetResponse() {
|
|
1174
748
|
return Joi.object({
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
phone: Joi.array().items(ContentModel.PhoneProperties()),
|
|
749
|
+
items: Joi.array().items(ContentModel.SlideshowSchema()),
|
|
750
|
+
page: ContentModel.Page(),
|
|
1178
751
|
});
|
|
1179
752
|
}
|
|
1180
|
-
|
|
1181
|
-
static EmailProperties() {
|
|
753
|
+
static SlideshowMedia() {
|
|
1182
754
|
return Joi.object({
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
755
|
+
action: ContentModel.Action(),
|
|
756
|
+
auto_decide_duration: Joi.boolean(),
|
|
757
|
+
bg_color: Joi.string().allow(""),
|
|
758
|
+
duration: Joi.number(),
|
|
759
|
+
type: Joi.string().allow(""),
|
|
760
|
+
url: Joi.string().allow(""),
|
|
1186
761
|
});
|
|
1187
762
|
}
|
|
1188
|
-
|
|
1189
|
-
static EmailSchema() {
|
|
763
|
+
static SlideshowRequest() {
|
|
1190
764
|
return Joi.object({
|
|
1191
765
|
active: Joi.boolean(),
|
|
1192
|
-
|
|
1193
|
-
|
|
766
|
+
configuration: ContentModel.ConfigurationSchema(),
|
|
767
|
+
media: ContentModel.SlideshowMedia(),
|
|
768
|
+
platform: Joi.string().allow(""),
|
|
769
|
+
slug: Joi.string().allow(""),
|
|
1194
770
|
});
|
|
1195
771
|
}
|
|
1196
|
-
|
|
1197
|
-
static ContactSchema() {
|
|
772
|
+
static SlideshowSchema() {
|
|
1198
773
|
return Joi.object({
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
774
|
+
_custom_json: Joi.any(),
|
|
775
|
+
_id: Joi.string().allow(""),
|
|
776
|
+
active: Joi.boolean(),
|
|
777
|
+
application: Joi.string().allow(""),
|
|
778
|
+
archived: Joi.boolean(),
|
|
779
|
+
configuration: ContentModel.ConfigurationSchema(),
|
|
780
|
+
date_meta: ContentModel.DateMeta(),
|
|
781
|
+
media: Joi.array().items(ContentModel.SlideshowMedia()),
|
|
782
|
+
platform: Joi.string().allow(""),
|
|
783
|
+
slug: Joi.string().allow(""),
|
|
1202
784
|
});
|
|
1203
785
|
}
|
|
1204
|
-
|
|
1205
|
-
static TagsSchema() {
|
|
786
|
+
static Support() {
|
|
1206
787
|
return Joi.object({
|
|
1207
|
-
application: Joi.string().allow(""),
|
|
1208
|
-
|
|
1209
788
|
_id: Joi.string().allow(""),
|
|
1210
|
-
|
|
1211
|
-
|
|
789
|
+
application: Joi.string().allow(""),
|
|
790
|
+
config_type: Joi.string().allow(""),
|
|
791
|
+
contact: ContentModel.ContactSchema(),
|
|
792
|
+
created: Joi.boolean(),
|
|
793
|
+
created_at: Joi.string().allow(""),
|
|
794
|
+
updated_at: Joi.string().allow(""),
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
static TagDeleteSuccessResponse() {
|
|
798
|
+
return Joi.object({
|
|
799
|
+
success: Joi.boolean(),
|
|
1212
800
|
});
|
|
1213
801
|
}
|
|
1214
|
-
|
|
1215
802
|
static TagSchema() {
|
|
1216
803
|
return Joi.object({
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
url: Joi.string().allow(""),
|
|
1220
|
-
|
|
1221
|
-
type: Joi.string().allow(""),
|
|
1222
|
-
|
|
1223
|
-
sub_type: Joi.string().allow(""),
|
|
1224
|
-
|
|
804
|
+
__source: ContentModel.TagSourceSchema(),
|
|
1225
805
|
_id: Joi.string().allow(""),
|
|
1226
|
-
|
|
1227
|
-
position: Joi.string().allow(""),
|
|
1228
|
-
|
|
1229
806
|
attributes: Joi.any(),
|
|
1230
|
-
|
|
1231
807
|
content: Joi.string().allow(""),
|
|
1232
|
-
|
|
808
|
+
name: Joi.string().allow(""),
|
|
1233
809
|
pages: Joi.array().items(Joi.any()),
|
|
1234
|
-
|
|
1235
|
-
|
|
810
|
+
position: Joi.string().allow(""),
|
|
811
|
+
sub_type: Joi.string().allow(""),
|
|
812
|
+
type: Joi.string().allow(""),
|
|
813
|
+
url: Joi.string().allow(""),
|
|
1236
814
|
});
|
|
1237
815
|
}
|
|
1238
|
-
|
|
1239
816
|
static TagSourceSchema() {
|
|
1240
817
|
return Joi.object({
|
|
1241
|
-
type: Joi.string().allow(""),
|
|
1242
|
-
|
|
1243
818
|
id: Joi.string().allow(""),
|
|
819
|
+
type: Joi.string().allow(""),
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
static TagsSchema() {
|
|
823
|
+
return Joi.object({
|
|
824
|
+
_id: Joi.string().allow(""),
|
|
825
|
+
application: Joi.string().allow(""),
|
|
826
|
+
tags: Joi.array().items(ContentModel.TagSchema()),
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
static UpdateFaqCategoryRequestSchema() {
|
|
830
|
+
return Joi.object({
|
|
831
|
+
category: ContentModel.CategorySchema(),
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
static UpdateHandpickedSchema() {
|
|
835
|
+
return Joi.object({
|
|
836
|
+
tag: ContentModel.HandpickedTagSchema(),
|
|
1244
837
|
});
|
|
1245
838
|
}
|
|
1246
839
|
|