@gofynd/fdk-client-javascript 1.4.1 → 1.4.2-beta.10
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 +1 -1
- package/package.json +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +3 -5
- package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
- package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
- package/sdk/application/Cart/CartApplicationValidator.js +0 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
- package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
- package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
- package/sdk/application/Content/ContentApplicationClient.js +0 -246
- package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
- package/sdk/application/Content/ContentApplicationModel.js +565 -817
- package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
- package/sdk/application/Content/ContentApplicationValidator.js +0 -41
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
- package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
- package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +8 -32
- package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
- package/sdk/application/Order/OrderApplicationModel.js +816 -824
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
- package/sdk/application/Order/OrderApplicationValidator.js +0 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
- package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
- package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
- package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
- package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
- package/sdk/application/User/UserApplicationClient.d.ts +0 -33
- package/sdk/application/User/UserApplicationClient.js +0 -239
- package/sdk/application/User/UserApplicationModel.d.ts +753 -768
- package/sdk/application/User/UserApplicationModel.js +731 -755
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
- package/sdk/application/User/UserApplicationValidator.js +0 -36
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +254 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
- package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
- package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
- package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
- package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
- package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
- package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
- package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
- package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
- package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
- package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
- package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
- package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
- package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +2 -4
- package/sdk/platform/PlatformClient.js +4 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +990 -1589
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
- package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
- package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
- package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
- package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
- package/sdk/platform/User/UserPlatformModel.js +428 -679
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
- package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
- package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
- package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
- package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
- package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
- package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
- package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
- package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
- package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
- package/sdk/public/Billing/BillingPublicClient.js +0 -116
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
- package/sdk/public/Billing/BillingPublicModel.js +0 -96
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
- package/sdk/public/Billing/BillingPublicValidator.js +0 -19
- package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
- package/sdk/public/Content/ContentPublicClient.js +0 -114
- package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
- package/sdk/public/Content/ContentPublicModel.js +0 -60
- package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
- package/sdk/public/Content/ContentPublicValidator.js +0 -19
|
@@ -1,39 +1,85 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {
|
|
6
|
-
* @property {
|
|
4
|
+
* @typedef GenerateSEOContent
|
|
5
|
+
* @property {string} [text]
|
|
6
|
+
* @property {string} [existing_text]
|
|
7
|
+
* @property {string[]} [keywords]
|
|
7
8
|
* @property {string} [type]
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
|
-
* @typedef
|
|
12
|
-
* @property {
|
|
13
|
-
* @property {
|
|
14
|
-
* @property {PageType} type
|
|
15
|
-
* @property {string} [url]
|
|
12
|
+
* @typedef GeneratedSEOContent
|
|
13
|
+
* @property {string} [title]
|
|
14
|
+
* @property {string} [description]
|
|
16
15
|
*/
|
|
17
16
|
|
|
18
17
|
/**
|
|
19
|
-
* @typedef
|
|
18
|
+
* @typedef ApplicationLegal
|
|
19
|
+
* @property {string} [application]
|
|
20
|
+
* @property {string} [tnc]
|
|
21
|
+
* @property {string} [policy]
|
|
22
|
+
* @property {string} [shipping]
|
|
23
|
+
* @property {string} [returns]
|
|
24
|
+
* @property {ApplicationLegalFAQ[]} [faq]
|
|
20
25
|
* @property {string} [_id]
|
|
21
|
-
* @property {
|
|
22
|
-
* @property {string} [
|
|
26
|
+
* @property {string} [updated_at]
|
|
27
|
+
* @property {string} [created_at]
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @typedef ApplicationLegalFAQ
|
|
32
|
+
* @property {string} [question]
|
|
33
|
+
* @property {string} [answer]
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @typedef PathMappingSchema
|
|
38
|
+
* @property {string} [application]
|
|
39
|
+
* @property {string} [_id]
|
|
40
|
+
* @property {string} [redirect_from]
|
|
41
|
+
* @property {string} [redirect_to]
|
|
42
|
+
* @property {string} [updated_at]
|
|
43
|
+
* @property {string} [created_at]
|
|
44
|
+
* @property {PathSourceSchema} [__source]
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @typedef PathSourceSchema
|
|
49
|
+
* @property {string} [type]
|
|
50
|
+
* @property {string} [id]
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @typedef SeoComponent
|
|
55
|
+
* @property {SeoSchema} [seo]
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @typedef SeoSchema
|
|
23
60
|
* @property {string} [app]
|
|
24
|
-
* @property {
|
|
61
|
+
* @property {string} [_id]
|
|
62
|
+
* @property {string} [robots_txt]
|
|
63
|
+
* @property {boolean} [sitemap_enabled]
|
|
64
|
+
* @property {boolean} [cannonical_enabled]
|
|
65
|
+
* @property {CustomMetaTag[]} [custom_meta_tags]
|
|
66
|
+
* @property {Detail} [details]
|
|
25
67
|
* @property {string} [created_at]
|
|
26
|
-
* @property {
|
|
27
|
-
* @property {string} [modified_at]
|
|
28
|
-
* @property {AnnouncementPageSchema[]} [pages]
|
|
29
|
-
* @property {string[]} [platforms]
|
|
30
|
-
* @property {string} [title]
|
|
68
|
+
* @property {string} [updated_at]
|
|
31
69
|
*/
|
|
32
70
|
|
|
33
71
|
/**
|
|
34
|
-
* @typedef
|
|
35
|
-
* @property {string} [
|
|
36
|
-
* @property {string} [
|
|
72
|
+
* @typedef CustomMetaTag
|
|
73
|
+
* @property {string} [name]
|
|
74
|
+
* @property {string} [content]
|
|
75
|
+
* @property {string} [_id]
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @typedef Detail
|
|
80
|
+
* @property {string} [title]
|
|
81
|
+
* @property {string} [description]
|
|
82
|
+
* @property {string} [image_url]
|
|
37
83
|
*/
|
|
38
84
|
|
|
39
85
|
/**
|
|
@@ -43,22 +89,59 @@ const Joi = require("joi");
|
|
|
43
89
|
*/
|
|
44
90
|
|
|
45
91
|
/**
|
|
46
|
-
* @typedef
|
|
92
|
+
* @typedef EditorMeta
|
|
93
|
+
* @property {string} [foreground_color]
|
|
94
|
+
* @property {string} [background_color]
|
|
95
|
+
* @property {string} [content_type]
|
|
96
|
+
* @property {string} [content]
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @typedef AnnouncementAuthorSchema
|
|
101
|
+
* @property {string} [created_by]
|
|
102
|
+
* @property {string} [modified_by]
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @typedef AdminAnnouncementSchema
|
|
47
107
|
* @property {string} [_id]
|
|
48
|
-
* @property {string} [
|
|
108
|
+
* @property {string[]} [platforms]
|
|
109
|
+
* @property {string} [title]
|
|
110
|
+
* @property {string} [announcement]
|
|
111
|
+
* @property {AnnouncementPageSchema[]} [pages]
|
|
112
|
+
* @property {EditorMeta} [editor_meta]
|
|
113
|
+
* @property {AnnouncementAuthorSchema} [author]
|
|
49
114
|
* @property {string} [created_at]
|
|
50
|
-
* @property {
|
|
51
|
-
* @property {string} [
|
|
52
|
-
* @property {
|
|
53
|
-
* @property {string} [shipping]
|
|
54
|
-
* @property {string} [tnc]
|
|
55
|
-
* @property {string} [updated_at]
|
|
115
|
+
* @property {string} [app]
|
|
116
|
+
* @property {string} [modified_at]
|
|
117
|
+
* @property {ScheduleSchema} [_schedule]
|
|
56
118
|
*/
|
|
57
119
|
|
|
58
120
|
/**
|
|
59
|
-
* @typedef
|
|
60
|
-
* @property {string} [
|
|
61
|
-
* @property {string} [
|
|
121
|
+
* @typedef ScheduleSchema
|
|
122
|
+
* @property {string} [cron]
|
|
123
|
+
* @property {string} [start]
|
|
124
|
+
* @property {string} [end]
|
|
125
|
+
* @property {number} [duration]
|
|
126
|
+
* @property {NextSchedule[]} [next_schedule]
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @typedef NextSchedule
|
|
131
|
+
* @property {string} [start]
|
|
132
|
+
* @property {string} [end]
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @typedef BlogGetResponse
|
|
137
|
+
* @property {BlogSchema[]} [items]
|
|
138
|
+
* @property {Page} [page]
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @typedef ResourceContent
|
|
143
|
+
* @property {string} [type]
|
|
144
|
+
* @property {string} [value]
|
|
62
145
|
*/
|
|
63
146
|
|
|
64
147
|
/**
|
|
@@ -76,608 +159,546 @@ const Joi = require("joi");
|
|
|
76
159
|
*/
|
|
77
160
|
|
|
78
161
|
/**
|
|
79
|
-
* @typedef
|
|
80
|
-
* @property {
|
|
81
|
-
* @property {Page} [page]
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @typedef BlogRequest
|
|
162
|
+
* @typedef BlogSchema
|
|
163
|
+
* @property {string} [_id]
|
|
86
164
|
* @property {Object} [_custom_json]
|
|
87
|
-
* @property {CronSchedule} [_schedule]
|
|
88
165
|
* @property {string} [application]
|
|
166
|
+
* @property {boolean} [archived]
|
|
89
167
|
* @property {Author} [author]
|
|
90
168
|
* @property {ResourceContent[]} [content]
|
|
91
169
|
* @property {Asset} [feature_image]
|
|
92
170
|
* @property {boolean} [published]
|
|
93
171
|
* @property {string} [reading_time]
|
|
94
|
-
* @property {SEO} [seo]
|
|
95
172
|
* @property {string} [slug]
|
|
96
173
|
* @property {string[]} [tags]
|
|
174
|
+
* @property {SEO} [seo]
|
|
175
|
+
* @property {CronSchedule} [_schedule]
|
|
97
176
|
* @property {string} [title]
|
|
177
|
+
* @property {DateMeta} [date_meta]
|
|
98
178
|
*/
|
|
99
179
|
|
|
100
180
|
/**
|
|
101
|
-
* @typedef
|
|
102
|
-
* @property {
|
|
103
|
-
* @property {
|
|
104
|
-
* @property {CronSchedule} [_schedule]
|
|
105
|
-
* @property {string} [application]
|
|
106
|
-
* @property {boolean} [archived]
|
|
107
|
-
* @property {Author} [author]
|
|
108
|
-
* @property {ResourceContent[]} [content]
|
|
109
|
-
* @property {DateMeta} [date_meta]
|
|
110
|
-
* @property {Asset} [feature_image]
|
|
111
|
-
* @property {boolean} [published]
|
|
112
|
-
* @property {string} [reading_time]
|
|
113
|
-
* @property {SEO} [seo]
|
|
114
|
-
* @property {string} [slug]
|
|
115
|
-
* @property {string[]} [tags]
|
|
181
|
+
* @typedef SEO
|
|
182
|
+
* @property {string} [description]
|
|
183
|
+
* @property {SEOImage} [image]
|
|
116
184
|
* @property {string} [title]
|
|
117
185
|
*/
|
|
118
186
|
|
|
119
187
|
/**
|
|
120
|
-
* @typedef
|
|
121
|
-
* @property {string} [
|
|
122
|
-
* @property {boolean} [list_enabled]
|
|
123
|
-
* @property {string} [name]
|
|
124
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
125
|
-
* @property {string} [type]
|
|
188
|
+
* @typedef SEOImage
|
|
189
|
+
* @property {string} [url]
|
|
126
190
|
*/
|
|
127
191
|
|
|
128
192
|
/**
|
|
129
|
-
* @typedef
|
|
130
|
-
* @property {string} [
|
|
131
|
-
* @property {string} [
|
|
193
|
+
* @typedef DateMeta
|
|
194
|
+
* @property {string} [created_on]
|
|
195
|
+
* @property {string} [modified_on]
|
|
132
196
|
*/
|
|
133
197
|
|
|
134
198
|
/**
|
|
135
|
-
* @typedef
|
|
136
|
-
* @property {Object} [_custom_json]
|
|
137
|
-
* @property {string} [_id]
|
|
199
|
+
* @typedef BlogRequest
|
|
138
200
|
* @property {string} [application]
|
|
139
|
-
* @property {
|
|
140
|
-
* @property {
|
|
141
|
-
* @property {
|
|
142
|
-
* @property {
|
|
201
|
+
* @property {Object} [_custom_json]
|
|
202
|
+
* @property {Author} [author]
|
|
203
|
+
* @property {ResourceContent[]} [content]
|
|
204
|
+
* @property {Asset} [feature_image]
|
|
205
|
+
* @property {boolean} [published]
|
|
206
|
+
* @property {string} [reading_time]
|
|
143
207
|
* @property {string} [slug]
|
|
208
|
+
* @property {string[]} [tags]
|
|
144
209
|
* @property {string} [title]
|
|
210
|
+
* @property {SEO} [seo]
|
|
211
|
+
* @property {CronSchedule} [_schedule]
|
|
145
212
|
*/
|
|
146
213
|
|
|
147
214
|
/**
|
|
148
|
-
* @typedef
|
|
149
|
-
* @property {
|
|
150
|
-
* @property {
|
|
151
|
-
* @property {string} [application]
|
|
152
|
-
* @property {string} [question]
|
|
153
|
-
* @property {string} [slug]
|
|
215
|
+
* @typedef GetAnnouncementListSchema
|
|
216
|
+
* @property {AdminAnnouncementSchema[]} [items]
|
|
217
|
+
* @property {Page} [page]
|
|
154
218
|
*/
|
|
155
219
|
|
|
156
220
|
/**
|
|
157
|
-
* @typedef
|
|
221
|
+
* @typedef CreateAnnouncementSchema
|
|
158
222
|
* @property {string} [message]
|
|
223
|
+
* @property {AdminAnnouncementSchema} [data]
|
|
159
224
|
*/
|
|
160
225
|
|
|
161
226
|
/**
|
|
162
|
-
* @typedef
|
|
163
|
-
* @property {
|
|
164
|
-
* @property {
|
|
165
|
-
* @property {string} [
|
|
166
|
-
* @property {
|
|
227
|
+
* @typedef DataLoaderResponseSchema
|
|
228
|
+
* @property {string} [application]
|
|
229
|
+
* @property {string} [company]
|
|
230
|
+
* @property {string} [_id]
|
|
231
|
+
* @property {string} [name]
|
|
232
|
+
* @property {string} [service]
|
|
233
|
+
* @property {string} [operation_id]
|
|
234
|
+
* @property {string} [type]
|
|
235
|
+
* @property {string} [url]
|
|
236
|
+
* @property {string} [content]
|
|
237
|
+
* @property {DataLoaderSourceSchema} [__source]
|
|
167
238
|
*/
|
|
168
239
|
|
|
169
240
|
/**
|
|
170
|
-
* @typedef
|
|
171
|
-
* @property {
|
|
172
|
-
* @property {PhoneSchema} [phone]
|
|
241
|
+
* @typedef DataLoaderResetResponseSchema
|
|
242
|
+
* @property {boolean} [reset]
|
|
173
243
|
*/
|
|
174
244
|
|
|
175
245
|
/**
|
|
176
|
-
* @typedef
|
|
177
|
-
* @property {
|
|
178
|
-
* @property {
|
|
179
|
-
* @property {
|
|
180
|
-
* @property {string} [message]
|
|
181
|
-
* @property {Object} [meta]
|
|
182
|
-
* @property {string} [request_id]
|
|
183
|
-
* @property {string} [stack_trace]
|
|
184
|
-
* @property {number} [status]
|
|
246
|
+
* @typedef LocaleLanguage
|
|
247
|
+
* @property {Language} [hi]
|
|
248
|
+
* @property {Language} [ar]
|
|
249
|
+
* @property {Language} [en_us]
|
|
185
250
|
*/
|
|
186
251
|
|
|
187
252
|
/**
|
|
188
|
-
* @typedef
|
|
189
|
-
* @property {
|
|
190
|
-
* @property {string} [message]
|
|
253
|
+
* @typedef Language
|
|
254
|
+
* @property {string} [display]
|
|
191
255
|
*/
|
|
192
256
|
|
|
193
257
|
/**
|
|
194
|
-
* @typedef
|
|
195
|
-
* @property {
|
|
258
|
+
* @typedef Action
|
|
259
|
+
* @property {ActionPage} [page]
|
|
260
|
+
* @property {ActionPage} [popup]
|
|
261
|
+
* @property {string} [type]
|
|
196
262
|
*/
|
|
197
263
|
|
|
198
264
|
/**
|
|
199
|
-
* @typedef
|
|
200
|
-
* @property {
|
|
265
|
+
* @typedef ActionPage
|
|
266
|
+
* @property {Object} [params]
|
|
267
|
+
* @property {Object} [query]
|
|
268
|
+
* @property {string} [url]
|
|
269
|
+
* @property {PageType} type
|
|
201
270
|
*/
|
|
202
271
|
|
|
203
272
|
/**
|
|
204
|
-
* @typedef
|
|
205
|
-
* @property {
|
|
273
|
+
* @typedef NavigationReference
|
|
274
|
+
* @property {string[]} [acl]
|
|
275
|
+
* @property {string[]} [tags]
|
|
276
|
+
* @property {LocaleLanguage} [_locale_language]
|
|
277
|
+
* @property {string} [image]
|
|
278
|
+
* @property {string} [type]
|
|
279
|
+
* @property {Action} [action]
|
|
280
|
+
* @property {boolean} [active]
|
|
281
|
+
* @property {string} [display]
|
|
282
|
+
* @property {number} [sort_order]
|
|
283
|
+
* @property {NavigationReference[]} [sub_navigation]
|
|
206
284
|
*/
|
|
207
285
|
|
|
208
286
|
/**
|
|
209
|
-
* @typedef
|
|
210
|
-
* @property {
|
|
287
|
+
* @typedef ConfigurationSchema
|
|
288
|
+
* @property {number} [sleep_time]
|
|
289
|
+
* @property {boolean} [start_on_launch]
|
|
290
|
+
* @property {number} [duration]
|
|
291
|
+
* @property {string} [slide_direction]
|
|
211
292
|
*/
|
|
212
293
|
|
|
213
294
|
/**
|
|
214
|
-
* @typedef
|
|
215
|
-
* @property {
|
|
295
|
+
* @typedef SlideshowMedia
|
|
296
|
+
* @property {string} [type]
|
|
297
|
+
* @property {string} [url]
|
|
298
|
+
* @property {string} [bg_color]
|
|
299
|
+
* @property {number} [duration]
|
|
300
|
+
* @property {boolean} [auto_decide_duration]
|
|
301
|
+
* @property {Action} [action]
|
|
216
302
|
*/
|
|
217
303
|
|
|
218
304
|
/**
|
|
219
|
-
* @typedef
|
|
220
|
-
* @property {
|
|
305
|
+
* @typedef UpdateHandpickedSchema
|
|
306
|
+
* @property {HandpickedTagSchema} [tag]
|
|
221
307
|
*/
|
|
222
308
|
|
|
223
309
|
/**
|
|
224
|
-
* @typedef
|
|
225
|
-
* @property {string} [
|
|
310
|
+
* @typedef HandpickedTagSchema
|
|
311
|
+
* @property {string} [position]
|
|
226
312
|
* @property {Object} [attributes]
|
|
227
|
-
* @property {string} [content]
|
|
228
313
|
* @property {string} [name]
|
|
229
|
-
* @property {Object[]} [pages]
|
|
230
|
-
* @property {string} [position]
|
|
231
|
-
* @property {string} [sub_type]
|
|
232
|
-
* @property {string} [type]
|
|
233
314
|
* @property {string} [url]
|
|
315
|
+
* @property {string} [type]
|
|
316
|
+
* @property {string} [sub_type]
|
|
317
|
+
* @property {string} [content]
|
|
234
318
|
*/
|
|
235
319
|
|
|
236
320
|
/**
|
|
237
|
-
* @typedef
|
|
238
|
-
* @property {string} [
|
|
239
|
-
* @property {number} [duration]
|
|
240
|
-
* @property {string} [end]
|
|
241
|
-
* @property {string} [start]
|
|
321
|
+
* @typedef RemoveHandpickedSchema
|
|
322
|
+
* @property {string[]} [tags]
|
|
242
323
|
*/
|
|
243
324
|
|
|
244
325
|
/**
|
|
245
|
-
* @typedef
|
|
246
|
-
* @property {string} [
|
|
247
|
-
* @property {
|
|
326
|
+
* @typedef CreateTagSchema
|
|
327
|
+
* @property {string} [name]
|
|
328
|
+
* @property {string} [sub_type]
|
|
329
|
+
* @property {string} [_id]
|
|
330
|
+
* @property {string} [type]
|
|
331
|
+
* @property {string} [url]
|
|
332
|
+
* @property {string} [position]
|
|
333
|
+
* @property {Object} [attributes]
|
|
334
|
+
* @property {Object[]} [pages]
|
|
335
|
+
* @property {string} [content]
|
|
248
336
|
*/
|
|
249
337
|
|
|
250
338
|
/**
|
|
251
|
-
* @typedef
|
|
252
|
-
* @property {
|
|
253
|
-
* @property {Object[]} [value]
|
|
339
|
+
* @typedef CreateTagRequestSchema
|
|
340
|
+
* @property {CreateTagSchema[]} [tags]
|
|
254
341
|
*/
|
|
255
342
|
|
|
256
343
|
/**
|
|
257
|
-
* @typedef
|
|
258
|
-
* @property {string} [_id]
|
|
259
|
-
* @property {string} [application_id]
|
|
260
|
-
* @property {string} [company_id]
|
|
261
|
-
* @property {string} [created_at]
|
|
262
|
-
* @property {string} [created_by]
|
|
263
|
-
* @property {string} [creator]
|
|
264
|
-
* @property {string} [description]
|
|
265
|
-
* @property {boolean} [is_deleted]
|
|
266
|
-
* @property {string} [key]
|
|
267
|
-
* @property {boolean} [multi_value]
|
|
344
|
+
* @typedef DataLoaderSchema
|
|
268
345
|
* @property {string} [name]
|
|
269
|
-
* @property {string} [
|
|
270
|
-
* @property {
|
|
271
|
-
* @property {string} [resource]
|
|
346
|
+
* @property {string} [service]
|
|
347
|
+
* @property {string} [operation_id]
|
|
272
348
|
* @property {string} [type]
|
|
273
|
-
* @property {string} [
|
|
274
|
-
* @property {string} [
|
|
275
|
-
* @property {
|
|
349
|
+
* @property {string} [url]
|
|
350
|
+
* @property {string} [content]
|
|
351
|
+
* @property {DataLoaderSourceSchema} [__source]
|
|
352
|
+
* @property {string} [_id]
|
|
276
353
|
*/
|
|
277
354
|
|
|
278
355
|
/**
|
|
279
|
-
* @typedef
|
|
280
|
-
* @property {string} [description]
|
|
281
|
-
* @property {string} [key]
|
|
282
|
-
* @property {boolean} [multi_value]
|
|
283
|
-
* @property {string} [name]
|
|
284
|
-
* @property {string} [namespace]
|
|
285
|
-
* @property {string} [resource]
|
|
356
|
+
* @typedef DataLoaderSourceSchema
|
|
286
357
|
* @property {string} [type]
|
|
287
|
-
* @property {
|
|
358
|
+
* @property {string} [id]
|
|
288
359
|
*/
|
|
289
360
|
|
|
290
361
|
/**
|
|
291
|
-
* @typedef
|
|
292
|
-
* @property {
|
|
293
|
-
* @property {Page} [page]
|
|
362
|
+
* @typedef DataLoadersSchema
|
|
363
|
+
* @property {DataLoaderSchema[]} [items]
|
|
294
364
|
*/
|
|
295
365
|
|
|
296
366
|
/**
|
|
297
|
-
* @typedef
|
|
298
|
-
* @property {
|
|
367
|
+
* @typedef TagDeleteSuccessResponse
|
|
368
|
+
* @property {boolean} [success]
|
|
299
369
|
*/
|
|
300
370
|
|
|
301
371
|
/**
|
|
302
|
-
* @typedef
|
|
303
|
-
* @property {string} [
|
|
304
|
-
* @property {
|
|
305
|
-
* @property {string} [
|
|
306
|
-
* @property {string} [
|
|
307
|
-
* @property {string} [
|
|
308
|
-
* @property {string} [
|
|
309
|
-
* @property {
|
|
310
|
-
* @property {Object
|
|
311
|
-
* @property {boolean} [is_deleted]
|
|
312
|
-
* @property {string} [key]
|
|
313
|
-
* @property {boolean} [multi_value]
|
|
314
|
-
* @property {string} [namespace]
|
|
315
|
-
* @property {string} [resource]
|
|
316
|
-
* @property {string} [resource_id]
|
|
317
|
-
* @property {string} [type]
|
|
318
|
-
* @property {string} [updated_at]
|
|
319
|
-
* @property {CustomFieldValue[]} [value]
|
|
372
|
+
* @typedef ContentAPIError
|
|
373
|
+
* @property {string} [message]
|
|
374
|
+
* @property {number} [status]
|
|
375
|
+
* @property {string} [code]
|
|
376
|
+
* @property {string} [exception]
|
|
377
|
+
* @property {string} [info]
|
|
378
|
+
* @property {string} [request_id]
|
|
379
|
+
* @property {string} [stack_trace]
|
|
380
|
+
* @property {Object} [meta]
|
|
320
381
|
*/
|
|
321
382
|
|
|
322
383
|
/**
|
|
323
|
-
* @typedef
|
|
324
|
-
* @property {
|
|
384
|
+
* @typedef CommonError
|
|
385
|
+
* @property {string} [message]
|
|
325
386
|
*/
|
|
326
387
|
|
|
327
388
|
/**
|
|
328
|
-
* @typedef
|
|
329
|
-
* @property {
|
|
330
|
-
* @property {
|
|
389
|
+
* @typedef CategorySchema
|
|
390
|
+
* @property {number} [index]
|
|
391
|
+
* @property {string} [title]
|
|
392
|
+
* @property {string} [description]
|
|
393
|
+
* @property {string[]} [children]
|
|
394
|
+
* @property {string} [_id]
|
|
395
|
+
* @property {string} [slug]
|
|
396
|
+
* @property {string} [application]
|
|
397
|
+
* @property {string} [icon_url]
|
|
398
|
+
* @property {Object} [_custom_json]
|
|
331
399
|
*/
|
|
332
400
|
|
|
333
401
|
/**
|
|
334
|
-
* @typedef
|
|
335
|
-
* @property {
|
|
336
|
-
* @property {
|
|
337
|
-
* @property {
|
|
338
|
-
* @property {
|
|
339
|
-
* @property {
|
|
340
|
-
* @property {FloatType} [float_type]
|
|
341
|
-
* @property {Integer} [integer]
|
|
342
|
-
* @property {Json} [json]
|
|
343
|
-
* @property {Metaobject} [metaobject]
|
|
344
|
-
* @property {Product} [product]
|
|
345
|
-
* @property {StringMultiLine} [string_multi_line]
|
|
346
|
-
* @property {StringSingleLine} [string_single_line]
|
|
347
|
-
* @property {Url} [url]
|
|
402
|
+
* @typedef ChildrenSchema
|
|
403
|
+
* @property {string} [question]
|
|
404
|
+
* @property {string} [answer]
|
|
405
|
+
* @property {string} [slug]
|
|
406
|
+
* @property {string} [application]
|
|
407
|
+
* @property {string} [_id]
|
|
348
408
|
*/
|
|
349
409
|
|
|
350
410
|
/**
|
|
351
|
-
* @typedef
|
|
352
|
-
* @property {
|
|
411
|
+
* @typedef CategoryRequestSchema
|
|
412
|
+
* @property {string} [slug]
|
|
413
|
+
* @property {string} [title]
|
|
353
414
|
*/
|
|
354
415
|
|
|
355
416
|
/**
|
|
356
|
-
* @typedef
|
|
417
|
+
* @typedef FAQCategorySchema
|
|
418
|
+
* @property {number} [index]
|
|
419
|
+
* @property {string} [title]
|
|
420
|
+
* @property {string} [description]
|
|
421
|
+
* @property {ChildrenSchema[]} [children]
|
|
357
422
|
* @property {string} [_id]
|
|
358
|
-
* @property {string} [
|
|
359
|
-
* @property {string} [
|
|
423
|
+
* @property {string} [slug]
|
|
424
|
+
* @property {string} [application]
|
|
425
|
+
* @property {string} [icon_url]
|
|
426
|
+
* @property {Object} [_custom_json]
|
|
360
427
|
*/
|
|
361
428
|
|
|
362
429
|
/**
|
|
363
|
-
* @typedef
|
|
364
|
-
* @property {
|
|
365
|
-
* @property {
|
|
430
|
+
* @typedef FaqSchema
|
|
431
|
+
* @property {string} [slug]
|
|
432
|
+
* @property {string} [application]
|
|
433
|
+
* @property {string} [_id]
|
|
434
|
+
* @property {string} [question]
|
|
435
|
+
* @property {string} [answer]
|
|
436
|
+
* @property {string[]} [tags]
|
|
366
437
|
*/
|
|
367
438
|
|
|
368
439
|
/**
|
|
369
|
-
* @typedef
|
|
370
|
-
* @property {string} [
|
|
371
|
-
* @property {string} [
|
|
440
|
+
* @typedef FAQ
|
|
441
|
+
* @property {string} [slug]
|
|
442
|
+
* @property {string} [question]
|
|
443
|
+
* @property {string} [answer]
|
|
372
444
|
*/
|
|
373
445
|
|
|
374
446
|
/**
|
|
375
|
-
* @typedef
|
|
376
|
-
* @property {
|
|
377
|
-
* @property {string} [url]
|
|
447
|
+
* @typedef CreateFaqResponseSchema
|
|
448
|
+
* @property {FaqSchema} [faq]
|
|
378
449
|
*/
|
|
379
450
|
|
|
380
451
|
/**
|
|
381
|
-
* @typedef
|
|
382
|
-
* @property {
|
|
383
|
-
* @property {CustomObjectListItemDefinationSchema} [definition]
|
|
384
|
-
* @property {string} [display_name]
|
|
385
|
-
* @property {CustomObjectFieldSchema[]} [fields]
|
|
386
|
-
* @property {Object[]} [references]
|
|
387
|
-
* @property {string} [status]
|
|
452
|
+
* @typedef CreateFaqSchema
|
|
453
|
+
* @property {FAQ} [faq]
|
|
388
454
|
*/
|
|
389
455
|
|
|
390
456
|
/**
|
|
391
|
-
* @typedef
|
|
392
|
-
* @property {
|
|
393
|
-
* @property {string} [company_id]
|
|
394
|
-
* @property {string} [created_at]
|
|
395
|
-
* @property {string} [created_by]
|
|
396
|
-
* @property {string} [creator]
|
|
397
|
-
* @property {string} [description]
|
|
398
|
-
* @property {boolean} [is_deleted]
|
|
399
|
-
* @property {string} [key]
|
|
400
|
-
* @property {string} [metaobject_definition_id]
|
|
401
|
-
* @property {boolean} [multi_value]
|
|
402
|
-
* @property {string} [name]
|
|
403
|
-
* @property {string} [namespace]
|
|
404
|
-
* @property {boolean} [required]
|
|
405
|
-
* @property {string} [resource]
|
|
406
|
-
* @property {string} [type]
|
|
407
|
-
* @property {string} [updated_at]
|
|
408
|
-
* @property {FieldValidations[]} [validations]
|
|
457
|
+
* @typedef GetFaqSchema
|
|
458
|
+
* @property {FaqSchema[]} [faqs]
|
|
409
459
|
*/
|
|
410
460
|
|
|
411
461
|
/**
|
|
412
|
-
* @typedef
|
|
413
|
-
* @property {
|
|
414
|
-
* @property {string} [description]
|
|
415
|
-
* @property {string} [id]
|
|
416
|
-
* @property {string} [key]
|
|
417
|
-
* @property {boolean} [multi_value]
|
|
418
|
-
* @property {string} [name]
|
|
419
|
-
* @property {boolean} [required]
|
|
420
|
-
* @property {string} [type]
|
|
421
|
-
* @property {FieldValidations[]} [validations]
|
|
462
|
+
* @typedef UpdateFaqCategoryRequestSchema
|
|
463
|
+
* @property {CategorySchema} [category]
|
|
422
464
|
*/
|
|
423
465
|
|
|
424
466
|
/**
|
|
425
|
-
* @typedef
|
|
426
|
-
* @property {
|
|
427
|
-
* @property {boolean} [success]
|
|
467
|
+
* @typedef CreateFaqCategoryRequestSchema
|
|
468
|
+
* @property {CategoryRequestSchema} [category]
|
|
428
469
|
*/
|
|
429
470
|
|
|
430
471
|
/**
|
|
431
|
-
* @typedef
|
|
432
|
-
* @property {
|
|
433
|
-
* @property {string} [display_name_key]
|
|
434
|
-
* @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
|
|
435
|
-
* @property {string} [name]
|
|
436
|
-
* @property {string} [type]
|
|
472
|
+
* @typedef CreateFaqCategorySchema
|
|
473
|
+
* @property {CategorySchema} [category]
|
|
437
474
|
*/
|
|
438
475
|
|
|
439
476
|
/**
|
|
440
|
-
* @typedef
|
|
441
|
-
* @property {
|
|
442
|
-
* @property {string} [created_by]
|
|
443
|
-
* @property {string} [creator]
|
|
444
|
-
* @property {string} [description]
|
|
445
|
-
* @property {string} [display_name_key]
|
|
446
|
-
* @property {CustomObjectCustomFieldDefinitionResSchema[]} [field_definitions]
|
|
447
|
-
* @property {string} [name]
|
|
448
|
-
* @property {string} [type]
|
|
449
|
-
* @property {string} [updated_by]
|
|
477
|
+
* @typedef GetFaqCategoriesSchema
|
|
478
|
+
* @property {CategorySchema[]} [categories]
|
|
450
479
|
*/
|
|
451
480
|
|
|
452
481
|
/**
|
|
453
|
-
* @typedef
|
|
454
|
-
* @property {
|
|
455
|
-
* @property {Page} [page]
|
|
482
|
+
* @typedef GetFaqCategoryBySlugSchema
|
|
483
|
+
* @property {FAQCategorySchema} [category]
|
|
456
484
|
*/
|
|
457
485
|
|
|
458
486
|
/**
|
|
459
|
-
* @typedef
|
|
460
|
-
* @property {
|
|
461
|
-
* @property {string} [
|
|
462
|
-
* @property {
|
|
463
|
-
* @property {
|
|
464
|
-
* @property {
|
|
487
|
+
* @typedef Page
|
|
488
|
+
* @property {number} [item_total]
|
|
489
|
+
* @property {string} [next_id]
|
|
490
|
+
* @property {boolean} [has_previous]
|
|
491
|
+
* @property {boolean} [has_next]
|
|
492
|
+
* @property {number} [current]
|
|
493
|
+
* @property {string} type
|
|
494
|
+
* @property {number} [size]
|
|
465
495
|
*/
|
|
466
496
|
|
|
467
497
|
/**
|
|
468
|
-
* @typedef
|
|
469
|
-
* @property {
|
|
470
|
-
* @property {
|
|
471
|
-
* @property {number} [fields_count]
|
|
472
|
-
* @property {string} [name]
|
|
473
|
-
* @property {string} [type]
|
|
474
|
-
* @property {string} [updated_at]
|
|
498
|
+
* @typedef LandingPageGetResponse
|
|
499
|
+
* @property {LandingPageSchema[]} [items]
|
|
500
|
+
* @property {Page} [page]
|
|
475
501
|
*/
|
|
476
502
|
|
|
477
503
|
/**
|
|
478
|
-
* @typedef
|
|
479
|
-
* @property {
|
|
480
|
-
* @property {
|
|
504
|
+
* @typedef LandingPageSchema
|
|
505
|
+
* @property {string} [slug]
|
|
506
|
+
* @property {Action} [action]
|
|
507
|
+
* @property {string[]} [platform]
|
|
508
|
+
* @property {CreatedBySchema} [created_by]
|
|
509
|
+
* @property {DateMeta} [date_meta]
|
|
510
|
+
* @property {string} [_id]
|
|
511
|
+
* @property {string} [application]
|
|
512
|
+
* @property {boolean} [archived]
|
|
513
|
+
* @property {Object} [_custom_json]
|
|
481
514
|
*/
|
|
482
515
|
|
|
483
516
|
/**
|
|
484
|
-
* @typedef
|
|
485
|
-
* @property {
|
|
486
|
-
* @property {Object[]} [value]
|
|
517
|
+
* @typedef DefaultNavigationResponse
|
|
518
|
+
* @property {NavigationSchema[]} [items]
|
|
487
519
|
*/
|
|
488
520
|
|
|
489
521
|
/**
|
|
490
|
-
* @typedef
|
|
491
|
-
* @property {
|
|
492
|
-
* @property {
|
|
493
|
-
* @property {string} [key]
|
|
494
|
-
* @property {string} [type]
|
|
495
|
-
* @property {Object[]} [value]
|
|
522
|
+
* @typedef NavigationGetResponse
|
|
523
|
+
* @property {NavigationSchema[]} [items]
|
|
524
|
+
* @property {Page} [page]
|
|
496
525
|
*/
|
|
497
526
|
|
|
498
527
|
/**
|
|
499
|
-
* @typedef
|
|
500
|
-
* @property {string} [
|
|
501
|
-
* @property {string} [
|
|
502
|
-
* @property {string} [company_id]
|
|
503
|
-
* @property {string} [created_at]
|
|
504
|
-
* @property {string} [created_by]
|
|
505
|
-
* @property {string} [creator]
|
|
506
|
-
* @property {string} [entity]
|
|
507
|
-
* @property {number} [error_count]
|
|
508
|
-
* @property {string[]} [error_jobs]
|
|
509
|
-
* @property {string} [error_url]
|
|
510
|
-
* @property {string[]} [errors_occured]
|
|
511
|
-
* @property {number} [finished_count]
|
|
512
|
-
* @property {string[]} [finished_jobs]
|
|
513
|
-
* @property {string[]} [jobs]
|
|
514
|
-
* @property {CustomObjectMetaSchema} [meta]
|
|
515
|
-
* @property {string} [status]
|
|
516
|
-
* @property {number} [success_count]
|
|
517
|
-
* @property {number} [total_jobs]
|
|
518
|
-
* @property {string} [updated_at]
|
|
519
|
-
* @property {string} [url]
|
|
528
|
+
* @typedef Orientation
|
|
529
|
+
* @property {string[]} [portrait]
|
|
530
|
+
* @property {string[]} [landscape]
|
|
520
531
|
*/
|
|
521
532
|
|
|
522
533
|
/**
|
|
523
|
-
* @typedef
|
|
534
|
+
* @typedef NavigationSchema
|
|
524
535
|
* @property {string} [_id]
|
|
536
|
+
* @property {string} [application]
|
|
537
|
+
* @property {boolean} [archived]
|
|
525
538
|
* @property {string} [name]
|
|
526
|
-
* @property {string} [
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
* @
|
|
531
|
-
* @property {
|
|
532
|
-
* @property {
|
|
533
|
-
* @property {string} [definition_id]
|
|
534
|
-
* @property {string} [display_name]
|
|
535
|
-
* @property {number} [references]
|
|
536
|
-
* @property {string} [status]
|
|
537
|
-
* @property {string} [updated_at]
|
|
539
|
+
* @property {string} [slug]
|
|
540
|
+
* @property {string[]} [platform]
|
|
541
|
+
* @property {CreatedBySchema} [created_by]
|
|
542
|
+
* @property {DateMeta} [date_meta]
|
|
543
|
+
* @property {Orientation} [orientation]
|
|
544
|
+
* @property {number} [version]
|
|
545
|
+
* @property {NavigationReference[]} [navigation]
|
|
538
546
|
*/
|
|
539
547
|
|
|
540
548
|
/**
|
|
541
|
-
* @typedef
|
|
542
|
-
* @property {string} [
|
|
543
|
-
* @property {
|
|
544
|
-
* @property {
|
|
545
|
-
* @property {
|
|
549
|
+
* @typedef NavigationRequest
|
|
550
|
+
* @property {string} [name]
|
|
551
|
+
* @property {string} [slug]
|
|
552
|
+
* @property {string[]} [platform]
|
|
553
|
+
* @property {Orientation} [orientation]
|
|
554
|
+
* @property {NavigationReference[]} [navigation]
|
|
546
555
|
*/
|
|
547
556
|
|
|
548
557
|
/**
|
|
549
|
-
* @typedef
|
|
550
|
-
* @property {
|
|
551
|
-
* @property {
|
|
552
|
-
* @property {string} [status]
|
|
558
|
+
* @typedef PageGetResponse
|
|
559
|
+
* @property {PageSchema[]} [items]
|
|
560
|
+
* @property {Page} [page]
|
|
553
561
|
*/
|
|
554
562
|
|
|
555
563
|
/**
|
|
556
|
-
* @typedef
|
|
557
|
-
* @property {
|
|
558
|
-
* @property {string} [application_id]
|
|
559
|
-
* @property {string} [company_id]
|
|
560
|
-
* @property {string} [created_by]
|
|
561
|
-
* @property {string} [creator]
|
|
562
|
-
* @property {string} [definition_id]
|
|
563
|
-
* @property {string} [display_name]
|
|
564
|
-
* @property {CustomFieldSchema[]} [fields]
|
|
565
|
-
* @property {string} [status]
|
|
566
|
-
* @property {string} [type]
|
|
567
|
-
* @property {string} [updated_by]
|
|
564
|
+
* @typedef PageSpec
|
|
565
|
+
* @property {PageSpecItem[]} [specifications]
|
|
568
566
|
*/
|
|
569
567
|
|
|
570
568
|
/**
|
|
571
|
-
* @typedef
|
|
572
|
-
* @property {
|
|
573
|
-
* @property {
|
|
569
|
+
* @typedef PageSpecParam
|
|
570
|
+
* @property {string} [key]
|
|
571
|
+
* @property {boolean} [required]
|
|
574
572
|
*/
|
|
575
573
|
|
|
576
574
|
/**
|
|
577
|
-
* @typedef
|
|
578
|
-
* @property {
|
|
575
|
+
* @typedef PageSpecItem
|
|
576
|
+
* @property {string} [page_type]
|
|
577
|
+
* @property {string} [display_name]
|
|
578
|
+
* @property {PageSpecParam[]} [params]
|
|
579
|
+
* @property {PageSpecParam[]} [query]
|
|
579
580
|
*/
|
|
580
581
|
|
|
581
582
|
/**
|
|
582
|
-
* @typedef
|
|
583
|
-
* @property {DataLoaderSourceSchema} [__source]
|
|
583
|
+
* @typedef PageSchema
|
|
584
584
|
* @property {string} [_id]
|
|
585
585
|
* @property {string} [application]
|
|
586
|
-
* @property {string} [
|
|
587
|
-
*
|
|
588
|
-
* @property {
|
|
589
|
-
* @property {string} [
|
|
590
|
-
* @property {
|
|
591
|
-
* @property {
|
|
592
|
-
* @property {string} [
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
* @
|
|
597
|
-
* @property {
|
|
598
|
-
* @property {string} [
|
|
599
|
-
* @property {
|
|
600
|
-
* @property {string} [
|
|
601
|
-
* @property {string} [
|
|
602
|
-
* @property {string} [
|
|
586
|
+
* @property {string[]} [component_ids] - Components can be used to store
|
|
587
|
+
* multiple components
|
|
588
|
+
* @property {Object[]} [content]
|
|
589
|
+
* @property {string} [content_path]
|
|
590
|
+
* @property {CreatedBySchema} [created_by]
|
|
591
|
+
* @property {DateMeta} [date_meta]
|
|
592
|
+
* @property {string} [description]
|
|
593
|
+
* @property {Asset} [feature_image]
|
|
594
|
+
* @property {Object[]} [page_meta]
|
|
595
|
+
* @property {ScheduleSchema} [_schedule]
|
|
596
|
+
* @property {Object} [_custom_json]
|
|
597
|
+
* @property {string} [orientation]
|
|
598
|
+
* @property {string} [platform]
|
|
599
|
+
* @property {boolean} [published]
|
|
600
|
+
* @property {string} [slug]
|
|
601
|
+
* @property {string[]} [tags]
|
|
602
|
+
* @property {string} [title]
|
|
603
603
|
* @property {string} [type]
|
|
604
|
-
* @property {
|
|
604
|
+
* @property {SEO} [seo]
|
|
605
|
+
* @property {Object} [visibility]
|
|
606
|
+
* @property {boolean} [archived]
|
|
605
607
|
*/
|
|
606
608
|
|
|
607
609
|
/**
|
|
608
|
-
* @typedef
|
|
610
|
+
* @typedef CreatedBySchema
|
|
609
611
|
* @property {string} [id]
|
|
610
|
-
* @property {string} [type]
|
|
611
612
|
*/
|
|
612
613
|
|
|
613
614
|
/**
|
|
614
|
-
* @typedef
|
|
615
|
-
* @property {
|
|
615
|
+
* @typedef PageRequest
|
|
616
|
+
* @property {CronSchedule} [_schedule]
|
|
617
|
+
* @property {string} [application]
|
|
618
|
+
* @property {Author} [author]
|
|
619
|
+
* @property {Object} [_custom_json]
|
|
620
|
+
* @property {string} [orientation]
|
|
621
|
+
* @property {Object[]} [content]
|
|
622
|
+
* @property {Asset} [feature_image]
|
|
623
|
+
* @property {boolean} [published]
|
|
624
|
+
* @property {string} [reading_time]
|
|
625
|
+
* @property {string} [slug]
|
|
626
|
+
* @property {string[]} [tags]
|
|
627
|
+
* @property {SEO} [seo]
|
|
628
|
+
* @property {string} [title]
|
|
616
629
|
*/
|
|
617
630
|
|
|
618
631
|
/**
|
|
619
|
-
* @typedef
|
|
620
|
-
* @property {string} [
|
|
621
|
-
* @property {
|
|
622
|
-
* @property {string} [
|
|
623
|
-
* @property {
|
|
624
|
-
* @property {string} [type]
|
|
632
|
+
* @typedef CronSchedule
|
|
633
|
+
* @property {string} [cron]
|
|
634
|
+
* @property {string} [start]
|
|
635
|
+
* @property {string} [end]
|
|
636
|
+
* @property {number} [duration]
|
|
625
637
|
*/
|
|
626
638
|
|
|
627
639
|
/**
|
|
628
|
-
* @typedef
|
|
629
|
-
* @property {
|
|
630
|
-
* @property {string} [modified_on]
|
|
640
|
+
* @typedef PagePublishRequest
|
|
641
|
+
* @property {boolean} [publish]
|
|
631
642
|
*/
|
|
632
643
|
|
|
633
644
|
/**
|
|
634
|
-
* @typedef
|
|
635
|
-
* @property {
|
|
636
|
-
* @property {
|
|
637
|
-
* @property {string} [
|
|
638
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
639
|
-
* @property {string} [type]
|
|
645
|
+
* @typedef PageMetaSchema
|
|
646
|
+
* @property {NavigationSchema[]} [system_pages]
|
|
647
|
+
* @property {PageSchema[]} [custom_pages]
|
|
648
|
+
* @property {string} [application_id]
|
|
640
649
|
*/
|
|
641
650
|
|
|
642
651
|
/**
|
|
643
|
-
* @typedef
|
|
644
|
-
* @property {
|
|
652
|
+
* @typedef SlideshowGetResponse
|
|
653
|
+
* @property {SlideshowSchema[]} [items]
|
|
654
|
+
* @property {Page} [page]
|
|
645
655
|
*/
|
|
646
656
|
|
|
647
657
|
/**
|
|
648
|
-
* @typedef
|
|
649
|
-
* @property {
|
|
658
|
+
* @typedef SlideshowSchema
|
|
659
|
+
* @property {string} [_id]
|
|
660
|
+
* @property {string} [slug]
|
|
661
|
+
* @property {DateMeta} [date_meta]
|
|
662
|
+
* @property {string} [application]
|
|
663
|
+
* @property {string} [platform]
|
|
664
|
+
* @property {ConfigurationSchema} [configuration]
|
|
665
|
+
* @property {SlideshowMedia[]} [media]
|
|
666
|
+
* @property {boolean} [active]
|
|
667
|
+
* @property {boolean} [archived]
|
|
668
|
+
* @property {Object} [_custom_json]
|
|
650
669
|
*/
|
|
651
670
|
|
|
652
671
|
/**
|
|
653
|
-
* @typedef
|
|
654
|
-
* @property {string} [
|
|
655
|
-
* @property {string} [
|
|
656
|
-
* @property {
|
|
672
|
+
* @typedef SlideshowRequest
|
|
673
|
+
* @property {string} [slug]
|
|
674
|
+
* @property {string} [platform]
|
|
675
|
+
* @property {ConfigurationSchema} [configuration]
|
|
676
|
+
* @property {SlideshowMedia} [media]
|
|
677
|
+
* @property {boolean} [active]
|
|
657
678
|
*/
|
|
658
679
|
|
|
659
680
|
/**
|
|
660
|
-
* @typedef
|
|
661
|
-
* @property {
|
|
662
|
-
* @property {string} [
|
|
663
|
-
* @property {string} [
|
|
681
|
+
* @typedef Support
|
|
682
|
+
* @property {boolean} [created]
|
|
683
|
+
* @property {string} [_id]
|
|
684
|
+
* @property {string} [config_type]
|
|
685
|
+
* @property {string} [application]
|
|
686
|
+
* @property {string} [created_at]
|
|
687
|
+
* @property {string} [updated_at]
|
|
688
|
+
* @property {ContactSchema} [contact]
|
|
664
689
|
*/
|
|
665
690
|
|
|
666
691
|
/**
|
|
667
|
-
* @typedef
|
|
668
|
-
* @property {string} [
|
|
669
|
-
* @property {
|
|
670
|
-
* @property {string} [
|
|
671
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
672
|
-
* @property {string} [type]
|
|
692
|
+
* @typedef PhoneProperties
|
|
693
|
+
* @property {string} [key]
|
|
694
|
+
* @property {string} [code]
|
|
695
|
+
* @property {string} [number]
|
|
673
696
|
*/
|
|
674
697
|
|
|
675
698
|
/**
|
|
676
|
-
* @typedef
|
|
677
|
-
* @property {
|
|
678
|
-
* @property {
|
|
679
|
-
* @property {string} [content_type]
|
|
680
|
-
* @property {string} [foreground_color]
|
|
699
|
+
* @typedef PhoneSchema
|
|
700
|
+
* @property {boolean} [active]
|
|
701
|
+
* @property {PhoneProperties[]} [phone]
|
|
681
702
|
*/
|
|
682
703
|
|
|
683
704
|
/**
|
|
@@ -693,1533 +714,196 @@ const Joi = require("joi");
|
|
|
693
714
|
*/
|
|
694
715
|
|
|
695
716
|
/**
|
|
696
|
-
* @typedef
|
|
697
|
-
* @property {
|
|
698
|
-
* @property {
|
|
699
|
-
* @property {string} [slug]
|
|
700
|
-
*/
|
|
701
|
-
|
|
702
|
-
/**
|
|
703
|
-
* @typedef FAQCategorySchema
|
|
704
|
-
* @property {Object} [_custom_json]
|
|
705
|
-
* @property {string} [_id]
|
|
706
|
-
* @property {string} [application]
|
|
707
|
-
* @property {ChildrenSchema[]} [children]
|
|
708
|
-
* @property {string} [description]
|
|
709
|
-
* @property {string} [icon_url]
|
|
710
|
-
* @property {number} [index]
|
|
711
|
-
* @property {string} [slug]
|
|
712
|
-
* @property {string} [title]
|
|
717
|
+
* @typedef ContactSchema
|
|
718
|
+
* @property {PhoneSchema} [phone]
|
|
719
|
+
* @property {EmailSchema} [email]
|
|
713
720
|
*/
|
|
714
721
|
|
|
715
722
|
/**
|
|
716
|
-
* @typedef
|
|
717
|
-
* @property {string} [_id]
|
|
718
|
-
* @property {string} [answer]
|
|
723
|
+
* @typedef TagsSchema
|
|
719
724
|
* @property {string} [application]
|
|
720
|
-
* @property {string} [question]
|
|
721
|
-
* @property {string} [slug]
|
|
722
|
-
* @property {string[]} [tags]
|
|
723
|
-
*/
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
* @typedef FieldDefinitionSchema
|
|
727
725
|
* @property {string} [_id]
|
|
728
|
-
* @property {
|
|
729
|
-
* @property {string} [created_at]
|
|
730
|
-
* @property {string} [created_by]
|
|
731
|
-
* @property {string} [creator]
|
|
732
|
-
* @property {string} [description]
|
|
733
|
-
* @property {number} [invalid_fields_count]
|
|
734
|
-
* @property {boolean} [is_deleted]
|
|
735
|
-
* @property {string} [key]
|
|
736
|
-
* @property {boolean} [multi_value]
|
|
737
|
-
* @property {string} [name]
|
|
738
|
-
* @property {string} [namespace]
|
|
739
|
-
* @property {boolean} [required]
|
|
740
|
-
* @property {string} [resource]
|
|
741
|
-
* @property {string} [type]
|
|
742
|
-
* @property {string} [type_name]
|
|
743
|
-
* @property {string} [updated_at]
|
|
744
|
-
* @property {string} [updated_by]
|
|
745
|
-
* @property {FieldValidations[]} [validations]
|
|
746
|
-
*/
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* @typedef FieldValidations
|
|
750
|
-
* @property {string} [name]
|
|
751
|
-
* @property {string} [type]
|
|
752
|
-
* @property {Object} [value]
|
|
753
|
-
*/
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* @typedef File
|
|
757
|
-
* @property {string} [category]
|
|
758
|
-
* @property {boolean} [list_enabled]
|
|
759
|
-
* @property {string} [name]
|
|
760
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
761
|
-
* @property {string} [type]
|
|
726
|
+
* @property {TagSchema[]} [tags]
|
|
762
727
|
*/
|
|
763
728
|
|
|
764
729
|
/**
|
|
765
|
-
* @typedef
|
|
766
|
-
* @property {string} [category]
|
|
767
|
-
* @property {boolean} [list_enabled]
|
|
730
|
+
* @typedef TagSchema
|
|
768
731
|
* @property {string} [name]
|
|
769
|
-
* @property {
|
|
732
|
+
* @property {string} [url]
|
|
770
733
|
* @property {string} [type]
|
|
734
|
+
* @property {string} [sub_type]
|
|
735
|
+
* @property {string} [_id]
|
|
736
|
+
* @property {string} [position]
|
|
737
|
+
* @property {Object} [attributes]
|
|
738
|
+
* @property {string} [content]
|
|
739
|
+
* @property {Object[]} [pages]
|
|
740
|
+
* @property {TagSourceSchema} [__source]
|
|
771
741
|
*/
|
|
772
742
|
|
|
773
743
|
/**
|
|
774
|
-
* @typedef
|
|
775
|
-
* @property {string} [description]
|
|
776
|
-
* @property {string} [title]
|
|
777
|
-
*/
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* @typedef GenerateSEOContent
|
|
781
|
-
* @property {string} [existing_text]
|
|
782
|
-
* @property {string[]} [keywords]
|
|
783
|
-
* @property {string} [text]
|
|
744
|
+
* @typedef TagSourceSchema
|
|
784
745
|
* @property {string} [type]
|
|
746
|
+
* @property {string} [id]
|
|
785
747
|
*/
|
|
786
748
|
|
|
787
|
-
/**
|
|
788
|
-
* @typedef GetAnnouncementListSchema
|
|
789
|
-
* @property {AdminAnnouncementSchema[]} [items]
|
|
790
|
-
* @property {Page} [page]
|
|
791
|
-
*/
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* @typedef GetFaqCategoriesSchema
|
|
795
|
-
* @property {CategorySchema[]} [categories]
|
|
796
|
-
*/
|
|
749
|
+
/** @typedef {"title" | "description"} GenerationEntityType */
|
|
797
750
|
|
|
798
751
|
/**
|
|
799
|
-
* @typedef
|
|
800
|
-
*
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
*
|
|
805
|
-
*
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
*
|
|
810
|
-
*
|
|
811
|
-
*
|
|
812
|
-
*
|
|
813
|
-
*
|
|
814
|
-
*
|
|
815
|
-
*
|
|
816
|
-
*
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
*
|
|
821
|
-
*
|
|
822
|
-
*
|
|
823
|
-
*
|
|
824
|
-
*
|
|
825
|
-
*
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
*
|
|
830
|
-
*
|
|
831
|
-
*
|
|
832
|
-
*
|
|
833
|
-
*
|
|
834
|
-
*
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
*
|
|
839
|
-
*
|
|
840
|
-
*
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
*
|
|
845
|
-
* @property {Object} [_custom_json]
|
|
846
|
-
* @property {string} [_id]
|
|
847
|
-
* @property {Action} [action]
|
|
848
|
-
* @property {string} [application]
|
|
849
|
-
* @property {boolean} [archived]
|
|
850
|
-
* @property {CreatedBySchema} [created_by]
|
|
851
|
-
* @property {DateMeta} [date_meta]
|
|
852
|
-
* @property {string[]} [platform]
|
|
853
|
-
* @property {string} [slug]
|
|
854
|
-
*/
|
|
855
|
-
|
|
856
|
-
/**
|
|
857
|
-
* @typedef Language
|
|
858
|
-
* @property {string} [display]
|
|
859
|
-
*/
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* @typedef LocaleLanguage
|
|
863
|
-
* @property {Language} [ar]
|
|
864
|
-
* @property {Language} [en_us]
|
|
865
|
-
* @property {Language} [hi]
|
|
866
|
-
*/
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* @typedef Metaobject
|
|
870
|
-
* @property {string} [category]
|
|
871
|
-
* @property {boolean} [list_enabled]
|
|
872
|
-
* @property {string} [name]
|
|
873
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
874
|
-
* @property {string} [type]
|
|
875
|
-
*/
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* @typedef NavigationGetResponse
|
|
879
|
-
* @property {NavigationSchema[]} [items]
|
|
880
|
-
* @property {Page} [page]
|
|
881
|
-
*/
|
|
882
|
-
|
|
883
|
-
/**
|
|
884
|
-
* @typedef NavigationReference
|
|
885
|
-
* @property {LocaleLanguage} [_locale_language]
|
|
886
|
-
* @property {string[]} [acl]
|
|
887
|
-
* @property {Action} [action]
|
|
888
|
-
* @property {boolean} [active]
|
|
889
|
-
* @property {string} [display]
|
|
890
|
-
* @property {string} [image]
|
|
891
|
-
* @property {number} [sort_order]
|
|
892
|
-
* @property {NavigationReference[]} [sub_navigation]
|
|
893
|
-
* @property {string[]} [tags]
|
|
894
|
-
* @property {string} [type]
|
|
895
|
-
*/
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* @typedef NavigationRequest
|
|
899
|
-
* @property {string} [name]
|
|
900
|
-
* @property {NavigationReference[]} [navigation]
|
|
901
|
-
* @property {Orientation} [orientation]
|
|
902
|
-
* @property {string[]} [platform]
|
|
903
|
-
* @property {string} [slug]
|
|
904
|
-
*/
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* @typedef NavigationSchema
|
|
908
|
-
* @property {string} [_id]
|
|
909
|
-
* @property {string} [application]
|
|
910
|
-
* @property {boolean} [archived]
|
|
911
|
-
* @property {CreatedBySchema} [created_by]
|
|
912
|
-
* @property {DateMeta} [date_meta]
|
|
913
|
-
* @property {string} [name]
|
|
914
|
-
* @property {NavigationReference[]} [navigation]
|
|
915
|
-
* @property {Orientation} [orientation]
|
|
916
|
-
* @property {string[]} [platform]
|
|
917
|
-
* @property {string} [slug]
|
|
918
|
-
* @property {number} [version]
|
|
919
|
-
*/
|
|
920
|
-
|
|
921
|
-
/**
|
|
922
|
-
* @typedef NextSchedule
|
|
923
|
-
* @property {string} [end]
|
|
924
|
-
* @property {string} [start]
|
|
925
|
-
*/
|
|
926
|
-
|
|
927
|
-
/**
|
|
928
|
-
* @typedef Orientation
|
|
929
|
-
* @property {string[]} [landscape]
|
|
930
|
-
* @property {string[]} [portrait]
|
|
931
|
-
*/
|
|
932
|
-
|
|
933
|
-
/**
|
|
934
|
-
* @typedef Page
|
|
935
|
-
* @property {number} [current]
|
|
936
|
-
* @property {boolean} [has_next]
|
|
937
|
-
* @property {boolean} [has_previous]
|
|
938
|
-
* @property {number} [item_total]
|
|
939
|
-
* @property {string} [next_id]
|
|
940
|
-
* @property {number} [size]
|
|
941
|
-
* @property {string} type
|
|
942
|
-
*/
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
* @typedef PageGetResponse
|
|
946
|
-
* @property {PageSchema[]} [items]
|
|
947
|
-
* @property {Page} [page]
|
|
948
|
-
*/
|
|
949
|
-
|
|
950
|
-
/**
|
|
951
|
-
* @typedef PageMetaSchema
|
|
952
|
-
* @property {string} [application_id]
|
|
953
|
-
* @property {PageSchema[]} [custom_pages]
|
|
954
|
-
* @property {NavigationSchema[]} [system_pages]
|
|
955
|
-
*/
|
|
956
|
-
|
|
957
|
-
/**
|
|
958
|
-
* @typedef PagePublishRequest
|
|
959
|
-
* @property {boolean} [publish]
|
|
960
|
-
*/
|
|
961
|
-
|
|
962
|
-
/**
|
|
963
|
-
* @typedef PageRequest
|
|
964
|
-
* @property {Object} [_custom_json]
|
|
965
|
-
* @property {CronSchedule} [_schedule]
|
|
966
|
-
* @property {string} [application]
|
|
967
|
-
* @property {Author} [author]
|
|
968
|
-
* @property {Object[]} [content]
|
|
969
|
-
* @property {Asset} [feature_image]
|
|
970
|
-
* @property {string} [orientation]
|
|
971
|
-
* @property {boolean} [published]
|
|
972
|
-
* @property {string} [reading_time]
|
|
973
|
-
* @property {SEO} [seo]
|
|
974
|
-
* @property {string} [slug]
|
|
975
|
-
* @property {string[]} [tags]
|
|
976
|
-
* @property {string} [title]
|
|
977
|
-
*/
|
|
978
|
-
|
|
979
|
-
/**
|
|
980
|
-
* @typedef PageSchema
|
|
981
|
-
* @property {Object} [_custom_json]
|
|
982
|
-
* @property {string} [_id]
|
|
983
|
-
* @property {ScheduleSchema} [_schedule]
|
|
984
|
-
* @property {string} [application]
|
|
985
|
-
* @property {boolean} [archived]
|
|
986
|
-
* @property {string[]} [component_ids] - Components can be used to store
|
|
987
|
-
* multiple components
|
|
988
|
-
* @property {Object[]} [content]
|
|
989
|
-
* @property {string} [content_path]
|
|
990
|
-
* @property {CreatedBySchema} [created_by]
|
|
991
|
-
* @property {DateMeta} [date_meta]
|
|
992
|
-
* @property {string} [description]
|
|
993
|
-
* @property {Asset} [feature_image]
|
|
994
|
-
* @property {string} [orientation]
|
|
995
|
-
* @property {Object[]} [page_meta]
|
|
996
|
-
* @property {string} [platform]
|
|
997
|
-
* @property {boolean} [published]
|
|
998
|
-
* @property {SEO} [seo]
|
|
999
|
-
* @property {string} [slug]
|
|
1000
|
-
* @property {string[]} [tags]
|
|
1001
|
-
* @property {string} [title]
|
|
1002
|
-
* @property {string} [type]
|
|
1003
|
-
* @property {Object} [visibility]
|
|
1004
|
-
*/
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
* @typedef PageSpec
|
|
1008
|
-
* @property {PageSpecItem[]} [specifications]
|
|
1009
|
-
*/
|
|
1010
|
-
|
|
1011
|
-
/**
|
|
1012
|
-
* @typedef PageSpecItem
|
|
1013
|
-
* @property {string} [display_name]
|
|
1014
|
-
* @property {string} [page_type]
|
|
1015
|
-
* @property {PageSpecParam[]} [params]
|
|
1016
|
-
* @property {PageSpecParam[]} [query]
|
|
1017
|
-
*/
|
|
1018
|
-
|
|
1019
|
-
/**
|
|
1020
|
-
* @typedef PageSpecParam
|
|
1021
|
-
* @property {string} [key]
|
|
1022
|
-
* @property {boolean} [required]
|
|
752
|
+
* @typedef {| "about-us"
|
|
753
|
+
* | "addresses"
|
|
754
|
+
* | "blog"
|
|
755
|
+
* | "brands"
|
|
756
|
+
* | "cards"
|
|
757
|
+
* | "cart"
|
|
758
|
+
* | "categories"
|
|
759
|
+
* | "brand"
|
|
760
|
+
* | "category"
|
|
761
|
+
* | "collection"
|
|
762
|
+
* | "collections"
|
|
763
|
+
* | "contact-us"
|
|
764
|
+
* | "external"
|
|
765
|
+
* | "faq"
|
|
766
|
+
* | "freshchat"
|
|
767
|
+
* | "home"
|
|
768
|
+
* | "notification-settings"
|
|
769
|
+
* | "orders"
|
|
770
|
+
* | "page"
|
|
771
|
+
* | "policy"
|
|
772
|
+
* | "product"
|
|
773
|
+
* | "product-request"
|
|
774
|
+
* | "products"
|
|
775
|
+
* | "profile"
|
|
776
|
+
* | "profile-order-shipment"
|
|
777
|
+
* | "profile-basic"
|
|
778
|
+
* | "profile-company"
|
|
779
|
+
* | "profile-emails"
|
|
780
|
+
* | "profile-phones"
|
|
781
|
+
* | "rate-us"
|
|
782
|
+
* | "refer-earn"
|
|
783
|
+
* | "settings"
|
|
784
|
+
* | "shared-cart"
|
|
785
|
+
* | "tnc"
|
|
786
|
+
* | "track-order"
|
|
787
|
+
* | "wishlist"
|
|
788
|
+
* | "sections"
|
|
789
|
+
* | "form"
|
|
790
|
+
* | "cart-delivery"
|
|
791
|
+
* | "cart-payment"
|
|
792
|
+
* | "cart-review"
|
|
793
|
+
* | "login"
|
|
794
|
+
* | "register"
|
|
795
|
+
* | "shipping-policy"
|
|
796
|
+
* | "return-policy"
|
|
797
|
+
* | "order-status"} PageType
|
|
1023
798
|
*/
|
|
1024
799
|
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
* @property {string} [_id]
|
|
1029
|
-
* @property {string} [application]
|
|
1030
|
-
* @property {string} [created_at]
|
|
1031
|
-
* @property {string} [redirect_from]
|
|
1032
|
-
* @property {string} [redirect_to]
|
|
1033
|
-
* @property {string} [updated_at]
|
|
1034
|
-
*/
|
|
1035
|
-
|
|
1036
|
-
/**
|
|
1037
|
-
* @typedef PathSourceSchema
|
|
1038
|
-
* @property {string} [id]
|
|
1039
|
-
* @property {string} [type]
|
|
1040
|
-
*/
|
|
1041
|
-
|
|
1042
|
-
/**
|
|
1043
|
-
* @typedef PhoneProperties
|
|
1044
|
-
* @property {string} [code]
|
|
1045
|
-
* @property {string} [key]
|
|
1046
|
-
* @property {string} [number]
|
|
1047
|
-
*/
|
|
1048
|
-
|
|
1049
|
-
/**
|
|
1050
|
-
* @typedef PhoneSchema
|
|
1051
|
-
* @property {boolean} [active]
|
|
1052
|
-
* @property {PhoneProperties[]} [phone]
|
|
1053
|
-
*/
|
|
1054
|
-
|
|
1055
|
-
/**
|
|
1056
|
-
* @typedef Product
|
|
1057
|
-
* @property {string} [category]
|
|
1058
|
-
* @property {boolean} [list_enabled]
|
|
1059
|
-
* @property {string} [name]
|
|
1060
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1061
|
-
* @property {string} [type]
|
|
1062
|
-
*/
|
|
1063
|
-
|
|
1064
|
-
/**
|
|
1065
|
-
* @typedef RemoveHandpickedSchema
|
|
1066
|
-
* @property {string[]} [tags]
|
|
1067
|
-
*/
|
|
1068
|
-
|
|
1069
|
-
/**
|
|
1070
|
-
* @typedef ResourceContent
|
|
1071
|
-
* @property {string} [type]
|
|
1072
|
-
* @property {string} [value]
|
|
1073
|
-
*/
|
|
1074
|
-
|
|
1075
|
-
/**
|
|
1076
|
-
* @typedef ResourceSchema
|
|
1077
|
-
* @property {number} [definitions_count] - Number of definitions
|
|
1078
|
-
* @property {string} [key] - Resource key
|
|
1079
|
-
* @property {string} [name] - Resource name
|
|
1080
|
-
*/
|
|
1081
|
-
|
|
1082
|
-
/**
|
|
1083
|
-
* @typedef ResourcesSchema
|
|
1084
|
-
* @property {ResourceSchema[]} [resources]
|
|
1085
|
-
*/
|
|
1086
|
-
|
|
1087
|
-
/**
|
|
1088
|
-
* @typedef ScheduleSchema
|
|
1089
|
-
* @property {string} [cron]
|
|
1090
|
-
* @property {number} [duration]
|
|
1091
|
-
* @property {string} [end]
|
|
1092
|
-
* @property {NextSchedule[]} [next_schedule]
|
|
1093
|
-
* @property {string} [start]
|
|
1094
|
-
*/
|
|
1095
|
-
|
|
1096
|
-
/**
|
|
1097
|
-
* @typedef SEO
|
|
1098
|
-
* @property {SEObreadcrumb[]} [breadcrumb]
|
|
1099
|
-
* @property {string} [canonical_url]
|
|
1100
|
-
* @property {string} [description]
|
|
1101
|
-
* @property {SEOImage} [image]
|
|
1102
|
-
* @property {SEOMetaItem[]} [meta_tags]
|
|
1103
|
-
* @property {SEOSitemap} [sitemap]
|
|
1104
|
-
* @property {string} [title]
|
|
1105
|
-
*/
|
|
1106
|
-
|
|
1107
|
-
/**
|
|
1108
|
-
* @typedef SEObreadcrumb
|
|
1109
|
-
* @property {Action} [action]
|
|
1110
|
-
* @property {string} [url]
|
|
1111
|
-
*/
|
|
1112
|
-
|
|
1113
|
-
/**
|
|
1114
|
-
* @typedef SeoComponent
|
|
1115
|
-
* @property {SeoSchema} [seo]
|
|
1116
|
-
*/
|
|
1117
|
-
|
|
1118
|
-
/**
|
|
1119
|
-
* @typedef SEOImage
|
|
1120
|
-
* @property {string} [url]
|
|
1121
|
-
*/
|
|
1122
|
-
|
|
1123
|
-
/**
|
|
1124
|
-
* @typedef SEOMetaItem
|
|
1125
|
-
* @property {SEOMetaItems[]} [items]
|
|
1126
|
-
* @property {string} [title]
|
|
1127
|
-
*/
|
|
1128
|
-
|
|
1129
|
-
/**
|
|
1130
|
-
* @typedef SEOMetaItems
|
|
1131
|
-
* @property {string} [key]
|
|
1132
|
-
* @property {string} [value]
|
|
1133
|
-
*/
|
|
1134
|
-
|
|
1135
|
-
/**
|
|
1136
|
-
* @typedef SeoSchema
|
|
1137
|
-
* @property {string} [_id]
|
|
1138
|
-
* @property {string} [additional_sitemap]
|
|
1139
|
-
* @property {string} [app]
|
|
1140
|
-
* @property {boolean} [cannonical_enabled]
|
|
1141
|
-
* @property {string} [created_at]
|
|
1142
|
-
* @property {CustomMetaTag[]} [custom_meta_tags]
|
|
1143
|
-
* @property {Detail} [details]
|
|
1144
|
-
* @property {string} [robots_txt]
|
|
1145
|
-
* @property {boolean} [sitemap_enabled]
|
|
1146
|
-
* @property {string} [updated_at]
|
|
1147
|
-
*/
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
* @typedef SeoSchemaComponent
|
|
1151
|
-
* @property {SEOSchemaMarkupTemplate[]} [items]
|
|
1152
|
-
* @property {Page} [page]
|
|
1153
|
-
*/
|
|
1154
|
-
|
|
1155
|
-
/**
|
|
1156
|
-
* @typedef SEOSchemaMarkupTemplate
|
|
1157
|
-
* @property {boolean} [active]
|
|
1158
|
-
* @property {string} [application]
|
|
1159
|
-
* @property {string} [created_at]
|
|
1160
|
-
* @property {string} [description]
|
|
1161
|
-
* @property {string} [id]
|
|
1162
|
-
* @property {string} [page_type]
|
|
1163
|
-
* @property {string} [schema]
|
|
1164
|
-
* @property {Object} [target_json]
|
|
1165
|
-
* @property {string} [title]
|
|
1166
|
-
* @property {string} [updated_at]
|
|
1167
|
-
*/
|
|
1168
|
-
|
|
1169
|
-
/**
|
|
1170
|
-
* @typedef SEOSchemaMarkupTemplateRequestBody
|
|
1171
|
-
* @property {boolean} [active]
|
|
1172
|
-
* @property {string} [created_at]
|
|
1173
|
-
* @property {string} [description]
|
|
1174
|
-
* @property {string} [page_type]
|
|
1175
|
-
* @property {string} [schema]
|
|
1176
|
-
* @property {Object} [target_json]
|
|
1177
|
-
* @property {string} [title]
|
|
1178
|
-
* @property {string} [updated_at]
|
|
1179
|
-
*/
|
|
1180
|
-
|
|
1181
|
-
/**
|
|
1182
|
-
* @typedef SEOSitemap
|
|
1183
|
-
* @property {string} [frequency]
|
|
1184
|
-
* @property {number} [priority]
|
|
1185
|
-
*/
|
|
1186
|
-
|
|
1187
|
-
/**
|
|
1188
|
-
* @typedef SlideshowGetResponse
|
|
1189
|
-
* @property {SlideshowSchema[]} [items]
|
|
1190
|
-
* @property {Page} [page]
|
|
1191
|
-
*/
|
|
1192
|
-
|
|
1193
|
-
/**
|
|
1194
|
-
* @typedef SlideshowMedia
|
|
1195
|
-
* @property {Action} [action]
|
|
1196
|
-
* @property {boolean} [auto_decide_duration]
|
|
1197
|
-
* @property {string} [bg_color]
|
|
1198
|
-
* @property {number} [duration]
|
|
1199
|
-
* @property {string} [type]
|
|
1200
|
-
* @property {string} [url]
|
|
1201
|
-
*/
|
|
1202
|
-
|
|
1203
|
-
/**
|
|
1204
|
-
* @typedef SlideshowRequest
|
|
1205
|
-
* @property {boolean} [active]
|
|
1206
|
-
* @property {ConfigurationSchema} [configuration]
|
|
1207
|
-
* @property {SlideshowMedia} [media]
|
|
1208
|
-
* @property {string} [platform]
|
|
1209
|
-
* @property {string} [slug]
|
|
1210
|
-
*/
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* @typedef SlideshowSchema
|
|
1214
|
-
* @property {Object} [_custom_json]
|
|
1215
|
-
* @property {string} [_id]
|
|
1216
|
-
* @property {boolean} [active]
|
|
1217
|
-
* @property {string} [application]
|
|
1218
|
-
* @property {boolean} [archived]
|
|
1219
|
-
* @property {ConfigurationSchema} [configuration]
|
|
1220
|
-
* @property {DateMeta} [date_meta]
|
|
1221
|
-
* @property {SlideshowMedia[]} [media]
|
|
1222
|
-
* @property {string} [platform]
|
|
1223
|
-
* @property {string} [slug]
|
|
1224
|
-
*/
|
|
1225
|
-
|
|
1226
|
-
/**
|
|
1227
|
-
* @typedef StringMultiLine
|
|
1228
|
-
* @property {string} [category]
|
|
1229
|
-
* @property {boolean} [list_enabled]
|
|
1230
|
-
* @property {string} [name]
|
|
1231
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1232
|
-
* @property {string} [type]
|
|
1233
|
-
*/
|
|
1234
|
-
|
|
1235
|
-
/**
|
|
1236
|
-
* @typedef StringSingleLine
|
|
1237
|
-
* @property {string} [category]
|
|
1238
|
-
* @property {boolean} [list_enabled]
|
|
1239
|
-
* @property {string} [name]
|
|
1240
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1241
|
-
* @property {string} [type]
|
|
1242
|
-
*/
|
|
1243
|
-
|
|
1244
|
-
/**
|
|
1245
|
-
* @typedef Support
|
|
1246
|
-
* @property {string} [_id]
|
|
1247
|
-
* @property {string} [application]
|
|
1248
|
-
* @property {string} [config_type]
|
|
1249
|
-
* @property {ContactSchema} [contact]
|
|
1250
|
-
* @property {boolean} [created]
|
|
1251
|
-
* @property {string} [created_at]
|
|
1252
|
-
* @property {string} [updated_at]
|
|
1253
|
-
*/
|
|
1254
|
-
|
|
1255
|
-
/**
|
|
1256
|
-
* @typedef SupportedValidationsMetaExampleSchema
|
|
1257
|
-
* @property {string} [name]
|
|
1258
|
-
* @property {string} [value]
|
|
1259
|
-
*/
|
|
1260
|
-
|
|
1261
|
-
/**
|
|
1262
|
-
* @typedef SupportedValidationsMetaSchema
|
|
1263
|
-
* @property {SupportedValidationsMetaExampleSchema[]} [examples]
|
|
1264
|
-
*/
|
|
1265
|
-
|
|
1266
|
-
/**
|
|
1267
|
-
* @typedef SupportedValidationsSchema
|
|
1268
|
-
* @property {string} [display]
|
|
1269
|
-
* @property {SupportedValidationsMetaSchema} [meta]
|
|
1270
|
-
* @property {string} [name]
|
|
1271
|
-
* @property {boolean} [required]
|
|
1272
|
-
* @property {string} [type]
|
|
1273
|
-
*/
|
|
1274
|
-
|
|
1275
|
-
/**
|
|
1276
|
-
* @typedef TagDeleteSuccessResponse
|
|
1277
|
-
* @property {boolean} [success]
|
|
1278
|
-
*/
|
|
1279
|
-
|
|
1280
|
-
/**
|
|
1281
|
-
* @typedef TagSchema
|
|
1282
|
-
* @property {TagSourceSchema} [__source]
|
|
1283
|
-
* @property {string} [_id]
|
|
1284
|
-
* @property {Object} [attributes]
|
|
1285
|
-
* @property {string} [content]
|
|
1286
|
-
* @property {string} [name]
|
|
1287
|
-
* @property {Object[]} [pages]
|
|
1288
|
-
* @property {string} [position]
|
|
1289
|
-
* @property {string} [sub_type]
|
|
1290
|
-
* @property {string} [type]
|
|
1291
|
-
* @property {string} [url]
|
|
1292
|
-
*/
|
|
1293
|
-
|
|
1294
|
-
/**
|
|
1295
|
-
* @typedef TagSourceSchema
|
|
1296
|
-
* @property {string} [id]
|
|
1297
|
-
* @property {string} [type]
|
|
1298
|
-
*/
|
|
1299
|
-
|
|
1300
|
-
/**
|
|
1301
|
-
* @typedef TagsSchema
|
|
1302
|
-
* @property {string} [_id]
|
|
1303
|
-
* @property {string} [application]
|
|
1304
|
-
* @property {TagSchema[]} [tags]
|
|
1305
|
-
*/
|
|
1306
|
-
|
|
1307
|
-
/**
|
|
1308
|
-
* @typedef UpdateFaqCategoryRequestSchema
|
|
1309
|
-
* @property {CategorySchema} [category]
|
|
1310
|
-
*/
|
|
1311
|
-
|
|
1312
|
-
/**
|
|
1313
|
-
* @typedef UpdateHandpickedSchema
|
|
1314
|
-
* @property {HandpickedTagSchema} [tag]
|
|
1315
|
-
*/
|
|
1316
|
-
|
|
1317
|
-
/**
|
|
1318
|
-
* @typedef Url
|
|
1319
|
-
* @property {boolean} [list_enabled]
|
|
1320
|
-
* @property {string} [name]
|
|
1321
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1322
|
-
* @property {string} [type]
|
|
1323
|
-
*/
|
|
1324
|
-
|
|
1325
|
-
/** @typedef {"title" | "description"} GenerationEntityType */
|
|
1326
|
-
|
|
1327
|
-
/**
|
|
1328
|
-
* @typedef {| "about-us"
|
|
1329
|
-
* | "addresses"
|
|
1330
|
-
* | "blog"
|
|
1331
|
-
* | "brands"
|
|
1332
|
-
* | "cards"
|
|
1333
|
-
* | "cart"
|
|
1334
|
-
* | "categories"
|
|
1335
|
-
* | "brand"
|
|
1336
|
-
* | "category"
|
|
1337
|
-
* | "collection"
|
|
1338
|
-
* | "collections"
|
|
1339
|
-
* | "contact-us"
|
|
1340
|
-
* | "external"
|
|
1341
|
-
* | "faq"
|
|
1342
|
-
* | "freshchat"
|
|
1343
|
-
* | "home"
|
|
1344
|
-
* | "notification-settings"
|
|
1345
|
-
* | "orders"
|
|
1346
|
-
* | "page"
|
|
1347
|
-
* | "policy"
|
|
1348
|
-
* | "product"
|
|
1349
|
-
* | "product-request"
|
|
1350
|
-
* | "products"
|
|
1351
|
-
* | "profile"
|
|
1352
|
-
* | "profile-order-shipment"
|
|
1353
|
-
* | "profile-basic"
|
|
1354
|
-
* | "profile-company"
|
|
1355
|
-
* | "profile-emails"
|
|
1356
|
-
* | "profile-phones"
|
|
1357
|
-
* | "rate-us"
|
|
1358
|
-
* | "refer-earn"
|
|
1359
|
-
* | "settings"
|
|
1360
|
-
* | "shared-cart"
|
|
1361
|
-
* | "tnc"
|
|
1362
|
-
* | "track-order"
|
|
1363
|
-
* | "wishlist"
|
|
1364
|
-
* | "sections"
|
|
1365
|
-
* | "form"
|
|
1366
|
-
* | "cart-delivery"
|
|
1367
|
-
* | "cart-payment"
|
|
1368
|
-
* | "cart-review"
|
|
1369
|
-
* | "login"
|
|
1370
|
-
* | "register"
|
|
1371
|
-
* | "shipping-policy"
|
|
1372
|
-
* | "return-policy"
|
|
1373
|
-
* | "order-status"} PageType
|
|
1374
|
-
*/
|
|
1375
|
-
|
|
1376
|
-
class ContentPlatformModel {
|
|
1377
|
-
/** @returns {Action} */
|
|
1378
|
-
static Action() {
|
|
1379
|
-
return Joi.object({
|
|
1380
|
-
page: ContentPlatformModel.ActionPage(),
|
|
1381
|
-
popup: ContentPlatformModel.ActionPage(),
|
|
1382
|
-
type: Joi.string().allow(""),
|
|
1383
|
-
});
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
/** @returns {ActionPage} */
|
|
1387
|
-
static ActionPage() {
|
|
1388
|
-
return Joi.object({
|
|
1389
|
-
params: Joi.object().pattern(
|
|
1390
|
-
/\S/,
|
|
1391
|
-
Joi.array().items(Joi.string().allow(""))
|
|
1392
|
-
),
|
|
1393
|
-
query: Joi.object().pattern(
|
|
1394
|
-
/\S/,
|
|
1395
|
-
Joi.array().items(Joi.string().allow(""))
|
|
1396
|
-
),
|
|
1397
|
-
type: ContentPlatformModel.PageType().required(),
|
|
1398
|
-
url: Joi.string().allow(""),
|
|
1399
|
-
});
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
/** @returns {AdminAnnouncementSchema} */
|
|
1403
|
-
static AdminAnnouncementSchema() {
|
|
1404
|
-
return Joi.object({
|
|
1405
|
-
_id: Joi.string().allow(""),
|
|
1406
|
-
_schedule: ContentPlatformModel.ScheduleSchema(),
|
|
1407
|
-
announcement: Joi.string().allow(""),
|
|
1408
|
-
app: Joi.string().allow(""),
|
|
1409
|
-
author: ContentPlatformModel.AnnouncementAuthorSchema(),
|
|
1410
|
-
created_at: Joi.string().allow(""),
|
|
1411
|
-
editor_meta: ContentPlatformModel.EditorMeta(),
|
|
1412
|
-
modified_at: Joi.string().allow(""),
|
|
1413
|
-
pages: Joi.array().items(ContentPlatformModel.AnnouncementPageSchema()),
|
|
1414
|
-
platforms: Joi.array().items(Joi.string().allow("")),
|
|
1415
|
-
title: Joi.string().allow(""),
|
|
1416
|
-
});
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
/** @returns {AnnouncementAuthorSchema} */
|
|
1420
|
-
static AnnouncementAuthorSchema() {
|
|
1421
|
-
return Joi.object({
|
|
1422
|
-
created_by: Joi.string().allow(""),
|
|
1423
|
-
modified_by: Joi.string().allow(""),
|
|
1424
|
-
});
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
/** @returns {AnnouncementPageSchema} */
|
|
1428
|
-
static AnnouncementPageSchema() {
|
|
1429
|
-
return Joi.object({
|
|
1430
|
-
page_slug: Joi.string().allow(""),
|
|
1431
|
-
type: Joi.string().allow(""),
|
|
1432
|
-
});
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
/** @returns {ApplicationLegal} */
|
|
1436
|
-
static ApplicationLegal() {
|
|
1437
|
-
return Joi.object({
|
|
1438
|
-
_id: Joi.string().allow(""),
|
|
1439
|
-
application: Joi.string().allow(""),
|
|
1440
|
-
created_at: Joi.string().allow(""),
|
|
1441
|
-
faq: Joi.array().items(ContentPlatformModel.ApplicationLegalFAQ()),
|
|
1442
|
-
policy: Joi.string().allow(""),
|
|
1443
|
-
returns: Joi.string().allow(""),
|
|
1444
|
-
shipping: Joi.string().allow(""),
|
|
1445
|
-
tnc: Joi.string().allow(""),
|
|
1446
|
-
updated_at: Joi.string().allow(""),
|
|
1447
|
-
});
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
/** @returns {ApplicationLegalFAQ} */
|
|
1451
|
-
static ApplicationLegalFAQ() {
|
|
1452
|
-
return Joi.object({
|
|
1453
|
-
answer: Joi.string().allow(""),
|
|
1454
|
-
question: Joi.string().allow(""),
|
|
1455
|
-
});
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
/** @returns {Asset} */
|
|
1459
|
-
static Asset() {
|
|
1460
|
-
return Joi.object({
|
|
1461
|
-
aspect_ratio: Joi.string().allow(""),
|
|
1462
|
-
id: Joi.string().allow(""),
|
|
1463
|
-
secure_url: Joi.string().allow(""),
|
|
1464
|
-
});
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
/** @returns {Author} */
|
|
1468
|
-
static Author() {
|
|
1469
|
-
return Joi.object({
|
|
1470
|
-
designation: Joi.string().allow(""),
|
|
1471
|
-
id: Joi.string().allow(""),
|
|
1472
|
-
name: Joi.string().allow(""),
|
|
1473
|
-
});
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
/** @returns {BlogGetResponse} */
|
|
1477
|
-
static BlogGetResponse() {
|
|
1478
|
-
return Joi.object({
|
|
1479
|
-
items: Joi.array().items(ContentPlatformModel.BlogSchema()),
|
|
1480
|
-
page: ContentPlatformModel.Page(),
|
|
1481
|
-
});
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
/** @returns {BlogRequest} */
|
|
1485
|
-
static BlogRequest() {
|
|
1486
|
-
return Joi.object({
|
|
1487
|
-
_custom_json: Joi.any(),
|
|
1488
|
-
_schedule: ContentPlatformModel.CronSchedule(),
|
|
1489
|
-
application: Joi.string().allow(""),
|
|
1490
|
-
author: ContentPlatformModel.Author(),
|
|
1491
|
-
content: Joi.array().items(ContentPlatformModel.ResourceContent()),
|
|
1492
|
-
feature_image: ContentPlatformModel.Asset(),
|
|
1493
|
-
published: Joi.boolean(),
|
|
1494
|
-
reading_time: Joi.string().allow(""),
|
|
1495
|
-
seo: ContentPlatformModel.SEO(),
|
|
1496
|
-
slug: Joi.string().allow(""),
|
|
1497
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
1498
|
-
title: Joi.string().allow(""),
|
|
1499
|
-
});
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
/** @returns {BlogSchema} */
|
|
1503
|
-
static BlogSchema() {
|
|
1504
|
-
return Joi.object({
|
|
1505
|
-
_custom_json: Joi.any(),
|
|
1506
|
-
_id: Joi.string().allow(""),
|
|
1507
|
-
_schedule: ContentPlatformModel.CronSchedule(),
|
|
1508
|
-
application: Joi.string().allow(""),
|
|
1509
|
-
archived: Joi.boolean(),
|
|
1510
|
-
author: ContentPlatformModel.Author(),
|
|
1511
|
-
content: Joi.array().items(ContentPlatformModel.ResourceContent()),
|
|
1512
|
-
date_meta: ContentPlatformModel.DateMeta(),
|
|
1513
|
-
feature_image: ContentPlatformModel.Asset(),
|
|
1514
|
-
published: Joi.boolean(),
|
|
1515
|
-
reading_time: Joi.string().allow(""),
|
|
1516
|
-
seo: ContentPlatformModel.SEO(),
|
|
1517
|
-
slug: Joi.string().allow(""),
|
|
1518
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
1519
|
-
title: Joi.string().allow(""),
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
/** @returns {BooleanType} */
|
|
1524
|
-
static BooleanType() {
|
|
1525
|
-
return Joi.object({
|
|
1526
|
-
category: Joi.string().allow(""),
|
|
1527
|
-
list_enabled: Joi.boolean(),
|
|
1528
|
-
name: Joi.string().allow(""),
|
|
1529
|
-
supported_validations: Joi.array().items(
|
|
1530
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
1531
|
-
),
|
|
1532
|
-
type: Joi.string().allow(""),
|
|
1533
|
-
});
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
|
-
/** @returns {CategoryRequestSchema} */
|
|
1537
|
-
static CategoryRequestSchema() {
|
|
1538
|
-
return Joi.object({
|
|
1539
|
-
slug: Joi.string().allow(""),
|
|
1540
|
-
title: Joi.string().allow(""),
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
/** @returns {CategorySchema} */
|
|
1545
|
-
static CategorySchema() {
|
|
1546
|
-
return Joi.object({
|
|
1547
|
-
_custom_json: Joi.any(),
|
|
1548
|
-
_id: Joi.string().allow(""),
|
|
1549
|
-
application: Joi.string().allow(""),
|
|
1550
|
-
children: Joi.array().items(Joi.string().allow("")),
|
|
1551
|
-
description: Joi.string().allow(""),
|
|
1552
|
-
icon_url: Joi.string().allow(""),
|
|
1553
|
-
index: Joi.number(),
|
|
1554
|
-
slug: Joi.string().allow(""),
|
|
1555
|
-
title: Joi.string().allow(""),
|
|
1556
|
-
});
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
/** @returns {ChildrenSchema} */
|
|
1560
|
-
static ChildrenSchema() {
|
|
1561
|
-
return Joi.object({
|
|
1562
|
-
_id: Joi.string().allow(""),
|
|
1563
|
-
answer: Joi.string().allow(""),
|
|
1564
|
-
application: Joi.string().allow(""),
|
|
1565
|
-
question: Joi.string().allow(""),
|
|
1566
|
-
slug: Joi.string().allow(""),
|
|
1567
|
-
});
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
/** @returns {CommonError} */
|
|
1571
|
-
static CommonError() {
|
|
1572
|
-
return Joi.object({
|
|
1573
|
-
message: Joi.string().allow(""),
|
|
1574
|
-
});
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
/** @returns {ConfigurationSchema} */
|
|
1578
|
-
static ConfigurationSchema() {
|
|
1579
|
-
return Joi.object({
|
|
1580
|
-
duration: Joi.number(),
|
|
1581
|
-
sleep_time: Joi.number(),
|
|
1582
|
-
slide_direction: Joi.string().allow(""),
|
|
1583
|
-
start_on_launch: Joi.boolean(),
|
|
1584
|
-
});
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
/** @returns {ContactSchema} */
|
|
1588
|
-
static ContactSchema() {
|
|
1589
|
-
return Joi.object({
|
|
1590
|
-
email: ContentPlatformModel.EmailSchema(),
|
|
1591
|
-
phone: ContentPlatformModel.PhoneSchema(),
|
|
1592
|
-
});
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
/** @returns {ContentAPIError} */
|
|
1596
|
-
static ContentAPIError() {
|
|
1597
|
-
return Joi.object({
|
|
1598
|
-
code: Joi.string().allow(""),
|
|
1599
|
-
exception: Joi.string().allow(""),
|
|
1600
|
-
info: Joi.string().allow(""),
|
|
1601
|
-
message: Joi.string().allow(""),
|
|
1602
|
-
meta: Joi.any(),
|
|
1603
|
-
request_id: Joi.string().allow(""),
|
|
1604
|
-
stack_trace: Joi.string().allow(""),
|
|
1605
|
-
status: Joi.number(),
|
|
1606
|
-
});
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
/** @returns {CreateAnnouncementSchema} */
|
|
1610
|
-
static CreateAnnouncementSchema() {
|
|
1611
|
-
return Joi.object({
|
|
1612
|
-
data: ContentPlatformModel.AdminAnnouncementSchema(),
|
|
1613
|
-
message: Joi.string().allow(""),
|
|
1614
|
-
});
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
/** @returns {CreatedBySchema} */
|
|
1618
|
-
static CreatedBySchema() {
|
|
1619
|
-
return Joi.object({
|
|
1620
|
-
id: Joi.string().allow(""),
|
|
1621
|
-
});
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
/** @returns {CreateFaqCategoryRequestSchema} */
|
|
1625
|
-
static CreateFaqCategoryRequestSchema() {
|
|
1626
|
-
return Joi.object({
|
|
1627
|
-
category: ContentPlatformModel.CategoryRequestSchema(),
|
|
1628
|
-
});
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
/** @returns {CreateFaqCategorySchema} */
|
|
1632
|
-
static CreateFaqCategorySchema() {
|
|
1633
|
-
return Joi.object({
|
|
1634
|
-
category: ContentPlatformModel.CategorySchema(),
|
|
1635
|
-
});
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
/** @returns {CreateFaqResponseSchema} */
|
|
1639
|
-
static CreateFaqResponseSchema() {
|
|
1640
|
-
return Joi.object({
|
|
1641
|
-
faq: ContentPlatformModel.FaqSchema(),
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
/** @returns {CreateFaqSchema} */
|
|
1646
|
-
static CreateFaqSchema() {
|
|
1647
|
-
return Joi.object({
|
|
1648
|
-
faq: ContentPlatformModel.FAQ(),
|
|
1649
|
-
});
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
|
-
/** @returns {CreateTagRequestSchema} */
|
|
1653
|
-
static CreateTagRequestSchema() {
|
|
1654
|
-
return Joi.object({
|
|
1655
|
-
tags: Joi.array().items(ContentPlatformModel.CreateTagSchema()),
|
|
1656
|
-
});
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
/** @returns {CreateTagSchema} */
|
|
1660
|
-
static CreateTagSchema() {
|
|
1661
|
-
return Joi.object({
|
|
1662
|
-
_id: Joi.string().allow(""),
|
|
1663
|
-
attributes: Joi.any(),
|
|
1664
|
-
content: Joi.string().allow(""),
|
|
1665
|
-
name: Joi.string().allow(""),
|
|
1666
|
-
pages: Joi.array().items(Joi.any()),
|
|
1667
|
-
position: Joi.string().allow(""),
|
|
1668
|
-
sub_type: Joi.string().allow(""),
|
|
1669
|
-
type: Joi.string().allow(""),
|
|
1670
|
-
url: Joi.string().allow(""),
|
|
1671
|
-
});
|
|
1672
|
-
}
|
|
1673
|
-
|
|
1674
|
-
/** @returns {CronSchedule} */
|
|
1675
|
-
static CronSchedule() {
|
|
1676
|
-
return Joi.object({
|
|
1677
|
-
cron: Joi.string().allow(""),
|
|
1678
|
-
duration: Joi.number(),
|
|
1679
|
-
end: Joi.string().allow(""),
|
|
1680
|
-
start: Joi.string().allow(""),
|
|
1681
|
-
});
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
/** @returns {CustomDataDeleteSchema} */
|
|
1685
|
-
static CustomDataDeleteSchema() {
|
|
1686
|
-
return Joi.object({
|
|
1687
|
-
message: Joi.string().allow(""),
|
|
1688
|
-
success: Joi.boolean(),
|
|
1689
|
-
});
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
/** @returns {CustomField} */
|
|
1693
|
-
static CustomField() {
|
|
1694
|
-
return Joi.object({
|
|
1695
|
-
definition_id: Joi.string().allow(""),
|
|
1696
|
-
value: Joi.array().items(Joi.any()),
|
|
1697
|
-
});
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
|
-
/** @returns {CustomFieldDefinitionDetailResSchema} */
|
|
1701
|
-
static CustomFieldDefinitionDetailResSchema() {
|
|
1702
|
-
return Joi.object({
|
|
1703
|
-
_id: Joi.string().allow(""),
|
|
1704
|
-
application_id: Joi.string().allow(""),
|
|
1705
|
-
company_id: Joi.string().allow(""),
|
|
1706
|
-
created_at: Joi.string().allow(""),
|
|
1707
|
-
created_by: Joi.string().allow(""),
|
|
1708
|
-
creator: Joi.string().allow(""),
|
|
1709
|
-
description: Joi.string().allow(""),
|
|
1710
|
-
is_deleted: Joi.boolean(),
|
|
1711
|
-
key: Joi.string().allow(""),
|
|
1712
|
-
multi_value: Joi.boolean(),
|
|
1713
|
-
name: Joi.string().allow(""),
|
|
1714
|
-
namespace: Joi.string().allow(""),
|
|
1715
|
-
required: Joi.boolean(),
|
|
1716
|
-
resource: Joi.string().allow(""),
|
|
1717
|
-
type: Joi.string().allow(""),
|
|
1718
|
-
updated_at: Joi.string().allow(""),
|
|
1719
|
-
updated_by: Joi.string().allow(""),
|
|
1720
|
-
validations: Joi.array().items(Joi.any()),
|
|
1721
|
-
});
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
/** @returns {CustomFieldDefinitionRequestSchema} */
|
|
1725
|
-
static CustomFieldDefinitionRequestSchema() {
|
|
1726
|
-
return Joi.object({
|
|
1727
|
-
description: Joi.string().allow(""),
|
|
1728
|
-
key: Joi.string().allow(""),
|
|
1729
|
-
multi_value: Joi.boolean(),
|
|
1730
|
-
name: Joi.string().allow(""),
|
|
1731
|
-
namespace: Joi.string().allow(""),
|
|
1732
|
-
resource: Joi.string().allow(""),
|
|
1733
|
-
type: Joi.string().allow(""),
|
|
1734
|
-
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
1735
|
-
});
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
/** @returns {CustomFieldDefinitionsSchema} */
|
|
1739
|
-
static CustomFieldDefinitionsSchema() {
|
|
1740
|
-
return Joi.object({
|
|
1741
|
-
items: Joi.array().items(ContentPlatformModel.FieldDefinitionSchema()),
|
|
1742
|
-
page: ContentPlatformModel.Page(),
|
|
1743
|
-
});
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
/** @returns {CustomFieldRequestSchema} */
|
|
1747
|
-
static CustomFieldRequestSchema() {
|
|
1748
|
-
return Joi.object({
|
|
1749
|
-
fields: Joi.array().items(ContentPlatformModel.CustomField()),
|
|
1750
|
-
});
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
/** @returns {CustomFieldSchema} */
|
|
1754
|
-
static CustomFieldSchema() {
|
|
1755
|
-
return Joi.object({
|
|
1756
|
-
_id: Joi.string().allow(""),
|
|
1757
|
-
company_id: Joi.string().allow(""),
|
|
1758
|
-
created_at: Joi.string().allow(""),
|
|
1759
|
-
created_by: Joi.string().allow(""),
|
|
1760
|
-
creator: Joi.string().allow(""),
|
|
1761
|
-
definition_id: Joi.string().allow(""),
|
|
1762
|
-
has_invalid_values: Joi.boolean(),
|
|
1763
|
-
invalid_value_errors: Joi.array().items(Joi.any()),
|
|
1764
|
-
is_deleted: Joi.boolean(),
|
|
1765
|
-
key: Joi.string().allow(""),
|
|
1766
|
-
multi_value: Joi.boolean(),
|
|
1767
|
-
namespace: Joi.string().allow(""),
|
|
1768
|
-
resource: Joi.string().allow(""),
|
|
1769
|
-
resource_id: Joi.string().allow(""),
|
|
1770
|
-
type: Joi.string().allow(""),
|
|
1771
|
-
updated_at: Joi.string().allow(""),
|
|
1772
|
-
value: Joi.array().items(ContentPlatformModel.CustomFieldValue()),
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
/** @returns {CustomFieldsResponseByResourceIdSchema} */
|
|
1777
|
-
static CustomFieldsResponseByResourceIdSchema() {
|
|
1778
|
-
return Joi.object({
|
|
1779
|
-
items: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
|
|
1780
|
-
});
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
|
-
/** @returns {CustomFieldsResponseSchema} */
|
|
1784
|
-
static CustomFieldsResponseSchema() {
|
|
1785
|
-
return Joi.object({
|
|
1786
|
-
items: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
|
|
1787
|
-
page: ContentPlatformModel.Page(),
|
|
1788
|
-
});
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
/** @returns {CustomFieldTypeSchema} */
|
|
1792
|
-
static CustomFieldTypeSchema() {
|
|
1793
|
-
return Joi.object({
|
|
1794
|
-
boolean_type: ContentPlatformModel.BooleanType(),
|
|
1795
|
-
date: ContentPlatformModel.Date(),
|
|
1796
|
-
datetime: ContentPlatformModel.Datetime(),
|
|
1797
|
-
dropdown: ContentPlatformModel.Dropdown(),
|
|
1798
|
-
file: ContentPlatformModel.File(),
|
|
1799
|
-
float_type: ContentPlatformModel.FloatType(),
|
|
1800
|
-
integer: ContentPlatformModel.Integer(),
|
|
1801
|
-
json: ContentPlatformModel.Json(),
|
|
1802
|
-
metaobject: ContentPlatformModel.Metaobject(),
|
|
1803
|
-
product: ContentPlatformModel.Product(),
|
|
1804
|
-
string_multi_line: ContentPlatformModel.StringMultiLine(),
|
|
1805
|
-
string_single_line: ContentPlatformModel.StringSingleLine(),
|
|
1806
|
-
url: ContentPlatformModel.Url(),
|
|
1807
|
-
});
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
/** @returns {CustomFieldValue} */
|
|
1811
|
-
static CustomFieldValue() {
|
|
1812
|
-
return Joi.object({
|
|
1813
|
-
value: Joi.any(),
|
|
1814
|
-
});
|
|
1815
|
-
}
|
|
1816
|
-
|
|
1817
|
-
/** @returns {CustomMetaTag} */
|
|
1818
|
-
static CustomMetaTag() {
|
|
1819
|
-
return Joi.object({
|
|
1820
|
-
_id: Joi.string().allow(""),
|
|
1821
|
-
content: Joi.string().allow(""),
|
|
1822
|
-
name: Joi.string().allow(""),
|
|
1823
|
-
});
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
/** @returns {CustomObjectBulkEntry} */
|
|
1827
|
-
static CustomObjectBulkEntry() {
|
|
1828
|
-
return Joi.object({
|
|
1829
|
-
items: Joi.array().items(ContentPlatformModel.CustomObjectJobSchema()),
|
|
1830
|
-
page: ContentPlatformModel.Page(),
|
|
1831
|
-
});
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
/** @returns {CustomObjectBulkEntryInitiateDownload} */
|
|
1835
|
-
static CustomObjectBulkEntryInitiateDownload() {
|
|
1836
|
-
return Joi.object({
|
|
1837
|
-
message: Joi.string().allow(""),
|
|
1838
|
-
task_id: Joi.string().allow(""),
|
|
1839
|
-
});
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
/** @returns {CustomObjectBulkSchema} */
|
|
1843
|
-
static CustomObjectBulkSchema() {
|
|
1844
|
-
return Joi.object({
|
|
1845
|
-
total_records: Joi.number(),
|
|
1846
|
-
url: Joi.string().allow(""),
|
|
1847
|
-
});
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
/** @returns {CustomObjectByIdSchema} */
|
|
1851
|
-
static CustomObjectByIdSchema() {
|
|
1852
|
-
return Joi.object({
|
|
1853
|
-
_id: Joi.string().allow(""),
|
|
1854
|
-
definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
|
|
1855
|
-
display_name: Joi.string().allow(""),
|
|
1856
|
-
fields: Joi.array().items(ContentPlatformModel.CustomObjectFieldSchema()),
|
|
1857
|
-
references: Joi.array().items(Joi.any()),
|
|
1858
|
-
status: Joi.string().allow(""),
|
|
1859
|
-
});
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
/** @returns {CustomObjectCustomFieldDefinitionResSchema} */
|
|
1863
|
-
static CustomObjectCustomFieldDefinitionResSchema() {
|
|
1864
|
-
return Joi.object({
|
|
1865
|
-
_id: Joi.string().allow(""),
|
|
1866
|
-
company_id: Joi.string().allow(""),
|
|
1867
|
-
created_at: Joi.string().allow(""),
|
|
1868
|
-
created_by: Joi.string().allow(""),
|
|
1869
|
-
creator: Joi.string().allow(""),
|
|
1870
|
-
description: Joi.string().allow(""),
|
|
1871
|
-
is_deleted: Joi.boolean(),
|
|
1872
|
-
key: Joi.string().allow(""),
|
|
1873
|
-
metaobject_definition_id: Joi.string().allow(""),
|
|
1874
|
-
multi_value: Joi.boolean(),
|
|
1875
|
-
name: Joi.string().allow(""),
|
|
1876
|
-
namespace: Joi.string().allow(""),
|
|
1877
|
-
required: Joi.boolean(),
|
|
1878
|
-
resource: Joi.string().allow(""),
|
|
1879
|
-
type: Joi.string().allow(""),
|
|
1880
|
-
updated_at: Joi.string().allow(""),
|
|
1881
|
-
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
1882
|
-
});
|
|
1883
|
-
}
|
|
1884
|
-
|
|
1885
|
-
/** @returns {CustomObjectCustomFieldDefinitions} */
|
|
1886
|
-
static CustomObjectCustomFieldDefinitions() {
|
|
1887
|
-
return Joi.object({
|
|
1888
|
-
action: Joi.string().allow(""),
|
|
1889
|
-
description: Joi.string().allow(""),
|
|
1890
|
-
id: Joi.string().allow(""),
|
|
1891
|
-
key: Joi.string().allow(""),
|
|
1892
|
-
multi_value: Joi.boolean(),
|
|
1893
|
-
name: Joi.string().allow(""),
|
|
1894
|
-
required: Joi.boolean(),
|
|
1895
|
-
type: Joi.string().allow(""),
|
|
1896
|
-
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
1897
|
-
});
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
/** @returns {CustomObjectDefinitionDeleteResponseSchema} */
|
|
1901
|
-
static CustomObjectDefinitionDeleteResponseSchema() {
|
|
1902
|
-
return Joi.object({
|
|
1903
|
-
message: Joi.string().allow(""),
|
|
1904
|
-
success: Joi.boolean(),
|
|
1905
|
-
});
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
|
-
/** @returns {CustomObjectDefinitionRequestSchema} */
|
|
1909
|
-
static CustomObjectDefinitionRequestSchema() {
|
|
1910
|
-
return Joi.object({
|
|
1911
|
-
description: Joi.string().allow(""),
|
|
1912
|
-
display_name_key: Joi.string().allow(""),
|
|
1913
|
-
field_definitions: Joi.array().items(
|
|
1914
|
-
ContentPlatformModel.CustomObjectCustomFieldDefinitions()
|
|
1915
|
-
),
|
|
1916
|
-
name: Joi.string().allow(""),
|
|
1917
|
-
type: Joi.string().allow(""),
|
|
1918
|
-
});
|
|
1919
|
-
}
|
|
1920
|
-
|
|
1921
|
-
/** @returns {CustomObjectDefinitionSchema} */
|
|
1922
|
-
static CustomObjectDefinitionSchema() {
|
|
1923
|
-
return Joi.object({
|
|
1924
|
-
_id: Joi.string().allow(""),
|
|
1925
|
-
created_by: Joi.string().allow(""),
|
|
1926
|
-
creator: Joi.string().allow(""),
|
|
1927
|
-
description: Joi.string().allow(""),
|
|
1928
|
-
display_name_key: Joi.string().allow(""),
|
|
1929
|
-
field_definitions: Joi.array().items(
|
|
1930
|
-
ContentPlatformModel.CustomObjectCustomFieldDefinitionResSchema()
|
|
1931
|
-
),
|
|
1932
|
-
name: Joi.string().allow(""),
|
|
1933
|
-
type: Joi.string().allow(""),
|
|
1934
|
-
updated_by: Joi.string().allow(""),
|
|
1935
|
-
});
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
/** @returns {CustomObjectDefinitionsSchema} */
|
|
1939
|
-
static CustomObjectDefinitionsSchema() {
|
|
1940
|
-
return Joi.object({
|
|
1941
|
-
items: Joi.array().items(ContentPlatformModel.CustomObjectEntry()),
|
|
1942
|
-
page: ContentPlatformModel.Page(),
|
|
1943
|
-
});
|
|
1944
|
-
}
|
|
1945
|
-
|
|
1946
|
-
/** @returns {CustomObjectDefinitionUpdateRequestSchema} */
|
|
1947
|
-
static CustomObjectDefinitionUpdateRequestSchema() {
|
|
1948
|
-
return Joi.object({
|
|
1949
|
-
description: Joi.string().allow(""),
|
|
1950
|
-
display_name_key: Joi.string().allow(""),
|
|
1951
|
-
field_definitions: Joi.array().items(
|
|
1952
|
-
ContentPlatformModel.CustomObjectCustomFieldDefinitions()
|
|
1953
|
-
),
|
|
1954
|
-
name: Joi.string().allow(""),
|
|
1955
|
-
type: Joi.string().allow(""),
|
|
1956
|
-
});
|
|
1957
|
-
}
|
|
1958
|
-
|
|
1959
|
-
/** @returns {CustomObjectEntry} */
|
|
1960
|
-
static CustomObjectEntry() {
|
|
1961
|
-
return Joi.object({
|
|
1962
|
-
_id: Joi.string().allow(""),
|
|
1963
|
-
entries_count: Joi.number(),
|
|
1964
|
-
fields_count: Joi.number(),
|
|
1965
|
-
name: Joi.string().allow(""),
|
|
1966
|
-
type: Joi.string().allow(""),
|
|
1967
|
-
updated_at: Joi.string().allow(""),
|
|
1968
|
-
});
|
|
1969
|
-
}
|
|
1970
|
-
|
|
1971
|
-
/** @returns {CustomObjectEntryBulkUploadResponse} */
|
|
1972
|
-
static CustomObjectEntryBulkUploadResponse() {
|
|
1973
|
-
return Joi.object({
|
|
1974
|
-
total_records: Joi.number(),
|
|
1975
|
-
url: Joi.string().allow(""),
|
|
1976
|
-
});
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
|
-
/** @returns {CustomObjectEntryFieldSchema} */
|
|
1980
|
-
static CustomObjectEntryFieldSchema() {
|
|
1981
|
-
return Joi.object({
|
|
1982
|
-
definition_id: Joi.string().allow(""),
|
|
1983
|
-
value: Joi.array().items(Joi.any()),
|
|
1984
|
-
});
|
|
1985
|
-
}
|
|
1986
|
-
|
|
1987
|
-
/** @returns {CustomObjectFieldSchema} */
|
|
1988
|
-
static CustomObjectFieldSchema() {
|
|
800
|
+
class ContentPlatformModel {
|
|
801
|
+
/** @returns {GenerateSEOContent} */
|
|
802
|
+
static GenerateSEOContent() {
|
|
1989
803
|
return Joi.object({
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
804
|
+
text: Joi.string().allow(""),
|
|
805
|
+
existing_text: Joi.string().allow(""),
|
|
806
|
+
keywords: Joi.array().items(Joi.string().allow("")),
|
|
1993
807
|
type: Joi.string().allow(""),
|
|
1994
|
-
value: Joi.array().items(Joi.any()),
|
|
1995
|
-
});
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
/** @returns {CustomObjectJobSchema} */
|
|
1999
|
-
static CustomObjectJobSchema() {
|
|
2000
|
-
return Joi.object({
|
|
2001
|
-
_id: Joi.string().allow(""),
|
|
2002
|
-
action_type: Joi.string().allow(""),
|
|
2003
|
-
company_id: Joi.string().allow(""),
|
|
2004
|
-
created_at: Joi.string().allow(""),
|
|
2005
|
-
created_by: Joi.string().allow(""),
|
|
2006
|
-
creator: Joi.string().allow(""),
|
|
2007
|
-
entity: Joi.string().allow(""),
|
|
2008
|
-
error_count: Joi.number(),
|
|
2009
|
-
error_jobs: Joi.array().items(Joi.string().allow("")),
|
|
2010
|
-
error_url: Joi.string().allow(""),
|
|
2011
|
-
errors_occured: Joi.array().items(Joi.string().allow("")),
|
|
2012
|
-
finished_count: Joi.number(),
|
|
2013
|
-
finished_jobs: Joi.array().items(Joi.string().allow("")),
|
|
2014
|
-
jobs: Joi.array().items(Joi.string().allow("")),
|
|
2015
|
-
meta: ContentPlatformModel.CustomObjectMetaSchema(),
|
|
2016
|
-
status: Joi.string().allow(""),
|
|
2017
|
-
success_count: Joi.number(),
|
|
2018
|
-
total_jobs: Joi.number(),
|
|
2019
|
-
updated_at: Joi.string().allow(""),
|
|
2020
|
-
url: Joi.string().allow(""),
|
|
2021
808
|
});
|
|
2022
809
|
}
|
|
2023
810
|
|
|
2024
|
-
/** @returns {
|
|
2025
|
-
static
|
|
811
|
+
/** @returns {GeneratedSEOContent} */
|
|
812
|
+
static GeneratedSEOContent() {
|
|
2026
813
|
return Joi.object({
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
type: Joi.string().allow(""),
|
|
814
|
+
title: Joi.string().allow(""),
|
|
815
|
+
description: Joi.string().allow(""),
|
|
2030
816
|
});
|
|
2031
817
|
}
|
|
2032
818
|
|
|
2033
|
-
/** @returns {
|
|
2034
|
-
static
|
|
819
|
+
/** @returns {ApplicationLegal} */
|
|
820
|
+
static ApplicationLegal() {
|
|
2035
821
|
return Joi.object({
|
|
822
|
+
application: Joi.string().allow(""),
|
|
823
|
+
tnc: Joi.string().allow(""),
|
|
824
|
+
policy: Joi.string().allow(""),
|
|
825
|
+
shipping: Joi.string().allow(""),
|
|
826
|
+
returns: Joi.string().allow(""),
|
|
827
|
+
faq: Joi.array().items(ContentPlatformModel.ApplicationLegalFAQ()),
|
|
2036
828
|
_id: Joi.string().allow(""),
|
|
2037
|
-
definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
|
|
2038
|
-
definition_id: Joi.string().allow(""),
|
|
2039
|
-
display_name: Joi.string().allow(""),
|
|
2040
|
-
references: Joi.number(),
|
|
2041
|
-
status: Joi.string().allow(""),
|
|
2042
829
|
updated_at: Joi.string().allow(""),
|
|
830
|
+
created_at: Joi.string().allow(""),
|
|
2043
831
|
});
|
|
2044
832
|
}
|
|
2045
833
|
|
|
2046
|
-
/** @returns {
|
|
2047
|
-
static
|
|
2048
|
-
return Joi.object({
|
|
2049
|
-
mo_defintion_type: Joi.string().allow(""),
|
|
2050
|
-
mo_error_count: Joi.number(),
|
|
2051
|
-
mo_success_count: Joi.number(),
|
|
2052
|
-
mo_total_count: Joi.number(),
|
|
2053
|
-
});
|
|
2054
|
-
}
|
|
2055
|
-
|
|
2056
|
-
/** @returns {CustomObjectRequestSchema} */
|
|
2057
|
-
static CustomObjectRequestSchema() {
|
|
2058
|
-
return Joi.object({
|
|
2059
|
-
definition_id: Joi.string().allow(""),
|
|
2060
|
-
fields: Joi.array().items(
|
|
2061
|
-
ContentPlatformModel.CustomObjectEntryFieldSchema()
|
|
2062
|
-
),
|
|
2063
|
-
status: Joi.string().allow(""),
|
|
2064
|
-
});
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
|
-
/** @returns {CustomObjectSchema} */
|
|
2068
|
-
static CustomObjectSchema() {
|
|
2069
|
-
return Joi.object({
|
|
2070
|
-
_id: Joi.string().allow(""),
|
|
2071
|
-
application_id: Joi.string().allow(""),
|
|
2072
|
-
company_id: Joi.string().allow(""),
|
|
2073
|
-
created_by: Joi.string().allow(""),
|
|
2074
|
-
creator: Joi.string().allow(""),
|
|
2075
|
-
definition_id: Joi.string().allow(""),
|
|
2076
|
-
display_name: Joi.string().allow(""),
|
|
2077
|
-
fields: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
|
|
2078
|
-
status: Joi.string().allow(""),
|
|
2079
|
-
type: Joi.string().allow(""),
|
|
2080
|
-
updated_by: Joi.string().allow(""),
|
|
2081
|
-
});
|
|
2082
|
-
}
|
|
2083
|
-
|
|
2084
|
-
/** @returns {CustomObjectsSchema} */
|
|
2085
|
-
static CustomObjectsSchema() {
|
|
2086
|
-
return Joi.object({
|
|
2087
|
-
items: Joi.array().items(
|
|
2088
|
-
ContentPlatformModel.CustomObjectListItemSchema()
|
|
2089
|
-
),
|
|
2090
|
-
page: ContentPlatformModel.Page(),
|
|
2091
|
-
});
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
|
-
/** @returns {DataLoaderResetResponseSchema} */
|
|
2095
|
-
static DataLoaderResetResponseSchema() {
|
|
834
|
+
/** @returns {ApplicationLegalFAQ} */
|
|
835
|
+
static ApplicationLegalFAQ() {
|
|
2096
836
|
return Joi.object({
|
|
2097
|
-
|
|
837
|
+
question: Joi.string().allow(""),
|
|
838
|
+
answer: Joi.string().allow(""),
|
|
2098
839
|
});
|
|
2099
840
|
}
|
|
2100
841
|
|
|
2101
|
-
/** @returns {
|
|
2102
|
-
static
|
|
842
|
+
/** @returns {PathMappingSchema} */
|
|
843
|
+
static PathMappingSchema() {
|
|
2103
844
|
return Joi.object({
|
|
2104
|
-
__source: ContentPlatformModel.DataLoaderSourceSchema(),
|
|
2105
|
-
_id: Joi.string().allow(""),
|
|
2106
845
|
application: Joi.string().allow(""),
|
|
2107
|
-
company: Joi.string().allow(""),
|
|
2108
|
-
content: Joi.string().allow(""),
|
|
2109
|
-
name: Joi.string().allow(""),
|
|
2110
|
-
operation_id: Joi.string().allow(""),
|
|
2111
|
-
service: Joi.string().allow(""),
|
|
2112
|
-
type: Joi.string().allow(""),
|
|
2113
|
-
url: Joi.string().allow(""),
|
|
2114
|
-
});
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
/** @returns {DataLoaderSchema} */
|
|
2118
|
-
static DataLoaderSchema() {
|
|
2119
|
-
return Joi.object({
|
|
2120
|
-
__source: ContentPlatformModel.DataLoaderSourceSchema(),
|
|
2121
846
|
_id: Joi.string().allow(""),
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
url: Joi.string().allow(""),
|
|
847
|
+
redirect_from: Joi.string().allow(""),
|
|
848
|
+
redirect_to: Joi.string().allow(""),
|
|
849
|
+
updated_at: Joi.string().allow(""),
|
|
850
|
+
created_at: Joi.string().allow(""),
|
|
851
|
+
__source: ContentPlatformModel.PathSourceSchema(),
|
|
2128
852
|
});
|
|
2129
853
|
}
|
|
2130
854
|
|
|
2131
|
-
/** @returns {
|
|
2132
|
-
static
|
|
855
|
+
/** @returns {PathSourceSchema} */
|
|
856
|
+
static PathSourceSchema() {
|
|
2133
857
|
return Joi.object({
|
|
2134
|
-
id: Joi.string().allow(""),
|
|
2135
858
|
type: Joi.string().allow(""),
|
|
859
|
+
id: Joi.string().allow(""),
|
|
2136
860
|
});
|
|
2137
861
|
}
|
|
2138
862
|
|
|
2139
|
-
/** @returns {
|
|
2140
|
-
static
|
|
2141
|
-
return Joi.object({
|
|
2142
|
-
items: Joi.array().items(ContentPlatformModel.DataLoaderSchema()),
|
|
2143
|
-
});
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2146
|
-
/** @returns {Date} */
|
|
2147
|
-
static Date() {
|
|
863
|
+
/** @returns {SeoComponent} */
|
|
864
|
+
static SeoComponent() {
|
|
2148
865
|
return Joi.object({
|
|
2149
|
-
|
|
2150
|
-
list_enabled: Joi.boolean(),
|
|
2151
|
-
name: Joi.string().allow(""),
|
|
2152
|
-
supported_validations: Joi.array().items(
|
|
2153
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
2154
|
-
),
|
|
2155
|
-
type: Joi.string().allow(""),
|
|
866
|
+
seo: ContentPlatformModel.SeoSchema(),
|
|
2156
867
|
});
|
|
2157
868
|
}
|
|
2158
869
|
|
|
2159
|
-
/** @returns {
|
|
2160
|
-
static
|
|
870
|
+
/** @returns {SeoSchema} */
|
|
871
|
+
static SeoSchema() {
|
|
2161
872
|
return Joi.object({
|
|
2162
|
-
|
|
2163
|
-
|
|
873
|
+
app: Joi.string().allow(""),
|
|
874
|
+
_id: Joi.string().allow(""),
|
|
875
|
+
robots_txt: Joi.string().allow(""),
|
|
876
|
+
sitemap_enabled: Joi.boolean(),
|
|
877
|
+
cannonical_enabled: Joi.boolean(),
|
|
878
|
+
custom_meta_tags: Joi.array().items(ContentPlatformModel.CustomMetaTag()),
|
|
879
|
+
details: ContentPlatformModel.Detail(),
|
|
880
|
+
created_at: Joi.string().allow(""),
|
|
881
|
+
updated_at: Joi.string().allow(""),
|
|
2164
882
|
});
|
|
2165
883
|
}
|
|
2166
884
|
|
|
2167
|
-
/** @returns {
|
|
2168
|
-
static
|
|
885
|
+
/** @returns {CustomMetaTag} */
|
|
886
|
+
static CustomMetaTag() {
|
|
2169
887
|
return Joi.object({
|
|
2170
|
-
category: Joi.string().allow(""),
|
|
2171
|
-
list_enabled: Joi.boolean(),
|
|
2172
888
|
name: Joi.string().allow(""),
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
),
|
|
2176
|
-
type: Joi.string().allow(""),
|
|
2177
|
-
});
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
|
-
/** @returns {DefaultNavigationResponse} */
|
|
2181
|
-
static DefaultNavigationResponse() {
|
|
2182
|
-
return Joi.object({
|
|
2183
|
-
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
2184
|
-
});
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
/** @returns {DefaultSchemaComponent} */
|
|
2188
|
-
static DefaultSchemaComponent() {
|
|
2189
|
-
return Joi.object({
|
|
2190
|
-
items: Joi.array().items(
|
|
2191
|
-
ContentPlatformModel.DefaultSEOSchemaMarkupTemplate()
|
|
2192
|
-
),
|
|
2193
|
-
});
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
/** @returns {DefaultSEOSchemaMarkupTemplate} */
|
|
2197
|
-
static DefaultSEOSchemaMarkupTemplate() {
|
|
2198
|
-
return Joi.object({
|
|
2199
|
-
page_type: Joi.string().allow(""),
|
|
2200
|
-
schema: Joi.string().allow(""),
|
|
2201
|
-
target_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
889
|
+
content: Joi.string().allow(""),
|
|
890
|
+
_id: Joi.string().allow(""),
|
|
2202
891
|
});
|
|
2203
892
|
}
|
|
2204
893
|
|
|
2205
894
|
/** @returns {Detail} */
|
|
2206
895
|
static Detail() {
|
|
2207
896
|
return Joi.object({
|
|
897
|
+
title: Joi.string().allow(""),
|
|
2208
898
|
description: Joi.string().allow(""),
|
|
2209
899
|
image_url: Joi.string().allow(""),
|
|
2210
|
-
title: Joi.string().allow(""),
|
|
2211
900
|
});
|
|
2212
901
|
}
|
|
2213
902
|
|
|
2214
|
-
/** @returns {
|
|
2215
|
-
static
|
|
903
|
+
/** @returns {AnnouncementPageSchema} */
|
|
904
|
+
static AnnouncementPageSchema() {
|
|
2216
905
|
return Joi.object({
|
|
2217
|
-
|
|
2218
|
-
list_enabled: Joi.boolean(),
|
|
2219
|
-
name: Joi.string().allow(""),
|
|
2220
|
-
supported_validations: Joi.array().items(
|
|
2221
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
2222
|
-
),
|
|
906
|
+
page_slug: Joi.string().allow(""),
|
|
2223
907
|
type: Joi.string().allow(""),
|
|
2224
908
|
});
|
|
2225
909
|
}
|
|
@@ -2227,140 +911,151 @@ class ContentPlatformModel {
|
|
|
2227
911
|
/** @returns {EditorMeta} */
|
|
2228
912
|
static EditorMeta() {
|
|
2229
913
|
return Joi.object({
|
|
914
|
+
foreground_color: Joi.string().allow(""),
|
|
2230
915
|
background_color: Joi.string().allow(""),
|
|
2231
|
-
content: Joi.string().allow(""),
|
|
2232
916
|
content_type: Joi.string().allow(""),
|
|
2233
|
-
|
|
917
|
+
content: Joi.string().allow(""),
|
|
2234
918
|
});
|
|
2235
919
|
}
|
|
2236
920
|
|
|
2237
|
-
/** @returns {
|
|
2238
|
-
static
|
|
921
|
+
/** @returns {AnnouncementAuthorSchema} */
|
|
922
|
+
static AnnouncementAuthorSchema() {
|
|
2239
923
|
return Joi.object({
|
|
2240
|
-
|
|
2241
|
-
|
|
924
|
+
created_by: Joi.string().allow(""),
|
|
925
|
+
modified_by: Joi.string().allow(""),
|
|
2242
926
|
});
|
|
2243
927
|
}
|
|
2244
928
|
|
|
2245
|
-
/** @returns {
|
|
2246
|
-
static
|
|
929
|
+
/** @returns {AdminAnnouncementSchema} */
|
|
930
|
+
static AdminAnnouncementSchema() {
|
|
2247
931
|
return Joi.object({
|
|
2248
|
-
|
|
2249
|
-
|
|
932
|
+
_id: Joi.string().allow(""),
|
|
933
|
+
platforms: Joi.array().items(Joi.string().allow("")),
|
|
934
|
+
title: Joi.string().allow(""),
|
|
935
|
+
announcement: Joi.string().allow(""),
|
|
936
|
+
pages: Joi.array().items(ContentPlatformModel.AnnouncementPageSchema()),
|
|
937
|
+
editor_meta: ContentPlatformModel.EditorMeta(),
|
|
938
|
+
author: ContentPlatformModel.AnnouncementAuthorSchema(),
|
|
939
|
+
created_at: Joi.string().allow(""),
|
|
940
|
+
app: Joi.string().allow(""),
|
|
941
|
+
modified_at: Joi.string().allow(""),
|
|
942
|
+
_schedule: ContentPlatformModel.ScheduleSchema(),
|
|
2250
943
|
});
|
|
2251
944
|
}
|
|
2252
945
|
|
|
2253
|
-
/** @returns {
|
|
2254
|
-
static
|
|
946
|
+
/** @returns {ScheduleSchema} */
|
|
947
|
+
static ScheduleSchema() {
|
|
2255
948
|
return Joi.object({
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
949
|
+
cron: Joi.string().allow(""),
|
|
950
|
+
start: Joi.string().allow(""),
|
|
951
|
+
end: Joi.string().allow(""),
|
|
952
|
+
duration: Joi.number(),
|
|
953
|
+
next_schedule: Joi.array().items(ContentPlatformModel.NextSchedule()),
|
|
2259
954
|
});
|
|
2260
955
|
}
|
|
2261
956
|
|
|
2262
|
-
/** @returns {
|
|
2263
|
-
static
|
|
957
|
+
/** @returns {NextSchedule} */
|
|
958
|
+
static NextSchedule() {
|
|
2264
959
|
return Joi.object({
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
application: Joi.string().allow(""),
|
|
2268
|
-
children: Joi.array().items(ContentPlatformModel.ChildrenSchema()),
|
|
2269
|
-
description: Joi.string().allow(""),
|
|
2270
|
-
icon_url: Joi.string().allow(""),
|
|
2271
|
-
index: Joi.number(),
|
|
2272
|
-
slug: Joi.string().allow(""),
|
|
2273
|
-
title: Joi.string().allow(""),
|
|
960
|
+
start: Joi.string().allow(""),
|
|
961
|
+
end: Joi.string().allow(""),
|
|
2274
962
|
});
|
|
2275
963
|
}
|
|
2276
964
|
|
|
2277
|
-
/** @returns {
|
|
2278
|
-
static
|
|
965
|
+
/** @returns {BlogGetResponse} */
|
|
966
|
+
static BlogGetResponse() {
|
|
2279
967
|
return Joi.object({
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
application: Joi.string().allow(""),
|
|
2283
|
-
question: Joi.string().allow(""),
|
|
2284
|
-
slug: Joi.string().allow(""),
|
|
2285
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
968
|
+
items: Joi.array().items(ContentPlatformModel.BlogSchema()),
|
|
969
|
+
page: ContentPlatformModel.Page(),
|
|
2286
970
|
});
|
|
2287
971
|
}
|
|
2288
972
|
|
|
2289
|
-
/** @returns {
|
|
2290
|
-
static
|
|
973
|
+
/** @returns {ResourceContent} */
|
|
974
|
+
static ResourceContent() {
|
|
2291
975
|
return Joi.object({
|
|
2292
|
-
_id: Joi.string().allow(""),
|
|
2293
|
-
company_id: Joi.string().allow(""),
|
|
2294
|
-
created_at: Joi.string().allow(""),
|
|
2295
|
-
created_by: Joi.string().allow(""),
|
|
2296
|
-
creator: Joi.string().allow(""),
|
|
2297
|
-
description: Joi.string().allow(""),
|
|
2298
|
-
invalid_fields_count: Joi.number(),
|
|
2299
|
-
is_deleted: Joi.boolean(),
|
|
2300
|
-
key: Joi.string().allow(""),
|
|
2301
|
-
multi_value: Joi.boolean(),
|
|
2302
|
-
name: Joi.string().allow(""),
|
|
2303
|
-
namespace: Joi.string().allow(""),
|
|
2304
|
-
required: Joi.boolean(),
|
|
2305
|
-
resource: Joi.string().allow(""),
|
|
2306
976
|
type: Joi.string().allow(""),
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
977
|
+
value: Joi.string().allow(""),
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
/** @returns {Asset} */
|
|
982
|
+
static Asset() {
|
|
983
|
+
return Joi.object({
|
|
984
|
+
aspect_ratio: Joi.string().allow(""),
|
|
985
|
+
id: Joi.string().allow(""),
|
|
986
|
+
secure_url: Joi.string().allow(""),
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/** @returns {Author} */
|
|
991
|
+
static Author() {
|
|
992
|
+
return Joi.object({
|
|
993
|
+
designation: Joi.string().allow(""),
|
|
994
|
+
id: Joi.string().allow(""),
|
|
995
|
+
name: Joi.string().allow(""),
|
|
2311
996
|
});
|
|
2312
997
|
}
|
|
2313
998
|
|
|
2314
|
-
/** @returns {
|
|
2315
|
-
static
|
|
999
|
+
/** @returns {BlogSchema} */
|
|
1000
|
+
static BlogSchema() {
|
|
2316
1001
|
return Joi.object({
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
1002
|
+
_id: Joi.string().allow(""),
|
|
1003
|
+
_custom_json: Joi.any(),
|
|
1004
|
+
application: Joi.string().allow(""),
|
|
1005
|
+
archived: Joi.boolean(),
|
|
1006
|
+
author: ContentPlatformModel.Author(),
|
|
1007
|
+
content: Joi.array().items(ContentPlatformModel.ResourceContent()),
|
|
1008
|
+
feature_image: ContentPlatformModel.Asset(),
|
|
1009
|
+
published: Joi.boolean(),
|
|
1010
|
+
reading_time: Joi.string().allow(""),
|
|
1011
|
+
slug: Joi.string().allow(""),
|
|
1012
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
1013
|
+
seo: ContentPlatformModel.SEO(),
|
|
1014
|
+
_schedule: ContentPlatformModel.CronSchedule(),
|
|
1015
|
+
title: Joi.string().allow(""),
|
|
1016
|
+
date_meta: ContentPlatformModel.DateMeta(),
|
|
2320
1017
|
});
|
|
2321
1018
|
}
|
|
2322
1019
|
|
|
2323
|
-
/** @returns {
|
|
2324
|
-
static
|
|
1020
|
+
/** @returns {SEO} */
|
|
1021
|
+
static SEO() {
|
|
2325
1022
|
return Joi.object({
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
supported_validations: Joi.array().items(
|
|
2330
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
2331
|
-
),
|
|
2332
|
-
type: Joi.string().allow(""),
|
|
1023
|
+
description: Joi.string().allow(""),
|
|
1024
|
+
image: ContentPlatformModel.SEOImage(),
|
|
1025
|
+
title: Joi.string().allow(""),
|
|
2333
1026
|
});
|
|
2334
1027
|
}
|
|
2335
1028
|
|
|
2336
|
-
/** @returns {
|
|
2337
|
-
static
|
|
1029
|
+
/** @returns {SEOImage} */
|
|
1030
|
+
static SEOImage() {
|
|
2338
1031
|
return Joi.object({
|
|
2339
|
-
|
|
2340
|
-
list_enabled: Joi.boolean(),
|
|
2341
|
-
name: Joi.string().allow(""),
|
|
2342
|
-
supported_validations: Joi.array().items(
|
|
2343
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
2344
|
-
),
|
|
2345
|
-
type: Joi.string().allow(""),
|
|
1032
|
+
url: Joi.string().allow(""),
|
|
2346
1033
|
});
|
|
2347
1034
|
}
|
|
2348
1035
|
|
|
2349
|
-
/** @returns {
|
|
2350
|
-
static
|
|
1036
|
+
/** @returns {DateMeta} */
|
|
1037
|
+
static DateMeta() {
|
|
2351
1038
|
return Joi.object({
|
|
2352
|
-
|
|
2353
|
-
|
|
1039
|
+
created_on: Joi.string().allow(""),
|
|
1040
|
+
modified_on: Joi.string().allow(""),
|
|
2354
1041
|
});
|
|
2355
1042
|
}
|
|
2356
1043
|
|
|
2357
|
-
/** @returns {
|
|
2358
|
-
static
|
|
1044
|
+
/** @returns {BlogRequest} */
|
|
1045
|
+
static BlogRequest() {
|
|
2359
1046
|
return Joi.object({
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
1047
|
+
application: Joi.string().allow(""),
|
|
1048
|
+
_custom_json: Joi.any(),
|
|
1049
|
+
author: ContentPlatformModel.Author(),
|
|
1050
|
+
content: Joi.array().items(ContentPlatformModel.ResourceContent()),
|
|
1051
|
+
feature_image: ContentPlatformModel.Asset(),
|
|
1052
|
+
published: Joi.boolean(),
|
|
1053
|
+
reading_time: Joi.string().allow(""),
|
|
1054
|
+
slug: Joi.string().allow(""),
|
|
1055
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
1056
|
+
title: Joi.string().allow(""),
|
|
1057
|
+
seo: ContentPlatformModel.SEO(),
|
|
1058
|
+
_schedule: ContentPlatformModel.CronSchedule(),
|
|
2364
1059
|
});
|
|
2365
1060
|
}
|
|
2366
1061
|
|
|
@@ -2372,678 +1067,667 @@ class ContentPlatformModel {
|
|
|
2372
1067
|
});
|
|
2373
1068
|
}
|
|
2374
1069
|
|
|
2375
|
-
/** @returns {
|
|
2376
|
-
static
|
|
1070
|
+
/** @returns {CreateAnnouncementSchema} */
|
|
1071
|
+
static CreateAnnouncementSchema() {
|
|
2377
1072
|
return Joi.object({
|
|
2378
|
-
|
|
1073
|
+
message: Joi.string().allow(""),
|
|
1074
|
+
data: ContentPlatformModel.AdminAnnouncementSchema(),
|
|
2379
1075
|
});
|
|
2380
1076
|
}
|
|
2381
1077
|
|
|
2382
|
-
/** @returns {
|
|
2383
|
-
static
|
|
1078
|
+
/** @returns {DataLoaderResponseSchema} */
|
|
1079
|
+
static DataLoaderResponseSchema() {
|
|
2384
1080
|
return Joi.object({
|
|
2385
|
-
|
|
1081
|
+
application: Joi.string().allow(""),
|
|
1082
|
+
company: Joi.string().allow(""),
|
|
1083
|
+
_id: Joi.string().allow(""),
|
|
1084
|
+
name: Joi.string().allow(""),
|
|
1085
|
+
service: Joi.string().allow(""),
|
|
1086
|
+
operation_id: Joi.string().allow(""),
|
|
1087
|
+
type: Joi.string().allow(""),
|
|
1088
|
+
url: Joi.string().allow(""),
|
|
1089
|
+
content: Joi.string().allow(""),
|
|
1090
|
+
__source: ContentPlatformModel.DataLoaderSourceSchema(),
|
|
2386
1091
|
});
|
|
2387
1092
|
}
|
|
2388
1093
|
|
|
2389
|
-
/** @returns {
|
|
2390
|
-
static
|
|
1094
|
+
/** @returns {DataLoaderResetResponseSchema} */
|
|
1095
|
+
static DataLoaderResetResponseSchema() {
|
|
2391
1096
|
return Joi.object({
|
|
2392
|
-
|
|
1097
|
+
reset: Joi.boolean(),
|
|
2393
1098
|
});
|
|
2394
1099
|
}
|
|
2395
1100
|
|
|
2396
|
-
/** @returns {
|
|
2397
|
-
static
|
|
1101
|
+
/** @returns {LocaleLanguage} */
|
|
1102
|
+
static LocaleLanguage() {
|
|
2398
1103
|
return Joi.object({
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
position: Joi.string().allow(""),
|
|
2403
|
-
sub_type: Joi.string().allow(""),
|
|
2404
|
-
type: Joi.string().allow(""),
|
|
2405
|
-
url: Joi.string().allow(""),
|
|
1104
|
+
hi: ContentPlatformModel.Language(),
|
|
1105
|
+
ar: ContentPlatformModel.Language(),
|
|
1106
|
+
en_us: ContentPlatformModel.Language(),
|
|
2406
1107
|
});
|
|
2407
1108
|
}
|
|
2408
1109
|
|
|
2409
|
-
/** @returns {
|
|
2410
|
-
static
|
|
1110
|
+
/** @returns {Language} */
|
|
1111
|
+
static Language() {
|
|
2411
1112
|
return Joi.object({
|
|
2412
|
-
|
|
2413
|
-
list_enabled: Joi.boolean(),
|
|
2414
|
-
name: Joi.string().allow(""),
|
|
2415
|
-
supported_validations: Joi.array().items(
|
|
2416
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
2417
|
-
),
|
|
2418
|
-
type: Joi.string().allow(""),
|
|
1113
|
+
display: Joi.string().allow(""),
|
|
2419
1114
|
});
|
|
2420
1115
|
}
|
|
2421
1116
|
|
|
2422
|
-
/** @returns {
|
|
2423
|
-
static
|
|
1117
|
+
/** @returns {Action} */
|
|
1118
|
+
static Action() {
|
|
2424
1119
|
return Joi.object({
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
name: Joi.string().allow(""),
|
|
2428
|
-
supported_validations: Joi.array().items(
|
|
2429
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
2430
|
-
),
|
|
1120
|
+
page: ContentPlatformModel.ActionPage(),
|
|
1121
|
+
popup: ContentPlatformModel.ActionPage(),
|
|
2431
1122
|
type: Joi.string().allow(""),
|
|
2432
1123
|
});
|
|
2433
1124
|
}
|
|
2434
1125
|
|
|
2435
|
-
/** @returns {
|
|
2436
|
-
static
|
|
1126
|
+
/** @returns {ActionPage} */
|
|
1127
|
+
static ActionPage() {
|
|
2437
1128
|
return Joi.object({
|
|
2438
|
-
|
|
2439
|
-
|
|
1129
|
+
params: Joi.object().pattern(
|
|
1130
|
+
/\S/,
|
|
1131
|
+
Joi.array().items(Joi.string().allow(""))
|
|
1132
|
+
),
|
|
1133
|
+
query: Joi.object().pattern(
|
|
1134
|
+
/\S/,
|
|
1135
|
+
Joi.array().items(Joi.string().allow(""))
|
|
1136
|
+
),
|
|
1137
|
+
url: Joi.string().allow(""),
|
|
1138
|
+
type: ContentPlatformModel.PageType().required(),
|
|
2440
1139
|
});
|
|
2441
1140
|
}
|
|
2442
1141
|
|
|
2443
|
-
/** @returns {
|
|
2444
|
-
static
|
|
1142
|
+
/** @returns {NavigationReference} */
|
|
1143
|
+
static NavigationReference() {
|
|
2445
1144
|
return Joi.object({
|
|
2446
|
-
|
|
2447
|
-
|
|
1145
|
+
acl: Joi.array().items(Joi.string().allow("")),
|
|
1146
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
1147
|
+
_locale_language: ContentPlatformModel.LocaleLanguage(),
|
|
1148
|
+
image: Joi.string().allow(""),
|
|
1149
|
+
type: Joi.string().allow(""),
|
|
2448
1150
|
action: ContentPlatformModel.Action(),
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
1151
|
+
active: Joi.boolean(),
|
|
1152
|
+
display: Joi.string().allow(""),
|
|
1153
|
+
sort_order: Joi.number(),
|
|
1154
|
+
sub_navigation: Joi.array().items(Joi.link("#NavigationReference")),
|
|
1155
|
+
}).id("NavigationReference");
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
/** @returns {ConfigurationSchema} */
|
|
1159
|
+
static ConfigurationSchema() {
|
|
1160
|
+
return Joi.object({
|
|
1161
|
+
sleep_time: Joi.number(),
|
|
1162
|
+
start_on_launch: Joi.boolean(),
|
|
1163
|
+
duration: Joi.number(),
|
|
1164
|
+
slide_direction: Joi.string().allow(""),
|
|
2455
1165
|
});
|
|
2456
1166
|
}
|
|
2457
1167
|
|
|
2458
|
-
/** @returns {
|
|
2459
|
-
static
|
|
1168
|
+
/** @returns {SlideshowMedia} */
|
|
1169
|
+
static SlideshowMedia() {
|
|
2460
1170
|
return Joi.object({
|
|
2461
|
-
|
|
1171
|
+
type: Joi.string().allow(""),
|
|
1172
|
+
url: Joi.string().allow(""),
|
|
1173
|
+
bg_color: Joi.string().allow(""),
|
|
1174
|
+
duration: Joi.number(),
|
|
1175
|
+
auto_decide_duration: Joi.boolean(),
|
|
1176
|
+
action: ContentPlatformModel.Action(),
|
|
2462
1177
|
});
|
|
2463
1178
|
}
|
|
2464
1179
|
|
|
2465
|
-
/** @returns {
|
|
2466
|
-
static
|
|
1180
|
+
/** @returns {UpdateHandpickedSchema} */
|
|
1181
|
+
static UpdateHandpickedSchema() {
|
|
2467
1182
|
return Joi.object({
|
|
2468
|
-
|
|
2469
|
-
en_us: ContentPlatformModel.Language(),
|
|
2470
|
-
hi: ContentPlatformModel.Language(),
|
|
1183
|
+
tag: ContentPlatformModel.HandpickedTagSchema(),
|
|
2471
1184
|
});
|
|
2472
1185
|
}
|
|
2473
1186
|
|
|
2474
|
-
/** @returns {
|
|
2475
|
-
static
|
|
1187
|
+
/** @returns {HandpickedTagSchema} */
|
|
1188
|
+
static HandpickedTagSchema() {
|
|
2476
1189
|
return Joi.object({
|
|
2477
|
-
|
|
2478
|
-
|
|
1190
|
+
position: Joi.string().allow(""),
|
|
1191
|
+
attributes: Joi.any(),
|
|
2479
1192
|
name: Joi.string().allow(""),
|
|
2480
|
-
|
|
2481
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
2482
|
-
),
|
|
1193
|
+
url: Joi.string().allow(""),
|
|
2483
1194
|
type: Joi.string().allow(""),
|
|
1195
|
+
sub_type: Joi.string().allow(""),
|
|
1196
|
+
content: Joi.string().allow(""),
|
|
2484
1197
|
});
|
|
2485
1198
|
}
|
|
2486
1199
|
|
|
2487
|
-
/** @returns {
|
|
2488
|
-
static
|
|
1200
|
+
/** @returns {RemoveHandpickedSchema} */
|
|
1201
|
+
static RemoveHandpickedSchema() {
|
|
2489
1202
|
return Joi.object({
|
|
2490
|
-
|
|
2491
|
-
page: ContentPlatformModel.Page(),
|
|
1203
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
2492
1204
|
});
|
|
2493
1205
|
}
|
|
2494
1206
|
|
|
2495
|
-
/** @returns {
|
|
2496
|
-
static
|
|
1207
|
+
/** @returns {CreateTagSchema} */
|
|
1208
|
+
static CreateTagSchema() {
|
|
2497
1209
|
return Joi.object({
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
active: Joi.boolean(),
|
|
2502
|
-
display: Joi.string().allow(""),
|
|
2503
|
-
image: Joi.string().allow(""),
|
|
2504
|
-
sort_order: Joi.number(),
|
|
2505
|
-
sub_navigation: Joi.array().items(Joi.link("#NavigationReference")),
|
|
2506
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
1210
|
+
name: Joi.string().allow(""),
|
|
1211
|
+
sub_type: Joi.string().allow(""),
|
|
1212
|
+
_id: Joi.string().allow(""),
|
|
2507
1213
|
type: Joi.string().allow(""),
|
|
2508
|
-
|
|
1214
|
+
url: Joi.string().allow(""),
|
|
1215
|
+
position: Joi.string().allow(""),
|
|
1216
|
+
attributes: Joi.any(),
|
|
1217
|
+
pages: Joi.array().items(Joi.any()),
|
|
1218
|
+
content: Joi.string().allow(""),
|
|
1219
|
+
});
|
|
2509
1220
|
}
|
|
2510
1221
|
|
|
2511
|
-
/** @returns {
|
|
2512
|
-
static
|
|
1222
|
+
/** @returns {CreateTagRequestSchema} */
|
|
1223
|
+
static CreateTagRequestSchema() {
|
|
2513
1224
|
return Joi.object({
|
|
2514
|
-
|
|
2515
|
-
navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
|
|
2516
|
-
orientation: ContentPlatformModel.Orientation(),
|
|
2517
|
-
platform: Joi.array().items(Joi.string().allow("")),
|
|
2518
|
-
slug: Joi.string().allow(""),
|
|
1225
|
+
tags: Joi.array().items(ContentPlatformModel.CreateTagSchema()),
|
|
2519
1226
|
});
|
|
2520
1227
|
}
|
|
2521
1228
|
|
|
2522
|
-
/** @returns {
|
|
2523
|
-
static
|
|
1229
|
+
/** @returns {DataLoaderSchema} */
|
|
1230
|
+
static DataLoaderSchema() {
|
|
2524
1231
|
return Joi.object({
|
|
2525
|
-
_id: Joi.string().allow(""),
|
|
2526
|
-
application: Joi.string().allow(""),
|
|
2527
|
-
archived: Joi.boolean(),
|
|
2528
|
-
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
2529
|
-
date_meta: ContentPlatformModel.DateMeta(),
|
|
2530
1232
|
name: Joi.string().allow(""),
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
1233
|
+
service: Joi.string().allow(""),
|
|
1234
|
+
operation_id: Joi.string().allow(""),
|
|
1235
|
+
type: Joi.string().allow(""),
|
|
1236
|
+
url: Joi.string().allow(""),
|
|
1237
|
+
content: Joi.string().allow(""),
|
|
1238
|
+
__source: ContentPlatformModel.DataLoaderSourceSchema(),
|
|
1239
|
+
_id: Joi.string().allow(""),
|
|
1240
|
+
});
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
/** @returns {DataLoaderSourceSchema} */
|
|
1244
|
+
static DataLoaderSourceSchema() {
|
|
1245
|
+
return Joi.object({
|
|
1246
|
+
type: Joi.string().allow(""),
|
|
1247
|
+
id: Joi.string().allow(""),
|
|
2536
1248
|
});
|
|
2537
1249
|
}
|
|
2538
1250
|
|
|
2539
|
-
/** @returns {
|
|
2540
|
-
static
|
|
1251
|
+
/** @returns {DataLoadersSchema} */
|
|
1252
|
+
static DataLoadersSchema() {
|
|
2541
1253
|
return Joi.object({
|
|
2542
|
-
|
|
2543
|
-
start: Joi.string().allow(""),
|
|
1254
|
+
items: Joi.array().items(ContentPlatformModel.DataLoaderSchema()),
|
|
2544
1255
|
});
|
|
2545
1256
|
}
|
|
2546
1257
|
|
|
2547
|
-
/** @returns {
|
|
2548
|
-
static
|
|
1258
|
+
/** @returns {TagDeleteSuccessResponse} */
|
|
1259
|
+
static TagDeleteSuccessResponse() {
|
|
2549
1260
|
return Joi.object({
|
|
2550
|
-
|
|
2551
|
-
portrait: Joi.array().items(Joi.string().allow("")),
|
|
1261
|
+
success: Joi.boolean(),
|
|
2552
1262
|
});
|
|
2553
1263
|
}
|
|
2554
1264
|
|
|
2555
|
-
/** @returns {
|
|
2556
|
-
static
|
|
1265
|
+
/** @returns {ContentAPIError} */
|
|
1266
|
+
static ContentAPIError() {
|
|
2557
1267
|
return Joi.object({
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
1268
|
+
message: Joi.string().allow(""),
|
|
1269
|
+
status: Joi.number(),
|
|
1270
|
+
code: Joi.string().allow(""),
|
|
1271
|
+
exception: Joi.string().allow(""),
|
|
1272
|
+
info: Joi.string().allow(""),
|
|
1273
|
+
request_id: Joi.string().allow(""),
|
|
1274
|
+
stack_trace: Joi.string().allow(""),
|
|
1275
|
+
meta: Joi.any(),
|
|
2565
1276
|
});
|
|
2566
1277
|
}
|
|
2567
1278
|
|
|
2568
|
-
/** @returns {
|
|
2569
|
-
static
|
|
1279
|
+
/** @returns {CommonError} */
|
|
1280
|
+
static CommonError() {
|
|
2570
1281
|
return Joi.object({
|
|
2571
|
-
|
|
2572
|
-
page: ContentPlatformModel.Page(),
|
|
1282
|
+
message: Joi.string().allow(""),
|
|
2573
1283
|
});
|
|
2574
1284
|
}
|
|
2575
1285
|
|
|
2576
|
-
/** @returns {
|
|
2577
|
-
static
|
|
1286
|
+
/** @returns {CategorySchema} */
|
|
1287
|
+
static CategorySchema() {
|
|
2578
1288
|
return Joi.object({
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
1289
|
+
index: Joi.number(),
|
|
1290
|
+
title: Joi.string().allow(""),
|
|
1291
|
+
description: Joi.string().allow(""),
|
|
1292
|
+
children: Joi.array().items(Joi.string().allow("")),
|
|
1293
|
+
_id: Joi.string().allow(""),
|
|
1294
|
+
slug: Joi.string().allow(""),
|
|
1295
|
+
application: Joi.string().allow(""),
|
|
1296
|
+
icon_url: Joi.string().allow(""),
|
|
1297
|
+
_custom_json: Joi.any(),
|
|
2582
1298
|
});
|
|
2583
1299
|
}
|
|
2584
1300
|
|
|
2585
|
-
/** @returns {
|
|
2586
|
-
static
|
|
1301
|
+
/** @returns {ChildrenSchema} */
|
|
1302
|
+
static ChildrenSchema() {
|
|
2587
1303
|
return Joi.object({
|
|
2588
|
-
|
|
1304
|
+
question: Joi.string().allow(""),
|
|
1305
|
+
answer: Joi.string().allow(""),
|
|
1306
|
+
slug: Joi.string().allow(""),
|
|
1307
|
+
application: Joi.string().allow(""),
|
|
1308
|
+
_id: Joi.string().allow(""),
|
|
2589
1309
|
});
|
|
2590
1310
|
}
|
|
2591
1311
|
|
|
2592
|
-
/** @returns {
|
|
2593
|
-
static
|
|
1312
|
+
/** @returns {CategoryRequestSchema} */
|
|
1313
|
+
static CategoryRequestSchema() {
|
|
2594
1314
|
return Joi.object({
|
|
2595
|
-
_custom_json: Joi.any(),
|
|
2596
|
-
_schedule: ContentPlatformModel.CronSchedule(),
|
|
2597
|
-
application: Joi.string().allow(""),
|
|
2598
|
-
author: ContentPlatformModel.Author(),
|
|
2599
|
-
content: Joi.array().items(Joi.any()),
|
|
2600
|
-
feature_image: ContentPlatformModel.Asset(),
|
|
2601
|
-
orientation: Joi.string().allow(""),
|
|
2602
|
-
published: Joi.boolean(),
|
|
2603
|
-
reading_time: Joi.string().allow(""),
|
|
2604
|
-
seo: ContentPlatformModel.SEO(),
|
|
2605
1315
|
slug: Joi.string().allow(""),
|
|
2606
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
2607
1316
|
title: Joi.string().allow(""),
|
|
2608
1317
|
});
|
|
2609
1318
|
}
|
|
2610
1319
|
|
|
2611
|
-
/** @returns {
|
|
2612
|
-
static
|
|
1320
|
+
/** @returns {FAQCategorySchema} */
|
|
1321
|
+
static FAQCategorySchema() {
|
|
2613
1322
|
return Joi.object({
|
|
2614
|
-
|
|
1323
|
+
index: Joi.number(),
|
|
1324
|
+
title: Joi.string().allow(""),
|
|
1325
|
+
description: Joi.string().allow(""),
|
|
1326
|
+
children: Joi.array().items(ContentPlatformModel.ChildrenSchema()),
|
|
2615
1327
|
_id: Joi.string().allow(""),
|
|
2616
|
-
|
|
1328
|
+
slug: Joi.string().allow(""),
|
|
2617
1329
|
application: Joi.string().allow(""),
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
orientation: Joi.string().allow(""),
|
|
2627
|
-
page_meta: Joi.array().items(Joi.any()),
|
|
2628
|
-
platform: Joi.string().allow(""),
|
|
2629
|
-
published: Joi.boolean(),
|
|
2630
|
-
seo: ContentPlatformModel.SEO(),
|
|
1330
|
+
icon_url: Joi.string().allow(""),
|
|
1331
|
+
_custom_json: Joi.any(),
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
/** @returns {FaqSchema} */
|
|
1336
|
+
static FaqSchema() {
|
|
1337
|
+
return Joi.object({
|
|
2631
1338
|
slug: Joi.string().allow(""),
|
|
1339
|
+
application: Joi.string().allow(""),
|
|
1340
|
+
_id: Joi.string().allow(""),
|
|
1341
|
+
question: Joi.string().allow(""),
|
|
1342
|
+
answer: Joi.string().allow(""),
|
|
2632
1343
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
2633
|
-
title: Joi.string().allow(""),
|
|
2634
|
-
type: Joi.string().allow(""),
|
|
2635
|
-
visibility: Joi.any(),
|
|
2636
1344
|
});
|
|
2637
1345
|
}
|
|
2638
1346
|
|
|
2639
|
-
/** @returns {
|
|
2640
|
-
static
|
|
1347
|
+
/** @returns {FAQ} */
|
|
1348
|
+
static FAQ() {
|
|
2641
1349
|
return Joi.object({
|
|
2642
|
-
|
|
1350
|
+
slug: Joi.string().allow(""),
|
|
1351
|
+
question: Joi.string().allow(""),
|
|
1352
|
+
answer: Joi.string().allow(""),
|
|
2643
1353
|
});
|
|
2644
1354
|
}
|
|
2645
1355
|
|
|
2646
|
-
/** @returns {
|
|
2647
|
-
static
|
|
1356
|
+
/** @returns {CreateFaqResponseSchema} */
|
|
1357
|
+
static CreateFaqResponseSchema() {
|
|
2648
1358
|
return Joi.object({
|
|
2649
|
-
|
|
2650
|
-
page_type: Joi.string().allow(""),
|
|
2651
|
-
params: Joi.array().items(ContentPlatformModel.PageSpecParam()),
|
|
2652
|
-
query: Joi.array().items(ContentPlatformModel.PageSpecParam()),
|
|
1359
|
+
faq: ContentPlatformModel.FaqSchema(),
|
|
2653
1360
|
});
|
|
2654
1361
|
}
|
|
2655
1362
|
|
|
2656
|
-
/** @returns {
|
|
2657
|
-
static
|
|
1363
|
+
/** @returns {CreateFaqSchema} */
|
|
1364
|
+
static CreateFaqSchema() {
|
|
2658
1365
|
return Joi.object({
|
|
2659
|
-
|
|
2660
|
-
required: Joi.boolean(),
|
|
1366
|
+
faq: ContentPlatformModel.FAQ(),
|
|
2661
1367
|
});
|
|
2662
1368
|
}
|
|
2663
1369
|
|
|
2664
|
-
/** @returns {
|
|
2665
|
-
static
|
|
1370
|
+
/** @returns {GetFaqSchema} */
|
|
1371
|
+
static GetFaqSchema() {
|
|
2666
1372
|
return Joi.object({
|
|
2667
|
-
|
|
2668
|
-
_id: Joi.string().allow(""),
|
|
2669
|
-
application: Joi.string().allow(""),
|
|
2670
|
-
created_at: Joi.string().allow(""),
|
|
2671
|
-
redirect_from: Joi.string().allow(""),
|
|
2672
|
-
redirect_to: Joi.string().allow(""),
|
|
2673
|
-
updated_at: Joi.string().allow(""),
|
|
1373
|
+
faqs: Joi.array().items(ContentPlatformModel.FaqSchema()),
|
|
2674
1374
|
});
|
|
2675
1375
|
}
|
|
2676
1376
|
|
|
2677
|
-
/** @returns {
|
|
2678
|
-
static
|
|
1377
|
+
/** @returns {UpdateFaqCategoryRequestSchema} */
|
|
1378
|
+
static UpdateFaqCategoryRequestSchema() {
|
|
2679
1379
|
return Joi.object({
|
|
2680
|
-
|
|
2681
|
-
type: Joi.string().allow(""),
|
|
1380
|
+
category: ContentPlatformModel.CategorySchema(),
|
|
2682
1381
|
});
|
|
2683
1382
|
}
|
|
2684
1383
|
|
|
2685
|
-
/** @returns {
|
|
2686
|
-
static
|
|
1384
|
+
/** @returns {CreateFaqCategoryRequestSchema} */
|
|
1385
|
+
static CreateFaqCategoryRequestSchema() {
|
|
2687
1386
|
return Joi.object({
|
|
2688
|
-
|
|
2689
|
-
key: Joi.string().allow(""),
|
|
2690
|
-
number: Joi.string().allow(""),
|
|
1387
|
+
category: ContentPlatformModel.CategoryRequestSchema(),
|
|
2691
1388
|
});
|
|
2692
1389
|
}
|
|
2693
1390
|
|
|
2694
|
-
/** @returns {
|
|
2695
|
-
static
|
|
1391
|
+
/** @returns {CreateFaqCategorySchema} */
|
|
1392
|
+
static CreateFaqCategorySchema() {
|
|
2696
1393
|
return Joi.object({
|
|
2697
|
-
|
|
2698
|
-
phone: Joi.array().items(ContentPlatformModel.PhoneProperties()),
|
|
1394
|
+
category: ContentPlatformModel.CategorySchema(),
|
|
2699
1395
|
});
|
|
2700
1396
|
}
|
|
2701
1397
|
|
|
2702
|
-
/** @returns {
|
|
2703
|
-
static
|
|
1398
|
+
/** @returns {GetFaqCategoriesSchema} */
|
|
1399
|
+
static GetFaqCategoriesSchema() {
|
|
2704
1400
|
return Joi.object({
|
|
2705
|
-
|
|
2706
|
-
list_enabled: Joi.boolean(),
|
|
2707
|
-
name: Joi.string().allow(""),
|
|
2708
|
-
supported_validations: Joi.array().items(
|
|
2709
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
2710
|
-
),
|
|
2711
|
-
type: Joi.string().allow(""),
|
|
1401
|
+
categories: Joi.array().items(ContentPlatformModel.CategorySchema()),
|
|
2712
1402
|
});
|
|
2713
1403
|
}
|
|
2714
1404
|
|
|
2715
|
-
/** @returns {
|
|
2716
|
-
static
|
|
1405
|
+
/** @returns {GetFaqCategoryBySlugSchema} */
|
|
1406
|
+
static GetFaqCategoryBySlugSchema() {
|
|
2717
1407
|
return Joi.object({
|
|
2718
|
-
|
|
1408
|
+
category: ContentPlatformModel.FAQCategorySchema(),
|
|
2719
1409
|
});
|
|
2720
1410
|
}
|
|
2721
1411
|
|
|
2722
|
-
/** @returns {
|
|
2723
|
-
static
|
|
1412
|
+
/** @returns {Page} */
|
|
1413
|
+
static Page() {
|
|
2724
1414
|
return Joi.object({
|
|
2725
|
-
|
|
2726
|
-
|
|
1415
|
+
item_total: Joi.number(),
|
|
1416
|
+
next_id: Joi.string().allow(""),
|
|
1417
|
+
has_previous: Joi.boolean(),
|
|
1418
|
+
has_next: Joi.boolean(),
|
|
1419
|
+
current: Joi.number(),
|
|
1420
|
+
type: Joi.string().allow("").required(),
|
|
1421
|
+
size: Joi.number(),
|
|
2727
1422
|
});
|
|
2728
1423
|
}
|
|
2729
1424
|
|
|
2730
|
-
/** @returns {
|
|
2731
|
-
static
|
|
1425
|
+
/** @returns {LandingPageGetResponse} */
|
|
1426
|
+
static LandingPageGetResponse() {
|
|
2732
1427
|
return Joi.object({
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
name: Joi.string().allow(""),
|
|
1428
|
+
items: Joi.array().items(ContentPlatformModel.LandingPageSchema()),
|
|
1429
|
+
page: ContentPlatformModel.Page(),
|
|
2736
1430
|
});
|
|
2737
1431
|
}
|
|
2738
1432
|
|
|
2739
|
-
/** @returns {
|
|
2740
|
-
static
|
|
1433
|
+
/** @returns {LandingPageSchema} */
|
|
1434
|
+
static LandingPageSchema() {
|
|
2741
1435
|
return Joi.object({
|
|
2742
|
-
|
|
1436
|
+
slug: Joi.string().allow(""),
|
|
1437
|
+
action: ContentPlatformModel.Action(),
|
|
1438
|
+
platform: Joi.array().items(Joi.string().allow("")),
|
|
1439
|
+
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
1440
|
+
date_meta: ContentPlatformModel.DateMeta(),
|
|
1441
|
+
_id: Joi.string().allow(""),
|
|
1442
|
+
application: Joi.string().allow(""),
|
|
1443
|
+
archived: Joi.boolean(),
|
|
1444
|
+
_custom_json: Joi.any(),
|
|
2743
1445
|
});
|
|
2744
1446
|
}
|
|
2745
1447
|
|
|
2746
|
-
/** @returns {
|
|
2747
|
-
static
|
|
1448
|
+
/** @returns {DefaultNavigationResponse} */
|
|
1449
|
+
static DefaultNavigationResponse() {
|
|
2748
1450
|
return Joi.object({
|
|
2749
|
-
|
|
2750
|
-
duration: Joi.number(),
|
|
2751
|
-
end: Joi.string().allow(""),
|
|
2752
|
-
next_schedule: Joi.array().items(ContentPlatformModel.NextSchedule()),
|
|
2753
|
-
start: Joi.string().allow(""),
|
|
1451
|
+
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
2754
1452
|
});
|
|
2755
1453
|
}
|
|
2756
1454
|
|
|
2757
|
-
/** @returns {
|
|
2758
|
-
static
|
|
1455
|
+
/** @returns {NavigationGetResponse} */
|
|
1456
|
+
static NavigationGetResponse() {
|
|
2759
1457
|
return Joi.object({
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
description: Joi.string().allow(""),
|
|
2763
|
-
image: ContentPlatformModel.SEOImage(),
|
|
2764
|
-
meta_tags: Joi.array().items(ContentPlatformModel.SEOMetaItem()),
|
|
2765
|
-
sitemap: ContentPlatformModel.SEOSitemap(),
|
|
2766
|
-
title: Joi.string().allow(""),
|
|
1458
|
+
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
1459
|
+
page: ContentPlatformModel.Page(),
|
|
2767
1460
|
});
|
|
2768
1461
|
}
|
|
2769
1462
|
|
|
2770
|
-
/** @returns {
|
|
2771
|
-
static
|
|
1463
|
+
/** @returns {Orientation} */
|
|
1464
|
+
static Orientation() {
|
|
2772
1465
|
return Joi.object({
|
|
2773
|
-
|
|
2774
|
-
|
|
1466
|
+
portrait: Joi.array().items(Joi.string().allow("")),
|
|
1467
|
+
landscape: Joi.array().items(Joi.string().allow("")),
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
/** @returns {NavigationSchema} */
|
|
1472
|
+
static NavigationSchema() {
|
|
1473
|
+
return Joi.object({
|
|
1474
|
+
_id: Joi.string().allow(""),
|
|
1475
|
+
application: Joi.string().allow(""),
|
|
1476
|
+
archived: Joi.boolean(),
|
|
1477
|
+
name: Joi.string().allow(""),
|
|
1478
|
+
slug: Joi.string().allow(""),
|
|
1479
|
+
platform: Joi.array().items(Joi.string().allow("")),
|
|
1480
|
+
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
1481
|
+
date_meta: ContentPlatformModel.DateMeta(),
|
|
1482
|
+
orientation: ContentPlatformModel.Orientation(),
|
|
1483
|
+
version: Joi.number(),
|
|
1484
|
+
navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
|
|
2775
1485
|
});
|
|
2776
1486
|
}
|
|
2777
1487
|
|
|
2778
|
-
/** @returns {
|
|
2779
|
-
static
|
|
1488
|
+
/** @returns {NavigationRequest} */
|
|
1489
|
+
static NavigationRequest() {
|
|
2780
1490
|
return Joi.object({
|
|
2781
|
-
|
|
1491
|
+
name: Joi.string().allow(""),
|
|
1492
|
+
slug: Joi.string().allow(""),
|
|
1493
|
+
platform: Joi.array().items(Joi.string().allow("")),
|
|
1494
|
+
orientation: ContentPlatformModel.Orientation(),
|
|
1495
|
+
navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
|
|
2782
1496
|
});
|
|
2783
1497
|
}
|
|
2784
1498
|
|
|
2785
|
-
/** @returns {
|
|
2786
|
-
static
|
|
1499
|
+
/** @returns {PageGetResponse} */
|
|
1500
|
+
static PageGetResponse() {
|
|
2787
1501
|
return Joi.object({
|
|
2788
|
-
|
|
1502
|
+
items: Joi.array().items(ContentPlatformModel.PageSchema()),
|
|
1503
|
+
page: ContentPlatformModel.Page(),
|
|
2789
1504
|
});
|
|
2790
1505
|
}
|
|
2791
1506
|
|
|
2792
|
-
/** @returns {
|
|
2793
|
-
static
|
|
1507
|
+
/** @returns {PageSpec} */
|
|
1508
|
+
static PageSpec() {
|
|
2794
1509
|
return Joi.object({
|
|
2795
|
-
|
|
2796
|
-
title: Joi.string().allow(""),
|
|
1510
|
+
specifications: Joi.array().items(ContentPlatformModel.PageSpecItem()),
|
|
2797
1511
|
});
|
|
2798
1512
|
}
|
|
2799
1513
|
|
|
2800
|
-
/** @returns {
|
|
2801
|
-
static
|
|
1514
|
+
/** @returns {PageSpecParam} */
|
|
1515
|
+
static PageSpecParam() {
|
|
2802
1516
|
return Joi.object({
|
|
2803
1517
|
key: Joi.string().allow(""),
|
|
2804
|
-
|
|
1518
|
+
required: Joi.boolean(),
|
|
2805
1519
|
});
|
|
2806
1520
|
}
|
|
2807
1521
|
|
|
2808
|
-
/** @returns {
|
|
2809
|
-
static
|
|
1522
|
+
/** @returns {PageSpecItem} */
|
|
1523
|
+
static PageSpecItem() {
|
|
2810
1524
|
return Joi.object({
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
created_at: Joi.string().allow(""),
|
|
2816
|
-
custom_meta_tags: Joi.array().items(ContentPlatformModel.CustomMetaTag()),
|
|
2817
|
-
details: ContentPlatformModel.Detail(),
|
|
2818
|
-
robots_txt: Joi.string().allow(""),
|
|
2819
|
-
sitemap_enabled: Joi.boolean(),
|
|
2820
|
-
updated_at: Joi.string().allow(""),
|
|
1525
|
+
page_type: Joi.string().allow(""),
|
|
1526
|
+
display_name: Joi.string().allow(""),
|
|
1527
|
+
params: Joi.array().items(ContentPlatformModel.PageSpecParam()),
|
|
1528
|
+
query: Joi.array().items(ContentPlatformModel.PageSpecParam()),
|
|
2821
1529
|
});
|
|
2822
1530
|
}
|
|
2823
1531
|
|
|
2824
|
-
/** @returns {
|
|
2825
|
-
static
|
|
1532
|
+
/** @returns {PageSchema} */
|
|
1533
|
+
static PageSchema() {
|
|
2826
1534
|
return Joi.object({
|
|
2827
|
-
|
|
2828
|
-
|
|
1535
|
+
_id: Joi.string().allow(""),
|
|
1536
|
+
application: Joi.string().allow(""),
|
|
1537
|
+
component_ids: Joi.array().items(Joi.string().allow("")),
|
|
1538
|
+
content: Joi.array().items(Joi.any()),
|
|
1539
|
+
content_path: Joi.string().allow(""),
|
|
1540
|
+
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
1541
|
+
date_meta: ContentPlatformModel.DateMeta(),
|
|
1542
|
+
description: Joi.string().allow(""),
|
|
1543
|
+
feature_image: ContentPlatformModel.Asset(),
|
|
1544
|
+
page_meta: Joi.array().items(Joi.any()),
|
|
1545
|
+
_schedule: ContentPlatformModel.ScheduleSchema(),
|
|
1546
|
+
_custom_json: Joi.any(),
|
|
1547
|
+
orientation: Joi.string().allow(""),
|
|
1548
|
+
platform: Joi.string().allow(""),
|
|
1549
|
+
published: Joi.boolean(),
|
|
1550
|
+
slug: Joi.string().allow(""),
|
|
1551
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
1552
|
+
title: Joi.string().allow(""),
|
|
1553
|
+
type: Joi.string().allow(""),
|
|
1554
|
+
seo: ContentPlatformModel.SEO(),
|
|
1555
|
+
visibility: Joi.any(),
|
|
1556
|
+
archived: Joi.boolean(),
|
|
2829
1557
|
});
|
|
2830
1558
|
}
|
|
2831
1559
|
|
|
2832
|
-
/** @returns {
|
|
2833
|
-
static
|
|
1560
|
+
/** @returns {CreatedBySchema} */
|
|
1561
|
+
static CreatedBySchema() {
|
|
2834
1562
|
return Joi.object({
|
|
2835
|
-
active: Joi.boolean(),
|
|
2836
|
-
application: Joi.string().allow(""),
|
|
2837
|
-
created_at: Joi.string().allow(""),
|
|
2838
|
-
description: Joi.string().allow(""),
|
|
2839
1563
|
id: Joi.string().allow(""),
|
|
2840
|
-
page_type: Joi.string().allow(""),
|
|
2841
|
-
schema: Joi.string().allow(""),
|
|
2842
|
-
target_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
2843
|
-
title: Joi.string().allow(""),
|
|
2844
|
-
updated_at: Joi.string().allow(""),
|
|
2845
1564
|
});
|
|
2846
1565
|
}
|
|
2847
1566
|
|
|
2848
|
-
/** @returns {
|
|
2849
|
-
static
|
|
1567
|
+
/** @returns {PageRequest} */
|
|
1568
|
+
static PageRequest() {
|
|
2850
1569
|
return Joi.object({
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
1570
|
+
_schedule: ContentPlatformModel.CronSchedule(),
|
|
1571
|
+
application: Joi.string().allow(""),
|
|
1572
|
+
author: ContentPlatformModel.Author(),
|
|
1573
|
+
_custom_json: Joi.any(),
|
|
1574
|
+
orientation: Joi.string().allow(""),
|
|
1575
|
+
content: Joi.array().items(Joi.any()),
|
|
1576
|
+
feature_image: ContentPlatformModel.Asset(),
|
|
1577
|
+
published: Joi.boolean(),
|
|
1578
|
+
reading_time: Joi.string().allow(""),
|
|
1579
|
+
slug: Joi.string().allow(""),
|
|
1580
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
1581
|
+
seo: ContentPlatformModel.SEO(),
|
|
2857
1582
|
title: Joi.string().allow(""),
|
|
2858
|
-
updated_at: Joi.string().allow(""),
|
|
2859
1583
|
});
|
|
2860
1584
|
}
|
|
2861
1585
|
|
|
2862
|
-
/** @returns {
|
|
2863
|
-
static
|
|
1586
|
+
/** @returns {CronSchedule} */
|
|
1587
|
+
static CronSchedule() {
|
|
2864
1588
|
return Joi.object({
|
|
2865
|
-
|
|
2866
|
-
|
|
1589
|
+
cron: Joi.string().allow(""),
|
|
1590
|
+
start: Joi.string().allow(""),
|
|
1591
|
+
end: Joi.string().allow(""),
|
|
1592
|
+
duration: Joi.number(),
|
|
2867
1593
|
});
|
|
2868
1594
|
}
|
|
2869
1595
|
|
|
2870
|
-
/** @returns {
|
|
2871
|
-
static
|
|
1596
|
+
/** @returns {PagePublishRequest} */
|
|
1597
|
+
static PagePublishRequest() {
|
|
2872
1598
|
return Joi.object({
|
|
2873
|
-
|
|
2874
|
-
page: ContentPlatformModel.Page(),
|
|
1599
|
+
publish: Joi.boolean(),
|
|
2875
1600
|
});
|
|
2876
1601
|
}
|
|
2877
1602
|
|
|
2878
|
-
/** @returns {
|
|
2879
|
-
static
|
|
1603
|
+
/** @returns {PageMetaSchema} */
|
|
1604
|
+
static PageMetaSchema() {
|
|
2880
1605
|
return Joi.object({
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
duration: Joi.number(),
|
|
2885
|
-
type: Joi.string().allow(""),
|
|
2886
|
-
url: Joi.string().allow(""),
|
|
1606
|
+
system_pages: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
1607
|
+
custom_pages: Joi.array().items(ContentPlatformModel.PageSchema()),
|
|
1608
|
+
application_id: Joi.string().allow(""),
|
|
2887
1609
|
});
|
|
2888
1610
|
}
|
|
2889
1611
|
|
|
2890
|
-
/** @returns {
|
|
2891
|
-
static
|
|
1612
|
+
/** @returns {SlideshowGetResponse} */
|
|
1613
|
+
static SlideshowGetResponse() {
|
|
2892
1614
|
return Joi.object({
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
media: ContentPlatformModel.SlideshowMedia(),
|
|
2896
|
-
platform: Joi.string().allow(""),
|
|
2897
|
-
slug: Joi.string().allow(""),
|
|
1615
|
+
items: Joi.array().items(ContentPlatformModel.SlideshowSchema()),
|
|
1616
|
+
page: ContentPlatformModel.Page(),
|
|
2898
1617
|
});
|
|
2899
1618
|
}
|
|
2900
1619
|
|
|
2901
1620
|
/** @returns {SlideshowSchema} */
|
|
2902
1621
|
static SlideshowSchema() {
|
|
2903
1622
|
return Joi.object({
|
|
2904
|
-
_custom_json: Joi.any(),
|
|
2905
1623
|
_id: Joi.string().allow(""),
|
|
2906
|
-
|
|
1624
|
+
slug: Joi.string().allow(""),
|
|
1625
|
+
date_meta: ContentPlatformModel.DateMeta(),
|
|
2907
1626
|
application: Joi.string().allow(""),
|
|
2908
|
-
|
|
1627
|
+
platform: Joi.string().allow(""),
|
|
2909
1628
|
configuration: ContentPlatformModel.ConfigurationSchema(),
|
|
2910
|
-
date_meta: ContentPlatformModel.DateMeta(),
|
|
2911
1629
|
media: Joi.array().items(ContentPlatformModel.SlideshowMedia()),
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
}
|
|
2916
|
-
|
|
2917
|
-
/** @returns {StringMultiLine} */
|
|
2918
|
-
static StringMultiLine() {
|
|
2919
|
-
return Joi.object({
|
|
2920
|
-
category: Joi.string().allow(""),
|
|
2921
|
-
list_enabled: Joi.boolean(),
|
|
2922
|
-
name: Joi.string().allow(""),
|
|
2923
|
-
supported_validations: Joi.array().items(
|
|
2924
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
2925
|
-
),
|
|
2926
|
-
type: Joi.string().allow(""),
|
|
1630
|
+
active: Joi.boolean(),
|
|
1631
|
+
archived: Joi.boolean(),
|
|
1632
|
+
_custom_json: Joi.any(),
|
|
2927
1633
|
});
|
|
2928
1634
|
}
|
|
2929
1635
|
|
|
2930
|
-
/** @returns {
|
|
2931
|
-
static
|
|
1636
|
+
/** @returns {SlideshowRequest} */
|
|
1637
|
+
static SlideshowRequest() {
|
|
2932
1638
|
return Joi.object({
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
),
|
|
2939
|
-
type: Joi.string().allow(""),
|
|
1639
|
+
slug: Joi.string().allow(""),
|
|
1640
|
+
platform: Joi.string().allow(""),
|
|
1641
|
+
configuration: ContentPlatformModel.ConfigurationSchema(),
|
|
1642
|
+
media: ContentPlatformModel.SlideshowMedia(),
|
|
1643
|
+
active: Joi.boolean(),
|
|
2940
1644
|
});
|
|
2941
1645
|
}
|
|
2942
1646
|
|
|
2943
1647
|
/** @returns {Support} */
|
|
2944
1648
|
static Support() {
|
|
2945
1649
|
return Joi.object({
|
|
1650
|
+
created: Joi.boolean(),
|
|
2946
1651
|
_id: Joi.string().allow(""),
|
|
2947
|
-
application: Joi.string().allow(""),
|
|
2948
1652
|
config_type: Joi.string().allow(""),
|
|
2949
|
-
|
|
2950
|
-
created: Joi.boolean(),
|
|
1653
|
+
application: Joi.string().allow(""),
|
|
2951
1654
|
created_at: Joi.string().allow(""),
|
|
2952
1655
|
updated_at: Joi.string().allow(""),
|
|
1656
|
+
contact: ContentPlatformModel.ContactSchema(),
|
|
2953
1657
|
});
|
|
2954
1658
|
}
|
|
2955
1659
|
|
|
2956
|
-
/** @returns {
|
|
2957
|
-
static
|
|
2958
|
-
return Joi.object({
|
|
2959
|
-
name: Joi.string().allow(""),
|
|
2960
|
-
value: Joi.string().allow(""),
|
|
2961
|
-
});
|
|
2962
|
-
}
|
|
2963
|
-
|
|
2964
|
-
/** @returns {SupportedValidationsMetaSchema} */
|
|
2965
|
-
static SupportedValidationsMetaSchema() {
|
|
1660
|
+
/** @returns {PhoneProperties} */
|
|
1661
|
+
static PhoneProperties() {
|
|
2966
1662
|
return Joi.object({
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
),
|
|
1663
|
+
key: Joi.string().allow(""),
|
|
1664
|
+
code: Joi.string().allow(""),
|
|
1665
|
+
number: Joi.string().allow(""),
|
|
2970
1666
|
});
|
|
2971
1667
|
}
|
|
2972
1668
|
|
|
2973
|
-
/** @returns {
|
|
2974
|
-
static
|
|
1669
|
+
/** @returns {PhoneSchema} */
|
|
1670
|
+
static PhoneSchema() {
|
|
2975
1671
|
return Joi.object({
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
name: Joi.string().allow(""),
|
|
2979
|
-
required: Joi.boolean(),
|
|
2980
|
-
type: Joi.string().allow(""),
|
|
1672
|
+
active: Joi.boolean(),
|
|
1673
|
+
phone: Joi.array().items(ContentPlatformModel.PhoneProperties()),
|
|
2981
1674
|
});
|
|
2982
1675
|
}
|
|
2983
1676
|
|
|
2984
|
-
/** @returns {
|
|
2985
|
-
static
|
|
1677
|
+
/** @returns {EmailProperties} */
|
|
1678
|
+
static EmailProperties() {
|
|
2986
1679
|
return Joi.object({
|
|
2987
|
-
|
|
1680
|
+
key: Joi.string().allow(""),
|
|
1681
|
+
value: Joi.string().allow(""),
|
|
2988
1682
|
});
|
|
2989
1683
|
}
|
|
2990
1684
|
|
|
2991
|
-
/** @returns {
|
|
2992
|
-
static
|
|
1685
|
+
/** @returns {EmailSchema} */
|
|
1686
|
+
static EmailSchema() {
|
|
2993
1687
|
return Joi.object({
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
attributes: Joi.any(),
|
|
2997
|
-
content: Joi.string().allow(""),
|
|
2998
|
-
name: Joi.string().allow(""),
|
|
2999
|
-
pages: Joi.array().items(Joi.any()),
|
|
3000
|
-
position: Joi.string().allow(""),
|
|
3001
|
-
sub_type: Joi.string().allow(""),
|
|
3002
|
-
type: Joi.string().allow(""),
|
|
3003
|
-
url: Joi.string().allow(""),
|
|
1688
|
+
active: Joi.boolean(),
|
|
1689
|
+
email: Joi.array().items(ContentPlatformModel.EmailProperties()),
|
|
3004
1690
|
});
|
|
3005
1691
|
}
|
|
3006
1692
|
|
|
3007
|
-
/** @returns {
|
|
3008
|
-
static
|
|
1693
|
+
/** @returns {ContactSchema} */
|
|
1694
|
+
static ContactSchema() {
|
|
3009
1695
|
return Joi.object({
|
|
3010
|
-
|
|
3011
|
-
|
|
1696
|
+
phone: ContentPlatformModel.PhoneSchema(),
|
|
1697
|
+
email: ContentPlatformModel.EmailSchema(),
|
|
3012
1698
|
});
|
|
3013
1699
|
}
|
|
3014
1700
|
|
|
3015
1701
|
/** @returns {TagsSchema} */
|
|
3016
1702
|
static TagsSchema() {
|
|
3017
1703
|
return Joi.object({
|
|
3018
|
-
_id: Joi.string().allow(""),
|
|
3019
1704
|
application: Joi.string().allow(""),
|
|
1705
|
+
_id: Joi.string().allow(""),
|
|
3020
1706
|
tags: Joi.array().items(ContentPlatformModel.TagSchema()),
|
|
3021
1707
|
});
|
|
3022
1708
|
}
|
|
3023
1709
|
|
|
3024
|
-
/** @returns {
|
|
3025
|
-
static
|
|
3026
|
-
return Joi.object({
|
|
3027
|
-
category: ContentPlatformModel.CategorySchema(),
|
|
3028
|
-
});
|
|
3029
|
-
}
|
|
3030
|
-
|
|
3031
|
-
/** @returns {UpdateHandpickedSchema} */
|
|
3032
|
-
static UpdateHandpickedSchema() {
|
|
1710
|
+
/** @returns {TagSchema} */
|
|
1711
|
+
static TagSchema() {
|
|
3033
1712
|
return Joi.object({
|
|
3034
|
-
|
|
1713
|
+
name: Joi.string().allow(""),
|
|
1714
|
+
url: Joi.string().allow(""),
|
|
1715
|
+
type: Joi.string().allow(""),
|
|
1716
|
+
sub_type: Joi.string().allow(""),
|
|
1717
|
+
_id: Joi.string().allow(""),
|
|
1718
|
+
position: Joi.string().allow(""),
|
|
1719
|
+
attributes: Joi.any(),
|
|
1720
|
+
content: Joi.string().allow(""),
|
|
1721
|
+
pages: Joi.array().items(Joi.any()),
|
|
1722
|
+
__source: ContentPlatformModel.TagSourceSchema(),
|
|
3035
1723
|
});
|
|
3036
1724
|
}
|
|
3037
1725
|
|
|
3038
|
-
/** @returns {
|
|
3039
|
-
static
|
|
1726
|
+
/** @returns {TagSourceSchema} */
|
|
1727
|
+
static TagSourceSchema() {
|
|
3040
1728
|
return Joi.object({
|
|
3041
|
-
list_enabled: Joi.boolean(),
|
|
3042
|
-
name: Joi.string().allow(""),
|
|
3043
|
-
supported_validations: Joi.array().items(
|
|
3044
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
3045
|
-
),
|
|
3046
1729
|
type: Joi.string().allow(""),
|
|
1730
|
+
id: Joi.string().allow(""),
|
|
3047
1731
|
});
|
|
3048
1732
|
}
|
|
3049
1733
|
|