@gofynd/fdk-client-javascript 1.1.6 → 1.2.0
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 +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -1,13 +1,911 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @typedef Action
|
|
5
|
+
* @property {ActionPage} [page]
|
|
6
|
+
* @property {ActionPage} [popup]
|
|
7
|
+
* @property {string} [type]
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef ActionPage
|
|
12
|
+
* @property {Object} [params]
|
|
13
|
+
* @property {Object} [query]
|
|
14
|
+
* @property {PageType} type
|
|
15
|
+
* @property {string} [url]
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @typedef AdminAnnouncementSchema
|
|
20
|
+
* @property {string} [_id]
|
|
21
|
+
* @property {ScheduleSchema} [_schedule]
|
|
22
|
+
* @property {string} [announcement]
|
|
23
|
+
* @property {string} [app]
|
|
24
|
+
* @property {AnnouncementAuthorSchema} [author]
|
|
25
|
+
* @property {string} [created_at]
|
|
26
|
+
* @property {EditorMeta} [editor_meta]
|
|
27
|
+
* @property {string} [modified_at]
|
|
28
|
+
* @property {AnnouncementPageSchema[]} [pages]
|
|
29
|
+
* @property {string[]} [platforms]
|
|
30
|
+
* @property {string} [title]
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @typedef AnnouncementAuthorSchema
|
|
35
|
+
* @property {string} [created_by]
|
|
36
|
+
* @property {string} [modified_by]
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @typedef AnnouncementPageSchema
|
|
41
|
+
* @property {string} [page_slug]
|
|
42
|
+
* @property {string} [type]
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @typedef AnnouncementSchema
|
|
47
|
+
* @property {string} [announcement]
|
|
48
|
+
* @property {ScheduleStartSchema} [schedule]
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @typedef AnnouncementsResponseSchema
|
|
53
|
+
* @property {Object} [announcements]
|
|
54
|
+
* @property {string[]} [refresh_pages] - List of page slugs on which
|
|
55
|
+
* announcement should be fetched as soon as they are loaded
|
|
56
|
+
* @property {number} [refresh_rate] - Number of seconds after which api should
|
|
57
|
+
* hit again to fetch new announcements
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @typedef ApplicationLegal
|
|
62
|
+
* @property {string} [_id]
|
|
63
|
+
* @property {string} [application]
|
|
64
|
+
* @property {string} [created_at]
|
|
65
|
+
* @property {ApplicationLegalFAQ[]} [faq]
|
|
66
|
+
* @property {string} [policy]
|
|
67
|
+
* @property {string} [returns]
|
|
68
|
+
* @property {string} [shipping]
|
|
69
|
+
* @property {string} [tnc]
|
|
70
|
+
* @property {string} [updated_at]
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @typedef ApplicationLegalFAQ
|
|
75
|
+
* @property {string} [answer]
|
|
76
|
+
* @property {string} [question]
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @typedef Asset
|
|
81
|
+
* @property {string} [aspect_ratio]
|
|
82
|
+
* @property {string} [id]
|
|
83
|
+
* @property {string} [secure_url]
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @typedef Author
|
|
88
|
+
* @property {string} [designation]
|
|
89
|
+
* @property {string} [id]
|
|
90
|
+
* @property {string} [name]
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @typedef BlogGetResponse
|
|
95
|
+
* @property {BlogSchema[]} [items]
|
|
96
|
+
* @property {Page} [page]
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @typedef BlogRequest
|
|
101
|
+
* @property {Object} [_custom_json]
|
|
102
|
+
* @property {CronSchedule} [_schedule]
|
|
103
|
+
* @property {string} [application]
|
|
104
|
+
* @property {Author} [author]
|
|
105
|
+
* @property {ResourceContent[]} [content]
|
|
106
|
+
* @property {Asset} [feature_image]
|
|
107
|
+
* @property {boolean} [published]
|
|
108
|
+
* @property {string} [reading_time]
|
|
109
|
+
* @property {SEO} [seo]
|
|
110
|
+
* @property {string} [slug]
|
|
111
|
+
* @property {string[]} [tags]
|
|
112
|
+
* @property {string} [title]
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @typedef BlogSchema
|
|
117
|
+
* @property {Object} [_custom_json]
|
|
118
|
+
* @property {string} [_id]
|
|
119
|
+
* @property {CronSchedule} [_schedule]
|
|
120
|
+
* @property {string} [application]
|
|
121
|
+
* @property {boolean} [archived]
|
|
122
|
+
* @property {Author} [author]
|
|
123
|
+
* @property {ResourceContent[]} [content]
|
|
124
|
+
* @property {DateMeta} [date_meta]
|
|
125
|
+
* @property {Asset} [feature_image]
|
|
126
|
+
* @property {boolean} [published]
|
|
127
|
+
* @property {string} [reading_time]
|
|
128
|
+
* @property {SEO} [seo]
|
|
129
|
+
* @property {string} [slug]
|
|
130
|
+
* @property {string[]} [tags]
|
|
131
|
+
* @property {string} [title]
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @typedef CategoryRequestSchema
|
|
136
|
+
* @property {string} [slug]
|
|
137
|
+
* @property {string} [title]
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @typedef CategorySchema
|
|
142
|
+
* @property {Object} [_custom_json]
|
|
143
|
+
* @property {string} [_id]
|
|
144
|
+
* @property {string} [application]
|
|
145
|
+
* @property {string[]} [children]
|
|
146
|
+
* @property {string} [description]
|
|
147
|
+
* @property {string} [icon_url]
|
|
148
|
+
* @property {number} [index]
|
|
149
|
+
* @property {string} [slug]
|
|
150
|
+
* @property {string} [title]
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @typedef ChildrenSchema
|
|
155
|
+
* @property {string} [_id]
|
|
156
|
+
* @property {string} [answer]
|
|
157
|
+
* @property {string} [application]
|
|
158
|
+
* @property {string} [question]
|
|
159
|
+
* @property {string} [slug]
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @typedef CommonError
|
|
164
|
+
* @property {string} [message]
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @typedef ConfigurationSchema
|
|
169
|
+
* @property {number} [duration]
|
|
170
|
+
* @property {number} [sleep_time]
|
|
171
|
+
* @property {string} [slide_direction]
|
|
172
|
+
* @property {boolean} [start_on_launch]
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @typedef ContactSchema
|
|
177
|
+
* @property {EmailSchema} [email]
|
|
178
|
+
* @property {PhoneSchema} [phone]
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @typedef ContentAPIError
|
|
183
|
+
* @property {string} [code]
|
|
184
|
+
* @property {string} [exception]
|
|
185
|
+
* @property {string} [info]
|
|
186
|
+
* @property {string} [message]
|
|
187
|
+
* @property {Object} [meta]
|
|
188
|
+
* @property {string} [request_id]
|
|
189
|
+
* @property {string} [stack_trace]
|
|
190
|
+
* @property {number} [status]
|
|
191
|
+
*/
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @typedef ContentSchema
|
|
195
|
+
* @property {string} [type]
|
|
196
|
+
* @property {Object} [value]
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @typedef CreateAnnouncementSchema
|
|
201
|
+
* @property {AdminAnnouncementSchema} [data]
|
|
202
|
+
* @property {string} [message]
|
|
203
|
+
*/
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* @typedef CreatedBySchema
|
|
207
|
+
* @property {string} [id]
|
|
208
|
+
*/
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* @typedef CreateFaqCategoryRequestSchema
|
|
212
|
+
* @property {CategoryRequestSchema} [category]
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @typedef CreateFaqCategorySchema
|
|
217
|
+
* @property {CategorySchema} [category]
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @typedef CreateFaqResponseSchema
|
|
222
|
+
* @property {FaqSchema} [faq]
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @typedef CreateFaqSchema
|
|
227
|
+
* @property {FAQ} [faq]
|
|
228
|
+
*/
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @typedef CreateTagRequestSchema
|
|
232
|
+
* @property {CreateTagSchema[]} [tags]
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* @typedef CreateTagSchema
|
|
237
|
+
* @property {string} [_id]
|
|
238
|
+
* @property {Object} [attributes]
|
|
239
|
+
* @property {string} [content]
|
|
240
|
+
* @property {string} [name]
|
|
241
|
+
* @property {Object[]} [pages]
|
|
242
|
+
* @property {string} [position]
|
|
243
|
+
* @property {string} [sub_type]
|
|
244
|
+
* @property {string} [type]
|
|
245
|
+
* @property {string} [url]
|
|
246
|
+
*/
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @typedef CronSchedule
|
|
250
|
+
* @property {string} [cron]
|
|
251
|
+
* @property {number} [duration]
|
|
252
|
+
* @property {string} [end]
|
|
253
|
+
* @property {string} [start]
|
|
254
|
+
*/
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @typedef CustomMetaTag
|
|
258
|
+
* @property {string} [_id]
|
|
259
|
+
* @property {string} [content]
|
|
260
|
+
* @property {string} [name]
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @typedef CustomPage
|
|
265
|
+
* @property {CustomPageSchema} [data]
|
|
266
|
+
*/
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @typedef CustomPageSchema
|
|
270
|
+
* @property {string} [_id]
|
|
271
|
+
* @property {ScheduleSchema} [_schedule]
|
|
272
|
+
* @property {string} [application]
|
|
273
|
+
* @property {Object[]} [content]
|
|
274
|
+
* @property {CreatedBySchema} [created_by]
|
|
275
|
+
* @property {DateMeta} [date_meta]
|
|
276
|
+
* @property {string} [description]
|
|
277
|
+
* @property {string} [orientation]
|
|
278
|
+
* @property {string} [platform]
|
|
279
|
+
* @property {boolean} [published]
|
|
280
|
+
* @property {string} [slug]
|
|
281
|
+
* @property {string[]} [tags]
|
|
282
|
+
* @property {string} [title]
|
|
283
|
+
* @property {string} [type]
|
|
284
|
+
*/
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @typedef DataLoaderResetResponseSchema
|
|
288
|
+
* @property {string} [reset]
|
|
289
|
+
*/
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* @typedef DataLoaderResponseSchema
|
|
293
|
+
* @property {DataLoaderSourceSchema} [__source]
|
|
294
|
+
* @property {string} [_id]
|
|
295
|
+
* @property {string} [application]
|
|
296
|
+
* @property {string} [company]
|
|
297
|
+
* @property {string} [content]
|
|
298
|
+
* @property {string} [name]
|
|
299
|
+
* @property {string} [operation_id]
|
|
300
|
+
* @property {string} [service]
|
|
301
|
+
* @property {string} [type]
|
|
302
|
+
* @property {string} [url]
|
|
303
|
+
*/
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* @typedef DataLoaderSchema
|
|
307
|
+
* @property {DataLoaderSourceSchema} [__source]
|
|
308
|
+
* @property {string} [_id]
|
|
309
|
+
* @property {string} [content]
|
|
310
|
+
* @property {string} [name]
|
|
311
|
+
* @property {string} [operation_id]
|
|
312
|
+
* @property {string} [service]
|
|
313
|
+
* @property {string} [type]
|
|
314
|
+
* @property {string} [url]
|
|
315
|
+
*/
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @typedef DataLoaderSourceSchema
|
|
319
|
+
* @property {string} [id]
|
|
320
|
+
* @property {string} [type]
|
|
321
|
+
*/
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @typedef DataLoadersSchema
|
|
325
|
+
* @property {DataLoaderSchema[]} [items]
|
|
326
|
+
*/
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* @typedef DateMeta
|
|
330
|
+
* @property {string} [created_on]
|
|
331
|
+
* @property {string} [modified_on]
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* @typedef DefaultNavigationResponse
|
|
336
|
+
* @property {NavigationSchema[]} [items]
|
|
337
|
+
*/
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* @typedef Detail
|
|
341
|
+
* @property {string} [description]
|
|
342
|
+
* @property {string} [image_url]
|
|
343
|
+
* @property {string} [title]
|
|
344
|
+
*/
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @typedef EditorMeta
|
|
348
|
+
* @property {string} [background_color]
|
|
349
|
+
* @property {string} [content]
|
|
350
|
+
* @property {string} [content_type]
|
|
351
|
+
* @property {string} [foreground_color]
|
|
352
|
+
*/
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* @typedef EmailProperties
|
|
356
|
+
* @property {string} [key]
|
|
357
|
+
* @property {string} [value]
|
|
358
|
+
*/
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* @typedef EmailSchema
|
|
362
|
+
* @property {boolean} [active]
|
|
363
|
+
* @property {EmailProperties[]} [email]
|
|
364
|
+
*/
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* @typedef FAQ
|
|
368
|
+
* @property {string} [answer]
|
|
369
|
+
* @property {string} [question]
|
|
370
|
+
* @property {string} [slug]
|
|
371
|
+
*/
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @typedef FAQCategorySchema
|
|
375
|
+
* @property {Object} [_custom_json]
|
|
376
|
+
* @property {string} [_id]
|
|
377
|
+
* @property {string} [application]
|
|
378
|
+
* @property {ChildrenSchema[]} [children]
|
|
379
|
+
* @property {string} [description]
|
|
380
|
+
* @property {string} [icon_url]
|
|
381
|
+
* @property {number} [index]
|
|
382
|
+
* @property {string} [slug]
|
|
383
|
+
* @property {string} [title]
|
|
384
|
+
*/
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @typedef FaqResponseSchema
|
|
388
|
+
* @property {FaqSchema[]} [faqs]
|
|
389
|
+
*/
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* @typedef FaqSchema
|
|
393
|
+
* @property {string} [_id]
|
|
394
|
+
* @property {string} [answer]
|
|
395
|
+
* @property {string} [application]
|
|
396
|
+
* @property {string} [question]
|
|
397
|
+
* @property {string} [slug]
|
|
398
|
+
* @property {string[]} [tags]
|
|
399
|
+
*/
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* @typedef FeatureImage
|
|
403
|
+
* @property {string} [secure_url]
|
|
404
|
+
*/
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @typedef GeneratedSEOContent
|
|
408
|
+
* @property {string} [description]
|
|
409
|
+
* @property {string} [title]
|
|
410
|
+
*/
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* @typedef GenerateSEOContent
|
|
414
|
+
* @property {string} [existing_text]
|
|
415
|
+
* @property {string[]} [keywords]
|
|
416
|
+
* @property {string} [text]
|
|
417
|
+
* @property {string} [type]
|
|
418
|
+
*/
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @typedef GetAnnouncementListSchema
|
|
422
|
+
* @property {AdminAnnouncementSchema[]} [items]
|
|
423
|
+
* @property {Page} [page]
|
|
424
|
+
*/
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* @typedef GetFaqCategoriesSchema
|
|
428
|
+
* @property {CategorySchema[]} [categories]
|
|
429
|
+
*/
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* @typedef GetFaqCategoryBySlugSchema
|
|
433
|
+
* @property {FAQCategorySchema} [category]
|
|
434
|
+
*/
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* @typedef GetFaqSchema
|
|
438
|
+
* @property {FaqSchema[]} [faqs]
|
|
439
|
+
*/
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* @typedef HandpickedTagSchema
|
|
443
|
+
* @property {Object} [attributes]
|
|
444
|
+
* @property {string} [content]
|
|
445
|
+
* @property {string} [name]
|
|
446
|
+
* @property {string} [position]
|
|
447
|
+
* @property {string} [sub_type]
|
|
448
|
+
* @property {string} [type]
|
|
449
|
+
* @property {string} [url]
|
|
450
|
+
*/
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* @typedef LandingPage
|
|
454
|
+
* @property {LandingPageSchema} [data]
|
|
455
|
+
* @property {boolean} [success]
|
|
456
|
+
*/
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @typedef LandingPageGetResponse
|
|
460
|
+
* @property {LandingPageSchema[]} [items]
|
|
461
|
+
* @property {Page} [page]
|
|
462
|
+
*/
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* @typedef LandingPageSchema
|
|
466
|
+
* @property {Object} [_custom_json]
|
|
467
|
+
* @property {string} [_id]
|
|
468
|
+
* @property {Action} [action]
|
|
469
|
+
* @property {string} [application]
|
|
470
|
+
* @property {boolean} [archived]
|
|
471
|
+
* @property {CreatedBySchema} [created_by]
|
|
472
|
+
* @property {DateMeta} [date_meta]
|
|
473
|
+
* @property {string[]} [platform]
|
|
474
|
+
* @property {string} [slug]
|
|
475
|
+
*/
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* @typedef Language
|
|
479
|
+
* @property {string} [display]
|
|
480
|
+
*/
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* @typedef LocaleLanguage
|
|
484
|
+
* @property {Language} [ar]
|
|
485
|
+
* @property {Language} [en_us]
|
|
486
|
+
* @property {Language} [hi]
|
|
487
|
+
*/
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* @typedef Navigation
|
|
491
|
+
* @property {string} [_id]
|
|
492
|
+
* @property {string} [application]
|
|
493
|
+
* @property {CreatedBySchema} [created_by]
|
|
494
|
+
* @property {DateMeta} [date_meta]
|
|
495
|
+
* @property {string} [name]
|
|
496
|
+
* @property {NavigationReference} [navigation]
|
|
497
|
+
* @property {string} [orientation]
|
|
498
|
+
* @property {string} [platform]
|
|
499
|
+
* @property {string} [position]
|
|
500
|
+
* @property {string} [slug]
|
|
501
|
+
*/
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* @typedef NavigationGetResponse
|
|
505
|
+
* @property {NavigationSchema[]} [items]
|
|
506
|
+
* @property {Page} [page]
|
|
507
|
+
*/
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* @typedef NavigationReference
|
|
511
|
+
* @property {LocaleLanguage} [_locale_language]
|
|
512
|
+
* @property {string[]} [acl]
|
|
513
|
+
* @property {Action} [action]
|
|
514
|
+
* @property {boolean} [active]
|
|
515
|
+
* @property {string} [display]
|
|
516
|
+
* @property {string} [image]
|
|
517
|
+
* @property {number} [sort_order]
|
|
518
|
+
* @property {NavigationReference[]} [sub_navigation]
|
|
519
|
+
* @property {string[]} [tags]
|
|
520
|
+
* @property {string} [type]
|
|
521
|
+
*/
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* @typedef NavigationRequest
|
|
525
|
+
* @property {string} [name]
|
|
526
|
+
* @property {NavigationReference[]} [navigation]
|
|
527
|
+
* @property {Orientation} [orientation]
|
|
528
|
+
* @property {string[]} [platform]
|
|
529
|
+
* @property {string} [slug]
|
|
530
|
+
*/
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* @typedef NavigationSchema
|
|
534
|
+
* @property {string} [_id]
|
|
535
|
+
* @property {string} [application]
|
|
536
|
+
* @property {boolean} [archived]
|
|
537
|
+
* @property {CreatedBySchema} [created_by]
|
|
538
|
+
* @property {DateMeta} [date_meta]
|
|
539
|
+
* @property {string} [name]
|
|
540
|
+
* @property {NavigationReference[]} [navigation]
|
|
541
|
+
* @property {Orientation} [orientation]
|
|
542
|
+
* @property {string[]} [platform]
|
|
543
|
+
* @property {string} [slug]
|
|
544
|
+
* @property {number} [version]
|
|
545
|
+
*/
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* @typedef NextSchedule
|
|
549
|
+
* @property {string} [end]
|
|
550
|
+
* @property {string} [start]
|
|
551
|
+
*/
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* @typedef Orientation
|
|
555
|
+
* @property {string[]} [landscape]
|
|
556
|
+
* @property {string[]} [portrait]
|
|
557
|
+
*/
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* @typedef Page
|
|
561
|
+
* @property {number} [current]
|
|
562
|
+
* @property {boolean} [has_next]
|
|
563
|
+
* @property {boolean} [has_previous]
|
|
564
|
+
* @property {number} [item_total]
|
|
565
|
+
* @property {string} [next_id]
|
|
566
|
+
* @property {number} [size]
|
|
567
|
+
* @property {string} type
|
|
568
|
+
*/
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @typedef PageContent
|
|
572
|
+
* @property {string} [type]
|
|
573
|
+
* @property {Object} [value]
|
|
574
|
+
*/
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* @typedef PageGetResponse
|
|
578
|
+
* @property {PageSchema[]} [items]
|
|
579
|
+
* @property {Page} [page]
|
|
580
|
+
*/
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* @typedef PageMeta
|
|
584
|
+
* @property {string} [key]
|
|
585
|
+
* @property {Object} [value]
|
|
586
|
+
*/
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* @typedef PageMetaSchema
|
|
590
|
+
* @property {string} [application_id]
|
|
591
|
+
* @property {PageSchema[]} [custom_pages]
|
|
592
|
+
* @property {NavigationSchema[]} [system_pages]
|
|
593
|
+
*/
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* @typedef PagePublishRequest
|
|
597
|
+
* @property {boolean} [publish]
|
|
598
|
+
*/
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* @typedef PageRequest
|
|
602
|
+
* @property {Object} [_custom_json]
|
|
603
|
+
* @property {CronSchedule} [_schedule]
|
|
604
|
+
* @property {string} [application]
|
|
605
|
+
* @property {Author} [author]
|
|
606
|
+
* @property {Object[]} [content]
|
|
607
|
+
* @property {Asset} [feature_image]
|
|
608
|
+
* @property {string} [orientation]
|
|
609
|
+
* @property {boolean} [published]
|
|
610
|
+
* @property {string} [reading_time]
|
|
611
|
+
* @property {SEO} [seo]
|
|
612
|
+
* @property {string} [slug]
|
|
613
|
+
* @property {string[]} [tags]
|
|
614
|
+
* @property {string} [title]
|
|
615
|
+
*/
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* @typedef PageSchema
|
|
619
|
+
* @property {Object} [_custom_json]
|
|
620
|
+
* @property {string} [_id]
|
|
621
|
+
* @property {ScheduleSchema} [_schedule]
|
|
622
|
+
* @property {string} [application]
|
|
623
|
+
* @property {boolean} [archived]
|
|
624
|
+
* @property {string[]} [component_ids] - Components can be used to store
|
|
625
|
+
* multiple components
|
|
626
|
+
* @property {Object[]} [content]
|
|
627
|
+
* @property {string} [content_path]
|
|
628
|
+
* @property {CreatedBySchema} [created_by]
|
|
629
|
+
* @property {DateMeta} [date_meta]
|
|
630
|
+
* @property {string} [description]
|
|
631
|
+
* @property {Asset} [feature_image]
|
|
632
|
+
* @property {string} [orientation]
|
|
633
|
+
* @property {Object[]} [page_meta]
|
|
634
|
+
* @property {string} [platform]
|
|
635
|
+
* @property {boolean} [published]
|
|
636
|
+
* @property {SEO} [seo]
|
|
637
|
+
* @property {string} [slug]
|
|
638
|
+
* @property {string[]} [tags]
|
|
639
|
+
* @property {string} [title]
|
|
640
|
+
* @property {string} [type]
|
|
641
|
+
* @property {Object} [visibility]
|
|
642
|
+
*/
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* @typedef PageSpec
|
|
646
|
+
* @property {Object[]} [specifications]
|
|
647
|
+
*/
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* @typedef PageSpecItem
|
|
651
|
+
* @property {string} [display_name]
|
|
652
|
+
* @property {string} [page_type]
|
|
653
|
+
* @property {PageSpecParam[]} [params]
|
|
654
|
+
* @property {PageSpecParam[]} [query]
|
|
655
|
+
*/
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* @typedef PageSpecParam
|
|
659
|
+
* @property {string} [key]
|
|
660
|
+
* @property {boolean} [required]
|
|
661
|
+
*/
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* @typedef PathMappingSchema
|
|
665
|
+
* @property {PathSourceSchema} [__source]
|
|
666
|
+
* @property {string} [_id]
|
|
667
|
+
* @property {string} [application]
|
|
668
|
+
* @property {string} [created_at]
|
|
669
|
+
* @property {string} [redirect_from]
|
|
670
|
+
* @property {string} [redirect_to]
|
|
671
|
+
* @property {string} [updated_at]
|
|
672
|
+
*/
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* @typedef PathSourceSchema
|
|
676
|
+
* @property {string} [id]
|
|
677
|
+
* @property {string} [type]
|
|
678
|
+
*/
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* @typedef PhoneProperties
|
|
682
|
+
* @property {string} [code]
|
|
683
|
+
* @property {string} [key]
|
|
684
|
+
* @property {string} [number]
|
|
685
|
+
*/
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* @typedef PhoneSchema
|
|
689
|
+
* @property {boolean} [active]
|
|
690
|
+
* @property {PhoneProperties[]} [phone]
|
|
691
|
+
*/
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* @typedef RemoveHandpickedSchema
|
|
695
|
+
* @property {string[]} [tags]
|
|
696
|
+
*/
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* @typedef ResourceContent
|
|
700
|
+
* @property {string} [type]
|
|
701
|
+
* @property {string} [value]
|
|
702
|
+
*/
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* @typedef ScheduleSchema
|
|
706
|
+
* @property {string} [cron]
|
|
707
|
+
* @property {number} [duration]
|
|
708
|
+
* @property {string} [end]
|
|
709
|
+
* @property {Object[]} [next_schedule]
|
|
710
|
+
* @property {string} [start]
|
|
711
|
+
*/
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* @typedef ScheduleStartSchema
|
|
715
|
+
* @property {string} [end]
|
|
716
|
+
* @property {string} [start]
|
|
717
|
+
*/
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* @typedef SEO
|
|
721
|
+
* @property {string} [description]
|
|
722
|
+
* @property {SEOImage} [image]
|
|
723
|
+
* @property {string} [title]
|
|
724
|
+
*/
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* @typedef SeoComponent
|
|
728
|
+
* @property {SeoSchema} [seo]
|
|
729
|
+
*/
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* @typedef SEOImage
|
|
733
|
+
* @property {string} [url]
|
|
734
|
+
*/
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* @typedef SeoSchema
|
|
738
|
+
* @property {string} [_id]
|
|
739
|
+
* @property {string} [app]
|
|
740
|
+
* @property {boolean} [cannonical_enabled]
|
|
741
|
+
* @property {string} [created_at]
|
|
742
|
+
* @property {Object[]} [custom_meta_tags]
|
|
743
|
+
* @property {Detail} [details]
|
|
744
|
+
* @property {string} [robots_txt]
|
|
745
|
+
* @property {boolean} [sitemap_enabled]
|
|
746
|
+
* @property {string} [updated_at]
|
|
747
|
+
*/
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* @typedef Slideshow
|
|
751
|
+
* @property {SlideshowSchema} [data]
|
|
752
|
+
* @property {boolean} [success]
|
|
753
|
+
*/
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* @typedef SlideshowGetResponse
|
|
757
|
+
* @property {SlideshowSchema[]} [items]
|
|
758
|
+
* @property {Page} [page]
|
|
759
|
+
*/
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* @typedef SlideshowMedia
|
|
763
|
+
* @property {Action} [action]
|
|
764
|
+
* @property {boolean} [auto_decide_duration]
|
|
765
|
+
* @property {string} [bg_color]
|
|
766
|
+
* @property {number} [duration]
|
|
767
|
+
* @property {string} [type]
|
|
768
|
+
* @property {string} [url]
|
|
769
|
+
*/
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* @typedef SlideshowRequest
|
|
773
|
+
* @property {boolean} [active]
|
|
774
|
+
* @property {ConfigurationSchema} [configuration]
|
|
775
|
+
* @property {SlideshowMedia} [media]
|
|
776
|
+
* @property {string} [platform]
|
|
777
|
+
* @property {string} [slug]
|
|
778
|
+
*/
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* @typedef SlideshowSchema
|
|
782
|
+
* @property {Object} [_custom_json]
|
|
783
|
+
* @property {string} [_id]
|
|
784
|
+
* @property {boolean} [active]
|
|
785
|
+
* @property {string} [application]
|
|
786
|
+
* @property {boolean} [archived]
|
|
787
|
+
* @property {ConfigurationSchema} [configuration]
|
|
788
|
+
* @property {DateMeta} [date_meta]
|
|
789
|
+
* @property {SlideshowMedia[]} [media]
|
|
790
|
+
* @property {string} [platform]
|
|
791
|
+
* @property {string} [slug]
|
|
792
|
+
*/
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* @typedef Support
|
|
796
|
+
* @property {string} [_id]
|
|
797
|
+
* @property {string} [application]
|
|
798
|
+
* @property {string} [config_type]
|
|
799
|
+
* @property {ContactSchema} [contact]
|
|
800
|
+
* @property {boolean} [created]
|
|
801
|
+
* @property {string} [created_at]
|
|
802
|
+
* @property {string} [updated_at]
|
|
803
|
+
*/
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* @typedef TagDeleteSuccessResponse
|
|
807
|
+
* @property {boolean} [success]
|
|
808
|
+
*/
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* @typedef TagSchema
|
|
812
|
+
* @property {TagSourceSchema} [__source]
|
|
813
|
+
* @property {string} [_id]
|
|
814
|
+
* @property {Object} [attributes]
|
|
815
|
+
* @property {string} [content]
|
|
816
|
+
* @property {string} [name]
|
|
817
|
+
* @property {Object[]} [pages]
|
|
818
|
+
* @property {string} [position]
|
|
819
|
+
* @property {string} [sub_type]
|
|
820
|
+
* @property {string} [type]
|
|
821
|
+
* @property {string} [url]
|
|
822
|
+
*/
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* @typedef TagSourceSchema
|
|
826
|
+
* @property {string} [id]
|
|
827
|
+
* @property {string} [type]
|
|
828
|
+
*/
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* @typedef TagsSchema
|
|
832
|
+
* @property {string} [_id]
|
|
833
|
+
* @property {string} [application]
|
|
834
|
+
* @property {TagSchema[]} [tags]
|
|
835
|
+
*/
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* @typedef UpdateFaqCategoryRequestSchema
|
|
839
|
+
* @property {CategorySchema} [category]
|
|
840
|
+
*/
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* @typedef UpdateHandpickedSchema
|
|
844
|
+
* @property {HandpickedTagSchema} [tag]
|
|
845
|
+
*/
|
|
846
|
+
|
|
847
|
+
/** @typedef {"title" | "description"} GenerationEntityType */
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* @typedef {| "about-us"
|
|
851
|
+
* | "addresses"
|
|
852
|
+
* | "blog"
|
|
853
|
+
* | "brands"
|
|
854
|
+
* | "cards"
|
|
855
|
+
* | "cart"
|
|
856
|
+
* | "categories"
|
|
857
|
+
* | "brand"
|
|
858
|
+
* | "category"
|
|
859
|
+
* | "collection"
|
|
860
|
+
* | "collections"
|
|
861
|
+
* | "contact-us"
|
|
862
|
+
* | "external"
|
|
863
|
+
* | "faq"
|
|
864
|
+
* | "freshchat"
|
|
865
|
+
* | "home"
|
|
866
|
+
* | "notification-settings"
|
|
867
|
+
* | "orders"
|
|
868
|
+
* | "page"
|
|
869
|
+
* | "policy"
|
|
870
|
+
* | "product"
|
|
871
|
+
* | "product-request"
|
|
872
|
+
* | "products"
|
|
873
|
+
* | "profile"
|
|
874
|
+
* | "profile-order-shipment"
|
|
875
|
+
* | "profile-basic"
|
|
876
|
+
* | "profile-company"
|
|
877
|
+
* | "profile-emails"
|
|
878
|
+
* | "profile-phones"
|
|
879
|
+
* | "rate-us"
|
|
880
|
+
* | "refer-earn"
|
|
881
|
+
* | "settings"
|
|
882
|
+
* | "shared-cart"
|
|
883
|
+
* | "tnc"
|
|
884
|
+
* | "track-order"
|
|
885
|
+
* | "wishlist"
|
|
886
|
+
* | "sections"
|
|
887
|
+
* | "form"
|
|
888
|
+
* | "cart-delivery"
|
|
889
|
+
* | "cart-payment"
|
|
890
|
+
* | "cart-review"
|
|
891
|
+
* | "login"
|
|
892
|
+
* | "register"
|
|
893
|
+
* | "shipping-policy"
|
|
894
|
+
* | "return-policy"
|
|
895
|
+
* | "order-status"} PageType
|
|
896
|
+
*/
|
|
897
|
+
|
|
898
|
+
class ContentPlatformModel {
|
|
899
|
+
/** @returns {Action} */
|
|
4
900
|
static Action() {
|
|
5
901
|
return Joi.object({
|
|
6
|
-
page:
|
|
7
|
-
popup:
|
|
902
|
+
page: ContentPlatformModel.ActionPage(),
|
|
903
|
+
popup: ContentPlatformModel.ActionPage(),
|
|
8
904
|
type: Joi.string().allow(""),
|
|
9
905
|
});
|
|
10
906
|
}
|
|
907
|
+
|
|
908
|
+
/** @returns {ActionPage} */
|
|
11
909
|
static ActionPage() {
|
|
12
910
|
return Joi.object({
|
|
13
911
|
params: Joi.object().pattern(
|
|
@@ -18,59 +916,71 @@ class ContentModel {
|
|
|
18
916
|
/\S/,
|
|
19
917
|
Joi.array().items(Joi.string().allow(""))
|
|
20
918
|
),
|
|
21
|
-
type:
|
|
919
|
+
type: ContentPlatformModel.PageType().required(),
|
|
22
920
|
url: Joi.string().allow(""),
|
|
23
921
|
});
|
|
24
922
|
}
|
|
923
|
+
|
|
924
|
+
/** @returns {AdminAnnouncementSchema} */
|
|
25
925
|
static AdminAnnouncementSchema() {
|
|
26
926
|
return Joi.object({
|
|
27
927
|
_id: Joi.string().allow(""),
|
|
28
|
-
_schedule:
|
|
928
|
+
_schedule: ContentPlatformModel.ScheduleSchema(),
|
|
29
929
|
announcement: Joi.string().allow(""),
|
|
30
930
|
app: Joi.string().allow(""),
|
|
31
|
-
author:
|
|
931
|
+
author: ContentPlatformModel.AnnouncementAuthorSchema(),
|
|
32
932
|
created_at: Joi.string().allow(""),
|
|
33
|
-
editor_meta:
|
|
933
|
+
editor_meta: ContentPlatformModel.EditorMeta(),
|
|
34
934
|
modified_at: Joi.string().allow(""),
|
|
35
|
-
pages: Joi.array().items(
|
|
935
|
+
pages: Joi.array().items(ContentPlatformModel.AnnouncementPageSchema()),
|
|
36
936
|
platforms: Joi.array().items(Joi.string().allow("")),
|
|
37
937
|
title: Joi.string().allow(""),
|
|
38
938
|
});
|
|
39
939
|
}
|
|
940
|
+
|
|
941
|
+
/** @returns {AnnouncementAuthorSchema} */
|
|
40
942
|
static AnnouncementAuthorSchema() {
|
|
41
943
|
return Joi.object({
|
|
42
944
|
created_by: Joi.string().allow(""),
|
|
43
945
|
modified_by: Joi.string().allow(""),
|
|
44
946
|
});
|
|
45
947
|
}
|
|
948
|
+
|
|
949
|
+
/** @returns {AnnouncementPageSchema} */
|
|
46
950
|
static AnnouncementPageSchema() {
|
|
47
951
|
return Joi.object({
|
|
48
952
|
page_slug: Joi.string().allow(""),
|
|
49
953
|
type: Joi.string().allow(""),
|
|
50
954
|
});
|
|
51
955
|
}
|
|
956
|
+
|
|
957
|
+
/** @returns {AnnouncementSchema} */
|
|
52
958
|
static AnnouncementSchema() {
|
|
53
959
|
return Joi.object({
|
|
54
960
|
announcement: Joi.string().allow(""),
|
|
55
|
-
schedule:
|
|
961
|
+
schedule: ContentPlatformModel.ScheduleStartSchema(),
|
|
56
962
|
});
|
|
57
963
|
}
|
|
964
|
+
|
|
965
|
+
/** @returns {AnnouncementsResponseSchema} */
|
|
58
966
|
static AnnouncementsResponseSchema() {
|
|
59
967
|
return Joi.object({
|
|
60
968
|
announcements: Joi.object().pattern(
|
|
61
969
|
/\S/,
|
|
62
|
-
Joi.array().items(
|
|
970
|
+
Joi.array().items(ContentPlatformModel.AnnouncementSchema())
|
|
63
971
|
),
|
|
64
972
|
refresh_pages: Joi.array().items(Joi.string().allow("")),
|
|
65
973
|
refresh_rate: Joi.number(),
|
|
66
974
|
});
|
|
67
975
|
}
|
|
976
|
+
|
|
977
|
+
/** @returns {ApplicationLegal} */
|
|
68
978
|
static ApplicationLegal() {
|
|
69
979
|
return Joi.object({
|
|
70
980
|
_id: Joi.string().allow(""),
|
|
71
981
|
application: Joi.string().allow(""),
|
|
72
982
|
created_at: Joi.string().allow(""),
|
|
73
|
-
faq: Joi.array().items(
|
|
983
|
+
faq: Joi.array().items(ContentPlatformModel.ApplicationLegalFAQ()),
|
|
74
984
|
policy: Joi.string().allow(""),
|
|
75
985
|
returns: Joi.string().allow(""),
|
|
76
986
|
shipping: Joi.string().allow(""),
|
|
@@ -78,12 +988,16 @@ class ContentModel {
|
|
|
78
988
|
updated_at: Joi.string().allow(""),
|
|
79
989
|
});
|
|
80
990
|
}
|
|
991
|
+
|
|
992
|
+
/** @returns {ApplicationLegalFAQ} */
|
|
81
993
|
static ApplicationLegalFAQ() {
|
|
82
994
|
return Joi.object({
|
|
83
995
|
answer: Joi.string().allow(""),
|
|
84
996
|
question: Joi.string().allow(""),
|
|
85
997
|
});
|
|
86
998
|
}
|
|
999
|
+
|
|
1000
|
+
/** @returns {Asset} */
|
|
87
1001
|
static Asset() {
|
|
88
1002
|
return Joi.object({
|
|
89
1003
|
aspect_ratio: Joi.string().allow(""),
|
|
@@ -91,6 +1005,8 @@ class ContentModel {
|
|
|
91
1005
|
secure_url: Joi.string().allow(""),
|
|
92
1006
|
});
|
|
93
1007
|
}
|
|
1008
|
+
|
|
1009
|
+
/** @returns {Author} */
|
|
94
1010
|
static Author() {
|
|
95
1011
|
return Joi.object({
|
|
96
1012
|
designation: Joi.string().allow(""),
|
|
@@ -98,53 +1014,63 @@ class ContentModel {
|
|
|
98
1014
|
name: Joi.string().allow(""),
|
|
99
1015
|
});
|
|
100
1016
|
}
|
|
1017
|
+
|
|
1018
|
+
/** @returns {BlogGetResponse} */
|
|
101
1019
|
static BlogGetResponse() {
|
|
102
1020
|
return Joi.object({
|
|
103
|
-
items: Joi.array().items(
|
|
104
|
-
page:
|
|
1021
|
+
items: Joi.array().items(ContentPlatformModel.BlogSchema()),
|
|
1022
|
+
page: ContentPlatformModel.Page(),
|
|
105
1023
|
});
|
|
106
1024
|
}
|
|
1025
|
+
|
|
1026
|
+
/** @returns {BlogRequest} */
|
|
107
1027
|
static BlogRequest() {
|
|
108
1028
|
return Joi.object({
|
|
109
1029
|
_custom_json: Joi.any(),
|
|
110
|
-
_schedule:
|
|
1030
|
+
_schedule: ContentPlatformModel.CronSchedule(),
|
|
111
1031
|
application: Joi.string().allow(""),
|
|
112
|
-
author:
|
|
113
|
-
content: Joi.array().items(
|
|
114
|
-
feature_image:
|
|
1032
|
+
author: ContentPlatformModel.Author(),
|
|
1033
|
+
content: Joi.array().items(ContentPlatformModel.ResourceContent()),
|
|
1034
|
+
feature_image: ContentPlatformModel.Asset(),
|
|
115
1035
|
published: Joi.boolean(),
|
|
116
1036
|
reading_time: Joi.string().allow(""),
|
|
117
|
-
seo:
|
|
1037
|
+
seo: ContentPlatformModel.SEO(),
|
|
118
1038
|
slug: Joi.string().allow(""),
|
|
119
1039
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
120
1040
|
title: Joi.string().allow(""),
|
|
121
1041
|
});
|
|
122
1042
|
}
|
|
1043
|
+
|
|
1044
|
+
/** @returns {BlogSchema} */
|
|
123
1045
|
static BlogSchema() {
|
|
124
1046
|
return Joi.object({
|
|
125
1047
|
_custom_json: Joi.any(),
|
|
126
1048
|
_id: Joi.string().allow(""),
|
|
127
|
-
_schedule:
|
|
1049
|
+
_schedule: ContentPlatformModel.CronSchedule(),
|
|
128
1050
|
application: Joi.string().allow(""),
|
|
129
1051
|
archived: Joi.boolean(),
|
|
130
|
-
author:
|
|
131
|
-
content: Joi.array().items(
|
|
132
|
-
date_meta:
|
|
133
|
-
feature_image:
|
|
1052
|
+
author: ContentPlatformModel.Author(),
|
|
1053
|
+
content: Joi.array().items(ContentPlatformModel.ResourceContent()),
|
|
1054
|
+
date_meta: ContentPlatformModel.DateMeta(),
|
|
1055
|
+
feature_image: ContentPlatformModel.Asset(),
|
|
134
1056
|
published: Joi.boolean(),
|
|
135
1057
|
reading_time: Joi.string().allow(""),
|
|
136
|
-
seo:
|
|
1058
|
+
seo: ContentPlatformModel.SEO(),
|
|
137
1059
|
slug: Joi.string().allow(""),
|
|
138
1060
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
139
1061
|
title: Joi.string().allow(""),
|
|
140
1062
|
});
|
|
141
1063
|
}
|
|
1064
|
+
|
|
1065
|
+
/** @returns {CategoryRequestSchema} */
|
|
142
1066
|
static CategoryRequestSchema() {
|
|
143
1067
|
return Joi.object({
|
|
144
1068
|
slug: Joi.string().allow(""),
|
|
145
1069
|
title: Joi.string().allow(""),
|
|
146
1070
|
});
|
|
147
1071
|
}
|
|
1072
|
+
|
|
1073
|
+
/** @returns {CategorySchema} */
|
|
148
1074
|
static CategorySchema() {
|
|
149
1075
|
return Joi.object({
|
|
150
1076
|
_custom_json: Joi.any(),
|
|
@@ -158,6 +1084,8 @@ class ContentModel {
|
|
|
158
1084
|
title: Joi.string().allow(""),
|
|
159
1085
|
});
|
|
160
1086
|
}
|
|
1087
|
+
|
|
1088
|
+
/** @returns {ChildrenSchema} */
|
|
161
1089
|
static ChildrenSchema() {
|
|
162
1090
|
return Joi.object({
|
|
163
1091
|
_id: Joi.string().allow(""),
|
|
@@ -167,11 +1095,15 @@ class ContentModel {
|
|
|
167
1095
|
slug: Joi.string().allow(""),
|
|
168
1096
|
});
|
|
169
1097
|
}
|
|
1098
|
+
|
|
1099
|
+
/** @returns {CommonError} */
|
|
170
1100
|
static CommonError() {
|
|
171
1101
|
return Joi.object({
|
|
172
1102
|
message: Joi.string().allow(""),
|
|
173
1103
|
});
|
|
174
1104
|
}
|
|
1105
|
+
|
|
1106
|
+
/** @returns {ConfigurationSchema} */
|
|
175
1107
|
static ConfigurationSchema() {
|
|
176
1108
|
return Joi.object({
|
|
177
1109
|
duration: Joi.number(),
|
|
@@ -180,12 +1112,16 @@ class ContentModel {
|
|
|
180
1112
|
start_on_launch: Joi.boolean(),
|
|
181
1113
|
});
|
|
182
1114
|
}
|
|
1115
|
+
|
|
1116
|
+
/** @returns {ContactSchema} */
|
|
183
1117
|
static ContactSchema() {
|
|
184
1118
|
return Joi.object({
|
|
185
|
-
email:
|
|
186
|
-
phone:
|
|
1119
|
+
email: ContentPlatformModel.EmailSchema(),
|
|
1120
|
+
phone: ContentPlatformModel.PhoneSchema(),
|
|
187
1121
|
});
|
|
188
1122
|
}
|
|
1123
|
+
|
|
1124
|
+
/** @returns {ContentAPIError} */
|
|
189
1125
|
static ContentAPIError() {
|
|
190
1126
|
return Joi.object({
|
|
191
1127
|
code: Joi.string().allow(""),
|
|
@@ -198,48 +1134,66 @@ class ContentModel {
|
|
|
198
1134
|
status: Joi.number(),
|
|
199
1135
|
});
|
|
200
1136
|
}
|
|
1137
|
+
|
|
1138
|
+
/** @returns {ContentSchema} */
|
|
201
1139
|
static ContentSchema() {
|
|
202
1140
|
return Joi.object({
|
|
203
1141
|
type: Joi.string().allow(""),
|
|
204
1142
|
value: Joi.any(),
|
|
205
1143
|
});
|
|
206
1144
|
}
|
|
1145
|
+
|
|
1146
|
+
/** @returns {CreateAnnouncementSchema} */
|
|
207
1147
|
static CreateAnnouncementSchema() {
|
|
208
1148
|
return Joi.object({
|
|
209
|
-
data:
|
|
1149
|
+
data: ContentPlatformModel.AdminAnnouncementSchema(),
|
|
210
1150
|
message: Joi.string().allow(""),
|
|
211
1151
|
});
|
|
212
1152
|
}
|
|
1153
|
+
|
|
1154
|
+
/** @returns {CreatedBySchema} */
|
|
213
1155
|
static CreatedBySchema() {
|
|
214
1156
|
return Joi.object({
|
|
215
1157
|
id: Joi.string().allow(""),
|
|
216
1158
|
});
|
|
217
1159
|
}
|
|
1160
|
+
|
|
1161
|
+
/** @returns {CreateFaqCategoryRequestSchema} */
|
|
218
1162
|
static CreateFaqCategoryRequestSchema() {
|
|
219
1163
|
return Joi.object({
|
|
220
|
-
category:
|
|
1164
|
+
category: ContentPlatformModel.CategoryRequestSchema(),
|
|
221
1165
|
});
|
|
222
1166
|
}
|
|
1167
|
+
|
|
1168
|
+
/** @returns {CreateFaqCategorySchema} */
|
|
223
1169
|
static CreateFaqCategorySchema() {
|
|
224
1170
|
return Joi.object({
|
|
225
|
-
category:
|
|
1171
|
+
category: ContentPlatformModel.CategorySchema(),
|
|
226
1172
|
});
|
|
227
1173
|
}
|
|
1174
|
+
|
|
1175
|
+
/** @returns {CreateFaqResponseSchema} */
|
|
228
1176
|
static CreateFaqResponseSchema() {
|
|
229
1177
|
return Joi.object({
|
|
230
|
-
faq:
|
|
1178
|
+
faq: ContentPlatformModel.FaqSchema(),
|
|
231
1179
|
});
|
|
232
1180
|
}
|
|
1181
|
+
|
|
1182
|
+
/** @returns {CreateFaqSchema} */
|
|
233
1183
|
static CreateFaqSchema() {
|
|
234
1184
|
return Joi.object({
|
|
235
|
-
faq:
|
|
1185
|
+
faq: ContentPlatformModel.FAQ(),
|
|
236
1186
|
});
|
|
237
1187
|
}
|
|
1188
|
+
|
|
1189
|
+
/** @returns {CreateTagRequestSchema} */
|
|
238
1190
|
static CreateTagRequestSchema() {
|
|
239
1191
|
return Joi.object({
|
|
240
|
-
tags: Joi.array().items(
|
|
1192
|
+
tags: Joi.array().items(ContentPlatformModel.CreateTagSchema()),
|
|
241
1193
|
});
|
|
242
1194
|
}
|
|
1195
|
+
|
|
1196
|
+
/** @returns {CreateTagSchema} */
|
|
243
1197
|
static CreateTagSchema() {
|
|
244
1198
|
return Joi.object({
|
|
245
1199
|
_id: Joi.string().allow(""),
|
|
@@ -253,6 +1207,8 @@ class ContentModel {
|
|
|
253
1207
|
url: Joi.string().allow(""),
|
|
254
1208
|
});
|
|
255
1209
|
}
|
|
1210
|
+
|
|
1211
|
+
/** @returns {CronSchedule} */
|
|
256
1212
|
static CronSchedule() {
|
|
257
1213
|
return Joi.object({
|
|
258
1214
|
cron: Joi.string().allow(""),
|
|
@@ -261,6 +1217,8 @@ class ContentModel {
|
|
|
261
1217
|
start: Joi.string().allow(""),
|
|
262
1218
|
});
|
|
263
1219
|
}
|
|
1220
|
+
|
|
1221
|
+
/** @returns {CustomMetaTag} */
|
|
264
1222
|
static CustomMetaTag() {
|
|
265
1223
|
return Joi.object({
|
|
266
1224
|
_id: Joi.string().allow(""),
|
|
@@ -268,19 +1226,23 @@ class ContentModel {
|
|
|
268
1226
|
name: Joi.string().allow(""),
|
|
269
1227
|
});
|
|
270
1228
|
}
|
|
1229
|
+
|
|
1230
|
+
/** @returns {CustomPage} */
|
|
271
1231
|
static CustomPage() {
|
|
272
1232
|
return Joi.object({
|
|
273
|
-
data:
|
|
1233
|
+
data: ContentPlatformModel.CustomPageSchema(),
|
|
274
1234
|
});
|
|
275
1235
|
}
|
|
1236
|
+
|
|
1237
|
+
/** @returns {CustomPageSchema} */
|
|
276
1238
|
static CustomPageSchema() {
|
|
277
1239
|
return Joi.object({
|
|
278
1240
|
_id: Joi.string().allow(""),
|
|
279
|
-
_schedule:
|
|
1241
|
+
_schedule: ContentPlatformModel.ScheduleSchema(),
|
|
280
1242
|
application: Joi.string().allow(""),
|
|
281
1243
|
content: Joi.array().items(Joi.any()),
|
|
282
|
-
created_by:
|
|
283
|
-
date_meta:
|
|
1244
|
+
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
1245
|
+
date_meta: ContentPlatformModel.DateMeta(),
|
|
284
1246
|
description: Joi.string().allow(""),
|
|
285
1247
|
orientation: Joi.string().allow(""),
|
|
286
1248
|
platform: Joi.string().allow(""),
|
|
@@ -291,14 +1253,18 @@ class ContentModel {
|
|
|
291
1253
|
type: Joi.string().allow(""),
|
|
292
1254
|
});
|
|
293
1255
|
}
|
|
1256
|
+
|
|
1257
|
+
/** @returns {DataLoaderResetResponseSchema} */
|
|
294
1258
|
static DataLoaderResetResponseSchema() {
|
|
295
1259
|
return Joi.object({
|
|
296
1260
|
reset: Joi.string().allow(""),
|
|
297
1261
|
});
|
|
298
1262
|
}
|
|
1263
|
+
|
|
1264
|
+
/** @returns {DataLoaderResponseSchema} */
|
|
299
1265
|
static DataLoaderResponseSchema() {
|
|
300
1266
|
return Joi.object({
|
|
301
|
-
__source:
|
|
1267
|
+
__source: ContentPlatformModel.DataLoaderSourceSchema(),
|
|
302
1268
|
_id: Joi.string().allow(""),
|
|
303
1269
|
application: Joi.string().allow(""),
|
|
304
1270
|
company: Joi.string().allow(""),
|
|
@@ -310,9 +1276,11 @@ class ContentModel {
|
|
|
310
1276
|
url: Joi.string().allow(""),
|
|
311
1277
|
});
|
|
312
1278
|
}
|
|
1279
|
+
|
|
1280
|
+
/** @returns {DataLoaderSchema} */
|
|
313
1281
|
static DataLoaderSchema() {
|
|
314
1282
|
return Joi.object({
|
|
315
|
-
__source:
|
|
1283
|
+
__source: ContentPlatformModel.DataLoaderSourceSchema(),
|
|
316
1284
|
_id: Joi.string().allow(""),
|
|
317
1285
|
content: Joi.string().allow(""),
|
|
318
1286
|
name: Joi.string().allow(""),
|
|
@@ -322,28 +1290,38 @@ class ContentModel {
|
|
|
322
1290
|
url: Joi.string().allow(""),
|
|
323
1291
|
});
|
|
324
1292
|
}
|
|
1293
|
+
|
|
1294
|
+
/** @returns {DataLoaderSourceSchema} */
|
|
325
1295
|
static DataLoaderSourceSchema() {
|
|
326
1296
|
return Joi.object({
|
|
327
1297
|
id: Joi.string().allow(""),
|
|
328
1298
|
type: Joi.string().allow(""),
|
|
329
1299
|
});
|
|
330
1300
|
}
|
|
1301
|
+
|
|
1302
|
+
/** @returns {DataLoadersSchema} */
|
|
331
1303
|
static DataLoadersSchema() {
|
|
332
1304
|
return Joi.object({
|
|
333
|
-
items: Joi.array().items(
|
|
1305
|
+
items: Joi.array().items(ContentPlatformModel.DataLoaderSchema()),
|
|
334
1306
|
});
|
|
335
1307
|
}
|
|
1308
|
+
|
|
1309
|
+
/** @returns {DateMeta} */
|
|
336
1310
|
static DateMeta() {
|
|
337
1311
|
return Joi.object({
|
|
338
1312
|
created_on: Joi.string().allow(""),
|
|
339
1313
|
modified_on: Joi.string().allow(""),
|
|
340
1314
|
});
|
|
341
1315
|
}
|
|
1316
|
+
|
|
1317
|
+
/** @returns {DefaultNavigationResponse} */
|
|
342
1318
|
static DefaultNavigationResponse() {
|
|
343
1319
|
return Joi.object({
|
|
344
|
-
items: Joi.array().items(
|
|
1320
|
+
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
345
1321
|
});
|
|
346
1322
|
}
|
|
1323
|
+
|
|
1324
|
+
/** @returns {Detail} */
|
|
347
1325
|
static Detail() {
|
|
348
1326
|
return Joi.object({
|
|
349
1327
|
description: Joi.string().allow(""),
|
|
@@ -351,6 +1329,8 @@ class ContentModel {
|
|
|
351
1329
|
title: Joi.string().allow(""),
|
|
352
1330
|
});
|
|
353
1331
|
}
|
|
1332
|
+
|
|
1333
|
+
/** @returns {EditorMeta} */
|
|
354
1334
|
static EditorMeta() {
|
|
355
1335
|
return Joi.object({
|
|
356
1336
|
background_color: Joi.string().allow(""),
|
|
@@ -359,18 +1339,24 @@ class ContentModel {
|
|
|
359
1339
|
foreground_color: Joi.string().allow(""),
|
|
360
1340
|
});
|
|
361
1341
|
}
|
|
1342
|
+
|
|
1343
|
+
/** @returns {EmailProperties} */
|
|
362
1344
|
static EmailProperties() {
|
|
363
1345
|
return Joi.object({
|
|
364
1346
|
key: Joi.string().allow(""),
|
|
365
1347
|
value: Joi.string().allow(""),
|
|
366
1348
|
});
|
|
367
1349
|
}
|
|
1350
|
+
|
|
1351
|
+
/** @returns {EmailSchema} */
|
|
368
1352
|
static EmailSchema() {
|
|
369
1353
|
return Joi.object({
|
|
370
1354
|
active: Joi.boolean(),
|
|
371
|
-
email: Joi.array().items(
|
|
1355
|
+
email: Joi.array().items(ContentPlatformModel.EmailProperties()),
|
|
372
1356
|
});
|
|
373
1357
|
}
|
|
1358
|
+
|
|
1359
|
+
/** @returns {FAQ} */
|
|
374
1360
|
static FAQ() {
|
|
375
1361
|
return Joi.object({
|
|
376
1362
|
answer: Joi.string().allow(""),
|
|
@@ -378,12 +1364,14 @@ class ContentModel {
|
|
|
378
1364
|
slug: Joi.string().allow(""),
|
|
379
1365
|
});
|
|
380
1366
|
}
|
|
1367
|
+
|
|
1368
|
+
/** @returns {FAQCategorySchema} */
|
|
381
1369
|
static FAQCategorySchema() {
|
|
382
1370
|
return Joi.object({
|
|
383
1371
|
_custom_json: Joi.any(),
|
|
384
1372
|
_id: Joi.string().allow(""),
|
|
385
1373
|
application: Joi.string().allow(""),
|
|
386
|
-
children: Joi.array().items(
|
|
1374
|
+
children: Joi.array().items(ContentPlatformModel.ChildrenSchema()),
|
|
387
1375
|
description: Joi.string().allow(""),
|
|
388
1376
|
icon_url: Joi.string().allow(""),
|
|
389
1377
|
index: Joi.number(),
|
|
@@ -391,11 +1379,15 @@ class ContentModel {
|
|
|
391
1379
|
title: Joi.string().allow(""),
|
|
392
1380
|
});
|
|
393
1381
|
}
|
|
1382
|
+
|
|
1383
|
+
/** @returns {FaqResponseSchema} */
|
|
394
1384
|
static FaqResponseSchema() {
|
|
395
1385
|
return Joi.object({
|
|
396
|
-
faqs: Joi.array().items(
|
|
1386
|
+
faqs: Joi.array().items(ContentPlatformModel.FaqSchema()),
|
|
397
1387
|
});
|
|
398
1388
|
}
|
|
1389
|
+
|
|
1390
|
+
/** @returns {FaqSchema} */
|
|
399
1391
|
static FaqSchema() {
|
|
400
1392
|
return Joi.object({
|
|
401
1393
|
_id: Joi.string().allow(""),
|
|
@@ -406,17 +1398,23 @@ class ContentModel {
|
|
|
406
1398
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
407
1399
|
});
|
|
408
1400
|
}
|
|
1401
|
+
|
|
1402
|
+
/** @returns {FeatureImage} */
|
|
409
1403
|
static FeatureImage() {
|
|
410
1404
|
return Joi.object({
|
|
411
1405
|
secure_url: Joi.string().allow(""),
|
|
412
1406
|
});
|
|
413
1407
|
}
|
|
1408
|
+
|
|
1409
|
+
/** @returns {GeneratedSEOContent} */
|
|
414
1410
|
static GeneratedSEOContent() {
|
|
415
1411
|
return Joi.object({
|
|
416
1412
|
description: Joi.string().allow(""),
|
|
417
1413
|
title: Joi.string().allow(""),
|
|
418
1414
|
});
|
|
419
1415
|
}
|
|
1416
|
+
|
|
1417
|
+
/** @returns {GenerateSEOContent} */
|
|
420
1418
|
static GenerateSEOContent() {
|
|
421
1419
|
return Joi.object({
|
|
422
1420
|
existing_text: Joi.string().allow(""),
|
|
@@ -425,27 +1423,37 @@ class ContentModel {
|
|
|
425
1423
|
type: Joi.string().allow(""),
|
|
426
1424
|
});
|
|
427
1425
|
}
|
|
1426
|
+
|
|
1427
|
+
/** @returns {GetAnnouncementListSchema} */
|
|
428
1428
|
static GetAnnouncementListSchema() {
|
|
429
1429
|
return Joi.object({
|
|
430
|
-
items: Joi.array().items(
|
|
431
|
-
page:
|
|
1430
|
+
items: Joi.array().items(ContentPlatformModel.AdminAnnouncementSchema()),
|
|
1431
|
+
page: ContentPlatformModel.Page(),
|
|
432
1432
|
});
|
|
433
1433
|
}
|
|
1434
|
+
|
|
1435
|
+
/** @returns {GetFaqCategoriesSchema} */
|
|
434
1436
|
static GetFaqCategoriesSchema() {
|
|
435
1437
|
return Joi.object({
|
|
436
|
-
categories: Joi.array().items(
|
|
1438
|
+
categories: Joi.array().items(ContentPlatformModel.CategorySchema()),
|
|
437
1439
|
});
|
|
438
1440
|
}
|
|
1441
|
+
|
|
1442
|
+
/** @returns {GetFaqCategoryBySlugSchema} */
|
|
439
1443
|
static GetFaqCategoryBySlugSchema() {
|
|
440
1444
|
return Joi.object({
|
|
441
|
-
category:
|
|
1445
|
+
category: ContentPlatformModel.FAQCategorySchema(),
|
|
442
1446
|
});
|
|
443
1447
|
}
|
|
1448
|
+
|
|
1449
|
+
/** @returns {GetFaqSchema} */
|
|
444
1450
|
static GetFaqSchema() {
|
|
445
1451
|
return Joi.object({
|
|
446
|
-
faqs: Joi.array().items(
|
|
1452
|
+
faqs: Joi.array().items(ContentPlatformModel.FaqSchema()),
|
|
447
1453
|
});
|
|
448
1454
|
}
|
|
1455
|
+
|
|
1456
|
+
/** @returns {HandpickedTagSchema} */
|
|
449
1457
|
static HandpickedTagSchema() {
|
|
450
1458
|
return Joi.object({
|
|
451
1459
|
attributes: Joi.any(),
|
|
@@ -457,68 +1465,84 @@ class ContentModel {
|
|
|
457
1465
|
url: Joi.string().allow(""),
|
|
458
1466
|
});
|
|
459
1467
|
}
|
|
1468
|
+
|
|
1469
|
+
/** @returns {LandingPage} */
|
|
460
1470
|
static LandingPage() {
|
|
461
1471
|
return Joi.object({
|
|
462
|
-
data:
|
|
1472
|
+
data: ContentPlatformModel.LandingPageSchema(),
|
|
463
1473
|
success: Joi.boolean(),
|
|
464
1474
|
});
|
|
465
1475
|
}
|
|
1476
|
+
|
|
1477
|
+
/** @returns {LandingPageGetResponse} */
|
|
466
1478
|
static LandingPageGetResponse() {
|
|
467
1479
|
return Joi.object({
|
|
468
|
-
items: Joi.array().items(
|
|
469
|
-
page:
|
|
1480
|
+
items: Joi.array().items(ContentPlatformModel.LandingPageSchema()),
|
|
1481
|
+
page: ContentPlatformModel.Page(),
|
|
470
1482
|
});
|
|
471
1483
|
}
|
|
1484
|
+
|
|
1485
|
+
/** @returns {LandingPageSchema} */
|
|
472
1486
|
static LandingPageSchema() {
|
|
473
1487
|
return Joi.object({
|
|
474
1488
|
_custom_json: Joi.any(),
|
|
475
1489
|
_id: Joi.string().allow(""),
|
|
476
|
-
action:
|
|
1490
|
+
action: ContentPlatformModel.Action(),
|
|
477
1491
|
application: Joi.string().allow(""),
|
|
478
1492
|
archived: Joi.boolean(),
|
|
479
|
-
created_by:
|
|
480
|
-
date_meta:
|
|
1493
|
+
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
1494
|
+
date_meta: ContentPlatformModel.DateMeta(),
|
|
481
1495
|
platform: Joi.array().items(Joi.string().allow("")),
|
|
482
1496
|
slug: Joi.string().allow(""),
|
|
483
1497
|
});
|
|
484
1498
|
}
|
|
1499
|
+
|
|
1500
|
+
/** @returns {Language} */
|
|
485
1501
|
static Language() {
|
|
486
1502
|
return Joi.object({
|
|
487
1503
|
display: Joi.string().allow(""),
|
|
488
1504
|
});
|
|
489
1505
|
}
|
|
1506
|
+
|
|
1507
|
+
/** @returns {LocaleLanguage} */
|
|
490
1508
|
static LocaleLanguage() {
|
|
491
1509
|
return Joi.object({
|
|
492
|
-
ar:
|
|
493
|
-
en_us:
|
|
494
|
-
hi:
|
|
1510
|
+
ar: ContentPlatformModel.Language(),
|
|
1511
|
+
en_us: ContentPlatformModel.Language(),
|
|
1512
|
+
hi: ContentPlatformModel.Language(),
|
|
495
1513
|
});
|
|
496
1514
|
}
|
|
1515
|
+
|
|
1516
|
+
/** @returns {Navigation} */
|
|
497
1517
|
static Navigation() {
|
|
498
1518
|
return Joi.object({
|
|
499
1519
|
_id: Joi.string().allow(""),
|
|
500
1520
|
application: Joi.string().allow(""),
|
|
501
|
-
created_by:
|
|
502
|
-
date_meta:
|
|
1521
|
+
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
1522
|
+
date_meta: ContentPlatformModel.DateMeta(),
|
|
503
1523
|
name: Joi.string().allow(""),
|
|
504
|
-
navigation:
|
|
1524
|
+
navigation: ContentPlatformModel.NavigationReference(),
|
|
505
1525
|
orientation: Joi.string().allow(""),
|
|
506
1526
|
platform: Joi.string().allow(""),
|
|
507
1527
|
position: Joi.string().allow(""),
|
|
508
1528
|
slug: Joi.string().allow(""),
|
|
509
1529
|
});
|
|
510
1530
|
}
|
|
1531
|
+
|
|
1532
|
+
/** @returns {NavigationGetResponse} */
|
|
511
1533
|
static NavigationGetResponse() {
|
|
512
1534
|
return Joi.object({
|
|
513
|
-
items: Joi.array().items(
|
|
514
|
-
page:
|
|
1535
|
+
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
1536
|
+
page: ContentPlatformModel.Page(),
|
|
515
1537
|
});
|
|
516
1538
|
}
|
|
1539
|
+
|
|
1540
|
+
/** @returns {NavigationReference} */
|
|
517
1541
|
static NavigationReference() {
|
|
518
1542
|
return Joi.object({
|
|
519
|
-
_locale_language:
|
|
1543
|
+
_locale_language: ContentPlatformModel.LocaleLanguage(),
|
|
520
1544
|
acl: Joi.array().items(Joi.string().allow("")),
|
|
521
|
-
action:
|
|
1545
|
+
action: ContentPlatformModel.Action(),
|
|
522
1546
|
active: Joi.boolean(),
|
|
523
1547
|
display: Joi.string().allow(""),
|
|
524
1548
|
image: Joi.string().allow(""),
|
|
@@ -528,42 +1552,52 @@ class ContentModel {
|
|
|
528
1552
|
type: Joi.string().allow(""),
|
|
529
1553
|
}).id("NavigationReference");
|
|
530
1554
|
}
|
|
1555
|
+
|
|
1556
|
+
/** @returns {NavigationRequest} */
|
|
531
1557
|
static NavigationRequest() {
|
|
532
1558
|
return Joi.object({
|
|
533
1559
|
name: Joi.string().allow(""),
|
|
534
|
-
navigation: Joi.array().items(
|
|
535
|
-
orientation:
|
|
1560
|
+
navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
|
|
1561
|
+
orientation: ContentPlatformModel.Orientation(),
|
|
536
1562
|
platform: Joi.array().items(Joi.string().allow("")),
|
|
537
1563
|
slug: Joi.string().allow(""),
|
|
538
1564
|
});
|
|
539
1565
|
}
|
|
1566
|
+
|
|
1567
|
+
/** @returns {NavigationSchema} */
|
|
540
1568
|
static NavigationSchema() {
|
|
541
1569
|
return Joi.object({
|
|
542
1570
|
_id: Joi.string().allow(""),
|
|
543
1571
|
application: Joi.string().allow(""),
|
|
544
1572
|
archived: Joi.boolean(),
|
|
545
|
-
created_by:
|
|
546
|
-
date_meta:
|
|
1573
|
+
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
1574
|
+
date_meta: ContentPlatformModel.DateMeta(),
|
|
547
1575
|
name: Joi.string().allow(""),
|
|
548
|
-
navigation: Joi.array().items(
|
|
549
|
-
orientation:
|
|
1576
|
+
navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
|
|
1577
|
+
orientation: ContentPlatformModel.Orientation(),
|
|
550
1578
|
platform: Joi.array().items(Joi.string().allow("")),
|
|
551
1579
|
slug: Joi.string().allow(""),
|
|
552
1580
|
version: Joi.number(),
|
|
553
1581
|
});
|
|
554
1582
|
}
|
|
1583
|
+
|
|
1584
|
+
/** @returns {NextSchedule} */
|
|
555
1585
|
static NextSchedule() {
|
|
556
1586
|
return Joi.object({
|
|
557
1587
|
end: Joi.string().allow(""),
|
|
558
1588
|
start: Joi.string().allow(""),
|
|
559
1589
|
});
|
|
560
1590
|
}
|
|
1591
|
+
|
|
1592
|
+
/** @returns {Orientation} */
|
|
561
1593
|
static Orientation() {
|
|
562
1594
|
return Joi.object({
|
|
563
1595
|
landscape: Joi.array().items(Joi.string().allow("")),
|
|
564
1596
|
portrait: Joi.array().items(Joi.string().allow("")),
|
|
565
1597
|
});
|
|
566
1598
|
}
|
|
1599
|
+
|
|
1600
|
+
/** @returns {Page} */
|
|
567
1601
|
static Page() {
|
|
568
1602
|
return Joi.object({
|
|
569
1603
|
current: Joi.number(),
|
|
@@ -575,72 +1609,86 @@ class ContentModel {
|
|
|
575
1609
|
type: Joi.string().allow("").required(),
|
|
576
1610
|
});
|
|
577
1611
|
}
|
|
1612
|
+
|
|
1613
|
+
/** @returns {PageContent} */
|
|
578
1614
|
static PageContent() {
|
|
579
1615
|
return Joi.object({
|
|
580
1616
|
type: Joi.string().allow(""),
|
|
581
1617
|
value: Joi.any(),
|
|
582
1618
|
});
|
|
583
1619
|
}
|
|
1620
|
+
|
|
1621
|
+
/** @returns {PageGetResponse} */
|
|
584
1622
|
static PageGetResponse() {
|
|
585
1623
|
return Joi.object({
|
|
586
|
-
items: Joi.array().items(
|
|
587
|
-
page:
|
|
1624
|
+
items: Joi.array().items(ContentPlatformModel.PageSchema()),
|
|
1625
|
+
page: ContentPlatformModel.Page(),
|
|
588
1626
|
});
|
|
589
1627
|
}
|
|
1628
|
+
|
|
1629
|
+
/** @returns {PageMeta} */
|
|
590
1630
|
static PageMeta() {
|
|
591
1631
|
return Joi.object({
|
|
592
1632
|
key: Joi.string().allow(""),
|
|
593
1633
|
value: Joi.any(),
|
|
594
1634
|
});
|
|
595
1635
|
}
|
|
1636
|
+
|
|
1637
|
+
/** @returns {PageMetaSchema} */
|
|
596
1638
|
static PageMetaSchema() {
|
|
597
1639
|
return Joi.object({
|
|
598
1640
|
application_id: Joi.string().allow(""),
|
|
599
|
-
custom_pages: Joi.array().items(
|
|
600
|
-
system_pages: Joi.array().items(
|
|
1641
|
+
custom_pages: Joi.array().items(ContentPlatformModel.PageSchema()),
|
|
1642
|
+
system_pages: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
601
1643
|
});
|
|
602
1644
|
}
|
|
1645
|
+
|
|
1646
|
+
/** @returns {PagePublishRequest} */
|
|
603
1647
|
static PagePublishRequest() {
|
|
604
1648
|
return Joi.object({
|
|
605
1649
|
publish: Joi.boolean(),
|
|
606
1650
|
});
|
|
607
1651
|
}
|
|
1652
|
+
|
|
1653
|
+
/** @returns {PageRequest} */
|
|
608
1654
|
static PageRequest() {
|
|
609
1655
|
return Joi.object({
|
|
610
1656
|
_custom_json: Joi.any(),
|
|
611
|
-
_schedule:
|
|
1657
|
+
_schedule: ContentPlatformModel.CronSchedule(),
|
|
612
1658
|
application: Joi.string().allow(""),
|
|
613
|
-
author:
|
|
1659
|
+
author: ContentPlatformModel.Author(),
|
|
614
1660
|
content: Joi.array().items(Joi.any()),
|
|
615
|
-
feature_image:
|
|
1661
|
+
feature_image: ContentPlatformModel.Asset(),
|
|
616
1662
|
orientation: Joi.string().allow(""),
|
|
617
1663
|
published: Joi.boolean(),
|
|
618
1664
|
reading_time: Joi.string().allow(""),
|
|
619
|
-
seo:
|
|
1665
|
+
seo: ContentPlatformModel.SEO(),
|
|
620
1666
|
slug: Joi.string().allow(""),
|
|
621
1667
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
622
1668
|
title: Joi.string().allow(""),
|
|
623
1669
|
});
|
|
624
1670
|
}
|
|
1671
|
+
|
|
1672
|
+
/** @returns {PageSchema} */
|
|
625
1673
|
static PageSchema() {
|
|
626
1674
|
return Joi.object({
|
|
627
1675
|
_custom_json: Joi.any(),
|
|
628
1676
|
_id: Joi.string().allow(""),
|
|
629
|
-
_schedule:
|
|
1677
|
+
_schedule: ContentPlatformModel.ScheduleSchema(),
|
|
630
1678
|
application: Joi.string().allow(""),
|
|
631
1679
|
archived: Joi.boolean(),
|
|
632
1680
|
component_ids: Joi.array().items(Joi.string().allow("")),
|
|
633
1681
|
content: Joi.array().items(Joi.any()),
|
|
634
1682
|
content_path: Joi.string().allow(""),
|
|
635
|
-
created_by:
|
|
636
|
-
date_meta:
|
|
1683
|
+
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
1684
|
+
date_meta: ContentPlatformModel.DateMeta(),
|
|
637
1685
|
description: Joi.string().allow(""),
|
|
638
|
-
feature_image:
|
|
1686
|
+
feature_image: ContentPlatformModel.Asset(),
|
|
639
1687
|
orientation: Joi.string().allow(""),
|
|
640
1688
|
page_meta: Joi.array().items(Joi.any()),
|
|
641
1689
|
platform: Joi.string().allow(""),
|
|
642
1690
|
published: Joi.boolean(),
|
|
643
|
-
seo:
|
|
1691
|
+
seo: ContentPlatformModel.SEO(),
|
|
644
1692
|
slug: Joi.string().allow(""),
|
|
645
1693
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
646
1694
|
title: Joi.string().allow(""),
|
|
@@ -648,28 +1696,36 @@ class ContentModel {
|
|
|
648
1696
|
visibility: Joi.any(),
|
|
649
1697
|
});
|
|
650
1698
|
}
|
|
1699
|
+
|
|
1700
|
+
/** @returns {PageSpec} */
|
|
651
1701
|
static PageSpec() {
|
|
652
1702
|
return Joi.object({
|
|
653
1703
|
specifications: Joi.array().items(Joi.any()),
|
|
654
1704
|
});
|
|
655
1705
|
}
|
|
1706
|
+
|
|
1707
|
+
/** @returns {PageSpecItem} */
|
|
656
1708
|
static PageSpecItem() {
|
|
657
1709
|
return Joi.object({
|
|
658
1710
|
display_name: Joi.string().allow(""),
|
|
659
1711
|
page_type: Joi.string().allow(""),
|
|
660
|
-
params: Joi.array().items(
|
|
661
|
-
query: Joi.array().items(
|
|
1712
|
+
params: Joi.array().items(ContentPlatformModel.PageSpecParam()),
|
|
1713
|
+
query: Joi.array().items(ContentPlatformModel.PageSpecParam()),
|
|
662
1714
|
});
|
|
663
1715
|
}
|
|
1716
|
+
|
|
1717
|
+
/** @returns {PageSpecParam} */
|
|
664
1718
|
static PageSpecParam() {
|
|
665
1719
|
return Joi.object({
|
|
666
1720
|
key: Joi.string().allow(""),
|
|
667
1721
|
required: Joi.boolean(),
|
|
668
1722
|
});
|
|
669
1723
|
}
|
|
1724
|
+
|
|
1725
|
+
/** @returns {PathMappingSchema} */
|
|
670
1726
|
static PathMappingSchema() {
|
|
671
1727
|
return Joi.object({
|
|
672
|
-
__source:
|
|
1728
|
+
__source: ContentPlatformModel.PathSourceSchema(),
|
|
673
1729
|
_id: Joi.string().allow(""),
|
|
674
1730
|
application: Joi.string().allow(""),
|
|
675
1731
|
created_at: Joi.string().allow(""),
|
|
@@ -678,12 +1734,16 @@ class ContentModel {
|
|
|
678
1734
|
updated_at: Joi.string().allow(""),
|
|
679
1735
|
});
|
|
680
1736
|
}
|
|
1737
|
+
|
|
1738
|
+
/** @returns {PathSourceSchema} */
|
|
681
1739
|
static PathSourceSchema() {
|
|
682
1740
|
return Joi.object({
|
|
683
1741
|
id: Joi.string().allow(""),
|
|
684
1742
|
type: Joi.string().allow(""),
|
|
685
1743
|
});
|
|
686
1744
|
}
|
|
1745
|
+
|
|
1746
|
+
/** @returns {PhoneProperties} */
|
|
687
1747
|
static PhoneProperties() {
|
|
688
1748
|
return Joi.object({
|
|
689
1749
|
code: Joi.string().allow(""),
|
|
@@ -691,23 +1751,31 @@ class ContentModel {
|
|
|
691
1751
|
number: Joi.string().allow(""),
|
|
692
1752
|
});
|
|
693
1753
|
}
|
|
1754
|
+
|
|
1755
|
+
/** @returns {PhoneSchema} */
|
|
694
1756
|
static PhoneSchema() {
|
|
695
1757
|
return Joi.object({
|
|
696
1758
|
active: Joi.boolean(),
|
|
697
|
-
phone: Joi.array().items(
|
|
1759
|
+
phone: Joi.array().items(ContentPlatformModel.PhoneProperties()),
|
|
698
1760
|
});
|
|
699
1761
|
}
|
|
1762
|
+
|
|
1763
|
+
/** @returns {RemoveHandpickedSchema} */
|
|
700
1764
|
static RemoveHandpickedSchema() {
|
|
701
1765
|
return Joi.object({
|
|
702
1766
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
703
1767
|
});
|
|
704
1768
|
}
|
|
1769
|
+
|
|
1770
|
+
/** @returns {ResourceContent} */
|
|
705
1771
|
static ResourceContent() {
|
|
706
1772
|
return Joi.object({
|
|
707
1773
|
type: Joi.string().allow(""),
|
|
708
1774
|
value: Joi.string().allow(""),
|
|
709
1775
|
});
|
|
710
1776
|
}
|
|
1777
|
+
|
|
1778
|
+
/** @returns {ScheduleSchema} */
|
|
711
1779
|
static ScheduleSchema() {
|
|
712
1780
|
return Joi.object({
|
|
713
1781
|
cron: Joi.string().allow(""),
|
|
@@ -717,29 +1785,39 @@ class ContentModel {
|
|
|
717
1785
|
start: Joi.string().allow(""),
|
|
718
1786
|
});
|
|
719
1787
|
}
|
|
1788
|
+
|
|
1789
|
+
/** @returns {ScheduleStartSchema} */
|
|
720
1790
|
static ScheduleStartSchema() {
|
|
721
1791
|
return Joi.object({
|
|
722
1792
|
end: Joi.string().allow(""),
|
|
723
1793
|
start: Joi.string().allow(""),
|
|
724
1794
|
});
|
|
725
1795
|
}
|
|
1796
|
+
|
|
1797
|
+
/** @returns {SEO} */
|
|
726
1798
|
static SEO() {
|
|
727
1799
|
return Joi.object({
|
|
728
1800
|
description: Joi.string().allow(""),
|
|
729
|
-
image:
|
|
1801
|
+
image: ContentPlatformModel.SEOImage(),
|
|
730
1802
|
title: Joi.string().allow(""),
|
|
731
1803
|
});
|
|
732
1804
|
}
|
|
1805
|
+
|
|
1806
|
+
/** @returns {SeoComponent} */
|
|
733
1807
|
static SeoComponent() {
|
|
734
1808
|
return Joi.object({
|
|
735
|
-
seo:
|
|
1809
|
+
seo: ContentPlatformModel.SeoSchema(),
|
|
736
1810
|
});
|
|
737
1811
|
}
|
|
1812
|
+
|
|
1813
|
+
/** @returns {SEOImage} */
|
|
738
1814
|
static SEOImage() {
|
|
739
1815
|
return Joi.object({
|
|
740
1816
|
url: Joi.string().allow(""),
|
|
741
1817
|
});
|
|
742
1818
|
}
|
|
1819
|
+
|
|
1820
|
+
/** @returns {SeoSchema} */
|
|
743
1821
|
static SeoSchema() {
|
|
744
1822
|
return Joi.object({
|
|
745
1823
|
_id: Joi.string().allow(""),
|
|
@@ -747,27 +1825,33 @@ class ContentModel {
|
|
|
747
1825
|
cannonical_enabled: Joi.boolean(),
|
|
748
1826
|
created_at: Joi.string().allow(""),
|
|
749
1827
|
custom_meta_tags: Joi.array().items(Joi.any()),
|
|
750
|
-
details:
|
|
1828
|
+
details: ContentPlatformModel.Detail(),
|
|
751
1829
|
robots_txt: Joi.string().allow(""),
|
|
752
1830
|
sitemap_enabled: Joi.boolean(),
|
|
753
1831
|
updated_at: Joi.string().allow(""),
|
|
754
1832
|
});
|
|
755
1833
|
}
|
|
1834
|
+
|
|
1835
|
+
/** @returns {Slideshow} */
|
|
756
1836
|
static Slideshow() {
|
|
757
1837
|
return Joi.object({
|
|
758
|
-
data:
|
|
1838
|
+
data: ContentPlatformModel.SlideshowSchema(),
|
|
759
1839
|
success: Joi.boolean(),
|
|
760
1840
|
});
|
|
761
1841
|
}
|
|
1842
|
+
|
|
1843
|
+
/** @returns {SlideshowGetResponse} */
|
|
762
1844
|
static SlideshowGetResponse() {
|
|
763
1845
|
return Joi.object({
|
|
764
|
-
items: Joi.array().items(
|
|
765
|
-
page:
|
|
1846
|
+
items: Joi.array().items(ContentPlatformModel.SlideshowSchema()),
|
|
1847
|
+
page: ContentPlatformModel.Page(),
|
|
766
1848
|
});
|
|
767
1849
|
}
|
|
1850
|
+
|
|
1851
|
+
/** @returns {SlideshowMedia} */
|
|
768
1852
|
static SlideshowMedia() {
|
|
769
1853
|
return Joi.object({
|
|
770
|
-
action:
|
|
1854
|
+
action: ContentPlatformModel.Action(),
|
|
771
1855
|
auto_decide_duration: Joi.boolean(),
|
|
772
1856
|
bg_color: Joi.string().allow(""),
|
|
773
1857
|
duration: Joi.number(),
|
|
@@ -775,15 +1859,19 @@ class ContentModel {
|
|
|
775
1859
|
url: Joi.string().allow(""),
|
|
776
1860
|
});
|
|
777
1861
|
}
|
|
1862
|
+
|
|
1863
|
+
/** @returns {SlideshowRequest} */
|
|
778
1864
|
static SlideshowRequest() {
|
|
779
1865
|
return Joi.object({
|
|
780
1866
|
active: Joi.boolean(),
|
|
781
|
-
configuration:
|
|
782
|
-
media:
|
|
1867
|
+
configuration: ContentPlatformModel.ConfigurationSchema(),
|
|
1868
|
+
media: ContentPlatformModel.SlideshowMedia(),
|
|
783
1869
|
platform: Joi.string().allow(""),
|
|
784
1870
|
slug: Joi.string().allow(""),
|
|
785
1871
|
});
|
|
786
1872
|
}
|
|
1873
|
+
|
|
1874
|
+
/** @returns {SlideshowSchema} */
|
|
787
1875
|
static SlideshowSchema() {
|
|
788
1876
|
return Joi.object({
|
|
789
1877
|
_custom_json: Joi.any(),
|
|
@@ -791,32 +1879,38 @@ class ContentModel {
|
|
|
791
1879
|
active: Joi.boolean(),
|
|
792
1880
|
application: Joi.string().allow(""),
|
|
793
1881
|
archived: Joi.boolean(),
|
|
794
|
-
configuration:
|
|
795
|
-
date_meta:
|
|
796
|
-
media: Joi.array().items(
|
|
1882
|
+
configuration: ContentPlatformModel.ConfigurationSchema(),
|
|
1883
|
+
date_meta: ContentPlatformModel.DateMeta(),
|
|
1884
|
+
media: Joi.array().items(ContentPlatformModel.SlideshowMedia()),
|
|
797
1885
|
platform: Joi.string().allow(""),
|
|
798
1886
|
slug: Joi.string().allow(""),
|
|
799
1887
|
});
|
|
800
1888
|
}
|
|
1889
|
+
|
|
1890
|
+
/** @returns {Support} */
|
|
801
1891
|
static Support() {
|
|
802
1892
|
return Joi.object({
|
|
803
1893
|
_id: Joi.string().allow(""),
|
|
804
1894
|
application: Joi.string().allow(""),
|
|
805
1895
|
config_type: Joi.string().allow(""),
|
|
806
|
-
contact:
|
|
1896
|
+
contact: ContentPlatformModel.ContactSchema(),
|
|
807
1897
|
created: Joi.boolean(),
|
|
808
1898
|
created_at: Joi.string().allow(""),
|
|
809
1899
|
updated_at: Joi.string().allow(""),
|
|
810
1900
|
});
|
|
811
1901
|
}
|
|
1902
|
+
|
|
1903
|
+
/** @returns {TagDeleteSuccessResponse} */
|
|
812
1904
|
static TagDeleteSuccessResponse() {
|
|
813
1905
|
return Joi.object({
|
|
814
1906
|
success: Joi.boolean(),
|
|
815
1907
|
});
|
|
816
1908
|
}
|
|
1909
|
+
|
|
1910
|
+
/** @returns {TagSchema} */
|
|
817
1911
|
static TagSchema() {
|
|
818
1912
|
return Joi.object({
|
|
819
|
-
__source:
|
|
1913
|
+
__source: ContentPlatformModel.TagSourceSchema(),
|
|
820
1914
|
_id: Joi.string().allow(""),
|
|
821
1915
|
attributes: Joi.any(),
|
|
822
1916
|
content: Joi.string().allow(""),
|
|
@@ -828,34 +1922,43 @@ class ContentModel {
|
|
|
828
1922
|
url: Joi.string().allow(""),
|
|
829
1923
|
});
|
|
830
1924
|
}
|
|
1925
|
+
|
|
1926
|
+
/** @returns {TagSourceSchema} */
|
|
831
1927
|
static TagSourceSchema() {
|
|
832
1928
|
return Joi.object({
|
|
833
1929
|
id: Joi.string().allow(""),
|
|
834
1930
|
type: Joi.string().allow(""),
|
|
835
1931
|
});
|
|
836
1932
|
}
|
|
1933
|
+
|
|
1934
|
+
/** @returns {TagsSchema} */
|
|
837
1935
|
static TagsSchema() {
|
|
838
1936
|
return Joi.object({
|
|
839
1937
|
_id: Joi.string().allow(""),
|
|
840
1938
|
application: Joi.string().allow(""),
|
|
841
|
-
tags: Joi.array().items(
|
|
1939
|
+
tags: Joi.array().items(ContentPlatformModel.TagSchema()),
|
|
842
1940
|
});
|
|
843
1941
|
}
|
|
1942
|
+
|
|
1943
|
+
/** @returns {UpdateFaqCategoryRequestSchema} */
|
|
844
1944
|
static UpdateFaqCategoryRequestSchema() {
|
|
845
1945
|
return Joi.object({
|
|
846
|
-
category:
|
|
1946
|
+
category: ContentPlatformModel.CategorySchema(),
|
|
847
1947
|
});
|
|
848
1948
|
}
|
|
1949
|
+
|
|
1950
|
+
/** @returns {UpdateHandpickedSchema} */
|
|
849
1951
|
static UpdateHandpickedSchema() {
|
|
850
1952
|
return Joi.object({
|
|
851
|
-
tag:
|
|
1953
|
+
tag: ContentPlatformModel.HandpickedTagSchema(),
|
|
852
1954
|
});
|
|
853
1955
|
}
|
|
854
1956
|
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
1957
|
+
/**
|
|
1958
|
+
* Enum: GenerationEntityType Used By: Content
|
|
1959
|
+
*
|
|
1960
|
+
* @returns {GenerationEntityType}
|
|
1961
|
+
*/
|
|
859
1962
|
static GenerationEntityType() {
|
|
860
1963
|
return Joi.string().valid(
|
|
861
1964
|
"title",
|
|
@@ -864,10 +1967,11 @@ class ContentModel {
|
|
|
864
1967
|
);
|
|
865
1968
|
}
|
|
866
1969
|
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
1970
|
+
/**
|
|
1971
|
+
* Enum: PageType Used By: Content
|
|
1972
|
+
*
|
|
1973
|
+
* @returns {PageType}
|
|
1974
|
+
*/
|
|
871
1975
|
static PageType() {
|
|
872
1976
|
return Joi.string().valid(
|
|
873
1977
|
"about-us",
|
|
@@ -964,4 +2068,4 @@ class ContentModel {
|
|
|
964
2068
|
);
|
|
965
2069
|
}
|
|
966
2070
|
}
|
|
967
|
-
module.exports =
|
|
2071
|
+
module.exports = ContentPlatformModel;
|