@gofynd/fdk-client-javascript 1.6.4 → 3.0.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 +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- 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 +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- 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 +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- 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 +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- 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 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- 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 +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -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 +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- 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 +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- 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 +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4103 -9109
- package/sdk/platform/Order/OrderPlatformModel.js +3198 -4245
- 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 +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- 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 +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- 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 +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- 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/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -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 +2 -2
- package/sdk/public/PublicClient.js +2 -2
- 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 +1 -1
- package/sdk/public/index.js +1 -1
- 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
|
/**
|
|
@@ -954,10 +1100,7 @@ const Joi = require("joi");
|
|
|
954
1100
|
|
|
955
1101
|
/**
|
|
956
1102
|
* @typedef CustomField
|
|
957
|
-
* @property {
|
|
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
|
|
1103
|
+
* @property {string} [definition_id]
|
|
961
1104
|
*/
|
|
962
1105
|
|
|
963
1106
|
/**
|
|
@@ -967,137 +1110,169 @@ const Joi = require("joi");
|
|
|
967
1110
|
|
|
968
1111
|
/**
|
|
969
1112
|
* @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 {
|
|
1113
|
+
* @property {string} [_id]
|
|
1114
|
+
* @property {string} [creator]
|
|
1115
|
+
* @property {string} [company_id]
|
|
1116
|
+
* @property {string} [application_id]
|
|
1117
|
+
* @property {string} [created_by]
|
|
1118
|
+
* @property {string} [updated_by]
|
|
1119
|
+
* @property {string} [status]
|
|
1120
|
+
* @property {string} [slug]
|
|
1121
|
+
* @property {string} [type]
|
|
1122
|
+
* @property {string} [display_name]
|
|
1123
|
+
* @property {string} [definition_id]
|
|
1124
|
+
* @property {boolean} [is_deleted]
|
|
1125
|
+
* @property {string} [created_at]
|
|
1126
|
+
* @property {string} [updated_at]
|
|
1127
|
+
* @property {CustomFieldSchema[]} [fields]
|
|
979
1128
|
*/
|
|
980
1129
|
|
|
981
1130
|
/**
|
|
982
1131
|
* @typedef CustomObjectDefinitionRequestSchema
|
|
983
|
-
* @property {string} [type]
|
|
984
|
-
* @property {string} [
|
|
985
|
-
* @property {string} [
|
|
986
|
-
* @property {string} [
|
|
987
|
-
* @property {
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
1132
|
+
* @property {string} [type]
|
|
1133
|
+
* @property {string} [description]
|
|
1134
|
+
* @property {string} [name]
|
|
1135
|
+
* @property {string} [display_name_key]
|
|
1136
|
+
* @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
|
|
1137
|
+
*/
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* @typedef CustomObjectCustomFieldDefinitionResSchema
|
|
1141
|
+
* @property {string} [creator]
|
|
1142
|
+
* @property {string} [resource]
|
|
1143
|
+
* @property {string} [name]
|
|
1144
|
+
* @property {string} [namespace]
|
|
1145
|
+
* @property {string} [key]
|
|
1146
|
+
* @property {string} [description]
|
|
1147
|
+
* @property {string} type
|
|
1148
|
+
* @property {boolean} [multi_value]
|
|
1149
|
+
* @property {FieldValidations[]} [validations]
|
|
1150
|
+
* @property {string} [company_id]
|
|
1151
|
+
* @property {string} [created_by]
|
|
1152
|
+
* @property {string} [metaobject_definition_id]
|
|
1153
|
+
* @property {boolean} [required]
|
|
1154
|
+
* @property {boolean} [is_deleted]
|
|
1155
|
+
* @property {string} [_id]
|
|
1156
|
+
* @property {string} [created_at]
|
|
1157
|
+
* @property {string} [updated_at]
|
|
1158
|
+
* @property {string} [application_id]
|
|
991
1159
|
*/
|
|
992
1160
|
|
|
993
1161
|
/**
|
|
994
|
-
* @typedef
|
|
995
|
-
* @property {string} [
|
|
996
|
-
* @property {string} [name]
|
|
997
|
-
* @property {string} [type]
|
|
998
|
-
* @property {string} [
|
|
999
|
-
* @property {string} [
|
|
1000
|
-
* @property {string} [
|
|
1001
|
-
* @property {
|
|
1002
|
-
*
|
|
1162
|
+
* @typedef CustomObjectDefinitionSchema
|
|
1163
|
+
* @property {string} [_id]
|
|
1164
|
+
* @property {string} [name]
|
|
1165
|
+
* @property {string} [type]
|
|
1166
|
+
* @property {string} [display_name_key]
|
|
1167
|
+
* @property {string} [description]
|
|
1168
|
+
* @property {string} [creator]
|
|
1169
|
+
* @property {string} [created_by]
|
|
1170
|
+
* @property {string} [updated_by]
|
|
1171
|
+
* @property {string} [application_id]
|
|
1172
|
+
* @property {string} [company_id]
|
|
1173
|
+
* @property {string} [created_at]
|
|
1174
|
+
* @property {string} [updated_at]
|
|
1175
|
+
* @property {CustomObjectCustomFieldDefinitionResSchema[]} [field_definitions]
|
|
1003
1176
|
*/
|
|
1004
1177
|
|
|
1005
1178
|
/**
|
|
1006
1179
|
* @typedef CustomObjectDefinitionDeleteResponseSchema
|
|
1007
|
-
* @property {boolean} [success]
|
|
1008
|
-
* @property {string} [message]
|
|
1009
|
-
* is deleted.
|
|
1180
|
+
* @property {boolean} [success]
|
|
1181
|
+
* @property {string} [message]
|
|
1010
1182
|
*/
|
|
1011
1183
|
|
|
1012
1184
|
/**
|
|
1013
|
-
* @typedef
|
|
1014
|
-
* @property {string} [
|
|
1015
|
-
* @property {
|
|
1185
|
+
* @typedef CustomObjectEntryBulkUploadResponse
|
|
1186
|
+
* @property {string} [message]
|
|
1187
|
+
* @property {string} [task_id]
|
|
1016
1188
|
*/
|
|
1017
1189
|
|
|
1018
1190
|
/**
|
|
1019
|
-
* @typedef
|
|
1020
|
-
* @property {string} [
|
|
1021
|
-
* @property {string} [name]
|
|
1022
|
-
* @property {string} [type]
|
|
1191
|
+
* @typedef CustomObjectListItemDefinationSchema
|
|
1192
|
+
* @property {string} [_id]
|
|
1193
|
+
* @property {string} [name]
|
|
1194
|
+
* @property {string} [type]
|
|
1195
|
+
* @property {string} [display_name_key]
|
|
1023
1196
|
*/
|
|
1024
1197
|
|
|
1025
1198
|
/**
|
|
1026
1199
|
* @typedef CustomObjectListItemSchema
|
|
1027
|
-
* @property {string} [
|
|
1028
|
-
* @property {string} [
|
|
1029
|
-
* @property {string} [
|
|
1030
|
-
* @property {string} [
|
|
1031
|
-
* @property {string} [
|
|
1032
|
-
* @property {
|
|
1033
|
-
* @property {
|
|
1200
|
+
* @property {string} [_id]
|
|
1201
|
+
* @property {string} [definition_id]
|
|
1202
|
+
* @property {string} [status]
|
|
1203
|
+
* @property {string} [slug]
|
|
1204
|
+
* @property {string} [updated_at]
|
|
1205
|
+
* @property {string} [display_name]
|
|
1206
|
+
* @property {CustomObjectListItemDefinationSchema} [definition]
|
|
1207
|
+
* @property {number} [references]
|
|
1034
1208
|
*/
|
|
1035
1209
|
|
|
1036
1210
|
/**
|
|
1037
1211
|
* @typedef CustomObjectsSchema
|
|
1038
|
-
* @property {CustomObjectListItemSchema[]} [items]
|
|
1039
|
-
* object entries
|
|
1212
|
+
* @property {CustomObjectListItemSchema[]} [items]
|
|
1040
1213
|
* @property {Page} [page]
|
|
1041
1214
|
*/
|
|
1042
1215
|
|
|
1043
1216
|
/**
|
|
1044
|
-
* @typedef
|
|
1045
|
-
* @property {string} [
|
|
1046
|
-
* @property {string} [
|
|
1047
|
-
* @property {string} [
|
|
1048
|
-
* @property {
|
|
1049
|
-
|
|
1217
|
+
* @typedef CustomObjectFieldSchema
|
|
1218
|
+
* @property {string} [_id]
|
|
1219
|
+
* @property {string} [key]
|
|
1220
|
+
* @property {string} [type]
|
|
1221
|
+
* @property {string} [definition_id]
|
|
1222
|
+
*/
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* @typedef MetafieldTypesSchema
|
|
1226
|
+
* @property {CustomFieldTypeSchema} [metafield_types]
|
|
1050
1227
|
*/
|
|
1051
1228
|
|
|
1052
1229
|
/**
|
|
1053
|
-
* @typedef
|
|
1054
|
-
* @property {string} [
|
|
1055
|
-
* @property {string} [status]
|
|
1056
|
-
* @property {string} [
|
|
1057
|
-
* @property {
|
|
1058
|
-
* @property {
|
|
1059
|
-
*
|
|
1060
|
-
* @property {
|
|
1061
|
-
* @property {string} [definition_slug] - Slug of custom object definition
|
|
1062
|
-
* @property {CustomObjectFieldDefinition[]} [fields] - List of custom fields
|
|
1063
|
-
* inside the custom object
|
|
1230
|
+
* @typedef CustomObjectByIdSchema
|
|
1231
|
+
* @property {string} [_id]
|
|
1232
|
+
* @property {string} [status]
|
|
1233
|
+
* @property {string} [slug]
|
|
1234
|
+
* @property {string} [display_name]
|
|
1235
|
+
* @property {CustomObjectListItemDefinationSchema} [definition]
|
|
1236
|
+
* @property {Object[]} [references]
|
|
1237
|
+
* @property {CustomObjectFieldSchema[]} [fields]
|
|
1064
1238
|
*/
|
|
1065
1239
|
|
|
1066
1240
|
/**
|
|
1067
1241
|
* @typedef CustomObjectBulkEntryInitiateDownload
|
|
1068
|
-
* @property {string} [message]
|
|
1069
|
-
* @property {string} [task_id]
|
|
1242
|
+
* @property {string} [message]
|
|
1243
|
+
* @property {string} [task_id]
|
|
1070
1244
|
*/
|
|
1071
1245
|
|
|
1072
1246
|
/**
|
|
1073
1247
|
* @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]
|
|
1248
|
+
* @property {number} [mo_total_count]
|
|
1249
|
+
* @property {number} [mo_success_count]
|
|
1250
|
+
* @property {number} [mo_error_count]
|
|
1251
|
+
* @property {string} [mo_defintion_type]
|
|
1078
1252
|
*/
|
|
1079
1253
|
|
|
1080
1254
|
/**
|
|
1081
1255
|
* @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} [
|
|
1256
|
+
* @property {string} [_id]
|
|
1257
|
+
* @property {string[]} [jobs]
|
|
1258
|
+
* @property {string[]} [finished_jobs]
|
|
1259
|
+
* @property {string[]} [error_jobs]
|
|
1260
|
+
* @property {string[]} [errors_occured]
|
|
1261
|
+
* @property {string} [company_id]
|
|
1262
|
+
* @property {string} [creator]
|
|
1263
|
+
* @property {string} [status]
|
|
1264
|
+
* @property {string} [action_type]
|
|
1265
|
+
* @property {string} [entity]
|
|
1266
|
+
* @property {string} [error_url]
|
|
1267
|
+
* @property {number} [finished_count]
|
|
1268
|
+
* @property {number} [error_count]
|
|
1269
|
+
* @property {number} [success_count]
|
|
1270
|
+
* @property {number} [total_jobs]
|
|
1096
1271
|
* @property {CustomObjectMetaSchema} [meta]
|
|
1097
|
-
* @property {string} [created_by]
|
|
1098
|
-
* @property {string} [created_at]
|
|
1099
|
-
* @property {string} [updated_at]
|
|
1100
|
-
* @property {string} [application_id]
|
|
1272
|
+
* @property {string} [created_by]
|
|
1273
|
+
* @property {string} [created_at]
|
|
1274
|
+
* @property {string} [updated_at]
|
|
1275
|
+
* @property {string} [application_id]
|
|
1101
1276
|
*/
|
|
1102
1277
|
|
|
1103
1278
|
/**
|
|
@@ -1112,11 +1287,6 @@ const Joi = require("joi");
|
|
|
1112
1287
|
* @property {Page} [page]
|
|
1113
1288
|
*/
|
|
1114
1289
|
|
|
1115
|
-
/**
|
|
1116
|
-
* @typedef MetafieldTypesSchema
|
|
1117
|
-
* @property {CustomFieldTypeSchema} [metafield_types]
|
|
1118
|
-
*/
|
|
1119
|
-
|
|
1120
1290
|
/**
|
|
1121
1291
|
* @typedef CustomFieldTypeSchema
|
|
1122
1292
|
* @property {StringSingleLine} [string_single_line]
|
|
@@ -1136,184 +1306,156 @@ const Joi = require("joi");
|
|
|
1136
1306
|
* @property {Duration} [duration]
|
|
1137
1307
|
*/
|
|
1138
1308
|
|
|
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
1309
|
/**
|
|
1151
1310
|
* @typedef SupportedValidationsSchema
|
|
1152
1311
|
* @property {string} [name]
|
|
1153
1312
|
* @property {string} [type]
|
|
1154
1313
|
* @property {string} [display]
|
|
1155
1314
|
* @property {boolean} [required]
|
|
1156
|
-
* @property {SupportedValidationsMetaSchema} [meta]
|
|
1157
1315
|
*/
|
|
1158
1316
|
|
|
1159
1317
|
/**
|
|
1160
1318
|
* @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
|
|
1319
|
+
* @property {string} [name]
|
|
1320
|
+
* @property {boolean} [list_enabled]
|
|
1321
|
+
* @property {string} [type]
|
|
1322
|
+
* @property {string} [category]
|
|
1323
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1167
1324
|
*/
|
|
1168
1325
|
|
|
1169
1326
|
/**
|
|
1170
1327
|
* @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
|
|
1328
|
+
* @property {string} [name]
|
|
1329
|
+
* @property {boolean} [list_enabled]
|
|
1330
|
+
* @property {string} [type]
|
|
1331
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1176
1332
|
*/
|
|
1177
1333
|
|
|
1178
1334
|
/**
|
|
1179
1335
|
* @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
|
|
1336
|
+
* @property {string} [name]
|
|
1337
|
+
* @property {boolean} [list_enabled]
|
|
1338
|
+
* @property {string} [category]
|
|
1339
|
+
* @property {string} [type]
|
|
1340
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1186
1341
|
*/
|
|
1187
1342
|
|
|
1188
1343
|
/**
|
|
1189
1344
|
* @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
|
|
1345
|
+
* @property {string} [name]
|
|
1346
|
+
* @property {boolean} [list_enabled]
|
|
1347
|
+
* @property {string} [category]
|
|
1348
|
+
* @property {string} [type]
|
|
1349
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1196
1350
|
*/
|
|
1197
1351
|
|
|
1198
1352
|
/**
|
|
1199
1353
|
* @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
|
|
1354
|
+
* @property {string} [name]
|
|
1355
|
+
* @property {boolean} [list_enabled]
|
|
1356
|
+
* @property {string} [category]
|
|
1357
|
+
* @property {string} [type]
|
|
1358
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1206
1359
|
*/
|
|
1207
1360
|
|
|
1208
1361
|
/**
|
|
1209
1362
|
* @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
|
|
1363
|
+
* @property {string} [name]
|
|
1364
|
+
* @property {boolean} [list_enabled]
|
|
1365
|
+
* @property {string} [type]
|
|
1366
|
+
* @property {string} [category]
|
|
1367
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1216
1368
|
*/
|
|
1217
1369
|
|
|
1218
1370
|
/**
|
|
1219
1371
|
* @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
|
|
1372
|
+
* @property {string} [name]
|
|
1373
|
+
* @property {boolean} [list_enabled]
|
|
1374
|
+
* @property {string} [type]
|
|
1375
|
+
* @property {string} [category]
|
|
1376
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1226
1377
|
*/
|
|
1227
1378
|
|
|
1228
1379
|
/**
|
|
1229
1380
|
* @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
|
|
1381
|
+
* @property {string} [name]
|
|
1382
|
+
* @property {string} [category]
|
|
1383
|
+
* @property {boolean} [list_enabled]
|
|
1384
|
+
* @property {string} [type]
|
|
1385
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1236
1386
|
*/
|
|
1237
1387
|
|
|
1238
1388
|
/**
|
|
1239
1389
|
* @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
|
|
1390
|
+
* @property {string} [name]
|
|
1391
|
+
* @property {boolean} [list_enabled]
|
|
1392
|
+
* @property {string} [category]
|
|
1393
|
+
* @property {string} [type]
|
|
1394
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1246
1395
|
*/
|
|
1247
1396
|
|
|
1248
1397
|
/**
|
|
1249
1398
|
* @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
|
|
1399
|
+
* @property {string} [name]
|
|
1400
|
+
* @property {string} [category]
|
|
1401
|
+
* @property {boolean} [list_enabled]
|
|
1402
|
+
* @property {string} [type]
|
|
1403
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1256
1404
|
*/
|
|
1257
1405
|
|
|
1258
1406
|
/**
|
|
1259
1407
|
* @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
|
|
1408
|
+
* @property {string} [name]
|
|
1409
|
+
* @property {boolean} [list_enabled]
|
|
1410
|
+
* @property {string} [category]
|
|
1411
|
+
* @property {string} [type]
|
|
1412
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1266
1413
|
*/
|
|
1267
1414
|
|
|
1268
1415
|
/**
|
|
1269
1416
|
* @typedef File
|
|
1270
|
-
* @property {string} [name]
|
|
1271
|
-
* @property {string} [category]
|
|
1272
|
-
* @property {boolean} [list_enabled]
|
|
1273
|
-
* @property {string} [type]
|
|
1417
|
+
* @property {string} [name]
|
|
1418
|
+
* @property {string} [category]
|
|
1419
|
+
* @property {boolean} [list_enabled]
|
|
1420
|
+
* @property {string} [type]
|
|
1274
1421
|
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1275
1422
|
*/
|
|
1276
1423
|
|
|
1277
1424
|
/**
|
|
1278
1425
|
* @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
|
|
1426
|
+
* @property {string} [name]
|
|
1427
|
+
* @property {boolean} [list_enabled]
|
|
1428
|
+
* @property {string} [type]
|
|
1429
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1284
1430
|
*/
|
|
1285
1431
|
|
|
1286
1432
|
/**
|
|
1287
1433
|
* @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
|
|
1434
|
+
* @property {string} [name]
|
|
1435
|
+
* @property {boolean} [list_enabled]
|
|
1436
|
+
* @property {string} [category]
|
|
1437
|
+
* @property {string} [type]
|
|
1294
1438
|
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1295
1439
|
*/
|
|
1296
1440
|
|
|
1297
1441
|
/**
|
|
1298
1442
|
* @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
|
|
1443
|
+
* @property {string} [name]
|
|
1444
|
+
* @property {boolean} [list_enabled]
|
|
1445
|
+
* @property {string} [category]
|
|
1446
|
+
* @property {string} [type]
|
|
1305
1447
|
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1448
|
+
* @property {string[]} [scope]
|
|
1306
1449
|
*/
|
|
1307
1450
|
|
|
1308
1451
|
/**
|
|
1309
1452
|
* @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
|
|
1453
|
+
* @property {string} [_id]
|
|
1454
|
+
* @property {string} [name]
|
|
1455
|
+
* @property {string} [type]
|
|
1456
|
+
* @property {string} [updated_at]
|
|
1457
|
+
* @property {number} [entries_count]
|
|
1458
|
+
* @property {number} [fields_count]
|
|
1317
1459
|
*/
|
|
1318
1460
|
|
|
1319
1461
|
/**
|
|
@@ -1324,33 +1466,21 @@ const Joi = require("joi");
|
|
|
1324
1466
|
|
|
1325
1467
|
/**
|
|
1326
1468
|
* @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
|
|
1469
|
+
* @property {string} [definition_id]
|
|
1335
1470
|
*/
|
|
1336
1471
|
|
|
1337
1472
|
/**
|
|
1338
1473
|
* @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
|
|
1474
|
+
* @property {string} [status]
|
|
1475
|
+
* @property {string} [slug]
|
|
1476
|
+
* @property {string} [definition_id]
|
|
1477
|
+
* @property {CustomObjectEntryFieldSchema[]} [fields]
|
|
1348
1478
|
*/
|
|
1349
1479
|
|
|
1350
1480
|
/**
|
|
1351
1481
|
* @typedef CustomObjectBulkSchema
|
|
1352
|
-
* @property {string} [url]
|
|
1353
|
-
* @property {number} [total_records]
|
|
1482
|
+
* @property {string} [url]
|
|
1483
|
+
* @property {number} [total_records]
|
|
1354
1484
|
*/
|
|
1355
1485
|
|
|
1356
1486
|
/**
|
|
@@ -1361,8 +1491,6 @@ const Joi = require("joi");
|
|
|
1361
1491
|
* @property {PageType} type
|
|
1362
1492
|
*/
|
|
1363
1493
|
|
|
1364
|
-
/** @typedef {"title" | "description"} GenerationEntityType */
|
|
1365
|
-
|
|
1366
1494
|
/**
|
|
1367
1495
|
* @typedef {| "about-us"
|
|
1368
1496
|
* | "addresses"
|
|
@@ -1415,14 +1543,6 @@ const Joi = require("joi");
|
|
|
1415
1543
|
*/
|
|
1416
1544
|
|
|
1417
1545
|
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
1546
|
/** @returns {GenerateSEOContent} */
|
|
1427
1547
|
static GenerateSEOContent() {
|
|
1428
1548
|
return Joi.object({
|
|
@@ -1453,6 +1573,7 @@ class ContentPlatformModel {
|
|
|
1453
1573
|
_id: Joi.string().allow(""),
|
|
1454
1574
|
updated_at: Joi.string().allow(""),
|
|
1455
1575
|
created_at: Joi.string().allow(""),
|
|
1576
|
+
__v: Joi.number(),
|
|
1456
1577
|
});
|
|
1457
1578
|
}
|
|
1458
1579
|
|
|
@@ -1473,7 +1594,7 @@ class ContentPlatformModel {
|
|
|
1473
1594
|
redirect_to: Joi.string().allow(""),
|
|
1474
1595
|
updated_at: Joi.string().allow(""),
|
|
1475
1596
|
created_at: Joi.string().allow(""),
|
|
1476
|
-
|
|
1597
|
+
__v: Joi.number(),
|
|
1477
1598
|
});
|
|
1478
1599
|
}
|
|
1479
1600
|
|
|
@@ -1495,8 +1616,8 @@ class ContentPlatformModel {
|
|
|
1495
1616
|
/** @returns {SeoSchema} */
|
|
1496
1617
|
static SeoSchema() {
|
|
1497
1618
|
return Joi.object({
|
|
1498
|
-
app: Joi.string().allow(""),
|
|
1499
1619
|
_id: Joi.string().allow(""),
|
|
1620
|
+
app: Joi.string().allow(""),
|
|
1500
1621
|
robots_txt: Joi.string().allow(""),
|
|
1501
1622
|
sitemap_enabled: Joi.boolean(),
|
|
1502
1623
|
additional_sitemap: Joi.string().allow(""),
|
|
@@ -1505,6 +1626,8 @@ class ContentPlatformModel {
|
|
|
1505
1626
|
details: ContentPlatformModel.Detail(),
|
|
1506
1627
|
created_at: Joi.string().allow(""),
|
|
1507
1628
|
updated_at: Joi.string().allow(""),
|
|
1629
|
+
__v: Joi.number(),
|
|
1630
|
+
sitemap: ContentPlatformModel.SEOSitemap(),
|
|
1508
1631
|
});
|
|
1509
1632
|
}
|
|
1510
1633
|
|
|
@@ -1537,16 +1660,17 @@ class ContentPlatformModel {
|
|
|
1537
1660
|
/** @returns {SEOSchemaMarkupTemplate} */
|
|
1538
1661
|
static SEOSchemaMarkupTemplate() {
|
|
1539
1662
|
return Joi.object({
|
|
1540
|
-
|
|
1663
|
+
_id: Joi.string().allow(""),
|
|
1541
1664
|
title: Joi.string().allow(""),
|
|
1542
1665
|
page_type: Joi.string().allow(""),
|
|
1543
1666
|
schema: Joi.string().allow(""),
|
|
1544
1667
|
description: Joi.string().allow(""),
|
|
1545
1668
|
active: Joi.boolean(),
|
|
1669
|
+
application: Joi.string().allow(""),
|
|
1546
1670
|
created_at: Joi.string().allow(""),
|
|
1547
1671
|
updated_at: Joi.string().allow(""),
|
|
1548
|
-
application: Joi.string().allow(""),
|
|
1549
1672
|
target_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1673
|
+
__v: Joi.number(),
|
|
1550
1674
|
});
|
|
1551
1675
|
}
|
|
1552
1676
|
|
|
@@ -1555,12 +1679,46 @@ class ContentPlatformModel {
|
|
|
1555
1679
|
return Joi.object({
|
|
1556
1680
|
title: Joi.string().allow(""),
|
|
1557
1681
|
page_type: Joi.string().allow(""),
|
|
1558
|
-
schema: Joi.string().allow(""),
|
|
1559
1682
|
description: Joi.string().allow(""),
|
|
1683
|
+
schema: Joi.string().allow(""),
|
|
1560
1684
|
target_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1561
1685
|
active: Joi.boolean(),
|
|
1562
1686
|
created_at: Joi.string().allow(""),
|
|
1563
|
-
|
|
1687
|
+
});
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
/** @returns {DeletPathMappingSchema} */
|
|
1691
|
+
static DeletPathMappingSchema() {
|
|
1692
|
+
return Joi.object({
|
|
1693
|
+
message: Joi.string().allow(""),
|
|
1694
|
+
data: ContentPlatformModel.PathMappingSchema(),
|
|
1695
|
+
});
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
/** @returns {CreatePathMappingSchema} */
|
|
1699
|
+
static CreatePathMappingSchema() {
|
|
1700
|
+
return Joi.object({
|
|
1701
|
+
message: Joi.string().allow(""),
|
|
1702
|
+
data: ContentPlatformModel.PathMappingSchema(),
|
|
1703
|
+
});
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
/** @returns {GetAllPathMappingSchema} */
|
|
1707
|
+
static GetAllPathMappingSchema() {
|
|
1708
|
+
return Joi.object({
|
|
1709
|
+
message: Joi.string().allow(""),
|
|
1710
|
+
data: ContentPlatformModel.GetPathSchema(),
|
|
1711
|
+
});
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
/** @returns {GetPathSchema} */
|
|
1715
|
+
static GetPathSchema() {
|
|
1716
|
+
return Joi.object({
|
|
1717
|
+
docs: Joi.array().items(ContentPlatformModel.PathMappingSchema()),
|
|
1718
|
+
page: Joi.number(),
|
|
1719
|
+
limit: Joi.number(),
|
|
1720
|
+
pages: Joi.number(),
|
|
1721
|
+
total: Joi.number(),
|
|
1564
1722
|
});
|
|
1565
1723
|
}
|
|
1566
1724
|
|
|
@@ -1621,13 +1779,13 @@ class ContentPlatformModel {
|
|
|
1621
1779
|
return Joi.object({
|
|
1622
1780
|
page_type: Joi.string().allow(""),
|
|
1623
1781
|
schema: Joi.string().allow(""),
|
|
1624
|
-
target_json: Joi.object().pattern(/\S/, Joi.any()),
|
|
1625
1782
|
});
|
|
1626
1783
|
}
|
|
1627
1784
|
|
|
1628
1785
|
/** @returns {ScheduleSchema} */
|
|
1629
1786
|
static ScheduleSchema() {
|
|
1630
1787
|
return Joi.object({
|
|
1788
|
+
published: Joi.boolean(),
|
|
1631
1789
|
cron: Joi.string().allow(""),
|
|
1632
1790
|
start: Joi.string().allow(""),
|
|
1633
1791
|
end: Joi.string().allow(""),
|
|
@@ -1644,8 +1802,8 @@ class ContentPlatformModel {
|
|
|
1644
1802
|
});
|
|
1645
1803
|
}
|
|
1646
1804
|
|
|
1647
|
-
/** @returns {
|
|
1648
|
-
static
|
|
1805
|
+
/** @returns {BlogGetResponse} */
|
|
1806
|
+
static BlogGetResponse() {
|
|
1649
1807
|
return Joi.object({
|
|
1650
1808
|
items: Joi.array().items(ContentPlatformModel.BlogSchema()),
|
|
1651
1809
|
page: ContentPlatformModel.Page(),
|
|
@@ -1690,7 +1848,7 @@ class ContentPlatformModel {
|
|
|
1690
1848
|
static BlogSchema() {
|
|
1691
1849
|
return Joi.object({
|
|
1692
1850
|
_id: Joi.string().allow(""),
|
|
1693
|
-
_custom_json: Joi.
|
|
1851
|
+
_custom_json: Joi.any(),
|
|
1694
1852
|
application: Joi.string().allow(""),
|
|
1695
1853
|
archived: Joi.boolean(),
|
|
1696
1854
|
author: ContentPlatformModel.Author(),
|
|
@@ -1705,6 +1863,7 @@ class ContentPlatformModel {
|
|
|
1705
1863
|
title: Joi.string().allow(""),
|
|
1706
1864
|
date_meta: ContentPlatformModel.DateMeta(),
|
|
1707
1865
|
summary: Joi.string().allow(""),
|
|
1866
|
+
status: Joi.string().allow(""),
|
|
1708
1867
|
});
|
|
1709
1868
|
}
|
|
1710
1869
|
|
|
@@ -1716,7 +1875,7 @@ class ContentPlatformModel {
|
|
|
1716
1875
|
title: Joi.string().allow(""),
|
|
1717
1876
|
meta_tags: Joi.array().items(ContentPlatformModel.SEOMetaItem()),
|
|
1718
1877
|
sitemap: ContentPlatformModel.SEOSitemap(),
|
|
1719
|
-
|
|
1878
|
+
breadcrumbs: Joi.array().items(ContentPlatformModel.SEObreadcrumb()),
|
|
1720
1879
|
canonical_url: Joi.string().allow(""),
|
|
1721
1880
|
});
|
|
1722
1881
|
}
|
|
@@ -1768,11 +1927,11 @@ class ContentPlatformModel {
|
|
|
1768
1927
|
});
|
|
1769
1928
|
}
|
|
1770
1929
|
|
|
1771
|
-
/** @returns {
|
|
1772
|
-
static
|
|
1930
|
+
/** @returns {BlogRequest} */
|
|
1931
|
+
static BlogRequest() {
|
|
1773
1932
|
return Joi.object({
|
|
1774
1933
|
application: Joi.string().allow(""),
|
|
1775
|
-
_custom_json: Joi.
|
|
1934
|
+
_custom_json: Joi.any(),
|
|
1776
1935
|
author: ContentPlatformModel.Author(),
|
|
1777
1936
|
content: Joi.array().items(ContentPlatformModel.ResourceContent()),
|
|
1778
1937
|
feature_image: ContentPlatformModel.Asset(),
|
|
@@ -1781,6 +1940,7 @@ class ContentPlatformModel {
|
|
|
1781
1940
|
slug: Joi.string().allow(""),
|
|
1782
1941
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
1783
1942
|
title: Joi.string().allow(""),
|
|
1943
|
+
publish_date: Joi.string().allow(""),
|
|
1784
1944
|
seo: ContentPlatformModel.SEO(),
|
|
1785
1945
|
summary: Joi.string().allow(""),
|
|
1786
1946
|
});
|
|
@@ -1802,6 +1962,13 @@ class ContentPlatformModel {
|
|
|
1802
1962
|
});
|
|
1803
1963
|
}
|
|
1804
1964
|
|
|
1965
|
+
/** @returns {DataLoaderItemsResponseSchema} */
|
|
1966
|
+
static DataLoaderItemsResponseSchema() {
|
|
1967
|
+
return Joi.object({
|
|
1968
|
+
items: Joi.array().items(ContentPlatformModel.DataLoaderResponseSchema()),
|
|
1969
|
+
});
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1805
1972
|
/** @returns {DataLoaderResponseSchema} */
|
|
1806
1973
|
static DataLoaderResponseSchema() {
|
|
1807
1974
|
return Joi.object({
|
|
@@ -1814,6 +1981,10 @@ class ContentPlatformModel {
|
|
|
1814
1981
|
type: Joi.string().allow(""),
|
|
1815
1982
|
url: Joi.string().allow(""),
|
|
1816
1983
|
content: Joi.string().allow(""),
|
|
1984
|
+
created_at: Joi.string().allow(""),
|
|
1985
|
+
modified_at: Joi.string().allow(""),
|
|
1986
|
+
__v: Joi.number(),
|
|
1987
|
+
is_selected: Joi.boolean(),
|
|
1817
1988
|
__source: ContentPlatformModel.DataLoaderSourceSchema(),
|
|
1818
1989
|
});
|
|
1819
1990
|
}
|
|
@@ -1821,7 +1992,7 @@ class ContentPlatformModel {
|
|
|
1821
1992
|
/** @returns {DataLoaderResetResponseSchema} */
|
|
1822
1993
|
static DataLoaderResetResponseSchema() {
|
|
1823
1994
|
return Joi.object({
|
|
1824
|
-
|
|
1995
|
+
resetted: Joi.boolean(),
|
|
1825
1996
|
});
|
|
1826
1997
|
}
|
|
1827
1998
|
|
|
@@ -1858,7 +2029,6 @@ class ContentPlatformModel {
|
|
|
1858
2029
|
_locale_language: ContentPlatformModel.LocaleLanguage(),
|
|
1859
2030
|
image: Joi.string().allow(""),
|
|
1860
2031
|
type: Joi.string().allow(""),
|
|
1861
|
-
action: ContentPlatformModel.Action(),
|
|
1862
2032
|
active: Joi.boolean(),
|
|
1863
2033
|
display: Joi.string().allow(""),
|
|
1864
2034
|
sort_order: Joi.number(),
|
|
@@ -1867,6 +2037,15 @@ class ContentPlatformModel {
|
|
|
1867
2037
|
}).id("NavigationReference");
|
|
1868
2038
|
}
|
|
1869
2039
|
|
|
2040
|
+
/** @returns {AssignmentReference} */
|
|
2041
|
+
static AssignmentReference() {
|
|
2042
|
+
return Joi.object({
|
|
2043
|
+
platform: Joi.string().allow(""),
|
|
2044
|
+
orientation: Joi.string().allow(""),
|
|
2045
|
+
position: Joi.string().allow(""),
|
|
2046
|
+
});
|
|
2047
|
+
}
|
|
2048
|
+
|
|
1870
2049
|
/** @returns {CronBasedScheduleSchema} */
|
|
1871
2050
|
static CronBasedScheduleSchema() {
|
|
1872
2051
|
return Joi.object({
|
|
@@ -1888,7 +2067,7 @@ class ContentPlatformModel {
|
|
|
1888
2067
|
static HandpickedTagSchema() {
|
|
1889
2068
|
return Joi.object({
|
|
1890
2069
|
position: Joi.string().allow(""),
|
|
1891
|
-
attributes: Joi.
|
|
2070
|
+
attributes: Joi.any(),
|
|
1892
2071
|
name: Joi.string().allow(""),
|
|
1893
2072
|
url: Joi.string().allow(""),
|
|
1894
2073
|
type: Joi.string().allow(""),
|
|
@@ -1913,7 +2092,7 @@ class ContentPlatformModel {
|
|
|
1913
2092
|
type: Joi.string().allow(""),
|
|
1914
2093
|
url: Joi.string().allow(""),
|
|
1915
2094
|
position: Joi.string().allow(""),
|
|
1916
|
-
attributes: Joi.
|
|
2095
|
+
attributes: Joi.any(),
|
|
1917
2096
|
pages: Joi.array().items(Joi.any()),
|
|
1918
2097
|
content: Joi.string().allow(""),
|
|
1919
2098
|
});
|
|
@@ -1929,14 +2108,18 @@ class ContentPlatformModel {
|
|
|
1929
2108
|
/** @returns {DataLoaderSchema} */
|
|
1930
2109
|
static DataLoaderSchema() {
|
|
1931
2110
|
return Joi.object({
|
|
2111
|
+
_id: Joi.string().allow(""),
|
|
2112
|
+
url: Joi.string().allow(""),
|
|
2113
|
+
created_at: Joi.string().allow(""),
|
|
2114
|
+
modified_at: Joi.string().allow(""),
|
|
2115
|
+
application: Joi.string().allow(""),
|
|
2116
|
+
company: Joi.string().allow(""),
|
|
1932
2117
|
name: Joi.string().allow(""),
|
|
1933
2118
|
service: Joi.string().allow(""),
|
|
1934
2119
|
operation_id: Joi.string().allow(""),
|
|
2120
|
+
is_selected: Joi.boolean(),
|
|
1935
2121
|
type: Joi.string().allow(""),
|
|
1936
|
-
url: Joi.string().allow(""),
|
|
1937
|
-
content: Joi.string().allow(""),
|
|
1938
2122
|
__source: ContentPlatformModel.DataLoaderSourceSchema(),
|
|
1939
|
-
_id: Joi.string().allow(""),
|
|
1940
2123
|
});
|
|
1941
2124
|
}
|
|
1942
2125
|
|
|
@@ -1948,6 +2131,32 @@ class ContentPlatformModel {
|
|
|
1948
2131
|
});
|
|
1949
2132
|
}
|
|
1950
2133
|
|
|
2134
|
+
/** @returns {TagSpecSchema} */
|
|
2135
|
+
static TagSpecSchema() {
|
|
2136
|
+
return Joi.object({
|
|
2137
|
+
name: Joi.string().allow(""),
|
|
2138
|
+
description: Joi.string().allow(""),
|
|
2139
|
+
});
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
/** @returns {ServerSchema} */
|
|
2143
|
+
static ServerSchema() {
|
|
2144
|
+
return Joi.object({
|
|
2145
|
+
url: Joi.string().allow(""),
|
|
2146
|
+
});
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
/** @returns {DataLoadersApiSpecSchema} */
|
|
2150
|
+
static DataLoadersApiSpecSchema() {
|
|
2151
|
+
return Joi.object({
|
|
2152
|
+
info: Joi.any(),
|
|
2153
|
+
servers: Joi.array().items(ContentPlatformModel.ServerSchema()),
|
|
2154
|
+
tags: Joi.array().items(ContentPlatformModel.TagSpecSchema()),
|
|
2155
|
+
openapi: Joi.string().allow(""),
|
|
2156
|
+
paths: Joi.object().pattern(/\S/, Joi.any()),
|
|
2157
|
+
});
|
|
2158
|
+
}
|
|
2159
|
+
|
|
1951
2160
|
/** @returns {DataLoadersSchema} */
|
|
1952
2161
|
static DataLoadersSchema() {
|
|
1953
2162
|
return Joi.object({
|
|
@@ -1955,8 +2164,8 @@ class ContentPlatformModel {
|
|
|
1955
2164
|
});
|
|
1956
2165
|
}
|
|
1957
2166
|
|
|
1958
|
-
/** @returns {
|
|
1959
|
-
static
|
|
2167
|
+
/** @returns {TagDeleteSuccessResponse} */
|
|
2168
|
+
static TagDeleteSuccessResponse() {
|
|
1960
2169
|
return Joi.object({
|
|
1961
2170
|
success: Joi.boolean(),
|
|
1962
2171
|
});
|
|
@@ -1969,10 +2178,9 @@ class ContentPlatformModel {
|
|
|
1969
2178
|
status: Joi.number(),
|
|
1970
2179
|
code: Joi.string().allow(""),
|
|
1971
2180
|
exception: Joi.string().allow(""),
|
|
1972
|
-
info: Joi.string().allow(""),
|
|
1973
2181
|
request_id: Joi.string().allow(""),
|
|
1974
2182
|
stack_trace: Joi.string().allow(""),
|
|
1975
|
-
meta: Joi.
|
|
2183
|
+
meta: Joi.any(),
|
|
1976
2184
|
});
|
|
1977
2185
|
}
|
|
1978
2186
|
|
|
@@ -1994,7 +2202,8 @@ class ContentPlatformModel {
|
|
|
1994
2202
|
slug: Joi.string().allow(""),
|
|
1995
2203
|
application: Joi.string().allow(""),
|
|
1996
2204
|
icon_url: Joi.string().allow(""),
|
|
1997
|
-
_custom_json: Joi.
|
|
2205
|
+
_custom_json: Joi.any(),
|
|
2206
|
+
__v: Joi.number(),
|
|
1998
2207
|
});
|
|
1999
2208
|
}
|
|
2000
2209
|
|
|
@@ -2020,15 +2229,15 @@ class ContentPlatformModel {
|
|
|
2020
2229
|
/** @returns {FAQCategorySchema} */
|
|
2021
2230
|
static FAQCategorySchema() {
|
|
2022
2231
|
return Joi.object({
|
|
2023
|
-
|
|
2232
|
+
_id: Joi.string().allow(""),
|
|
2233
|
+
application: Joi.string().allow(""),
|
|
2024
2234
|
title: Joi.string().allow(""),
|
|
2025
2235
|
description: Joi.string().allow(""),
|
|
2026
|
-
|
|
2027
|
-
_id: Joi.string().allow(""),
|
|
2236
|
+
index: Joi.number(),
|
|
2028
2237
|
slug: Joi.string().allow(""),
|
|
2029
|
-
|
|
2238
|
+
children: Joi.array().items(ContentPlatformModel.ChildrenSchema()),
|
|
2030
2239
|
icon_url: Joi.string().allow(""),
|
|
2031
|
-
|
|
2240
|
+
__v: Joi.number(),
|
|
2032
2241
|
});
|
|
2033
2242
|
}
|
|
2034
2243
|
|
|
@@ -2041,6 +2250,7 @@ class ContentPlatformModel {
|
|
|
2041
2250
|
question: Joi.string().allow(""),
|
|
2042
2251
|
answer: Joi.string().allow(""),
|
|
2043
2252
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
2253
|
+
__v: Joi.number(),
|
|
2044
2254
|
});
|
|
2045
2255
|
}
|
|
2046
2256
|
|
|
@@ -2119,11 +2329,12 @@ class ContentPlatformModel {
|
|
|
2119
2329
|
current: Joi.number(),
|
|
2120
2330
|
type: Joi.string().allow("").required(),
|
|
2121
2331
|
size: Joi.number(),
|
|
2332
|
+
total: Joi.number(),
|
|
2122
2333
|
});
|
|
2123
2334
|
}
|
|
2124
2335
|
|
|
2125
|
-
/** @returns {
|
|
2126
|
-
static
|
|
2336
|
+
/** @returns {LandingPageGetResponse} */
|
|
2337
|
+
static LandingPageGetResponse() {
|
|
2127
2338
|
return Joi.object({
|
|
2128
2339
|
items: Joi.array().items(ContentPlatformModel.LandingPageSchema()),
|
|
2129
2340
|
page: ContentPlatformModel.Page(),
|
|
@@ -2134,26 +2345,26 @@ class ContentPlatformModel {
|
|
|
2134
2345
|
static LandingPageSchema() {
|
|
2135
2346
|
return Joi.object({
|
|
2136
2347
|
slug: Joi.string().allow(""),
|
|
2137
|
-
action: ContentPlatformModel.Action(),
|
|
2138
2348
|
platform: Joi.array().items(Joi.string().allow("")),
|
|
2139
2349
|
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
2140
2350
|
date_meta: ContentPlatformModel.DateMeta(),
|
|
2141
2351
|
_id: Joi.string().allow(""),
|
|
2142
2352
|
application: Joi.string().allow(""),
|
|
2143
2353
|
archived: Joi.boolean(),
|
|
2144
|
-
_custom_json: Joi.
|
|
2354
|
+
_custom_json: Joi.any(),
|
|
2355
|
+
__v: Joi.number(),
|
|
2145
2356
|
});
|
|
2146
2357
|
}
|
|
2147
2358
|
|
|
2148
|
-
/** @returns {
|
|
2149
|
-
static
|
|
2359
|
+
/** @returns {DefaultNavigationResponse} */
|
|
2360
|
+
static DefaultNavigationResponse() {
|
|
2150
2361
|
return Joi.object({
|
|
2151
2362
|
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
2152
2363
|
});
|
|
2153
2364
|
}
|
|
2154
2365
|
|
|
2155
|
-
/** @returns {
|
|
2156
|
-
static
|
|
2366
|
+
/** @returns {NavigationGetResponse} */
|
|
2367
|
+
static NavigationGetResponse() {
|
|
2157
2368
|
return Joi.object({
|
|
2158
2369
|
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
2159
2370
|
page: ContentPlatformModel.Page(),
|
|
@@ -2182,22 +2393,38 @@ class ContentPlatformModel {
|
|
|
2182
2393
|
orientation: ContentPlatformModel.Orientation(),
|
|
2183
2394
|
version: Joi.number(),
|
|
2184
2395
|
navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
|
|
2396
|
+
assignments: Joi.array().items(
|
|
2397
|
+
ContentPlatformModel.AssignmentReference()
|
|
2398
|
+
),
|
|
2399
|
+
__v: Joi.number(),
|
|
2185
2400
|
});
|
|
2186
2401
|
}
|
|
2187
2402
|
|
|
2188
|
-
/** @returns {
|
|
2189
|
-
static
|
|
2403
|
+
/** @returns {NavigationRequest} */
|
|
2404
|
+
static NavigationRequest() {
|
|
2190
2405
|
return Joi.object({
|
|
2191
2406
|
name: Joi.string().allow(""),
|
|
2192
2407
|
slug: Joi.string().allow(""),
|
|
2193
2408
|
platform: Joi.array().items(Joi.string().allow("")),
|
|
2194
2409
|
orientation: ContentPlatformModel.Orientation(),
|
|
2410
|
+
assignments: Joi.array().items(
|
|
2411
|
+
ContentPlatformModel.NavigationAssignment()
|
|
2412
|
+
),
|
|
2195
2413
|
navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
|
|
2196
2414
|
});
|
|
2197
2415
|
}
|
|
2198
2416
|
|
|
2199
|
-
/** @returns {
|
|
2200
|
-
static
|
|
2417
|
+
/** @returns {NavigationAssignment} */
|
|
2418
|
+
static NavigationAssignment() {
|
|
2419
|
+
return Joi.object({
|
|
2420
|
+
platform: Joi.string().allow(""),
|
|
2421
|
+
orientation: Joi.string().allow(""),
|
|
2422
|
+
position: Joi.string().allow(""),
|
|
2423
|
+
});
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
/** @returns {PageGetResponse} */
|
|
2427
|
+
static PageGetResponse() {
|
|
2201
2428
|
return Joi.object({
|
|
2202
2429
|
items: Joi.array().items(ContentPlatformModel.PageSchema()),
|
|
2203
2430
|
page: ContentPlatformModel.Page(),
|
|
@@ -2229,31 +2456,63 @@ class ContentPlatformModel {
|
|
|
2229
2456
|
});
|
|
2230
2457
|
}
|
|
2231
2458
|
|
|
2459
|
+
/** @returns {PageResponseError} */
|
|
2460
|
+
static PageResponseError() {
|
|
2461
|
+
return Joi.object({
|
|
2462
|
+
errors: Joi.string().allow(""),
|
|
2463
|
+
});
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2232
2466
|
/** @returns {PageSchema} */
|
|
2233
2467
|
static PageSchema() {
|
|
2234
2468
|
return Joi.object({
|
|
2235
2469
|
_id: Joi.string().allow(""),
|
|
2236
2470
|
application: Joi.string().allow(""),
|
|
2237
|
-
|
|
2238
|
-
|
|
2471
|
+
platform: Joi.string().allow(""),
|
|
2472
|
+
title: Joi.string().allow(""),
|
|
2473
|
+
slug: Joi.string().allow(""),
|
|
2474
|
+
type: Joi.string().allow(""),
|
|
2475
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
2239
2476
|
content_path: Joi.string().allow(""),
|
|
2477
|
+
orientation: Joi.string().allow(""),
|
|
2478
|
+
description: Joi.string().allow(""),
|
|
2479
|
+
published: Joi.boolean(),
|
|
2240
2480
|
created_by: ContentPlatformModel.CreatedBySchema(),
|
|
2241
2481
|
date_meta: ContentPlatformModel.DateMeta(),
|
|
2242
|
-
description: Joi.string().allow(""),
|
|
2243
2482
|
feature_image: ContentPlatformModel.Asset(),
|
|
2244
|
-
page_meta: Joi.array().items(Joi.any()),
|
|
2245
2483
|
_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(""),
|
|
2484
|
+
page_meta: Joi.array().items(ContentPlatformModel.PageMeta()),
|
|
2254
2485
|
seo: ContentPlatformModel.SEO(),
|
|
2255
|
-
|
|
2486
|
+
component_ids: Joi.array().items(Joi.string().allow("")),
|
|
2256
2487
|
archived: Joi.boolean(),
|
|
2488
|
+
__v: Joi.number(),
|
|
2489
|
+
content: Joi.array().items(ContentPlatformModel.PageContent()),
|
|
2490
|
+
sanitized_content: Joi.array().items(
|
|
2491
|
+
ContentPlatformModel.SanitizedContent()
|
|
2492
|
+
),
|
|
2493
|
+
});
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
/** @returns {SanitizedContent} */
|
|
2497
|
+
static SanitizedContent() {
|
|
2498
|
+
return Joi.object({
|
|
2499
|
+
type: Joi.string().allow(""),
|
|
2500
|
+
value: Joi.string().allow(""),
|
|
2501
|
+
});
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
/** @returns {PageMeta} */
|
|
2505
|
+
static PageMeta() {
|
|
2506
|
+
return Joi.object({
|
|
2507
|
+
key: Joi.string().allow(""),
|
|
2508
|
+
});
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
/** @returns {PageContent} */
|
|
2512
|
+
static PageContent() {
|
|
2513
|
+
return Joi.object({
|
|
2514
|
+
type: Joi.string().allow(""),
|
|
2515
|
+
value: Joi.string().allow(""),
|
|
2257
2516
|
});
|
|
2258
2517
|
}
|
|
2259
2518
|
|
|
@@ -2264,15 +2523,22 @@ class ContentPlatformModel {
|
|
|
2264
2523
|
});
|
|
2265
2524
|
}
|
|
2266
2525
|
|
|
2267
|
-
/** @returns {
|
|
2268
|
-
static
|
|
2526
|
+
/** @returns {PageRequestVisibility} */
|
|
2527
|
+
static PageRequestVisibility() {
|
|
2528
|
+
return Joi.object({
|
|
2529
|
+
test: Joi.boolean(),
|
|
2530
|
+
});
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
/** @returns {PageRequest} */
|
|
2534
|
+
static PageRequest() {
|
|
2269
2535
|
return Joi.object({
|
|
2270
2536
|
_schedule: ContentPlatformModel.CronSchedule(),
|
|
2271
2537
|
application: Joi.string().allow(""),
|
|
2272
2538
|
author: ContentPlatformModel.Author(),
|
|
2273
|
-
_custom_json: Joi.
|
|
2539
|
+
_custom_json: Joi.any(),
|
|
2274
2540
|
orientation: Joi.string().allow(""),
|
|
2275
|
-
content: Joi.array().items(
|
|
2541
|
+
content: Joi.array().items(ContentPlatformModel.PageContent()),
|
|
2276
2542
|
feature_image: ContentPlatformModel.Asset(),
|
|
2277
2543
|
published: Joi.boolean(),
|
|
2278
2544
|
reading_time: Joi.string().allow(""),
|
|
@@ -2280,6 +2546,10 @@ class ContentPlatformModel {
|
|
|
2280
2546
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
2281
2547
|
seo: ContentPlatformModel.SEO(),
|
|
2282
2548
|
title: Joi.string().allow(""),
|
|
2549
|
+
platform: Joi.string().allow(""),
|
|
2550
|
+
type: Joi.string().allow(""),
|
|
2551
|
+
description: Joi.string().allow(""),
|
|
2552
|
+
visibility: Joi.any(),
|
|
2283
2553
|
});
|
|
2284
2554
|
}
|
|
2285
2555
|
|
|
@@ -2290,11 +2560,12 @@ class ContentPlatformModel {
|
|
|
2290
2560
|
start: Joi.string().allow(""),
|
|
2291
2561
|
end: Joi.string().allow(""),
|
|
2292
2562
|
duration: Joi.number(),
|
|
2563
|
+
next_schedule: Joi.array().items(ContentPlatformModel.NextSchedule()),
|
|
2293
2564
|
});
|
|
2294
2565
|
}
|
|
2295
2566
|
|
|
2296
|
-
/** @returns {
|
|
2297
|
-
static
|
|
2567
|
+
/** @returns {PagePublishRequest} */
|
|
2568
|
+
static PagePublishRequest() {
|
|
2298
2569
|
return Joi.object({
|
|
2299
2570
|
publish: Joi.boolean(),
|
|
2300
2571
|
});
|
|
@@ -2303,12 +2574,44 @@ class ContentPlatformModel {
|
|
|
2303
2574
|
/** @returns {PageMetaSchema} */
|
|
2304
2575
|
static PageMetaSchema() {
|
|
2305
2576
|
return Joi.object({
|
|
2306
|
-
system_pages: Joi.array().items(ContentPlatformModel.
|
|
2307
|
-
custom_pages: Joi.array().items(ContentPlatformModel.
|
|
2577
|
+
system_pages: Joi.array().items(ContentPlatformModel.SystemPages()),
|
|
2578
|
+
custom_pages: Joi.array().items(ContentPlatformModel.CustomePages()),
|
|
2308
2579
|
application_id: Joi.string().allow(""),
|
|
2309
2580
|
});
|
|
2310
2581
|
}
|
|
2311
2582
|
|
|
2583
|
+
/** @returns {CustomePages} */
|
|
2584
|
+
static CustomePages() {
|
|
2585
|
+
return Joi.object({
|
|
2586
|
+
display: Joi.string().allow(""),
|
|
2587
|
+
slug: Joi.string().allow(""),
|
|
2588
|
+
});
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
/** @returns {SystemPagesActionPage} */
|
|
2592
|
+
static SystemPagesActionPage() {
|
|
2593
|
+
return Joi.object({
|
|
2594
|
+
type: Joi.string().allow(""),
|
|
2595
|
+
});
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
/** @returns {SystemPagesAction} */
|
|
2599
|
+
static SystemPagesAction() {
|
|
2600
|
+
return Joi.object({
|
|
2601
|
+
page: ContentPlatformModel.SystemPagesActionPage(),
|
|
2602
|
+
type: Joi.string().allow(""),
|
|
2603
|
+
});
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
/** @returns {SystemPages} */
|
|
2607
|
+
static SystemPages() {
|
|
2608
|
+
return Joi.object({
|
|
2609
|
+
display: Joi.string().allow(""),
|
|
2610
|
+
action: ContentPlatformModel.SystemPagesAction(),
|
|
2611
|
+
page_type: Joi.string().allow(""),
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2312
2615
|
/** @returns {Support} */
|
|
2313
2616
|
static Support() {
|
|
2314
2617
|
return Joi.object({
|
|
@@ -2368,6 +2671,8 @@ class ContentPlatformModel {
|
|
|
2368
2671
|
return Joi.object({
|
|
2369
2672
|
application: Joi.string().allow(""),
|
|
2370
2673
|
_id: Joi.string().allow(""),
|
|
2674
|
+
company: Joi.string().allow(""),
|
|
2675
|
+
__v: Joi.number(),
|
|
2371
2676
|
tags: Joi.array().items(ContentPlatformModel.TagSchema()),
|
|
2372
2677
|
});
|
|
2373
2678
|
}
|
|
@@ -2381,8 +2686,9 @@ class ContentPlatformModel {
|
|
|
2381
2686
|
sub_type: Joi.string().allow(""),
|
|
2382
2687
|
_id: Joi.string().allow(""),
|
|
2383
2688
|
position: Joi.string().allow(""),
|
|
2384
|
-
attributes: Joi.
|
|
2689
|
+
attributes: Joi.any(),
|
|
2385
2690
|
content: Joi.string().allow(""),
|
|
2691
|
+
compatible_engines: Joi.array().items(Joi.any()),
|
|
2386
2692
|
pages: Joi.array().items(Joi.any()),
|
|
2387
2693
|
__source: ContentPlatformModel.TagSourceSchema(),
|
|
2388
2694
|
});
|
|
@@ -2417,30 +2723,70 @@ class ContentPlatformModel {
|
|
|
2417
2723
|
return Joi.object({
|
|
2418
2724
|
name: Joi.string().allow(""),
|
|
2419
2725
|
type: Joi.string().allow(""),
|
|
2420
|
-
|
|
2726
|
+
});
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
/** @returns {ApplicationFieldDefinitionSchema} */
|
|
2730
|
+
static ApplicationFieldDefinitionSchema() {
|
|
2731
|
+
return Joi.object({
|
|
2732
|
+
_id: Joi.string().allow(""),
|
|
2733
|
+
creator: Joi.string().allow(""),
|
|
2734
|
+
resource: Joi.string().allow(""),
|
|
2735
|
+
name: Joi.string().allow(""),
|
|
2736
|
+
namespace: Joi.string().allow(""),
|
|
2737
|
+
key: Joi.string().allow(""),
|
|
2738
|
+
description: Joi.string().allow(""),
|
|
2739
|
+
type: Joi.string().allow(""),
|
|
2740
|
+
multi_value: Joi.boolean(),
|
|
2741
|
+
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2742
|
+
company_id: Joi.string().allow(""),
|
|
2743
|
+
created_by: Joi.string().allow(""),
|
|
2744
|
+
updated_by: Joi.string().allow(""),
|
|
2745
|
+
required: Joi.boolean(),
|
|
2746
|
+
is_deleted: Joi.boolean(),
|
|
2747
|
+
created_at: Joi.string().allow(""),
|
|
2748
|
+
updated_at: Joi.string().allow(""),
|
|
2749
|
+
type_name: Joi.string().allow(""),
|
|
2750
|
+
invalid_fields_count: Joi.number(),
|
|
2751
|
+
application_id: Joi.string().allow(""),
|
|
2421
2752
|
});
|
|
2422
2753
|
}
|
|
2423
2754
|
|
|
2424
2755
|
/** @returns {FieldDefinitionSchema} */
|
|
2425
2756
|
static FieldDefinitionSchema() {
|
|
2426
2757
|
return Joi.object({
|
|
2427
|
-
|
|
2758
|
+
_id: Joi.string().allow(""),
|
|
2759
|
+
creator: Joi.string().allow(""),
|
|
2428
2760
|
resource: Joi.string().allow(""),
|
|
2429
2761
|
name: Joi.string().allow(""),
|
|
2430
2762
|
namespace: Joi.string().allow(""),
|
|
2431
|
-
|
|
2763
|
+
key: Joi.string().allow(""),
|
|
2432
2764
|
description: Joi.string().allow(""),
|
|
2433
2765
|
type: Joi.string().allow(""),
|
|
2434
2766
|
multi_value: Joi.boolean(),
|
|
2435
2767
|
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2436
2768
|
company_id: Joi.string().allow(""),
|
|
2769
|
+
created_by: Joi.string().allow(""),
|
|
2770
|
+
updated_by: Joi.string().allow(""),
|
|
2437
2771
|
required: Joi.boolean(),
|
|
2438
2772
|
is_deleted: Joi.boolean(),
|
|
2773
|
+
created_at: Joi.string().allow(""),
|
|
2774
|
+
updated_at: Joi.string().allow(""),
|
|
2439
2775
|
type_name: Joi.string().allow(""),
|
|
2440
2776
|
invalid_fields_count: Joi.number(),
|
|
2441
2777
|
});
|
|
2442
2778
|
}
|
|
2443
2779
|
|
|
2780
|
+
/** @returns {ApplicationCustomFieldDefinitionsSchema} */
|
|
2781
|
+
static ApplicationCustomFieldDefinitionsSchema() {
|
|
2782
|
+
return Joi.object({
|
|
2783
|
+
items: Joi.array().items(
|
|
2784
|
+
ContentPlatformModel.ApplicationFieldDefinitionSchema()
|
|
2785
|
+
),
|
|
2786
|
+
page: ContentPlatformModel.Page(),
|
|
2787
|
+
});
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2444
2790
|
/** @returns {CustomFieldDefinitionsSchema} */
|
|
2445
2791
|
static CustomFieldDefinitionsSchema() {
|
|
2446
2792
|
return Joi.object({
|
|
@@ -2452,12 +2798,14 @@ class ContentPlatformModel {
|
|
|
2452
2798
|
/** @returns {CustomFieldDefinitionRequestSchema} */
|
|
2453
2799
|
static CustomFieldDefinitionRequestSchema() {
|
|
2454
2800
|
return Joi.object({
|
|
2801
|
+
resource: Joi.string().allow(""),
|
|
2455
2802
|
type: Joi.string().allow(""),
|
|
2456
|
-
|
|
2803
|
+
key: Joi.string().allow(""),
|
|
2457
2804
|
namespace: Joi.string().allow(""),
|
|
2458
2805
|
multi_value: Joi.boolean(),
|
|
2459
2806
|
name: Joi.string().allow(""),
|
|
2460
2807
|
description: Joi.string().allow(""),
|
|
2808
|
+
creator: Joi.string().allow(""),
|
|
2461
2809
|
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2462
2810
|
});
|
|
2463
2811
|
}
|
|
@@ -2465,13 +2813,13 @@ class ContentPlatformModel {
|
|
|
2465
2813
|
/** @returns {CustomObjectCustomFieldDefinitions} */
|
|
2466
2814
|
static CustomObjectCustomFieldDefinitions() {
|
|
2467
2815
|
return Joi.object({
|
|
2468
|
-
|
|
2469
|
-
type: Joi.string().allow(""),
|
|
2816
|
+
_id: Joi.string().allow(""),
|
|
2817
|
+
type: Joi.string().allow("").required(),
|
|
2470
2818
|
description: Joi.string().allow(""),
|
|
2471
2819
|
name: Joi.string().allow(""),
|
|
2472
2820
|
multi_value: Joi.boolean(),
|
|
2473
2821
|
required: Joi.boolean(),
|
|
2474
|
-
|
|
2822
|
+
key: Joi.string().allow(""),
|
|
2475
2823
|
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2476
2824
|
action: Joi.string().allow(""),
|
|
2477
2825
|
});
|
|
@@ -2480,11 +2828,12 @@ class ContentPlatformModel {
|
|
|
2480
2828
|
/** @returns {CustomObjectDefinitionUpdateRequestSchema} */
|
|
2481
2829
|
static CustomObjectDefinitionUpdateRequestSchema() {
|
|
2482
2830
|
return Joi.object({
|
|
2831
|
+
type: Joi.string().allow(""),
|
|
2483
2832
|
description: Joi.string().allow(""),
|
|
2484
2833
|
name: Joi.string().allow(""),
|
|
2485
2834
|
display_name_key: Joi.string().allow(""),
|
|
2486
2835
|
field_definitions: Joi.array().items(
|
|
2487
|
-
ContentPlatformModel.
|
|
2836
|
+
ContentPlatformModel.CustomFieldDefinitionDetailResSchema()
|
|
2488
2837
|
),
|
|
2489
2838
|
});
|
|
2490
2839
|
}
|
|
@@ -2492,39 +2841,21 @@ class ContentPlatformModel {
|
|
|
2492
2841
|
/** @returns {CustomFieldDefinitionDetailResSchema} */
|
|
2493
2842
|
static CustomFieldDefinitionDetailResSchema() {
|
|
2494
2843
|
return Joi.object({
|
|
2844
|
+
creator: Joi.string().allow(""),
|
|
2495
2845
|
resource: Joi.string().allow(""),
|
|
2496
2846
|
name: Joi.string().allow(""),
|
|
2497
2847
|
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(""),
|
|
2848
|
+
key: Joi.string().allow(""),
|
|
2520
2849
|
description: Joi.string().allow(""),
|
|
2521
2850
|
type: Joi.string().allow(""),
|
|
2522
2851
|
multi_value: Joi.boolean(),
|
|
2523
2852
|
company_id: Joi.string().allow(""),
|
|
2524
2853
|
application_id: Joi.string().allow(""),
|
|
2854
|
+
created_by: Joi.string().allow(""),
|
|
2855
|
+
updated_by: Joi.string().allow(""),
|
|
2525
2856
|
required: Joi.boolean(),
|
|
2526
2857
|
is_deleted: Joi.boolean(),
|
|
2527
|
-
|
|
2858
|
+
_id: Joi.string().allow(""),
|
|
2528
2859
|
validations: Joi.array().items(Joi.any()),
|
|
2529
2860
|
created_at: Joi.string().allow(""),
|
|
2530
2861
|
updated_at: Joi.string().allow(""),
|
|
@@ -2539,27 +2870,22 @@ class ContentPlatformModel {
|
|
|
2539
2870
|
});
|
|
2540
2871
|
}
|
|
2541
2872
|
|
|
2542
|
-
/** @returns {CustomFieldValue} */
|
|
2543
|
-
static CustomFieldValue() {
|
|
2544
|
-
return Joi.object({
|
|
2545
|
-
value: Joi.any(),
|
|
2546
|
-
});
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
2873
|
/** @returns {CustomFieldSchema} */
|
|
2550
2874
|
static CustomFieldSchema() {
|
|
2551
2875
|
return Joi.object({
|
|
2552
|
-
|
|
2876
|
+
_id: Joi.string().allow(""),
|
|
2553
2877
|
namespace: Joi.string().allow(""),
|
|
2554
|
-
|
|
2878
|
+
key: Joi.string().allow(""),
|
|
2555
2879
|
resource: Joi.string().allow(""),
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
type: Joi.string().allow(""),
|
|
2880
|
+
creator: Joi.string().allow(""),
|
|
2881
|
+
resource_id: Joi.string().allow(""),
|
|
2882
|
+
type: Joi.string().allow("").required(),
|
|
2559
2883
|
multi_value: Joi.boolean(),
|
|
2560
2884
|
company_id: Joi.string().allow(""),
|
|
2885
|
+
definition_id: Joi.string().allow(""),
|
|
2561
2886
|
has_invalid_values: Joi.boolean(),
|
|
2562
2887
|
invalid_value_errors: Joi.array().items(Joi.any()),
|
|
2888
|
+
created_by: Joi.string().allow(""),
|
|
2563
2889
|
is_deleted: Joi.boolean(),
|
|
2564
2890
|
created_at: Joi.string().allow(""),
|
|
2565
2891
|
updated_at: Joi.string().allow(""),
|
|
@@ -2592,9 +2918,7 @@ class ContentPlatformModel {
|
|
|
2592
2918
|
/** @returns {CustomField} */
|
|
2593
2919
|
static CustomField() {
|
|
2594
2920
|
return Joi.object({
|
|
2595
|
-
|
|
2596
|
-
namespace: Joi.string().allow(""),
|
|
2597
|
-
slug: Joi.string().allow(""),
|
|
2921
|
+
definition_id: Joi.string().allow(""),
|
|
2598
2922
|
});
|
|
2599
2923
|
}
|
|
2600
2924
|
|
|
@@ -2608,13 +2932,20 @@ class ContentPlatformModel {
|
|
|
2608
2932
|
/** @returns {CustomObjectSchema} */
|
|
2609
2933
|
static CustomObjectSchema() {
|
|
2610
2934
|
return Joi.object({
|
|
2611
|
-
|
|
2935
|
+
_id: Joi.string().allow(""),
|
|
2936
|
+
creator: Joi.string().allow(""),
|
|
2612
2937
|
company_id: Joi.string().allow(""),
|
|
2613
2938
|
application_id: Joi.string().allow(""),
|
|
2939
|
+
created_by: Joi.string().allow(""),
|
|
2940
|
+
updated_by: Joi.string().allow(""),
|
|
2614
2941
|
status: Joi.string().allow(""),
|
|
2942
|
+
slug: Joi.string().allow(""),
|
|
2615
2943
|
type: Joi.string().allow(""),
|
|
2616
|
-
definition_slug: Joi.string().allow(""),
|
|
2617
2944
|
display_name: Joi.string().allow(""),
|
|
2945
|
+
definition_id: Joi.string().allow(""),
|
|
2946
|
+
is_deleted: Joi.boolean(),
|
|
2947
|
+
created_at: Joi.string().allow(""),
|
|
2948
|
+
updated_at: Joi.string().allow(""),
|
|
2618
2949
|
fields: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
|
|
2619
2950
|
});
|
|
2620
2951
|
}
|
|
@@ -2623,7 +2954,6 @@ class ContentPlatformModel {
|
|
|
2623
2954
|
static CustomObjectDefinitionRequestSchema() {
|
|
2624
2955
|
return Joi.object({
|
|
2625
2956
|
type: Joi.string().allow(""),
|
|
2626
|
-
definition_slug: Joi.string().allow(""),
|
|
2627
2957
|
description: Joi.string().allow(""),
|
|
2628
2958
|
name: Joi.string().allow(""),
|
|
2629
2959
|
display_name_key: Joi.string().allow(""),
|
|
@@ -2633,17 +2963,47 @@ class ContentPlatformModel {
|
|
|
2633
2963
|
});
|
|
2634
2964
|
}
|
|
2635
2965
|
|
|
2636
|
-
/** @returns {
|
|
2637
|
-
static
|
|
2966
|
+
/** @returns {CustomObjectCustomFieldDefinitionResSchema} */
|
|
2967
|
+
static CustomObjectCustomFieldDefinitionResSchema() {
|
|
2638
2968
|
return Joi.object({
|
|
2639
|
-
|
|
2969
|
+
creator: Joi.string().allow(""),
|
|
2970
|
+
resource: Joi.string().allow(""),
|
|
2971
|
+
name: Joi.string().allow(""),
|
|
2972
|
+
namespace: Joi.string().allow(""),
|
|
2973
|
+
key: Joi.string().allow(""),
|
|
2974
|
+
description: Joi.string().allow(""),
|
|
2975
|
+
type: Joi.string().allow("").required(),
|
|
2976
|
+
multi_value: Joi.boolean(),
|
|
2977
|
+
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2978
|
+
company_id: Joi.string().allow(""),
|
|
2979
|
+
created_by: Joi.string().allow(""),
|
|
2980
|
+
metaobject_definition_id: Joi.string().allow(""),
|
|
2981
|
+
required: Joi.boolean(),
|
|
2982
|
+
is_deleted: Joi.boolean(),
|
|
2983
|
+
_id: Joi.string().allow(""),
|
|
2984
|
+
created_at: Joi.string().allow(""),
|
|
2985
|
+
updated_at: Joi.string().allow(""),
|
|
2986
|
+
application_id: Joi.string().allow(""),
|
|
2987
|
+
});
|
|
2988
|
+
}
|
|
2989
|
+
|
|
2990
|
+
/** @returns {CustomObjectDefinitionSchema} */
|
|
2991
|
+
static CustomObjectDefinitionSchema() {
|
|
2992
|
+
return Joi.object({
|
|
2993
|
+
_id: Joi.string().allow(""),
|
|
2640
2994
|
name: Joi.string().allow(""),
|
|
2641
2995
|
type: Joi.string().allow(""),
|
|
2642
|
-
definition_slug: Joi.string().allow(""),
|
|
2643
2996
|
display_name_key: Joi.string().allow(""),
|
|
2644
2997
|
description: Joi.string().allow(""),
|
|
2998
|
+
creator: Joi.string().allow(""),
|
|
2999
|
+
created_by: Joi.string().allow(""),
|
|
3000
|
+
updated_by: Joi.string().allow(""),
|
|
3001
|
+
application_id: Joi.string().allow(""),
|
|
3002
|
+
company_id: Joi.string().allow(""),
|
|
3003
|
+
created_at: Joi.string().allow(""),
|
|
3004
|
+
updated_at: Joi.string().allow(""),
|
|
2645
3005
|
field_definitions: Joi.array().items(
|
|
2646
|
-
ContentPlatformModel.
|
|
3006
|
+
ContentPlatformModel.CustomObjectCustomFieldDefinitionResSchema()
|
|
2647
3007
|
),
|
|
2648
3008
|
});
|
|
2649
3009
|
}
|
|
@@ -2656,32 +3016,34 @@ class ContentPlatformModel {
|
|
|
2656
3016
|
});
|
|
2657
3017
|
}
|
|
2658
3018
|
|
|
2659
|
-
/** @returns {
|
|
2660
|
-
static
|
|
3019
|
+
/** @returns {CustomObjectEntryBulkUploadResponse} */
|
|
3020
|
+
static CustomObjectEntryBulkUploadResponse() {
|
|
2661
3021
|
return Joi.object({
|
|
2662
|
-
|
|
2663
|
-
|
|
3022
|
+
message: Joi.string().allow(""),
|
|
3023
|
+
task_id: Joi.string().allow(""),
|
|
2664
3024
|
});
|
|
2665
3025
|
}
|
|
2666
3026
|
|
|
2667
|
-
/** @returns {
|
|
2668
|
-
static
|
|
3027
|
+
/** @returns {CustomObjectListItemDefinationSchema} */
|
|
3028
|
+
static CustomObjectListItemDefinationSchema() {
|
|
2669
3029
|
return Joi.object({
|
|
2670
|
-
|
|
3030
|
+
_id: Joi.string().allow(""),
|
|
2671
3031
|
name: Joi.string().allow(""),
|
|
2672
3032
|
type: Joi.string().allow(""),
|
|
3033
|
+
display_name_key: Joi.string().allow(""),
|
|
2673
3034
|
});
|
|
2674
3035
|
}
|
|
2675
3036
|
|
|
2676
3037
|
/** @returns {CustomObjectListItemSchema} */
|
|
2677
3038
|
static CustomObjectListItemSchema() {
|
|
2678
3039
|
return Joi.object({
|
|
2679
|
-
|
|
3040
|
+
_id: Joi.string().allow(""),
|
|
3041
|
+
definition_id: Joi.string().allow(""),
|
|
2680
3042
|
status: Joi.string().allow(""),
|
|
2681
|
-
|
|
3043
|
+
slug: Joi.string().allow(""),
|
|
2682
3044
|
updated_at: Joi.string().allow(""),
|
|
2683
3045
|
display_name: Joi.string().allow(""),
|
|
2684
|
-
definition: ContentPlatformModel.
|
|
3046
|
+
definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
|
|
2685
3047
|
references: Joi.number(),
|
|
2686
3048
|
});
|
|
2687
3049
|
}
|
|
@@ -2696,30 +3058,33 @@ class ContentPlatformModel {
|
|
|
2696
3058
|
});
|
|
2697
3059
|
}
|
|
2698
3060
|
|
|
2699
|
-
/** @returns {
|
|
2700
|
-
static
|
|
3061
|
+
/** @returns {CustomObjectFieldSchema} */
|
|
3062
|
+
static CustomObjectFieldSchema() {
|
|
2701
3063
|
return Joi.object({
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
namespace: Joi.string().allow(""),
|
|
2705
|
-
value: Joi.array().items(Joi.any()),
|
|
3064
|
+
_id: Joi.string().allow(""),
|
|
3065
|
+
key: Joi.string().allow(""),
|
|
2706
3066
|
type: Joi.string().allow(""),
|
|
3067
|
+
definition_id: Joi.string().allow(""),
|
|
2707
3068
|
});
|
|
2708
3069
|
}
|
|
2709
3070
|
|
|
2710
|
-
/** @returns {
|
|
2711
|
-
static
|
|
3071
|
+
/** @returns {MetafieldTypesSchema} */
|
|
3072
|
+
static MetafieldTypesSchema() {
|
|
2712
3073
|
return Joi.object({
|
|
2713
|
-
|
|
3074
|
+
metafield_types: ContentPlatformModel.CustomFieldTypeSchema(),
|
|
3075
|
+
});
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
/** @returns {CustomObjectByIdSchema} */
|
|
3079
|
+
static CustomObjectByIdSchema() {
|
|
3080
|
+
return Joi.object({
|
|
3081
|
+
_id: Joi.string().allow(""),
|
|
2714
3082
|
status: Joi.string().allow(""),
|
|
3083
|
+
slug: Joi.string().allow(""),
|
|
2715
3084
|
display_name: Joi.string().allow(""),
|
|
2716
|
-
definition: ContentPlatformModel.
|
|
3085
|
+
definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
|
|
2717
3086
|
references: Joi.array().items(Joi.any()),
|
|
2718
|
-
|
|
2719
|
-
definition_slug: Joi.string().allow(""),
|
|
2720
|
-
fields: Joi.array().items(
|
|
2721
|
-
ContentPlatformModel.CustomObjectFieldDefinition()
|
|
2722
|
-
),
|
|
3087
|
+
fields: Joi.array().items(ContentPlatformModel.CustomObjectFieldSchema()),
|
|
2723
3088
|
});
|
|
2724
3089
|
}
|
|
2725
3090
|
|
|
@@ -2744,12 +3109,13 @@ class ContentPlatformModel {
|
|
|
2744
3109
|
/** @returns {JobSchema} */
|
|
2745
3110
|
static JobSchema() {
|
|
2746
3111
|
return Joi.object({
|
|
2747
|
-
|
|
3112
|
+
_id: Joi.string().allow(""),
|
|
2748
3113
|
jobs: Joi.array().items(Joi.string().allow("")),
|
|
2749
3114
|
finished_jobs: Joi.array().items(Joi.string().allow("")),
|
|
2750
3115
|
error_jobs: Joi.array().items(Joi.string().allow("")),
|
|
2751
3116
|
errors_occured: Joi.array().items(Joi.string().allow("")),
|
|
2752
3117
|
company_id: Joi.string().allow(""),
|
|
3118
|
+
creator: Joi.string().allow(""),
|
|
2753
3119
|
status: Joi.string().allow(""),
|
|
2754
3120
|
action_type: Joi.string().allow(""),
|
|
2755
3121
|
entity: Joi.string().allow(""),
|
|
@@ -2782,13 +3148,6 @@ class ContentPlatformModel {
|
|
|
2782
3148
|
});
|
|
2783
3149
|
}
|
|
2784
3150
|
|
|
2785
|
-
/** @returns {MetafieldTypesSchema} */
|
|
2786
|
-
static MetafieldTypesSchema() {
|
|
2787
|
-
return Joi.object({
|
|
2788
|
-
metafield_types: ContentPlatformModel.CustomFieldTypeSchema(),
|
|
2789
|
-
});
|
|
2790
|
-
}
|
|
2791
|
-
|
|
2792
3151
|
/** @returns {CustomFieldTypeSchema} */
|
|
2793
3152
|
static CustomFieldTypeSchema() {
|
|
2794
3153
|
return Joi.object({
|
|
@@ -2810,23 +3169,6 @@ class ContentPlatformModel {
|
|
|
2810
3169
|
});
|
|
2811
3170
|
}
|
|
2812
3171
|
|
|
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
3172
|
/** @returns {SupportedValidationsSchema} */
|
|
2831
3173
|
static SupportedValidationsSchema() {
|
|
2832
3174
|
return Joi.object({
|
|
@@ -2834,7 +3176,6 @@ class ContentPlatformModel {
|
|
|
2834
3176
|
type: Joi.string().allow(""),
|
|
2835
3177
|
display: Joi.string().allow(""),
|
|
2836
3178
|
required: Joi.boolean(),
|
|
2837
|
-
meta: ContentPlatformModel.SupportedValidationsMetaSchema(),
|
|
2838
3179
|
});
|
|
2839
3180
|
}
|
|
2840
3181
|
|
|
@@ -3028,13 +3369,14 @@ class ContentPlatformModel {
|
|
|
3028
3369
|
supported_validations: Joi.array().items(
|
|
3029
3370
|
ContentPlatformModel.SupportedValidationsSchema()
|
|
3030
3371
|
),
|
|
3372
|
+
scope: Joi.array().items(Joi.string().allow("")),
|
|
3031
3373
|
});
|
|
3032
3374
|
}
|
|
3033
3375
|
|
|
3034
3376
|
/** @returns {CustomObjectEntry} */
|
|
3035
3377
|
static CustomObjectEntry() {
|
|
3036
3378
|
return Joi.object({
|
|
3037
|
-
|
|
3379
|
+
_id: Joi.string().allow(""),
|
|
3038
3380
|
name: Joi.string().allow(""),
|
|
3039
3381
|
type: Joi.string().allow(""),
|
|
3040
3382
|
updated_at: Joi.string().allow(""),
|
|
@@ -3054,16 +3396,7 @@ class ContentPlatformModel {
|
|
|
3054
3396
|
/** @returns {CustomObjectEntryFieldSchema} */
|
|
3055
3397
|
static CustomObjectEntryFieldSchema() {
|
|
3056
3398
|
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(),
|
|
3399
|
+
definition_id: Joi.string().allow(""),
|
|
3067
3400
|
});
|
|
3068
3401
|
}
|
|
3069
3402
|
|
|
@@ -3072,22 +3405,13 @@ class ContentPlatformModel {
|
|
|
3072
3405
|
return Joi.object({
|
|
3073
3406
|
status: Joi.string().allow(""),
|
|
3074
3407
|
slug: Joi.string().allow(""),
|
|
3408
|
+
definition_id: Joi.string().allow(""),
|
|
3075
3409
|
fields: Joi.array().items(
|
|
3076
3410
|
ContentPlatformModel.CustomObjectEntryFieldSchema()
|
|
3077
3411
|
),
|
|
3078
3412
|
});
|
|
3079
3413
|
}
|
|
3080
3414
|
|
|
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
3415
|
/** @returns {CustomObjectBulkSchema} */
|
|
3092
3416
|
static CustomObjectBulkSchema() {
|
|
3093
3417
|
return Joi.object({
|
|
@@ -3112,19 +3436,6 @@ class ContentPlatformModel {
|
|
|
3112
3436
|
});
|
|
3113
3437
|
}
|
|
3114
3438
|
|
|
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
3439
|
/**
|
|
3129
3440
|
* Enum: PageType Used By: Content
|
|
3130
3441
|
*
|