@gofynd/fdk-client-javascript 1.6.4 → 3.1.0-beta.1
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 +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +100 -80
- package/sdk/application/Cart/CartApplicationClient.js +257 -126
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -21
- package/sdk/application/Content/ContentApplicationClient.js +250 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +0 -10
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +251 -172
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
- package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -238
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +506 -270
- package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1206 -459
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +871 -1315
- package/sdk/platform/Content/ContentPlatformModel.js +940 -599
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +486 -277
- package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
- package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3531 -1292
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2188 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +11 -50
- package/sdk/platform/Share/SharePlatformModel.js +5 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @typedef ValidationError
|
|
5
|
-
* @property {string} message - A brief description of the error encountered.
|
|
6
|
-
* @property {string} field - The field in the request that caused the error.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
3
|
/**
|
|
10
4
|
* @typedef GenerateSEOContent
|
|
11
5
|
* @property {string} [text]
|
|
@@ -31,6 +25,7 @@ const Joi = require("joi");
|
|
|
31
25
|
* @property {string} [_id]
|
|
32
26
|
* @property {string} [updated_at]
|
|
33
27
|
* @property {string} [created_at]
|
|
28
|
+
* @property {number} [__v]
|
|
34
29
|
*/
|
|
35
30
|
|
|
36
31
|
/**
|
|
@@ -47,7 +42,7 @@ const Joi = require("joi");
|
|
|
47
42
|
* @property {string} [redirect_to]
|
|
48
43
|
* @property {string} [updated_at]
|
|
49
44
|
* @property {string} [created_at]
|
|
50
|
-
* @property {
|
|
45
|
+
* @property {number} [__v]
|
|
51
46
|
*/
|
|
52
47
|
|
|
53
48
|
/**
|
|
@@ -63,8 +58,8 @@ const Joi = require("joi");
|
|
|
63
58
|
|
|
64
59
|
/**
|
|
65
60
|
* @typedef SeoSchema
|
|
66
|
-
* @property {string} [app]
|
|
67
61
|
* @property {string} [_id]
|
|
62
|
+
* @property {string} [app]
|
|
68
63
|
* @property {string} [robots_txt]
|
|
69
64
|
* @property {boolean} [sitemap_enabled]
|
|
70
65
|
* @property {string} [additional_sitemap]
|
|
@@ -73,6 +68,8 @@ const Joi = require("joi");
|
|
|
73
68
|
* @property {Detail} [details]
|
|
74
69
|
* @property {string} [created_at]
|
|
75
70
|
* @property {string} [updated_at]
|
|
71
|
+
* @property {number} [__v]
|
|
72
|
+
* @property {SEOSitemap} [sitemap]
|
|
76
73
|
*/
|
|
77
74
|
|
|
78
75
|
/**
|
|
@@ -97,28 +94,55 @@ const Joi = require("joi");
|
|
|
97
94
|
|
|
98
95
|
/**
|
|
99
96
|
* @typedef SEOSchemaMarkupTemplate
|
|
100
|
-
* @property {string} [
|
|
97
|
+
* @property {string} [_id]
|
|
101
98
|
* @property {string} [title]
|
|
102
99
|
* @property {string} [page_type]
|
|
103
100
|
* @property {string} [schema]
|
|
104
101
|
* @property {string} [description]
|
|
105
102
|
* @property {boolean} [active]
|
|
103
|
+
* @property {string} [application]
|
|
106
104
|
* @property {string} [created_at]
|
|
107
105
|
* @property {string} [updated_at]
|
|
108
|
-
* @property {string} [application]
|
|
109
106
|
* @property {Object} [target_json]
|
|
107
|
+
* @property {number} [__v]
|
|
110
108
|
*/
|
|
111
109
|
|
|
112
110
|
/**
|
|
113
111
|
* @typedef SEOSchemaMarkupTemplateRequestBody
|
|
114
112
|
* @property {string} [title]
|
|
115
113
|
* @property {string} [page_type]
|
|
116
|
-
* @property {string} [schema]
|
|
117
114
|
* @property {string} [description]
|
|
115
|
+
* @property {string} [schema]
|
|
118
116
|
* @property {Object} [target_json]
|
|
119
117
|
* @property {boolean} [active]
|
|
120
118
|
* @property {string} [created_at]
|
|
121
|
-
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @typedef DeletPathMappingSchema
|
|
123
|
+
* @property {string} [message]
|
|
124
|
+
* @property {PathMappingSchema} [data]
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @typedef CreatePathMappingSchema
|
|
129
|
+
* @property {string} [message]
|
|
130
|
+
* @property {PathMappingSchema} [data]
|
|
131
|
+
*/
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @typedef GetAllPathMappingSchema
|
|
135
|
+
* @property {string} [message]
|
|
136
|
+
* @property {GetPathSchema} [data]
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @typedef GetPathSchema
|
|
141
|
+
* @property {PathMappingSchema[]} [docs]
|
|
142
|
+
* @property {number} [page]
|
|
143
|
+
* @property {number} [limit]
|
|
144
|
+
* @property {number} [pages]
|
|
145
|
+
* @property {number} [total]
|
|
122
146
|
*/
|
|
123
147
|
|
|
124
148
|
/**
|
|
@@ -165,11 +189,11 @@ const Joi = require("joi");
|
|
|
165
189
|
* @typedef DefaultSEOSchemaMarkupTemplate
|
|
166
190
|
* @property {string} [page_type]
|
|
167
191
|
* @property {string} [schema]
|
|
168
|
-
* @property {Object} [target_json]
|
|
169
192
|
*/
|
|
170
193
|
|
|
171
194
|
/**
|
|
172
195
|
* @typedef ScheduleSchema
|
|
196
|
+
* @property {boolean} [published]
|
|
173
197
|
* @property {string} [cron]
|
|
174
198
|
* @property {string} [start]
|
|
175
199
|
* @property {string} [end]
|
|
@@ -184,7 +208,7 @@ const Joi = require("joi");
|
|
|
184
208
|
*/
|
|
185
209
|
|
|
186
210
|
/**
|
|
187
|
-
* @typedef
|
|
211
|
+
* @typedef BlogGetResponse
|
|
188
212
|
* @property {BlogSchema[]} [items]
|
|
189
213
|
* @property {Page} [page]
|
|
190
214
|
* @property {BlogFilters} [filters]
|
|
@@ -233,6 +257,7 @@ const Joi = require("joi");
|
|
|
233
257
|
* @property {string} [title]
|
|
234
258
|
* @property {DateMeta} [date_meta]
|
|
235
259
|
* @property {string} [summary]
|
|
260
|
+
* @property {string} [status]
|
|
236
261
|
*/
|
|
237
262
|
|
|
238
263
|
/**
|
|
@@ -242,7 +267,7 @@ const Joi = require("joi");
|
|
|
242
267
|
* @property {string} [title]
|
|
243
268
|
* @property {SEOMetaItem[]} [meta_tags]
|
|
244
269
|
* @property {SEOSitemap} [sitemap]
|
|
245
|
-
* @property {SEObreadcrumb[]} [
|
|
270
|
+
* @property {SEObreadcrumb[]} [breadcrumbs]
|
|
246
271
|
* @property {string} [canonical_url]
|
|
247
272
|
*/
|
|
248
273
|
|
|
@@ -282,7 +307,7 @@ const Joi = require("joi");
|
|
|
282
307
|
*/
|
|
283
308
|
|
|
284
309
|
/**
|
|
285
|
-
* @typedef
|
|
310
|
+
* @typedef BlogRequest
|
|
286
311
|
* @property {string} [application]
|
|
287
312
|
* @property {Object} [_custom_json]
|
|
288
313
|
* @property {Author} [author]
|
|
@@ -293,6 +318,7 @@ const Joi = require("joi");
|
|
|
293
318
|
* @property {string} [slug]
|
|
294
319
|
* @property {string[]} [tags]
|
|
295
320
|
* @property {string} [title]
|
|
321
|
+
* @property {string} [publish_date]
|
|
296
322
|
* @property {SEO} [seo]
|
|
297
323
|
* @property {string} [summary]
|
|
298
324
|
*/
|
|
@@ -309,6 +335,11 @@ const Joi = require("joi");
|
|
|
309
335
|
* @property {AdminAnnouncementSchema} [data]
|
|
310
336
|
*/
|
|
311
337
|
|
|
338
|
+
/**
|
|
339
|
+
* @typedef DataLoaderItemsResponseSchema
|
|
340
|
+
* @property {DataLoaderResponseSchema[]} [items]
|
|
341
|
+
*/
|
|
342
|
+
|
|
312
343
|
/**
|
|
313
344
|
* @typedef DataLoaderResponseSchema
|
|
314
345
|
* @property {string} [application]
|
|
@@ -320,12 +351,16 @@ const Joi = require("joi");
|
|
|
320
351
|
* @property {string} [type]
|
|
321
352
|
* @property {string} [url]
|
|
322
353
|
* @property {string} [content]
|
|
354
|
+
* @property {string} [created_at]
|
|
355
|
+
* @property {string} [modified_at]
|
|
356
|
+
* @property {number} [__v]
|
|
357
|
+
* @property {boolean} [is_selected]
|
|
323
358
|
* @property {DataLoaderSourceSchema} [__source]
|
|
324
359
|
*/
|
|
325
360
|
|
|
326
361
|
/**
|
|
327
362
|
* @typedef DataLoaderResetResponseSchema
|
|
328
|
-
* @property {boolean} [
|
|
363
|
+
* @property {boolean} [resetted]
|
|
329
364
|
*/
|
|
330
365
|
|
|
331
366
|
/**
|
|
@@ -354,7 +389,6 @@ const Joi = require("joi");
|
|
|
354
389
|
* @property {LocaleLanguage} [_locale_language]
|
|
355
390
|
* @property {string} [image]
|
|
356
391
|
* @property {string} [type]
|
|
357
|
-
* @property {Action} [action]
|
|
358
392
|
* @property {boolean} [active]
|
|
359
393
|
* @property {string} [display]
|
|
360
394
|
* @property {number} [sort_order]
|
|
@@ -362,6 +396,13 @@ const Joi = require("joi");
|
|
|
362
396
|
* @property {NavigationReference[]} [sub_navigation]
|
|
363
397
|
*/
|
|
364
398
|
|
|
399
|
+
/**
|
|
400
|
+
* @typedef AssignmentReference
|
|
401
|
+
* @property {string} [platform]
|
|
402
|
+
* @property {string} [orientation]
|
|
403
|
+
* @property {string} [position]
|
|
404
|
+
*/
|
|
405
|
+
|
|
365
406
|
/**
|
|
366
407
|
* @typedef CronBasedScheduleSchema
|
|
367
408
|
* @property {boolean} [enabled]
|
|
@@ -411,14 +452,18 @@ const Joi = require("joi");
|
|
|
411
452
|
|
|
412
453
|
/**
|
|
413
454
|
* @typedef DataLoaderSchema
|
|
455
|
+
* @property {string} [_id]
|
|
456
|
+
* @property {string} [url]
|
|
457
|
+
* @property {string} [created_at]
|
|
458
|
+
* @property {string} [modified_at]
|
|
459
|
+
* @property {string} [application]
|
|
460
|
+
* @property {string} [company]
|
|
414
461
|
* @property {string} [name]
|
|
415
462
|
* @property {string} [service]
|
|
416
463
|
* @property {string} [operation_id]
|
|
464
|
+
* @property {boolean} [is_selected]
|
|
417
465
|
* @property {string} [type]
|
|
418
|
-
* @property {string} [url]
|
|
419
|
-
* @property {string} [content]
|
|
420
466
|
* @property {DataLoaderSourceSchema} [__source]
|
|
421
|
-
* @property {string} [_id]
|
|
422
467
|
*/
|
|
423
468
|
|
|
424
469
|
/**
|
|
@@ -427,13 +472,33 @@ const Joi = require("joi");
|
|
|
427
472
|
* @property {string} [id]
|
|
428
473
|
*/
|
|
429
474
|
|
|
475
|
+
/**
|
|
476
|
+
* @typedef TagSpecSchema
|
|
477
|
+
* @property {string} [name]
|
|
478
|
+
* @property {string} [description]
|
|
479
|
+
*/
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* @typedef ServerSchema
|
|
483
|
+
* @property {string} [url]
|
|
484
|
+
*/
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* @typedef DataLoadersApiSpecSchema
|
|
488
|
+
* @property {Object} [info]
|
|
489
|
+
* @property {ServerSchema[]} [servers]
|
|
490
|
+
* @property {TagSpecSchema[]} [tags]
|
|
491
|
+
* @property {string} [openapi]
|
|
492
|
+
* @property {Object} [paths]
|
|
493
|
+
*/
|
|
494
|
+
|
|
430
495
|
/**
|
|
431
496
|
* @typedef DataLoadersSchema
|
|
432
497
|
* @property {DataLoaderSchema[]} [items]
|
|
433
498
|
*/
|
|
434
499
|
|
|
435
500
|
/**
|
|
436
|
-
* @typedef
|
|
501
|
+
* @typedef TagDeleteSuccessResponse
|
|
437
502
|
* @property {boolean} [success]
|
|
438
503
|
*/
|
|
439
504
|
|
|
@@ -443,7 +508,6 @@ const Joi = require("joi");
|
|
|
443
508
|
* @property {number} [status]
|
|
444
509
|
* @property {string} [code]
|
|
445
510
|
* @property {string} [exception]
|
|
446
|
-
* @property {string} [info]
|
|
447
511
|
* @property {string} [request_id]
|
|
448
512
|
* @property {string} [stack_trace]
|
|
449
513
|
* @property {Object} [meta]
|
|
@@ -465,6 +529,7 @@ const Joi = require("joi");
|
|
|
465
529
|
* @property {string} [application]
|
|
466
530
|
* @property {string} [icon_url]
|
|
467
531
|
* @property {Object} [_custom_json]
|
|
532
|
+
* @property {number} [__v]
|
|
468
533
|
*/
|
|
469
534
|
|
|
470
535
|
/**
|
|
@@ -484,15 +549,15 @@ const Joi = require("joi");
|
|
|
484
549
|
|
|
485
550
|
/**
|
|
486
551
|
* @typedef FAQCategorySchema
|
|
487
|
-
* @property {
|
|
552
|
+
* @property {string} [_id]
|
|
553
|
+
* @property {string} [application]
|
|
488
554
|
* @property {string} [title]
|
|
489
555
|
* @property {string} [description]
|
|
490
|
-
* @property {
|
|
491
|
-
* @property {string} [_id]
|
|
556
|
+
* @property {number} [index]
|
|
492
557
|
* @property {string} [slug]
|
|
493
|
-
* @property {
|
|
558
|
+
* @property {ChildrenSchema[]} [children]
|
|
494
559
|
* @property {string} [icon_url]
|
|
495
|
-
* @property {
|
|
560
|
+
* @property {number} [__v]
|
|
496
561
|
*/
|
|
497
562
|
|
|
498
563
|
/**
|
|
@@ -503,6 +568,7 @@ const Joi = require("joi");
|
|
|
503
568
|
* @property {string} [question]
|
|
504
569
|
* @property {string} [answer]
|
|
505
570
|
* @property {string[]} [tags]
|
|
571
|
+
* @property {number} [__v]
|
|
506
572
|
*/
|
|
507
573
|
|
|
508
574
|
/**
|
|
@@ -561,10 +627,11 @@ const Joi = require("joi");
|
|
|
561
627
|
* @property {number} [current] - The current page number.
|
|
562
628
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
563
629
|
* @property {number} [size] - The number of items per page.
|
|
630
|
+
* @property {number} [total] - Total number of items.
|
|
564
631
|
*/
|
|
565
632
|
|
|
566
633
|
/**
|
|
567
|
-
* @typedef
|
|
634
|
+
* @typedef LandingPageGetResponse
|
|
568
635
|
* @property {LandingPageSchema[]} [items]
|
|
569
636
|
* @property {Page} [page]
|
|
570
637
|
*/
|
|
@@ -572,7 +639,6 @@ const Joi = require("joi");
|
|
|
572
639
|
/**
|
|
573
640
|
* @typedef LandingPageSchema
|
|
574
641
|
* @property {string} [slug]
|
|
575
|
-
* @property {Action} [action]
|
|
576
642
|
* @property {string[]} [platform]
|
|
577
643
|
* @property {CreatedBySchema} [created_by]
|
|
578
644
|
* @property {DateMeta} [date_meta]
|
|
@@ -580,15 +646,16 @@ const Joi = require("joi");
|
|
|
580
646
|
* @property {string} [application]
|
|
581
647
|
* @property {boolean} [archived]
|
|
582
648
|
* @property {Object} [_custom_json]
|
|
649
|
+
* @property {number} [__v]
|
|
583
650
|
*/
|
|
584
651
|
|
|
585
652
|
/**
|
|
586
|
-
* @typedef
|
|
653
|
+
* @typedef DefaultNavigationResponse
|
|
587
654
|
* @property {NavigationSchema[]} [items]
|
|
588
655
|
*/
|
|
589
656
|
|
|
590
657
|
/**
|
|
591
|
-
* @typedef
|
|
658
|
+
* @typedef NavigationGetResponse
|
|
592
659
|
* @property {NavigationSchema[]} [items]
|
|
593
660
|
* @property {Page} [page]
|
|
594
661
|
*/
|
|
@@ -612,19 +679,29 @@ const Joi = require("joi");
|
|
|
612
679
|
* @property {Orientation} [orientation]
|
|
613
680
|
* @property {number} [version]
|
|
614
681
|
* @property {NavigationReference[]} [navigation]
|
|
682
|
+
* @property {AssignmentReference[]} [assignments]
|
|
683
|
+
* @property {number} [__v]
|
|
615
684
|
*/
|
|
616
685
|
|
|
617
686
|
/**
|
|
618
|
-
* @typedef
|
|
687
|
+
* @typedef NavigationRequest
|
|
619
688
|
* @property {string} [name]
|
|
620
689
|
* @property {string} [slug]
|
|
621
690
|
* @property {string[]} [platform]
|
|
622
691
|
* @property {Orientation} [orientation]
|
|
692
|
+
* @property {NavigationAssignment[]} [assignments]
|
|
623
693
|
* @property {NavigationReference[]} [navigation]
|
|
624
694
|
*/
|
|
625
695
|
|
|
626
696
|
/**
|
|
627
|
-
* @typedef
|
|
697
|
+
* @typedef NavigationAssignment
|
|
698
|
+
* @property {string} [platform]
|
|
699
|
+
* @property {string} [orientation]
|
|
700
|
+
* @property {string} [position]
|
|
701
|
+
*/
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* @typedef PageGetResponse
|
|
628
705
|
* @property {PageSchema[]} [items]
|
|
629
706
|
* @property {Page} [page]
|
|
630
707
|
*/
|
|
@@ -648,31 +725,52 @@ const Joi = require("joi");
|
|
|
648
725
|
* @property {PageSpecParam[]} [query]
|
|
649
726
|
*/
|
|
650
727
|
|
|
728
|
+
/**
|
|
729
|
+
* @typedef PageResponseError
|
|
730
|
+
* @property {string} [errors]
|
|
731
|
+
*/
|
|
732
|
+
|
|
651
733
|
/**
|
|
652
734
|
* @typedef PageSchema
|
|
653
735
|
* @property {string} [_id]
|
|
654
736
|
* @property {string} [application]
|
|
655
|
-
* @property {string
|
|
656
|
-
*
|
|
657
|
-
* @property {
|
|
737
|
+
* @property {string} [platform]
|
|
738
|
+
* @property {string} [title]
|
|
739
|
+
* @property {string} [slug]
|
|
740
|
+
* @property {string} [type]
|
|
741
|
+
* @property {string[]} [tags]
|
|
658
742
|
* @property {string} [content_path]
|
|
743
|
+
* @property {string} [orientation]
|
|
744
|
+
* @property {string} [description]
|
|
745
|
+
* @property {boolean} [published]
|
|
659
746
|
* @property {CreatedBySchema} [created_by]
|
|
660
747
|
* @property {DateMeta} [date_meta]
|
|
661
|
-
* @property {string} [description]
|
|
662
748
|
* @property {Asset} [feature_image]
|
|
663
|
-
* @property {Object[]} [page_meta]
|
|
664
749
|
* @property {ScheduleSchema} [_schedule]
|
|
665
|
-
* @property {
|
|
666
|
-
* @property {string} [orientation]
|
|
667
|
-
* @property {string} [platform]
|
|
668
|
-
* @property {boolean} [published]
|
|
669
|
-
* @property {string} [slug]
|
|
670
|
-
* @property {string[]} [tags]
|
|
671
|
-
* @property {string} [title]
|
|
672
|
-
* @property {string} [type]
|
|
750
|
+
* @property {PageMeta[]} [page_meta]
|
|
673
751
|
* @property {SEO} [seo]
|
|
674
|
-
* @property {
|
|
752
|
+
* @property {string[]} [component_ids]
|
|
675
753
|
* @property {boolean} [archived]
|
|
754
|
+
* @property {number} [__v]
|
|
755
|
+
* @property {PageContent[]} [content]
|
|
756
|
+
* @property {SanitizedContent[]} [sanitized_content]
|
|
757
|
+
*/
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* @typedef SanitizedContent
|
|
761
|
+
* @property {string} [type]
|
|
762
|
+
* @property {string} [value]
|
|
763
|
+
*/
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* @typedef PageMeta
|
|
767
|
+
* @property {string} [key]
|
|
768
|
+
*/
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* @typedef PageContent
|
|
772
|
+
* @property {string} [type]
|
|
773
|
+
* @property {string} [value]
|
|
676
774
|
*/
|
|
677
775
|
|
|
678
776
|
/**
|
|
@@ -681,13 +779,18 @@ const Joi = require("joi");
|
|
|
681
779
|
*/
|
|
682
780
|
|
|
683
781
|
/**
|
|
684
|
-
* @typedef
|
|
782
|
+
* @typedef PageRequestVisibility
|
|
783
|
+
* @property {boolean} [test]
|
|
784
|
+
*/
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* @typedef PageRequest
|
|
685
788
|
* @property {CronSchedule} [_schedule]
|
|
686
789
|
* @property {string} [application]
|
|
687
790
|
* @property {Author} [author]
|
|
688
791
|
* @property {Object} [_custom_json]
|
|
689
792
|
* @property {string} [orientation]
|
|
690
|
-
* @property {
|
|
793
|
+
* @property {PageContent[]} [content]
|
|
691
794
|
* @property {Asset} [feature_image]
|
|
692
795
|
* @property {boolean} [published]
|
|
693
796
|
* @property {string} [reading_time]
|
|
@@ -695,6 +798,10 @@ const Joi = require("joi");
|
|
|
695
798
|
* @property {string[]} [tags]
|
|
696
799
|
* @property {SEO} [seo]
|
|
697
800
|
* @property {string} [title]
|
|
801
|
+
* @property {string} [platform]
|
|
802
|
+
* @property {string} [type]
|
|
803
|
+
* @property {string} [description]
|
|
804
|
+
* @property {Object} [visibility] - Visibility of Page.
|
|
698
805
|
*/
|
|
699
806
|
|
|
700
807
|
/**
|
|
@@ -703,20 +810,45 @@ const Joi = require("joi");
|
|
|
703
810
|
* @property {string} [start]
|
|
704
811
|
* @property {string} [end]
|
|
705
812
|
* @property {number} [duration]
|
|
813
|
+
* @property {NextSchedule[]} [next_schedule]
|
|
706
814
|
*/
|
|
707
815
|
|
|
708
816
|
/**
|
|
709
|
-
* @typedef
|
|
817
|
+
* @typedef PagePublishRequest
|
|
710
818
|
* @property {boolean} [publish]
|
|
711
819
|
*/
|
|
712
820
|
|
|
713
821
|
/**
|
|
714
822
|
* @typedef PageMetaSchema
|
|
715
|
-
* @property {
|
|
716
|
-
* @property {
|
|
823
|
+
* @property {SystemPages[]} [system_pages]
|
|
824
|
+
* @property {CustomePages[]} [custom_pages]
|
|
717
825
|
* @property {string} [application_id]
|
|
718
826
|
*/
|
|
719
827
|
|
|
828
|
+
/**
|
|
829
|
+
* @typedef CustomePages
|
|
830
|
+
* @property {string} [display]
|
|
831
|
+
* @property {string} [slug]
|
|
832
|
+
*/
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* @typedef SystemPagesActionPage
|
|
836
|
+
* @property {string} [type]
|
|
837
|
+
*/
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* @typedef SystemPagesAction
|
|
841
|
+
* @property {SystemPagesActionPage} [page]
|
|
842
|
+
* @property {string} [type]
|
|
843
|
+
*/
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* @typedef SystemPages
|
|
847
|
+
* @property {string} [display]
|
|
848
|
+
* @property {SystemPagesAction} [action]
|
|
849
|
+
* @property {string} [page_type]
|
|
850
|
+
*/
|
|
851
|
+
|
|
720
852
|
/**
|
|
721
853
|
* @typedef Support
|
|
722
854
|
* @property {boolean} [created]
|
|
@@ -763,6 +895,8 @@ const Joi = require("joi");
|
|
|
763
895
|
* @typedef TagsSchema
|
|
764
896
|
* @property {string} [application]
|
|
765
897
|
* @property {string} [_id]
|
|
898
|
+
* @property {string} [company]
|
|
899
|
+
* @property {number} [__v]
|
|
766
900
|
* @property {TagSchema[]} [tags]
|
|
767
901
|
*/
|
|
768
902
|
|
|
@@ -776,6 +910,7 @@ const Joi = require("joi");
|
|
|
776
910
|
* @property {string} [position]
|
|
777
911
|
* @property {Object} [attributes]
|
|
778
912
|
* @property {string} [content]
|
|
913
|
+
* @property {Object[]} [compatible_engines]
|
|
779
914
|
* @property {Object[]} [pages]
|
|
780
915
|
* @property {TagSourceSchema} [__source]
|
|
781
916
|
*/
|
|
@@ -800,139 +935,150 @@ const Joi = require("joi");
|
|
|
800
935
|
|
|
801
936
|
/**
|
|
802
937
|
* @typedef FieldValidations
|
|
803
|
-
* @property {string} [name]
|
|
804
|
-
* @property {string} [type]
|
|
805
|
-
|
|
938
|
+
* @property {string} [name]
|
|
939
|
+
* @property {string} [type]
|
|
940
|
+
*/
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* @typedef ApplicationFieldDefinitionSchema
|
|
944
|
+
* @property {string} [_id]
|
|
945
|
+
* @property {string} [creator]
|
|
946
|
+
* @property {string} [resource]
|
|
947
|
+
* @property {string} [name]
|
|
948
|
+
* @property {string} [namespace]
|
|
949
|
+
* @property {string} [key]
|
|
950
|
+
* @property {string} [description]
|
|
951
|
+
* @property {string} [type]
|
|
952
|
+
* @property {boolean} [multi_value]
|
|
953
|
+
* @property {FieldValidations[]} [validations]
|
|
954
|
+
* @property {string} [company_id]
|
|
955
|
+
* @property {string} [created_by]
|
|
956
|
+
* @property {string} [updated_by]
|
|
957
|
+
* @property {boolean} [required]
|
|
958
|
+
* @property {boolean} [is_deleted]
|
|
959
|
+
* @property {string} [created_at]
|
|
960
|
+
* @property {string} [updated_at]
|
|
961
|
+
* @property {string} [type_name]
|
|
962
|
+
* @property {number} [invalid_fields_count]
|
|
963
|
+
* @property {string} [application_id]
|
|
806
964
|
*/
|
|
807
965
|
|
|
808
966
|
/**
|
|
809
967
|
* @typedef FieldDefinitionSchema
|
|
810
|
-
* @property {string} [
|
|
811
|
-
* @property {string} [
|
|
812
|
-
* @property {string} [
|
|
813
|
-
* @property {string} [
|
|
814
|
-
* @property {string} [
|
|
815
|
-
* @property {string} [
|
|
816
|
-
* @property {string} [
|
|
817
|
-
* @property {
|
|
818
|
-
*
|
|
819
|
-
* @property {FieldValidations[]} [validations]
|
|
820
|
-
* @property {string} [company_id]
|
|
821
|
-
* @property {
|
|
822
|
-
* @property {
|
|
823
|
-
* @property {
|
|
824
|
-
* @property {
|
|
968
|
+
* @property {string} [_id]
|
|
969
|
+
* @property {string} [creator]
|
|
970
|
+
* @property {string} [resource]
|
|
971
|
+
* @property {string} [name]
|
|
972
|
+
* @property {string} [namespace]
|
|
973
|
+
* @property {string} [key]
|
|
974
|
+
* @property {string} [description]
|
|
975
|
+
* @property {string} [type]
|
|
976
|
+
* @property {boolean} [multi_value]
|
|
977
|
+
* @property {FieldValidations[]} [validations]
|
|
978
|
+
* @property {string} [company_id]
|
|
979
|
+
* @property {string} [created_by]
|
|
980
|
+
* @property {string} [updated_by]
|
|
981
|
+
* @property {boolean} [required]
|
|
982
|
+
* @property {boolean} [is_deleted]
|
|
983
|
+
* @property {string} [created_at]
|
|
984
|
+
* @property {string} [updated_at]
|
|
985
|
+
* @property {string} [type_name]
|
|
986
|
+
* @property {number} [invalid_fields_count]
|
|
987
|
+
*/
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* @typedef ApplicationCustomFieldDefinitionsSchema
|
|
991
|
+
* @property {ApplicationFieldDefinitionSchema[]} [items]
|
|
992
|
+
* @property {Page} [page]
|
|
825
993
|
*/
|
|
826
994
|
|
|
827
995
|
/**
|
|
828
996
|
* @typedef CustomFieldDefinitionsSchema
|
|
829
|
-
* @property {FieldDefinitionSchema[]} [items]
|
|
997
|
+
* @property {FieldDefinitionSchema[]} [items]
|
|
830
998
|
* @property {Page} [page]
|
|
831
999
|
*/
|
|
832
1000
|
|
|
833
1001
|
/**
|
|
834
1002
|
* @typedef CustomFieldDefinitionRequestSchema
|
|
835
|
-
* @property {string} [
|
|
836
|
-
* @property {string} [
|
|
837
|
-
* @property {string} [
|
|
838
|
-
* @property {
|
|
839
|
-
*
|
|
840
|
-
* @property {string} [name]
|
|
841
|
-
* @property {string} [description]
|
|
842
|
-
* @property {
|
|
1003
|
+
* @property {string} [resource]
|
|
1004
|
+
* @property {string} [type]
|
|
1005
|
+
* @property {string} [key]
|
|
1006
|
+
* @property {string} [namespace]
|
|
1007
|
+
* @property {boolean} [multi_value]
|
|
1008
|
+
* @property {string} [name]
|
|
1009
|
+
* @property {string} [description]
|
|
1010
|
+
* @property {string} [creator]
|
|
1011
|
+
* @property {FieldValidations[]} [validations]
|
|
843
1012
|
*/
|
|
844
1013
|
|
|
845
1014
|
/**
|
|
846
1015
|
* @typedef CustomObjectCustomFieldDefinitions
|
|
847
|
-
* @property {string} [
|
|
848
|
-
* @property {string}
|
|
849
|
-
* @property {string} [description]
|
|
850
|
-
* @property {string} [name]
|
|
851
|
-
* @property {boolean} [multi_value]
|
|
852
|
-
*
|
|
853
|
-
* @property {
|
|
854
|
-
* @property {
|
|
855
|
-
* @property {FieldValidations[]} [validations] - Validations added against the
|
|
856
|
-
* custom field
|
|
1016
|
+
* @property {string} [_id]
|
|
1017
|
+
* @property {string} type
|
|
1018
|
+
* @property {string} [description]
|
|
1019
|
+
* @property {string} [name]
|
|
1020
|
+
* @property {boolean} [multi_value]
|
|
1021
|
+
* @property {boolean} [required]
|
|
1022
|
+
* @property {string} [key]
|
|
1023
|
+
* @property {FieldValidations[]} [validations]
|
|
857
1024
|
* @property {string} [action]
|
|
858
1025
|
*/
|
|
859
1026
|
|
|
860
1027
|
/**
|
|
861
1028
|
* @typedef CustomObjectDefinitionUpdateRequestSchema
|
|
862
|
-
* @property {string} [
|
|
863
|
-
* @property {string} [
|
|
864
|
-
* @property {string} [
|
|
865
|
-
*
|
|
866
|
-
* @property {
|
|
1029
|
+
* @property {string} [type]
|
|
1030
|
+
* @property {string} [description]
|
|
1031
|
+
* @property {string} [name]
|
|
1032
|
+
* @property {string} [display_name_key]
|
|
1033
|
+
* @property {CustomFieldDefinitionDetailResSchema[]} [field_definitions]
|
|
867
1034
|
*/
|
|
868
1035
|
|
|
869
1036
|
/**
|
|
870
1037
|
* @typedef CustomFieldDefinitionDetailResSchema
|
|
871
|
-
* @property {string} [
|
|
872
|
-
* @property {string} [
|
|
873
|
-
* @property {string} [
|
|
874
|
-
* @property {string} [
|
|
875
|
-
* @property {string} [
|
|
876
|
-
* @property {string} [
|
|
877
|
-
* @property {
|
|
878
|
-
*
|
|
879
|
-
* @property {string} [company_id]
|
|
880
|
-
* @property {string} [application_id]
|
|
881
|
-
* @property {
|
|
882
|
-
* @property {
|
|
883
|
-
* @property {
|
|
884
|
-
* @property {
|
|
885
|
-
* @property {string} [
|
|
886
|
-
* @property {string} [updated_at] - Date time at for a field's last modification
|
|
887
|
-
*/
|
|
888
|
-
|
|
889
|
-
/**
|
|
890
|
-
* @typedef MetaFieldDefinitionDetailResSchema
|
|
891
|
-
* @property {string} [resource] - Resource to which meta field is associated
|
|
892
|
-
* @property {string} [name] - Name of meta field
|
|
893
|
-
* @property {string} [namespace] - Namespace of meta field
|
|
894
|
-
* @property {string} [slug] - Slug of meta field
|
|
895
|
-
* @property {string} [description] - Description regarding meta field
|
|
896
|
-
* @property {string} [type] - Data type of meta field
|
|
897
|
-
* @property {boolean} [multi_value] - Flag to denote whether meta field is
|
|
898
|
-
* multi valued or not
|
|
899
|
-
* @property {string} [company_id] - Company Identifer
|
|
900
|
-
* @property {string} [application_id] - Sales channel identifier
|
|
901
|
-
* @property {boolean} [required] - Whether the field is required or not
|
|
902
|
-
* @property {boolean} [is_deleted] - Is meta field deleted
|
|
903
|
-
* @property {string} [id] - Unique system generated id
|
|
1038
|
+
* @property {string} [creator]
|
|
1039
|
+
* @property {string} [resource]
|
|
1040
|
+
* @property {string} [name]
|
|
1041
|
+
* @property {string} [namespace]
|
|
1042
|
+
* @property {string} [key]
|
|
1043
|
+
* @property {string} [description]
|
|
1044
|
+
* @property {string} [type]
|
|
1045
|
+
* @property {boolean} [multi_value]
|
|
1046
|
+
* @property {string} [company_id]
|
|
1047
|
+
* @property {string} [application_id]
|
|
1048
|
+
* @property {string} [created_by]
|
|
1049
|
+
* @property {string} [updated_by]
|
|
1050
|
+
* @property {boolean} [required]
|
|
1051
|
+
* @property {boolean} [is_deleted]
|
|
1052
|
+
* @property {string} [_id]
|
|
904
1053
|
* @property {Object[]} [validations]
|
|
905
|
-
* @property {string} [created_at]
|
|
906
|
-
* @property {string} [updated_at]
|
|
1054
|
+
* @property {string} [created_at]
|
|
1055
|
+
* @property {string} [updated_at]
|
|
907
1056
|
*/
|
|
908
1057
|
|
|
909
1058
|
/**
|
|
910
1059
|
* @typedef CustomDataDeleteSchema
|
|
911
|
-
* @property {boolean} [success]
|
|
912
|
-
* @property {string} [message]
|
|
913
|
-
*/
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* @typedef CustomFieldValue
|
|
917
|
-
* @property {Object} [value]
|
|
1060
|
+
* @property {boolean} [success]
|
|
1061
|
+
* @property {string} [message]
|
|
918
1062
|
*/
|
|
919
1063
|
|
|
920
1064
|
/**
|
|
921
1065
|
* @typedef CustomFieldSchema
|
|
922
|
-
* @property {string} [
|
|
923
|
-
* @property {string} [namespace]
|
|
924
|
-
* @property {string} [
|
|
925
|
-
* @property {string} [resource]
|
|
926
|
-
* @property {
|
|
927
|
-
* @property {string} [
|
|
928
|
-
* @property {string}
|
|
929
|
-
* @property {boolean} [multi_value]
|
|
930
|
-
* @property {string} [company_id]
|
|
1066
|
+
* @property {string} [_id]
|
|
1067
|
+
* @property {string} [namespace]
|
|
1068
|
+
* @property {string} [key]
|
|
1069
|
+
* @property {string} [resource]
|
|
1070
|
+
* @property {string} [creator]
|
|
1071
|
+
* @property {string} [resource_id]
|
|
1072
|
+
* @property {string} type
|
|
1073
|
+
* @property {boolean} [multi_value]
|
|
1074
|
+
* @property {string} [company_id]
|
|
1075
|
+
* @property {string} [definition_id]
|
|
931
1076
|
* @property {boolean} [has_invalid_values]
|
|
932
1077
|
* @property {Object[]} [invalid_value_errors]
|
|
933
|
-
* @property {
|
|
934
|
-
* @property {
|
|
935
|
-
* @property {string} [
|
|
1078
|
+
* @property {string} [created_by]
|
|
1079
|
+
* @property {boolean} [is_deleted]
|
|
1080
|
+
* @property {string} [created_at]
|
|
1081
|
+
* @property {string} [updated_at]
|
|
936
1082
|
*/
|
|
937
1083
|
|
|
938
1084
|
/**
|
|
@@ -952,152 +1098,196 @@ const Joi = require("joi");
|
|
|
952
1098
|
* @property {CustomFieldSchema[]} [items]
|
|
953
1099
|
*/
|
|
954
1100
|
|
|
955
|
-
/**
|
|
956
|
-
* @typedef CustomField
|
|
957
|
-
* @property {Object[]} [value]
|
|
958
|
-
* @property {string} [namespace] - This is the namespace to which custom field belongs
|
|
959
|
-
* @property {string} [slug] - This is the slug of custom field used while
|
|
960
|
-
* creating a custom field definition
|
|
961
|
-
*/
|
|
962
|
-
|
|
963
1101
|
/**
|
|
964
1102
|
* @typedef CustomFieldRequestSchema
|
|
965
|
-
* @property {
|
|
1103
|
+
* @property {Object[]} [fields]
|
|
966
1104
|
*/
|
|
967
1105
|
|
|
968
1106
|
/**
|
|
969
1107
|
* @typedef CustomObjectSchema
|
|
970
|
-
* @property {string} [
|
|
971
|
-
* @property {string} [
|
|
972
|
-
* @property {string} [
|
|
973
|
-
* @property {string} [
|
|
974
|
-
* @property {string} [
|
|
975
|
-
* @property {string} [
|
|
976
|
-
* @property {string} [
|
|
977
|
-
*
|
|
978
|
-
* @property {
|
|
1108
|
+
* @property {string} [_id]
|
|
1109
|
+
* @property {string} [name]
|
|
1110
|
+
* @property {string} [creator]
|
|
1111
|
+
* @property {string} [company_id]
|
|
1112
|
+
* @property {string} [created_by]
|
|
1113
|
+
* @property {string} [updated_by]
|
|
1114
|
+
* @property {string} [status]
|
|
1115
|
+
* @property {string} [slug]
|
|
1116
|
+
* @property {string} [type]
|
|
1117
|
+
* @property {string} [display_name]
|
|
1118
|
+
* @property {string} [definition_id]
|
|
1119
|
+
* @property {boolean} [is_deleted]
|
|
1120
|
+
* @property {string} [created_at]
|
|
1121
|
+
* @property {string} [updated_at]
|
|
1122
|
+
* @property {CustomFieldSchema[]} [fields]
|
|
979
1123
|
*/
|
|
980
1124
|
|
|
981
1125
|
/**
|
|
982
|
-
* @typedef
|
|
983
|
-
* @property {string} [
|
|
984
|
-
* @property {string} [
|
|
985
|
-
* @property {string} [
|
|
986
|
-
* @property {string} [
|
|
987
|
-
* @property {string} [
|
|
988
|
-
*
|
|
989
|
-
* @property {
|
|
990
|
-
*
|
|
1126
|
+
* @typedef CustomObjectApplicationSchema
|
|
1127
|
+
* @property {string} [_id]
|
|
1128
|
+
* @property {string} [name]
|
|
1129
|
+
* @property {string} [creator]
|
|
1130
|
+
* @property {string} [company_id]
|
|
1131
|
+
* @property {string} [application_id]
|
|
1132
|
+
* @property {string} [created_by]
|
|
1133
|
+
* @property {string} [updated_by]
|
|
1134
|
+
* @property {string} [status]
|
|
1135
|
+
* @property {string} [slug]
|
|
1136
|
+
* @property {string} [type]
|
|
1137
|
+
* @property {string} [display_name]
|
|
1138
|
+
* @property {string} [definition_id]
|
|
1139
|
+
* @property {boolean} [is_deleted]
|
|
1140
|
+
* @property {string} [created_at]
|
|
1141
|
+
* @property {string} [updated_at]
|
|
1142
|
+
* @property {CustomFieldSchema[]} [fields]
|
|
991
1143
|
*/
|
|
992
1144
|
|
|
993
1145
|
/**
|
|
994
|
-
* @typedef
|
|
995
|
-
* @property {string} [
|
|
996
|
-
* @property {string} [
|
|
997
|
-
* @property {string} [
|
|
998
|
-
* @property {string} [
|
|
999
|
-
* @property {
|
|
1000
|
-
* @property {string} [description] - Description of custom object definition
|
|
1001
|
-
* @property {CustomFieldDefinitionDetailResSchema[]} [field_definitions] -
|
|
1002
|
-
* Custom fields inside custom objects
|
|
1146
|
+
* @typedef CustomObjectDefinitionRequestSchema
|
|
1147
|
+
* @property {string} [type]
|
|
1148
|
+
* @property {string} [description]
|
|
1149
|
+
* @property {string} [name]
|
|
1150
|
+
* @property {string} [display_name_key]
|
|
1151
|
+
* @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
|
|
1003
1152
|
*/
|
|
1004
1153
|
|
|
1005
1154
|
/**
|
|
1006
|
-
* @typedef
|
|
1007
|
-
* @property {
|
|
1008
|
-
* @property {string} [
|
|
1009
|
-
*
|
|
1155
|
+
* @typedef CustomObjectCustomFieldDefinitionResSchema
|
|
1156
|
+
* @property {string} [creator]
|
|
1157
|
+
* @property {string} [resource]
|
|
1158
|
+
* @property {string} [name]
|
|
1159
|
+
* @property {string} [namespace]
|
|
1160
|
+
* @property {string} [key]
|
|
1161
|
+
* @property {string} [description]
|
|
1162
|
+
* @property {string} type
|
|
1163
|
+
* @property {boolean} [multi_value]
|
|
1164
|
+
* @property {FieldValidations[]} [validations]
|
|
1165
|
+
* @property {string} [company_id]
|
|
1166
|
+
* @property {string} [created_by]
|
|
1167
|
+
* @property {string} [metaobject_definition_id]
|
|
1168
|
+
* @property {boolean} [required]
|
|
1169
|
+
* @property {boolean} [is_deleted]
|
|
1170
|
+
* @property {string} [_id]
|
|
1171
|
+
* @property {string} [created_at]
|
|
1172
|
+
* @property {string} [updated_at]
|
|
1173
|
+
* @property {string} [application_id]
|
|
1010
1174
|
*/
|
|
1011
1175
|
|
|
1012
1176
|
/**
|
|
1013
|
-
* @typedef
|
|
1014
|
-
* @property {string} [
|
|
1015
|
-
* @property {
|
|
1177
|
+
* @typedef CustomObjectDefinitionSchema
|
|
1178
|
+
* @property {string} [_id]
|
|
1179
|
+
* @property {string} [name]
|
|
1180
|
+
* @property {string} [type]
|
|
1181
|
+
* @property {string} [display_name_key]
|
|
1182
|
+
* @property {string} [description]
|
|
1183
|
+
* @property {string} [creator]
|
|
1184
|
+
* @property {string} [created_by]
|
|
1185
|
+
* @property {string} [updated_by]
|
|
1186
|
+
* @property {string} [application_id]
|
|
1187
|
+
* @property {string} [company_id]
|
|
1188
|
+
* @property {string} [created_at]
|
|
1189
|
+
* @property {string} [updated_at]
|
|
1190
|
+
* @property {CustomObjectCustomFieldDefinitionResSchema[]} [field_definitions]
|
|
1016
1191
|
*/
|
|
1017
1192
|
|
|
1018
1193
|
/**
|
|
1019
|
-
* @typedef
|
|
1020
|
-
* @property {
|
|
1021
|
-
* @property {string} [
|
|
1022
|
-
* @property {string} [type] - Type of custom object entry
|
|
1194
|
+
* @typedef CustomObjectDefinitionDeleteResponseSchema
|
|
1195
|
+
* @property {boolean} [success]
|
|
1196
|
+
* @property {string} [message]
|
|
1023
1197
|
*/
|
|
1024
1198
|
|
|
1025
1199
|
/**
|
|
1026
|
-
* @typedef
|
|
1027
|
-
* @property {string} [
|
|
1028
|
-
* @property {string} [
|
|
1029
|
-
* @property {string} [created_at] - Creation time of custom object document
|
|
1030
|
-
* @property {string} [updated_at] - Updation time of custom object document
|
|
1031
|
-
* @property {string} [display_name] - Display name of custom object
|
|
1032
|
-
* @property {CustomObjectListItemDefinitionModel} [definition]
|
|
1033
|
-
* @property {number} [references] - References of the custom object entry
|
|
1200
|
+
* @typedef CustomObjectEntryBulkUploadResponse
|
|
1201
|
+
* @property {string} [message]
|
|
1202
|
+
* @property {string} [task_id]
|
|
1034
1203
|
*/
|
|
1035
1204
|
|
|
1036
1205
|
/**
|
|
1037
|
-
* @typedef
|
|
1038
|
-
* @property {
|
|
1039
|
-
*
|
|
1040
|
-
* @property {
|
|
1206
|
+
* @typedef CustomObjectListItemDefinationSchema
|
|
1207
|
+
* @property {string} [_id]
|
|
1208
|
+
* @property {string} [name]
|
|
1209
|
+
* @property {string} [type]
|
|
1210
|
+
* @property {string} [display_name_key]
|
|
1041
1211
|
*/
|
|
1042
1212
|
|
|
1043
1213
|
/**
|
|
1044
|
-
* @typedef
|
|
1045
|
-
* @property {string} [
|
|
1046
|
-
* @property {string} [
|
|
1047
|
-
* @property {string} [
|
|
1048
|
-
* @property {
|
|
1049
|
-
* @property {string} [
|
|
1214
|
+
* @typedef CustomObjectListItemSchema
|
|
1215
|
+
* @property {string} [_id]
|
|
1216
|
+
* @property {string} [definition_id]
|
|
1217
|
+
* @property {string} [status]
|
|
1218
|
+
* @property {string} [slug]
|
|
1219
|
+
* @property {string} [updated_at]
|
|
1220
|
+
* @property {string} [display_name]
|
|
1221
|
+
* @property {CustomObjectListItemDefinationSchema} [definition]
|
|
1222
|
+
* @property {number} [references]
|
|
1223
|
+
*/
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* @typedef CustomObjectsSchema
|
|
1227
|
+
* @property {CustomObjectListItemSchema[]} [items]
|
|
1228
|
+
* @property {Page} [page]
|
|
1229
|
+
*/
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* @typedef CustomObjectFieldSchema
|
|
1233
|
+
* @property {string} [_id]
|
|
1234
|
+
* @property {string} [key]
|
|
1235
|
+
* @property {string} [type]
|
|
1236
|
+
* @property {string} [definition_id]
|
|
1050
1237
|
*/
|
|
1051
1238
|
|
|
1052
1239
|
/**
|
|
1053
|
-
* @typedef
|
|
1054
|
-
* @property {
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
* @
|
|
1059
|
-
*
|
|
1060
|
-
* @property {string} [
|
|
1061
|
-
* @property {string} [
|
|
1062
|
-
* @property {
|
|
1063
|
-
*
|
|
1240
|
+
* @typedef MetafieldTypesSchema
|
|
1241
|
+
* @property {CustomFieldTypeSchema} [metafield_types]
|
|
1242
|
+
*/
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* @typedef CustomObjectByIdSchema
|
|
1246
|
+
* @property {string} [_id]
|
|
1247
|
+
* @property {string} [status]
|
|
1248
|
+
* @property {string} [slug]
|
|
1249
|
+
* @property {string} [display_name]
|
|
1250
|
+
* @property {CustomObjectListItemDefinationSchema} [definition]
|
|
1251
|
+
* @property {Object[]} [references]
|
|
1252
|
+
* @property {CustomObjectFieldSchema[]} [fields]
|
|
1064
1253
|
*/
|
|
1065
1254
|
|
|
1066
1255
|
/**
|
|
1067
1256
|
* @typedef CustomObjectBulkEntryInitiateDownload
|
|
1068
|
-
* @property {string} [message]
|
|
1069
|
-
* @property {string} [task_id]
|
|
1257
|
+
* @property {string} [message]
|
|
1258
|
+
* @property {string} [task_id]
|
|
1070
1259
|
*/
|
|
1071
1260
|
|
|
1072
1261
|
/**
|
|
1073
1262
|
* @typedef CustomObjectMetaSchema
|
|
1074
|
-
* @property {number} [mo_total_count]
|
|
1075
|
-
* @property {number} [mo_success_count]
|
|
1076
|
-
* @property {number} [mo_error_count]
|
|
1077
|
-
* @property {string} [mo_defintion_type]
|
|
1263
|
+
* @property {number} [mo_total_count]
|
|
1264
|
+
* @property {number} [mo_success_count]
|
|
1265
|
+
* @property {number} [mo_error_count]
|
|
1266
|
+
* @property {string} [mo_defintion_type]
|
|
1078
1267
|
*/
|
|
1079
1268
|
|
|
1080
1269
|
/**
|
|
1081
1270
|
* @typedef JobSchema
|
|
1082
|
-
* @property {string} [
|
|
1083
|
-
* @property {string[]} [jobs]
|
|
1084
|
-
* @property {string[]} [finished_jobs]
|
|
1085
|
-
* @property {string[]} [error_jobs]
|
|
1086
|
-
* @property {string[]} [errors_occured]
|
|
1087
|
-
* @property {string} [company_id]
|
|
1088
|
-
* @property {string} [
|
|
1089
|
-
* @property {string} [
|
|
1090
|
-
* @property {string} [
|
|
1091
|
-
* @property {string} [
|
|
1092
|
-
* @property {
|
|
1093
|
-
* @property {number} [
|
|
1094
|
-
* @property {number} [
|
|
1095
|
-
* @property {number} [
|
|
1271
|
+
* @property {string} [_id]
|
|
1272
|
+
* @property {string[]} [jobs]
|
|
1273
|
+
* @property {string[]} [finished_jobs]
|
|
1274
|
+
* @property {string[]} [error_jobs]
|
|
1275
|
+
* @property {string[]} [errors_occured]
|
|
1276
|
+
* @property {string} [company_id]
|
|
1277
|
+
* @property {string} [creator]
|
|
1278
|
+
* @property {string} [status]
|
|
1279
|
+
* @property {string} [action_type]
|
|
1280
|
+
* @property {string} [entity]
|
|
1281
|
+
* @property {string} [error_url]
|
|
1282
|
+
* @property {number} [finished_count]
|
|
1283
|
+
* @property {number} [error_count]
|
|
1284
|
+
* @property {number} [success_count]
|
|
1285
|
+
* @property {number} [total_jobs]
|
|
1096
1286
|
* @property {CustomObjectMetaSchema} [meta]
|
|
1097
|
-
* @property {string} [created_by]
|
|
1098
|
-
* @property {string} [created_at]
|
|
1099
|
-
* @property {string} [updated_at]
|
|
1100
|
-
* @property {string} [application_id]
|
|
1287
|
+
* @property {string} [created_by]
|
|
1288
|
+
* @property {string} [created_at]
|
|
1289
|
+
* @property {string} [updated_at]
|
|
1290
|
+
* @property {string} [application_id]
|
|
1101
1291
|
*/
|
|
1102
1292
|
|
|
1103
1293
|
/**
|
|
@@ -1112,11 +1302,6 @@ const Joi = require("joi");
|
|
|
1112
1302
|
* @property {Page} [page]
|
|
1113
1303
|
*/
|
|
1114
1304
|
|
|
1115
|
-
/**
|
|
1116
|
-
* @typedef MetafieldTypesSchema
|
|
1117
|
-
* @property {CustomFieldTypeSchema} [metafield_types]
|
|
1118
|
-
*/
|
|
1119
|
-
|
|
1120
1305
|
/**
|
|
1121
1306
|
* @typedef CustomFieldTypeSchema
|
|
1122
1307
|
* @property {StringSingleLine} [string_single_line]
|
|
@@ -1136,184 +1321,156 @@ const Joi = require("joi");
|
|
|
1136
1321
|
* @property {Duration} [duration]
|
|
1137
1322
|
*/
|
|
1138
1323
|
|
|
1139
|
-
/**
|
|
1140
|
-
* @typedef SupportedValidationsMetaExampleSchema
|
|
1141
|
-
* @property {string} [name]
|
|
1142
|
-
* @property {string} [value]
|
|
1143
|
-
*/
|
|
1144
|
-
|
|
1145
|
-
/**
|
|
1146
|
-
* @typedef SupportedValidationsMetaSchema
|
|
1147
|
-
* @property {SupportedValidationsMetaExampleSchema[]} [examples]
|
|
1148
|
-
*/
|
|
1149
|
-
|
|
1150
1324
|
/**
|
|
1151
1325
|
* @typedef SupportedValidationsSchema
|
|
1152
1326
|
* @property {string} [name]
|
|
1153
1327
|
* @property {string} [type]
|
|
1154
1328
|
* @property {string} [display]
|
|
1155
1329
|
* @property {boolean} [required]
|
|
1156
|
-
* @property {SupportedValidationsMetaSchema} [meta]
|
|
1157
1330
|
*/
|
|
1158
1331
|
|
|
1159
1332
|
/**
|
|
1160
1333
|
* @typedef Duration
|
|
1161
|
-
* @property {string} [name]
|
|
1162
|
-
* @property {boolean} [list_enabled]
|
|
1163
|
-
* @property {string} [type]
|
|
1164
|
-
* @property {string} [category]
|
|
1165
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1166
|
-
* validations available for the field
|
|
1334
|
+
* @property {string} [name]
|
|
1335
|
+
* @property {boolean} [list_enabled]
|
|
1336
|
+
* @property {string} [type]
|
|
1337
|
+
* @property {string} [category]
|
|
1338
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1167
1339
|
*/
|
|
1168
1340
|
|
|
1169
1341
|
/**
|
|
1170
1342
|
* @typedef HTML
|
|
1171
|
-
* @property {string} [name]
|
|
1172
|
-
* @property {boolean} [list_enabled]
|
|
1173
|
-
* @property {string} [type]
|
|
1174
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1175
|
-
* validations available for the field
|
|
1343
|
+
* @property {string} [name]
|
|
1344
|
+
* @property {boolean} [list_enabled]
|
|
1345
|
+
* @property {string} [type]
|
|
1346
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1176
1347
|
*/
|
|
1177
1348
|
|
|
1178
1349
|
/**
|
|
1179
1350
|
* @typedef StringSingleLine
|
|
1180
|
-
* @property {string} [name]
|
|
1181
|
-
* @property {boolean} [list_enabled]
|
|
1182
|
-
* @property {string} [category]
|
|
1183
|
-
* @property {string} [type]
|
|
1184
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1185
|
-
* validations available for the field
|
|
1351
|
+
* @property {string} [name]
|
|
1352
|
+
* @property {boolean} [list_enabled]
|
|
1353
|
+
* @property {string} [category]
|
|
1354
|
+
* @property {string} [type]
|
|
1355
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1186
1356
|
*/
|
|
1187
1357
|
|
|
1188
1358
|
/**
|
|
1189
1359
|
* @typedef StringMultiLine
|
|
1190
|
-
* @property {string} [name]
|
|
1191
|
-
* @property {boolean} [list_enabled]
|
|
1192
|
-
* @property {string} [category]
|
|
1193
|
-
* @property {string} [type]
|
|
1194
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1195
|
-
* validations available for the field
|
|
1360
|
+
* @property {string} [name]
|
|
1361
|
+
* @property {boolean} [list_enabled]
|
|
1362
|
+
* @property {string} [category]
|
|
1363
|
+
* @property {string} [type]
|
|
1364
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1196
1365
|
*/
|
|
1197
1366
|
|
|
1198
1367
|
/**
|
|
1199
1368
|
* @typedef Dropdown
|
|
1200
|
-
* @property {string} [name]
|
|
1201
|
-
* @property {boolean} [list_enabled]
|
|
1202
|
-
* @property {string} [category]
|
|
1203
|
-
* @property {string} [type]
|
|
1204
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1205
|
-
* validations available for the field
|
|
1369
|
+
* @property {string} [name]
|
|
1370
|
+
* @property {boolean} [list_enabled]
|
|
1371
|
+
* @property {string} [category]
|
|
1372
|
+
* @property {string} [type]
|
|
1373
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1206
1374
|
*/
|
|
1207
1375
|
|
|
1208
1376
|
/**
|
|
1209
1377
|
* @typedef Integer
|
|
1210
|
-
* @property {string} [name]
|
|
1211
|
-
* @property {boolean} [list_enabled]
|
|
1212
|
-
* @property {string} [type]
|
|
1213
|
-
* @property {string} [category]
|
|
1214
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1215
|
-
* validations available for the field
|
|
1378
|
+
* @property {string} [name]
|
|
1379
|
+
* @property {boolean} [list_enabled]
|
|
1380
|
+
* @property {string} [type]
|
|
1381
|
+
* @property {string} [category]
|
|
1382
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1216
1383
|
*/
|
|
1217
1384
|
|
|
1218
1385
|
/**
|
|
1219
1386
|
* @typedef FloatType
|
|
1220
|
-
* @property {string} [name]
|
|
1221
|
-
* @property {boolean} [list_enabled]
|
|
1222
|
-
* @property {string} [type]
|
|
1223
|
-
* @property {string} [category]
|
|
1224
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1225
|
-
* validations available for the field
|
|
1387
|
+
* @property {string} [name]
|
|
1388
|
+
* @property {boolean} [list_enabled]
|
|
1389
|
+
* @property {string} [type]
|
|
1390
|
+
* @property {string} [category]
|
|
1391
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1226
1392
|
*/
|
|
1227
1393
|
|
|
1228
1394
|
/**
|
|
1229
1395
|
* @typedef BooleanType
|
|
1230
|
-
* @property {string} [name]
|
|
1231
|
-
* @property {string} [category]
|
|
1232
|
-
* @property {boolean} [list_enabled]
|
|
1233
|
-
* @property {string} [type]
|
|
1234
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1235
|
-
* validations available for the field
|
|
1396
|
+
* @property {string} [name]
|
|
1397
|
+
* @property {string} [category]
|
|
1398
|
+
* @property {boolean} [list_enabled]
|
|
1399
|
+
* @property {string} [type]
|
|
1400
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1236
1401
|
*/
|
|
1237
1402
|
|
|
1238
1403
|
/**
|
|
1239
1404
|
* @typedef Date
|
|
1240
|
-
* @property {string} [name]
|
|
1241
|
-
* @property {boolean} [list_enabled]
|
|
1242
|
-
* @property {string} [category]
|
|
1243
|
-
* @property {string} [type]
|
|
1244
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1245
|
-
* validations available for the field
|
|
1405
|
+
* @property {string} [name]
|
|
1406
|
+
* @property {boolean} [list_enabled]
|
|
1407
|
+
* @property {string} [category]
|
|
1408
|
+
* @property {string} [type]
|
|
1409
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1246
1410
|
*/
|
|
1247
1411
|
|
|
1248
1412
|
/**
|
|
1249
1413
|
* @typedef Datetime
|
|
1250
|
-
* @property {string} [name]
|
|
1251
|
-
* @property {string} [category]
|
|
1252
|
-
* @property {boolean} [list_enabled]
|
|
1253
|
-
* @property {string} [type]
|
|
1254
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1255
|
-
* validations available for the field
|
|
1414
|
+
* @property {string} [name]
|
|
1415
|
+
* @property {string} [category]
|
|
1416
|
+
* @property {boolean} [list_enabled]
|
|
1417
|
+
* @property {string} [type]
|
|
1418
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1256
1419
|
*/
|
|
1257
1420
|
|
|
1258
1421
|
/**
|
|
1259
1422
|
* @typedef Json
|
|
1260
|
-
* @property {string} [name]
|
|
1261
|
-
* @property {boolean} [list_enabled]
|
|
1262
|
-
* @property {string} [category]
|
|
1263
|
-
* @property {string} [type]
|
|
1264
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1265
|
-
* validations available for the field
|
|
1423
|
+
* @property {string} [name]
|
|
1424
|
+
* @property {boolean} [list_enabled]
|
|
1425
|
+
* @property {string} [category]
|
|
1426
|
+
* @property {string} [type]
|
|
1427
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1266
1428
|
*/
|
|
1267
1429
|
|
|
1268
1430
|
/**
|
|
1269
1431
|
* @typedef File
|
|
1270
|
-
* @property {string} [name]
|
|
1271
|
-
* @property {string} [category]
|
|
1272
|
-
* @property {boolean} [list_enabled]
|
|
1273
|
-
* @property {string} [type]
|
|
1432
|
+
* @property {string} [name]
|
|
1433
|
+
* @property {string} [category]
|
|
1434
|
+
* @property {boolean} [list_enabled]
|
|
1435
|
+
* @property {string} [type]
|
|
1274
1436
|
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1275
1437
|
*/
|
|
1276
1438
|
|
|
1277
1439
|
/**
|
|
1278
1440
|
* @typedef Url
|
|
1279
|
-
* @property {string} [name]
|
|
1280
|
-
* @property {boolean} [list_enabled]
|
|
1281
|
-
* @property {string} [type]
|
|
1282
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1283
|
-
* validations available for the field
|
|
1441
|
+
* @property {string} [name]
|
|
1442
|
+
* @property {boolean} [list_enabled]
|
|
1443
|
+
* @property {string} [type]
|
|
1444
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1284
1445
|
*/
|
|
1285
1446
|
|
|
1286
1447
|
/**
|
|
1287
1448
|
* @typedef Metaobject
|
|
1288
|
-
* @property {string} [name]
|
|
1289
|
-
* @property {boolean} [list_enabled]
|
|
1290
|
-
*
|
|
1291
|
-
* @property {string} [
|
|
1292
|
-
* Custom Object belongs to
|
|
1293
|
-
* @property {string} [type] - Type of Custom Object Definition
|
|
1449
|
+
* @property {string} [name]
|
|
1450
|
+
* @property {boolean} [list_enabled]
|
|
1451
|
+
* @property {string} [category]
|
|
1452
|
+
* @property {string} [type]
|
|
1294
1453
|
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1295
1454
|
*/
|
|
1296
1455
|
|
|
1297
1456
|
/**
|
|
1298
1457
|
* @typedef Product
|
|
1299
|
-
* @property {string} [name]
|
|
1300
|
-
* @property {boolean} [list_enabled]
|
|
1301
|
-
*
|
|
1302
|
-
* @property {string} [
|
|
1303
|
-
* Product is associated with
|
|
1304
|
-
* @property {string} [type] - Custom Object Definition that Product is associated with
|
|
1458
|
+
* @property {string} [name]
|
|
1459
|
+
* @property {boolean} [list_enabled]
|
|
1460
|
+
* @property {string} [category]
|
|
1461
|
+
* @property {string} [type]
|
|
1305
1462
|
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1463
|
+
* @property {string[]} [scope]
|
|
1306
1464
|
*/
|
|
1307
1465
|
|
|
1308
1466
|
/**
|
|
1309
1467
|
* @typedef CustomObjectEntry
|
|
1310
|
-
* @property {string} [
|
|
1311
|
-
* @property {string} [name]
|
|
1312
|
-
* @property {string} [type]
|
|
1313
|
-
* @property {string} [updated_at]
|
|
1314
|
-
* @property {number} [entries_count]
|
|
1315
|
-
*
|
|
1316
|
-
* @property {number} [fields_count] - Number of fields against a Custom Object definition
|
|
1468
|
+
* @property {string} [_id]
|
|
1469
|
+
* @property {string} [name]
|
|
1470
|
+
* @property {string} [type]
|
|
1471
|
+
* @property {string} [updated_at]
|
|
1472
|
+
* @property {number} [entries_count]
|
|
1473
|
+
* @property {number} [fields_count]
|
|
1317
1474
|
*/
|
|
1318
1475
|
|
|
1319
1476
|
/**
|
|
@@ -1324,33 +1481,21 @@ const Joi = require("joi");
|
|
|
1324
1481
|
|
|
1325
1482
|
/**
|
|
1326
1483
|
* @typedef CustomObjectEntryFieldSchema
|
|
1327
|
-
* @property {string} [
|
|
1328
|
-
* @property {string} [slug] - This is slug for a custom field definition
|
|
1329
|
-
*/
|
|
1330
|
-
|
|
1331
|
-
/**
|
|
1332
|
-
* @typedef CustomObjectEntryFieldSchemaWithoutID
|
|
1333
|
-
* @property {string} [slug] - Custom fields belonging to a custom object
|
|
1334
|
-
* @property {Object} [value] - Value of custom field inside a custom object
|
|
1484
|
+
* @property {string} [definition_id]
|
|
1335
1485
|
*/
|
|
1336
1486
|
|
|
1337
1487
|
/**
|
|
1338
1488
|
* @typedef CustomObjectRequestSchema
|
|
1339
|
-
* @property {string} [status]
|
|
1340
|
-
* @property {string} [slug]
|
|
1341
|
-
* @property {
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
/**
|
|
1345
|
-
* @typedef CustomObjectRequestSchemaWithoutId
|
|
1346
|
-
* @property {string} [status] - Status of the custom object entry.
|
|
1347
|
-
* @property {CustomObjectEntryFieldSchemaWithoutID[]} [fields] - List of custom fields
|
|
1489
|
+
* @property {string} [status]
|
|
1490
|
+
* @property {string} [slug]
|
|
1491
|
+
* @property {string} [definition_id]
|
|
1492
|
+
* @property {CustomObjectEntryFieldSchema[]} [fields]
|
|
1348
1493
|
*/
|
|
1349
1494
|
|
|
1350
1495
|
/**
|
|
1351
1496
|
* @typedef CustomObjectBulkSchema
|
|
1352
|
-
* @property {string} [url]
|
|
1353
|
-
* @property {number} [total_records]
|
|
1497
|
+
* @property {string} [url]
|
|
1498
|
+
* @property {number} [total_records]
|
|
1354
1499
|
*/
|
|
1355
1500
|
|
|
1356
1501
|
/**
|
|
@@ -1361,8 +1506,6 @@ const Joi = require("joi");
|
|
|
1361
1506
|
* @property {PageType} type
|
|
1362
1507
|
*/
|
|
1363
1508
|
|
|
1364
|
-
/** @typedef {"title" | "description"} GenerationEntityType */
|
|
1365
|
-
|
|
1366
1509
|
/**
|
|
1367
1510
|
* @typedef {| "about-us"
|
|
1368
1511
|
* | "addresses"
|
|
@@ -1415,14 +1558,6 @@ const Joi = require("joi");
|
|
|
1415
1558
|
*/
|
|
1416
1559
|
|
|
1417
1560
|
class ContentPlatformModel {
|
|
1418
|
-
/** @returns {ValidationError} */
|
|
1419
|
-
static ValidationError() {
|
|
1420
|
-
return Joi.object({
|
|
1421
|
-
message: Joi.string().allow("").required(),
|
|
1422
|
-
field: Joi.string().allow("").required(),
|
|
1423
|
-
});
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
1561
|
/** @returns {GenerateSEOContent} */
|
|
1427
1562
|
static GenerateSEOContent() {
|
|
1428
1563
|
return Joi.object({
|
|
@@ -1453,6 +1588,7 @@ class ContentPlatformModel {
|
|
|
1453
1588
|
_id: Joi.string().allow(""),
|
|
1454
1589
|
updated_at: Joi.string().allow(""),
|
|
1455
1590
|
created_at: Joi.string().allow(""),
|
|
1591
|
+
__v: Joi.number(),
|
|
1456
1592
|
});
|
|
1457
1593
|
}
|
|
1458
1594
|
|
|
@@ -1473,7 +1609,7 @@ class ContentPlatformModel {
|
|
|
1473
1609
|
redirect_to: Joi.string().allow(""),
|
|
1474
1610
|
updated_at: Joi.string().allow(""),
|
|
1475
1611
|
created_at: Joi.string().allow(""),
|
|
1476
|
-
|
|
1612
|
+
__v: Joi.number(),
|
|
1477
1613
|
});
|
|
1478
1614
|
}
|
|
1479
1615
|
|
|
@@ -1495,8 +1631,8 @@ class ContentPlatformModel {
|
|
|
1495
1631
|
/** @returns {SeoSchema} */
|
|
1496
1632
|
static SeoSchema() {
|
|
1497
1633
|
return Joi.object({
|
|
1498
|
-
app: Joi.string().allow(""),
|
|
1499
1634
|
_id: Joi.string().allow(""),
|
|
1635
|
+
app: Joi.string().allow(""),
|
|
1500
1636
|
robots_txt: Joi.string().allow(""),
|
|
1501
1637
|
sitemap_enabled: Joi.boolean(),
|
|
1502
1638
|
additional_sitemap: Joi.string().allow(""),
|
|
@@ -1505,6 +1641,8 @@ class ContentPlatformModel {
|
|
|
1505
1641
|
details: ContentPlatformModel.Detail(),
|
|
1506
1642
|
created_at: Joi.string().allow(""),
|
|
1507
1643
|
updated_at: Joi.string().allow(""),
|
|
1644
|
+
__v: Joi.number(),
|
|
1645
|
+
sitemap: ContentPlatformModel.SEOSitemap(),
|
|
1508
1646
|
});
|
|
1509
1647
|
}
|
|
1510
1648
|
|
|
@@ -1537,16 +1675,17 @@ class ContentPlatformModel {
|
|
|
1537
1675
|
/** @returns {SEOSchemaMarkupTemplate} */
|
|
1538
1676
|
static SEOSchemaMarkupTemplate() {
|
|
1539
1677
|
return Joi.object({
|
|
1540
|
-
|
|
1678
|
+
_id: Joi.string().allow(""),
|
|
1541
1679
|
title: Joi.string().allow(""),
|
|
1542
1680
|
page_type: Joi.string().allow(""),
|
|
1543
1681
|
schema: Joi.string().allow(""),
|
|
1544
1682
|
description: Joi.string().allow(""),
|
|
1545
1683
|
active: Joi.boolean(),
|
|
1684
|
+
application: Joi.string().allow(""),
|
|
1546
1685
|
created_at: Joi.string().allow(""),
|
|
1547
1686
|
updated_at: Joi.string().allow(""),
|
|
1548
|
-
application: Joi.string().allow(""),
|
|
1549
1687
|
target_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1688
|
+
__v: Joi.number(),
|
|
1550
1689
|
});
|
|
1551
1690
|
}
|
|
1552
1691
|
|
|
@@ -1555,12 +1694,46 @@ class ContentPlatformModel {
|
|
|
1555
1694
|
return Joi.object({
|
|
1556
1695
|
title: Joi.string().allow(""),
|
|
1557
1696
|
page_type: Joi.string().allow(""),
|
|
1558
|
-
schema: Joi.string().allow(""),
|
|
1559
1697
|
description: Joi.string().allow(""),
|
|
1698
|
+
schema: Joi.string().allow(""),
|
|
1560
1699
|
target_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1561
1700
|
active: Joi.boolean(),
|
|
1562
1701
|
created_at: Joi.string().allow(""),
|
|
1563
|
-
|
|
1702
|
+
});
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
/** @returns {DeletPathMappingSchema} */
|
|
1706
|
+
static DeletPathMappingSchema() {
|
|
1707
|
+
return Joi.object({
|
|
1708
|
+
message: Joi.string().allow(""),
|
|
1709
|
+
data: ContentPlatformModel.PathMappingSchema(),
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
/** @returns {CreatePathMappingSchema} */
|
|
1714
|
+
static CreatePathMappingSchema() {
|
|
1715
|
+
return Joi.object({
|
|
1716
|
+
message: Joi.string().allow(""),
|
|
1717
|
+
data: ContentPlatformModel.PathMappingSchema(),
|
|
1718
|
+
});
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
/** @returns {GetAllPathMappingSchema} */
|
|
1722
|
+
static GetAllPathMappingSchema() {
|
|
1723
|
+
return Joi.object({
|
|
1724
|
+
message: Joi.string().allow(""),
|
|
1725
|
+
data: ContentPlatformModel.GetPathSchema(),
|
|
1726
|
+
});
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
/** @returns {GetPathSchema} */
|
|
1730
|
+
static GetPathSchema() {
|
|
1731
|
+
return Joi.object({
|
|
1732
|
+
docs: Joi.array().items(ContentPlatformModel.PathMappingSchema()),
|
|
1733
|
+
page: Joi.number(),
|
|
1734
|
+
limit: Joi.number(),
|
|
1735
|
+
pages: Joi.number(),
|
|
1736
|
+
total: Joi.number(),
|
|
1564
1737
|
});
|
|
1565
1738
|
}
|
|
1566
1739
|
|
|
@@ -1621,13 +1794,13 @@ class ContentPlatformModel {
|
|
|
1621
1794
|
return Joi.object({
|
|
1622
1795
|
page_type: Joi.string().allow(""),
|
|
1623
1796
|
schema: Joi.string().allow(""),
|
|
1624
|
-
target_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1625
1797
|
});
|
|
1626
1798
|
}
|
|
1627
1799
|
|
|
1628
1800
|
/** @returns {ScheduleSchema} */
|
|
1629
1801
|
static ScheduleSchema() {
|
|
1630
1802
|
return Joi.object({
|
|
1803
|
+
published: Joi.boolean(),
|
|
1631
1804
|
cron: Joi.string().allow(""),
|
|
1632
1805
|
start: Joi.string().allow(""),
|
|
1633
1806
|
end: Joi.string().allow(""),
|
|
@@ -1644,8 +1817,8 @@ class ContentPlatformModel {
|
|
|
1644
1817
|
});
|
|
1645
1818
|
}
|
|
1646
1819
|
|
|
1647
|
-
/** @returns {
|
|
1648
|
-
static
|
|
1820
|
+
/** @returns {BlogGetResponse} */
|
|
1821
|
+
static BlogGetResponse() {
|
|
1649
1822
|
return Joi.object({
|
|
1650
1823
|
items: Joi.array().items(ContentPlatformModel.BlogSchema()),
|
|
1651
1824
|
page: ContentPlatformModel.Page(),
|
|
@@ -1690,7 +1863,7 @@ class ContentPlatformModel {
|
|
|
1690
1863
|
static BlogSchema() {
|
|
1691
1864
|
return Joi.object({
|
|
1692
1865
|
_id: Joi.string().allow(""),
|
|
1693
|
-
_custom_json: Joi.
|
|
1866
|
+
_custom_json: Joi.any(),
|
|
1694
1867
|
application: Joi.string().allow(""),
|
|
1695
1868
|
archived: Joi.boolean(),
|
|
1696
1869
|
author: ContentPlatformModel.Author(),
|
|
@@ -1705,6 +1878,7 @@ class ContentPlatformModel {
|
|
|
1705
1878
|
title: Joi.string().allow(""),
|
|
1706
1879
|
date_meta: ContentPlatformModel.DateMeta(),
|
|
1707
1880
|
summary: Joi.string().allow(""),
|
|
1881
|
+
status: Joi.string().allow(""),
|
|
1708
1882
|
});
|
|
1709
1883
|
}
|
|
1710
1884
|
|
|
@@ -1716,7 +1890,7 @@ class ContentPlatformModel {
|
|
|
1716
1890
|
title: Joi.string().allow(""),
|
|
1717
1891
|
meta_tags: Joi.array().items(ContentPlatformModel.SEOMetaItem()),
|
|
1718
1892
|
sitemap: ContentPlatformModel.SEOSitemap(),
|
|
1719
|
-
|
|
1893
|
+
breadcrumbs: Joi.array().items(ContentPlatformModel.SEObreadcrumb()),
|
|
1720
1894
|
canonical_url: Joi.string().allow(""),
|
|
1721
1895
|
});
|
|
1722
1896
|
}
|
|
@@ -1768,11 +1942,11 @@ class ContentPlatformModel {
|
|
|
1768
1942
|
});
|
|
1769
1943
|
}
|
|
1770
1944
|
|
|
1771
|
-
/** @returns {
|
|
1772
|
-
static
|
|
1945
|
+
/** @returns {BlogRequest} */
|
|
1946
|
+
static BlogRequest() {
|
|
1773
1947
|
return Joi.object({
|
|
1774
1948
|
application: Joi.string().allow(""),
|
|
1775
|
-
_custom_json: Joi.
|
|
1949
|
+
_custom_json: Joi.any(),
|
|
1776
1950
|
author: ContentPlatformModel.Author(),
|
|
1777
1951
|
content: Joi.array().items(ContentPlatformModel.ResourceContent()),
|
|
1778
1952
|
feature_image: ContentPlatformModel.Asset(),
|
|
@@ -1781,6 +1955,7 @@ class ContentPlatformModel {
|
|
|
1781
1955
|
slug: Joi.string().allow(""),
|
|
1782
1956
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
1783
1957
|
title: Joi.string().allow(""),
|
|
1958
|
+
publish_date: Joi.string().allow(""),
|
|
1784
1959
|
seo: ContentPlatformModel.SEO(),
|
|
1785
1960
|
summary: Joi.string().allow(""),
|
|
1786
1961
|
});
|
|
@@ -1802,6 +1977,13 @@ class ContentPlatformModel {
|
|
|
1802
1977
|
});
|
|
1803
1978
|
}
|
|
1804
1979
|
|
|
1980
|
+
/** @returns {DataLoaderItemsResponseSchema} */
|
|
1981
|
+
static DataLoaderItemsResponseSchema() {
|
|
1982
|
+
return Joi.object({
|
|
1983
|
+
items: Joi.array().items(ContentPlatformModel.DataLoaderResponseSchema()),
|
|
1984
|
+
});
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1805
1987
|
/** @returns {DataLoaderResponseSchema} */
|
|
1806
1988
|
static DataLoaderResponseSchema() {
|
|
1807
1989
|
return Joi.object({
|
|
@@ -1814,6 +1996,10 @@ class ContentPlatformModel {
|
|
|
1814
1996
|
type: Joi.string().allow(""),
|
|
1815
1997
|
url: Joi.string().allow(""),
|
|
1816
1998
|
content: Joi.string().allow(""),
|
|
1999
|
+
created_at: Joi.string().allow(""),
|
|
2000
|
+
modified_at: Joi.string().allow(""),
|
|
2001
|
+
__v: Joi.number(),
|
|
2002
|
+
is_selected: Joi.boolean(),
|
|
1817
2003
|
__source: ContentPlatformModel.DataLoaderSourceSchema(),
|
|
1818
2004
|
});
|
|
1819
2005
|
}
|
|
@@ -1821,7 +2007,7 @@ class ContentPlatformModel {
|
|
|
1821
2007
|
/** @returns {DataLoaderResetResponseSchema} */
|
|
1822
2008
|
static DataLoaderResetResponseSchema() {
|
|
1823
2009
|
return Joi.object({
|
|
1824
|
-
|
|
2010
|
+
resetted: Joi.boolean(),
|
|
1825
2011
|
});
|
|
1826
2012
|
}
|
|
1827
2013
|
|
|
@@ -1858,7 +2044,6 @@ class ContentPlatformModel {
|
|
|
1858
2044
|
_locale_language: ContentPlatformModel.LocaleLanguage(),
|
|
1859
2045
|
image: Joi.string().allow(""),
|
|
1860
2046
|
type: Joi.string().allow(""),
|
|
1861
|
-
action: ContentPlatformModel.Action(),
|
|
1862
2047
|
active: Joi.boolean(),
|
|
1863
2048
|
display: Joi.string().allow(""),
|
|
1864
2049
|
sort_order: Joi.number(),
|
|
@@ -1867,6 +2052,15 @@ class ContentPlatformModel {
|
|
|
1867
2052
|
}).id("NavigationReference");
|
|
1868
2053
|
}
|
|
1869
2054
|
|
|
2055
|
+
/** @returns {AssignmentReference} */
|
|
2056
|
+
static AssignmentReference() {
|
|
2057
|
+
return Joi.object({
|
|
2058
|
+
platform: Joi.string().allow(""),
|
|
2059
|
+
orientation: Joi.string().allow(""),
|
|
2060
|
+
position: Joi.string().allow(""),
|
|
2061
|
+
});
|
|
2062
|
+
}
|
|
2063
|
+
|
|
1870
2064
|
/** @returns {CronBasedScheduleSchema} */
|
|
1871
2065
|
static CronBasedScheduleSchema() {
|
|
1872
2066
|
return Joi.object({
|
|
@@ -1888,7 +2082,7 @@ class ContentPlatformModel {
|
|
|
1888
2082
|
static HandpickedTagSchema() {
|
|
1889
2083
|
return Joi.object({
|
|
1890
2084
|
position: Joi.string().allow(""),
|
|
1891
|
-
attributes: Joi.
|
|
2085
|
+
attributes: Joi.any(),
|
|
1892
2086
|
name: Joi.string().allow(""),
|
|
1893
2087
|
url: Joi.string().allow(""),
|
|
1894
2088
|
type: Joi.string().allow(""),
|
|
@@ -1913,7 +2107,7 @@ class ContentPlatformModel {
|
|
|
1913
2107
|
type: Joi.string().allow(""),
|
|
1914
2108
|
url: Joi.string().allow(""),
|
|
1915
2109
|
position: Joi.string().allow(""),
|
|
1916
|
-
attributes: Joi.
|
|
2110
|
+
attributes: Joi.any(),
|
|
1917
2111
|
pages: Joi.array().items(Joi.any()),
|
|
1918
2112
|
content: Joi.string().allow(""),
|
|
1919
2113
|
});
|
|
@@ -1929,14 +2123,18 @@ class ContentPlatformModel {
|
|
|
1929
2123
|
/** @returns {DataLoaderSchema} */
|
|
1930
2124
|
static DataLoaderSchema() {
|
|
1931
2125
|
return Joi.object({
|
|
2126
|
+
_id: Joi.string().allow(""),
|
|
2127
|
+
url: Joi.string().allow(""),
|
|
2128
|
+
created_at: Joi.string().allow(""),
|
|
2129
|
+
modified_at: Joi.string().allow(""),
|
|
2130
|
+
application: Joi.string().allow(""),
|
|
2131
|
+
company: Joi.string().allow(""),
|
|
1932
2132
|
name: Joi.string().allow(""),
|
|
1933
2133
|
service: Joi.string().allow(""),
|
|
1934
2134
|
operation_id: Joi.string().allow(""),
|
|
2135
|
+
is_selected: Joi.boolean(),
|
|
1935
2136
|
type: Joi.string().allow(""),
|
|
1936
|
-
url: Joi.string().allow(""),
|
|
1937
|
-
content: Joi.string().allow(""),
|
|
1938
2137
|
__source: ContentPlatformModel.DataLoaderSourceSchema(),
|
|
1939
|
-
_id: Joi.string().allow(""),
|
|
1940
2138
|
});
|
|
1941
2139
|
}
|
|
1942
2140
|
|
|
@@ -1948,6 +2146,32 @@ class ContentPlatformModel {
|
|
|
1948
2146
|
});
|
|
1949
2147
|
}
|
|
1950
2148
|
|
|
2149
|
+
/** @returns {TagSpecSchema} */
|
|
2150
|
+
static TagSpecSchema() {
|
|
2151
|
+
return Joi.object({
|
|
2152
|
+
name: Joi.string().allow(""),
|
|
2153
|
+
description: Joi.string().allow(""),
|
|
2154
|
+
});
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
/** @returns {ServerSchema} */
|
|
2158
|
+
static ServerSchema() {
|
|
2159
|
+
return Joi.object({
|
|
2160
|
+
url: Joi.string().allow(""),
|
|
2161
|
+
});
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
/** @returns {DataLoadersApiSpecSchema} */
|
|
2165
|
+
static DataLoadersApiSpecSchema() {
|
|
2166
|
+
return Joi.object({
|
|
2167
|
+
info: Joi.any(),
|
|
2168
|
+
servers: Joi.array().items(ContentPlatformModel.ServerSchema()),
|
|
2169
|
+
tags: Joi.array().items(ContentPlatformModel.TagSpecSchema()),
|
|
2170
|
+
openapi: Joi.string().allow(""),
|
|
2171
|
+
paths: Joi.object().pattern(/\S/, Joi.any()),
|
|
2172
|
+
});
|
|
2173
|
+
}
|
|
2174
|
+
|
|
1951
2175
|
/** @returns {DataLoadersSchema} */
|
|
1952
2176
|
static DataLoadersSchema() {
|
|
1953
2177
|
return Joi.object({
|
|
@@ -1955,8 +2179,8 @@ class ContentPlatformModel {
|
|
|
1955
2179
|
});
|
|
1956
2180
|
}
|
|
1957
2181
|
|
|
1958
|
-
/** @returns {
|
|
1959
|
-
static
|
|
2182
|
+
/** @returns {TagDeleteSuccessResponse} */
|
|
2183
|
+
static TagDeleteSuccessResponse() {
|
|
1960
2184
|
return Joi.object({
|
|
1961
2185
|
success: Joi.boolean(),
|
|
1962
2186
|
});
|
|
@@ -1969,10 +2193,9 @@ class ContentPlatformModel {
|
|
|
1969
2193
|
status: Joi.number(),
|
|
1970
2194
|
code: Joi.string().allow(""),
|
|
1971
2195
|
exception: Joi.string().allow(""),
|
|
1972
|
-
info: Joi.string().allow(""),
|
|
1973
2196
|
request_id: Joi.string().allow(""),
|
|
1974
2197
|
stack_trace: Joi.string().allow(""),
|
|
1975
|
-
meta: Joi.
|
|
2198
|
+
meta: Joi.any(),
|
|
1976
2199
|
});
|
|
1977
2200
|
}
|
|
1978
2201
|
|
|
@@ -1994,7 +2217,8 @@ class ContentPlatformModel {
|
|
|
1994
2217
|
slug: Joi.string().allow(""),
|
|
1995
2218
|
application: Joi.string().allow(""),
|
|
1996
2219
|
icon_url: Joi.string().allow(""),
|
|
1997
|
-
_custom_json: Joi.
|
|
2220
|
+
_custom_json: Joi.any(),
|
|
2221
|
+
__v: Joi.number(),
|
|
1998
2222
|
});
|
|
1999
2223
|
}
|
|
2000
2224
|
|
|
@@ -2020,15 +2244,15 @@ class ContentPlatformModel {
|
|
|
2020
2244
|
/** @returns {FAQCategorySchema} */
|
|
2021
2245
|
static FAQCategorySchema() {
|
|
2022
2246
|
return Joi.object({
|
|
2023
|
-
|
|
2247
|
+
_id: Joi.string().allow(""),
|
|
2248
|
+
application: Joi.string().allow(""),
|
|
2024
2249
|
title: Joi.string().allow(""),
|
|
2025
2250
|
description: Joi.string().allow(""),
|
|
2026
|
-
|
|
2027
|
-
_id: Joi.string().allow(""),
|
|
2251
|
+
index: Joi.number(),
|
|
2028
2252
|
slug: Joi.string().allow(""),
|
|
2029
|
-
|
|
2253
|
+
children: Joi.array().items(ContentPlatformModel.ChildrenSchema()),
|
|
2030
2254
|
icon_url: Joi.string().allow(""),
|
|
2031
|
-
|
|
2255
|
+
__v: Joi.number(),
|
|
2032
2256
|
});
|
|
2033
2257
|
}
|
|
2034
2258
|
|
|
@@ -2041,6 +2265,7 @@ class ContentPlatformModel {
|
|
|
2041
2265
|
question: Joi.string().allow(""),
|
|
2042
2266
|
answer: Joi.string().allow(""),
|
|
2043
2267
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
2268
|
+
__v: Joi.number(),
|
|
2044
2269
|
});
|
|
2045
2270
|
}
|
|
2046
2271
|
|
|
@@ -2119,11 +2344,12 @@ class ContentPlatformModel {
|
|
|
2119
2344
|
current: Joi.number(),
|
|
2120
2345
|
type: Joi.string().allow("").required(),
|
|
2121
2346
|
size: Joi.number(),
|
|
2347
|
+
total: Joi.number(),
|
|
2122
2348
|
});
|
|
2123
2349
|
}
|
|
2124
2350
|
|
|
2125
|
-
/** @returns {
|
|
2126
|
-
static
|
|
2351
|
+
/** @returns {LandingPageGetResponse} */
|
|
2352
|
+
static LandingPageGetResponse() {
|
|
2127
2353
|
return Joi.object({
|
|
2128
2354
|
items: Joi.array().items(ContentPlatformModel.LandingPageSchema()),
|
|
2129
2355
|
page: ContentPlatformModel.Page(),
|
|
@@ -2134,26 +2360,26 @@ class ContentPlatformModel {
|
|
|
2134
2360
|
static LandingPageSchema() {
|
|
2135
2361
|
return Joi.object({
|
|
2136
2362
|
slug: Joi.string().allow(""),
|
|
2137
|
-
action: ContentPlatformModel.Action(),
|
|
2138
2363
|
platform: Joi.array().items(Joi.string().allow("")),
|
|
2139
2364
|
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
2140
2365
|
date_meta: ContentPlatformModel.DateMeta(),
|
|
2141
2366
|
_id: Joi.string().allow(""),
|
|
2142
2367
|
application: Joi.string().allow(""),
|
|
2143
2368
|
archived: Joi.boolean(),
|
|
2144
|
-
_custom_json: Joi.
|
|
2369
|
+
_custom_json: Joi.any(),
|
|
2370
|
+
__v: Joi.number(),
|
|
2145
2371
|
});
|
|
2146
2372
|
}
|
|
2147
2373
|
|
|
2148
|
-
/** @returns {
|
|
2149
|
-
static
|
|
2374
|
+
/** @returns {DefaultNavigationResponse} */
|
|
2375
|
+
static DefaultNavigationResponse() {
|
|
2150
2376
|
return Joi.object({
|
|
2151
2377
|
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
2152
2378
|
});
|
|
2153
2379
|
}
|
|
2154
2380
|
|
|
2155
|
-
/** @returns {
|
|
2156
|
-
static
|
|
2381
|
+
/** @returns {NavigationGetResponse} */
|
|
2382
|
+
static NavigationGetResponse() {
|
|
2157
2383
|
return Joi.object({
|
|
2158
2384
|
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
2159
2385
|
page: ContentPlatformModel.Page(),
|
|
@@ -2182,22 +2408,38 @@ class ContentPlatformModel {
|
|
|
2182
2408
|
orientation: ContentPlatformModel.Orientation(),
|
|
2183
2409
|
version: Joi.number(),
|
|
2184
2410
|
navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
|
|
2411
|
+
assignments: Joi.array().items(
|
|
2412
|
+
ContentPlatformModel.AssignmentReference()
|
|
2413
|
+
),
|
|
2414
|
+
__v: Joi.number(),
|
|
2185
2415
|
});
|
|
2186
2416
|
}
|
|
2187
2417
|
|
|
2188
|
-
/** @returns {
|
|
2189
|
-
static
|
|
2418
|
+
/** @returns {NavigationRequest} */
|
|
2419
|
+
static NavigationRequest() {
|
|
2190
2420
|
return Joi.object({
|
|
2191
2421
|
name: Joi.string().allow(""),
|
|
2192
2422
|
slug: Joi.string().allow(""),
|
|
2193
2423
|
platform: Joi.array().items(Joi.string().allow("")),
|
|
2194
2424
|
orientation: ContentPlatformModel.Orientation(),
|
|
2425
|
+
assignments: Joi.array().items(
|
|
2426
|
+
ContentPlatformModel.NavigationAssignment()
|
|
2427
|
+
),
|
|
2195
2428
|
navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
|
|
2196
2429
|
});
|
|
2197
2430
|
}
|
|
2198
2431
|
|
|
2199
|
-
/** @returns {
|
|
2200
|
-
static
|
|
2432
|
+
/** @returns {NavigationAssignment} */
|
|
2433
|
+
static NavigationAssignment() {
|
|
2434
|
+
return Joi.object({
|
|
2435
|
+
platform: Joi.string().allow(""),
|
|
2436
|
+
orientation: Joi.string().allow(""),
|
|
2437
|
+
position: Joi.string().allow(""),
|
|
2438
|
+
});
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
/** @returns {PageGetResponse} */
|
|
2442
|
+
static PageGetResponse() {
|
|
2201
2443
|
return Joi.object({
|
|
2202
2444
|
items: Joi.array().items(ContentPlatformModel.PageSchema()),
|
|
2203
2445
|
page: ContentPlatformModel.Page(),
|
|
@@ -2229,31 +2471,63 @@ class ContentPlatformModel {
|
|
|
2229
2471
|
});
|
|
2230
2472
|
}
|
|
2231
2473
|
|
|
2474
|
+
/** @returns {PageResponseError} */
|
|
2475
|
+
static PageResponseError() {
|
|
2476
|
+
return Joi.object({
|
|
2477
|
+
errors: Joi.string().allow(""),
|
|
2478
|
+
});
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2232
2481
|
/** @returns {PageSchema} */
|
|
2233
2482
|
static PageSchema() {
|
|
2234
2483
|
return Joi.object({
|
|
2235
2484
|
_id: Joi.string().allow(""),
|
|
2236
2485
|
application: Joi.string().allow(""),
|
|
2237
|
-
|
|
2238
|
-
|
|
2486
|
+
platform: Joi.string().allow(""),
|
|
2487
|
+
title: Joi.string().allow(""),
|
|
2488
|
+
slug: Joi.string().allow(""),
|
|
2489
|
+
type: Joi.string().allow(""),
|
|
2490
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
2239
2491
|
content_path: Joi.string().allow(""),
|
|
2492
|
+
orientation: Joi.string().allow(""),
|
|
2493
|
+
description: Joi.string().allow(""),
|
|
2494
|
+
published: Joi.boolean(),
|
|
2240
2495
|
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
2241
2496
|
date_meta: ContentPlatformModel.DateMeta(),
|
|
2242
|
-
description: Joi.string().allow(""),
|
|
2243
2497
|
feature_image: ContentPlatformModel.Asset(),
|
|
2244
|
-
page_meta: Joi.array().items(Joi.any()),
|
|
2245
2498
|
_schedule: ContentPlatformModel.ScheduleSchema(),
|
|
2246
|
-
|
|
2247
|
-
orientation: Joi.string().allow(""),
|
|
2248
|
-
platform: Joi.string().allow(""),
|
|
2249
|
-
published: Joi.boolean(),
|
|
2250
|
-
slug: Joi.string().allow(""),
|
|
2251
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
2252
|
-
title: Joi.string().allow(""),
|
|
2253
|
-
type: Joi.string().allow(""),
|
|
2499
|
+
page_meta: Joi.array().items(ContentPlatformModel.PageMeta()),
|
|
2254
2500
|
seo: ContentPlatformModel.SEO(),
|
|
2255
|
-
|
|
2501
|
+
component_ids: Joi.array().items(Joi.string().allow("")),
|
|
2256
2502
|
archived: Joi.boolean(),
|
|
2503
|
+
__v: Joi.number(),
|
|
2504
|
+
content: Joi.array().items(ContentPlatformModel.PageContent()),
|
|
2505
|
+
sanitized_content: Joi.array().items(
|
|
2506
|
+
ContentPlatformModel.SanitizedContent()
|
|
2507
|
+
),
|
|
2508
|
+
});
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
/** @returns {SanitizedContent} */
|
|
2512
|
+
static SanitizedContent() {
|
|
2513
|
+
return Joi.object({
|
|
2514
|
+
type: Joi.string().allow(""),
|
|
2515
|
+
value: Joi.string().allow(""),
|
|
2516
|
+
});
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
/** @returns {PageMeta} */
|
|
2520
|
+
static PageMeta() {
|
|
2521
|
+
return Joi.object({
|
|
2522
|
+
key: Joi.string().allow(""),
|
|
2523
|
+
});
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
/** @returns {PageContent} */
|
|
2527
|
+
static PageContent() {
|
|
2528
|
+
return Joi.object({
|
|
2529
|
+
type: Joi.string().allow(""),
|
|
2530
|
+
value: Joi.string().allow(""),
|
|
2257
2531
|
});
|
|
2258
2532
|
}
|
|
2259
2533
|
|
|
@@ -2264,15 +2538,22 @@ class ContentPlatformModel {
|
|
|
2264
2538
|
});
|
|
2265
2539
|
}
|
|
2266
2540
|
|
|
2267
|
-
/** @returns {
|
|
2268
|
-
static
|
|
2541
|
+
/** @returns {PageRequestVisibility} */
|
|
2542
|
+
static PageRequestVisibility() {
|
|
2543
|
+
return Joi.object({
|
|
2544
|
+
test: Joi.boolean(),
|
|
2545
|
+
});
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
/** @returns {PageRequest} */
|
|
2549
|
+
static PageRequest() {
|
|
2269
2550
|
return Joi.object({
|
|
2270
2551
|
_schedule: ContentPlatformModel.CronSchedule(),
|
|
2271
2552
|
application: Joi.string().allow(""),
|
|
2272
2553
|
author: ContentPlatformModel.Author(),
|
|
2273
|
-
_custom_json: Joi.
|
|
2554
|
+
_custom_json: Joi.any(),
|
|
2274
2555
|
orientation: Joi.string().allow(""),
|
|
2275
|
-
content: Joi.array().items(
|
|
2556
|
+
content: Joi.array().items(ContentPlatformModel.PageContent()),
|
|
2276
2557
|
feature_image: ContentPlatformModel.Asset(),
|
|
2277
2558
|
published: Joi.boolean(),
|
|
2278
2559
|
reading_time: Joi.string().allow(""),
|
|
@@ -2280,6 +2561,10 @@ class ContentPlatformModel {
|
|
|
2280
2561
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
2281
2562
|
seo: ContentPlatformModel.SEO(),
|
|
2282
2563
|
title: Joi.string().allow(""),
|
|
2564
|
+
platform: Joi.string().allow(""),
|
|
2565
|
+
type: Joi.string().allow(""),
|
|
2566
|
+
description: Joi.string().allow(""),
|
|
2567
|
+
visibility: Joi.any(),
|
|
2283
2568
|
});
|
|
2284
2569
|
}
|
|
2285
2570
|
|
|
@@ -2290,11 +2575,12 @@ class ContentPlatformModel {
|
|
|
2290
2575
|
start: Joi.string().allow(""),
|
|
2291
2576
|
end: Joi.string().allow(""),
|
|
2292
2577
|
duration: Joi.number(),
|
|
2578
|
+
next_schedule: Joi.array().items(ContentPlatformModel.NextSchedule()),
|
|
2293
2579
|
});
|
|
2294
2580
|
}
|
|
2295
2581
|
|
|
2296
|
-
/** @returns {
|
|
2297
|
-
static
|
|
2582
|
+
/** @returns {PagePublishRequest} */
|
|
2583
|
+
static PagePublishRequest() {
|
|
2298
2584
|
return Joi.object({
|
|
2299
2585
|
publish: Joi.boolean(),
|
|
2300
2586
|
});
|
|
@@ -2303,12 +2589,44 @@ class ContentPlatformModel {
|
|
|
2303
2589
|
/** @returns {PageMetaSchema} */
|
|
2304
2590
|
static PageMetaSchema() {
|
|
2305
2591
|
return Joi.object({
|
|
2306
|
-
system_pages: Joi.array().items(ContentPlatformModel.
|
|
2307
|
-
custom_pages: Joi.array().items(ContentPlatformModel.
|
|
2592
|
+
system_pages: Joi.array().items(ContentPlatformModel.SystemPages()),
|
|
2593
|
+
custom_pages: Joi.array().items(ContentPlatformModel.CustomePages()),
|
|
2308
2594
|
application_id: Joi.string().allow(""),
|
|
2309
2595
|
});
|
|
2310
2596
|
}
|
|
2311
2597
|
|
|
2598
|
+
/** @returns {CustomePages} */
|
|
2599
|
+
static CustomePages() {
|
|
2600
|
+
return Joi.object({
|
|
2601
|
+
display: Joi.string().allow(""),
|
|
2602
|
+
slug: Joi.string().allow(""),
|
|
2603
|
+
});
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
/** @returns {SystemPagesActionPage} */
|
|
2607
|
+
static SystemPagesActionPage() {
|
|
2608
|
+
return Joi.object({
|
|
2609
|
+
type: Joi.string().allow(""),
|
|
2610
|
+
});
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
/** @returns {SystemPagesAction} */
|
|
2614
|
+
static SystemPagesAction() {
|
|
2615
|
+
return Joi.object({
|
|
2616
|
+
page: ContentPlatformModel.SystemPagesActionPage(),
|
|
2617
|
+
type: Joi.string().allow(""),
|
|
2618
|
+
});
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
/** @returns {SystemPages} */
|
|
2622
|
+
static SystemPages() {
|
|
2623
|
+
return Joi.object({
|
|
2624
|
+
display: Joi.string().allow(""),
|
|
2625
|
+
action: ContentPlatformModel.SystemPagesAction(),
|
|
2626
|
+
page_type: Joi.string().allow(""),
|
|
2627
|
+
});
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2312
2630
|
/** @returns {Support} */
|
|
2313
2631
|
static Support() {
|
|
2314
2632
|
return Joi.object({
|
|
@@ -2368,6 +2686,8 @@ class ContentPlatformModel {
|
|
|
2368
2686
|
return Joi.object({
|
|
2369
2687
|
application: Joi.string().allow(""),
|
|
2370
2688
|
_id: Joi.string().allow(""),
|
|
2689
|
+
company: Joi.string().allow(""),
|
|
2690
|
+
__v: Joi.number(),
|
|
2371
2691
|
tags: Joi.array().items(ContentPlatformModel.TagSchema()),
|
|
2372
2692
|
});
|
|
2373
2693
|
}
|
|
@@ -2381,8 +2701,9 @@ class ContentPlatformModel {
|
|
|
2381
2701
|
sub_type: Joi.string().allow(""),
|
|
2382
2702
|
_id: Joi.string().allow(""),
|
|
2383
2703
|
position: Joi.string().allow(""),
|
|
2384
|
-
attributes: Joi.
|
|
2704
|
+
attributes: Joi.any(),
|
|
2385
2705
|
content: Joi.string().allow(""),
|
|
2706
|
+
compatible_engines: Joi.array().items(Joi.any()),
|
|
2386
2707
|
pages: Joi.array().items(Joi.any()),
|
|
2387
2708
|
__source: ContentPlatformModel.TagSourceSchema(),
|
|
2388
2709
|
});
|
|
@@ -2417,30 +2738,70 @@ class ContentPlatformModel {
|
|
|
2417
2738
|
return Joi.object({
|
|
2418
2739
|
name: Joi.string().allow(""),
|
|
2419
2740
|
type: Joi.string().allow(""),
|
|
2420
|
-
|
|
2741
|
+
});
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
/** @returns {ApplicationFieldDefinitionSchema} */
|
|
2745
|
+
static ApplicationFieldDefinitionSchema() {
|
|
2746
|
+
return Joi.object({
|
|
2747
|
+
_id: Joi.string().allow(""),
|
|
2748
|
+
creator: Joi.string().allow(""),
|
|
2749
|
+
resource: Joi.string().allow(""),
|
|
2750
|
+
name: Joi.string().allow(""),
|
|
2751
|
+
namespace: Joi.string().allow(""),
|
|
2752
|
+
key: Joi.string().allow(""),
|
|
2753
|
+
description: Joi.string().allow(""),
|
|
2754
|
+
type: Joi.string().allow(""),
|
|
2755
|
+
multi_value: Joi.boolean(),
|
|
2756
|
+
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2757
|
+
company_id: Joi.string().allow(""),
|
|
2758
|
+
created_by: Joi.string().allow(""),
|
|
2759
|
+
updated_by: Joi.string().allow(""),
|
|
2760
|
+
required: Joi.boolean(),
|
|
2761
|
+
is_deleted: Joi.boolean(),
|
|
2762
|
+
created_at: Joi.string().allow(""),
|
|
2763
|
+
updated_at: Joi.string().allow(""),
|
|
2764
|
+
type_name: Joi.string().allow(""),
|
|
2765
|
+
invalid_fields_count: Joi.number(),
|
|
2766
|
+
application_id: Joi.string().allow(""),
|
|
2421
2767
|
});
|
|
2422
2768
|
}
|
|
2423
2769
|
|
|
2424
2770
|
/** @returns {FieldDefinitionSchema} */
|
|
2425
2771
|
static FieldDefinitionSchema() {
|
|
2426
2772
|
return Joi.object({
|
|
2427
|
-
|
|
2773
|
+
_id: Joi.string().allow(""),
|
|
2774
|
+
creator: Joi.string().allow(""),
|
|
2428
2775
|
resource: Joi.string().allow(""),
|
|
2429
2776
|
name: Joi.string().allow(""),
|
|
2430
2777
|
namespace: Joi.string().allow(""),
|
|
2431
|
-
|
|
2778
|
+
key: Joi.string().allow(""),
|
|
2432
2779
|
description: Joi.string().allow(""),
|
|
2433
2780
|
type: Joi.string().allow(""),
|
|
2434
2781
|
multi_value: Joi.boolean(),
|
|
2435
2782
|
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2436
2783
|
company_id: Joi.string().allow(""),
|
|
2784
|
+
created_by: Joi.string().allow(""),
|
|
2785
|
+
updated_by: Joi.string().allow(""),
|
|
2437
2786
|
required: Joi.boolean(),
|
|
2438
2787
|
is_deleted: Joi.boolean(),
|
|
2788
|
+
created_at: Joi.string().allow(""),
|
|
2789
|
+
updated_at: Joi.string().allow(""),
|
|
2439
2790
|
type_name: Joi.string().allow(""),
|
|
2440
2791
|
invalid_fields_count: Joi.number(),
|
|
2441
2792
|
});
|
|
2442
2793
|
}
|
|
2443
2794
|
|
|
2795
|
+
/** @returns {ApplicationCustomFieldDefinitionsSchema} */
|
|
2796
|
+
static ApplicationCustomFieldDefinitionsSchema() {
|
|
2797
|
+
return Joi.object({
|
|
2798
|
+
items: Joi.array().items(
|
|
2799
|
+
ContentPlatformModel.ApplicationFieldDefinitionSchema()
|
|
2800
|
+
),
|
|
2801
|
+
page: ContentPlatformModel.Page(),
|
|
2802
|
+
});
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2444
2805
|
/** @returns {CustomFieldDefinitionsSchema} */
|
|
2445
2806
|
static CustomFieldDefinitionsSchema() {
|
|
2446
2807
|
return Joi.object({
|
|
@@ -2452,12 +2813,14 @@ class ContentPlatformModel {
|
|
|
2452
2813
|
/** @returns {CustomFieldDefinitionRequestSchema} */
|
|
2453
2814
|
static CustomFieldDefinitionRequestSchema() {
|
|
2454
2815
|
return Joi.object({
|
|
2816
|
+
resource: Joi.string().allow(""),
|
|
2455
2817
|
type: Joi.string().allow(""),
|
|
2456
|
-
|
|
2818
|
+
key: Joi.string().allow(""),
|
|
2457
2819
|
namespace: Joi.string().allow(""),
|
|
2458
2820
|
multi_value: Joi.boolean(),
|
|
2459
2821
|
name: Joi.string().allow(""),
|
|
2460
2822
|
description: Joi.string().allow(""),
|
|
2823
|
+
creator: Joi.string().allow(""),
|
|
2461
2824
|
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2462
2825
|
});
|
|
2463
2826
|
}
|
|
@@ -2465,13 +2828,13 @@ class ContentPlatformModel {
|
|
|
2465
2828
|
/** @returns {CustomObjectCustomFieldDefinitions} */
|
|
2466
2829
|
static CustomObjectCustomFieldDefinitions() {
|
|
2467
2830
|
return Joi.object({
|
|
2468
|
-
|
|
2469
|
-
type: Joi.string().allow(""),
|
|
2831
|
+
_id: Joi.string().allow(""),
|
|
2832
|
+
type: Joi.string().allow("").required(),
|
|
2470
2833
|
description: Joi.string().allow(""),
|
|
2471
2834
|
name: Joi.string().allow(""),
|
|
2472
2835
|
multi_value: Joi.boolean(),
|
|
2473
2836
|
required: Joi.boolean(),
|
|
2474
|
-
|
|
2837
|
+
key: Joi.string().allow(""),
|
|
2475
2838
|
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2476
2839
|
action: Joi.string().allow(""),
|
|
2477
2840
|
});
|
|
@@ -2480,11 +2843,12 @@ class ContentPlatformModel {
|
|
|
2480
2843
|
/** @returns {CustomObjectDefinitionUpdateRequestSchema} */
|
|
2481
2844
|
static CustomObjectDefinitionUpdateRequestSchema() {
|
|
2482
2845
|
return Joi.object({
|
|
2846
|
+
type: Joi.string().allow(""),
|
|
2483
2847
|
description: Joi.string().allow(""),
|
|
2484
2848
|
name: Joi.string().allow(""),
|
|
2485
2849
|
display_name_key: Joi.string().allow(""),
|
|
2486
2850
|
field_definitions: Joi.array().items(
|
|
2487
|
-
ContentPlatformModel.
|
|
2851
|
+
ContentPlatformModel.CustomFieldDefinitionDetailResSchema()
|
|
2488
2852
|
),
|
|
2489
2853
|
});
|
|
2490
2854
|
}
|
|
@@ -2492,39 +2856,21 @@ class ContentPlatformModel {
|
|
|
2492
2856
|
/** @returns {CustomFieldDefinitionDetailResSchema} */
|
|
2493
2857
|
static CustomFieldDefinitionDetailResSchema() {
|
|
2494
2858
|
return Joi.object({
|
|
2859
|
+
creator: Joi.string().allow(""),
|
|
2495
2860
|
resource: Joi.string().allow(""),
|
|
2496
2861
|
name: Joi.string().allow(""),
|
|
2497
2862
|
namespace: Joi.string().allow(""),
|
|
2498
|
-
|
|
2499
|
-
description: Joi.string().allow(""),
|
|
2500
|
-
type: Joi.string().allow(""),
|
|
2501
|
-
multi_value: Joi.boolean(),
|
|
2502
|
-
company_id: Joi.string().allow(""),
|
|
2503
|
-
application_id: Joi.string().allow(""),
|
|
2504
|
-
required: Joi.boolean(),
|
|
2505
|
-
is_deleted: Joi.boolean(),
|
|
2506
|
-
id: Joi.string().allow(""),
|
|
2507
|
-
validations: Joi.array().items(Joi.any()),
|
|
2508
|
-
created_at: Joi.string().allow(""),
|
|
2509
|
-
updated_at: Joi.string().allow(""),
|
|
2510
|
-
});
|
|
2511
|
-
}
|
|
2512
|
-
|
|
2513
|
-
/** @returns {MetaFieldDefinitionDetailResSchema} */
|
|
2514
|
-
static MetaFieldDefinitionDetailResSchema() {
|
|
2515
|
-
return Joi.object({
|
|
2516
|
-
resource: Joi.string().allow(""),
|
|
2517
|
-
name: Joi.string().allow(""),
|
|
2518
|
-
namespace: Joi.string().allow(""),
|
|
2519
|
-
slug: Joi.string().allow(""),
|
|
2863
|
+
key: Joi.string().allow(""),
|
|
2520
2864
|
description: Joi.string().allow(""),
|
|
2521
2865
|
type: Joi.string().allow(""),
|
|
2522
2866
|
multi_value: Joi.boolean(),
|
|
2523
2867
|
company_id: Joi.string().allow(""),
|
|
2524
2868
|
application_id: Joi.string().allow(""),
|
|
2869
|
+
created_by: Joi.string().allow(""),
|
|
2870
|
+
updated_by: Joi.string().allow(""),
|
|
2525
2871
|
required: Joi.boolean(),
|
|
2526
2872
|
is_deleted: Joi.boolean(),
|
|
2527
|
-
|
|
2873
|
+
_id: Joi.string().allow(""),
|
|
2528
2874
|
validations: Joi.array().items(Joi.any()),
|
|
2529
2875
|
created_at: Joi.string().allow(""),
|
|
2530
2876
|
updated_at: Joi.string().allow(""),
|
|
@@ -2539,27 +2885,22 @@ class ContentPlatformModel {
|
|
|
2539
2885
|
});
|
|
2540
2886
|
}
|
|
2541
2887
|
|
|
2542
|
-
/** @returns {CustomFieldValue} */
|
|
2543
|
-
static CustomFieldValue() {
|
|
2544
|
-
return Joi.object({
|
|
2545
|
-
value: Joi.any(),
|
|
2546
|
-
});
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
2888
|
/** @returns {CustomFieldSchema} */
|
|
2550
2889
|
static CustomFieldSchema() {
|
|
2551
2890
|
return Joi.object({
|
|
2552
|
-
|
|
2891
|
+
_id: Joi.string().allow(""),
|
|
2553
2892
|
namespace: Joi.string().allow(""),
|
|
2554
|
-
|
|
2893
|
+
key: Joi.string().allow(""),
|
|
2555
2894
|
resource: Joi.string().allow(""),
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
type: Joi.string().allow(""),
|
|
2895
|
+
creator: Joi.string().allow(""),
|
|
2896
|
+
resource_id: Joi.string().allow(""),
|
|
2897
|
+
type: Joi.string().allow("").required(),
|
|
2559
2898
|
multi_value: Joi.boolean(),
|
|
2560
2899
|
company_id: Joi.string().allow(""),
|
|
2900
|
+
definition_id: Joi.string().allow(""),
|
|
2561
2901
|
has_invalid_values: Joi.boolean(),
|
|
2562
2902
|
invalid_value_errors: Joi.array().items(Joi.any()),
|
|
2903
|
+
created_by: Joi.string().allow(""),
|
|
2563
2904
|
is_deleted: Joi.boolean(),
|
|
2564
2905
|
created_at: Joi.string().allow(""),
|
|
2565
2906
|
updated_at: Joi.string().allow(""),
|
|
@@ -2589,32 +2930,52 @@ class ContentPlatformModel {
|
|
|
2589
2930
|
});
|
|
2590
2931
|
}
|
|
2591
2932
|
|
|
2592
|
-
/** @returns {CustomField} */
|
|
2593
|
-
static CustomField() {
|
|
2594
|
-
return Joi.object({
|
|
2595
|
-
value: Joi.array().items(Joi.any()),
|
|
2596
|
-
namespace: Joi.string().allow(""),
|
|
2597
|
-
slug: Joi.string().allow(""),
|
|
2598
|
-
});
|
|
2599
|
-
}
|
|
2600
|
-
|
|
2601
2933
|
/** @returns {CustomFieldRequestSchema} */
|
|
2602
2934
|
static CustomFieldRequestSchema() {
|
|
2603
2935
|
return Joi.object({
|
|
2604
|
-
fields: Joi.array().items(
|
|
2936
|
+
fields: Joi.array().items(Joi.any()),
|
|
2605
2937
|
});
|
|
2606
2938
|
}
|
|
2607
2939
|
|
|
2608
2940
|
/** @returns {CustomObjectSchema} */
|
|
2609
2941
|
static CustomObjectSchema() {
|
|
2610
2942
|
return Joi.object({
|
|
2611
|
-
|
|
2943
|
+
_id: Joi.string().allow(""),
|
|
2944
|
+
name: Joi.string().allow(""),
|
|
2945
|
+
creator: Joi.string().allow(""),
|
|
2946
|
+
company_id: Joi.string().allow(""),
|
|
2947
|
+
created_by: Joi.string().allow(""),
|
|
2948
|
+
updated_by: Joi.string().allow(""),
|
|
2949
|
+
status: Joi.string().allow(""),
|
|
2950
|
+
slug: Joi.string().allow(""),
|
|
2951
|
+
type: Joi.string().allow(""),
|
|
2952
|
+
display_name: Joi.string().allow(""),
|
|
2953
|
+
definition_id: Joi.string().allow(""),
|
|
2954
|
+
is_deleted: Joi.boolean(),
|
|
2955
|
+
created_at: Joi.string().allow(""),
|
|
2956
|
+
updated_at: Joi.string().allow(""),
|
|
2957
|
+
fields: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
|
|
2958
|
+
});
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2961
|
+
/** @returns {CustomObjectApplicationSchema} */
|
|
2962
|
+
static CustomObjectApplicationSchema() {
|
|
2963
|
+
return Joi.object({
|
|
2964
|
+
_id: Joi.string().allow(""),
|
|
2965
|
+
name: Joi.string().allow(""),
|
|
2966
|
+
creator: Joi.string().allow(""),
|
|
2612
2967
|
company_id: Joi.string().allow(""),
|
|
2613
2968
|
application_id: Joi.string().allow(""),
|
|
2969
|
+
created_by: Joi.string().allow(""),
|
|
2970
|
+
updated_by: Joi.string().allow(""),
|
|
2614
2971
|
status: Joi.string().allow(""),
|
|
2972
|
+
slug: Joi.string().allow(""),
|
|
2615
2973
|
type: Joi.string().allow(""),
|
|
2616
|
-
definition_slug: Joi.string().allow(""),
|
|
2617
2974
|
display_name: Joi.string().allow(""),
|
|
2975
|
+
definition_id: Joi.string().allow(""),
|
|
2976
|
+
is_deleted: Joi.boolean(),
|
|
2977
|
+
created_at: Joi.string().allow(""),
|
|
2978
|
+
updated_at: Joi.string().allow(""),
|
|
2618
2979
|
fields: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
|
|
2619
2980
|
});
|
|
2620
2981
|
}
|
|
@@ -2623,7 +2984,6 @@ class ContentPlatformModel {
|
|
|
2623
2984
|
static CustomObjectDefinitionRequestSchema() {
|
|
2624
2985
|
return Joi.object({
|
|
2625
2986
|
type: Joi.string().allow(""),
|
|
2626
|
-
definition_slug: Joi.string().allow(""),
|
|
2627
2987
|
description: Joi.string().allow(""),
|
|
2628
2988
|
name: Joi.string().allow(""),
|
|
2629
2989
|
display_name_key: Joi.string().allow(""),
|
|
@@ -2633,17 +2993,47 @@ class ContentPlatformModel {
|
|
|
2633
2993
|
});
|
|
2634
2994
|
}
|
|
2635
2995
|
|
|
2636
|
-
/** @returns {
|
|
2637
|
-
static
|
|
2996
|
+
/** @returns {CustomObjectCustomFieldDefinitionResSchema} */
|
|
2997
|
+
static CustomObjectCustomFieldDefinitionResSchema() {
|
|
2638
2998
|
return Joi.object({
|
|
2639
|
-
|
|
2999
|
+
creator: Joi.string().allow(""),
|
|
3000
|
+
resource: Joi.string().allow(""),
|
|
3001
|
+
name: Joi.string().allow(""),
|
|
3002
|
+
namespace: Joi.string().allow(""),
|
|
3003
|
+
key: Joi.string().allow(""),
|
|
3004
|
+
description: Joi.string().allow(""),
|
|
3005
|
+
type: Joi.string().allow("").required(),
|
|
3006
|
+
multi_value: Joi.boolean(),
|
|
3007
|
+
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
3008
|
+
company_id: Joi.string().allow(""),
|
|
3009
|
+
created_by: Joi.string().allow(""),
|
|
3010
|
+
metaobject_definition_id: Joi.string().allow(""),
|
|
3011
|
+
required: Joi.boolean(),
|
|
3012
|
+
is_deleted: Joi.boolean(),
|
|
3013
|
+
_id: Joi.string().allow(""),
|
|
3014
|
+
created_at: Joi.string().allow(""),
|
|
3015
|
+
updated_at: Joi.string().allow(""),
|
|
3016
|
+
application_id: Joi.string().allow(""),
|
|
3017
|
+
});
|
|
3018
|
+
}
|
|
3019
|
+
|
|
3020
|
+
/** @returns {CustomObjectDefinitionSchema} */
|
|
3021
|
+
static CustomObjectDefinitionSchema() {
|
|
3022
|
+
return Joi.object({
|
|
3023
|
+
_id: Joi.string().allow(""),
|
|
2640
3024
|
name: Joi.string().allow(""),
|
|
2641
3025
|
type: Joi.string().allow(""),
|
|
2642
|
-
definition_slug: Joi.string().allow(""),
|
|
2643
3026
|
display_name_key: Joi.string().allow(""),
|
|
2644
3027
|
description: Joi.string().allow(""),
|
|
3028
|
+
creator: Joi.string().allow(""),
|
|
3029
|
+
created_by: Joi.string().allow(""),
|
|
3030
|
+
updated_by: Joi.string().allow(""),
|
|
3031
|
+
application_id: Joi.string().allow(""),
|
|
3032
|
+
company_id: Joi.string().allow(""),
|
|
3033
|
+
created_at: Joi.string().allow(""),
|
|
3034
|
+
updated_at: Joi.string().allow(""),
|
|
2645
3035
|
field_definitions: Joi.array().items(
|
|
2646
|
-
ContentPlatformModel.
|
|
3036
|
+
ContentPlatformModel.CustomObjectCustomFieldDefinitionResSchema()
|
|
2647
3037
|
),
|
|
2648
3038
|
});
|
|
2649
3039
|
}
|
|
@@ -2656,32 +3046,34 @@ class ContentPlatformModel {
|
|
|
2656
3046
|
});
|
|
2657
3047
|
}
|
|
2658
3048
|
|
|
2659
|
-
/** @returns {
|
|
2660
|
-
static
|
|
3049
|
+
/** @returns {CustomObjectEntryBulkUploadResponse} */
|
|
3050
|
+
static CustomObjectEntryBulkUploadResponse() {
|
|
2661
3051
|
return Joi.object({
|
|
2662
|
-
|
|
2663
|
-
|
|
3052
|
+
message: Joi.string().allow(""),
|
|
3053
|
+
task_id: Joi.string().allow(""),
|
|
2664
3054
|
});
|
|
2665
3055
|
}
|
|
2666
3056
|
|
|
2667
|
-
/** @returns {
|
|
2668
|
-
static
|
|
3057
|
+
/** @returns {CustomObjectListItemDefinationSchema} */
|
|
3058
|
+
static CustomObjectListItemDefinationSchema() {
|
|
2669
3059
|
return Joi.object({
|
|
2670
|
-
|
|
3060
|
+
_id: Joi.string().allow(""),
|
|
2671
3061
|
name: Joi.string().allow(""),
|
|
2672
3062
|
type: Joi.string().allow(""),
|
|
3063
|
+
display_name_key: Joi.string().allow(""),
|
|
2673
3064
|
});
|
|
2674
3065
|
}
|
|
2675
3066
|
|
|
2676
3067
|
/** @returns {CustomObjectListItemSchema} */
|
|
2677
3068
|
static CustomObjectListItemSchema() {
|
|
2678
3069
|
return Joi.object({
|
|
2679
|
-
|
|
3070
|
+
_id: Joi.string().allow(""),
|
|
3071
|
+
definition_id: Joi.string().allow(""),
|
|
2680
3072
|
status: Joi.string().allow(""),
|
|
2681
|
-
|
|
3073
|
+
slug: Joi.string().allow(""),
|
|
2682
3074
|
updated_at: Joi.string().allow(""),
|
|
2683
3075
|
display_name: Joi.string().allow(""),
|
|
2684
|
-
definition: ContentPlatformModel.
|
|
3076
|
+
definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
|
|
2685
3077
|
references: Joi.number(),
|
|
2686
3078
|
});
|
|
2687
3079
|
}
|
|
@@ -2696,30 +3088,33 @@ class ContentPlatformModel {
|
|
|
2696
3088
|
});
|
|
2697
3089
|
}
|
|
2698
3090
|
|
|
2699
|
-
/** @returns {
|
|
2700
|
-
static
|
|
3091
|
+
/** @returns {CustomObjectFieldSchema} */
|
|
3092
|
+
static CustomObjectFieldSchema() {
|
|
2701
3093
|
return Joi.object({
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
namespace: Joi.string().allow(""),
|
|
2705
|
-
value: Joi.array().items(Joi.any()),
|
|
3094
|
+
_id: Joi.string().allow(""),
|
|
3095
|
+
key: Joi.string().allow(""),
|
|
2706
3096
|
type: Joi.string().allow(""),
|
|
3097
|
+
definition_id: Joi.string().allow(""),
|
|
2707
3098
|
});
|
|
2708
3099
|
}
|
|
2709
3100
|
|
|
2710
|
-
/** @returns {
|
|
2711
|
-
static
|
|
3101
|
+
/** @returns {MetafieldTypesSchema} */
|
|
3102
|
+
static MetafieldTypesSchema() {
|
|
2712
3103
|
return Joi.object({
|
|
2713
|
-
|
|
3104
|
+
metafield_types: ContentPlatformModel.CustomFieldTypeSchema(),
|
|
3105
|
+
});
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
/** @returns {CustomObjectByIdSchema} */
|
|
3109
|
+
static CustomObjectByIdSchema() {
|
|
3110
|
+
return Joi.object({
|
|
3111
|
+
_id: Joi.string().allow(""),
|
|
2714
3112
|
status: Joi.string().allow(""),
|
|
3113
|
+
slug: Joi.string().allow(""),
|
|
2715
3114
|
display_name: Joi.string().allow(""),
|
|
2716
|
-
definition: ContentPlatformModel.
|
|
3115
|
+
definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
|
|
2717
3116
|
references: Joi.array().items(Joi.any()),
|
|
2718
|
-
|
|
2719
|
-
definition_slug: Joi.string().allow(""),
|
|
2720
|
-
fields: Joi.array().items(
|
|
2721
|
-
ContentPlatformModel.CustomObjectFieldDefinition()
|
|
2722
|
-
),
|
|
3117
|
+
fields: Joi.array().items(ContentPlatformModel.CustomObjectFieldSchema()),
|
|
2723
3118
|
});
|
|
2724
3119
|
}
|
|
2725
3120
|
|
|
@@ -2744,12 +3139,13 @@ class ContentPlatformModel {
|
|
|
2744
3139
|
/** @returns {JobSchema} */
|
|
2745
3140
|
static JobSchema() {
|
|
2746
3141
|
return Joi.object({
|
|
2747
|
-
|
|
3142
|
+
_id: Joi.string().allow(""),
|
|
2748
3143
|
jobs: Joi.array().items(Joi.string().allow("")),
|
|
2749
3144
|
finished_jobs: Joi.array().items(Joi.string().allow("")),
|
|
2750
3145
|
error_jobs: Joi.array().items(Joi.string().allow("")),
|
|
2751
3146
|
errors_occured: Joi.array().items(Joi.string().allow("")),
|
|
2752
3147
|
company_id: Joi.string().allow(""),
|
|
3148
|
+
creator: Joi.string().allow(""),
|
|
2753
3149
|
status: Joi.string().allow(""),
|
|
2754
3150
|
action_type: Joi.string().allow(""),
|
|
2755
3151
|
entity: Joi.string().allow(""),
|
|
@@ -2782,13 +3178,6 @@ class ContentPlatformModel {
|
|
|
2782
3178
|
});
|
|
2783
3179
|
}
|
|
2784
3180
|
|
|
2785
|
-
/** @returns {MetafieldTypesSchema} */
|
|
2786
|
-
static MetafieldTypesSchema() {
|
|
2787
|
-
return Joi.object({
|
|
2788
|
-
metafield_types: ContentPlatformModel.CustomFieldTypeSchema(),
|
|
2789
|
-
});
|
|
2790
|
-
}
|
|
2791
|
-
|
|
2792
3181
|
/** @returns {CustomFieldTypeSchema} */
|
|
2793
3182
|
static CustomFieldTypeSchema() {
|
|
2794
3183
|
return Joi.object({
|
|
@@ -2810,23 +3199,6 @@ class ContentPlatformModel {
|
|
|
2810
3199
|
});
|
|
2811
3200
|
}
|
|
2812
3201
|
|
|
2813
|
-
/** @returns {SupportedValidationsMetaExampleSchema} */
|
|
2814
|
-
static SupportedValidationsMetaExampleSchema() {
|
|
2815
|
-
return Joi.object({
|
|
2816
|
-
name: Joi.string().allow(""),
|
|
2817
|
-
value: Joi.string().allow(""),
|
|
2818
|
-
});
|
|
2819
|
-
}
|
|
2820
|
-
|
|
2821
|
-
/** @returns {SupportedValidationsMetaSchema} */
|
|
2822
|
-
static SupportedValidationsMetaSchema() {
|
|
2823
|
-
return Joi.object({
|
|
2824
|
-
examples: Joi.array().items(
|
|
2825
|
-
ContentPlatformModel.SupportedValidationsMetaExampleSchema()
|
|
2826
|
-
),
|
|
2827
|
-
});
|
|
2828
|
-
}
|
|
2829
|
-
|
|
2830
3202
|
/** @returns {SupportedValidationsSchema} */
|
|
2831
3203
|
static SupportedValidationsSchema() {
|
|
2832
3204
|
return Joi.object({
|
|
@@ -2834,7 +3206,6 @@ class ContentPlatformModel {
|
|
|
2834
3206
|
type: Joi.string().allow(""),
|
|
2835
3207
|
display: Joi.string().allow(""),
|
|
2836
3208
|
required: Joi.boolean(),
|
|
2837
|
-
meta: ContentPlatformModel.SupportedValidationsMetaSchema(),
|
|
2838
3209
|
});
|
|
2839
3210
|
}
|
|
2840
3211
|
|
|
@@ -3028,13 +3399,14 @@ class ContentPlatformModel {
|
|
|
3028
3399
|
supported_validations: Joi.array().items(
|
|
3029
3400
|
ContentPlatformModel.SupportedValidationsSchema()
|
|
3030
3401
|
),
|
|
3402
|
+
scope: Joi.array().items(Joi.string().allow("")),
|
|
3031
3403
|
});
|
|
3032
3404
|
}
|
|
3033
3405
|
|
|
3034
3406
|
/** @returns {CustomObjectEntry} */
|
|
3035
3407
|
static CustomObjectEntry() {
|
|
3036
3408
|
return Joi.object({
|
|
3037
|
-
|
|
3409
|
+
_id: Joi.string().allow(""),
|
|
3038
3410
|
name: Joi.string().allow(""),
|
|
3039
3411
|
type: Joi.string().allow(""),
|
|
3040
3412
|
updated_at: Joi.string().allow(""),
|
|
@@ -3054,16 +3426,7 @@ class ContentPlatformModel {
|
|
|
3054
3426
|
/** @returns {CustomObjectEntryFieldSchema} */
|
|
3055
3427
|
static CustomObjectEntryFieldSchema() {
|
|
3056
3428
|
return Joi.object({
|
|
3057
|
-
|
|
3058
|
-
slug: Joi.string().allow(""),
|
|
3059
|
-
});
|
|
3060
|
-
}
|
|
3061
|
-
|
|
3062
|
-
/** @returns {CustomObjectEntryFieldSchemaWithoutID} */
|
|
3063
|
-
static CustomObjectEntryFieldSchemaWithoutID() {
|
|
3064
|
-
return Joi.object({
|
|
3065
|
-
slug: Joi.string().allow(""),
|
|
3066
|
-
value: Joi.any(),
|
|
3429
|
+
definition_id: Joi.string().allow(""),
|
|
3067
3430
|
});
|
|
3068
3431
|
}
|
|
3069
3432
|
|
|
@@ -3072,22 +3435,13 @@ class ContentPlatformModel {
|
|
|
3072
3435
|
return Joi.object({
|
|
3073
3436
|
status: Joi.string().allow(""),
|
|
3074
3437
|
slug: Joi.string().allow(""),
|
|
3438
|
+
definition_id: Joi.string().allow(""),
|
|
3075
3439
|
fields: Joi.array().items(
|
|
3076
3440
|
ContentPlatformModel.CustomObjectEntryFieldSchema()
|
|
3077
3441
|
),
|
|
3078
3442
|
});
|
|
3079
3443
|
}
|
|
3080
3444
|
|
|
3081
|
-
/** @returns {CustomObjectRequestSchemaWithoutId} */
|
|
3082
|
-
static CustomObjectRequestSchemaWithoutId() {
|
|
3083
|
-
return Joi.object({
|
|
3084
|
-
status: Joi.string().allow(""),
|
|
3085
|
-
fields: Joi.array().items(
|
|
3086
|
-
ContentPlatformModel.CustomObjectEntryFieldSchemaWithoutID()
|
|
3087
|
-
),
|
|
3088
|
-
});
|
|
3089
|
-
}
|
|
3090
|
-
|
|
3091
3445
|
/** @returns {CustomObjectBulkSchema} */
|
|
3092
3446
|
static CustomObjectBulkSchema() {
|
|
3093
3447
|
return Joi.object({
|
|
@@ -3112,19 +3466,6 @@ class ContentPlatformModel {
|
|
|
3112
3466
|
});
|
|
3113
3467
|
}
|
|
3114
3468
|
|
|
3115
|
-
/**
|
|
3116
|
-
* Enum: GenerationEntityType Used By: Content
|
|
3117
|
-
*
|
|
3118
|
-
* @returns {GenerationEntityType}
|
|
3119
|
-
*/
|
|
3120
|
-
static GenerationEntityType() {
|
|
3121
|
-
return Joi.string().valid(
|
|
3122
|
-
"title",
|
|
3123
|
-
|
|
3124
|
-
"description"
|
|
3125
|
-
);
|
|
3126
|
-
}
|
|
3127
|
-
|
|
3128
3469
|
/**
|
|
3129
3470
|
* Enum: PageType Used By: Content
|
|
3130
3471
|
*
|