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