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