@gofynd/fdk-client-javascript 1.3.11-beta.6 → 1.3.11-beta.8
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/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +5 -3
- package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
- package/sdk/application/Cart/CartApplicationModel.js +74 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationValidator.js +4 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
- package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
- package/sdk/application/Content/ContentApplicationClient.js +246 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
- package/sdk/application/Content/ContentApplicationModel.js +252 -0
- package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
- package/sdk/application/Content/ContentApplicationValidator.js +41 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
- package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +32 -8
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
- package/sdk/application/Order/OrderApplicationValidator.js +8 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
- package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
- package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
- package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
- package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
- package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
- package/sdk/application/User/UserApplicationClient.d.ts +33 -0
- package/sdk/application/User/UserApplicationClient.js +239 -0
- package/sdk/application/User/UserApplicationModel.d.ts +28 -13
- package/sdk/application/User/UserApplicationModel.js +36 -12
- package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
- package/sdk/application/User/UserApplicationValidator.js +36 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
- package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
- package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
- package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
- package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
- package/sdk/platform/Cart/CartPlatformModel.js +71 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
- package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3630 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +310 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -5
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
- package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
- package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1030 -468
- package/sdk/platform/Order/OrderPlatformModel.js +1176 -523
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
- package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
- package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +4 -2
- package/sdk/platform/PlatformClient.js +8 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
- package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
- package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
- package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
- package/sdk/platform/User/UserPlatformModel.js +256 -5
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
- package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
- package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
- package/sdk/public/Billing/BillingPublicClient.js +116 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
- package/sdk/public/Billing/BillingPublicModel.js +96 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
- package/sdk/public/Billing/BillingPublicValidator.js +19 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +114 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
- package/sdk/public/Content/ContentPublicModel.js +60 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +4 -0
- package/sdk/public/PublicClient.js +8 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
- package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
|
@@ -116,6 +116,15 @@ const Joi = require("joi");
|
|
|
116
116
|
* @property {string} [title]
|
|
117
117
|
*/
|
|
118
118
|
|
|
119
|
+
/**
|
|
120
|
+
* @typedef BooleanType
|
|
121
|
+
* @property {string} [category]
|
|
122
|
+
* @property {boolean} [list_enabled]
|
|
123
|
+
* @property {string} [name]
|
|
124
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
125
|
+
* @property {string} [type]
|
|
126
|
+
*/
|
|
127
|
+
|
|
119
128
|
/**
|
|
120
129
|
* @typedef CategoryRequestSchema
|
|
121
130
|
* @property {string} [slug]
|
|
@@ -232,6 +241,117 @@ const Joi = require("joi");
|
|
|
232
241
|
* @property {string} [start]
|
|
233
242
|
*/
|
|
234
243
|
|
|
244
|
+
/**
|
|
245
|
+
* @typedef CustomDataDeleteSchema
|
|
246
|
+
* @property {string} [message]
|
|
247
|
+
* @property {boolean} [success]
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @typedef CustomField
|
|
252
|
+
* @property {string} [definition_id]
|
|
253
|
+
* @property {Object[]} [value]
|
|
254
|
+
*/
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @typedef CustomFieldDefinitionDetailResSchema
|
|
258
|
+
* @property {string} [_id]
|
|
259
|
+
* @property {string} [application_id]
|
|
260
|
+
* @property {string} [company_id]
|
|
261
|
+
* @property {string} [created_at]
|
|
262
|
+
* @property {string} [created_by]
|
|
263
|
+
* @property {string} [creator]
|
|
264
|
+
* @property {string} [description]
|
|
265
|
+
* @property {boolean} [is_deleted]
|
|
266
|
+
* @property {string} [key]
|
|
267
|
+
* @property {boolean} [multi_value]
|
|
268
|
+
* @property {string} [name]
|
|
269
|
+
* @property {string} [namespace]
|
|
270
|
+
* @property {boolean} [required]
|
|
271
|
+
* @property {string} [resource]
|
|
272
|
+
* @property {string} [type]
|
|
273
|
+
* @property {string} [updated_at]
|
|
274
|
+
* @property {string} [updated_by]
|
|
275
|
+
* @property {Object[]} [validations]
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @typedef CustomFieldDefinitionRequestSchema
|
|
280
|
+
* @property {string} [description]
|
|
281
|
+
* @property {string} [key]
|
|
282
|
+
* @property {boolean} [multi_value]
|
|
283
|
+
* @property {string} [name]
|
|
284
|
+
* @property {string} [namespace]
|
|
285
|
+
* @property {string} [resource]
|
|
286
|
+
* @property {string} [type]
|
|
287
|
+
* @property {FieldValidations[]} [validations]
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @typedef CustomFieldDefinitionsSchema
|
|
292
|
+
* @property {FieldDefinitionSchema[]} [items]
|
|
293
|
+
* @property {Page} [page]
|
|
294
|
+
*/
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @typedef CustomFieldRequestSchema
|
|
298
|
+
* @property {CustomField[]} [fields]
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @typedef CustomFieldSchema
|
|
303
|
+
* @property {string} [_id]
|
|
304
|
+
* @property {string} [company_id]
|
|
305
|
+
* @property {string} [created_at]
|
|
306
|
+
* @property {string} [created_by]
|
|
307
|
+
* @property {string} [creator]
|
|
308
|
+
* @property {string} [definition_id]
|
|
309
|
+
* @property {boolean} [has_invalid_values]
|
|
310
|
+
* @property {Object[]} [invalid_value_errors]
|
|
311
|
+
* @property {boolean} [is_deleted]
|
|
312
|
+
* @property {string} [key]
|
|
313
|
+
* @property {boolean} [multi_value]
|
|
314
|
+
* @property {string} [namespace]
|
|
315
|
+
* @property {string} [resource]
|
|
316
|
+
* @property {string} [resource_id]
|
|
317
|
+
* @property {string} [type]
|
|
318
|
+
* @property {string} [updated_at]
|
|
319
|
+
* @property {CustomFieldValue[]} [value]
|
|
320
|
+
*/
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* @typedef CustomFieldsResponseByResourceIdSchema
|
|
324
|
+
* @property {CustomFieldSchema[]} [items]
|
|
325
|
+
*/
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @typedef CustomFieldsResponseSchema
|
|
329
|
+
* @property {CustomFieldSchema[]} [items]
|
|
330
|
+
* @property {Page} [page]
|
|
331
|
+
*/
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* @typedef CustomFieldTypeSchema
|
|
335
|
+
* @property {BooleanType} [boolean_type]
|
|
336
|
+
* @property {Date} [date]
|
|
337
|
+
* @property {Datetime} [datetime]
|
|
338
|
+
* @property {Dropdown} [dropdown]
|
|
339
|
+
* @property {File} [file]
|
|
340
|
+
* @property {FloatType} [float_type]
|
|
341
|
+
* @property {Integer} [integer]
|
|
342
|
+
* @property {Json} [json]
|
|
343
|
+
* @property {Metaobject} [metaobject]
|
|
344
|
+
* @property {Product} [product]
|
|
345
|
+
* @property {StringMultiLine} [string_multi_line]
|
|
346
|
+
* @property {StringSingleLine} [string_single_line]
|
|
347
|
+
* @property {Url} [url]
|
|
348
|
+
*/
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @typedef CustomFieldValue
|
|
352
|
+
* @property {Object} [value]
|
|
353
|
+
*/
|
|
354
|
+
|
|
235
355
|
/**
|
|
236
356
|
* @typedef CustomMetaTag
|
|
237
357
|
* @property {string} [_id]
|
|
@@ -239,6 +359,220 @@ const Joi = require("joi");
|
|
|
239
359
|
* @property {string} [name]
|
|
240
360
|
*/
|
|
241
361
|
|
|
362
|
+
/**
|
|
363
|
+
* @typedef CustomObjectBulkEntry
|
|
364
|
+
* @property {CustomObjectJobSchema[]} [items]
|
|
365
|
+
* @property {Page} [page]
|
|
366
|
+
*/
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @typedef CustomObjectBulkEntryInitiateDownload
|
|
370
|
+
* @property {string} [message]
|
|
371
|
+
* @property {string} [task_id]
|
|
372
|
+
*/
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* @typedef CustomObjectBulkSchema
|
|
376
|
+
* @property {number} [total_records]
|
|
377
|
+
* @property {string} [url]
|
|
378
|
+
*/
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* @typedef CustomObjectByIdSchema
|
|
382
|
+
* @property {string} [_id]
|
|
383
|
+
* @property {CustomObjectListItemDefinationSchema} [definition]
|
|
384
|
+
* @property {string} [display_name]
|
|
385
|
+
* @property {CustomObjectFieldSchema[]} [fields]
|
|
386
|
+
* @property {Object[]} [references]
|
|
387
|
+
* @property {string} [status]
|
|
388
|
+
*/
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* @typedef CustomObjectCustomFieldDefinitionResSchema
|
|
392
|
+
* @property {string} [_id]
|
|
393
|
+
* @property {string} [company_id]
|
|
394
|
+
* @property {string} [created_at]
|
|
395
|
+
* @property {string} [created_by]
|
|
396
|
+
* @property {string} [creator]
|
|
397
|
+
* @property {string} [description]
|
|
398
|
+
* @property {boolean} [is_deleted]
|
|
399
|
+
* @property {string} [key]
|
|
400
|
+
* @property {string} [metaobject_definition_id]
|
|
401
|
+
* @property {boolean} [multi_value]
|
|
402
|
+
* @property {string} [name]
|
|
403
|
+
* @property {string} [namespace]
|
|
404
|
+
* @property {boolean} [required]
|
|
405
|
+
* @property {string} [resource]
|
|
406
|
+
* @property {string} [type]
|
|
407
|
+
* @property {string} [updated_at]
|
|
408
|
+
* @property {FieldValidations[]} [validations]
|
|
409
|
+
*/
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* @typedef CustomObjectCustomFieldDefinitions
|
|
413
|
+
* @property {string} [action]
|
|
414
|
+
* @property {string} [description]
|
|
415
|
+
* @property {string} [id]
|
|
416
|
+
* @property {string} [key]
|
|
417
|
+
* @property {boolean} [multi_value]
|
|
418
|
+
* @property {string} [name]
|
|
419
|
+
* @property {boolean} [required]
|
|
420
|
+
* @property {string} [type]
|
|
421
|
+
* @property {FieldValidations[]} [validations]
|
|
422
|
+
*/
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @typedef CustomObjectDefinitionDeleteResponseSchema
|
|
426
|
+
* @property {string} [message]
|
|
427
|
+
* @property {boolean} [success]
|
|
428
|
+
*/
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* @typedef CustomObjectDefinitionRequestSchema
|
|
432
|
+
* @property {string} [description]
|
|
433
|
+
* @property {string} [display_name_key]
|
|
434
|
+
* @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
|
|
435
|
+
* @property {string} [name]
|
|
436
|
+
* @property {string} [type]
|
|
437
|
+
*/
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @typedef CustomObjectDefinitionSchema
|
|
441
|
+
* @property {string} [_id]
|
|
442
|
+
* @property {string} [created_by]
|
|
443
|
+
* @property {string} [creator]
|
|
444
|
+
* @property {string} [description]
|
|
445
|
+
* @property {string} [display_name_key]
|
|
446
|
+
* @property {CustomObjectCustomFieldDefinitionResSchema[]} [field_definitions]
|
|
447
|
+
* @property {string} [name]
|
|
448
|
+
* @property {string} [type]
|
|
449
|
+
* @property {string} [updated_by]
|
|
450
|
+
*/
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* @typedef CustomObjectDefinitionsSchema
|
|
454
|
+
* @property {CustomObjectEntry[]} [items]
|
|
455
|
+
* @property {Page} [page]
|
|
456
|
+
*/
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @typedef CustomObjectDefinitionUpdateRequestSchema
|
|
460
|
+
* @property {string} [description]
|
|
461
|
+
* @property {string} [display_name_key]
|
|
462
|
+
* @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
|
|
463
|
+
* @property {string} [name]
|
|
464
|
+
* @property {string} [type]
|
|
465
|
+
*/
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* @typedef CustomObjectEntry
|
|
469
|
+
* @property {string} [_id]
|
|
470
|
+
* @property {number} [entries_count]
|
|
471
|
+
* @property {number} [fields_count]
|
|
472
|
+
* @property {string} [name]
|
|
473
|
+
* @property {string} [type]
|
|
474
|
+
* @property {string} [updated_at]
|
|
475
|
+
*/
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* @typedef CustomObjectEntryBulkUploadResponse
|
|
479
|
+
* @property {number} [total_records]
|
|
480
|
+
* @property {string} [url]
|
|
481
|
+
*/
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* @typedef CustomObjectEntryFieldSchema
|
|
485
|
+
* @property {string} [definition_id]
|
|
486
|
+
* @property {Object[]} [value]
|
|
487
|
+
*/
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* @typedef CustomObjectFieldSchema
|
|
491
|
+
* @property {string} [_id]
|
|
492
|
+
* @property {string} [definition_id]
|
|
493
|
+
* @property {string} [key]
|
|
494
|
+
* @property {string} [type]
|
|
495
|
+
* @property {Object[]} [value]
|
|
496
|
+
*/
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* @typedef CustomObjectJobSchema
|
|
500
|
+
* @property {string} [_id]
|
|
501
|
+
* @property {string} [action_type]
|
|
502
|
+
* @property {string} [company_id]
|
|
503
|
+
* @property {string} [created_at]
|
|
504
|
+
* @property {string} [created_by]
|
|
505
|
+
* @property {string} [creator]
|
|
506
|
+
* @property {string} [entity]
|
|
507
|
+
* @property {number} [error_count]
|
|
508
|
+
* @property {string[]} [error_jobs]
|
|
509
|
+
* @property {string} [error_url]
|
|
510
|
+
* @property {string[]} [errors_occured]
|
|
511
|
+
* @property {number} [finished_count]
|
|
512
|
+
* @property {string[]} [finished_jobs]
|
|
513
|
+
* @property {string[]} [jobs]
|
|
514
|
+
* @property {CustomObjectMetaSchema} [meta]
|
|
515
|
+
* @property {string} [status]
|
|
516
|
+
* @property {number} [success_count]
|
|
517
|
+
* @property {number} [total_jobs]
|
|
518
|
+
* @property {string} [updated_at]
|
|
519
|
+
* @property {string} [url]
|
|
520
|
+
*/
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* @typedef CustomObjectListItemDefinationSchema
|
|
524
|
+
* @property {string} [_id]
|
|
525
|
+
* @property {string} [name]
|
|
526
|
+
* @property {string} [type]
|
|
527
|
+
*/
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* @typedef CustomObjectListItemSchema
|
|
531
|
+
* @property {string} [_id]
|
|
532
|
+
* @property {CustomObjectListItemDefinationSchema} [definition]
|
|
533
|
+
* @property {string} [definition_id]
|
|
534
|
+
* @property {string} [display_name]
|
|
535
|
+
* @property {number} [references]
|
|
536
|
+
* @property {string} [status]
|
|
537
|
+
* @property {string} [updated_at]
|
|
538
|
+
*/
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* @typedef CustomObjectMetaSchema
|
|
542
|
+
* @property {string} [mo_defintion_type]
|
|
543
|
+
* @property {number} [mo_error_count]
|
|
544
|
+
* @property {number} [mo_success_count]
|
|
545
|
+
* @property {number} [mo_total_count]
|
|
546
|
+
*/
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* @typedef CustomObjectRequestSchema
|
|
550
|
+
* @property {string} [definition_id]
|
|
551
|
+
* @property {CustomObjectEntryFieldSchema[]} [fields]
|
|
552
|
+
* @property {string} [status]
|
|
553
|
+
*/
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* @typedef CustomObjectSchema
|
|
557
|
+
* @property {string} [_id]
|
|
558
|
+
* @property {string} [application_id]
|
|
559
|
+
* @property {string} [company_id]
|
|
560
|
+
* @property {string} [created_by]
|
|
561
|
+
* @property {string} [creator]
|
|
562
|
+
* @property {string} [definition_id]
|
|
563
|
+
* @property {string} [display_name]
|
|
564
|
+
* @property {CustomFieldSchema[]} [fields]
|
|
565
|
+
* @property {string} [status]
|
|
566
|
+
* @property {string} [type]
|
|
567
|
+
* @property {string} [updated_by]
|
|
568
|
+
*/
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @typedef CustomObjectsSchema
|
|
572
|
+
* @property {CustomObjectListItemSchema[]} [items]
|
|
573
|
+
* @property {Page} [page]
|
|
574
|
+
*/
|
|
575
|
+
|
|
242
576
|
/**
|
|
243
577
|
* @typedef DataLoaderResetResponseSchema
|
|
244
578
|
* @property {boolean} [reset]
|
|
@@ -281,17 +615,46 @@ const Joi = require("joi");
|
|
|
281
615
|
* @property {DataLoaderSchema[]} [items]
|
|
282
616
|
*/
|
|
283
617
|
|
|
618
|
+
/**
|
|
619
|
+
* @typedef Date
|
|
620
|
+
* @property {string} [category]
|
|
621
|
+
* @property {boolean} [list_enabled]
|
|
622
|
+
* @property {string} [name]
|
|
623
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
624
|
+
* @property {string} [type]
|
|
625
|
+
*/
|
|
626
|
+
|
|
284
627
|
/**
|
|
285
628
|
* @typedef DateMeta
|
|
286
629
|
* @property {string} [created_on]
|
|
287
630
|
* @property {string} [modified_on]
|
|
288
631
|
*/
|
|
289
632
|
|
|
633
|
+
/**
|
|
634
|
+
* @typedef Datetime
|
|
635
|
+
* @property {string} [category]
|
|
636
|
+
* @property {boolean} [list_enabled]
|
|
637
|
+
* @property {string} [name]
|
|
638
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
639
|
+
* @property {string} [type]
|
|
640
|
+
*/
|
|
641
|
+
|
|
290
642
|
/**
|
|
291
643
|
* @typedef DefaultNavigationResponse
|
|
292
644
|
* @property {NavigationSchema[]} [items]
|
|
293
645
|
*/
|
|
294
646
|
|
|
647
|
+
/**
|
|
648
|
+
* @typedef DefaultSchemaComponent
|
|
649
|
+
* @property {DefaultSEOSchemaMarkupTemplate[]} [items]
|
|
650
|
+
*/
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* @typedef DefaultSEOSchemaMarkupTemplate
|
|
654
|
+
* @property {string} [page_type]
|
|
655
|
+
* @property {string} [schema]
|
|
656
|
+
*/
|
|
657
|
+
|
|
295
658
|
/**
|
|
296
659
|
* @typedef Detail
|
|
297
660
|
* @property {string} [description]
|
|
@@ -299,6 +662,15 @@ const Joi = require("joi");
|
|
|
299
662
|
* @property {string} [title]
|
|
300
663
|
*/
|
|
301
664
|
|
|
665
|
+
/**
|
|
666
|
+
* @typedef Dropdown
|
|
667
|
+
* @property {string} [category]
|
|
668
|
+
* @property {boolean} [list_enabled]
|
|
669
|
+
* @property {string} [name]
|
|
670
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
671
|
+
* @property {string} [type]
|
|
672
|
+
*/
|
|
673
|
+
|
|
302
674
|
/**
|
|
303
675
|
* @typedef EditorMeta
|
|
304
676
|
* @property {string} [background_color]
|
|
@@ -349,6 +721,54 @@ const Joi = require("joi");
|
|
|
349
721
|
* @property {string[]} [tags]
|
|
350
722
|
*/
|
|
351
723
|
|
|
724
|
+
/**
|
|
725
|
+
* @typedef FieldDefinitionSchema
|
|
726
|
+
* @property {string} [_id]
|
|
727
|
+
* @property {string} [company_id]
|
|
728
|
+
* @property {string} [created_at]
|
|
729
|
+
* @property {string} [created_by]
|
|
730
|
+
* @property {string} [creator]
|
|
731
|
+
* @property {string} [description]
|
|
732
|
+
* @property {number} [invalid_fields_count]
|
|
733
|
+
* @property {boolean} [is_deleted]
|
|
734
|
+
* @property {string} [key]
|
|
735
|
+
* @property {boolean} [multi_value]
|
|
736
|
+
* @property {string} [name]
|
|
737
|
+
* @property {string} [namespace]
|
|
738
|
+
* @property {boolean} [required]
|
|
739
|
+
* @property {string} [resource]
|
|
740
|
+
* @property {string} [type]
|
|
741
|
+
* @property {string} [type_name]
|
|
742
|
+
* @property {string} [updated_at]
|
|
743
|
+
* @property {string} [updated_by]
|
|
744
|
+
* @property {FieldValidations[]} [validations]
|
|
745
|
+
*/
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* @typedef FieldValidations
|
|
749
|
+
* @property {string} [name]
|
|
750
|
+
* @property {string} [type]
|
|
751
|
+
* @property {Object} [value]
|
|
752
|
+
*/
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* @typedef File
|
|
756
|
+
* @property {string} [category]
|
|
757
|
+
* @property {boolean} [list_enabled]
|
|
758
|
+
* @property {string} [name]
|
|
759
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
760
|
+
* @property {string} [type]
|
|
761
|
+
*/
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* @typedef FloatType
|
|
765
|
+
* @property {string} [category]
|
|
766
|
+
* @property {boolean} [list_enabled]
|
|
767
|
+
* @property {string} [name]
|
|
768
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
769
|
+
* @property {string} [type]
|
|
770
|
+
*/
|
|
771
|
+
|
|
352
772
|
/**
|
|
353
773
|
* @typedef GeneratedSEOContent
|
|
354
774
|
* @property {string} [description]
|
|
@@ -395,6 +815,24 @@ const Joi = require("joi");
|
|
|
395
815
|
* @property {string} [url]
|
|
396
816
|
*/
|
|
397
817
|
|
|
818
|
+
/**
|
|
819
|
+
* @typedef Integer
|
|
820
|
+
* @property {string} [category]
|
|
821
|
+
* @property {boolean} [list_enabled]
|
|
822
|
+
* @property {string} [name]
|
|
823
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
824
|
+
* @property {string} [type]
|
|
825
|
+
*/
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* @typedef Json
|
|
829
|
+
* @property {string} [category]
|
|
830
|
+
* @property {boolean} [list_enabled]
|
|
831
|
+
* @property {string} [name]
|
|
832
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
833
|
+
* @property {string} [type]
|
|
834
|
+
*/
|
|
835
|
+
|
|
398
836
|
/**
|
|
399
837
|
* @typedef LandingPageGetResponse
|
|
400
838
|
* @property {LandingPageSchema[]} [items]
|
|
@@ -426,6 +864,15 @@ const Joi = require("joi");
|
|
|
426
864
|
* @property {Language} [hi]
|
|
427
865
|
*/
|
|
428
866
|
|
|
867
|
+
/**
|
|
868
|
+
* @typedef Metaobject
|
|
869
|
+
* @property {string} [category]
|
|
870
|
+
* @property {boolean} [list_enabled]
|
|
871
|
+
* @property {string} [name]
|
|
872
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
873
|
+
* @property {string} [type]
|
|
874
|
+
*/
|
|
875
|
+
|
|
429
876
|
/**
|
|
430
877
|
* @typedef NavigationGetResponse
|
|
431
878
|
* @property {NavigationSchema[]} [items]
|
|
@@ -604,6 +1051,15 @@ const Joi = require("joi");
|
|
|
604
1051
|
* @property {PhoneProperties[]} [phone]
|
|
605
1052
|
*/
|
|
606
1053
|
|
|
1054
|
+
/**
|
|
1055
|
+
* @typedef Product
|
|
1056
|
+
* @property {string} [category]
|
|
1057
|
+
* @property {boolean} [list_enabled]
|
|
1058
|
+
* @property {string} [name]
|
|
1059
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1060
|
+
* @property {string} [type]
|
|
1061
|
+
*/
|
|
1062
|
+
|
|
607
1063
|
/**
|
|
608
1064
|
* @typedef RemoveHandpickedSchema
|
|
609
1065
|
* @property {string[]} [tags]
|
|
@@ -615,6 +1071,18 @@ const Joi = require("joi");
|
|
|
615
1071
|
* @property {string} [value]
|
|
616
1072
|
*/
|
|
617
1073
|
|
|
1074
|
+
/**
|
|
1075
|
+
* @typedef ResourceSchema
|
|
1076
|
+
* @property {number} [definitions_count] - Number of definitions
|
|
1077
|
+
* @property {string} [key] - Resource key
|
|
1078
|
+
* @property {string} [name] - Resource name
|
|
1079
|
+
*/
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* @typedef ResourcesSchema
|
|
1083
|
+
* @property {ResourceSchema[]} [resources]
|
|
1084
|
+
*/
|
|
1085
|
+
|
|
618
1086
|
/**
|
|
619
1087
|
* @typedef ScheduleSchema
|
|
620
1088
|
* @property {string} [cron]
|
|
@@ -626,11 +1094,21 @@ const Joi = require("joi");
|
|
|
626
1094
|
|
|
627
1095
|
/**
|
|
628
1096
|
* @typedef SEO
|
|
1097
|
+
* @property {SEObreadcrumb[]} [breadcrumb]
|
|
1098
|
+
* @property {string} [canonical_url]
|
|
629
1099
|
* @property {string} [description]
|
|
630
1100
|
* @property {SEOImage} [image]
|
|
1101
|
+
* @property {SEOMetaItem[]} [meta_tags]
|
|
1102
|
+
* @property {SEOSitemap} [sitemap]
|
|
631
1103
|
* @property {string} [title]
|
|
632
1104
|
*/
|
|
633
1105
|
|
|
1106
|
+
/**
|
|
1107
|
+
* @typedef SEObreadcrumb
|
|
1108
|
+
* @property {Action} [action]
|
|
1109
|
+
* @property {string} [url]
|
|
1110
|
+
*/
|
|
1111
|
+
|
|
634
1112
|
/**
|
|
635
1113
|
* @typedef SeoComponent
|
|
636
1114
|
* @property {SeoSchema} [seo]
|
|
@@ -641,9 +1119,22 @@ const Joi = require("joi");
|
|
|
641
1119
|
* @property {string} [url]
|
|
642
1120
|
*/
|
|
643
1121
|
|
|
1122
|
+
/**
|
|
1123
|
+
* @typedef SEOMetaItem
|
|
1124
|
+
* @property {SEOMetaItems[]} [items]
|
|
1125
|
+
* @property {string} [title]
|
|
1126
|
+
*/
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* @typedef SEOMetaItems
|
|
1130
|
+
* @property {string} [key]
|
|
1131
|
+
* @property {string} [value]
|
|
1132
|
+
*/
|
|
1133
|
+
|
|
644
1134
|
/**
|
|
645
1135
|
* @typedef SeoSchema
|
|
646
1136
|
* @property {string} [_id]
|
|
1137
|
+
* @property {string} [additional_sitemap]
|
|
647
1138
|
* @property {string} [app]
|
|
648
1139
|
* @property {boolean} [cannonical_enabled]
|
|
649
1140
|
* @property {string} [created_at]
|
|
@@ -654,6 +1145,42 @@ const Joi = require("joi");
|
|
|
654
1145
|
* @property {string} [updated_at]
|
|
655
1146
|
*/
|
|
656
1147
|
|
|
1148
|
+
/**
|
|
1149
|
+
* @typedef SeoSchemaComponent
|
|
1150
|
+
* @property {SEOSchemaMarkupTemplate[]} [items]
|
|
1151
|
+
* @property {Page} [page]
|
|
1152
|
+
*/
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* @typedef SEOSchemaMarkupTemplate
|
|
1156
|
+
* @property {boolean} [active]
|
|
1157
|
+
* @property {string} [application]
|
|
1158
|
+
* @property {string} [created_at]
|
|
1159
|
+
* @property {string} [description]
|
|
1160
|
+
* @property {string} [id]
|
|
1161
|
+
* @property {string} [page_type]
|
|
1162
|
+
* @property {string} [schema]
|
|
1163
|
+
* @property {string} [title]
|
|
1164
|
+
* @property {string} [updated_at]
|
|
1165
|
+
*/
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* @typedef SEOSchemaMarkupTemplateRequestBody
|
|
1169
|
+
* @property {boolean} [active]
|
|
1170
|
+
* @property {string} [created_at]
|
|
1171
|
+
* @property {string} [description]
|
|
1172
|
+
* @property {string} [page_type]
|
|
1173
|
+
* @property {string} [schema]
|
|
1174
|
+
* @property {string} [title]
|
|
1175
|
+
* @property {string} [updated_at]
|
|
1176
|
+
*/
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* @typedef SEOSitemap
|
|
1180
|
+
* @property {string} [frequency]
|
|
1181
|
+
* @property {number} [priority]
|
|
1182
|
+
*/
|
|
1183
|
+
|
|
657
1184
|
/**
|
|
658
1185
|
* @typedef SlideshowGetResponse
|
|
659
1186
|
* @property {SlideshowSchema[]} [items]
|
|
@@ -693,6 +1220,24 @@ const Joi = require("joi");
|
|
|
693
1220
|
* @property {string} [slug]
|
|
694
1221
|
*/
|
|
695
1222
|
|
|
1223
|
+
/**
|
|
1224
|
+
* @typedef StringMultiLine
|
|
1225
|
+
* @property {string} [category]
|
|
1226
|
+
* @property {boolean} [list_enabled]
|
|
1227
|
+
* @property {string} [name]
|
|
1228
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1229
|
+
* @property {string} [type]
|
|
1230
|
+
*/
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* @typedef StringSingleLine
|
|
1234
|
+
* @property {string} [category]
|
|
1235
|
+
* @property {boolean} [list_enabled]
|
|
1236
|
+
* @property {string} [name]
|
|
1237
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1238
|
+
* @property {string} [type]
|
|
1239
|
+
*/
|
|
1240
|
+
|
|
696
1241
|
/**
|
|
697
1242
|
* @typedef Support
|
|
698
1243
|
* @property {string} [_id]
|
|
@@ -704,6 +1249,26 @@ const Joi = require("joi");
|
|
|
704
1249
|
* @property {string} [updated_at]
|
|
705
1250
|
*/
|
|
706
1251
|
|
|
1252
|
+
/**
|
|
1253
|
+
* @typedef SupportedValidationsMetaExampleSchema
|
|
1254
|
+
* @property {string} [name]
|
|
1255
|
+
* @property {string} [value]
|
|
1256
|
+
*/
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* @typedef SupportedValidationsMetaSchema
|
|
1260
|
+
* @property {SupportedValidationsMetaExampleSchema[]} [examples]
|
|
1261
|
+
*/
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* @typedef SupportedValidationsSchema
|
|
1265
|
+
* @property {string} [display]
|
|
1266
|
+
* @property {SupportedValidationsMetaSchema} [meta]
|
|
1267
|
+
* @property {string} [name]
|
|
1268
|
+
* @property {boolean} [required]
|
|
1269
|
+
* @property {string} [type]
|
|
1270
|
+
*/
|
|
1271
|
+
|
|
707
1272
|
/**
|
|
708
1273
|
* @typedef TagDeleteSuccessResponse
|
|
709
1274
|
* @property {boolean} [success]
|
|
@@ -746,6 +1311,14 @@ const Joi = require("joi");
|
|
|
746
1311
|
* @property {HandpickedTagSchema} [tag]
|
|
747
1312
|
*/
|
|
748
1313
|
|
|
1314
|
+
/**
|
|
1315
|
+
* @typedef Url
|
|
1316
|
+
* @property {boolean} [list_enabled]
|
|
1317
|
+
* @property {string} [name]
|
|
1318
|
+
* @property {SupportedValidationsSchema[]} [supported_validations]
|
|
1319
|
+
* @property {string} [type]
|
|
1320
|
+
*/
|
|
1321
|
+
|
|
749
1322
|
/** @typedef {"title" | "description"} GenerationEntityType */
|
|
750
1323
|
|
|
751
1324
|
/**
|
|
@@ -944,6 +1517,19 @@ class ContentPlatformModel {
|
|
|
944
1517
|
});
|
|
945
1518
|
}
|
|
946
1519
|
|
|
1520
|
+
/** @returns {BooleanType} */
|
|
1521
|
+
static BooleanType() {
|
|
1522
|
+
return Joi.object({
|
|
1523
|
+
category: Joi.string().allow(""),
|
|
1524
|
+
list_enabled: Joi.boolean(),
|
|
1525
|
+
name: Joi.string().allow(""),
|
|
1526
|
+
supported_validations: Joi.array().items(
|
|
1527
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
1528
|
+
),
|
|
1529
|
+
type: Joi.string().allow(""),
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1532
|
+
|
|
947
1533
|
/** @returns {CategoryRequestSchema} */
|
|
948
1534
|
static CategoryRequestSchema() {
|
|
949
1535
|
return Joi.object({
|
|
@@ -1017,87 +1603,488 @@ class ContentPlatformModel {
|
|
|
1017
1603
|
});
|
|
1018
1604
|
}
|
|
1019
1605
|
|
|
1020
|
-
/** @returns {CreateAnnouncementSchema} */
|
|
1021
|
-
static CreateAnnouncementSchema() {
|
|
1606
|
+
/** @returns {CreateAnnouncementSchema} */
|
|
1607
|
+
static CreateAnnouncementSchema() {
|
|
1608
|
+
return Joi.object({
|
|
1609
|
+
data: ContentPlatformModel.AdminAnnouncementSchema(),
|
|
1610
|
+
message: Joi.string().allow(""),
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
/** @returns {CreatedBySchema} */
|
|
1615
|
+
static CreatedBySchema() {
|
|
1616
|
+
return Joi.object({
|
|
1617
|
+
id: Joi.string().allow(""),
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
/** @returns {CreateFaqCategoryRequestSchema} */
|
|
1622
|
+
static CreateFaqCategoryRequestSchema() {
|
|
1623
|
+
return Joi.object({
|
|
1624
|
+
category: ContentPlatformModel.CategoryRequestSchema(),
|
|
1625
|
+
});
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
/** @returns {CreateFaqCategorySchema} */
|
|
1629
|
+
static CreateFaqCategorySchema() {
|
|
1630
|
+
return Joi.object({
|
|
1631
|
+
category: ContentPlatformModel.CategorySchema(),
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
/** @returns {CreateFaqResponseSchema} */
|
|
1636
|
+
static CreateFaqResponseSchema() {
|
|
1637
|
+
return Joi.object({
|
|
1638
|
+
faq: ContentPlatformModel.FaqSchema(),
|
|
1639
|
+
});
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
/** @returns {CreateFaqSchema} */
|
|
1643
|
+
static CreateFaqSchema() {
|
|
1644
|
+
return Joi.object({
|
|
1645
|
+
faq: ContentPlatformModel.FAQ(),
|
|
1646
|
+
});
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
/** @returns {CreateTagRequestSchema} */
|
|
1650
|
+
static CreateTagRequestSchema() {
|
|
1651
|
+
return Joi.object({
|
|
1652
|
+
tags: Joi.array().items(ContentPlatformModel.CreateTagSchema()),
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
/** @returns {CreateTagSchema} */
|
|
1657
|
+
static CreateTagSchema() {
|
|
1658
|
+
return Joi.object({
|
|
1659
|
+
_id: Joi.string().allow(""),
|
|
1660
|
+
attributes: Joi.any(),
|
|
1661
|
+
content: Joi.string().allow(""),
|
|
1662
|
+
name: Joi.string().allow(""),
|
|
1663
|
+
pages: Joi.array().items(Joi.any()),
|
|
1664
|
+
position: Joi.string().allow(""),
|
|
1665
|
+
sub_type: Joi.string().allow(""),
|
|
1666
|
+
type: Joi.string().allow(""),
|
|
1667
|
+
url: Joi.string().allow(""),
|
|
1668
|
+
});
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
/** @returns {CronSchedule} */
|
|
1672
|
+
static CronSchedule() {
|
|
1673
|
+
return Joi.object({
|
|
1674
|
+
cron: Joi.string().allow(""),
|
|
1675
|
+
duration: Joi.number(),
|
|
1676
|
+
end: Joi.string().allow(""),
|
|
1677
|
+
start: Joi.string().allow(""),
|
|
1678
|
+
});
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
/** @returns {CustomDataDeleteSchema} */
|
|
1682
|
+
static CustomDataDeleteSchema() {
|
|
1683
|
+
return Joi.object({
|
|
1684
|
+
message: Joi.string().allow(""),
|
|
1685
|
+
success: Joi.boolean(),
|
|
1686
|
+
});
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
/** @returns {CustomField} */
|
|
1690
|
+
static CustomField() {
|
|
1691
|
+
return Joi.object({
|
|
1692
|
+
definition_id: Joi.string().allow(""),
|
|
1693
|
+
value: Joi.array().items(Joi.any()),
|
|
1694
|
+
});
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
/** @returns {CustomFieldDefinitionDetailResSchema} */
|
|
1698
|
+
static CustomFieldDefinitionDetailResSchema() {
|
|
1699
|
+
return Joi.object({
|
|
1700
|
+
_id: Joi.string().allow(""),
|
|
1701
|
+
application_id: Joi.string().allow(""),
|
|
1702
|
+
company_id: Joi.string().allow(""),
|
|
1703
|
+
created_at: Joi.string().allow(""),
|
|
1704
|
+
created_by: Joi.string().allow(""),
|
|
1705
|
+
creator: Joi.string().allow(""),
|
|
1706
|
+
description: Joi.string().allow(""),
|
|
1707
|
+
is_deleted: Joi.boolean(),
|
|
1708
|
+
key: Joi.string().allow(""),
|
|
1709
|
+
multi_value: Joi.boolean(),
|
|
1710
|
+
name: Joi.string().allow(""),
|
|
1711
|
+
namespace: Joi.string().allow(""),
|
|
1712
|
+
required: Joi.boolean(),
|
|
1713
|
+
resource: Joi.string().allow(""),
|
|
1714
|
+
type: Joi.string().allow(""),
|
|
1715
|
+
updated_at: Joi.string().allow(""),
|
|
1716
|
+
updated_by: Joi.string().allow(""),
|
|
1717
|
+
validations: Joi.array().items(Joi.any()),
|
|
1718
|
+
});
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
/** @returns {CustomFieldDefinitionRequestSchema} */
|
|
1722
|
+
static CustomFieldDefinitionRequestSchema() {
|
|
1723
|
+
return Joi.object({
|
|
1724
|
+
description: Joi.string().allow(""),
|
|
1725
|
+
key: Joi.string().allow(""),
|
|
1726
|
+
multi_value: Joi.boolean(),
|
|
1727
|
+
name: Joi.string().allow(""),
|
|
1728
|
+
namespace: Joi.string().allow(""),
|
|
1729
|
+
resource: Joi.string().allow(""),
|
|
1730
|
+
type: Joi.string().allow(""),
|
|
1731
|
+
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
1732
|
+
});
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
/** @returns {CustomFieldDefinitionsSchema} */
|
|
1736
|
+
static CustomFieldDefinitionsSchema() {
|
|
1737
|
+
return Joi.object({
|
|
1738
|
+
items: Joi.array().items(ContentPlatformModel.FieldDefinitionSchema()),
|
|
1739
|
+
page: ContentPlatformModel.Page(),
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
/** @returns {CustomFieldRequestSchema} */
|
|
1744
|
+
static CustomFieldRequestSchema() {
|
|
1745
|
+
return Joi.object({
|
|
1746
|
+
fields: Joi.array().items(ContentPlatformModel.CustomField()),
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
/** @returns {CustomFieldSchema} */
|
|
1751
|
+
static CustomFieldSchema() {
|
|
1752
|
+
return Joi.object({
|
|
1753
|
+
_id: Joi.string().allow(""),
|
|
1754
|
+
company_id: Joi.string().allow(""),
|
|
1755
|
+
created_at: Joi.string().allow(""),
|
|
1756
|
+
created_by: Joi.string().allow(""),
|
|
1757
|
+
creator: Joi.string().allow(""),
|
|
1758
|
+
definition_id: Joi.string().allow(""),
|
|
1759
|
+
has_invalid_values: Joi.boolean(),
|
|
1760
|
+
invalid_value_errors: Joi.array().items(Joi.any()),
|
|
1761
|
+
is_deleted: Joi.boolean(),
|
|
1762
|
+
key: Joi.string().allow(""),
|
|
1763
|
+
multi_value: Joi.boolean(),
|
|
1764
|
+
namespace: Joi.string().allow(""),
|
|
1765
|
+
resource: Joi.string().allow(""),
|
|
1766
|
+
resource_id: Joi.string().allow(""),
|
|
1767
|
+
type: Joi.string().allow(""),
|
|
1768
|
+
updated_at: Joi.string().allow(""),
|
|
1769
|
+
value: Joi.array().items(ContentPlatformModel.CustomFieldValue()),
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
/** @returns {CustomFieldsResponseByResourceIdSchema} */
|
|
1774
|
+
static CustomFieldsResponseByResourceIdSchema() {
|
|
1775
|
+
return Joi.object({
|
|
1776
|
+
items: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
/** @returns {CustomFieldsResponseSchema} */
|
|
1781
|
+
static CustomFieldsResponseSchema() {
|
|
1782
|
+
return Joi.object({
|
|
1783
|
+
items: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
|
|
1784
|
+
page: ContentPlatformModel.Page(),
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
/** @returns {CustomFieldTypeSchema} */
|
|
1789
|
+
static CustomFieldTypeSchema() {
|
|
1790
|
+
return Joi.object({
|
|
1791
|
+
boolean_type: ContentPlatformModel.BooleanType(),
|
|
1792
|
+
date: ContentPlatformModel.Date(),
|
|
1793
|
+
datetime: ContentPlatformModel.Datetime(),
|
|
1794
|
+
dropdown: ContentPlatformModel.Dropdown(),
|
|
1795
|
+
file: ContentPlatformModel.File(),
|
|
1796
|
+
float_type: ContentPlatformModel.FloatType(),
|
|
1797
|
+
integer: ContentPlatformModel.Integer(),
|
|
1798
|
+
json: ContentPlatformModel.Json(),
|
|
1799
|
+
metaobject: ContentPlatformModel.Metaobject(),
|
|
1800
|
+
product: ContentPlatformModel.Product(),
|
|
1801
|
+
string_multi_line: ContentPlatformModel.StringMultiLine(),
|
|
1802
|
+
string_single_line: ContentPlatformModel.StringSingleLine(),
|
|
1803
|
+
url: ContentPlatformModel.Url(),
|
|
1804
|
+
});
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
/** @returns {CustomFieldValue} */
|
|
1808
|
+
static CustomFieldValue() {
|
|
1809
|
+
return Joi.object({
|
|
1810
|
+
value: Joi.any(),
|
|
1811
|
+
});
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
/** @returns {CustomMetaTag} */
|
|
1815
|
+
static CustomMetaTag() {
|
|
1816
|
+
return Joi.object({
|
|
1817
|
+
_id: Joi.string().allow(""),
|
|
1818
|
+
content: Joi.string().allow(""),
|
|
1819
|
+
name: Joi.string().allow(""),
|
|
1820
|
+
});
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
/** @returns {CustomObjectBulkEntry} */
|
|
1824
|
+
static CustomObjectBulkEntry() {
|
|
1825
|
+
return Joi.object({
|
|
1826
|
+
items: Joi.array().items(ContentPlatformModel.CustomObjectJobSchema()),
|
|
1827
|
+
page: ContentPlatformModel.Page(),
|
|
1828
|
+
});
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
/** @returns {CustomObjectBulkEntryInitiateDownload} */
|
|
1832
|
+
static CustomObjectBulkEntryInitiateDownload() {
|
|
1833
|
+
return Joi.object({
|
|
1834
|
+
message: Joi.string().allow(""),
|
|
1835
|
+
task_id: Joi.string().allow(""),
|
|
1836
|
+
});
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
/** @returns {CustomObjectBulkSchema} */
|
|
1840
|
+
static CustomObjectBulkSchema() {
|
|
1841
|
+
return Joi.object({
|
|
1842
|
+
total_records: Joi.number(),
|
|
1843
|
+
url: Joi.string().allow(""),
|
|
1844
|
+
});
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
/** @returns {CustomObjectByIdSchema} */
|
|
1848
|
+
static CustomObjectByIdSchema() {
|
|
1849
|
+
return Joi.object({
|
|
1850
|
+
_id: Joi.string().allow(""),
|
|
1851
|
+
definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
|
|
1852
|
+
display_name: Joi.string().allow(""),
|
|
1853
|
+
fields: Joi.array().items(ContentPlatformModel.CustomObjectFieldSchema()),
|
|
1854
|
+
references: Joi.array().items(Joi.any()),
|
|
1855
|
+
status: Joi.string().allow(""),
|
|
1856
|
+
});
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
/** @returns {CustomObjectCustomFieldDefinitionResSchema} */
|
|
1860
|
+
static CustomObjectCustomFieldDefinitionResSchema() {
|
|
1861
|
+
return Joi.object({
|
|
1862
|
+
_id: Joi.string().allow(""),
|
|
1863
|
+
company_id: Joi.string().allow(""),
|
|
1864
|
+
created_at: Joi.string().allow(""),
|
|
1865
|
+
created_by: Joi.string().allow(""),
|
|
1866
|
+
creator: Joi.string().allow(""),
|
|
1867
|
+
description: Joi.string().allow(""),
|
|
1868
|
+
is_deleted: Joi.boolean(),
|
|
1869
|
+
key: Joi.string().allow(""),
|
|
1870
|
+
metaobject_definition_id: Joi.string().allow(""),
|
|
1871
|
+
multi_value: Joi.boolean(),
|
|
1872
|
+
name: Joi.string().allow(""),
|
|
1873
|
+
namespace: Joi.string().allow(""),
|
|
1874
|
+
required: Joi.boolean(),
|
|
1875
|
+
resource: Joi.string().allow(""),
|
|
1876
|
+
type: Joi.string().allow(""),
|
|
1877
|
+
updated_at: Joi.string().allow(""),
|
|
1878
|
+
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
1879
|
+
});
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
/** @returns {CustomObjectCustomFieldDefinitions} */
|
|
1883
|
+
static CustomObjectCustomFieldDefinitions() {
|
|
1884
|
+
return Joi.object({
|
|
1885
|
+
action: Joi.string().allow(""),
|
|
1886
|
+
description: Joi.string().allow(""),
|
|
1887
|
+
id: Joi.string().allow(""),
|
|
1888
|
+
key: Joi.string().allow(""),
|
|
1889
|
+
multi_value: Joi.boolean(),
|
|
1890
|
+
name: Joi.string().allow(""),
|
|
1891
|
+
required: Joi.boolean(),
|
|
1892
|
+
type: Joi.string().allow(""),
|
|
1893
|
+
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
1894
|
+
});
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
/** @returns {CustomObjectDefinitionDeleteResponseSchema} */
|
|
1898
|
+
static CustomObjectDefinitionDeleteResponseSchema() {
|
|
1899
|
+
return Joi.object({
|
|
1900
|
+
message: Joi.string().allow(""),
|
|
1901
|
+
success: Joi.boolean(),
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
/** @returns {CustomObjectDefinitionRequestSchema} */
|
|
1906
|
+
static CustomObjectDefinitionRequestSchema() {
|
|
1907
|
+
return Joi.object({
|
|
1908
|
+
description: Joi.string().allow(""),
|
|
1909
|
+
display_name_key: Joi.string().allow(""),
|
|
1910
|
+
field_definitions: Joi.array().items(
|
|
1911
|
+
ContentPlatformModel.CustomObjectCustomFieldDefinitions()
|
|
1912
|
+
),
|
|
1913
|
+
name: Joi.string().allow(""),
|
|
1914
|
+
type: Joi.string().allow(""),
|
|
1915
|
+
});
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
/** @returns {CustomObjectDefinitionSchema} */
|
|
1919
|
+
static CustomObjectDefinitionSchema() {
|
|
1920
|
+
return Joi.object({
|
|
1921
|
+
_id: Joi.string().allow(""),
|
|
1922
|
+
created_by: Joi.string().allow(""),
|
|
1923
|
+
creator: Joi.string().allow(""),
|
|
1924
|
+
description: Joi.string().allow(""),
|
|
1925
|
+
display_name_key: Joi.string().allow(""),
|
|
1926
|
+
field_definitions: Joi.array().items(
|
|
1927
|
+
ContentPlatformModel.CustomObjectCustomFieldDefinitionResSchema()
|
|
1928
|
+
),
|
|
1929
|
+
name: Joi.string().allow(""),
|
|
1930
|
+
type: Joi.string().allow(""),
|
|
1931
|
+
updated_by: Joi.string().allow(""),
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
/** @returns {CustomObjectDefinitionsSchema} */
|
|
1936
|
+
static CustomObjectDefinitionsSchema() {
|
|
1937
|
+
return Joi.object({
|
|
1938
|
+
items: Joi.array().items(ContentPlatformModel.CustomObjectEntry()),
|
|
1939
|
+
page: ContentPlatformModel.Page(),
|
|
1940
|
+
});
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
/** @returns {CustomObjectDefinitionUpdateRequestSchema} */
|
|
1944
|
+
static CustomObjectDefinitionUpdateRequestSchema() {
|
|
1945
|
+
return Joi.object({
|
|
1946
|
+
description: Joi.string().allow(""),
|
|
1947
|
+
display_name_key: Joi.string().allow(""),
|
|
1948
|
+
field_definitions: Joi.array().items(
|
|
1949
|
+
ContentPlatformModel.CustomObjectCustomFieldDefinitions()
|
|
1950
|
+
),
|
|
1951
|
+
name: Joi.string().allow(""),
|
|
1952
|
+
type: Joi.string().allow(""),
|
|
1953
|
+
});
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
/** @returns {CustomObjectEntry} */
|
|
1957
|
+
static CustomObjectEntry() {
|
|
1958
|
+
return Joi.object({
|
|
1959
|
+
_id: Joi.string().allow(""),
|
|
1960
|
+
entries_count: Joi.number(),
|
|
1961
|
+
fields_count: Joi.number(),
|
|
1962
|
+
name: Joi.string().allow(""),
|
|
1963
|
+
type: Joi.string().allow(""),
|
|
1964
|
+
updated_at: Joi.string().allow(""),
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
/** @returns {CustomObjectEntryBulkUploadResponse} */
|
|
1969
|
+
static CustomObjectEntryBulkUploadResponse() {
|
|
1970
|
+
return Joi.object({
|
|
1971
|
+
total_records: Joi.number(),
|
|
1972
|
+
url: Joi.string().allow(""),
|
|
1973
|
+
});
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
/** @returns {CustomObjectEntryFieldSchema} */
|
|
1977
|
+
static CustomObjectEntryFieldSchema() {
|
|
1022
1978
|
return Joi.object({
|
|
1023
|
-
|
|
1024
|
-
|
|
1979
|
+
definition_id: Joi.string().allow(""),
|
|
1980
|
+
value: Joi.array().items(Joi.any()),
|
|
1025
1981
|
});
|
|
1026
1982
|
}
|
|
1027
1983
|
|
|
1028
|
-
/** @returns {
|
|
1029
|
-
static
|
|
1984
|
+
/** @returns {CustomObjectFieldSchema} */
|
|
1985
|
+
static CustomObjectFieldSchema() {
|
|
1030
1986
|
return Joi.object({
|
|
1031
|
-
|
|
1987
|
+
_id: Joi.string().allow(""),
|
|
1988
|
+
definition_id: Joi.string().allow(""),
|
|
1989
|
+
key: Joi.string().allow(""),
|
|
1990
|
+
type: Joi.string().allow(""),
|
|
1991
|
+
value: Joi.array().items(Joi.any()),
|
|
1032
1992
|
});
|
|
1033
1993
|
}
|
|
1034
1994
|
|
|
1035
|
-
/** @returns {
|
|
1036
|
-
static
|
|
1995
|
+
/** @returns {CustomObjectJobSchema} */
|
|
1996
|
+
static CustomObjectJobSchema() {
|
|
1037
1997
|
return Joi.object({
|
|
1038
|
-
|
|
1998
|
+
_id: Joi.string().allow(""),
|
|
1999
|
+
action_type: Joi.string().allow(""),
|
|
2000
|
+
company_id: Joi.string().allow(""),
|
|
2001
|
+
created_at: Joi.string().allow(""),
|
|
2002
|
+
created_by: Joi.string().allow(""),
|
|
2003
|
+
creator: Joi.string().allow(""),
|
|
2004
|
+
entity: Joi.string().allow(""),
|
|
2005
|
+
error_count: Joi.number(),
|
|
2006
|
+
error_jobs: Joi.array().items(Joi.string().allow("")),
|
|
2007
|
+
error_url: Joi.string().allow(""),
|
|
2008
|
+
errors_occured: Joi.array().items(Joi.string().allow("")),
|
|
2009
|
+
finished_count: Joi.number(),
|
|
2010
|
+
finished_jobs: Joi.array().items(Joi.string().allow("")),
|
|
2011
|
+
jobs: Joi.array().items(Joi.string().allow("")),
|
|
2012
|
+
meta: ContentPlatformModel.CustomObjectMetaSchema(),
|
|
2013
|
+
status: Joi.string().allow(""),
|
|
2014
|
+
success_count: Joi.number(),
|
|
2015
|
+
total_jobs: Joi.number(),
|
|
2016
|
+
updated_at: Joi.string().allow(""),
|
|
2017
|
+
url: Joi.string().allow(""),
|
|
1039
2018
|
});
|
|
1040
2019
|
}
|
|
1041
2020
|
|
|
1042
|
-
/** @returns {
|
|
1043
|
-
static
|
|
2021
|
+
/** @returns {CustomObjectListItemDefinationSchema} */
|
|
2022
|
+
static CustomObjectListItemDefinationSchema() {
|
|
1044
2023
|
return Joi.object({
|
|
1045
|
-
|
|
2024
|
+
_id: Joi.string().allow(""),
|
|
2025
|
+
name: Joi.string().allow(""),
|
|
2026
|
+
type: Joi.string().allow(""),
|
|
1046
2027
|
});
|
|
1047
2028
|
}
|
|
1048
2029
|
|
|
1049
|
-
/** @returns {
|
|
1050
|
-
static
|
|
2030
|
+
/** @returns {CustomObjectListItemSchema} */
|
|
2031
|
+
static CustomObjectListItemSchema() {
|
|
1051
2032
|
return Joi.object({
|
|
1052
|
-
|
|
2033
|
+
_id: Joi.string().allow(""),
|
|
2034
|
+
definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
|
|
2035
|
+
definition_id: Joi.string().allow(""),
|
|
2036
|
+
display_name: Joi.string().allow(""),
|
|
2037
|
+
references: Joi.number(),
|
|
2038
|
+
status: Joi.string().allow(""),
|
|
2039
|
+
updated_at: Joi.string().allow(""),
|
|
1053
2040
|
});
|
|
1054
2041
|
}
|
|
1055
2042
|
|
|
1056
|
-
/** @returns {
|
|
1057
|
-
static
|
|
2043
|
+
/** @returns {CustomObjectMetaSchema} */
|
|
2044
|
+
static CustomObjectMetaSchema() {
|
|
1058
2045
|
return Joi.object({
|
|
1059
|
-
|
|
2046
|
+
mo_defintion_type: Joi.string().allow(""),
|
|
2047
|
+
mo_error_count: Joi.number(),
|
|
2048
|
+
mo_success_count: Joi.number(),
|
|
2049
|
+
mo_total_count: Joi.number(),
|
|
1060
2050
|
});
|
|
1061
2051
|
}
|
|
1062
2052
|
|
|
1063
|
-
/** @returns {
|
|
1064
|
-
static
|
|
2053
|
+
/** @returns {CustomObjectRequestSchema} */
|
|
2054
|
+
static CustomObjectRequestSchema() {
|
|
1065
2055
|
return Joi.object({
|
|
1066
|
-
|
|
2056
|
+
definition_id: Joi.string().allow(""),
|
|
2057
|
+
fields: Joi.array().items(
|
|
2058
|
+
ContentPlatformModel.CustomObjectEntryFieldSchema()
|
|
2059
|
+
),
|
|
2060
|
+
status: Joi.string().allow(""),
|
|
1067
2061
|
});
|
|
1068
2062
|
}
|
|
1069
2063
|
|
|
1070
|
-
/** @returns {
|
|
1071
|
-
static
|
|
2064
|
+
/** @returns {CustomObjectSchema} */
|
|
2065
|
+
static CustomObjectSchema() {
|
|
1072
2066
|
return Joi.object({
|
|
1073
2067
|
_id: Joi.string().allow(""),
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
2068
|
+
application_id: Joi.string().allow(""),
|
|
2069
|
+
company_id: Joi.string().allow(""),
|
|
2070
|
+
created_by: Joi.string().allow(""),
|
|
2071
|
+
creator: Joi.string().allow(""),
|
|
2072
|
+
definition_id: Joi.string().allow(""),
|
|
2073
|
+
display_name: Joi.string().allow(""),
|
|
2074
|
+
fields: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
|
|
2075
|
+
status: Joi.string().allow(""),
|
|
1080
2076
|
type: Joi.string().allow(""),
|
|
1081
|
-
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
/** @returns {CronSchedule} */
|
|
1086
|
-
static CronSchedule() {
|
|
1087
|
-
return Joi.object({
|
|
1088
|
-
cron: Joi.string().allow(""),
|
|
1089
|
-
duration: Joi.number(),
|
|
1090
|
-
end: Joi.string().allow(""),
|
|
1091
|
-
start: Joi.string().allow(""),
|
|
2077
|
+
updated_by: Joi.string().allow(""),
|
|
1092
2078
|
});
|
|
1093
2079
|
}
|
|
1094
2080
|
|
|
1095
|
-
/** @returns {
|
|
1096
|
-
static
|
|
2081
|
+
/** @returns {CustomObjectsSchema} */
|
|
2082
|
+
static CustomObjectsSchema() {
|
|
1097
2083
|
return Joi.object({
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
2084
|
+
items: Joi.array().items(
|
|
2085
|
+
ContentPlatformModel.CustomObjectListItemSchema()
|
|
2086
|
+
),
|
|
2087
|
+
page: ContentPlatformModel.Page(),
|
|
1101
2088
|
});
|
|
1102
2089
|
}
|
|
1103
2090
|
|
|
@@ -1153,6 +2140,19 @@ class ContentPlatformModel {
|
|
|
1153
2140
|
});
|
|
1154
2141
|
}
|
|
1155
2142
|
|
|
2143
|
+
/** @returns {Date} */
|
|
2144
|
+
static Date() {
|
|
2145
|
+
return Joi.object({
|
|
2146
|
+
category: Joi.string().allow(""),
|
|
2147
|
+
list_enabled: Joi.boolean(),
|
|
2148
|
+
name: Joi.string().allow(""),
|
|
2149
|
+
supported_validations: Joi.array().items(
|
|
2150
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
2151
|
+
),
|
|
2152
|
+
type: Joi.string().allow(""),
|
|
2153
|
+
});
|
|
2154
|
+
}
|
|
2155
|
+
|
|
1156
2156
|
/** @returns {DateMeta} */
|
|
1157
2157
|
static DateMeta() {
|
|
1158
2158
|
return Joi.object({
|
|
@@ -1161,6 +2161,19 @@ class ContentPlatformModel {
|
|
|
1161
2161
|
});
|
|
1162
2162
|
}
|
|
1163
2163
|
|
|
2164
|
+
/** @returns {Datetime} */
|
|
2165
|
+
static Datetime() {
|
|
2166
|
+
return Joi.object({
|
|
2167
|
+
category: Joi.string().allow(""),
|
|
2168
|
+
list_enabled: Joi.boolean(),
|
|
2169
|
+
name: Joi.string().allow(""),
|
|
2170
|
+
supported_validations: Joi.array().items(
|
|
2171
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
2172
|
+
),
|
|
2173
|
+
type: Joi.string().allow(""),
|
|
2174
|
+
});
|
|
2175
|
+
}
|
|
2176
|
+
|
|
1164
2177
|
/** @returns {DefaultNavigationResponse} */
|
|
1165
2178
|
static DefaultNavigationResponse() {
|
|
1166
2179
|
return Joi.object({
|
|
@@ -1168,6 +2181,23 @@ class ContentPlatformModel {
|
|
|
1168
2181
|
});
|
|
1169
2182
|
}
|
|
1170
2183
|
|
|
2184
|
+
/** @returns {DefaultSchemaComponent} */
|
|
2185
|
+
static DefaultSchemaComponent() {
|
|
2186
|
+
return Joi.object({
|
|
2187
|
+
items: Joi.array().items(
|
|
2188
|
+
ContentPlatformModel.DefaultSEOSchemaMarkupTemplate()
|
|
2189
|
+
),
|
|
2190
|
+
});
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
/** @returns {DefaultSEOSchemaMarkupTemplate} */
|
|
2194
|
+
static DefaultSEOSchemaMarkupTemplate() {
|
|
2195
|
+
return Joi.object({
|
|
2196
|
+
page_type: Joi.string().allow(""),
|
|
2197
|
+
schema: Joi.string().allow(""),
|
|
2198
|
+
});
|
|
2199
|
+
}
|
|
2200
|
+
|
|
1171
2201
|
/** @returns {Detail} */
|
|
1172
2202
|
static Detail() {
|
|
1173
2203
|
return Joi.object({
|
|
@@ -1177,6 +2207,19 @@ class ContentPlatformModel {
|
|
|
1177
2207
|
});
|
|
1178
2208
|
}
|
|
1179
2209
|
|
|
2210
|
+
/** @returns {Dropdown} */
|
|
2211
|
+
static Dropdown() {
|
|
2212
|
+
return Joi.object({
|
|
2213
|
+
category: Joi.string().allow(""),
|
|
2214
|
+
list_enabled: Joi.boolean(),
|
|
2215
|
+
name: Joi.string().allow(""),
|
|
2216
|
+
supported_validations: Joi.array().items(
|
|
2217
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
2218
|
+
),
|
|
2219
|
+
type: Joi.string().allow(""),
|
|
2220
|
+
});
|
|
2221
|
+
}
|
|
2222
|
+
|
|
1180
2223
|
/** @returns {EditorMeta} */
|
|
1181
2224
|
static EditorMeta() {
|
|
1182
2225
|
return Joi.object({
|
|
@@ -1239,6 +2282,66 @@ class ContentPlatformModel {
|
|
|
1239
2282
|
});
|
|
1240
2283
|
}
|
|
1241
2284
|
|
|
2285
|
+
/** @returns {FieldDefinitionSchema} */
|
|
2286
|
+
static FieldDefinitionSchema() {
|
|
2287
|
+
return Joi.object({
|
|
2288
|
+
_id: Joi.string().allow(""),
|
|
2289
|
+
company_id: Joi.string().allow(""),
|
|
2290
|
+
created_at: Joi.string().allow(""),
|
|
2291
|
+
created_by: Joi.string().allow(""),
|
|
2292
|
+
creator: Joi.string().allow(""),
|
|
2293
|
+
description: Joi.string().allow(""),
|
|
2294
|
+
invalid_fields_count: Joi.number(),
|
|
2295
|
+
is_deleted: Joi.boolean(),
|
|
2296
|
+
key: Joi.string().allow(""),
|
|
2297
|
+
multi_value: Joi.boolean(),
|
|
2298
|
+
name: Joi.string().allow(""),
|
|
2299
|
+
namespace: Joi.string().allow(""),
|
|
2300
|
+
required: Joi.boolean(),
|
|
2301
|
+
resource: Joi.string().allow(""),
|
|
2302
|
+
type: Joi.string().allow(""),
|
|
2303
|
+
type_name: Joi.string().allow(""),
|
|
2304
|
+
updated_at: Joi.string().allow(""),
|
|
2305
|
+
updated_by: Joi.string().allow(""),
|
|
2306
|
+
validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
|
|
2307
|
+
});
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
/** @returns {FieldValidations} */
|
|
2311
|
+
static FieldValidations() {
|
|
2312
|
+
return Joi.object({
|
|
2313
|
+
name: Joi.string().allow(""),
|
|
2314
|
+
type: Joi.string().allow(""),
|
|
2315
|
+
value: Joi.any(),
|
|
2316
|
+
});
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
/** @returns {File} */
|
|
2320
|
+
static File() {
|
|
2321
|
+
return Joi.object({
|
|
2322
|
+
category: Joi.string().allow(""),
|
|
2323
|
+
list_enabled: Joi.boolean(),
|
|
2324
|
+
name: Joi.string().allow(""),
|
|
2325
|
+
supported_validations: Joi.array().items(
|
|
2326
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
2327
|
+
),
|
|
2328
|
+
type: Joi.string().allow(""),
|
|
2329
|
+
});
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
/** @returns {FloatType} */
|
|
2333
|
+
static FloatType() {
|
|
2334
|
+
return Joi.object({
|
|
2335
|
+
category: Joi.string().allow(""),
|
|
2336
|
+
list_enabled: Joi.boolean(),
|
|
2337
|
+
name: Joi.string().allow(""),
|
|
2338
|
+
supported_validations: Joi.array().items(
|
|
2339
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
2340
|
+
),
|
|
2341
|
+
type: Joi.string().allow(""),
|
|
2342
|
+
});
|
|
2343
|
+
}
|
|
2344
|
+
|
|
1242
2345
|
/** @returns {GeneratedSEOContent} */
|
|
1243
2346
|
static GeneratedSEOContent() {
|
|
1244
2347
|
return Joi.object({
|
|
@@ -1299,6 +2402,32 @@ class ContentPlatformModel {
|
|
|
1299
2402
|
});
|
|
1300
2403
|
}
|
|
1301
2404
|
|
|
2405
|
+
/** @returns {Integer} */
|
|
2406
|
+
static Integer() {
|
|
2407
|
+
return Joi.object({
|
|
2408
|
+
category: Joi.string().allow(""),
|
|
2409
|
+
list_enabled: Joi.boolean(),
|
|
2410
|
+
name: Joi.string().allow(""),
|
|
2411
|
+
supported_validations: Joi.array().items(
|
|
2412
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
2413
|
+
),
|
|
2414
|
+
type: Joi.string().allow(""),
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
/** @returns {Json} */
|
|
2419
|
+
static Json() {
|
|
2420
|
+
return Joi.object({
|
|
2421
|
+
category: Joi.string().allow(""),
|
|
2422
|
+
list_enabled: Joi.boolean(),
|
|
2423
|
+
name: Joi.string().allow(""),
|
|
2424
|
+
supported_validations: Joi.array().items(
|
|
2425
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
2426
|
+
),
|
|
2427
|
+
type: Joi.string().allow(""),
|
|
2428
|
+
});
|
|
2429
|
+
}
|
|
2430
|
+
|
|
1302
2431
|
/** @returns {LandingPageGetResponse} */
|
|
1303
2432
|
static LandingPageGetResponse() {
|
|
1304
2433
|
return Joi.object({
|
|
@@ -1338,6 +2467,19 @@ class ContentPlatformModel {
|
|
|
1338
2467
|
});
|
|
1339
2468
|
}
|
|
1340
2469
|
|
|
2470
|
+
/** @returns {Metaobject} */
|
|
2471
|
+
static Metaobject() {
|
|
2472
|
+
return Joi.object({
|
|
2473
|
+
category: Joi.string().allow(""),
|
|
2474
|
+
list_enabled: Joi.boolean(),
|
|
2475
|
+
name: Joi.string().allow(""),
|
|
2476
|
+
supported_validations: Joi.array().items(
|
|
2477
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
2478
|
+
),
|
|
2479
|
+
type: Joi.string().allow(""),
|
|
2480
|
+
});
|
|
2481
|
+
}
|
|
2482
|
+
|
|
1341
2483
|
/** @returns {NavigationGetResponse} */
|
|
1342
2484
|
static NavigationGetResponse() {
|
|
1343
2485
|
return Joi.object({
|
|
@@ -1553,6 +2695,19 @@ class ContentPlatformModel {
|
|
|
1553
2695
|
});
|
|
1554
2696
|
}
|
|
1555
2697
|
|
|
2698
|
+
/** @returns {Product} */
|
|
2699
|
+
static Product() {
|
|
2700
|
+
return Joi.object({
|
|
2701
|
+
category: Joi.string().allow(""),
|
|
2702
|
+
list_enabled: Joi.boolean(),
|
|
2703
|
+
name: Joi.string().allow(""),
|
|
2704
|
+
supported_validations: Joi.array().items(
|
|
2705
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
2706
|
+
),
|
|
2707
|
+
type: Joi.string().allow(""),
|
|
2708
|
+
});
|
|
2709
|
+
}
|
|
2710
|
+
|
|
1556
2711
|
/** @returns {RemoveHandpickedSchema} */
|
|
1557
2712
|
static RemoveHandpickedSchema() {
|
|
1558
2713
|
return Joi.object({
|
|
@@ -1568,6 +2723,22 @@ class ContentPlatformModel {
|
|
|
1568
2723
|
});
|
|
1569
2724
|
}
|
|
1570
2725
|
|
|
2726
|
+
/** @returns {ResourceSchema} */
|
|
2727
|
+
static ResourceSchema() {
|
|
2728
|
+
return Joi.object({
|
|
2729
|
+
definitions_count: Joi.number(),
|
|
2730
|
+
key: Joi.string().allow(""),
|
|
2731
|
+
name: Joi.string().allow(""),
|
|
2732
|
+
});
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
/** @returns {ResourcesSchema} */
|
|
2736
|
+
static ResourcesSchema() {
|
|
2737
|
+
return Joi.object({
|
|
2738
|
+
resources: Joi.array().items(ContentPlatformModel.ResourceSchema()),
|
|
2739
|
+
});
|
|
2740
|
+
}
|
|
2741
|
+
|
|
1571
2742
|
/** @returns {ScheduleSchema} */
|
|
1572
2743
|
static ScheduleSchema() {
|
|
1573
2744
|
return Joi.object({
|
|
@@ -1582,12 +2753,24 @@ class ContentPlatformModel {
|
|
|
1582
2753
|
/** @returns {SEO} */
|
|
1583
2754
|
static SEO() {
|
|
1584
2755
|
return Joi.object({
|
|
2756
|
+
breadcrumb: Joi.array().items(ContentPlatformModel.SEObreadcrumb()),
|
|
2757
|
+
canonical_url: Joi.string().allow(""),
|
|
1585
2758
|
description: Joi.string().allow(""),
|
|
1586
2759
|
image: ContentPlatformModel.SEOImage(),
|
|
2760
|
+
meta_tags: Joi.array().items(ContentPlatformModel.SEOMetaItem()),
|
|
2761
|
+
sitemap: ContentPlatformModel.SEOSitemap(),
|
|
1587
2762
|
title: Joi.string().allow(""),
|
|
1588
2763
|
});
|
|
1589
2764
|
}
|
|
1590
2765
|
|
|
2766
|
+
/** @returns {SEObreadcrumb} */
|
|
2767
|
+
static SEObreadcrumb() {
|
|
2768
|
+
return Joi.object({
|
|
2769
|
+
action: ContentPlatformModel.Action(),
|
|
2770
|
+
url: Joi.string().allow(""),
|
|
2771
|
+
});
|
|
2772
|
+
}
|
|
2773
|
+
|
|
1591
2774
|
/** @returns {SeoComponent} */
|
|
1592
2775
|
static SeoComponent() {
|
|
1593
2776
|
return Joi.object({
|
|
@@ -1602,10 +2785,27 @@ class ContentPlatformModel {
|
|
|
1602
2785
|
});
|
|
1603
2786
|
}
|
|
1604
2787
|
|
|
2788
|
+
/** @returns {SEOMetaItem} */
|
|
2789
|
+
static SEOMetaItem() {
|
|
2790
|
+
return Joi.object({
|
|
2791
|
+
items: Joi.array().items(ContentPlatformModel.SEOMetaItems()),
|
|
2792
|
+
title: Joi.string().allow(""),
|
|
2793
|
+
});
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
/** @returns {SEOMetaItems} */
|
|
2797
|
+
static SEOMetaItems() {
|
|
2798
|
+
return Joi.object({
|
|
2799
|
+
key: Joi.string().allow(""),
|
|
2800
|
+
value: Joi.string().allow(""),
|
|
2801
|
+
});
|
|
2802
|
+
}
|
|
2803
|
+
|
|
1605
2804
|
/** @returns {SeoSchema} */
|
|
1606
2805
|
static SeoSchema() {
|
|
1607
2806
|
return Joi.object({
|
|
1608
2807
|
_id: Joi.string().allow(""),
|
|
2808
|
+
additional_sitemap: Joi.string().allow(""),
|
|
1609
2809
|
app: Joi.string().allow(""),
|
|
1610
2810
|
cannonical_enabled: Joi.boolean(),
|
|
1611
2811
|
created_at: Joi.string().allow(""),
|
|
@@ -1617,6 +2817,50 @@ class ContentPlatformModel {
|
|
|
1617
2817
|
});
|
|
1618
2818
|
}
|
|
1619
2819
|
|
|
2820
|
+
/** @returns {SeoSchemaComponent} */
|
|
2821
|
+
static SeoSchemaComponent() {
|
|
2822
|
+
return Joi.object({
|
|
2823
|
+
items: Joi.array().items(ContentPlatformModel.SEOSchemaMarkupTemplate()),
|
|
2824
|
+
page: ContentPlatformModel.Page(),
|
|
2825
|
+
});
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
/** @returns {SEOSchemaMarkupTemplate} */
|
|
2829
|
+
static SEOSchemaMarkupTemplate() {
|
|
2830
|
+
return Joi.object({
|
|
2831
|
+
active: Joi.boolean(),
|
|
2832
|
+
application: Joi.string().allow(""),
|
|
2833
|
+
created_at: Joi.string().allow(""),
|
|
2834
|
+
description: Joi.string().allow(""),
|
|
2835
|
+
id: Joi.string().allow(""),
|
|
2836
|
+
page_type: Joi.string().allow(""),
|
|
2837
|
+
schema: Joi.string().allow(""),
|
|
2838
|
+
title: Joi.string().allow(""),
|
|
2839
|
+
updated_at: Joi.string().allow(""),
|
|
2840
|
+
});
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
/** @returns {SEOSchemaMarkupTemplateRequestBody} */
|
|
2844
|
+
static SEOSchemaMarkupTemplateRequestBody() {
|
|
2845
|
+
return Joi.object({
|
|
2846
|
+
active: Joi.boolean(),
|
|
2847
|
+
created_at: Joi.string().allow(""),
|
|
2848
|
+
description: Joi.string().allow(""),
|
|
2849
|
+
page_type: Joi.string().allow(""),
|
|
2850
|
+
schema: Joi.string().allow(""),
|
|
2851
|
+
title: Joi.string().allow(""),
|
|
2852
|
+
updated_at: Joi.string().allow(""),
|
|
2853
|
+
});
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2856
|
+
/** @returns {SEOSitemap} */
|
|
2857
|
+
static SEOSitemap() {
|
|
2858
|
+
return Joi.object({
|
|
2859
|
+
frequency: Joi.string().allow(""),
|
|
2860
|
+
priority: Joi.number(),
|
|
2861
|
+
});
|
|
2862
|
+
}
|
|
2863
|
+
|
|
1620
2864
|
/** @returns {SlideshowGetResponse} */
|
|
1621
2865
|
static SlideshowGetResponse() {
|
|
1622
2866
|
return Joi.object({
|
|
@@ -1664,6 +2908,32 @@ class ContentPlatformModel {
|
|
|
1664
2908
|
});
|
|
1665
2909
|
}
|
|
1666
2910
|
|
|
2911
|
+
/** @returns {StringMultiLine} */
|
|
2912
|
+
static StringMultiLine() {
|
|
2913
|
+
return Joi.object({
|
|
2914
|
+
category: Joi.string().allow(""),
|
|
2915
|
+
list_enabled: Joi.boolean(),
|
|
2916
|
+
name: Joi.string().allow(""),
|
|
2917
|
+
supported_validations: Joi.array().items(
|
|
2918
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
2919
|
+
),
|
|
2920
|
+
type: Joi.string().allow(""),
|
|
2921
|
+
});
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
/** @returns {StringSingleLine} */
|
|
2925
|
+
static StringSingleLine() {
|
|
2926
|
+
return Joi.object({
|
|
2927
|
+
category: Joi.string().allow(""),
|
|
2928
|
+
list_enabled: Joi.boolean(),
|
|
2929
|
+
name: Joi.string().allow(""),
|
|
2930
|
+
supported_validations: Joi.array().items(
|
|
2931
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
2932
|
+
),
|
|
2933
|
+
type: Joi.string().allow(""),
|
|
2934
|
+
});
|
|
2935
|
+
}
|
|
2936
|
+
|
|
1667
2937
|
/** @returns {Support} */
|
|
1668
2938
|
static Support() {
|
|
1669
2939
|
return Joi.object({
|
|
@@ -1677,6 +2947,34 @@ class ContentPlatformModel {
|
|
|
1677
2947
|
});
|
|
1678
2948
|
}
|
|
1679
2949
|
|
|
2950
|
+
/** @returns {SupportedValidationsMetaExampleSchema} */
|
|
2951
|
+
static SupportedValidationsMetaExampleSchema() {
|
|
2952
|
+
return Joi.object({
|
|
2953
|
+
name: Joi.string().allow(""),
|
|
2954
|
+
value: Joi.string().allow(""),
|
|
2955
|
+
});
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
/** @returns {SupportedValidationsMetaSchema} */
|
|
2959
|
+
static SupportedValidationsMetaSchema() {
|
|
2960
|
+
return Joi.object({
|
|
2961
|
+
examples: Joi.array().items(
|
|
2962
|
+
ContentPlatformModel.SupportedValidationsMetaExampleSchema()
|
|
2963
|
+
),
|
|
2964
|
+
});
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
/** @returns {SupportedValidationsSchema} */
|
|
2968
|
+
static SupportedValidationsSchema() {
|
|
2969
|
+
return Joi.object({
|
|
2970
|
+
display: Joi.string().allow(""),
|
|
2971
|
+
meta: ContentPlatformModel.SupportedValidationsMetaSchema(),
|
|
2972
|
+
name: Joi.string().allow(""),
|
|
2973
|
+
required: Joi.boolean(),
|
|
2974
|
+
type: Joi.string().allow(""),
|
|
2975
|
+
});
|
|
2976
|
+
}
|
|
2977
|
+
|
|
1680
2978
|
/** @returns {TagDeleteSuccessResponse} */
|
|
1681
2979
|
static TagDeleteSuccessResponse() {
|
|
1682
2980
|
return Joi.object({
|
|
@@ -1731,6 +3029,18 @@ class ContentPlatformModel {
|
|
|
1731
3029
|
});
|
|
1732
3030
|
}
|
|
1733
3031
|
|
|
3032
|
+
/** @returns {Url} */
|
|
3033
|
+
static Url() {
|
|
3034
|
+
return Joi.object({
|
|
3035
|
+
list_enabled: Joi.boolean(),
|
|
3036
|
+
name: Joi.string().allow(""),
|
|
3037
|
+
supported_validations: Joi.array().items(
|
|
3038
|
+
ContentPlatformModel.SupportedValidationsSchema()
|
|
3039
|
+
),
|
|
3040
|
+
type: Joi.string().allow(""),
|
|
3041
|
+
});
|
|
3042
|
+
}
|
|
3043
|
+
|
|
1734
3044
|
/**
|
|
1735
3045
|
* Enum: GenerationEntityType Used By: Content
|
|
1736
3046
|
*
|