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