@gofynd/fdk-client-javascript 1.4.16-beta.3 → 1.4.16-beta.4
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 +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +27 -117
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -51
- package/sdk/application/Content/ContentApplicationClient.js +56 -161
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +8 -101
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +8 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/common/Utility.js +6 -3
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -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 +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- 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 +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -121
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1294 -5068
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1992
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6389
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1681 -3222
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- 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 +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -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 -204
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +475 -1073
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -253
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -256
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +403 -1375
- package/sdk/platform/Content/ContentPlatformModel.js +394 -631
- 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 +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -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 +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -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 +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- 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 +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- 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 +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +49 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +7 -46
- package/sdk/platform/Share/SharePlatformModel.js +6 -31
- 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 +6 -810
- 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 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -111
|
@@ -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]
|
|
@@ -66,6 +60,8 @@ const Joi = require("joi");
|
|
|
66
60
|
* @property {string} [app]
|
|
67
61
|
* @property {string} [_id]
|
|
68
62
|
* @property {string} [robots_txt]
|
|
63
|
+
* @property {boolean} [sitemap_enabled]
|
|
64
|
+
* @property {string} [additional_sitemap]
|
|
69
65
|
* @property {boolean} [cannonical_enabled]
|
|
70
66
|
* @property {CustomMetaTag[]} [custom_meta_tags]
|
|
71
67
|
* @property {Detail} [details]
|
|
@@ -182,7 +178,7 @@ const Joi = require("joi");
|
|
|
182
178
|
*/
|
|
183
179
|
|
|
184
180
|
/**
|
|
185
|
-
* @typedef
|
|
181
|
+
* @typedef BlogGetResponse
|
|
186
182
|
* @property {BlogSchema[]} [items]
|
|
187
183
|
* @property {Page} [page]
|
|
188
184
|
* @property {BlogFilters} [filters]
|
|
@@ -280,57 +276,7 @@ const Joi = require("joi");
|
|
|
280
276
|
*/
|
|
281
277
|
|
|
282
278
|
/**
|
|
283
|
-
* @typedef
|
|
284
|
-
* @property {boolean} [enabled] - Whether sitemap configuration is enabled or
|
|
285
|
-
* not for this sitemap configuration
|
|
286
|
-
*/
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* @typedef DefaultSitemapConfig
|
|
290
|
-
* @property {DefaultSitemapIndividualConfig} [root]
|
|
291
|
-
* @property {DefaultSitemapIndividualConfig} [brand]
|
|
292
|
-
* @property {DefaultSitemapIndividualConfig} [collections]
|
|
293
|
-
* @property {DefaultSitemapIndividualConfig} [category_l1]
|
|
294
|
-
* @property {DefaultSitemapIndividualConfig} [category_l2]
|
|
295
|
-
* @property {DefaultSitemapIndividualConfig} [category_l3]
|
|
296
|
-
* @property {DefaultSitemapIndividualConfig} [pages]
|
|
297
|
-
* @property {DefaultSitemapIndividualConfig} [blog]
|
|
298
|
-
* @property {DefaultSitemapIndividualConfig} [section]
|
|
299
|
-
* @property {DefaultSitemapIndividualConfig} [faq]
|
|
300
|
-
* @property {DefaultSitemapIndividualConfig} [sitemap]
|
|
301
|
-
*/
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* @typedef SitemapConfigCreate
|
|
305
|
-
* @property {string} [name] - Unique identifier for the sitemap configuration
|
|
306
|
-
* @property {boolean} [is_active] - Indicates if the sitemap configuration is active
|
|
307
|
-
* @property {string} [sitemap] - XML string containing sitemap data in base64 encoding
|
|
308
|
-
*/
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* @typedef SitemapConfig
|
|
312
|
-
* @property {string} [name] - Unique identifier for the sitemap configuration
|
|
313
|
-
* @property {boolean} [is_active] - Indicates if the sitemap configuration is
|
|
314
|
-
* active or not in storefront
|
|
315
|
-
* @property {string} [sitemap] - XML string containing sitemap data in base64 encoding
|
|
316
|
-
* @property {string} [created_at] - Timestamp when the configuration was created
|
|
317
|
-
* @property {string} [updated_at] - Timestamp when the configuration was last updated
|
|
318
|
-
*/
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* @typedef SitemapConfigurationList
|
|
322
|
-
* @property {SitemapConfig[]} [items] - List of all Sitemap configurations
|
|
323
|
-
* @property {Page} [page]
|
|
324
|
-
*/
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* @typedef SitemapConfigUpdate
|
|
328
|
-
* @property {boolean} [is_active] - Indicates if the sitemap configuration is active
|
|
329
|
-
* @property {string} [sitemap] - XML string containing sitemap data
|
|
330
|
-
*/
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* @typedef BlogPayload
|
|
279
|
+
* @typedef BlogRequest
|
|
334
280
|
* @property {string} [application]
|
|
335
281
|
* @property {Object} [_custom_json]
|
|
336
282
|
* @property {Author} [author]
|
|
@@ -499,7 +445,7 @@ const Joi = require("joi");
|
|
|
499
445
|
*/
|
|
500
446
|
|
|
501
447
|
/**
|
|
502
|
-
* @typedef
|
|
448
|
+
* @typedef TagDeleteSuccessResponse
|
|
503
449
|
* @property {boolean} [success]
|
|
504
450
|
*/
|
|
505
451
|
|
|
@@ -630,7 +576,7 @@ const Joi = require("joi");
|
|
|
630
576
|
*/
|
|
631
577
|
|
|
632
578
|
/**
|
|
633
|
-
* @typedef
|
|
579
|
+
* @typedef LandingPageGetResponse
|
|
634
580
|
* @property {LandingPageSchema[]} [items]
|
|
635
581
|
* @property {Page} [page]
|
|
636
582
|
*/
|
|
@@ -649,12 +595,12 @@ const Joi = require("joi");
|
|
|
649
595
|
*/
|
|
650
596
|
|
|
651
597
|
/**
|
|
652
|
-
* @typedef
|
|
598
|
+
* @typedef DefaultNavigationResponse
|
|
653
599
|
* @property {NavigationSchema[]} [items]
|
|
654
600
|
*/
|
|
655
601
|
|
|
656
602
|
/**
|
|
657
|
-
* @typedef
|
|
603
|
+
* @typedef NavigationGetResponse
|
|
658
604
|
* @property {NavigationSchema[]} [items]
|
|
659
605
|
* @property {Page} [page]
|
|
660
606
|
*/
|
|
@@ -681,7 +627,7 @@ const Joi = require("joi");
|
|
|
681
627
|
*/
|
|
682
628
|
|
|
683
629
|
/**
|
|
684
|
-
* @typedef
|
|
630
|
+
* @typedef NavigationRequest
|
|
685
631
|
* @property {string} [name]
|
|
686
632
|
* @property {string} [slug]
|
|
687
633
|
* @property {string[]} [platform]
|
|
@@ -690,7 +636,7 @@ const Joi = require("joi");
|
|
|
690
636
|
*/
|
|
691
637
|
|
|
692
638
|
/**
|
|
693
|
-
* @typedef
|
|
639
|
+
* @typedef PageGetResponse
|
|
694
640
|
* @property {PageSchema[]} [items]
|
|
695
641
|
* @property {Page} [page]
|
|
696
642
|
*/
|
|
@@ -747,7 +693,7 @@ const Joi = require("joi");
|
|
|
747
693
|
*/
|
|
748
694
|
|
|
749
695
|
/**
|
|
750
|
-
* @typedef
|
|
696
|
+
* @typedef PageRequest
|
|
751
697
|
* @property {CronSchedule} [_schedule]
|
|
752
698
|
* @property {string} [application]
|
|
753
699
|
* @property {Author} [author]
|
|
@@ -772,7 +718,7 @@ const Joi = require("joi");
|
|
|
772
718
|
*/
|
|
773
719
|
|
|
774
720
|
/**
|
|
775
|
-
* @typedef
|
|
721
|
+
* @typedef PagePublishRequest
|
|
776
722
|
* @property {boolean} [publish]
|
|
777
723
|
*/
|
|
778
724
|
|
|
@@ -784,7 +730,7 @@ const Joi = require("joi");
|
|
|
784
730
|
*/
|
|
785
731
|
|
|
786
732
|
/**
|
|
787
|
-
* @typedef
|
|
733
|
+
* @typedef SlideshowGetResponse
|
|
788
734
|
* @property {SlideshowSchema[]} [items]
|
|
789
735
|
* @property {Page} [page]
|
|
790
736
|
*/
|
|
@@ -804,7 +750,7 @@ const Joi = require("joi");
|
|
|
804
750
|
*/
|
|
805
751
|
|
|
806
752
|
/**
|
|
807
|
-
* @typedef
|
|
753
|
+
* @typedef SlideshowRequest
|
|
808
754
|
* @property {string} [slug]
|
|
809
755
|
* @property {string} [platform]
|
|
810
756
|
* @property {ConfigurationSchema} [configuration]
|
|
@@ -895,116 +841,100 @@ const Joi = require("joi");
|
|
|
895
841
|
|
|
896
842
|
/**
|
|
897
843
|
* @typedef FieldValidations
|
|
898
|
-
* @property {string} [name]
|
|
899
|
-
* @property {string} [type]
|
|
844
|
+
* @property {string} [name]
|
|
845
|
+
* @property {string} [type]
|
|
900
846
|
* @property {Object} [value]
|
|
901
847
|
*/
|
|
902
848
|
|
|
903
849
|
/**
|
|
904
850
|
* @typedef FieldDefinitionSchema
|
|
905
|
-
* @property {string} [
|
|
906
|
-
* @property {string} [
|
|
907
|
-
* @property {string} [
|
|
908
|
-
* @property {string} [
|
|
909
|
-
* @property {string} [
|
|
910
|
-
* @property {string} [
|
|
911
|
-
* @property {string} [
|
|
912
|
-
* @property {
|
|
913
|
-
*
|
|
914
|
-
* @property {FieldValidations[]} [validations]
|
|
915
|
-
* @property {string} [company_id]
|
|
916
|
-
* @property {
|
|
917
|
-
* @property {
|
|
918
|
-
* @property {
|
|
919
|
-
* @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]
|
|
920
870
|
*/
|
|
921
871
|
|
|
922
872
|
/**
|
|
923
873
|
* @typedef CustomFieldDefinitionsSchema
|
|
924
|
-
* @property {FieldDefinitionSchema[]} [items]
|
|
874
|
+
* @property {FieldDefinitionSchema[]} [items]
|
|
925
875
|
* @property {Page} [page]
|
|
926
876
|
*/
|
|
927
877
|
|
|
928
878
|
/**
|
|
929
879
|
* @typedef CustomFieldDefinitionRequestSchema
|
|
930
|
-
* @property {string} [
|
|
931
|
-
* @property {string} [
|
|
932
|
-
* @property {string} [
|
|
933
|
-
* @property {
|
|
934
|
-
*
|
|
935
|
-
* @property {string} [name]
|
|
936
|
-
* @property {string} [description]
|
|
937
|
-
* @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]
|
|
938
888
|
*/
|
|
939
889
|
|
|
940
890
|
/**
|
|
941
891
|
* @typedef CustomObjectCustomFieldDefinitions
|
|
942
|
-
* @property {string} [id]
|
|
943
|
-
* @property {string} [type]
|
|
944
|
-
* @property {string} [description]
|
|
945
|
-
* @property {string} [name]
|
|
946
|
-
* @property {boolean} [multi_value]
|
|
947
|
-
*
|
|
948
|
-
* @property {
|
|
949
|
-
* @property {
|
|
950
|
-
* @property {FieldValidations[]} [validations] - Validations added against the
|
|
951
|
-
* 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]
|
|
952
900
|
* @property {string} [action]
|
|
953
901
|
*/
|
|
954
902
|
|
|
955
903
|
/**
|
|
956
904
|
* @typedef CustomObjectDefinitionUpdateRequestSchema
|
|
957
|
-
* @property {string} [
|
|
958
|
-
* @property {string} [
|
|
959
|
-
* @property {string} [
|
|
960
|
-
*
|
|
905
|
+
* @property {string} [type]
|
|
906
|
+
* @property {string} [description]
|
|
907
|
+
* @property {string} [name]
|
|
908
|
+
* @property {string} [display_name_key]
|
|
961
909
|
* @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
|
|
962
910
|
*/
|
|
963
911
|
|
|
964
912
|
/**
|
|
965
913
|
* @typedef CustomFieldDefinitionDetailResSchema
|
|
966
|
-
* @property {string} [
|
|
967
|
-
* @property {string} [
|
|
968
|
-
* @property {string} [
|
|
969
|
-
* @property {string} [
|
|
970
|
-
* @property {string} [
|
|
971
|
-
* @property {string} [
|
|
972
|
-
* @property {
|
|
973
|
-
*
|
|
974
|
-
* @property {string} [company_id]
|
|
975
|
-
* @property {string} [application_id]
|
|
976
|
-
* @property {
|
|
977
|
-
* @property {
|
|
978
|
-
* @property {
|
|
979
|
-
* @property {
|
|
980
|
-
* @property {string} [
|
|
981
|
-
* @property {string} [updated_at] - Date time at for a field's last modification
|
|
982
|
-
*/
|
|
983
|
-
|
|
984
|
-
/**
|
|
985
|
-
* @typedef MetaFieldDefinitionDetailResSchema
|
|
986
|
-
* @property {string} [resource] - Resource to which meta field is associated
|
|
987
|
-
* @property {string} [name] - Name of meta field
|
|
988
|
-
* @property {string} [namespace] - Namespace of meta field
|
|
989
|
-
* @property {string} [slug] - Slug of meta field
|
|
990
|
-
* @property {string} [description] - Description regarding meta field
|
|
991
|
-
* @property {string} [type] - Data type of meta field
|
|
992
|
-
* @property {boolean} [multi_value] - Flag to denote whether meta field is
|
|
993
|
-
* multi valued or not
|
|
994
|
-
* @property {string} [company_id] - Company Identifer
|
|
995
|
-
* @property {string} [application_id] - Sales channel identifier
|
|
996
|
-
* @property {boolean} [required] - Whether the field is required or not
|
|
997
|
-
* @property {boolean} [is_deleted] - Is meta field deleted
|
|
998
|
-
* @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]
|
|
999
929
|
* @property {Object[]} [validations]
|
|
1000
|
-
* @property {string} [created_at]
|
|
1001
|
-
* @property {string} [updated_at]
|
|
930
|
+
* @property {string} [created_at]
|
|
931
|
+
* @property {string} [updated_at]
|
|
1002
932
|
*/
|
|
1003
933
|
|
|
1004
934
|
/**
|
|
1005
935
|
* @typedef CustomDataDeleteSchema
|
|
1006
|
-
* @property {boolean} [success]
|
|
1007
|
-
* @property {string} [message]
|
|
936
|
+
* @property {boolean} [success]
|
|
937
|
+
* @property {string} [message]
|
|
1008
938
|
*/
|
|
1009
939
|
|
|
1010
940
|
/**
|
|
@@ -1014,20 +944,23 @@ const Joi = require("joi");
|
|
|
1014
944
|
|
|
1015
945
|
/**
|
|
1016
946
|
* @typedef CustomFieldSchema
|
|
1017
|
-
* @property {string} [
|
|
1018
|
-
* @property {string} [namespace]
|
|
1019
|
-
* @property {string} [
|
|
1020
|
-
* @property {string} [resource]
|
|
947
|
+
* @property {string} [_id]
|
|
948
|
+
* @property {string} [namespace]
|
|
949
|
+
* @property {string} [key]
|
|
950
|
+
* @property {string} [resource]
|
|
951
|
+
* @property {string} [creator]
|
|
1021
952
|
* @property {CustomFieldValue[]} [value]
|
|
1022
|
-
* @property {string} [
|
|
1023
|
-
* @property {string} [type]
|
|
1024
|
-
* @property {boolean} [multi_value]
|
|
1025
|
-
* @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]
|
|
1026
958
|
* @property {boolean} [has_invalid_values]
|
|
1027
959
|
* @property {Object[]} [invalid_value_errors]
|
|
1028
|
-
* @property {
|
|
1029
|
-
* @property {
|
|
1030
|
-
* @property {string} [
|
|
960
|
+
* @property {string} [created_by]
|
|
961
|
+
* @property {boolean} [is_deleted]
|
|
962
|
+
* @property {string} [created_at]
|
|
963
|
+
* @property {string} [updated_at]
|
|
1031
964
|
*/
|
|
1032
965
|
|
|
1033
966
|
/**
|
|
@@ -1036,12 +969,6 @@ const Joi = require("joi");
|
|
|
1036
969
|
* @property {Page} [page]
|
|
1037
970
|
*/
|
|
1038
971
|
|
|
1039
|
-
/**
|
|
1040
|
-
* @typedef CustomFieldsDeleteSchema
|
|
1041
|
-
* @property {boolean} [success]
|
|
1042
|
-
* @property {string} [message]
|
|
1043
|
-
*/
|
|
1044
|
-
|
|
1045
972
|
/**
|
|
1046
973
|
* @typedef CustomFieldsResponseByResourceIdSchema
|
|
1047
974
|
* @property {CustomFieldSchema[]} [items]
|
|
@@ -1050,9 +977,7 @@ const Joi = require("joi");
|
|
|
1050
977
|
/**
|
|
1051
978
|
* @typedef CustomField
|
|
1052
979
|
* @property {Object[]} [value]
|
|
1053
|
-
* @property {string} [
|
|
1054
|
-
* @property {string} [slug] - This is the slug of custom field used while
|
|
1055
|
-
* creating a custom field definition
|
|
980
|
+
* @property {string} [definition_id]
|
|
1056
981
|
*/
|
|
1057
982
|
|
|
1058
983
|
/**
|
|
@@ -1062,156 +987,161 @@ const Joi = require("joi");
|
|
|
1062
987
|
|
|
1063
988
|
/**
|
|
1064
989
|
* @typedef CustomObjectSchema
|
|
1065
|
-
* @property {string} [
|
|
1066
|
-
* @property {string} [
|
|
1067
|
-
* @property {string} [
|
|
1068
|
-
* @property {string} [
|
|
1069
|
-
* @property {string} [
|
|
1070
|
-
* @property {string} [
|
|
1071
|
-
* @property {string} [
|
|
1072
|
-
*
|
|
1073
|
-
* @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]
|
|
1074
1001
|
*/
|
|
1075
1002
|
|
|
1076
1003
|
/**
|
|
1077
1004
|
* @typedef CustomObjectDefinitionRequestSchema
|
|
1078
|
-
* @property {string} [type]
|
|
1079
|
-
* @property {string} [
|
|
1080
|
-
* @property {string} [
|
|
1081
|
-
* @property {string} [
|
|
1082
|
-
* @property {
|
|
1083
|
-
* for displaying custom object
|
|
1084
|
-
* @property {CustomObjectCustomFieldDefinitions[]} [field_definitions] - List
|
|
1085
|
-
* 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]
|
|
1086
1010
|
*/
|
|
1087
1011
|
|
|
1088
1012
|
/**
|
|
1089
|
-
* @typedef
|
|
1090
|
-
* @property {string} [
|
|
1091
|
-
* @property {string} [
|
|
1092
|
-
* @property {string} [
|
|
1093
|
-
* @property {string} [
|
|
1094
|
-
* @property {string} [
|
|
1095
|
-
* @property {string} [description]
|
|
1096
|
-
* @property {
|
|
1097
|
-
*
|
|
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]
|
|
1098
1044
|
*/
|
|
1099
1045
|
|
|
1100
1046
|
/**
|
|
1101
1047
|
* @typedef CustomObjectDefinitionDeleteResponseSchema
|
|
1102
|
-
* @property {boolean} [success]
|
|
1103
|
-
* @property {string} [message]
|
|
1104
|
-
* is deleted.
|
|
1048
|
+
* @property {boolean} [success]
|
|
1049
|
+
* @property {string} [message]
|
|
1105
1050
|
*/
|
|
1106
1051
|
|
|
1107
1052
|
/**
|
|
1108
|
-
* @typedef
|
|
1109
|
-
* @property {string} [url]
|
|
1110
|
-
* @property {number} [total_records]
|
|
1053
|
+
* @typedef CustomObjectEntryBulkUploadResponse
|
|
1054
|
+
* @property {string} [url]
|
|
1055
|
+
* @property {number} [total_records]
|
|
1111
1056
|
*/
|
|
1112
1057
|
|
|
1113
1058
|
/**
|
|
1114
|
-
* @typedef
|
|
1115
|
-
* @property {string} [
|
|
1116
|
-
* @property {string} [name]
|
|
1117
|
-
* @property {string} [type]
|
|
1059
|
+
* @typedef CustomObjectListItemDefinationSchema
|
|
1060
|
+
* @property {string} [_id]
|
|
1061
|
+
* @property {string} [name]
|
|
1062
|
+
* @property {string} [type]
|
|
1118
1063
|
*/
|
|
1119
1064
|
|
|
1120
1065
|
/**
|
|
1121
1066
|
* @typedef CustomObjectListItemSchema
|
|
1122
|
-
* @property {string} [
|
|
1123
|
-
* @property {string} [
|
|
1124
|
-
* @property {string} [
|
|
1125
|
-
* @property {string} [updated_at]
|
|
1126
|
-
* @property {string} [display_name]
|
|
1127
|
-
* @property {
|
|
1128
|
-
* @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]
|
|
1129
1074
|
*/
|
|
1130
1075
|
|
|
1131
1076
|
/**
|
|
1132
1077
|
* @typedef CustomObjectsSchema
|
|
1133
|
-
* @property {CustomObjectListItemSchema[]} [items]
|
|
1134
|
-
* object entries
|
|
1078
|
+
* @property {CustomObjectListItemSchema[]} [items]
|
|
1135
1079
|
* @property {Page} [page]
|
|
1136
1080
|
*/
|
|
1137
1081
|
|
|
1138
1082
|
/**
|
|
1139
|
-
* @typedef
|
|
1140
|
-
* @property {string} [
|
|
1141
|
-
* @property {string} [
|
|
1142
|
-
* @property {
|
|
1143
|
-
* @property {
|
|
1144
|
-
* @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]
|
|
1145
1089
|
*/
|
|
1146
1090
|
|
|
1147
1091
|
/**
|
|
1148
|
-
* @typedef
|
|
1149
|
-
* @property {string} [
|
|
1150
|
-
* @property {string} [status]
|
|
1151
|
-
* @property {string} [display_name]
|
|
1152
|
-
* @property {
|
|
1153
|
-
* @property {Object[]} [references]
|
|
1154
|
-
*
|
|
1155
|
-
* @property {string} [slug] - Slug of custom object entry
|
|
1156
|
-
* @property {string} [definition_slug] - Slug of custom object definition
|
|
1157
|
-
* @property {CustomObjectFieldDefinition[]} [fields] - List of custom fields
|
|
1158
|
-
* 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]
|
|
1159
1099
|
*/
|
|
1160
1100
|
|
|
1161
1101
|
/**
|
|
1162
1102
|
* @typedef CustomObjectBulkEntryInitiateDownload
|
|
1163
|
-
* @property {string} [message]
|
|
1164
|
-
* @property {string} [task_id]
|
|
1103
|
+
* @property {string} [message]
|
|
1104
|
+
* @property {string} [task_id]
|
|
1165
1105
|
*/
|
|
1166
1106
|
|
|
1167
1107
|
/**
|
|
1168
1108
|
* @typedef CustomObjectMetaSchema
|
|
1169
|
-
* @property {number} [mo_total_count]
|
|
1170
|
-
* @property {number} [mo_success_count]
|
|
1171
|
-
* @property {number} [mo_error_count]
|
|
1172
|
-
* @property {string} [mo_defintion_type]
|
|
1173
|
-
*/
|
|
1174
|
-
|
|
1175
|
-
/**
|
|
1176
|
-
* @typedef JobSchema
|
|
1177
|
-
* @property {string} [id] - Unique system generated id
|
|
1178
|
-
* @property {string[]} [jobs] - List of total jobs
|
|
1179
|
-
* @property {string[]} [finished_jobs] - List of finished jobs
|
|
1180
|
-
* @property {string[]} [error_jobs] - List of jobs which resulted in an error
|
|
1181
|
-
* @property {string[]} [errors_occured] - List of errors occurred in the job
|
|
1182
|
-
* @property {string} [company_id] - Company Identifer
|
|
1183
|
-
* @property {string} [status] - Status of job
|
|
1184
|
-
* @property {string} [action_type] - Type of job
|
|
1185
|
-
* @property {string} [entity] - Entity against which job is running
|
|
1186
|
-
* @property {string} [error_url] - URL which contains the file with errors
|
|
1187
|
-
* @property {number} [finished_count] - Number of items successfully finished
|
|
1188
|
-
* @property {number} [error_count] - Number of items in error
|
|
1189
|
-
* @property {number} [success_count] - Number of successful items
|
|
1190
|
-
* @property {number} [total_jobs] - Total number of jobs
|
|
1191
|
-
* @property {CustomObjectMetaSchema} [meta]
|
|
1192
|
-
* @property {string} [created_by] - Source from where the bulk job is created
|
|
1193
|
-
* @property {string} [created_at] - Date/Time when the job was created
|
|
1194
|
-
* @property {string} [updated_at] - Date/Time when the job was updated
|
|
1195
|
-
* @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]
|
|
1196
1113
|
*/
|
|
1197
1114
|
|
|
1198
1115
|
/**
|
|
1199
|
-
* @typedef
|
|
1200
|
-
* @property {
|
|
1201
|
-
* @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]
|
|
1202
1137
|
*/
|
|
1203
1138
|
|
|
1204
1139
|
/**
|
|
1205
1140
|
* @typedef CustomObjectBulkEntry
|
|
1206
|
-
* @property {
|
|
1141
|
+
* @property {CustomObjectJobSchema[]} [items]
|
|
1207
1142
|
* @property {Page} [page]
|
|
1208
1143
|
*/
|
|
1209
1144
|
|
|
1210
|
-
/**
|
|
1211
|
-
* @typedef MetafieldTypesSchema
|
|
1212
|
-
* @property {CustomFieldTypeSchema} [metafield_types]
|
|
1213
|
-
*/
|
|
1214
|
-
|
|
1215
1145
|
/**
|
|
1216
1146
|
* @typedef CustomFieldTypeSchema
|
|
1217
1147
|
* @property {StringSingleLine} [string_single_line]
|
|
@@ -1227,8 +1157,6 @@ const Joi = require("joi");
|
|
|
1227
1157
|
* @property {Url} [url]
|
|
1228
1158
|
* @property {Metaobject} [metaobject]
|
|
1229
1159
|
* @property {Product} [product]
|
|
1230
|
-
* @property {HTML} [html]
|
|
1231
|
-
* @property {Duration} [duration]
|
|
1232
1160
|
*/
|
|
1233
1161
|
|
|
1234
1162
|
/**
|
|
@@ -1251,164 +1179,130 @@ const Joi = require("joi");
|
|
|
1251
1179
|
* @property {SupportedValidationsMetaSchema} [meta]
|
|
1252
1180
|
*/
|
|
1253
1181
|
|
|
1254
|
-
/**
|
|
1255
|
-
* @typedef Duration
|
|
1256
|
-
* @property {string} [name] - Name data type of custom field
|
|
1257
|
-
* @property {boolean} [list_enabled] - Flag for listing enabled or not
|
|
1258
|
-
* @property {string} [type] - Type of custom field
|
|
1259
|
-
* @property {string} [category] - Category of custom field
|
|
1260
|
-
* @property {SupportedValidationsSchema[]} [supported_validations] - List of
|
|
1261
|
-
* validations available for the field
|
|
1262
|
-
*/
|
|
1263
|
-
|
|
1264
|
-
/**
|
|
1265
|
-
* @typedef HTML
|
|
1266
|
-
* @property {string} [name] - Name data type of custom field
|
|
1267
|
-
* @property {boolean} [list_enabled] - Flag for listing enabled or not
|
|
1268
|
-
* @property {string} [type] - Type of custom field
|
|
1269
|
-
* @property {SupportedValidationsSchema[]} [supported_validations] - List of
|
|
1270
|
-
* validations available for the field
|
|
1271
|
-
*/
|
|
1272
|
-
|
|
1273
1182
|
/**
|
|
1274
1183
|
* @typedef StringSingleLine
|
|
1275
|
-
* @property {string} [name]
|
|
1276
|
-
* @property {boolean} [list_enabled]
|
|
1277
|
-
* @property {string} [category]
|
|
1278
|
-
* @property {string} [type]
|
|
1279
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1280
|
-
* 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]
|
|
1281
1189
|
*/
|
|
1282
1190
|
|
|
1283
1191
|
/**
|
|
1284
1192
|
* @typedef StringMultiLine
|
|
1285
|
-
* @property {string} [name]
|
|
1286
|
-
* @property {boolean} [list_enabled]
|
|
1287
|
-
* @property {string} [category]
|
|
1288
|
-
* @property {string} [type]
|
|
1289
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1290
|
-
* 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]
|
|
1291
1198
|
*/
|
|
1292
1199
|
|
|
1293
1200
|
/**
|
|
1294
1201
|
* @typedef Dropdown
|
|
1295
|
-
* @property {string} [name]
|
|
1296
|
-
* @property {boolean} [list_enabled]
|
|
1297
|
-
* @property {string} [category]
|
|
1298
|
-
* @property {string} [type]
|
|
1299
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1300
|
-
* 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]
|
|
1301
1207
|
*/
|
|
1302
1208
|
|
|
1303
1209
|
/**
|
|
1304
1210
|
* @typedef Integer
|
|
1305
|
-
* @property {string} [name]
|
|
1306
|
-
* @property {boolean} [list_enabled]
|
|
1307
|
-
* @property {string} [type]
|
|
1308
|
-
* @property {string} [category]
|
|
1309
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1310
|
-
* 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]
|
|
1311
1216
|
*/
|
|
1312
1217
|
|
|
1313
1218
|
/**
|
|
1314
1219
|
* @typedef FloatType
|
|
1315
|
-
* @property {string} [name]
|
|
1316
|
-
* @property {boolean} [list_enabled]
|
|
1317
|
-
* @property {string} [type]
|
|
1318
|
-
* @property {string} [category]
|
|
1319
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1320
|
-
* 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]
|
|
1321
1225
|
*/
|
|
1322
1226
|
|
|
1323
1227
|
/**
|
|
1324
1228
|
* @typedef BooleanType
|
|
1325
|
-
* @property {string} [name]
|
|
1326
|
-
* @property {string} [category]
|
|
1327
|
-
* @property {boolean} [list_enabled]
|
|
1328
|
-
* @property {string} [type]
|
|
1329
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1330
|
-
* 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]
|
|
1331
1234
|
*/
|
|
1332
1235
|
|
|
1333
1236
|
/**
|
|
1334
1237
|
* @typedef Date
|
|
1335
|
-
* @property {string} [name]
|
|
1336
|
-
* @property {boolean} [list_enabled]
|
|
1337
|
-
* @property {string} [category]
|
|
1338
|
-
* @property {string} [type]
|
|
1339
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1340
|
-
* 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]
|
|
1341
1243
|
*/
|
|
1342
1244
|
|
|
1343
1245
|
/**
|
|
1344
1246
|
* @typedef Datetime
|
|
1345
|
-
* @property {string} [name]
|
|
1346
|
-
* @property {string} [category]
|
|
1347
|
-
* @property {boolean} [list_enabled]
|
|
1348
|
-
* @property {string} [type]
|
|
1349
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1350
|
-
* 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]
|
|
1351
1252
|
*/
|
|
1352
1253
|
|
|
1353
1254
|
/**
|
|
1354
1255
|
* @typedef Json
|
|
1355
|
-
* @property {string} [name]
|
|
1356
|
-
* @property {boolean} [list_enabled]
|
|
1357
|
-
* @property {string} [category]
|
|
1358
|
-
* @property {string} [type]
|
|
1359
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1360
|
-
* 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]
|
|
1361
1261
|
*/
|
|
1362
1262
|
|
|
1363
1263
|
/**
|
|
1364
1264
|
* @typedef File
|
|
1365
|
-
* @property {string} [name]
|
|
1366
|
-
* @property {string} [category]
|
|
1367
|
-
* @property {boolean} [list_enabled]
|
|
1368
|
-
* @property {string} [type]
|
|
1265
|
+
* @property {string} [name]
|
|
1266
|
+
* @property {string} [category]
|
|
1267
|
+
* @property {boolean} [list_enabled]
|
|
1268
|
+
* @property {string} [type]
|
|
1369
1269
|
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1370
1270
|
*/
|
|
1371
1271
|
|
|
1372
1272
|
/**
|
|
1373
1273
|
* @typedef Url
|
|
1374
|
-
* @property {string} [name]
|
|
1375
|
-
* @property {boolean} [list_enabled]
|
|
1376
|
-
* @property {string} [type]
|
|
1377
|
-
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1378
|
-
* validations available for the field
|
|
1274
|
+
* @property {string} [name]
|
|
1275
|
+
* @property {boolean} [list_enabled]
|
|
1276
|
+
* @property {string} [type]
|
|
1277
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1379
1278
|
*/
|
|
1380
1279
|
|
|
1381
1280
|
/**
|
|
1382
1281
|
* @typedef Metaobject
|
|
1383
|
-
* @property {string} [name]
|
|
1384
|
-
* @property {boolean} [list_enabled]
|
|
1385
|
-
*
|
|
1386
|
-
* @property {string} [
|
|
1387
|
-
* Custom Object belongs to
|
|
1388
|
-
* @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]
|
|
1389
1286
|
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1390
1287
|
*/
|
|
1391
1288
|
|
|
1392
1289
|
/**
|
|
1393
1290
|
* @typedef Product
|
|
1394
|
-
* @property {string} [name]
|
|
1395
|
-
* @property {boolean} [list_enabled]
|
|
1396
|
-
*
|
|
1397
|
-
* @property {string} [
|
|
1398
|
-
* Product is associated with
|
|
1399
|
-
* @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]
|
|
1400
1295
|
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1401
1296
|
*/
|
|
1402
1297
|
|
|
1403
1298
|
/**
|
|
1404
1299
|
* @typedef CustomObjectEntry
|
|
1405
|
-
* @property {string} [
|
|
1406
|
-
* @property {string} [name]
|
|
1407
|
-
* @property {string} [type]
|
|
1408
|
-
* @property {string} [updated_at]
|
|
1409
|
-
* @property {number} [entries_count]
|
|
1410
|
-
*
|
|
1411
|
-
* @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]
|
|
1412
1306
|
*/
|
|
1413
1307
|
|
|
1414
1308
|
/**
|
|
@@ -1419,33 +1313,21 @@ const Joi = require("joi");
|
|
|
1419
1313
|
|
|
1420
1314
|
/**
|
|
1421
1315
|
* @typedef CustomObjectEntryFieldSchema
|
|
1422
|
-
* @property {string} [
|
|
1423
|
-
* @property {
|
|
1424
|
-
*/
|
|
1425
|
-
|
|
1426
|
-
/**
|
|
1427
|
-
* @typedef CustomObjectEntryFieldSchemaWithoutID
|
|
1428
|
-
* @property {string} [slug] - Custom fields belonging to a custom object
|
|
1429
|
-
* @property {Object} [value] - Value of custom field inside a custom object
|
|
1316
|
+
* @property {string} [definition_id]
|
|
1317
|
+
* @property {Object[]} [value]
|
|
1430
1318
|
*/
|
|
1431
1319
|
|
|
1432
1320
|
/**
|
|
1433
1321
|
* @typedef CustomObjectRequestSchema
|
|
1434
|
-
* @property {string} [status]
|
|
1435
|
-
* @property {string} [
|
|
1436
|
-
* @property {CustomObjectEntryFieldSchema[]} [fields]
|
|
1437
|
-
*/
|
|
1438
|
-
|
|
1439
|
-
/**
|
|
1440
|
-
* @typedef CustomObjectRequestSchemaWithoutId
|
|
1441
|
-
* @property {string} [status] - Status of the custom object entry.
|
|
1442
|
-
* @property {CustomObjectEntryFieldSchemaWithoutID[]} [fields] - List of custom fields
|
|
1322
|
+
* @property {string} [status]
|
|
1323
|
+
* @property {string} [definition_id]
|
|
1324
|
+
* @property {CustomObjectEntryFieldSchema[]} [fields]
|
|
1443
1325
|
*/
|
|
1444
1326
|
|
|
1445
1327
|
/**
|
|
1446
1328
|
* @typedef CustomObjectBulkSchema
|
|
1447
|
-
* @property {string} [url]
|
|
1448
|
-
* @property {number} [total_records]
|
|
1329
|
+
* @property {string} [url]
|
|
1330
|
+
* @property {number} [total_records]
|
|
1449
1331
|
*/
|
|
1450
1332
|
|
|
1451
1333
|
/**
|
|
@@ -1510,14 +1392,6 @@ const Joi = require("joi");
|
|
|
1510
1392
|
*/
|
|
1511
1393
|
|
|
1512
1394
|
class ContentPlatformModel {
|
|
1513
|
-
/** @returns {ValidationError} */
|
|
1514
|
-
static ValidationError() {
|
|
1515
|
-
return Joi.object({
|
|
1516
|
-
message: Joi.string().allow("").required(),
|
|
1517
|
-
field: Joi.string().allow("").required(),
|
|
1518
|
-
});
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
1395
|
/** @returns {GenerateSEOContent} */
|
|
1522
1396
|
static GenerateSEOContent() {
|
|
1523
1397
|
return Joi.object({
|
|
@@ -1593,6 +1467,8 @@ class ContentPlatformModel {
|
|
|
1593
1467
|
app: Joi.string().allow(""),
|
|
1594
1468
|
_id: Joi.string().allow(""),
|
|
1595
1469
|
robots_txt: Joi.string().allow(""),
|
|
1470
|
+
sitemap_enabled: Joi.boolean(),
|
|
1471
|
+
additional_sitemap: Joi.string().allow(""),
|
|
1596
1472
|
cannonical_enabled: Joi.boolean(),
|
|
1597
1473
|
custom_meta_tags: Joi.array().items(ContentPlatformModel.CustomMetaTag()),
|
|
1598
1474
|
details: ContentPlatformModel.Detail(),
|
|
@@ -1737,8 +1613,8 @@ class ContentPlatformModel {
|
|
|
1737
1613
|
});
|
|
1738
1614
|
}
|
|
1739
1615
|
|
|
1740
|
-
/** @returns {
|
|
1741
|
-
static
|
|
1616
|
+
/** @returns {BlogGetResponse} */
|
|
1617
|
+
static BlogGetResponse() {
|
|
1742
1618
|
return Joi.object({
|
|
1743
1619
|
items: Joi.array().items(ContentPlatformModel.BlogSchema()),
|
|
1744
1620
|
page: ContentPlatformModel.Page(),
|
|
@@ -1783,7 +1659,7 @@ class ContentPlatformModel {
|
|
|
1783
1659
|
static BlogSchema() {
|
|
1784
1660
|
return Joi.object({
|
|
1785
1661
|
_id: Joi.string().allow(""),
|
|
1786
|
-
_custom_json: Joi.
|
|
1662
|
+
_custom_json: Joi.any(),
|
|
1787
1663
|
application: Joi.string().allow(""),
|
|
1788
1664
|
archived: Joi.boolean(),
|
|
1789
1665
|
author: ContentPlatformModel.Author(),
|
|
@@ -1861,71 +1737,11 @@ class ContentPlatformModel {
|
|
|
1861
1737
|
});
|
|
1862
1738
|
}
|
|
1863
1739
|
|
|
1864
|
-
/** @returns {
|
|
1865
|
-
static
|
|
1866
|
-
return Joi.object({
|
|
1867
|
-
enabled: Joi.boolean(),
|
|
1868
|
-
});
|
|
1869
|
-
}
|
|
1870
|
-
|
|
1871
|
-
/** @returns {DefaultSitemapConfig} */
|
|
1872
|
-
static DefaultSitemapConfig() {
|
|
1873
|
-
return Joi.object({
|
|
1874
|
-
root: ContentPlatformModel.DefaultSitemapIndividualConfig(),
|
|
1875
|
-
brand: ContentPlatformModel.DefaultSitemapIndividualConfig(),
|
|
1876
|
-
collections: ContentPlatformModel.DefaultSitemapIndividualConfig(),
|
|
1877
|
-
category_l1: ContentPlatformModel.DefaultSitemapIndividualConfig(),
|
|
1878
|
-
category_l2: ContentPlatformModel.DefaultSitemapIndividualConfig(),
|
|
1879
|
-
category_l3: ContentPlatformModel.DefaultSitemapIndividualConfig(),
|
|
1880
|
-
pages: ContentPlatformModel.DefaultSitemapIndividualConfig(),
|
|
1881
|
-
blog: ContentPlatformModel.DefaultSitemapIndividualConfig(),
|
|
1882
|
-
section: ContentPlatformModel.DefaultSitemapIndividualConfig(),
|
|
1883
|
-
faq: ContentPlatformModel.DefaultSitemapIndividualConfig(),
|
|
1884
|
-
sitemap: ContentPlatformModel.DefaultSitemapIndividualConfig(),
|
|
1885
|
-
});
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
|
-
/** @returns {SitemapConfigCreate} */
|
|
1889
|
-
static SitemapConfigCreate() {
|
|
1890
|
-
return Joi.object({
|
|
1891
|
-
name: Joi.string().allow(""),
|
|
1892
|
-
is_active: Joi.boolean(),
|
|
1893
|
-
sitemap: Joi.string().allow(""),
|
|
1894
|
-
});
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
/** @returns {SitemapConfig} */
|
|
1898
|
-
static SitemapConfig() {
|
|
1899
|
-
return Joi.object({
|
|
1900
|
-
name: Joi.string().allow(""),
|
|
1901
|
-
is_active: Joi.boolean(),
|
|
1902
|
-
sitemap: Joi.string().allow(""),
|
|
1903
|
-
created_at: Joi.string().allow(""),
|
|
1904
|
-
updated_at: Joi.string().allow(""),
|
|
1905
|
-
});
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
|
-
/** @returns {SitemapConfigurationList} */
|
|
1909
|
-
static SitemapConfigurationList() {
|
|
1910
|
-
return Joi.object({
|
|
1911
|
-
items: Joi.array().items(ContentPlatformModel.SitemapConfig()),
|
|
1912
|
-
page: ContentPlatformModel.Page(),
|
|
1913
|
-
});
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
/** @returns {SitemapConfigUpdate} */
|
|
1917
|
-
static SitemapConfigUpdate() {
|
|
1918
|
-
return Joi.object({
|
|
1919
|
-
is_active: Joi.boolean(),
|
|
1920
|
-
sitemap: Joi.string().allow(""),
|
|
1921
|
-
});
|
|
1922
|
-
}
|
|
1923
|
-
|
|
1924
|
-
/** @returns {BlogPayload} */
|
|
1925
|
-
static BlogPayload() {
|
|
1740
|
+
/** @returns {BlogRequest} */
|
|
1741
|
+
static BlogRequest() {
|
|
1926
1742
|
return Joi.object({
|
|
1927
1743
|
application: Joi.string().allow(""),
|
|
1928
|
-
_custom_json: Joi.
|
|
1744
|
+
_custom_json: Joi.any(),
|
|
1929
1745
|
author: ContentPlatformModel.Author(),
|
|
1930
1746
|
content: Joi.array().items(ContentPlatformModel.ResourceContent()),
|
|
1931
1747
|
feature_image: ContentPlatformModel.Asset(),
|
|
@@ -2063,7 +1879,7 @@ class ContentPlatformModel {
|
|
|
2063
1879
|
static HandpickedTagSchema() {
|
|
2064
1880
|
return Joi.object({
|
|
2065
1881
|
position: Joi.string().allow(""),
|
|
2066
|
-
attributes: Joi.
|
|
1882
|
+
attributes: Joi.any(),
|
|
2067
1883
|
name: Joi.string().allow(""),
|
|
2068
1884
|
url: Joi.string().allow(""),
|
|
2069
1885
|
type: Joi.string().allow(""),
|
|
@@ -2088,7 +1904,7 @@ class ContentPlatformModel {
|
|
|
2088
1904
|
type: Joi.string().allow(""),
|
|
2089
1905
|
url: Joi.string().allow(""),
|
|
2090
1906
|
position: Joi.string().allow(""),
|
|
2091
|
-
attributes: Joi.
|
|
1907
|
+
attributes: Joi.any(),
|
|
2092
1908
|
pages: Joi.array().items(Joi.any()),
|
|
2093
1909
|
content: Joi.string().allow(""),
|
|
2094
1910
|
});
|
|
@@ -2130,8 +1946,8 @@ class ContentPlatformModel {
|
|
|
2130
1946
|
});
|
|
2131
1947
|
}
|
|
2132
1948
|
|
|
2133
|
-
/** @returns {
|
|
2134
|
-
static
|
|
1949
|
+
/** @returns {TagDeleteSuccessResponse} */
|
|
1950
|
+
static TagDeleteSuccessResponse() {
|
|
2135
1951
|
return Joi.object({
|
|
2136
1952
|
success: Joi.boolean(),
|
|
2137
1953
|
});
|
|
@@ -2147,7 +1963,7 @@ class ContentPlatformModel {
|
|
|
2147
1963
|
info: Joi.string().allow(""),
|
|
2148
1964
|
request_id: Joi.string().allow(""),
|
|
2149
1965
|
stack_trace: Joi.string().allow(""),
|
|
2150
|
-
meta: Joi.
|
|
1966
|
+
meta: Joi.any(),
|
|
2151
1967
|
});
|
|
2152
1968
|
}
|
|
2153
1969
|
|
|
@@ -2169,7 +1985,7 @@ class ContentPlatformModel {
|
|
|
2169
1985
|
slug: Joi.string().allow(""),
|
|
2170
1986
|
application: Joi.string().allow(""),
|
|
2171
1987
|
icon_url: Joi.string().allow(""),
|
|
2172
|
-
_custom_json: Joi.
|
|
1988
|
+
_custom_json: Joi.any(),
|
|
2173
1989
|
});
|
|
2174
1990
|
}
|
|
2175
1991
|
|
|
@@ -2203,7 +2019,7 @@ class ContentPlatformModel {
|
|
|
2203
2019
|
slug: Joi.string().allow(""),
|
|
2204
2020
|
application: Joi.string().allow(""),
|
|
2205
2021
|
icon_url: Joi.string().allow(""),
|
|
2206
|
-
_custom_json: Joi.
|
|
2022
|
+
_custom_json: Joi.any(),
|
|
2207
2023
|
});
|
|
2208
2024
|
}
|
|
2209
2025
|
|
|
@@ -2297,8 +2113,8 @@ class ContentPlatformModel {
|
|
|
2297
2113
|
});
|
|
2298
2114
|
}
|
|
2299
2115
|
|
|
2300
|
-
/** @returns {
|
|
2301
|
-
static
|
|
2116
|
+
/** @returns {LandingPageGetResponse} */
|
|
2117
|
+
static LandingPageGetResponse() {
|
|
2302
2118
|
return Joi.object({
|
|
2303
2119
|
items: Joi.array().items(ContentPlatformModel.LandingPageSchema()),
|
|
2304
2120
|
page: ContentPlatformModel.Page(),
|
|
@@ -2316,19 +2132,19 @@ class ContentPlatformModel {
|
|
|
2316
2132
|
_id: Joi.string().allow(""),
|
|
2317
2133
|
application: Joi.string().allow(""),
|
|
2318
2134
|
archived: Joi.boolean(),
|
|
2319
|
-
_custom_json: Joi.
|
|
2135
|
+
_custom_json: Joi.any(),
|
|
2320
2136
|
});
|
|
2321
2137
|
}
|
|
2322
2138
|
|
|
2323
|
-
/** @returns {
|
|
2324
|
-
static
|
|
2139
|
+
/** @returns {DefaultNavigationResponse} */
|
|
2140
|
+
static DefaultNavigationResponse() {
|
|
2325
2141
|
return Joi.object({
|
|
2326
2142
|
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
2327
2143
|
});
|
|
2328
2144
|
}
|
|
2329
2145
|
|
|
2330
|
-
/** @returns {
|
|
2331
|
-
static
|
|
2146
|
+
/** @returns {NavigationGetResponse} */
|
|
2147
|
+
static NavigationGetResponse() {
|
|
2332
2148
|
return Joi.object({
|
|
2333
2149
|
items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
|
|
2334
2150
|
page: ContentPlatformModel.Page(),
|
|
@@ -2360,8 +2176,8 @@ class ContentPlatformModel {
|
|
|
2360
2176
|
});
|
|
2361
2177
|
}
|
|
2362
2178
|
|
|
2363
|
-
/** @returns {
|
|
2364
|
-
static
|
|
2179
|
+
/** @returns {NavigationRequest} */
|
|
2180
|
+
static NavigationRequest() {
|
|
2365
2181
|
return Joi.object({
|
|
2366
2182
|
name: Joi.string().allow(""),
|
|
2367
2183
|
slug: Joi.string().allow(""),
|
|
@@ -2371,8 +2187,8 @@ class ContentPlatformModel {
|
|
|
2371
2187
|
});
|
|
2372
2188
|
}
|
|
2373
2189
|
|
|
2374
|
-
/** @returns {
|
|
2375
|
-
static
|
|
2190
|
+
/** @returns {PageGetResponse} */
|
|
2191
|
+
static PageGetResponse() {
|
|
2376
2192
|
return Joi.object({
|
|
2377
2193
|
items: Joi.array().items(ContentPlatformModel.PageSchema()),
|
|
2378
2194
|
page: ContentPlatformModel.Page(),
|
|
@@ -2418,7 +2234,7 @@ class ContentPlatformModel {
|
|
|
2418
2234
|
feature_image: ContentPlatformModel.Asset(),
|
|
2419
2235
|
page_meta: Joi.array().items(Joi.any()),
|
|
2420
2236
|
_schedule: ContentPlatformModel.ScheduleSchema(),
|
|
2421
|
-
_custom_json: Joi.
|
|
2237
|
+
_custom_json: Joi.any(),
|
|
2422
2238
|
orientation: Joi.string().allow(""),
|
|
2423
2239
|
platform: Joi.string().allow(""),
|
|
2424
2240
|
published: Joi.boolean(),
|
|
@@ -2427,7 +2243,7 @@ class ContentPlatformModel {
|
|
|
2427
2243
|
title: Joi.string().allow(""),
|
|
2428
2244
|
type: Joi.string().allow(""),
|
|
2429
2245
|
seo: ContentPlatformModel.SEO(),
|
|
2430
|
-
visibility: Joi.
|
|
2246
|
+
visibility: Joi.any(),
|
|
2431
2247
|
archived: Joi.boolean(),
|
|
2432
2248
|
});
|
|
2433
2249
|
}
|
|
@@ -2439,13 +2255,13 @@ class ContentPlatformModel {
|
|
|
2439
2255
|
});
|
|
2440
2256
|
}
|
|
2441
2257
|
|
|
2442
|
-
/** @returns {
|
|
2443
|
-
static
|
|
2258
|
+
/** @returns {PageRequest} */
|
|
2259
|
+
static PageRequest() {
|
|
2444
2260
|
return Joi.object({
|
|
2445
2261
|
_schedule: ContentPlatformModel.CronSchedule(),
|
|
2446
2262
|
application: Joi.string().allow(""),
|
|
2447
2263
|
author: ContentPlatformModel.Author(),
|
|
2448
|
-
_custom_json: Joi.
|
|
2264
|
+
_custom_json: Joi.any(),
|
|
2449
2265
|
orientation: Joi.string().allow(""),
|
|
2450
2266
|
content: Joi.array().items(Joi.any()),
|
|
2451
2267
|
feature_image: ContentPlatformModel.Asset(),
|
|
@@ -2468,8 +2284,8 @@ class ContentPlatformModel {
|
|
|
2468
2284
|
});
|
|
2469
2285
|
}
|
|
2470
2286
|
|
|
2471
|
-
/** @returns {
|
|
2472
|
-
static
|
|
2287
|
+
/** @returns {PagePublishRequest} */
|
|
2288
|
+
static PagePublishRequest() {
|
|
2473
2289
|
return Joi.object({
|
|
2474
2290
|
publish: Joi.boolean(),
|
|
2475
2291
|
});
|
|
@@ -2484,8 +2300,8 @@ class ContentPlatformModel {
|
|
|
2484
2300
|
});
|
|
2485
2301
|
}
|
|
2486
2302
|
|
|
2487
|
-
/** @returns {
|
|
2488
|
-
static
|
|
2303
|
+
/** @returns {SlideshowGetResponse} */
|
|
2304
|
+
static SlideshowGetResponse() {
|
|
2489
2305
|
return Joi.object({
|
|
2490
2306
|
items: Joi.array().items(ContentPlatformModel.SlideshowSchema()),
|
|
2491
2307
|
page: ContentPlatformModel.Page(),
|
|
@@ -2504,12 +2320,12 @@ class ContentPlatformModel {
|
|
|
2504
2320
|
media: Joi.array().items(ContentPlatformModel.SlideshowMedia()),
|
|
2505
2321
|
active: Joi.boolean(),
|
|
2506
2322
|
archived: Joi.boolean(),
|
|
2507
|
-
_custom_json: Joi.
|
|
2323
|
+
_custom_json: Joi.any(),
|
|
2508
2324
|
});
|
|
2509
2325
|
}
|
|
2510
2326
|
|
|
2511
|
-
/** @returns {
|
|
2512
|
-
static
|
|
2327
|
+
/** @returns {SlideshowRequest} */
|
|
2328
|
+
static SlideshowRequest() {
|
|
2513
2329
|
return Joi.object({
|
|
2514
2330
|
slug: Joi.string().allow(""),
|
|
2515
2331
|
platform: Joi.string().allow(""),
|
|
@@ -2591,7 +2407,7 @@ class ContentPlatformModel {
|
|
|
2591
2407
|
sub_type: Joi.string().allow(""),
|
|
2592
2408
|
_id: Joi.string().allow(""),
|
|
2593
2409
|
position: Joi.string().allow(""),
|
|
2594
|
-
attributes: Joi.
|
|
2410
|
+
attributes: Joi.any(),
|
|
2595
2411
|
content: Joi.string().allow(""),
|
|
2596
2412
|
pages: Joi.array().items(Joi.any()),
|
|
2597
2413
|
__source: ContentPlatformModel.TagSourceSchema(),
|
|
@@ -2634,18 +2450,23 @@ class ContentPlatformModel {
|
|
|
2634
2450
|
/** @returns {FieldDefinitionSchema} */
|
|
2635
2451
|
static FieldDefinitionSchema() {
|
|
2636
2452
|
return Joi.object({
|
|
2637
|
-
|
|
2453
|
+
_id: Joi.string().allow(""),
|
|
2454
|
+
creator: Joi.string().allow(""),
|
|
2638
2455
|
resource: Joi.string().allow(""),
|
|
2639
2456
|
name: Joi.string().allow(""),
|
|
2640
2457
|
namespace: Joi.string().allow(""),
|
|
2641
|
-
|
|
2458
|
+
key: Joi.string().allow(""),
|
|
2642
2459
|
description: Joi.string().allow(""),
|
|
2643
2460
|
type: Joi.string().allow(""),
|
|
2644
2461
|
multi_value: Joi.boolean(),
|
|
2645
2462
|
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2646
2463
|
company_id: Joi.string().allow(""),
|
|
2464
|
+
created_by: Joi.string().allow(""),
|
|
2465
|
+
updated_by: Joi.string().allow(""),
|
|
2647
2466
|
required: Joi.boolean(),
|
|
2648
2467
|
is_deleted: Joi.boolean(),
|
|
2468
|
+
created_at: Joi.string().allow(""),
|
|
2469
|
+
updated_at: Joi.string().allow(""),
|
|
2649
2470
|
type_name: Joi.string().allow(""),
|
|
2650
2471
|
invalid_fields_count: Joi.number(),
|
|
2651
2472
|
});
|
|
@@ -2662,8 +2483,9 @@ class ContentPlatformModel {
|
|
|
2662
2483
|
/** @returns {CustomFieldDefinitionRequestSchema} */
|
|
2663
2484
|
static CustomFieldDefinitionRequestSchema() {
|
|
2664
2485
|
return Joi.object({
|
|
2486
|
+
resource: Joi.string().allow(""),
|
|
2665
2487
|
type: Joi.string().allow(""),
|
|
2666
|
-
|
|
2488
|
+
key: Joi.string().allow(""),
|
|
2667
2489
|
namespace: Joi.string().allow(""),
|
|
2668
2490
|
multi_value: Joi.boolean(),
|
|
2669
2491
|
name: Joi.string().allow(""),
|
|
@@ -2681,7 +2503,7 @@ class ContentPlatformModel {
|
|
|
2681
2503
|
name: Joi.string().allow(""),
|
|
2682
2504
|
multi_value: Joi.boolean(),
|
|
2683
2505
|
required: Joi.boolean(),
|
|
2684
|
-
|
|
2506
|
+
key: Joi.string().allow(""),
|
|
2685
2507
|
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2686
2508
|
action: Joi.string().allow(""),
|
|
2687
2509
|
});
|
|
@@ -2690,6 +2512,7 @@ class ContentPlatformModel {
|
|
|
2690
2512
|
/** @returns {CustomObjectDefinitionUpdateRequestSchema} */
|
|
2691
2513
|
static CustomObjectDefinitionUpdateRequestSchema() {
|
|
2692
2514
|
return Joi.object({
|
|
2515
|
+
type: Joi.string().allow(""),
|
|
2693
2516
|
description: Joi.string().allow(""),
|
|
2694
2517
|
name: Joi.string().allow(""),
|
|
2695
2518
|
display_name_key: Joi.string().allow(""),
|
|
@@ -2702,39 +2525,21 @@ class ContentPlatformModel {
|
|
|
2702
2525
|
/** @returns {CustomFieldDefinitionDetailResSchema} */
|
|
2703
2526
|
static CustomFieldDefinitionDetailResSchema() {
|
|
2704
2527
|
return Joi.object({
|
|
2528
|
+
creator: Joi.string().allow(""),
|
|
2705
2529
|
resource: Joi.string().allow(""),
|
|
2706
2530
|
name: Joi.string().allow(""),
|
|
2707
2531
|
namespace: Joi.string().allow(""),
|
|
2708
|
-
|
|
2709
|
-
description: Joi.string().allow(""),
|
|
2710
|
-
type: Joi.string().allow(""),
|
|
2711
|
-
multi_value: Joi.boolean(),
|
|
2712
|
-
company_id: Joi.string().allow(""),
|
|
2713
|
-
application_id: Joi.string().allow(""),
|
|
2714
|
-
required: Joi.boolean(),
|
|
2715
|
-
is_deleted: Joi.boolean(),
|
|
2716
|
-
id: Joi.string().allow(""),
|
|
2717
|
-
validations: Joi.array().items(Joi.any()),
|
|
2718
|
-
created_at: Joi.string().allow(""),
|
|
2719
|
-
updated_at: Joi.string().allow(""),
|
|
2720
|
-
});
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2723
|
-
/** @returns {MetaFieldDefinitionDetailResSchema} */
|
|
2724
|
-
static MetaFieldDefinitionDetailResSchema() {
|
|
2725
|
-
return Joi.object({
|
|
2726
|
-
resource: Joi.string().allow(""),
|
|
2727
|
-
name: Joi.string().allow(""),
|
|
2728
|
-
namespace: Joi.string().allow(""),
|
|
2729
|
-
slug: Joi.string().allow(""),
|
|
2532
|
+
key: Joi.string().allow(""),
|
|
2730
2533
|
description: Joi.string().allow(""),
|
|
2731
2534
|
type: Joi.string().allow(""),
|
|
2732
2535
|
multi_value: Joi.boolean(),
|
|
2733
2536
|
company_id: Joi.string().allow(""),
|
|
2734
2537
|
application_id: Joi.string().allow(""),
|
|
2538
|
+
created_by: Joi.string().allow(""),
|
|
2539
|
+
updated_by: Joi.string().allow(""),
|
|
2735
2540
|
required: Joi.boolean(),
|
|
2736
2541
|
is_deleted: Joi.boolean(),
|
|
2737
|
-
|
|
2542
|
+
_id: Joi.string().allow(""),
|
|
2738
2543
|
validations: Joi.array().items(Joi.any()),
|
|
2739
2544
|
created_at: Joi.string().allow(""),
|
|
2740
2545
|
updated_at: Joi.string().allow(""),
|
|
@@ -2759,17 +2564,20 @@ class ContentPlatformModel {
|
|
|
2759
2564
|
/** @returns {CustomFieldSchema} */
|
|
2760
2565
|
static CustomFieldSchema() {
|
|
2761
2566
|
return Joi.object({
|
|
2762
|
-
|
|
2567
|
+
_id: Joi.string().allow(""),
|
|
2763
2568
|
namespace: Joi.string().allow(""),
|
|
2764
|
-
|
|
2569
|
+
key: Joi.string().allow(""),
|
|
2765
2570
|
resource: Joi.string().allow(""),
|
|
2571
|
+
creator: Joi.string().allow(""),
|
|
2766
2572
|
value: Joi.array().items(ContentPlatformModel.CustomFieldValue()),
|
|
2767
|
-
|
|
2573
|
+
resource_id: Joi.string().allow(""),
|
|
2768
2574
|
type: Joi.string().allow(""),
|
|
2769
2575
|
multi_value: Joi.boolean(),
|
|
2770
2576
|
company_id: Joi.string().allow(""),
|
|
2577
|
+
definition_id: Joi.string().allow(""),
|
|
2771
2578
|
has_invalid_values: Joi.boolean(),
|
|
2772
2579
|
invalid_value_errors: Joi.array().items(Joi.any()),
|
|
2580
|
+
created_by: Joi.string().allow(""),
|
|
2773
2581
|
is_deleted: Joi.boolean(),
|
|
2774
2582
|
created_at: Joi.string().allow(""),
|
|
2775
2583
|
updated_at: Joi.string().allow(""),
|
|
@@ -2784,14 +2592,6 @@ class ContentPlatformModel {
|
|
|
2784
2592
|
});
|
|
2785
2593
|
}
|
|
2786
2594
|
|
|
2787
|
-
/** @returns {CustomFieldsDeleteSchema} */
|
|
2788
|
-
static CustomFieldsDeleteSchema() {
|
|
2789
|
-
return Joi.object({
|
|
2790
|
-
success: Joi.boolean(),
|
|
2791
|
-
message: Joi.string().allow(""),
|
|
2792
|
-
});
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
2595
|
/** @returns {CustomFieldsResponseByResourceIdSchema} */
|
|
2796
2596
|
static CustomFieldsResponseByResourceIdSchema() {
|
|
2797
2597
|
return Joi.object({
|
|
@@ -2803,8 +2603,7 @@ class ContentPlatformModel {
|
|
|
2803
2603
|
static CustomField() {
|
|
2804
2604
|
return Joi.object({
|
|
2805
2605
|
value: Joi.array().items(Joi.any()),
|
|
2806
|
-
|
|
2807
|
-
slug: Joi.string().allow(""),
|
|
2606
|
+
definition_id: Joi.string().allow(""),
|
|
2808
2607
|
});
|
|
2809
2608
|
}
|
|
2810
2609
|
|
|
@@ -2818,13 +2617,16 @@ class ContentPlatformModel {
|
|
|
2818
2617
|
/** @returns {CustomObjectSchema} */
|
|
2819
2618
|
static CustomObjectSchema() {
|
|
2820
2619
|
return Joi.object({
|
|
2821
|
-
|
|
2620
|
+
_id: Joi.string().allow(""),
|
|
2621
|
+
creator: Joi.string().allow(""),
|
|
2822
2622
|
company_id: Joi.string().allow(""),
|
|
2823
2623
|
application_id: Joi.string().allow(""),
|
|
2624
|
+
created_by: Joi.string().allow(""),
|
|
2625
|
+
updated_by: Joi.string().allow(""),
|
|
2824
2626
|
status: Joi.string().allow(""),
|
|
2825
2627
|
type: Joi.string().allow(""),
|
|
2826
|
-
definition_slug: Joi.string().allow(""),
|
|
2827
2628
|
display_name: Joi.string().allow(""),
|
|
2629
|
+
definition_id: Joi.string().allow(""),
|
|
2828
2630
|
fields: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
|
|
2829
2631
|
});
|
|
2830
2632
|
}
|
|
@@ -2833,7 +2635,6 @@ class ContentPlatformModel {
|
|
|
2833
2635
|
static CustomObjectDefinitionRequestSchema() {
|
|
2834
2636
|
return Joi.object({
|
|
2835
2637
|
type: Joi.string().allow(""),
|
|
2836
|
-
definition_slug: Joi.string().allow(""),
|
|
2837
2638
|
description: Joi.string().allow(""),
|
|
2838
2639
|
name: Joi.string().allow(""),
|
|
2839
2640
|
display_name_key: Joi.string().allow(""),
|
|
@@ -2843,17 +2644,42 @@ class ContentPlatformModel {
|
|
|
2843
2644
|
});
|
|
2844
2645
|
}
|
|
2845
2646
|
|
|
2846
|
-
/** @returns {
|
|
2847
|
-
static
|
|
2647
|
+
/** @returns {CustomObjectCustomFieldDefinitionResSchema} */
|
|
2648
|
+
static CustomObjectCustomFieldDefinitionResSchema() {
|
|
2848
2649
|
return Joi.object({
|
|
2849
|
-
|
|
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(""),
|
|
2850
2674
|
name: Joi.string().allow(""),
|
|
2851
2675
|
type: Joi.string().allow(""),
|
|
2852
|
-
definition_slug: Joi.string().allow(""),
|
|
2853
2676
|
display_name_key: Joi.string().allow(""),
|
|
2854
2677
|
description: Joi.string().allow(""),
|
|
2678
|
+
creator: Joi.string().allow(""),
|
|
2679
|
+
created_by: Joi.string().allow(""),
|
|
2680
|
+
updated_by: Joi.string().allow(""),
|
|
2855
2681
|
field_definitions: Joi.array().items(
|
|
2856
|
-
ContentPlatformModel.
|
|
2682
|
+
ContentPlatformModel.CustomObjectCustomFieldDefinitionResSchema()
|
|
2857
2683
|
),
|
|
2858
2684
|
});
|
|
2859
2685
|
}
|
|
@@ -2866,18 +2692,18 @@ class ContentPlatformModel {
|
|
|
2866
2692
|
});
|
|
2867
2693
|
}
|
|
2868
2694
|
|
|
2869
|
-
/** @returns {
|
|
2870
|
-
static
|
|
2695
|
+
/** @returns {CustomObjectEntryBulkUploadResponse} */
|
|
2696
|
+
static CustomObjectEntryBulkUploadResponse() {
|
|
2871
2697
|
return Joi.object({
|
|
2872
2698
|
url: Joi.string().allow(""),
|
|
2873
2699
|
total_records: Joi.number(),
|
|
2874
2700
|
});
|
|
2875
2701
|
}
|
|
2876
2702
|
|
|
2877
|
-
/** @returns {
|
|
2878
|
-
static
|
|
2703
|
+
/** @returns {CustomObjectListItemDefinationSchema} */
|
|
2704
|
+
static CustomObjectListItemDefinationSchema() {
|
|
2879
2705
|
return Joi.object({
|
|
2880
|
-
|
|
2706
|
+
_id: Joi.string().allow(""),
|
|
2881
2707
|
name: Joi.string().allow(""),
|
|
2882
2708
|
type: Joi.string().allow(""),
|
|
2883
2709
|
});
|
|
@@ -2886,12 +2712,12 @@ class ContentPlatformModel {
|
|
|
2886
2712
|
/** @returns {CustomObjectListItemSchema} */
|
|
2887
2713
|
static CustomObjectListItemSchema() {
|
|
2888
2714
|
return Joi.object({
|
|
2889
|
-
|
|
2715
|
+
_id: Joi.string().allow(""),
|
|
2716
|
+
definition_id: Joi.string().allow(""),
|
|
2890
2717
|
status: Joi.string().allow(""),
|
|
2891
|
-
created_at: Joi.string().allow(""),
|
|
2892
2718
|
updated_at: Joi.string().allow(""),
|
|
2893
2719
|
display_name: Joi.string().allow(""),
|
|
2894
|
-
definition: ContentPlatformModel.
|
|
2720
|
+
definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
|
|
2895
2721
|
references: Joi.number(),
|
|
2896
2722
|
});
|
|
2897
2723
|
}
|
|
@@ -2906,30 +2732,26 @@ class ContentPlatformModel {
|
|
|
2906
2732
|
});
|
|
2907
2733
|
}
|
|
2908
2734
|
|
|
2909
|
-
/** @returns {
|
|
2910
|
-
static
|
|
2735
|
+
/** @returns {CustomObjectFieldSchema} */
|
|
2736
|
+
static CustomObjectFieldSchema() {
|
|
2911
2737
|
return Joi.object({
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
namespace: Joi.string().allow(""),
|
|
2738
|
+
_id: Joi.string().allow(""),
|
|
2739
|
+
key: Joi.string().allow(""),
|
|
2915
2740
|
value: Joi.array().items(Joi.any()),
|
|
2916
2741
|
type: Joi.string().allow(""),
|
|
2742
|
+
definition_id: Joi.string().allow(""),
|
|
2917
2743
|
});
|
|
2918
2744
|
}
|
|
2919
2745
|
|
|
2920
|
-
/** @returns {
|
|
2921
|
-
static
|
|
2746
|
+
/** @returns {CustomObjectByIdSchema} */
|
|
2747
|
+
static CustomObjectByIdSchema() {
|
|
2922
2748
|
return Joi.object({
|
|
2923
|
-
|
|
2749
|
+
_id: Joi.string().allow(""),
|
|
2924
2750
|
status: Joi.string().allow(""),
|
|
2925
2751
|
display_name: Joi.string().allow(""),
|
|
2926
|
-
definition: ContentPlatformModel.
|
|
2752
|
+
definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
|
|
2927
2753
|
references: Joi.array().items(Joi.any()),
|
|
2928
|
-
|
|
2929
|
-
definition_slug: Joi.string().allow(""),
|
|
2930
|
-
fields: Joi.array().items(
|
|
2931
|
-
ContentPlatformModel.CustomObjectFieldDefinition()
|
|
2932
|
-
),
|
|
2754
|
+
fields: Joi.array().items(ContentPlatformModel.CustomObjectFieldSchema()),
|
|
2933
2755
|
});
|
|
2934
2756
|
}
|
|
2935
2757
|
|
|
@@ -2951,15 +2773,17 @@ class ContentPlatformModel {
|
|
|
2951
2773
|
});
|
|
2952
2774
|
}
|
|
2953
2775
|
|
|
2954
|
-
/** @returns {
|
|
2955
|
-
static
|
|
2776
|
+
/** @returns {CustomObjectJobSchema} */
|
|
2777
|
+
static CustomObjectJobSchema() {
|
|
2956
2778
|
return Joi.object({
|
|
2957
|
-
|
|
2779
|
+
_id: Joi.string().allow(""),
|
|
2958
2780
|
jobs: Joi.array().items(Joi.string().allow("")),
|
|
2959
2781
|
finished_jobs: Joi.array().items(Joi.string().allow("")),
|
|
2960
2782
|
error_jobs: Joi.array().items(Joi.string().allow("")),
|
|
2961
2783
|
errors_occured: Joi.array().items(Joi.string().allow("")),
|
|
2962
2784
|
company_id: Joi.string().allow(""),
|
|
2785
|
+
creator: Joi.string().allow(""),
|
|
2786
|
+
url: Joi.string().allow(""),
|
|
2963
2787
|
status: Joi.string().allow(""),
|
|
2964
2788
|
action_type: Joi.string().allow(""),
|
|
2965
2789
|
entity: Joi.string().allow(""),
|
|
@@ -2972,33 +2796,17 @@ class ContentPlatformModel {
|
|
|
2972
2796
|
created_by: Joi.string().allow(""),
|
|
2973
2797
|
created_at: Joi.string().allow(""),
|
|
2974
2798
|
updated_at: Joi.string().allow(""),
|
|
2975
|
-
application_id: Joi.string().allow(""),
|
|
2976
|
-
});
|
|
2977
|
-
}
|
|
2978
|
-
|
|
2979
|
-
/** @returns {CustomFieldBulkEntry} */
|
|
2980
|
-
static CustomFieldBulkEntry() {
|
|
2981
|
-
return Joi.object({
|
|
2982
|
-
items: Joi.array().items(ContentPlatformModel.JobSchema()),
|
|
2983
|
-
page: ContentPlatformModel.Page(),
|
|
2984
2799
|
});
|
|
2985
2800
|
}
|
|
2986
2801
|
|
|
2987
2802
|
/** @returns {CustomObjectBulkEntry} */
|
|
2988
2803
|
static CustomObjectBulkEntry() {
|
|
2989
2804
|
return Joi.object({
|
|
2990
|
-
items: Joi.array().items(ContentPlatformModel.
|
|
2805
|
+
items: Joi.array().items(ContentPlatformModel.CustomObjectJobSchema()),
|
|
2991
2806
|
page: ContentPlatformModel.Page(),
|
|
2992
2807
|
});
|
|
2993
2808
|
}
|
|
2994
2809
|
|
|
2995
|
-
/** @returns {MetafieldTypesSchema} */
|
|
2996
|
-
static MetafieldTypesSchema() {
|
|
2997
|
-
return Joi.object({
|
|
2998
|
-
metafield_types: ContentPlatformModel.CustomFieldTypeSchema(),
|
|
2999
|
-
});
|
|
3000
|
-
}
|
|
3001
|
-
|
|
3002
2810
|
/** @returns {CustomFieldTypeSchema} */
|
|
3003
2811
|
static CustomFieldTypeSchema() {
|
|
3004
2812
|
return Joi.object({
|
|
@@ -3015,8 +2823,6 @@ class ContentPlatformModel {
|
|
|
3015
2823
|
url: ContentPlatformModel.Url(),
|
|
3016
2824
|
metaobject: ContentPlatformModel.Metaobject(),
|
|
3017
2825
|
product: ContentPlatformModel.Product(),
|
|
3018
|
-
html: ContentPlatformModel.HTML(),
|
|
3019
|
-
duration: ContentPlatformModel.Duration(),
|
|
3020
2826
|
});
|
|
3021
2827
|
}
|
|
3022
2828
|
|
|
@@ -3048,31 +2854,6 @@ class ContentPlatformModel {
|
|
|
3048
2854
|
});
|
|
3049
2855
|
}
|
|
3050
2856
|
|
|
3051
|
-
/** @returns {Duration} */
|
|
3052
|
-
static Duration() {
|
|
3053
|
-
return Joi.object({
|
|
3054
|
-
name: Joi.string().allow(""),
|
|
3055
|
-
list_enabled: Joi.boolean(),
|
|
3056
|
-
type: Joi.string().allow(""),
|
|
3057
|
-
category: Joi.string().allow(""),
|
|
3058
|
-
supported_validations: Joi.array().items(
|
|
3059
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
3060
|
-
),
|
|
3061
|
-
});
|
|
3062
|
-
}
|
|
3063
|
-
|
|
3064
|
-
/** @returns {HTML} */
|
|
3065
|
-
static HTML() {
|
|
3066
|
-
return Joi.object({
|
|
3067
|
-
name: Joi.string().allow(""),
|
|
3068
|
-
list_enabled: Joi.boolean(),
|
|
3069
|
-
type: Joi.string().allow(""),
|
|
3070
|
-
supported_validations: Joi.array().items(
|
|
3071
|
-
ContentPlatformModel.SupportedValidationsSchema()
|
|
3072
|
-
),
|
|
3073
|
-
});
|
|
3074
|
-
}
|
|
3075
|
-
|
|
3076
2857
|
/** @returns {StringSingleLine} */
|
|
3077
2858
|
static StringSingleLine() {
|
|
3078
2859
|
return Joi.object({
|
|
@@ -3244,7 +3025,7 @@ class ContentPlatformModel {
|
|
|
3244
3025
|
/** @returns {CustomObjectEntry} */
|
|
3245
3026
|
static CustomObjectEntry() {
|
|
3246
3027
|
return Joi.object({
|
|
3247
|
-
|
|
3028
|
+
_id: Joi.string().allow(""),
|
|
3248
3029
|
name: Joi.string().allow(""),
|
|
3249
3030
|
type: Joi.string().allow(""),
|
|
3250
3031
|
updated_at: Joi.string().allow(""),
|
|
@@ -3264,16 +3045,8 @@ class ContentPlatformModel {
|
|
|
3264
3045
|
/** @returns {CustomObjectEntryFieldSchema} */
|
|
3265
3046
|
static CustomObjectEntryFieldSchema() {
|
|
3266
3047
|
return Joi.object({
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
});
|
|
3270
|
-
}
|
|
3271
|
-
|
|
3272
|
-
/** @returns {CustomObjectEntryFieldSchemaWithoutID} */
|
|
3273
|
-
static CustomObjectEntryFieldSchemaWithoutID() {
|
|
3274
|
-
return Joi.object({
|
|
3275
|
-
slug: Joi.string().allow(""),
|
|
3276
|
-
value: Joi.any(),
|
|
3048
|
+
definition_id: Joi.string().allow(""),
|
|
3049
|
+
value: Joi.array().items(Joi.any()),
|
|
3277
3050
|
});
|
|
3278
3051
|
}
|
|
3279
3052
|
|
|
@@ -3281,23 +3054,13 @@ class ContentPlatformModel {
|
|
|
3281
3054
|
static CustomObjectRequestSchema() {
|
|
3282
3055
|
return Joi.object({
|
|
3283
3056
|
status: Joi.string().allow(""),
|
|
3284
|
-
|
|
3057
|
+
definition_id: Joi.string().allow(""),
|
|
3285
3058
|
fields: Joi.array().items(
|
|
3286
3059
|
ContentPlatformModel.CustomObjectEntryFieldSchema()
|
|
3287
3060
|
),
|
|
3288
3061
|
});
|
|
3289
3062
|
}
|
|
3290
3063
|
|
|
3291
|
-
/** @returns {CustomObjectRequestSchemaWithoutId} */
|
|
3292
|
-
static CustomObjectRequestSchemaWithoutId() {
|
|
3293
|
-
return Joi.object({
|
|
3294
|
-
status: Joi.string().allow(""),
|
|
3295
|
-
fields: Joi.array().items(
|
|
3296
|
-
ContentPlatformModel.CustomObjectEntryFieldSchemaWithoutID()
|
|
3297
|
-
),
|
|
3298
|
-
});
|
|
3299
|
-
}
|
|
3300
|
-
|
|
3301
3064
|
/** @returns {CustomObjectBulkSchema} */
|
|
3302
3065
|
static CustomObjectBulkSchema() {
|
|
3303
3066
|
return Joi.object({
|