@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-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 +53 -60
- package/sdk/application/Cart/CartApplicationClient.js +53 -130
- package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
- package/sdk/application/Cart/CartApplicationModel.js +159 -380
- package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
- package/sdk/application/Cart/CartApplicationValidator.js +18 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
- package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
- package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
- package/sdk/application/Common/CommonApplicationClient.js +5 -6
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
- package/sdk/application/Content/ContentApplicationClient.js +75 -54
- package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
- package/sdk/application/Content/ContentApplicationModel.js +32 -83
- package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
- package/sdk/application/Content/ContentApplicationValidator.js +10 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
- package/sdk/application/Lead/LeadApplicationClient.js +3 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
- package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
- package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
- package/sdk/application/Order/OrderApplicationClient.js +13 -96
- package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
- package/sdk/application/Order/OrderApplicationModel.js +81 -279
- package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
- package/sdk/application/Order/OrderApplicationValidator.js +2 -15
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
- package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
- package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
- package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
- package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +0 -1
- package/sdk/application/index.js +0 -2
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1304 -4979
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- 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 +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -15
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
- package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
- package/sdk/platform/Order/OrderPlatformClient.js +245 -597
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
- package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
- 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 +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- 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 +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +341 -602
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +284 -483
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +5 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
|
@@ -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]
|
|
@@ -184,7 +178,7 @@ const Joi = require("joi");
|
|
|
184
178
|
*/
|
|
185
179
|
|
|
186
180
|
/**
|
|
187
|
-
* @typedef
|
|
181
|
+
* @typedef BlogGetResponse
|
|
188
182
|
* @property {BlogSchema[]} [items]
|
|
189
183
|
* @property {Page} [page]
|
|
190
184
|
* @property {BlogFilters} [filters]
|
|
@@ -282,7 +276,7 @@ const Joi = require("joi");
|
|
|
282
276
|
*/
|
|
283
277
|
|
|
284
278
|
/**
|
|
285
|
-
* @typedef
|
|
279
|
+
* @typedef BlogRequest
|
|
286
280
|
* @property {string} [application]
|
|
287
281
|
* @property {Object} [_custom_json]
|
|
288
282
|
* @property {Author} [author]
|
|
@@ -451,7 +445,7 @@ const Joi = require("joi");
|
|
|
451
445
|
*/
|
|
452
446
|
|
|
453
447
|
/**
|
|
454
|
-
* @typedef
|
|
448
|
+
* @typedef TagDeleteSuccessResponse
|
|
455
449
|
* @property {boolean} [success]
|
|
456
450
|
*/
|
|
457
451
|
|
|
@@ -582,7 +576,7 @@ const Joi = require("joi");
|
|
|
582
576
|
*/
|
|
583
577
|
|
|
584
578
|
/**
|
|
585
|
-
* @typedef
|
|
579
|
+
* @typedef LandingPageGetResponse
|
|
586
580
|
* @property {LandingPageSchema[]} [items]
|
|
587
581
|
* @property {Page} [page]
|
|
588
582
|
*/
|
|
@@ -601,12 +595,12 @@ const Joi = require("joi");
|
|
|
601
595
|
*/
|
|
602
596
|
|
|
603
597
|
/**
|
|
604
|
-
* @typedef
|
|
598
|
+
* @typedef DefaultNavigationResponse
|
|
605
599
|
* @property {NavigationSchema[]} [items]
|
|
606
600
|
*/
|
|
607
601
|
|
|
608
602
|
/**
|
|
609
|
-
* @typedef
|
|
603
|
+
* @typedef NavigationGetResponse
|
|
610
604
|
* @property {NavigationSchema[]} [items]
|
|
611
605
|
* @property {Page} [page]
|
|
612
606
|
*/
|
|
@@ -633,7 +627,7 @@ const Joi = require("joi");
|
|
|
633
627
|
*/
|
|
634
628
|
|
|
635
629
|
/**
|
|
636
|
-
* @typedef
|
|
630
|
+
* @typedef NavigationRequest
|
|
637
631
|
* @property {string} [name]
|
|
638
632
|
* @property {string} [slug]
|
|
639
633
|
* @property {string[]} [platform]
|
|
@@ -642,7 +636,7 @@ const Joi = require("joi");
|
|
|
642
636
|
*/
|
|
643
637
|
|
|
644
638
|
/**
|
|
645
|
-
* @typedef
|
|
639
|
+
* @typedef PageGetResponse
|
|
646
640
|
* @property {PageSchema[]} [items]
|
|
647
641
|
* @property {Page} [page]
|
|
648
642
|
*/
|
|
@@ -699,7 +693,7 @@ const Joi = require("joi");
|
|
|
699
693
|
*/
|
|
700
694
|
|
|
701
695
|
/**
|
|
702
|
-
* @typedef
|
|
696
|
+
* @typedef PageRequest
|
|
703
697
|
* @property {CronSchedule} [_schedule]
|
|
704
698
|
* @property {string} [application]
|
|
705
699
|
* @property {Author} [author]
|
|
@@ -724,7 +718,7 @@ const Joi = require("joi");
|
|
|
724
718
|
*/
|
|
725
719
|
|
|
726
720
|
/**
|
|
727
|
-
* @typedef
|
|
721
|
+
* @typedef PagePublishRequest
|
|
728
722
|
* @property {boolean} [publish]
|
|
729
723
|
*/
|
|
730
724
|
|
|
@@ -736,7 +730,7 @@ const Joi = require("joi");
|
|
|
736
730
|
*/
|
|
737
731
|
|
|
738
732
|
/**
|
|
739
|
-
* @typedef
|
|
733
|
+
* @typedef SlideshowGetResponse
|
|
740
734
|
* @property {SlideshowSchema[]} [items]
|
|
741
735
|
* @property {Page} [page]
|
|
742
736
|
*/
|
|
@@ -756,7 +750,7 @@ const Joi = require("joi");
|
|
|
756
750
|
*/
|
|
757
751
|
|
|
758
752
|
/**
|
|
759
|
-
* @typedef
|
|
753
|
+
* @typedef SlideshowRequest
|
|
760
754
|
* @property {string} [slug]
|
|
761
755
|
* @property {string} [platform]
|
|
762
756
|
* @property {ConfigurationSchema} [configuration]
|
|
@@ -847,116 +841,100 @@ const Joi = require("joi");
|
|
|
847
841
|
|
|
848
842
|
/**
|
|
849
843
|
* @typedef FieldValidations
|
|
850
|
-
* @property {string} [name]
|
|
851
|
-
* @property {string} [type]
|
|
844
|
+
* @property {string} [name]
|
|
845
|
+
* @property {string} [type]
|
|
852
846
|
* @property {Object} [value]
|
|
853
847
|
*/
|
|
854
848
|
|
|
855
849
|
/**
|
|
856
850
|
* @typedef FieldDefinitionSchema
|
|
857
|
-
* @property {string} [
|
|
858
|
-
* @property {string} [
|
|
859
|
-
* @property {string} [
|
|
860
|
-
* @property {string} [
|
|
861
|
-
* @property {string} [
|
|
862
|
-
* @property {string} [
|
|
863
|
-
* @property {string} [
|
|
864
|
-
* @property {
|
|
865
|
-
*
|
|
866
|
-
* @property {FieldValidations[]} [validations]
|
|
867
|
-
* @property {string} [company_id]
|
|
868
|
-
* @property {
|
|
869
|
-
* @property {
|
|
870
|
-
* @property {
|
|
871
|
-
* @property {
|
|
851
|
+
* @property {string} [_id]
|
|
852
|
+
* @property {string} [creator]
|
|
853
|
+
* @property {string} [resource]
|
|
854
|
+
* @property {string} [name]
|
|
855
|
+
* @property {string} [namespace]
|
|
856
|
+
* @property {string} [key]
|
|
857
|
+
* @property {string} [description]
|
|
858
|
+
* @property {string} [type]
|
|
859
|
+
* @property {boolean} [multi_value]
|
|
860
|
+
* @property {FieldValidations[]} [validations]
|
|
861
|
+
* @property {string} [company_id]
|
|
862
|
+
* @property {string} [created_by]
|
|
863
|
+
* @property {string} [updated_by]
|
|
864
|
+
* @property {boolean} [required]
|
|
865
|
+
* @property {boolean} [is_deleted]
|
|
866
|
+
* @property {string} [created_at]
|
|
867
|
+
* @property {string} [updated_at]
|
|
868
|
+
* @property {string} [type_name]
|
|
869
|
+
* @property {number} [invalid_fields_count]
|
|
872
870
|
*/
|
|
873
871
|
|
|
874
872
|
/**
|
|
875
873
|
* @typedef CustomFieldDefinitionsSchema
|
|
876
|
-
* @property {FieldDefinitionSchema[]} [items]
|
|
874
|
+
* @property {FieldDefinitionSchema[]} [items]
|
|
877
875
|
* @property {Page} [page]
|
|
878
876
|
*/
|
|
879
877
|
|
|
880
878
|
/**
|
|
881
879
|
* @typedef CustomFieldDefinitionRequestSchema
|
|
882
|
-
* @property {string} [
|
|
883
|
-
* @property {string} [
|
|
884
|
-
* @property {string} [
|
|
885
|
-
* @property {
|
|
886
|
-
*
|
|
887
|
-
* @property {string} [name]
|
|
888
|
-
* @property {string} [description]
|
|
889
|
-
* @property {FieldValidations[]} [validations]
|
|
880
|
+
* @property {string} [resource]
|
|
881
|
+
* @property {string} [type]
|
|
882
|
+
* @property {string} [key]
|
|
883
|
+
* @property {string} [namespace]
|
|
884
|
+
* @property {boolean} [multi_value]
|
|
885
|
+
* @property {string} [name]
|
|
886
|
+
* @property {string} [description]
|
|
887
|
+
* @property {FieldValidations[]} [validations]
|
|
890
888
|
*/
|
|
891
889
|
|
|
892
890
|
/**
|
|
893
891
|
* @typedef CustomObjectCustomFieldDefinitions
|
|
894
|
-
* @property {string} [id]
|
|
895
|
-
* @property {string} [type]
|
|
896
|
-
* @property {string} [description]
|
|
897
|
-
* @property {string} [name]
|
|
898
|
-
* @property {boolean} [multi_value]
|
|
899
|
-
*
|
|
900
|
-
* @property {
|
|
901
|
-
* @property {
|
|
902
|
-
* @property {FieldValidations[]} [validations] - Validations added against the
|
|
903
|
-
* custom field
|
|
892
|
+
* @property {string} [id]
|
|
893
|
+
* @property {string} [type]
|
|
894
|
+
* @property {string} [description]
|
|
895
|
+
* @property {string} [name]
|
|
896
|
+
* @property {boolean} [multi_value]
|
|
897
|
+
* @property {boolean} [required]
|
|
898
|
+
* @property {string} [key]
|
|
899
|
+
* @property {FieldValidations[]} [validations]
|
|
904
900
|
* @property {string} [action]
|
|
905
901
|
*/
|
|
906
902
|
|
|
907
903
|
/**
|
|
908
904
|
* @typedef CustomObjectDefinitionUpdateRequestSchema
|
|
909
|
-
* @property {string} [
|
|
910
|
-
* @property {string} [
|
|
911
|
-
* @property {string} [
|
|
912
|
-
*
|
|
905
|
+
* @property {string} [type]
|
|
906
|
+
* @property {string} [description]
|
|
907
|
+
* @property {string} [name]
|
|
908
|
+
* @property {string} [display_name_key]
|
|
913
909
|
* @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
|
|
914
910
|
*/
|
|
915
911
|
|
|
916
912
|
/**
|
|
917
913
|
* @typedef CustomFieldDefinitionDetailResSchema
|
|
918
|
-
* @property {string} [
|
|
919
|
-
* @property {string} [
|
|
920
|
-
* @property {string} [
|
|
921
|
-
* @property {string} [
|
|
922
|
-
* @property {string} [
|
|
923
|
-
* @property {string} [
|
|
924
|
-
* @property {
|
|
925
|
-
*
|
|
926
|
-
* @property {string} [company_id]
|
|
927
|
-
* @property {string} [application_id]
|
|
928
|
-
* @property {
|
|
929
|
-
* @property {
|
|
930
|
-
* @property {
|
|
931
|
-
* @property {
|
|
932
|
-
* @property {string} [
|
|
933
|
-
* @property {string} [updated_at] - Date time at for a field's last modification
|
|
934
|
-
*/
|
|
935
|
-
|
|
936
|
-
/**
|
|
937
|
-
* @typedef MetaFieldDefinitionDetailResSchema
|
|
938
|
-
* @property {string} [resource] - Resource to which meta field is associated
|
|
939
|
-
* @property {string} [name] - Name of meta field
|
|
940
|
-
* @property {string} [namespace] - Namespace of meta field
|
|
941
|
-
* @property {string} [slug] - Slug of meta field
|
|
942
|
-
* @property {string} [description] - Description regarding meta field
|
|
943
|
-
* @property {string} [type] - Data type of meta field
|
|
944
|
-
* @property {boolean} [multi_value] - Flag to denote whether meta field is
|
|
945
|
-
* multi valued or not
|
|
946
|
-
* @property {string} [company_id] - Company Identifer
|
|
947
|
-
* @property {string} [application_id] - Sales channel identifier
|
|
948
|
-
* @property {boolean} [required] - Whether the field is required or not
|
|
949
|
-
* @property {boolean} [is_deleted] - Is meta field deleted
|
|
950
|
-
* @property {string} [id] - Unique system generated id
|
|
914
|
+
* @property {string} [creator]
|
|
915
|
+
* @property {string} [resource]
|
|
916
|
+
* @property {string} [name]
|
|
917
|
+
* @property {string} [namespace]
|
|
918
|
+
* @property {string} [key]
|
|
919
|
+
* @property {string} [description]
|
|
920
|
+
* @property {string} [type]
|
|
921
|
+
* @property {boolean} [multi_value]
|
|
922
|
+
* @property {string} [company_id]
|
|
923
|
+
* @property {string} [application_id]
|
|
924
|
+
* @property {string} [created_by]
|
|
925
|
+
* @property {string} [updated_by]
|
|
926
|
+
* @property {boolean} [required]
|
|
927
|
+
* @property {boolean} [is_deleted]
|
|
928
|
+
* @property {string} [_id]
|
|
951
929
|
* @property {Object[]} [validations]
|
|
952
|
-
* @property {string} [created_at]
|
|
953
|
-
* @property {string} [updated_at]
|
|
930
|
+
* @property {string} [created_at]
|
|
931
|
+
* @property {string} [updated_at]
|
|
954
932
|
*/
|
|
955
933
|
|
|
956
934
|
/**
|
|
957
935
|
* @typedef CustomDataDeleteSchema
|
|
958
|
-
* @property {boolean} [success]
|
|
959
|
-
* @property {string} [message]
|
|
936
|
+
* @property {boolean} [success]
|
|
937
|
+
* @property {string} [message]
|
|
960
938
|
*/
|
|
961
939
|
|
|
962
940
|
/**
|
|
@@ -966,20 +944,23 @@ const Joi = require("joi");
|
|
|
966
944
|
|
|
967
945
|
/**
|
|
968
946
|
* @typedef CustomFieldSchema
|
|
969
|
-
* @property {string} [
|
|
970
|
-
* @property {string} [namespace]
|
|
971
|
-
* @property {string} [
|
|
972
|
-
* @property {string} [resource]
|
|
947
|
+
* @property {string} [_id]
|
|
948
|
+
* @property {string} [namespace]
|
|
949
|
+
* @property {string} [key]
|
|
950
|
+
* @property {string} [resource]
|
|
951
|
+
* @property {string} [creator]
|
|
973
952
|
* @property {CustomFieldValue[]} [value]
|
|
974
|
-
* @property {string} [
|
|
975
|
-
* @property {string} [type]
|
|
976
|
-
* @property {boolean} [multi_value]
|
|
977
|
-
* @property {string} [company_id]
|
|
953
|
+
* @property {string} [resource_id]
|
|
954
|
+
* @property {string} [type]
|
|
955
|
+
* @property {boolean} [multi_value]
|
|
956
|
+
* @property {string} [company_id]
|
|
957
|
+
* @property {string} [definition_id]
|
|
978
958
|
* @property {boolean} [has_invalid_values]
|
|
979
959
|
* @property {Object[]} [invalid_value_errors]
|
|
980
|
-
* @property {
|
|
981
|
-
* @property {
|
|
982
|
-
* @property {string} [
|
|
960
|
+
* @property {string} [created_by]
|
|
961
|
+
* @property {boolean} [is_deleted]
|
|
962
|
+
* @property {string} [created_at]
|
|
963
|
+
* @property {string} [updated_at]
|
|
983
964
|
*/
|
|
984
965
|
|
|
985
966
|
/**
|
|
@@ -988,12 +969,6 @@ const Joi = require("joi");
|
|
|
988
969
|
* @property {Page} [page]
|
|
989
970
|
*/
|
|
990
971
|
|
|
991
|
-
/**
|
|
992
|
-
* @typedef CustomFieldsDeleteSchema
|
|
993
|
-
* @property {boolean} [success]
|
|
994
|
-
* @property {string} [message]
|
|
995
|
-
*/
|
|
996
|
-
|
|
997
972
|
/**
|
|
998
973
|
* @typedef CustomFieldsResponseByResourceIdSchema
|
|
999
974
|
* @property {CustomFieldSchema[]} [items]
|
|
@@ -1002,9 +977,7 @@ const Joi = require("joi");
|
|
|
1002
977
|
/**
|
|
1003
978
|
* @typedef CustomField
|
|
1004
979
|
* @property {Object[]} [value]
|
|
1005
|
-
* @property {string} [
|
|
1006
|
-
* @property {string} [slug] - This is the slug of custom field used while
|
|
1007
|
-
* creating a custom field definition
|
|
980
|
+
* @property {string} [definition_id]
|
|
1008
981
|
*/
|
|
1009
982
|
|
|
1010
983
|
/**
|
|
@@ -1014,156 +987,161 @@ const Joi = require("joi");
|
|
|
1014
987
|
|
|
1015
988
|
/**
|
|
1016
989
|
* @typedef CustomObjectSchema
|
|
1017
|
-
* @property {string} [
|
|
1018
|
-
* @property {string} [
|
|
1019
|
-
* @property {string} [
|
|
1020
|
-
* @property {string} [
|
|
1021
|
-
* @property {string} [
|
|
1022
|
-
* @property {string} [
|
|
1023
|
-
* @property {string} [
|
|
1024
|
-
*
|
|
1025
|
-
* @property {
|
|
990
|
+
* @property {string} [_id]
|
|
991
|
+
* @property {string} [creator]
|
|
992
|
+
* @property {string} [company_id]
|
|
993
|
+
* @property {string} [application_id]
|
|
994
|
+
* @property {string} [created_by]
|
|
995
|
+
* @property {string} [updated_by]
|
|
996
|
+
* @property {string} [status]
|
|
997
|
+
* @property {string} [type]
|
|
998
|
+
* @property {string} [display_name]
|
|
999
|
+
* @property {string} [definition_id]
|
|
1000
|
+
* @property {CustomFieldSchema[]} [fields]
|
|
1026
1001
|
*/
|
|
1027
1002
|
|
|
1028
1003
|
/**
|
|
1029
1004
|
* @typedef CustomObjectDefinitionRequestSchema
|
|
1030
|
-
* @property {string} [type]
|
|
1031
|
-
* @property {string} [
|
|
1032
|
-
* @property {string} [
|
|
1033
|
-
* @property {string} [
|
|
1034
|
-
* @property {
|
|
1035
|
-
* for displaying custom object
|
|
1036
|
-
* @property {CustomObjectCustomFieldDefinitions[]} [field_definitions] - List
|
|
1037
|
-
* of custom field definitions belonging to this custom object definition
|
|
1005
|
+
* @property {string} [type]
|
|
1006
|
+
* @property {string} [description]
|
|
1007
|
+
* @property {string} [name]
|
|
1008
|
+
* @property {string} [display_name_key]
|
|
1009
|
+
* @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
|
|
1038
1010
|
*/
|
|
1039
1011
|
|
|
1040
1012
|
/**
|
|
1041
|
-
* @typedef
|
|
1042
|
-
* @property {string} [
|
|
1043
|
-
* @property {string} [
|
|
1044
|
-
* @property {string} [
|
|
1045
|
-
* @property {string} [
|
|
1046
|
-
* @property {string} [
|
|
1047
|
-
* @property {string} [description]
|
|
1048
|
-
* @property {
|
|
1049
|
-
*
|
|
1013
|
+
* @typedef CustomObjectCustomFieldDefinitionResSchema
|
|
1014
|
+
* @property {string} [creator]
|
|
1015
|
+
* @property {string} [resource]
|
|
1016
|
+
* @property {string} [name]
|
|
1017
|
+
* @property {string} [namespace]
|
|
1018
|
+
* @property {string} [key]
|
|
1019
|
+
* @property {string} [description]
|
|
1020
|
+
* @property {string} [type]
|
|
1021
|
+
* @property {boolean} [multi_value]
|
|
1022
|
+
* @property {FieldValidations[]} [validations]
|
|
1023
|
+
* @property {string} [company_id]
|
|
1024
|
+
* @property {string} [created_by]
|
|
1025
|
+
* @property {string} [metaobject_definition_id]
|
|
1026
|
+
* @property {boolean} [required]
|
|
1027
|
+
* @property {boolean} [is_deleted]
|
|
1028
|
+
* @property {string} [_id]
|
|
1029
|
+
* @property {string} [created_at]
|
|
1030
|
+
* @property {string} [updated_at]
|
|
1031
|
+
*/
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* @typedef CustomObjectDefinitionSchema
|
|
1035
|
+
* @property {string} [_id]
|
|
1036
|
+
* @property {string} [name]
|
|
1037
|
+
* @property {string} [type]
|
|
1038
|
+
* @property {string} [display_name_key]
|
|
1039
|
+
* @property {string} [description]
|
|
1040
|
+
* @property {string} [creator]
|
|
1041
|
+
* @property {string} [created_by]
|
|
1042
|
+
* @property {string} [updated_by]
|
|
1043
|
+
* @property {CustomObjectCustomFieldDefinitionResSchema[]} [field_definitions]
|
|
1050
1044
|
*/
|
|
1051
1045
|
|
|
1052
1046
|
/**
|
|
1053
1047
|
* @typedef CustomObjectDefinitionDeleteResponseSchema
|
|
1054
|
-
* @property {boolean} [success]
|
|
1055
|
-
* @property {string} [message]
|
|
1056
|
-
* is deleted.
|
|
1048
|
+
* @property {boolean} [success]
|
|
1049
|
+
* @property {string} [message]
|
|
1057
1050
|
*/
|
|
1058
1051
|
|
|
1059
1052
|
/**
|
|
1060
|
-
* @typedef
|
|
1061
|
-
* @property {string} [url]
|
|
1062
|
-
* @property {number} [total_records]
|
|
1053
|
+
* @typedef CustomObjectEntryBulkUploadResponse
|
|
1054
|
+
* @property {string} [url]
|
|
1055
|
+
* @property {number} [total_records]
|
|
1063
1056
|
*/
|
|
1064
1057
|
|
|
1065
1058
|
/**
|
|
1066
|
-
* @typedef
|
|
1067
|
-
* @property {string} [
|
|
1068
|
-
* @property {string} [name]
|
|
1069
|
-
* @property {string} [type]
|
|
1059
|
+
* @typedef CustomObjectListItemDefinationSchema
|
|
1060
|
+
* @property {string} [_id]
|
|
1061
|
+
* @property {string} [name]
|
|
1062
|
+
* @property {string} [type]
|
|
1070
1063
|
*/
|
|
1071
1064
|
|
|
1072
1065
|
/**
|
|
1073
1066
|
* @typedef CustomObjectListItemSchema
|
|
1074
|
-
* @property {string} [
|
|
1075
|
-
* @property {string} [
|
|
1076
|
-
* @property {string} [
|
|
1077
|
-
* @property {string} [updated_at]
|
|
1078
|
-
* @property {string} [display_name]
|
|
1079
|
-
* @property {
|
|
1080
|
-
* @property {number} [references]
|
|
1067
|
+
* @property {string} [_id]
|
|
1068
|
+
* @property {string} [definition_id]
|
|
1069
|
+
* @property {string} [status]
|
|
1070
|
+
* @property {string} [updated_at]
|
|
1071
|
+
* @property {string} [display_name]
|
|
1072
|
+
* @property {CustomObjectListItemDefinationSchema} [definition]
|
|
1073
|
+
* @property {number} [references]
|
|
1081
1074
|
*/
|
|
1082
1075
|
|
|
1083
1076
|
/**
|
|
1084
1077
|
* @typedef CustomObjectsSchema
|
|
1085
|
-
* @property {CustomObjectListItemSchema[]} [items]
|
|
1086
|
-
* object entries
|
|
1078
|
+
* @property {CustomObjectListItemSchema[]} [items]
|
|
1087
1079
|
* @property {Page} [page]
|
|
1088
1080
|
*/
|
|
1089
1081
|
|
|
1090
1082
|
/**
|
|
1091
|
-
* @typedef
|
|
1092
|
-
* @property {string} [
|
|
1093
|
-
* @property {string} [
|
|
1094
|
-
* @property {
|
|
1095
|
-
* @property {
|
|
1096
|
-
* @property {string} [
|
|
1083
|
+
* @typedef CustomObjectFieldSchema
|
|
1084
|
+
* @property {string} [_id]
|
|
1085
|
+
* @property {string} [key]
|
|
1086
|
+
* @property {Object[]} [value]
|
|
1087
|
+
* @property {string} [type]
|
|
1088
|
+
* @property {string} [definition_id]
|
|
1097
1089
|
*/
|
|
1098
1090
|
|
|
1099
1091
|
/**
|
|
1100
|
-
* @typedef
|
|
1101
|
-
* @property {string} [
|
|
1102
|
-
* @property {string} [status]
|
|
1103
|
-
* @property {string} [display_name]
|
|
1104
|
-
* @property {
|
|
1105
|
-
* @property {Object[]} [references]
|
|
1106
|
-
*
|
|
1107
|
-
* @property {string} [slug] - Slug of custom object entry
|
|
1108
|
-
* @property {string} [definition_slug] - Slug of custom object definition
|
|
1109
|
-
* @property {CustomObjectFieldDefinition[]} [fields] - List of custom fields
|
|
1110
|
-
* inside the custom object
|
|
1092
|
+
* @typedef CustomObjectByIdSchema
|
|
1093
|
+
* @property {string} [_id]
|
|
1094
|
+
* @property {string} [status]
|
|
1095
|
+
* @property {string} [display_name]
|
|
1096
|
+
* @property {CustomObjectListItemDefinationSchema} [definition]
|
|
1097
|
+
* @property {Object[]} [references]
|
|
1098
|
+
* @property {CustomObjectFieldSchema[]} [fields]
|
|
1111
1099
|
*/
|
|
1112
1100
|
|
|
1113
1101
|
/**
|
|
1114
1102
|
* @typedef CustomObjectBulkEntryInitiateDownload
|
|
1115
|
-
* @property {string} [message]
|
|
1116
|
-
* @property {string} [task_id]
|
|
1103
|
+
* @property {string} [message]
|
|
1104
|
+
* @property {string} [task_id]
|
|
1117
1105
|
*/
|
|
1118
1106
|
|
|
1119
1107
|
/**
|
|
1120
1108
|
* @typedef CustomObjectMetaSchema
|
|
1121
|
-
* @property {number} [mo_total_count]
|
|
1122
|
-
* @property {number} [mo_success_count]
|
|
1123
|
-
* @property {number} [mo_error_count]
|
|
1124
|
-
* @property {string} [mo_defintion_type]
|
|
1125
|
-
*/
|
|
1126
|
-
|
|
1127
|
-
/**
|
|
1128
|
-
* @typedef JobSchema
|
|
1129
|
-
* @property {string} [id] - Unique system generated id
|
|
1130
|
-
* @property {string[]} [jobs] - List of total jobs
|
|
1131
|
-
* @property {string[]} [finished_jobs] - List of finished jobs
|
|
1132
|
-
* @property {string[]} [error_jobs] - List of jobs which resulted in an error
|
|
1133
|
-
* @property {string[]} [errors_occured] - List of errors occurred in the job
|
|
1134
|
-
* @property {string} [company_id] - Company Identifer
|
|
1135
|
-
* @property {string} [status] - Status of job
|
|
1136
|
-
* @property {string} [action_type] - Type of job
|
|
1137
|
-
* @property {string} [entity] - Entity against which job is running
|
|
1138
|
-
* @property {string} [error_url] - URL which contains the file with errors
|
|
1139
|
-
* @property {number} [finished_count] - Number of items successfully finished
|
|
1140
|
-
* @property {number} [error_count] - Number of items in error
|
|
1141
|
-
* @property {number} [success_count] - Number of successful items
|
|
1142
|
-
* @property {number} [total_jobs] - Total number of jobs
|
|
1143
|
-
* @property {CustomObjectMetaSchema} [meta]
|
|
1144
|
-
* @property {string} [created_by] - Source from where the bulk job is created
|
|
1145
|
-
* @property {string} [created_at] - Date/Time when the job was created
|
|
1146
|
-
* @property {string} [updated_at] - Date/Time when the job was updated
|
|
1147
|
-
* @property {string} [application_id] - Sales Channel Identifier
|
|
1109
|
+
* @property {number} [mo_total_count]
|
|
1110
|
+
* @property {number} [mo_success_count]
|
|
1111
|
+
* @property {number} [mo_error_count]
|
|
1112
|
+
* @property {string} [mo_defintion_type]
|
|
1148
1113
|
*/
|
|
1149
1114
|
|
|
1150
1115
|
/**
|
|
1151
|
-
* @typedef
|
|
1152
|
-
* @property {
|
|
1153
|
-
* @property {
|
|
1116
|
+
* @typedef CustomObjectJobSchema
|
|
1117
|
+
* @property {string} [_id]
|
|
1118
|
+
* @property {string[]} [jobs]
|
|
1119
|
+
* @property {string[]} [finished_jobs]
|
|
1120
|
+
* @property {string[]} [error_jobs]
|
|
1121
|
+
* @property {string[]} [errors_occured]
|
|
1122
|
+
* @property {string} [company_id]
|
|
1123
|
+
* @property {string} [creator]
|
|
1124
|
+
* @property {string} [url]
|
|
1125
|
+
* @property {string} [status]
|
|
1126
|
+
* @property {string} [action_type]
|
|
1127
|
+
* @property {string} [entity]
|
|
1128
|
+
* @property {string} [error_url]
|
|
1129
|
+
* @property {number} [finished_count]
|
|
1130
|
+
* @property {number} [error_count]
|
|
1131
|
+
* @property {number} [success_count]
|
|
1132
|
+
* @property {number} [total_jobs]
|
|
1133
|
+
* @property {CustomObjectMetaSchema} [meta]
|
|
1134
|
+
* @property {string} [created_by]
|
|
1135
|
+
* @property {string} [created_at]
|
|
1136
|
+
* @property {string} [updated_at]
|
|
1154
1137
|
*/
|
|
1155
1138
|
|
|
1156
1139
|
/**
|
|
1157
1140
|
* @typedef CustomObjectBulkEntry
|
|
1158
|
-
* @property {
|
|
1141
|
+
* @property {CustomObjectJobSchema[]} [items]
|
|
1159
1142
|
* @property {Page} [page]
|
|
1160
1143
|
*/
|
|
1161
1144
|
|
|
1162
|
-
/**
|
|
1163
|
-
* @typedef MetafieldTypesSchema
|
|
1164
|
-
* @property {CustomFieldTypeSchema} [metafield_types]
|
|
1165
|
-
*/
|
|
1166
|
-
|
|
1167
1145
|
/**
|
|
1168
1146
|
* @typedef CustomFieldTypeSchema
|
|
1169
1147
|
* @property {StringSingleLine} [string_single_line]
|
|
@@ -1179,8 +1157,6 @@ const Joi = require("joi");
|
|
|
1179
1157
|
* @property {Url} [url]
|
|
1180
1158
|
* @property {Metaobject} [metaobject]
|
|
1181
1159
|
* @property {Product} [product]
|
|
1182
|
-
* @property {HTML} [html]
|
|
1183
|
-
* @property {Duration} [duration]
|
|
1184
1160
|
*/
|
|
1185
1161
|
|
|
1186
1162
|
/**
|
|
@@ -1203,164 +1179,130 @@ const Joi = require("joi");
|
|
|
1203
1179
|
* @property {SupportedValidationsMetaSchema} [meta]
|
|
1204
1180
|
*/
|
|
1205
1181
|
|
|
1206
|
-
/**
|
|
1207
|
-
* @typedef Duration
|
|
1208
|
-
* @property {string} [name] - Name data type of custom field
|
|
1209
|
-
* @property {boolean} [list_enabled] - Flag for listing enabled or not
|
|
1210
|
-
* @property {string} [type] - Type of custom field
|
|
1211
|
-
* @property {string} [category] - Category of custom field
|
|
1212
|
-
* @property {SupportedValidationsSchema[]} [supported_validations] - List of
|
|
1213
|
-
* validations available for the field
|
|
1214
|
-
*/
|
|
1215
|
-
|
|
1216
|
-
/**
|
|
1217
|
-
* @typedef HTML
|
|
1218
|
-
* @property {string} [name] - Name data type of custom field
|
|
1219
|
-
* @property {boolean} [list_enabled] - Flag for listing enabled or not
|
|
1220
|
-
* @property {string} [type] - Type of custom field
|
|
1221
|
-
* @property {SupportedValidationsSchema[]} [supported_validations] - List of
|
|
1222
|
-
* validations available for the field
|
|
1223
|
-
*/
|
|
1224
|
-
|
|
1225
1182
|
/**
|
|
1226
1183
|
* @typedef StringSingleLine
|
|
1227
|
-
* @property {string} [name]
|
|
1228
|
-
* @property {boolean} [list_enabled]
|
|
1229
|
-
* @property {string} [category]
|
|
1230
|
-
* @property {string} [type]
|
|
1231
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1232
|
-
* validations available for the field
|
|
1184
|
+
* @property {string} [name]
|
|
1185
|
+
* @property {boolean} [list_enabled]
|
|
1186
|
+
* @property {string} [category]
|
|
1187
|
+
* @property {string} [type]
|
|
1188
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1233
1189
|
*/
|
|
1234
1190
|
|
|
1235
1191
|
/**
|
|
1236
1192
|
* @typedef StringMultiLine
|
|
1237
|
-
* @property {string} [name]
|
|
1238
|
-
* @property {boolean} [list_enabled]
|
|
1239
|
-
* @property {string} [category]
|
|
1240
|
-
* @property {string} [type]
|
|
1241
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1242
|
-
* validations available for the field
|
|
1193
|
+
* @property {string} [name]
|
|
1194
|
+
* @property {boolean} [list_enabled]
|
|
1195
|
+
* @property {string} [category]
|
|
1196
|
+
* @property {string} [type]
|
|
1197
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1243
1198
|
*/
|
|
1244
1199
|
|
|
1245
1200
|
/**
|
|
1246
1201
|
* @typedef Dropdown
|
|
1247
|
-
* @property {string} [name]
|
|
1248
|
-
* @property {boolean} [list_enabled]
|
|
1249
|
-
* @property {string} [category]
|
|
1250
|
-
* @property {string} [type]
|
|
1251
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1252
|
-
* validations available for the field
|
|
1202
|
+
* @property {string} [name]
|
|
1203
|
+
* @property {boolean} [list_enabled]
|
|
1204
|
+
* @property {string} [category]
|
|
1205
|
+
* @property {string} [type]
|
|
1206
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1253
1207
|
*/
|
|
1254
1208
|
|
|
1255
1209
|
/**
|
|
1256
1210
|
* @typedef Integer
|
|
1257
|
-
* @property {string} [name]
|
|
1258
|
-
* @property {boolean} [list_enabled]
|
|
1259
|
-
* @property {string} [type]
|
|
1260
|
-
* @property {string} [category]
|
|
1261
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1262
|
-
* validations available for the field
|
|
1211
|
+
* @property {string} [name]
|
|
1212
|
+
* @property {boolean} [list_enabled]
|
|
1213
|
+
* @property {string} [type]
|
|
1214
|
+
* @property {string} [category]
|
|
1215
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1263
1216
|
*/
|
|
1264
1217
|
|
|
1265
1218
|
/**
|
|
1266
1219
|
* @typedef FloatType
|
|
1267
|
-
* @property {string} [name]
|
|
1268
|
-
* @property {boolean} [list_enabled]
|
|
1269
|
-
* @property {string} [type]
|
|
1270
|
-
* @property {string} [category]
|
|
1271
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1272
|
-
* validations available for the field
|
|
1220
|
+
* @property {string} [name]
|
|
1221
|
+
* @property {boolean} [list_enabled]
|
|
1222
|
+
* @property {string} [type]
|
|
1223
|
+
* @property {string} [category]
|
|
1224
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1273
1225
|
*/
|
|
1274
1226
|
|
|
1275
1227
|
/**
|
|
1276
1228
|
* @typedef BooleanType
|
|
1277
|
-
* @property {string} [name]
|
|
1278
|
-
* @property {string} [category]
|
|
1279
|
-
* @property {boolean} [list_enabled]
|
|
1280
|
-
* @property {string} [type]
|
|
1281
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1282
|
-
* validations available for the field
|
|
1229
|
+
* @property {string} [name]
|
|
1230
|
+
* @property {string} [category]
|
|
1231
|
+
* @property {boolean} [list_enabled]
|
|
1232
|
+
* @property {string} [type]
|
|
1233
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1283
1234
|
*/
|
|
1284
1235
|
|
|
1285
1236
|
/**
|
|
1286
1237
|
* @typedef Date
|
|
1287
|
-
* @property {string} [name]
|
|
1288
|
-
* @property {boolean} [list_enabled]
|
|
1289
|
-
* @property {string} [category]
|
|
1290
|
-
* @property {string} [type]
|
|
1291
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1292
|
-
* validations available for the field
|
|
1238
|
+
* @property {string} [name]
|
|
1239
|
+
* @property {boolean} [list_enabled]
|
|
1240
|
+
* @property {string} [category]
|
|
1241
|
+
* @property {string} [type]
|
|
1242
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1293
1243
|
*/
|
|
1294
1244
|
|
|
1295
1245
|
/**
|
|
1296
1246
|
* @typedef Datetime
|
|
1297
|
-
* @property {string} [name]
|
|
1298
|
-
* @property {string} [category]
|
|
1299
|
-
* @property {boolean} [list_enabled]
|
|
1300
|
-
* @property {string} [type]
|
|
1301
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1302
|
-
* validations available for the field
|
|
1247
|
+
* @property {string} [name]
|
|
1248
|
+
* @property {string} [category]
|
|
1249
|
+
* @property {boolean} [list_enabled]
|
|
1250
|
+
* @property {string} [type]
|
|
1251
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1303
1252
|
*/
|
|
1304
1253
|
|
|
1305
1254
|
/**
|
|
1306
1255
|
* @typedef Json
|
|
1307
|
-
* @property {string} [name]
|
|
1308
|
-
* @property {boolean} [list_enabled]
|
|
1309
|
-
* @property {string} [category]
|
|
1310
|
-
* @property {string} [type]
|
|
1311
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1312
|
-
* validations available for the field
|
|
1256
|
+
* @property {string} [name]
|
|
1257
|
+
* @property {boolean} [list_enabled]
|
|
1258
|
+
* @property {string} [category]
|
|
1259
|
+
* @property {string} [type]
|
|
1260
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1313
1261
|
*/
|
|
1314
1262
|
|
|
1315
1263
|
/**
|
|
1316
1264
|
* @typedef File
|
|
1317
|
-
* @property {string} [name]
|
|
1318
|
-
* @property {string} [category]
|
|
1319
|
-
* @property {boolean} [list_enabled]
|
|
1320
|
-
* @property {string} [type]
|
|
1265
|
+
* @property {string} [name]
|
|
1266
|
+
* @property {string} [category]
|
|
1267
|
+
* @property {boolean} [list_enabled]
|
|
1268
|
+
* @property {string} [type]
|
|
1321
1269
|
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1322
1270
|
*/
|
|
1323
1271
|
|
|
1324
1272
|
/**
|
|
1325
1273
|
* @typedef Url
|
|
1326
|
-
* @property {string} [name]
|
|
1327
|
-
* @property {boolean} [list_enabled]
|
|
1328
|
-
* @property {string} [type]
|
|
1329
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1330
|
-
* validations available for the field
|
|
1274
|
+
* @property {string} [name]
|
|
1275
|
+
* @property {boolean} [list_enabled]
|
|
1276
|
+
* @property {string} [type]
|
|
1277
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1331
1278
|
*/
|
|
1332
1279
|
|
|
1333
1280
|
/**
|
|
1334
1281
|
* @typedef Metaobject
|
|
1335
|
-
* @property {string} [name]
|
|
1336
|
-
* @property {boolean} [list_enabled]
|
|
1337
|
-
*
|
|
1338
|
-
* @property {string} [
|
|
1339
|
-
* Custom Object belongs to
|
|
1340
|
-
* @property {string} [type] - Type of Custom Object Definition
|
|
1282
|
+
* @property {string} [name]
|
|
1283
|
+
* @property {boolean} [list_enabled]
|
|
1284
|
+
* @property {string} [category]
|
|
1285
|
+
* @property {string} [type]
|
|
1341
1286
|
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1342
1287
|
*/
|
|
1343
1288
|
|
|
1344
1289
|
/**
|
|
1345
1290
|
* @typedef Product
|
|
1346
|
-
* @property {string} [name]
|
|
1347
|
-
* @property {boolean} [list_enabled]
|
|
1348
|
-
*
|
|
1349
|
-
* @property {string} [
|
|
1350
|
-
* Product is associated with
|
|
1351
|
-
* @property {string} [type] - Custom Object Definition that Product is associated with
|
|
1291
|
+
* @property {string} [name]
|
|
1292
|
+
* @property {boolean} [list_enabled]
|
|
1293
|
+
* @property {string} [category]
|
|
1294
|
+
* @property {string} [type]
|
|
1352
1295
|
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1353
1296
|
*/
|
|
1354
1297
|
|
|
1355
1298
|
/**
|
|
1356
1299
|
* @typedef CustomObjectEntry
|
|
1357
|
-
* @property {string} [
|
|
1358
|
-
* @property {string} [name]
|
|
1359
|
-
* @property {string} [type]
|
|
1360
|
-
* @property {string} [updated_at]
|
|
1361
|
-
* @property {number} [entries_count]
|
|
1362
|
-
*
|
|
1363
|
-
* @property {number} [fields_count] - Number of fields against a Custom Object definition
|
|
1300
|
+
* @property {string} [_id]
|
|
1301
|
+
* @property {string} [name]
|
|
1302
|
+
* @property {string} [type]
|
|
1303
|
+
* @property {string} [updated_at]
|
|
1304
|
+
* @property {number} [entries_count]
|
|
1305
|
+
* @property {number} [fields_count]
|
|
1364
1306
|
*/
|
|
1365
1307
|
|
|
1366
1308
|
/**
|
|
@@ -1371,33 +1313,21 @@ const Joi = require("joi");
|
|
|
1371
1313
|
|
|
1372
1314
|
/**
|
|
1373
1315
|
* @typedef CustomObjectEntryFieldSchema
|
|
1374
|
-
* @property {string} [
|
|
1375
|
-
* @property {
|
|
1376
|
-
*/
|
|
1377
|
-
|
|
1378
|
-
/**
|
|
1379
|
-
* @typedef CustomObjectEntryFieldSchemaWithoutID
|
|
1380
|
-
* @property {string} [slug] - Custom fields belonging to a custom object
|
|
1381
|
-
* @property {Object} [value] - Value of custom field inside a custom object
|
|
1316
|
+
* @property {string} [definition_id]
|
|
1317
|
+
* @property {Object[]} [value]
|
|
1382
1318
|
*/
|
|
1383
1319
|
|
|
1384
1320
|
/**
|
|
1385
1321
|
* @typedef CustomObjectRequestSchema
|
|
1386
|
-
* @property {string} [status]
|
|
1387
|
-
* @property {string} [
|
|
1388
|
-
* @property {CustomObjectEntryFieldSchema[]} [fields]
|
|
1389
|
-
*/
|
|
1390
|
-
|
|
1391
|
-
/**
|
|
1392
|
-
* @typedef CustomObjectRequestSchemaWithoutId
|
|
1393
|
-
* @property {string} [status] - Status of the custom object entry.
|
|
1394
|
-
* @property {CustomObjectEntryFieldSchemaWithoutID[]} [fields] - List of custom fields
|
|
1322
|
+
* @property {string} [status]
|
|
1323
|
+
* @property {string} [definition_id]
|
|
1324
|
+
* @property {CustomObjectEntryFieldSchema[]} [fields]
|
|
1395
1325
|
*/
|
|
1396
1326
|
|
|
1397
1327
|
/**
|
|
1398
1328
|
* @typedef CustomObjectBulkSchema
|
|
1399
|
-
* @property {string} [url]
|
|
1400
|
-
* @property {number} [total_records]
|
|
1329
|
+
* @property {string} [url]
|
|
1330
|
+
* @property {number} [total_records]
|
|
1401
1331
|
*/
|
|
1402
1332
|
|
|
1403
1333
|
/**
|
|
@@ -1462,14 +1392,6 @@ const Joi = require("joi");
|
|
|
1462
1392
|
*/
|
|
1463
1393
|
|
|
1464
1394
|
class ContentPlatformModel {
|
|
1465
|
-
/** @returns {ValidationError} */
|
|
1466
|
-
static ValidationError() {
|
|
1467
|
-
return Joi.object({
|
|
1468
|
-
message: Joi.string().allow("").required(),
|
|
1469
|
-
field: Joi.string().allow("").required(),
|
|
1470
|
-
});
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
1395
|
/** @returns {GenerateSEOContent} */
|
|
1474
1396
|
static GenerateSEOContent() {
|
|
1475
1397
|
return Joi.object({
|
|
@@ -1691,8 +1613,8 @@ class ContentPlatformModel {
|
|
|
1691
1613
|
});
|
|
1692
1614
|
}
|
|
1693
1615
|
|
|
1694
|
-
/** @returns {
|
|
1695
|
-
static
|
|
1616
|
+
/** @returns {BlogGetResponse} */
|
|
1617
|
+
static BlogGetResponse() {
|
|
1696
1618
|
return Joi.object({
|
|
1697
1619
|
items: Joi.array().items(ContentPlatformModel.BlogSchema()),
|
|
1698
1620
|
page: ContentPlatformModel.Page(),
|
|
@@ -1737,7 +1659,7 @@ class ContentPlatformModel {
|
|
|
1737
1659
|
static BlogSchema() {
|
|
1738
1660
|
return Joi.object({
|
|
1739
1661
|
_id: Joi.string().allow(""),
|
|
1740
|
-
_custom_json: Joi.
|
|
1662
|
+
_custom_json: Joi.any(),
|
|
1741
1663
|
application: Joi.string().allow(""),
|
|
1742
1664
|
archived: Joi.boolean(),
|
|
1743
1665
|
author: ContentPlatformModel.Author(),
|
|
@@ -1815,11 +1737,11 @@ class ContentPlatformModel {
|
|
|
1815
1737
|
});
|
|
1816
1738
|
}
|
|
1817
1739
|
|
|
1818
|
-
/** @returns {
|
|
1819
|
-
static
|
|
1740
|
+
/** @returns {BlogRequest} */
|
|
1741
|
+
static BlogRequest() {
|
|
1820
1742
|
return Joi.object({
|
|
1821
1743
|
application: Joi.string().allow(""),
|
|
1822
|
-
_custom_json: Joi.
|
|
1744
|
+
_custom_json: Joi.any(),
|
|
1823
1745
|
author: ContentPlatformModel.Author(),
|
|
1824
1746
|
content: Joi.array().items(ContentPlatformModel.ResourceContent()),
|
|
1825
1747
|
feature_image: ContentPlatformModel.Asset(),
|
|
@@ -1957,7 +1879,7 @@ class ContentPlatformModel {
|
|
|
1957
1879
|
static HandpickedTagSchema() {
|
|
1958
1880
|
return Joi.object({
|
|
1959
1881
|
position: Joi.string().allow(""),
|
|
1960
|
-
attributes: Joi.
|
|
1882
|
+
attributes: Joi.any(),
|
|
1961
1883
|
name: Joi.string().allow(""),
|
|
1962
1884
|
url: Joi.string().allow(""),
|
|
1963
1885
|
type: Joi.string().allow(""),
|
|
@@ -1982,7 +1904,7 @@ class ContentPlatformModel {
|
|
|
1982
1904
|
type: Joi.string().allow(""),
|
|
1983
1905
|
url: Joi.string().allow(""),
|
|
1984
1906
|
position: Joi.string().allow(""),
|
|
1985
|
-
attributes: Joi.
|
|
1907
|
+
attributes: Joi.any(),
|
|
1986
1908
|
pages: Joi.array().items(Joi.any()),
|
|
1987
1909
|
content: Joi.string().allow(""),
|
|
1988
1910
|
});
|
|
@@ -2024,8 +1946,8 @@ class ContentPlatformModel {
|
|
|
2024
1946
|
});
|
|
2025
1947
|
}
|
|
2026
1948
|
|
|
2027
|
-
/** @returns {
|
|
2028
|
-
static
|
|
1949
|
+
/** @returns {TagDeleteSuccessResponse} */
|
|
1950
|
+
static TagDeleteSuccessResponse() {
|
|
2029
1951
|
return Joi.object({
|
|
2030
1952
|
success: Joi.boolean(),
|
|
2031
1953
|
});
|
|
@@ -2041,7 +1963,7 @@ class ContentPlatformModel {
|
|
|
2041
1963
|
info: Joi.string().allow(""),
|
|
2042
1964
|
request_id: Joi.string().allow(""),
|
|
2043
1965
|
stack_trace: Joi.string().allow(""),
|
|
2044
|
-
meta: Joi.
|
|
1966
|
+
meta: Joi.any(),
|
|
2045
1967
|
});
|
|
2046
1968
|
}
|
|
2047
1969
|
|
|
@@ -2063,7 +1985,7 @@ class ContentPlatformModel {
|
|
|
2063
1985
|
slug: Joi.string().allow(""),
|
|
2064
1986
|
application: Joi.string().allow(""),
|
|
2065
1987
|
icon_url: Joi.string().allow(""),
|
|
2066
|
-
_custom_json: Joi.
|
|
1988
|
+
_custom_json: Joi.any(),
|
|
2067
1989
|
});
|
|
2068
1990
|
}
|
|
2069
1991
|
|
|
@@ -2097,7 +2019,7 @@ class ContentPlatformModel {
|
|
|
2097
2019
|
slug: Joi.string().allow(""),
|
|
2098
2020
|
application: Joi.string().allow(""),
|
|
2099
2021
|
icon_url: Joi.string().allow(""),
|
|
2100
|
-
_custom_json: Joi.
|
|
2022
|
+
_custom_json: Joi.any(),
|
|
2101
2023
|
});
|
|
2102
2024
|
}
|
|
2103
2025
|
|
|
@@ -2191,8 +2113,8 @@ class ContentPlatformModel {
|
|
|
2191
2113
|
});
|
|
2192
2114
|
}
|
|
2193
2115
|
|
|
2194
|
-
/** @returns {
|
|
2195
|
-
static
|
|
2116
|
+
/** @returns {LandingPageGetResponse} */
|
|
2117
|
+
static LandingPageGetResponse() {
|
|
2196
2118
|
return Joi.object({
|
|
2197
2119
|
items: Joi.array().items(ContentPlatformModel.LandingPageSchema()),
|
|
2198
2120
|
page: ContentPlatformModel.Page(),
|
|
@@ -2210,19 +2132,19 @@ class ContentPlatformModel {
|
|
|
2210
2132
|
_id: Joi.string().allow(""),
|
|
2211
2133
|
application: Joi.string().allow(""),
|
|
2212
2134
|
archived: Joi.boolean(),
|
|
2213
|
-
_custom_json: Joi.
|
|
2135
|
+
_custom_json: Joi.any(),
|
|
2214
2136
|
});
|
|
2215
2137
|
}
|
|
2216
2138
|
|
|
2217
|
-
/** @returns {
|
|
2218
|
-
static
|
|
2139
|
+
/** @returns {DefaultNavigationResponse} */
|
|
2140
|
+
static DefaultNavigationResponse() {
|
|
2219
2141
|
return Joi.object({
|
|
2220
2142
|
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
2221
2143
|
});
|
|
2222
2144
|
}
|
|
2223
2145
|
|
|
2224
|
-
/** @returns {
|
|
2225
|
-
static
|
|
2146
|
+
/** @returns {NavigationGetResponse} */
|
|
2147
|
+
static NavigationGetResponse() {
|
|
2226
2148
|
return Joi.object({
|
|
2227
2149
|
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
2228
2150
|
page: ContentPlatformModel.Page(),
|
|
@@ -2254,8 +2176,8 @@ class ContentPlatformModel {
|
|
|
2254
2176
|
});
|
|
2255
2177
|
}
|
|
2256
2178
|
|
|
2257
|
-
/** @returns {
|
|
2258
|
-
static
|
|
2179
|
+
/** @returns {NavigationRequest} */
|
|
2180
|
+
static NavigationRequest() {
|
|
2259
2181
|
return Joi.object({
|
|
2260
2182
|
name: Joi.string().allow(""),
|
|
2261
2183
|
slug: Joi.string().allow(""),
|
|
@@ -2265,8 +2187,8 @@ class ContentPlatformModel {
|
|
|
2265
2187
|
});
|
|
2266
2188
|
}
|
|
2267
2189
|
|
|
2268
|
-
/** @returns {
|
|
2269
|
-
static
|
|
2190
|
+
/** @returns {PageGetResponse} */
|
|
2191
|
+
static PageGetResponse() {
|
|
2270
2192
|
return Joi.object({
|
|
2271
2193
|
items: Joi.array().items(ContentPlatformModel.PageSchema()),
|
|
2272
2194
|
page: ContentPlatformModel.Page(),
|
|
@@ -2312,7 +2234,7 @@ class ContentPlatformModel {
|
|
|
2312
2234
|
feature_image: ContentPlatformModel.Asset(),
|
|
2313
2235
|
page_meta: Joi.array().items(Joi.any()),
|
|
2314
2236
|
_schedule: ContentPlatformModel.ScheduleSchema(),
|
|
2315
|
-
_custom_json: Joi.
|
|
2237
|
+
_custom_json: Joi.any(),
|
|
2316
2238
|
orientation: Joi.string().allow(""),
|
|
2317
2239
|
platform: Joi.string().allow(""),
|
|
2318
2240
|
published: Joi.boolean(),
|
|
@@ -2321,7 +2243,7 @@ class ContentPlatformModel {
|
|
|
2321
2243
|
title: Joi.string().allow(""),
|
|
2322
2244
|
type: Joi.string().allow(""),
|
|
2323
2245
|
seo: ContentPlatformModel.SEO(),
|
|
2324
|
-
visibility: Joi.
|
|
2246
|
+
visibility: Joi.any(),
|
|
2325
2247
|
archived: Joi.boolean(),
|
|
2326
2248
|
});
|
|
2327
2249
|
}
|
|
@@ -2333,13 +2255,13 @@ class ContentPlatformModel {
|
|
|
2333
2255
|
});
|
|
2334
2256
|
}
|
|
2335
2257
|
|
|
2336
|
-
/** @returns {
|
|
2337
|
-
static
|
|
2258
|
+
/** @returns {PageRequest} */
|
|
2259
|
+
static PageRequest() {
|
|
2338
2260
|
return Joi.object({
|
|
2339
2261
|
_schedule: ContentPlatformModel.CronSchedule(),
|
|
2340
2262
|
application: Joi.string().allow(""),
|
|
2341
2263
|
author: ContentPlatformModel.Author(),
|
|
2342
|
-
_custom_json: Joi.
|
|
2264
|
+
_custom_json: Joi.any(),
|
|
2343
2265
|
orientation: Joi.string().allow(""),
|
|
2344
2266
|
content: Joi.array().items(Joi.any()),
|
|
2345
2267
|
feature_image: ContentPlatformModel.Asset(),
|
|
@@ -2362,8 +2284,8 @@ class ContentPlatformModel {
|
|
|
2362
2284
|
});
|
|
2363
2285
|
}
|
|
2364
2286
|
|
|
2365
|
-
/** @returns {
|
|
2366
|
-
static
|
|
2287
|
+
/** @returns {PagePublishRequest} */
|
|
2288
|
+
static PagePublishRequest() {
|
|
2367
2289
|
return Joi.object({
|
|
2368
2290
|
publish: Joi.boolean(),
|
|
2369
2291
|
});
|
|
@@ -2378,8 +2300,8 @@ class ContentPlatformModel {
|
|
|
2378
2300
|
});
|
|
2379
2301
|
}
|
|
2380
2302
|
|
|
2381
|
-
/** @returns {
|
|
2382
|
-
static
|
|
2303
|
+
/** @returns {SlideshowGetResponse} */
|
|
2304
|
+
static SlideshowGetResponse() {
|
|
2383
2305
|
return Joi.object({
|
|
2384
2306
|
items: Joi.array().items(ContentPlatformModel.SlideshowSchema()),
|
|
2385
2307
|
page: ContentPlatformModel.Page(),
|
|
@@ -2398,12 +2320,12 @@ class ContentPlatformModel {
|
|
|
2398
2320
|
media: Joi.array().items(ContentPlatformModel.SlideshowMedia()),
|
|
2399
2321
|
active: Joi.boolean(),
|
|
2400
2322
|
archived: Joi.boolean(),
|
|
2401
|
-
_custom_json: Joi.
|
|
2323
|
+
_custom_json: Joi.any(),
|
|
2402
2324
|
});
|
|
2403
2325
|
}
|
|
2404
2326
|
|
|
2405
|
-
/** @returns {
|
|
2406
|
-
static
|
|
2327
|
+
/** @returns {SlideshowRequest} */
|
|
2328
|
+
static SlideshowRequest() {
|
|
2407
2329
|
return Joi.object({
|
|
2408
2330
|
slug: Joi.string().allow(""),
|
|
2409
2331
|
platform: Joi.string().allow(""),
|
|
@@ -2485,7 +2407,7 @@ class ContentPlatformModel {
|
|
|
2485
2407
|
sub_type: Joi.string().allow(""),
|
|
2486
2408
|
_id: Joi.string().allow(""),
|
|
2487
2409
|
position: Joi.string().allow(""),
|
|
2488
|
-
attributes: Joi.
|
|
2410
|
+
attributes: Joi.any(),
|
|
2489
2411
|
content: Joi.string().allow(""),
|
|
2490
2412
|
pages: Joi.array().items(Joi.any()),
|
|
2491
2413
|
__source: ContentPlatformModel.TagSourceSchema(),
|
|
@@ -2528,18 +2450,23 @@ class ContentPlatformModel {
|
|
|
2528
2450
|
/** @returns {FieldDefinitionSchema} */
|
|
2529
2451
|
static FieldDefinitionSchema() {
|
|
2530
2452
|
return Joi.object({
|
|
2531
|
-
|
|
2453
|
+
_id: Joi.string().allow(""),
|
|
2454
|
+
creator: Joi.string().allow(""),
|
|
2532
2455
|
resource: Joi.string().allow(""),
|
|
2533
2456
|
name: Joi.string().allow(""),
|
|
2534
2457
|
namespace: Joi.string().allow(""),
|
|
2535
|
-
|
|
2458
|
+
key: Joi.string().allow(""),
|
|
2536
2459
|
description: Joi.string().allow(""),
|
|
2537
2460
|
type: Joi.string().allow(""),
|
|
2538
2461
|
multi_value: Joi.boolean(),
|
|
2539
2462
|
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2540
2463
|
company_id: Joi.string().allow(""),
|
|
2464
|
+
created_by: Joi.string().allow(""),
|
|
2465
|
+
updated_by: Joi.string().allow(""),
|
|
2541
2466
|
required: Joi.boolean(),
|
|
2542
2467
|
is_deleted: Joi.boolean(),
|
|
2468
|
+
created_at: Joi.string().allow(""),
|
|
2469
|
+
updated_at: Joi.string().allow(""),
|
|
2543
2470
|
type_name: Joi.string().allow(""),
|
|
2544
2471
|
invalid_fields_count: Joi.number(),
|
|
2545
2472
|
});
|
|
@@ -2556,8 +2483,9 @@ class ContentPlatformModel {
|
|
|
2556
2483
|
/** @returns {CustomFieldDefinitionRequestSchema} */
|
|
2557
2484
|
static CustomFieldDefinitionRequestSchema() {
|
|
2558
2485
|
return Joi.object({
|
|
2486
|
+
resource: Joi.string().allow(""),
|
|
2559
2487
|
type: Joi.string().allow(""),
|
|
2560
|
-
|
|
2488
|
+
key: Joi.string().allow(""),
|
|
2561
2489
|
namespace: Joi.string().allow(""),
|
|
2562
2490
|
multi_value: Joi.boolean(),
|
|
2563
2491
|
name: Joi.string().allow(""),
|
|
@@ -2575,7 +2503,7 @@ class ContentPlatformModel {
|
|
|
2575
2503
|
name: Joi.string().allow(""),
|
|
2576
2504
|
multi_value: Joi.boolean(),
|
|
2577
2505
|
required: Joi.boolean(),
|
|
2578
|
-
|
|
2506
|
+
key: Joi.string().allow(""),
|
|
2579
2507
|
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2580
2508
|
action: Joi.string().allow(""),
|
|
2581
2509
|
});
|
|
@@ -2584,6 +2512,7 @@ class ContentPlatformModel {
|
|
|
2584
2512
|
/** @returns {CustomObjectDefinitionUpdateRequestSchema} */
|
|
2585
2513
|
static CustomObjectDefinitionUpdateRequestSchema() {
|
|
2586
2514
|
return Joi.object({
|
|
2515
|
+
type: Joi.string().allow(""),
|
|
2587
2516
|
description: Joi.string().allow(""),
|
|
2588
2517
|
name: Joi.string().allow(""),
|
|
2589
2518
|
display_name_key: Joi.string().allow(""),
|
|
@@ -2596,39 +2525,21 @@ class ContentPlatformModel {
|
|
|
2596
2525
|
/** @returns {CustomFieldDefinitionDetailResSchema} */
|
|
2597
2526
|
static CustomFieldDefinitionDetailResSchema() {
|
|
2598
2527
|
return Joi.object({
|
|
2528
|
+
creator: Joi.string().allow(""),
|
|
2599
2529
|
resource: Joi.string().allow(""),
|
|
2600
2530
|
name: Joi.string().allow(""),
|
|
2601
2531
|
namespace: Joi.string().allow(""),
|
|
2602
|
-
|
|
2603
|
-
description: Joi.string().allow(""),
|
|
2604
|
-
type: Joi.string().allow(""),
|
|
2605
|
-
multi_value: Joi.boolean(),
|
|
2606
|
-
company_id: Joi.string().allow(""),
|
|
2607
|
-
application_id: Joi.string().allow(""),
|
|
2608
|
-
required: Joi.boolean(),
|
|
2609
|
-
is_deleted: Joi.boolean(),
|
|
2610
|
-
id: Joi.string().allow(""),
|
|
2611
|
-
validations: Joi.array().items(Joi.any()),
|
|
2612
|
-
created_at: Joi.string().allow(""),
|
|
2613
|
-
updated_at: Joi.string().allow(""),
|
|
2614
|
-
});
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
/** @returns {MetaFieldDefinitionDetailResSchema} */
|
|
2618
|
-
static MetaFieldDefinitionDetailResSchema() {
|
|
2619
|
-
return Joi.object({
|
|
2620
|
-
resource: Joi.string().allow(""),
|
|
2621
|
-
name: Joi.string().allow(""),
|
|
2622
|
-
namespace: Joi.string().allow(""),
|
|
2623
|
-
slug: Joi.string().allow(""),
|
|
2532
|
+
key: Joi.string().allow(""),
|
|
2624
2533
|
description: Joi.string().allow(""),
|
|
2625
2534
|
type: Joi.string().allow(""),
|
|
2626
2535
|
multi_value: Joi.boolean(),
|
|
2627
2536
|
company_id: Joi.string().allow(""),
|
|
2628
2537
|
application_id: Joi.string().allow(""),
|
|
2538
|
+
created_by: Joi.string().allow(""),
|
|
2539
|
+
updated_by: Joi.string().allow(""),
|
|
2629
2540
|
required: Joi.boolean(),
|
|
2630
2541
|
is_deleted: Joi.boolean(),
|
|
2631
|
-
|
|
2542
|
+
_id: Joi.string().allow(""),
|
|
2632
2543
|
validations: Joi.array().items(Joi.any()),
|
|
2633
2544
|
created_at: Joi.string().allow(""),
|
|
2634
2545
|
updated_at: Joi.string().allow(""),
|
|
@@ -2653,17 +2564,20 @@ class ContentPlatformModel {
|
|
|
2653
2564
|
/** @returns {CustomFieldSchema} */
|
|
2654
2565
|
static CustomFieldSchema() {
|
|
2655
2566
|
return Joi.object({
|
|
2656
|
-
|
|
2567
|
+
_id: Joi.string().allow(""),
|
|
2657
2568
|
namespace: Joi.string().allow(""),
|
|
2658
|
-
|
|
2569
|
+
key: Joi.string().allow(""),
|
|
2659
2570
|
resource: Joi.string().allow(""),
|
|
2571
|
+
creator: Joi.string().allow(""),
|
|
2660
2572
|
value: Joi.array().items(ContentPlatformModel.CustomFieldValue()),
|
|
2661
|
-
|
|
2573
|
+
resource_id: Joi.string().allow(""),
|
|
2662
2574
|
type: Joi.string().allow(""),
|
|
2663
2575
|
multi_value: Joi.boolean(),
|
|
2664
2576
|
company_id: Joi.string().allow(""),
|
|
2577
|
+
definition_id: Joi.string().allow(""),
|
|
2665
2578
|
has_invalid_values: Joi.boolean(),
|
|
2666
2579
|
invalid_value_errors: Joi.array().items(Joi.any()),
|
|
2580
|
+
created_by: Joi.string().allow(""),
|
|
2667
2581
|
is_deleted: Joi.boolean(),
|
|
2668
2582
|
created_at: Joi.string().allow(""),
|
|
2669
2583
|
updated_at: Joi.string().allow(""),
|
|
@@ -2678,14 +2592,6 @@ class ContentPlatformModel {
|
|
|
2678
2592
|
});
|
|
2679
2593
|
}
|
|
2680
2594
|
|
|
2681
|
-
/** @returns {CustomFieldsDeleteSchema} */
|
|
2682
|
-
static CustomFieldsDeleteSchema() {
|
|
2683
|
-
return Joi.object({
|
|
2684
|
-
success: Joi.boolean(),
|
|
2685
|
-
message: Joi.string().allow(""),
|
|
2686
|
-
});
|
|
2687
|
-
}
|
|
2688
|
-
|
|
2689
2595
|
/** @returns {CustomFieldsResponseByResourceIdSchema} */
|
|
2690
2596
|
static CustomFieldsResponseByResourceIdSchema() {
|
|
2691
2597
|
return Joi.object({
|
|
@@ -2697,8 +2603,7 @@ class ContentPlatformModel {
|
|
|
2697
2603
|
static CustomField() {
|
|
2698
2604
|
return Joi.object({
|
|
2699
2605
|
value: Joi.array().items(Joi.any()),
|
|
2700
|
-
|
|
2701
|
-
slug: Joi.string().allow(""),
|
|
2606
|
+
definition_id: Joi.string().allow(""),
|
|
2702
2607
|
});
|
|
2703
2608
|
}
|
|
2704
2609
|
|
|
@@ -2712,13 +2617,16 @@ class ContentPlatformModel {
|
|
|
2712
2617
|
/** @returns {CustomObjectSchema} */
|
|
2713
2618
|
static CustomObjectSchema() {
|
|
2714
2619
|
return Joi.object({
|
|
2715
|
-
|
|
2620
|
+
_id: Joi.string().allow(""),
|
|
2621
|
+
creator: Joi.string().allow(""),
|
|
2716
2622
|
company_id: Joi.string().allow(""),
|
|
2717
2623
|
application_id: Joi.string().allow(""),
|
|
2624
|
+
created_by: Joi.string().allow(""),
|
|
2625
|
+
updated_by: Joi.string().allow(""),
|
|
2718
2626
|
status: Joi.string().allow(""),
|
|
2719
2627
|
type: Joi.string().allow(""),
|
|
2720
|
-
definition_slug: Joi.string().allow(""),
|
|
2721
2628
|
display_name: Joi.string().allow(""),
|
|
2629
|
+
definition_id: Joi.string().allow(""),
|
|
2722
2630
|
fields: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
|
|
2723
2631
|
});
|
|
2724
2632
|
}
|
|
@@ -2727,7 +2635,6 @@ class ContentPlatformModel {
|
|
|
2727
2635
|
static CustomObjectDefinitionRequestSchema() {
|
|
2728
2636
|
return Joi.object({
|
|
2729
2637
|
type: Joi.string().allow(""),
|
|
2730
|
-
definition_slug: Joi.string().allow(""),
|
|
2731
2638
|
description: Joi.string().allow(""),
|
|
2732
2639
|
name: Joi.string().allow(""),
|
|
2733
2640
|
display_name_key: Joi.string().allow(""),
|
|
@@ -2737,17 +2644,42 @@ class ContentPlatformModel {
|
|
|
2737
2644
|
});
|
|
2738
2645
|
}
|
|
2739
2646
|
|
|
2740
|
-
/** @returns {
|
|
2741
|
-
static
|
|
2647
|
+
/** @returns {CustomObjectCustomFieldDefinitionResSchema} */
|
|
2648
|
+
static CustomObjectCustomFieldDefinitionResSchema() {
|
|
2742
2649
|
return Joi.object({
|
|
2743
|
-
|
|
2650
|
+
creator: Joi.string().allow(""),
|
|
2651
|
+
resource: Joi.string().allow(""),
|
|
2652
|
+
name: Joi.string().allow(""),
|
|
2653
|
+
namespace: Joi.string().allow(""),
|
|
2654
|
+
key: Joi.string().allow(""),
|
|
2655
|
+
description: Joi.string().allow(""),
|
|
2656
|
+
type: Joi.string().allow(""),
|
|
2657
|
+
multi_value: Joi.boolean(),
|
|
2658
|
+
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2659
|
+
company_id: Joi.string().allow(""),
|
|
2660
|
+
created_by: Joi.string().allow(""),
|
|
2661
|
+
metaobject_definition_id: Joi.string().allow(""),
|
|
2662
|
+
required: Joi.boolean(),
|
|
2663
|
+
is_deleted: Joi.boolean(),
|
|
2664
|
+
_id: Joi.string().allow(""),
|
|
2665
|
+
created_at: Joi.string().allow(""),
|
|
2666
|
+
updated_at: Joi.string().allow(""),
|
|
2667
|
+
});
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
/** @returns {CustomObjectDefinitionSchema} */
|
|
2671
|
+
static CustomObjectDefinitionSchema() {
|
|
2672
|
+
return Joi.object({
|
|
2673
|
+
_id: Joi.string().allow(""),
|
|
2744
2674
|
name: Joi.string().allow(""),
|
|
2745
2675
|
type: Joi.string().allow(""),
|
|
2746
|
-
definition_slug: Joi.string().allow(""),
|
|
2747
2676
|
display_name_key: Joi.string().allow(""),
|
|
2748
2677
|
description: Joi.string().allow(""),
|
|
2678
|
+
creator: Joi.string().allow(""),
|
|
2679
|
+
created_by: Joi.string().allow(""),
|
|
2680
|
+
updated_by: Joi.string().allow(""),
|
|
2749
2681
|
field_definitions: Joi.array().items(
|
|
2750
|
-
ContentPlatformModel.
|
|
2682
|
+
ContentPlatformModel.CustomObjectCustomFieldDefinitionResSchema()
|
|
2751
2683
|
),
|
|
2752
2684
|
});
|
|
2753
2685
|
}
|
|
@@ -2760,18 +2692,18 @@ class ContentPlatformModel {
|
|
|
2760
2692
|
});
|
|
2761
2693
|
}
|
|
2762
2694
|
|
|
2763
|
-
/** @returns {
|
|
2764
|
-
static
|
|
2695
|
+
/** @returns {CustomObjectEntryBulkUploadResponse} */
|
|
2696
|
+
static CustomObjectEntryBulkUploadResponse() {
|
|
2765
2697
|
return Joi.object({
|
|
2766
2698
|
url: Joi.string().allow(""),
|
|
2767
2699
|
total_records: Joi.number(),
|
|
2768
2700
|
});
|
|
2769
2701
|
}
|
|
2770
2702
|
|
|
2771
|
-
/** @returns {
|
|
2772
|
-
static
|
|
2703
|
+
/** @returns {CustomObjectListItemDefinationSchema} */
|
|
2704
|
+
static CustomObjectListItemDefinationSchema() {
|
|
2773
2705
|
return Joi.object({
|
|
2774
|
-
|
|
2706
|
+
_id: Joi.string().allow(""),
|
|
2775
2707
|
name: Joi.string().allow(""),
|
|
2776
2708
|
type: Joi.string().allow(""),
|
|
2777
2709
|
});
|
|
@@ -2780,12 +2712,12 @@ class ContentPlatformModel {
|
|
|
2780
2712
|
/** @returns {CustomObjectListItemSchema} */
|
|
2781
2713
|
static CustomObjectListItemSchema() {
|
|
2782
2714
|
return Joi.object({
|
|
2783
|
-
|
|
2715
|
+
_id: Joi.string().allow(""),
|
|
2716
|
+
definition_id: Joi.string().allow(""),
|
|
2784
2717
|
status: Joi.string().allow(""),
|
|
2785
|
-
created_at: Joi.string().allow(""),
|
|
2786
2718
|
updated_at: Joi.string().allow(""),
|
|
2787
2719
|
display_name: Joi.string().allow(""),
|
|
2788
|
-
definition: ContentPlatformModel.
|
|
2720
|
+
definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
|
|
2789
2721
|
references: Joi.number(),
|
|
2790
2722
|
});
|
|
2791
2723
|
}
|
|
@@ -2800,30 +2732,26 @@ class ContentPlatformModel {
|
|
|
2800
2732
|
});
|
|
2801
2733
|
}
|
|
2802
2734
|
|
|
2803
|
-
/** @returns {
|
|
2804
|
-
static
|
|
2735
|
+
/** @returns {CustomObjectFieldSchema} */
|
|
2736
|
+
static CustomObjectFieldSchema() {
|
|
2805
2737
|
return Joi.object({
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
namespace: Joi.string().allow(""),
|
|
2738
|
+
_id: Joi.string().allow(""),
|
|
2739
|
+
key: Joi.string().allow(""),
|
|
2809
2740
|
value: Joi.array().items(Joi.any()),
|
|
2810
2741
|
type: Joi.string().allow(""),
|
|
2742
|
+
definition_id: Joi.string().allow(""),
|
|
2811
2743
|
});
|
|
2812
2744
|
}
|
|
2813
2745
|
|
|
2814
|
-
/** @returns {
|
|
2815
|
-
static
|
|
2746
|
+
/** @returns {CustomObjectByIdSchema} */
|
|
2747
|
+
static CustomObjectByIdSchema() {
|
|
2816
2748
|
return Joi.object({
|
|
2817
|
-
|
|
2749
|
+
_id: Joi.string().allow(""),
|
|
2818
2750
|
status: Joi.string().allow(""),
|
|
2819
2751
|
display_name: Joi.string().allow(""),
|
|
2820
|
-
definition: ContentPlatformModel.
|
|
2752
|
+
definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
|
|
2821
2753
|
references: Joi.array().items(Joi.any()),
|
|
2822
|
-
|
|
2823
|
-
definition_slug: Joi.string().allow(""),
|
|
2824
|
-
fields: Joi.array().items(
|
|
2825
|
-
ContentPlatformModel.CustomObjectFieldDefinition()
|
|
2826
|
-
),
|
|
2754
|
+
fields: Joi.array().items(ContentPlatformModel.CustomObjectFieldSchema()),
|
|
2827
2755
|
});
|
|
2828
2756
|
}
|
|
2829
2757
|
|
|
@@ -2845,15 +2773,17 @@ class ContentPlatformModel {
|
|
|
2845
2773
|
});
|
|
2846
2774
|
}
|
|
2847
2775
|
|
|
2848
|
-
/** @returns {
|
|
2849
|
-
static
|
|
2776
|
+
/** @returns {CustomObjectJobSchema} */
|
|
2777
|
+
static CustomObjectJobSchema() {
|
|
2850
2778
|
return Joi.object({
|
|
2851
|
-
|
|
2779
|
+
_id: Joi.string().allow(""),
|
|
2852
2780
|
jobs: Joi.array().items(Joi.string().allow("")),
|
|
2853
2781
|
finished_jobs: Joi.array().items(Joi.string().allow("")),
|
|
2854
2782
|
error_jobs: Joi.array().items(Joi.string().allow("")),
|
|
2855
2783
|
errors_occured: Joi.array().items(Joi.string().allow("")),
|
|
2856
2784
|
company_id: Joi.string().allow(""),
|
|
2785
|
+
creator: Joi.string().allow(""),
|
|
2786
|
+
url: Joi.string().allow(""),
|
|
2857
2787
|
status: Joi.string().allow(""),
|
|
2858
2788
|
action_type: Joi.string().allow(""),
|
|
2859
2789
|
entity: Joi.string().allow(""),
|
|
@@ -2866,33 +2796,17 @@ class ContentPlatformModel {
|
|
|
2866
2796
|
created_by: Joi.string().allow(""),
|
|
2867
2797
|
created_at: Joi.string().allow(""),
|
|
2868
2798
|
updated_at: Joi.string().allow(""),
|
|
2869
|
-
application_id: Joi.string().allow(""),
|
|
2870
|
-
});
|
|
2871
|
-
}
|
|
2872
|
-
|
|
2873
|
-
/** @returns {CustomFieldBulkEntry} */
|
|
2874
|
-
static CustomFieldBulkEntry() {
|
|
2875
|
-
return Joi.object({
|
|
2876
|
-
items: Joi.array().items(ContentPlatformModel.JobSchema()),
|
|
2877
|
-
page: ContentPlatformModel.Page(),
|
|
2878
2799
|
});
|
|
2879
2800
|
}
|
|
2880
2801
|
|
|
2881
2802
|
/** @returns {CustomObjectBulkEntry} */
|
|
2882
2803
|
static CustomObjectBulkEntry() {
|
|
2883
2804
|
return Joi.object({
|
|
2884
|
-
items: Joi.array().items(ContentPlatformModel.
|
|
2805
|
+
items: Joi.array().items(ContentPlatformModel.CustomObjectJobSchema()),
|
|
2885
2806
|
page: ContentPlatformModel.Page(),
|
|
2886
2807
|
});
|
|
2887
2808
|
}
|
|
2888
2809
|
|
|
2889
|
-
/** @returns {MetafieldTypesSchema} */
|
|
2890
|
-
static MetafieldTypesSchema() {
|
|
2891
|
-
return Joi.object({
|
|
2892
|
-
metafield_types: ContentPlatformModel.CustomFieldTypeSchema(),
|
|
2893
|
-
});
|
|
2894
|
-
}
|
|
2895
|
-
|
|
2896
2810
|
/** @returns {CustomFieldTypeSchema} */
|
|
2897
2811
|
static CustomFieldTypeSchema() {
|
|
2898
2812
|
return Joi.object({
|
|
@@ -2909,8 +2823,6 @@ class ContentPlatformModel {
|
|
|
2909
2823
|
url: ContentPlatformModel.Url(),
|
|
2910
2824
|
metaobject: ContentPlatformModel.Metaobject(),
|
|
2911
2825
|
product: ContentPlatformModel.Product(),
|
|
2912
|
-
html: ContentPlatformModel.HTML(),
|
|
2913
|
-
duration: ContentPlatformModel.Duration(),
|
|
2914
2826
|
});
|
|
2915
2827
|
}
|
|
2916
2828
|
|
|
@@ -2942,31 +2854,6 @@ class ContentPlatformModel {
|
|
|
2942
2854
|
});
|
|
2943
2855
|
}
|
|
2944
2856
|
|
|
2945
|
-
/** @returns {Duration} */
|
|
2946
|
-
static Duration() {
|
|
2947
|
-
return Joi.object({
|
|
2948
|
-
name: Joi.string().allow(""),
|
|
2949
|
-
list_enabled: Joi.boolean(),
|
|
2950
|
-
type: Joi.string().allow(""),
|
|
2951
|
-
category: Joi.string().allow(""),
|
|
2952
|
-
supported_validations: Joi.array().items(
|
|
2953
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
2954
|
-
),
|
|
2955
|
-
});
|
|
2956
|
-
}
|
|
2957
|
-
|
|
2958
|
-
/** @returns {HTML} */
|
|
2959
|
-
static HTML() {
|
|
2960
|
-
return Joi.object({
|
|
2961
|
-
name: Joi.string().allow(""),
|
|
2962
|
-
list_enabled: Joi.boolean(),
|
|
2963
|
-
type: Joi.string().allow(""),
|
|
2964
|
-
supported_validations: Joi.array().items(
|
|
2965
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
2966
|
-
),
|
|
2967
|
-
});
|
|
2968
|
-
}
|
|
2969
|
-
|
|
2970
2857
|
/** @returns {StringSingleLine} */
|
|
2971
2858
|
static StringSingleLine() {
|
|
2972
2859
|
return Joi.object({
|
|
@@ -3138,7 +3025,7 @@ class ContentPlatformModel {
|
|
|
3138
3025
|
/** @returns {CustomObjectEntry} */
|
|
3139
3026
|
static CustomObjectEntry() {
|
|
3140
3027
|
return Joi.object({
|
|
3141
|
-
|
|
3028
|
+
_id: Joi.string().allow(""),
|
|
3142
3029
|
name: Joi.string().allow(""),
|
|
3143
3030
|
type: Joi.string().allow(""),
|
|
3144
3031
|
updated_at: Joi.string().allow(""),
|
|
@@ -3158,16 +3045,8 @@ class ContentPlatformModel {
|
|
|
3158
3045
|
/** @returns {CustomObjectEntryFieldSchema} */
|
|
3159
3046
|
static CustomObjectEntryFieldSchema() {
|
|
3160
3047
|
return Joi.object({
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
});
|
|
3164
|
-
}
|
|
3165
|
-
|
|
3166
|
-
/** @returns {CustomObjectEntryFieldSchemaWithoutID} */
|
|
3167
|
-
static CustomObjectEntryFieldSchemaWithoutID() {
|
|
3168
|
-
return Joi.object({
|
|
3169
|
-
slug: Joi.string().allow(""),
|
|
3170
|
-
value: Joi.any(),
|
|
3048
|
+
definition_id: Joi.string().allow(""),
|
|
3049
|
+
value: Joi.array().items(Joi.any()),
|
|
3171
3050
|
});
|
|
3172
3051
|
}
|
|
3173
3052
|
|
|
@@ -3175,23 +3054,13 @@ class ContentPlatformModel {
|
|
|
3175
3054
|
static CustomObjectRequestSchema() {
|
|
3176
3055
|
return Joi.object({
|
|
3177
3056
|
status: Joi.string().allow(""),
|
|
3178
|
-
|
|
3057
|
+
definition_id: Joi.string().allow(""),
|
|
3179
3058
|
fields: Joi.array().items(
|
|
3180
3059
|
ContentPlatformModel.CustomObjectEntryFieldSchema()
|
|
3181
3060
|
),
|
|
3182
3061
|
});
|
|
3183
3062
|
}
|
|
3184
3063
|
|
|
3185
|
-
/** @returns {CustomObjectRequestSchemaWithoutId} */
|
|
3186
|
-
static CustomObjectRequestSchemaWithoutId() {
|
|
3187
|
-
return Joi.object({
|
|
3188
|
-
status: Joi.string().allow(""),
|
|
3189
|
-
fields: Joi.array().items(
|
|
3190
|
-
ContentPlatformModel.CustomObjectEntryFieldSchemaWithoutID()
|
|
3191
|
-
),
|
|
3192
|
-
});
|
|
3193
|
-
}
|
|
3194
|
-
|
|
3195
3064
|
/** @returns {CustomObjectBulkSchema} */
|
|
3196
3065
|
static CustomObjectBulkSchema() {
|
|
3197
3066
|
return Joi.object({
|