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