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