@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  4. package/sdk/application/Cart/CartApplicationClient.js +5 -3
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
  6. package/sdk/application/Cart/CartApplicationModel.js +74 -0
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
  8. package/sdk/application/Cart/CartApplicationValidator.js +4 -0
  9. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
  13. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
  14. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
  15. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
  16. package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
  17. package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
  18. package/sdk/application/Content/ContentApplicationClient.js +246 -0
  19. package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
  20. package/sdk/application/Content/ContentApplicationModel.js +252 -0
  21. package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
  22. package/sdk/application/Content/ContentApplicationValidator.js +41 -0
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
  27. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
  28. package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  30. package/sdk/application/Order/OrderApplicationClient.js +32 -8
  31. package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
  32. package/sdk/application/Order/OrderApplicationModel.js +6 -0
  33. package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
  34. package/sdk/application/Order/OrderApplicationValidator.js +8 -0
  35. package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
  36. package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
  37. package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
  38. package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
  39. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
  40. package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
  41. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
  42. package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
  43. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  44. package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
  45. package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
  46. package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
  47. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
  48. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
  49. package/sdk/application/User/UserApplicationClient.d.ts +33 -0
  50. package/sdk/application/User/UserApplicationClient.js +239 -0
  51. package/sdk/application/User/UserApplicationModel.d.ts +28 -13
  52. package/sdk/application/User/UserApplicationModel.js +36 -12
  53. package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
  54. package/sdk/application/User/UserApplicationValidator.js +36 -0
  55. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
  56. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
  57. package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
  58. package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
  59. package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
  60. package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
  61. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
  62. package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
  63. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
  64. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
  65. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
  66. package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
  67. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
  68. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
  69. package/sdk/partner/PartnerClient.d.ts +6 -0
  70. package/sdk/partner/PartnerClient.js +9 -0
  71. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
  73. package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
  74. package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
  75. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
  76. package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
  77. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
  78. package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
  79. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
  80. package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
  81. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
  87. package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
  89. package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
  97. package/sdk/platform/Cart/CartPlatformModel.js +71 -4
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
  112. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
  120. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  122. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
  123. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
  124. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  125. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  126. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
  127. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
  128. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
  129. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
  130. package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
  131. package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
  133. package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
  134. package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
  135. package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
  136. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  137. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  138. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
  139. package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
  142. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
  143. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
  144. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
  145. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
  146. package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
  147. package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
  148. package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
  149. package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
  150. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
  151. package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
  157. package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
  163. package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
  165. package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
  167. package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
  168. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
  169. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
  170. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
  171. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
  172. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  173. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  174. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
  175. package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
  176. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/PlatformApplicationClient.js +4 -4
  178. package/sdk/platform/PlatformClient.d.ts +4 -2
  179. package/sdk/platform/PlatformClient.js +8 -4
  180. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
  181. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
  190. package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
  191. package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
  192. package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
  193. package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
  194. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
  195. package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
  196. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
  197. package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
  198. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
  199. package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
  200. package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
  201. package/sdk/platform/User/UserPlatformModel.js +256 -5
  202. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
  203. package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
  204. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
  205. package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
  206. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
  207. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  208. package/sdk/platform/index.d.ts +1 -1
  209. package/sdk/platform/index.js +2 -2
  210. package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
  211. package/sdk/public/Billing/BillingPublicClient.js +116 -0
  212. package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
  213. package/sdk/public/Billing/BillingPublicModel.js +96 -0
  214. package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
  215. package/sdk/public/Billing/BillingPublicValidator.js +19 -0
  216. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  217. package/sdk/public/Content/ContentPublicClient.js +114 -0
  218. package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
  219. package/sdk/public/Content/ContentPublicModel.js +60 -0
  220. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
  221. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  222. package/sdk/public/PublicClient.d.ts +4 -0
  223. package/sdk/public/PublicClient.js +8 -0
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
  225. package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
  227. package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
  230. package/sdk/public/index.d.ts +2 -0
  231. 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,47 @@ 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
+ * @property {Object} [target_json]
657
+ */
658
+
295
659
  /**
296
660
  * @typedef Detail
297
661
  * @property {string} [description]
@@ -299,6 +663,15 @@ const Joi = require("joi");
299
663
  * @property {string} [title]
300
664
  */
301
665
 
666
+ /**
667
+ * @typedef Dropdown
668
+ * @property {string} [category]
669
+ * @property {boolean} [list_enabled]
670
+ * @property {string} [name]
671
+ * @property {SupportedValidationsSchema[]} [supported_validations]
672
+ * @property {string} [type]
673
+ */
674
+
302
675
  /**
303
676
  * @typedef EditorMeta
304
677
  * @property {string} [background_color]
@@ -349,6 +722,54 @@ const Joi = require("joi");
349
722
  * @property {string[]} [tags]
350
723
  */
351
724
 
725
+ /**
726
+ * @typedef FieldDefinitionSchema
727
+ * @property {string} [_id]
728
+ * @property {string} [company_id]
729
+ * @property {string} [created_at]
730
+ * @property {string} [created_by]
731
+ * @property {string} [creator]
732
+ * @property {string} [description]
733
+ * @property {number} [invalid_fields_count]
734
+ * @property {boolean} [is_deleted]
735
+ * @property {string} [key]
736
+ * @property {boolean} [multi_value]
737
+ * @property {string} [name]
738
+ * @property {string} [namespace]
739
+ * @property {boolean} [required]
740
+ * @property {string} [resource]
741
+ * @property {string} [type]
742
+ * @property {string} [type_name]
743
+ * @property {string} [updated_at]
744
+ * @property {string} [updated_by]
745
+ * @property {FieldValidations[]} [validations]
746
+ */
747
+
748
+ /**
749
+ * @typedef FieldValidations
750
+ * @property {string} [name]
751
+ * @property {string} [type]
752
+ * @property {Object} [value]
753
+ */
754
+
755
+ /**
756
+ * @typedef File
757
+ * @property {string} [category]
758
+ * @property {boolean} [list_enabled]
759
+ * @property {string} [name]
760
+ * @property {SupportedValidationsSchema[]} [supported_validations]
761
+ * @property {string} [type]
762
+ */
763
+
764
+ /**
765
+ * @typedef FloatType
766
+ * @property {string} [category]
767
+ * @property {boolean} [list_enabled]
768
+ * @property {string} [name]
769
+ * @property {SupportedValidationsSchema[]} [supported_validations]
770
+ * @property {string} [type]
771
+ */
772
+
352
773
  /**
353
774
  * @typedef GeneratedSEOContent
354
775
  * @property {string} [description]
@@ -395,6 +816,24 @@ const Joi = require("joi");
395
816
  * @property {string} [url]
396
817
  */
397
818
 
819
+ /**
820
+ * @typedef Integer
821
+ * @property {string} [category]
822
+ * @property {boolean} [list_enabled]
823
+ * @property {string} [name]
824
+ * @property {SupportedValidationsSchema[]} [supported_validations]
825
+ * @property {string} [type]
826
+ */
827
+
828
+ /**
829
+ * @typedef Json
830
+ * @property {string} [category]
831
+ * @property {boolean} [list_enabled]
832
+ * @property {string} [name]
833
+ * @property {SupportedValidationsSchema[]} [supported_validations]
834
+ * @property {string} [type]
835
+ */
836
+
398
837
  /**
399
838
  * @typedef LandingPageGetResponse
400
839
  * @property {LandingPageSchema[]} [items]
@@ -426,6 +865,15 @@ const Joi = require("joi");
426
865
  * @property {Language} [hi]
427
866
  */
428
867
 
868
+ /**
869
+ * @typedef Metaobject
870
+ * @property {string} [category]
871
+ * @property {boolean} [list_enabled]
872
+ * @property {string} [name]
873
+ * @property {SupportedValidationsSchema[]} [supported_validations]
874
+ * @property {string} [type]
875
+ */
876
+
429
877
  /**
430
878
  * @typedef NavigationGetResponse
431
879
  * @property {NavigationSchema[]} [items]
@@ -604,6 +1052,15 @@ const Joi = require("joi");
604
1052
  * @property {PhoneProperties[]} [phone]
605
1053
  */
606
1054
 
1055
+ /**
1056
+ * @typedef Product
1057
+ * @property {string} [category]
1058
+ * @property {boolean} [list_enabled]
1059
+ * @property {string} [name]
1060
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1061
+ * @property {string} [type]
1062
+ */
1063
+
607
1064
  /**
608
1065
  * @typedef RemoveHandpickedSchema
609
1066
  * @property {string[]} [tags]
@@ -615,6 +1072,18 @@ const Joi = require("joi");
615
1072
  * @property {string} [value]
616
1073
  */
617
1074
 
1075
+ /**
1076
+ * @typedef ResourceSchema
1077
+ * @property {number} [definitions_count] - Number of definitions
1078
+ * @property {string} [key] - Resource key
1079
+ * @property {string} [name] - Resource name
1080
+ */
1081
+
1082
+ /**
1083
+ * @typedef ResourcesSchema
1084
+ * @property {ResourceSchema[]} [resources]
1085
+ */
1086
+
618
1087
  /**
619
1088
  * @typedef ScheduleSchema
620
1089
  * @property {string} [cron]
@@ -626,11 +1095,21 @@ const Joi = require("joi");
626
1095
 
627
1096
  /**
628
1097
  * @typedef SEO
1098
+ * @property {SEObreadcrumb[]} [breadcrumb]
1099
+ * @property {string} [canonical_url]
629
1100
  * @property {string} [description]
630
1101
  * @property {SEOImage} [image]
1102
+ * @property {SEOMetaItem[]} [meta_tags]
1103
+ * @property {SEOSitemap} [sitemap]
631
1104
  * @property {string} [title]
632
1105
  */
633
1106
 
1107
+ /**
1108
+ * @typedef SEObreadcrumb
1109
+ * @property {Action} [action]
1110
+ * @property {string} [url]
1111
+ */
1112
+
634
1113
  /**
635
1114
  * @typedef SeoComponent
636
1115
  * @property {SeoSchema} [seo]
@@ -641,9 +1120,22 @@ const Joi = require("joi");
641
1120
  * @property {string} [url]
642
1121
  */
643
1122
 
1123
+ /**
1124
+ * @typedef SEOMetaItem
1125
+ * @property {SEOMetaItems[]} [items]
1126
+ * @property {string} [title]
1127
+ */
1128
+
1129
+ /**
1130
+ * @typedef SEOMetaItems
1131
+ * @property {string} [key]
1132
+ * @property {string} [value]
1133
+ */
1134
+
644
1135
  /**
645
1136
  * @typedef SeoSchema
646
1137
  * @property {string} [_id]
1138
+ * @property {string} [additional_sitemap]
647
1139
  * @property {string} [app]
648
1140
  * @property {boolean} [cannonical_enabled]
649
1141
  * @property {string} [created_at]
@@ -654,6 +1146,44 @@ const Joi = require("joi");
654
1146
  * @property {string} [updated_at]
655
1147
  */
656
1148
 
1149
+ /**
1150
+ * @typedef SeoSchemaComponent
1151
+ * @property {SEOSchemaMarkupTemplate[]} [items]
1152
+ * @property {Page} [page]
1153
+ */
1154
+
1155
+ /**
1156
+ * @typedef SEOSchemaMarkupTemplate
1157
+ * @property {boolean} [active]
1158
+ * @property {string} [application]
1159
+ * @property {string} [created_at]
1160
+ * @property {string} [description]
1161
+ * @property {string} [id]
1162
+ * @property {string} [page_type]
1163
+ * @property {string} [schema]
1164
+ * @property {Object} [target_json]
1165
+ * @property {string} [title]
1166
+ * @property {string} [updated_at]
1167
+ */
1168
+
1169
+ /**
1170
+ * @typedef SEOSchemaMarkupTemplateRequestBody
1171
+ * @property {boolean} [active]
1172
+ * @property {string} [created_at]
1173
+ * @property {string} [description]
1174
+ * @property {string} [page_type]
1175
+ * @property {string} [schema]
1176
+ * @property {Object} [target_json]
1177
+ * @property {string} [title]
1178
+ * @property {string} [updated_at]
1179
+ */
1180
+
1181
+ /**
1182
+ * @typedef SEOSitemap
1183
+ * @property {string} [frequency]
1184
+ * @property {number} [priority]
1185
+ */
1186
+
657
1187
  /**
658
1188
  * @typedef SlideshowGetResponse
659
1189
  * @property {SlideshowSchema[]} [items]
@@ -693,6 +1223,24 @@ const Joi = require("joi");
693
1223
  * @property {string} [slug]
694
1224
  */
695
1225
 
1226
+ /**
1227
+ * @typedef StringMultiLine
1228
+ * @property {string} [category]
1229
+ * @property {boolean} [list_enabled]
1230
+ * @property {string} [name]
1231
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1232
+ * @property {string} [type]
1233
+ */
1234
+
1235
+ /**
1236
+ * @typedef StringSingleLine
1237
+ * @property {string} [category]
1238
+ * @property {boolean} [list_enabled]
1239
+ * @property {string} [name]
1240
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1241
+ * @property {string} [type]
1242
+ */
1243
+
696
1244
  /**
697
1245
  * @typedef Support
698
1246
  * @property {string} [_id]
@@ -704,6 +1252,26 @@ const Joi = require("joi");
704
1252
  * @property {string} [updated_at]
705
1253
  */
706
1254
 
1255
+ /**
1256
+ * @typedef SupportedValidationsMetaExampleSchema
1257
+ * @property {string} [name]
1258
+ * @property {string} [value]
1259
+ */
1260
+
1261
+ /**
1262
+ * @typedef SupportedValidationsMetaSchema
1263
+ * @property {SupportedValidationsMetaExampleSchema[]} [examples]
1264
+ */
1265
+
1266
+ /**
1267
+ * @typedef SupportedValidationsSchema
1268
+ * @property {string} [display]
1269
+ * @property {SupportedValidationsMetaSchema} [meta]
1270
+ * @property {string} [name]
1271
+ * @property {boolean} [required]
1272
+ * @property {string} [type]
1273
+ */
1274
+
707
1275
  /**
708
1276
  * @typedef TagDeleteSuccessResponse
709
1277
  * @property {boolean} [success]
@@ -746,6 +1314,14 @@ const Joi = require("joi");
746
1314
  * @property {HandpickedTagSchema} [tag]
747
1315
  */
748
1316
 
1317
+ /**
1318
+ * @typedef Url
1319
+ * @property {boolean} [list_enabled]
1320
+ * @property {string} [name]
1321
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1322
+ * @property {string} [type]
1323
+ */
1324
+
749
1325
  /** @typedef {"title" | "description"} GenerationEntityType */
750
1326
 
751
1327
  /**
@@ -944,6 +1520,19 @@ class ContentPlatformModel {
944
1520
  });
945
1521
  }
946
1522
 
1523
+ /** @returns {BooleanType} */
1524
+ static BooleanType() {
1525
+ return Joi.object({
1526
+ category: Joi.string().allow(""),
1527
+ list_enabled: Joi.boolean(),
1528
+ name: Joi.string().allow(""),
1529
+ supported_validations: Joi.array().items(
1530
+ ContentPlatformModel.SupportedValidationsSchema()
1531
+ ),
1532
+ type: Joi.string().allow(""),
1533
+ });
1534
+ }
1535
+
947
1536
  /** @returns {CategoryRequestSchema} */
948
1537
  static CategoryRequestSchema() {
949
1538
  return Joi.object({
@@ -1017,87 +1606,488 @@ class ContentPlatformModel {
1017
1606
  });
1018
1607
  }
1019
1608
 
1020
- /** @returns {CreateAnnouncementSchema} */
1021
- static CreateAnnouncementSchema() {
1609
+ /** @returns {CreateAnnouncementSchema} */
1610
+ static CreateAnnouncementSchema() {
1611
+ return Joi.object({
1612
+ data: ContentPlatformModel.AdminAnnouncementSchema(),
1613
+ message: Joi.string().allow(""),
1614
+ });
1615
+ }
1616
+
1617
+ /** @returns {CreatedBySchema} */
1618
+ static CreatedBySchema() {
1619
+ return Joi.object({
1620
+ id: Joi.string().allow(""),
1621
+ });
1622
+ }
1623
+
1624
+ /** @returns {CreateFaqCategoryRequestSchema} */
1625
+ static CreateFaqCategoryRequestSchema() {
1626
+ return Joi.object({
1627
+ category: ContentPlatformModel.CategoryRequestSchema(),
1628
+ });
1629
+ }
1630
+
1631
+ /** @returns {CreateFaqCategorySchema} */
1632
+ static CreateFaqCategorySchema() {
1633
+ return Joi.object({
1634
+ category: ContentPlatformModel.CategorySchema(),
1635
+ });
1636
+ }
1637
+
1638
+ /** @returns {CreateFaqResponseSchema} */
1639
+ static CreateFaqResponseSchema() {
1640
+ return Joi.object({
1641
+ faq: ContentPlatformModel.FaqSchema(),
1642
+ });
1643
+ }
1644
+
1645
+ /** @returns {CreateFaqSchema} */
1646
+ static CreateFaqSchema() {
1647
+ return Joi.object({
1648
+ faq: ContentPlatformModel.FAQ(),
1649
+ });
1650
+ }
1651
+
1652
+ /** @returns {CreateTagRequestSchema} */
1653
+ static CreateTagRequestSchema() {
1654
+ return Joi.object({
1655
+ tags: Joi.array().items(ContentPlatformModel.CreateTagSchema()),
1656
+ });
1657
+ }
1658
+
1659
+ /** @returns {CreateTagSchema} */
1660
+ static CreateTagSchema() {
1661
+ return Joi.object({
1662
+ _id: Joi.string().allow(""),
1663
+ attributes: Joi.any(),
1664
+ content: Joi.string().allow(""),
1665
+ name: Joi.string().allow(""),
1666
+ pages: Joi.array().items(Joi.any()),
1667
+ position: Joi.string().allow(""),
1668
+ sub_type: Joi.string().allow(""),
1669
+ type: Joi.string().allow(""),
1670
+ url: Joi.string().allow(""),
1671
+ });
1672
+ }
1673
+
1674
+ /** @returns {CronSchedule} */
1675
+ static CronSchedule() {
1676
+ return Joi.object({
1677
+ cron: Joi.string().allow(""),
1678
+ duration: Joi.number(),
1679
+ end: Joi.string().allow(""),
1680
+ start: Joi.string().allow(""),
1681
+ });
1682
+ }
1683
+
1684
+ /** @returns {CustomDataDeleteSchema} */
1685
+ static CustomDataDeleteSchema() {
1686
+ return Joi.object({
1687
+ message: Joi.string().allow(""),
1688
+ success: Joi.boolean(),
1689
+ });
1690
+ }
1691
+
1692
+ /** @returns {CustomField} */
1693
+ static CustomField() {
1694
+ return Joi.object({
1695
+ definition_id: Joi.string().allow(""),
1696
+ value: Joi.array().items(Joi.any()),
1697
+ });
1698
+ }
1699
+
1700
+ /** @returns {CustomFieldDefinitionDetailResSchema} */
1701
+ static CustomFieldDefinitionDetailResSchema() {
1702
+ return Joi.object({
1703
+ _id: Joi.string().allow(""),
1704
+ application_id: Joi.string().allow(""),
1705
+ company_id: Joi.string().allow(""),
1706
+ created_at: Joi.string().allow(""),
1707
+ created_by: Joi.string().allow(""),
1708
+ creator: Joi.string().allow(""),
1709
+ description: Joi.string().allow(""),
1710
+ is_deleted: Joi.boolean(),
1711
+ key: Joi.string().allow(""),
1712
+ multi_value: Joi.boolean(),
1713
+ name: Joi.string().allow(""),
1714
+ namespace: Joi.string().allow(""),
1715
+ required: Joi.boolean(),
1716
+ resource: Joi.string().allow(""),
1717
+ type: Joi.string().allow(""),
1718
+ updated_at: Joi.string().allow(""),
1719
+ updated_by: Joi.string().allow(""),
1720
+ validations: Joi.array().items(Joi.any()),
1721
+ });
1722
+ }
1723
+
1724
+ /** @returns {CustomFieldDefinitionRequestSchema} */
1725
+ static CustomFieldDefinitionRequestSchema() {
1726
+ return Joi.object({
1727
+ description: Joi.string().allow(""),
1728
+ key: Joi.string().allow(""),
1729
+ multi_value: Joi.boolean(),
1730
+ name: Joi.string().allow(""),
1731
+ namespace: Joi.string().allow(""),
1732
+ resource: Joi.string().allow(""),
1733
+ type: Joi.string().allow(""),
1734
+ validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
1735
+ });
1736
+ }
1737
+
1738
+ /** @returns {CustomFieldDefinitionsSchema} */
1739
+ static CustomFieldDefinitionsSchema() {
1740
+ return Joi.object({
1741
+ items: Joi.array().items(ContentPlatformModel.FieldDefinitionSchema()),
1742
+ page: ContentPlatformModel.Page(),
1743
+ });
1744
+ }
1745
+
1746
+ /** @returns {CustomFieldRequestSchema} */
1747
+ static CustomFieldRequestSchema() {
1748
+ return Joi.object({
1749
+ fields: Joi.array().items(ContentPlatformModel.CustomField()),
1750
+ });
1751
+ }
1752
+
1753
+ /** @returns {CustomFieldSchema} */
1754
+ static CustomFieldSchema() {
1755
+ return Joi.object({
1756
+ _id: Joi.string().allow(""),
1757
+ company_id: Joi.string().allow(""),
1758
+ created_at: Joi.string().allow(""),
1759
+ created_by: Joi.string().allow(""),
1760
+ creator: Joi.string().allow(""),
1761
+ definition_id: Joi.string().allow(""),
1762
+ has_invalid_values: Joi.boolean(),
1763
+ invalid_value_errors: Joi.array().items(Joi.any()),
1764
+ is_deleted: Joi.boolean(),
1765
+ key: Joi.string().allow(""),
1766
+ multi_value: Joi.boolean(),
1767
+ namespace: Joi.string().allow(""),
1768
+ resource: Joi.string().allow(""),
1769
+ resource_id: Joi.string().allow(""),
1770
+ type: Joi.string().allow(""),
1771
+ updated_at: Joi.string().allow(""),
1772
+ value: Joi.array().items(ContentPlatformModel.CustomFieldValue()),
1773
+ });
1774
+ }
1775
+
1776
+ /** @returns {CustomFieldsResponseByResourceIdSchema} */
1777
+ static CustomFieldsResponseByResourceIdSchema() {
1778
+ return Joi.object({
1779
+ items: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
1780
+ });
1781
+ }
1782
+
1783
+ /** @returns {CustomFieldsResponseSchema} */
1784
+ static CustomFieldsResponseSchema() {
1785
+ return Joi.object({
1786
+ items: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
1787
+ page: ContentPlatformModel.Page(),
1788
+ });
1789
+ }
1790
+
1791
+ /** @returns {CustomFieldTypeSchema} */
1792
+ static CustomFieldTypeSchema() {
1793
+ return Joi.object({
1794
+ boolean_type: ContentPlatformModel.BooleanType(),
1795
+ date: ContentPlatformModel.Date(),
1796
+ datetime: ContentPlatformModel.Datetime(),
1797
+ dropdown: ContentPlatformModel.Dropdown(),
1798
+ file: ContentPlatformModel.File(),
1799
+ float_type: ContentPlatformModel.FloatType(),
1800
+ integer: ContentPlatformModel.Integer(),
1801
+ json: ContentPlatformModel.Json(),
1802
+ metaobject: ContentPlatformModel.Metaobject(),
1803
+ product: ContentPlatformModel.Product(),
1804
+ string_multi_line: ContentPlatformModel.StringMultiLine(),
1805
+ string_single_line: ContentPlatformModel.StringSingleLine(),
1806
+ url: ContentPlatformModel.Url(),
1807
+ });
1808
+ }
1809
+
1810
+ /** @returns {CustomFieldValue} */
1811
+ static CustomFieldValue() {
1812
+ return Joi.object({
1813
+ value: Joi.any(),
1814
+ });
1815
+ }
1816
+
1817
+ /** @returns {CustomMetaTag} */
1818
+ static CustomMetaTag() {
1819
+ return Joi.object({
1820
+ _id: Joi.string().allow(""),
1821
+ content: Joi.string().allow(""),
1822
+ name: Joi.string().allow(""),
1823
+ });
1824
+ }
1825
+
1826
+ /** @returns {CustomObjectBulkEntry} */
1827
+ static CustomObjectBulkEntry() {
1828
+ return Joi.object({
1829
+ items: Joi.array().items(ContentPlatformModel.CustomObjectJobSchema()),
1830
+ page: ContentPlatformModel.Page(),
1831
+ });
1832
+ }
1833
+
1834
+ /** @returns {CustomObjectBulkEntryInitiateDownload} */
1835
+ static CustomObjectBulkEntryInitiateDownload() {
1836
+ return Joi.object({
1837
+ message: Joi.string().allow(""),
1838
+ task_id: Joi.string().allow(""),
1839
+ });
1840
+ }
1841
+
1842
+ /** @returns {CustomObjectBulkSchema} */
1843
+ static CustomObjectBulkSchema() {
1844
+ return Joi.object({
1845
+ total_records: Joi.number(),
1846
+ url: Joi.string().allow(""),
1847
+ });
1848
+ }
1849
+
1850
+ /** @returns {CustomObjectByIdSchema} */
1851
+ static CustomObjectByIdSchema() {
1852
+ return Joi.object({
1853
+ _id: Joi.string().allow(""),
1854
+ definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
1855
+ display_name: Joi.string().allow(""),
1856
+ fields: Joi.array().items(ContentPlatformModel.CustomObjectFieldSchema()),
1857
+ references: Joi.array().items(Joi.any()),
1858
+ status: Joi.string().allow(""),
1859
+ });
1860
+ }
1861
+
1862
+ /** @returns {CustomObjectCustomFieldDefinitionResSchema} */
1863
+ static CustomObjectCustomFieldDefinitionResSchema() {
1864
+ return Joi.object({
1865
+ _id: Joi.string().allow(""),
1866
+ company_id: Joi.string().allow(""),
1867
+ created_at: Joi.string().allow(""),
1868
+ created_by: Joi.string().allow(""),
1869
+ creator: Joi.string().allow(""),
1870
+ description: Joi.string().allow(""),
1871
+ is_deleted: Joi.boolean(),
1872
+ key: Joi.string().allow(""),
1873
+ metaobject_definition_id: Joi.string().allow(""),
1874
+ multi_value: Joi.boolean(),
1875
+ name: Joi.string().allow(""),
1876
+ namespace: Joi.string().allow(""),
1877
+ required: Joi.boolean(),
1878
+ resource: Joi.string().allow(""),
1879
+ type: Joi.string().allow(""),
1880
+ updated_at: Joi.string().allow(""),
1881
+ validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
1882
+ });
1883
+ }
1884
+
1885
+ /** @returns {CustomObjectCustomFieldDefinitions} */
1886
+ static CustomObjectCustomFieldDefinitions() {
1887
+ return Joi.object({
1888
+ action: Joi.string().allow(""),
1889
+ description: Joi.string().allow(""),
1890
+ id: Joi.string().allow(""),
1891
+ key: Joi.string().allow(""),
1892
+ multi_value: Joi.boolean(),
1893
+ name: Joi.string().allow(""),
1894
+ required: Joi.boolean(),
1895
+ type: Joi.string().allow(""),
1896
+ validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
1897
+ });
1898
+ }
1899
+
1900
+ /** @returns {CustomObjectDefinitionDeleteResponseSchema} */
1901
+ static CustomObjectDefinitionDeleteResponseSchema() {
1902
+ return Joi.object({
1903
+ message: Joi.string().allow(""),
1904
+ success: Joi.boolean(),
1905
+ });
1906
+ }
1907
+
1908
+ /** @returns {CustomObjectDefinitionRequestSchema} */
1909
+ static CustomObjectDefinitionRequestSchema() {
1910
+ return Joi.object({
1911
+ description: Joi.string().allow(""),
1912
+ display_name_key: Joi.string().allow(""),
1913
+ field_definitions: Joi.array().items(
1914
+ ContentPlatformModel.CustomObjectCustomFieldDefinitions()
1915
+ ),
1916
+ name: Joi.string().allow(""),
1917
+ type: Joi.string().allow(""),
1918
+ });
1919
+ }
1920
+
1921
+ /** @returns {CustomObjectDefinitionSchema} */
1922
+ static CustomObjectDefinitionSchema() {
1923
+ return Joi.object({
1924
+ _id: Joi.string().allow(""),
1925
+ created_by: Joi.string().allow(""),
1926
+ creator: Joi.string().allow(""),
1927
+ description: Joi.string().allow(""),
1928
+ display_name_key: Joi.string().allow(""),
1929
+ field_definitions: Joi.array().items(
1930
+ ContentPlatformModel.CustomObjectCustomFieldDefinitionResSchema()
1931
+ ),
1932
+ name: Joi.string().allow(""),
1933
+ type: Joi.string().allow(""),
1934
+ updated_by: Joi.string().allow(""),
1935
+ });
1936
+ }
1937
+
1938
+ /** @returns {CustomObjectDefinitionsSchema} */
1939
+ static CustomObjectDefinitionsSchema() {
1940
+ return Joi.object({
1941
+ items: Joi.array().items(ContentPlatformModel.CustomObjectEntry()),
1942
+ page: ContentPlatformModel.Page(),
1943
+ });
1944
+ }
1945
+
1946
+ /** @returns {CustomObjectDefinitionUpdateRequestSchema} */
1947
+ static CustomObjectDefinitionUpdateRequestSchema() {
1948
+ return Joi.object({
1949
+ description: Joi.string().allow(""),
1950
+ display_name_key: Joi.string().allow(""),
1951
+ field_definitions: Joi.array().items(
1952
+ ContentPlatformModel.CustomObjectCustomFieldDefinitions()
1953
+ ),
1954
+ name: Joi.string().allow(""),
1955
+ type: Joi.string().allow(""),
1956
+ });
1957
+ }
1958
+
1959
+ /** @returns {CustomObjectEntry} */
1960
+ static CustomObjectEntry() {
1961
+ return Joi.object({
1962
+ _id: Joi.string().allow(""),
1963
+ entries_count: Joi.number(),
1964
+ fields_count: Joi.number(),
1965
+ name: Joi.string().allow(""),
1966
+ type: Joi.string().allow(""),
1967
+ updated_at: Joi.string().allow(""),
1968
+ });
1969
+ }
1970
+
1971
+ /** @returns {CustomObjectEntryBulkUploadResponse} */
1972
+ static CustomObjectEntryBulkUploadResponse() {
1973
+ return Joi.object({
1974
+ total_records: Joi.number(),
1975
+ url: Joi.string().allow(""),
1976
+ });
1977
+ }
1978
+
1979
+ /** @returns {CustomObjectEntryFieldSchema} */
1980
+ static CustomObjectEntryFieldSchema() {
1022
1981
  return Joi.object({
1023
- data: ContentPlatformModel.AdminAnnouncementSchema(),
1024
- message: Joi.string().allow(""),
1982
+ definition_id: Joi.string().allow(""),
1983
+ value: Joi.array().items(Joi.any()),
1025
1984
  });
1026
1985
  }
1027
1986
 
1028
- /** @returns {CreatedBySchema} */
1029
- static CreatedBySchema() {
1987
+ /** @returns {CustomObjectFieldSchema} */
1988
+ static CustomObjectFieldSchema() {
1030
1989
  return Joi.object({
1031
- id: Joi.string().allow(""),
1990
+ _id: Joi.string().allow(""),
1991
+ definition_id: Joi.string().allow(""),
1992
+ key: Joi.string().allow(""),
1993
+ type: Joi.string().allow(""),
1994
+ value: Joi.array().items(Joi.any()),
1032
1995
  });
1033
1996
  }
1034
1997
 
1035
- /** @returns {CreateFaqCategoryRequestSchema} */
1036
- static CreateFaqCategoryRequestSchema() {
1998
+ /** @returns {CustomObjectJobSchema} */
1999
+ static CustomObjectJobSchema() {
1037
2000
  return Joi.object({
1038
- category: ContentPlatformModel.CategoryRequestSchema(),
2001
+ _id: Joi.string().allow(""),
2002
+ action_type: Joi.string().allow(""),
2003
+ company_id: Joi.string().allow(""),
2004
+ created_at: Joi.string().allow(""),
2005
+ created_by: Joi.string().allow(""),
2006
+ creator: Joi.string().allow(""),
2007
+ entity: Joi.string().allow(""),
2008
+ error_count: Joi.number(),
2009
+ error_jobs: Joi.array().items(Joi.string().allow("")),
2010
+ error_url: Joi.string().allow(""),
2011
+ errors_occured: Joi.array().items(Joi.string().allow("")),
2012
+ finished_count: Joi.number(),
2013
+ finished_jobs: Joi.array().items(Joi.string().allow("")),
2014
+ jobs: Joi.array().items(Joi.string().allow("")),
2015
+ meta: ContentPlatformModel.CustomObjectMetaSchema(),
2016
+ status: Joi.string().allow(""),
2017
+ success_count: Joi.number(),
2018
+ total_jobs: Joi.number(),
2019
+ updated_at: Joi.string().allow(""),
2020
+ url: Joi.string().allow(""),
1039
2021
  });
1040
2022
  }
1041
2023
 
1042
- /** @returns {CreateFaqCategorySchema} */
1043
- static CreateFaqCategorySchema() {
2024
+ /** @returns {CustomObjectListItemDefinationSchema} */
2025
+ static CustomObjectListItemDefinationSchema() {
1044
2026
  return Joi.object({
1045
- category: ContentPlatformModel.CategorySchema(),
2027
+ _id: Joi.string().allow(""),
2028
+ name: Joi.string().allow(""),
2029
+ type: Joi.string().allow(""),
1046
2030
  });
1047
2031
  }
1048
2032
 
1049
- /** @returns {CreateFaqResponseSchema} */
1050
- static CreateFaqResponseSchema() {
2033
+ /** @returns {CustomObjectListItemSchema} */
2034
+ static CustomObjectListItemSchema() {
1051
2035
  return Joi.object({
1052
- faq: ContentPlatformModel.FaqSchema(),
2036
+ _id: Joi.string().allow(""),
2037
+ definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
2038
+ definition_id: Joi.string().allow(""),
2039
+ display_name: Joi.string().allow(""),
2040
+ references: Joi.number(),
2041
+ status: Joi.string().allow(""),
2042
+ updated_at: Joi.string().allow(""),
1053
2043
  });
1054
2044
  }
1055
2045
 
1056
- /** @returns {CreateFaqSchema} */
1057
- static CreateFaqSchema() {
2046
+ /** @returns {CustomObjectMetaSchema} */
2047
+ static CustomObjectMetaSchema() {
1058
2048
  return Joi.object({
1059
- faq: ContentPlatformModel.FAQ(),
2049
+ mo_defintion_type: Joi.string().allow(""),
2050
+ mo_error_count: Joi.number(),
2051
+ mo_success_count: Joi.number(),
2052
+ mo_total_count: Joi.number(),
1060
2053
  });
1061
2054
  }
1062
2055
 
1063
- /** @returns {CreateTagRequestSchema} */
1064
- static CreateTagRequestSchema() {
2056
+ /** @returns {CustomObjectRequestSchema} */
2057
+ static CustomObjectRequestSchema() {
1065
2058
  return Joi.object({
1066
- tags: Joi.array().items(ContentPlatformModel.CreateTagSchema()),
2059
+ definition_id: Joi.string().allow(""),
2060
+ fields: Joi.array().items(
2061
+ ContentPlatformModel.CustomObjectEntryFieldSchema()
2062
+ ),
2063
+ status: Joi.string().allow(""),
1067
2064
  });
1068
2065
  }
1069
2066
 
1070
- /** @returns {CreateTagSchema} */
1071
- static CreateTagSchema() {
2067
+ /** @returns {CustomObjectSchema} */
2068
+ static CustomObjectSchema() {
1072
2069
  return Joi.object({
1073
2070
  _id: Joi.string().allow(""),
1074
- attributes: Joi.any(),
1075
- content: Joi.string().allow(""),
1076
- name: Joi.string().allow(""),
1077
- pages: Joi.array().items(Joi.any()),
1078
- position: Joi.string().allow(""),
1079
- sub_type: Joi.string().allow(""),
2071
+ application_id: Joi.string().allow(""),
2072
+ company_id: Joi.string().allow(""),
2073
+ created_by: Joi.string().allow(""),
2074
+ creator: Joi.string().allow(""),
2075
+ definition_id: Joi.string().allow(""),
2076
+ display_name: Joi.string().allow(""),
2077
+ fields: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
2078
+ status: Joi.string().allow(""),
1080
2079
  type: Joi.string().allow(""),
1081
- url: Joi.string().allow(""),
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(""),
2080
+ updated_by: Joi.string().allow(""),
1092
2081
  });
1093
2082
  }
1094
2083
 
1095
- /** @returns {CustomMetaTag} */
1096
- static CustomMetaTag() {
2084
+ /** @returns {CustomObjectsSchema} */
2085
+ static CustomObjectsSchema() {
1097
2086
  return Joi.object({
1098
- _id: Joi.string().allow(""),
1099
- content: Joi.string().allow(""),
1100
- name: Joi.string().allow(""),
2087
+ items: Joi.array().items(
2088
+ ContentPlatformModel.CustomObjectListItemSchema()
2089
+ ),
2090
+ page: ContentPlatformModel.Page(),
1101
2091
  });
1102
2092
  }
1103
2093
 
@@ -1153,6 +2143,19 @@ class ContentPlatformModel {
1153
2143
  });
1154
2144
  }
1155
2145
 
2146
+ /** @returns {Date} */
2147
+ static Date() {
2148
+ return Joi.object({
2149
+ category: Joi.string().allow(""),
2150
+ list_enabled: Joi.boolean(),
2151
+ name: Joi.string().allow(""),
2152
+ supported_validations: Joi.array().items(
2153
+ ContentPlatformModel.SupportedValidationsSchema()
2154
+ ),
2155
+ type: Joi.string().allow(""),
2156
+ });
2157
+ }
2158
+
1156
2159
  /** @returns {DateMeta} */
1157
2160
  static DateMeta() {
1158
2161
  return Joi.object({
@@ -1161,6 +2164,19 @@ class ContentPlatformModel {
1161
2164
  });
1162
2165
  }
1163
2166
 
2167
+ /** @returns {Datetime} */
2168
+ static Datetime() {
2169
+ return Joi.object({
2170
+ category: Joi.string().allow(""),
2171
+ list_enabled: Joi.boolean(),
2172
+ name: Joi.string().allow(""),
2173
+ supported_validations: Joi.array().items(
2174
+ ContentPlatformModel.SupportedValidationsSchema()
2175
+ ),
2176
+ type: Joi.string().allow(""),
2177
+ });
2178
+ }
2179
+
1164
2180
  /** @returns {DefaultNavigationResponse} */
1165
2181
  static DefaultNavigationResponse() {
1166
2182
  return Joi.object({
@@ -1168,6 +2184,24 @@ class ContentPlatformModel {
1168
2184
  });
1169
2185
  }
1170
2186
 
2187
+ /** @returns {DefaultSchemaComponent} */
2188
+ static DefaultSchemaComponent() {
2189
+ return Joi.object({
2190
+ items: Joi.array().items(
2191
+ ContentPlatformModel.DefaultSEOSchemaMarkupTemplate()
2192
+ ),
2193
+ });
2194
+ }
2195
+
2196
+ /** @returns {DefaultSEOSchemaMarkupTemplate} */
2197
+ static DefaultSEOSchemaMarkupTemplate() {
2198
+ return Joi.object({
2199
+ page_type: Joi.string().allow(""),
2200
+ schema: Joi.string().allow(""),
2201
+ target_json: Joi.object().pattern(/\S/, Joi.any()),
2202
+ });
2203
+ }
2204
+
1171
2205
  /** @returns {Detail} */
1172
2206
  static Detail() {
1173
2207
  return Joi.object({
@@ -1177,6 +2211,19 @@ class ContentPlatformModel {
1177
2211
  });
1178
2212
  }
1179
2213
 
2214
+ /** @returns {Dropdown} */
2215
+ static Dropdown() {
2216
+ return Joi.object({
2217
+ category: Joi.string().allow(""),
2218
+ list_enabled: Joi.boolean(),
2219
+ name: Joi.string().allow(""),
2220
+ supported_validations: Joi.array().items(
2221
+ ContentPlatformModel.SupportedValidationsSchema()
2222
+ ),
2223
+ type: Joi.string().allow(""),
2224
+ });
2225
+ }
2226
+
1180
2227
  /** @returns {EditorMeta} */
1181
2228
  static EditorMeta() {
1182
2229
  return Joi.object({
@@ -1239,6 +2286,66 @@ class ContentPlatformModel {
1239
2286
  });
1240
2287
  }
1241
2288
 
2289
+ /** @returns {FieldDefinitionSchema} */
2290
+ static FieldDefinitionSchema() {
2291
+ return Joi.object({
2292
+ _id: Joi.string().allow(""),
2293
+ company_id: Joi.string().allow(""),
2294
+ created_at: Joi.string().allow(""),
2295
+ created_by: Joi.string().allow(""),
2296
+ creator: Joi.string().allow(""),
2297
+ description: Joi.string().allow(""),
2298
+ invalid_fields_count: Joi.number(),
2299
+ is_deleted: Joi.boolean(),
2300
+ key: Joi.string().allow(""),
2301
+ multi_value: Joi.boolean(),
2302
+ name: Joi.string().allow(""),
2303
+ namespace: Joi.string().allow(""),
2304
+ required: Joi.boolean(),
2305
+ resource: Joi.string().allow(""),
2306
+ type: Joi.string().allow(""),
2307
+ type_name: Joi.string().allow(""),
2308
+ updated_at: Joi.string().allow(""),
2309
+ updated_by: Joi.string().allow(""),
2310
+ validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
2311
+ });
2312
+ }
2313
+
2314
+ /** @returns {FieldValidations} */
2315
+ static FieldValidations() {
2316
+ return Joi.object({
2317
+ name: Joi.string().allow(""),
2318
+ type: Joi.string().allow(""),
2319
+ value: Joi.any(),
2320
+ });
2321
+ }
2322
+
2323
+ /** @returns {File} */
2324
+ static File() {
2325
+ return Joi.object({
2326
+ category: Joi.string().allow(""),
2327
+ list_enabled: Joi.boolean(),
2328
+ name: Joi.string().allow(""),
2329
+ supported_validations: Joi.array().items(
2330
+ ContentPlatformModel.SupportedValidationsSchema()
2331
+ ),
2332
+ type: Joi.string().allow(""),
2333
+ });
2334
+ }
2335
+
2336
+ /** @returns {FloatType} */
2337
+ static FloatType() {
2338
+ return Joi.object({
2339
+ category: Joi.string().allow(""),
2340
+ list_enabled: Joi.boolean(),
2341
+ name: Joi.string().allow(""),
2342
+ supported_validations: Joi.array().items(
2343
+ ContentPlatformModel.SupportedValidationsSchema()
2344
+ ),
2345
+ type: Joi.string().allow(""),
2346
+ });
2347
+ }
2348
+
1242
2349
  /** @returns {GeneratedSEOContent} */
1243
2350
  static GeneratedSEOContent() {
1244
2351
  return Joi.object({
@@ -1299,6 +2406,32 @@ class ContentPlatformModel {
1299
2406
  });
1300
2407
  }
1301
2408
 
2409
+ /** @returns {Integer} */
2410
+ static Integer() {
2411
+ return Joi.object({
2412
+ category: Joi.string().allow(""),
2413
+ list_enabled: Joi.boolean(),
2414
+ name: Joi.string().allow(""),
2415
+ supported_validations: Joi.array().items(
2416
+ ContentPlatformModel.SupportedValidationsSchema()
2417
+ ),
2418
+ type: Joi.string().allow(""),
2419
+ });
2420
+ }
2421
+
2422
+ /** @returns {Json} */
2423
+ static Json() {
2424
+ return Joi.object({
2425
+ category: Joi.string().allow(""),
2426
+ list_enabled: Joi.boolean(),
2427
+ name: Joi.string().allow(""),
2428
+ supported_validations: Joi.array().items(
2429
+ ContentPlatformModel.SupportedValidationsSchema()
2430
+ ),
2431
+ type: Joi.string().allow(""),
2432
+ });
2433
+ }
2434
+
1302
2435
  /** @returns {LandingPageGetResponse} */
1303
2436
  static LandingPageGetResponse() {
1304
2437
  return Joi.object({
@@ -1338,6 +2471,19 @@ class ContentPlatformModel {
1338
2471
  });
1339
2472
  }
1340
2473
 
2474
+ /** @returns {Metaobject} */
2475
+ static Metaobject() {
2476
+ return Joi.object({
2477
+ category: Joi.string().allow(""),
2478
+ list_enabled: Joi.boolean(),
2479
+ name: Joi.string().allow(""),
2480
+ supported_validations: Joi.array().items(
2481
+ ContentPlatformModel.SupportedValidationsSchema()
2482
+ ),
2483
+ type: Joi.string().allow(""),
2484
+ });
2485
+ }
2486
+
1341
2487
  /** @returns {NavigationGetResponse} */
1342
2488
  static NavigationGetResponse() {
1343
2489
  return Joi.object({
@@ -1553,6 +2699,19 @@ class ContentPlatformModel {
1553
2699
  });
1554
2700
  }
1555
2701
 
2702
+ /** @returns {Product} */
2703
+ static Product() {
2704
+ return Joi.object({
2705
+ category: Joi.string().allow(""),
2706
+ list_enabled: Joi.boolean(),
2707
+ name: Joi.string().allow(""),
2708
+ supported_validations: Joi.array().items(
2709
+ ContentPlatformModel.SupportedValidationsSchema()
2710
+ ),
2711
+ type: Joi.string().allow(""),
2712
+ });
2713
+ }
2714
+
1556
2715
  /** @returns {RemoveHandpickedSchema} */
1557
2716
  static RemoveHandpickedSchema() {
1558
2717
  return Joi.object({
@@ -1568,6 +2727,22 @@ class ContentPlatformModel {
1568
2727
  });
1569
2728
  }
1570
2729
 
2730
+ /** @returns {ResourceSchema} */
2731
+ static ResourceSchema() {
2732
+ return Joi.object({
2733
+ definitions_count: Joi.number(),
2734
+ key: Joi.string().allow(""),
2735
+ name: Joi.string().allow(""),
2736
+ });
2737
+ }
2738
+
2739
+ /** @returns {ResourcesSchema} */
2740
+ static ResourcesSchema() {
2741
+ return Joi.object({
2742
+ resources: Joi.array().items(ContentPlatformModel.ResourceSchema()),
2743
+ });
2744
+ }
2745
+
1571
2746
  /** @returns {ScheduleSchema} */
1572
2747
  static ScheduleSchema() {
1573
2748
  return Joi.object({
@@ -1582,12 +2757,24 @@ class ContentPlatformModel {
1582
2757
  /** @returns {SEO} */
1583
2758
  static SEO() {
1584
2759
  return Joi.object({
2760
+ breadcrumb: Joi.array().items(ContentPlatformModel.SEObreadcrumb()),
2761
+ canonical_url: Joi.string().allow(""),
1585
2762
  description: Joi.string().allow(""),
1586
2763
  image: ContentPlatformModel.SEOImage(),
2764
+ meta_tags: Joi.array().items(ContentPlatformModel.SEOMetaItem()),
2765
+ sitemap: ContentPlatformModel.SEOSitemap(),
1587
2766
  title: Joi.string().allow(""),
1588
2767
  });
1589
2768
  }
1590
2769
 
2770
+ /** @returns {SEObreadcrumb} */
2771
+ static SEObreadcrumb() {
2772
+ return Joi.object({
2773
+ action: ContentPlatformModel.Action(),
2774
+ url: Joi.string().allow(""),
2775
+ });
2776
+ }
2777
+
1591
2778
  /** @returns {SeoComponent} */
1592
2779
  static SeoComponent() {
1593
2780
  return Joi.object({
@@ -1602,10 +2789,27 @@ class ContentPlatformModel {
1602
2789
  });
1603
2790
  }
1604
2791
 
2792
+ /** @returns {SEOMetaItem} */
2793
+ static SEOMetaItem() {
2794
+ return Joi.object({
2795
+ items: Joi.array().items(ContentPlatformModel.SEOMetaItems()),
2796
+ title: Joi.string().allow(""),
2797
+ });
2798
+ }
2799
+
2800
+ /** @returns {SEOMetaItems} */
2801
+ static SEOMetaItems() {
2802
+ return Joi.object({
2803
+ key: Joi.string().allow(""),
2804
+ value: Joi.string().allow(""),
2805
+ });
2806
+ }
2807
+
1605
2808
  /** @returns {SeoSchema} */
1606
2809
  static SeoSchema() {
1607
2810
  return Joi.object({
1608
2811
  _id: Joi.string().allow(""),
2812
+ additional_sitemap: Joi.string().allow(""),
1609
2813
  app: Joi.string().allow(""),
1610
2814
  cannonical_enabled: Joi.boolean(),
1611
2815
  created_at: Joi.string().allow(""),
@@ -1617,6 +2821,52 @@ class ContentPlatformModel {
1617
2821
  });
1618
2822
  }
1619
2823
 
2824
+ /** @returns {SeoSchemaComponent} */
2825
+ static SeoSchemaComponent() {
2826
+ return Joi.object({
2827
+ items: Joi.array().items(ContentPlatformModel.SEOSchemaMarkupTemplate()),
2828
+ page: ContentPlatformModel.Page(),
2829
+ });
2830
+ }
2831
+
2832
+ /** @returns {SEOSchemaMarkupTemplate} */
2833
+ static SEOSchemaMarkupTemplate() {
2834
+ return Joi.object({
2835
+ active: Joi.boolean(),
2836
+ application: Joi.string().allow(""),
2837
+ created_at: Joi.string().allow(""),
2838
+ description: Joi.string().allow(""),
2839
+ id: Joi.string().allow(""),
2840
+ page_type: Joi.string().allow(""),
2841
+ schema: Joi.string().allow(""),
2842
+ target_json: Joi.object().pattern(/\S/, Joi.any()),
2843
+ title: Joi.string().allow(""),
2844
+ updated_at: Joi.string().allow(""),
2845
+ });
2846
+ }
2847
+
2848
+ /** @returns {SEOSchemaMarkupTemplateRequestBody} */
2849
+ static SEOSchemaMarkupTemplateRequestBody() {
2850
+ return Joi.object({
2851
+ active: Joi.boolean(),
2852
+ created_at: Joi.string().allow(""),
2853
+ description: Joi.string().allow(""),
2854
+ page_type: Joi.string().allow(""),
2855
+ schema: Joi.string().allow(""),
2856
+ target_json: Joi.object().pattern(/\S/, Joi.any()),
2857
+ title: Joi.string().allow(""),
2858
+ updated_at: Joi.string().allow(""),
2859
+ });
2860
+ }
2861
+
2862
+ /** @returns {SEOSitemap} */
2863
+ static SEOSitemap() {
2864
+ return Joi.object({
2865
+ frequency: Joi.string().allow(""),
2866
+ priority: Joi.number(),
2867
+ });
2868
+ }
2869
+
1620
2870
  /** @returns {SlideshowGetResponse} */
1621
2871
  static SlideshowGetResponse() {
1622
2872
  return Joi.object({
@@ -1664,6 +2914,32 @@ class ContentPlatformModel {
1664
2914
  });
1665
2915
  }
1666
2916
 
2917
+ /** @returns {StringMultiLine} */
2918
+ static StringMultiLine() {
2919
+ return Joi.object({
2920
+ category: Joi.string().allow(""),
2921
+ list_enabled: Joi.boolean(),
2922
+ name: Joi.string().allow(""),
2923
+ supported_validations: Joi.array().items(
2924
+ ContentPlatformModel.SupportedValidationsSchema()
2925
+ ),
2926
+ type: Joi.string().allow(""),
2927
+ });
2928
+ }
2929
+
2930
+ /** @returns {StringSingleLine} */
2931
+ static StringSingleLine() {
2932
+ return Joi.object({
2933
+ category: Joi.string().allow(""),
2934
+ list_enabled: Joi.boolean(),
2935
+ name: Joi.string().allow(""),
2936
+ supported_validations: Joi.array().items(
2937
+ ContentPlatformModel.SupportedValidationsSchema()
2938
+ ),
2939
+ type: Joi.string().allow(""),
2940
+ });
2941
+ }
2942
+
1667
2943
  /** @returns {Support} */
1668
2944
  static Support() {
1669
2945
  return Joi.object({
@@ -1677,6 +2953,34 @@ class ContentPlatformModel {
1677
2953
  });
1678
2954
  }
1679
2955
 
2956
+ /** @returns {SupportedValidationsMetaExampleSchema} */
2957
+ static SupportedValidationsMetaExampleSchema() {
2958
+ return Joi.object({
2959
+ name: Joi.string().allow(""),
2960
+ value: Joi.string().allow(""),
2961
+ });
2962
+ }
2963
+
2964
+ /** @returns {SupportedValidationsMetaSchema} */
2965
+ static SupportedValidationsMetaSchema() {
2966
+ return Joi.object({
2967
+ examples: Joi.array().items(
2968
+ ContentPlatformModel.SupportedValidationsMetaExampleSchema()
2969
+ ),
2970
+ });
2971
+ }
2972
+
2973
+ /** @returns {SupportedValidationsSchema} */
2974
+ static SupportedValidationsSchema() {
2975
+ return Joi.object({
2976
+ display: Joi.string().allow(""),
2977
+ meta: ContentPlatformModel.SupportedValidationsMetaSchema(),
2978
+ name: Joi.string().allow(""),
2979
+ required: Joi.boolean(),
2980
+ type: Joi.string().allow(""),
2981
+ });
2982
+ }
2983
+
1680
2984
  /** @returns {TagDeleteSuccessResponse} */
1681
2985
  static TagDeleteSuccessResponse() {
1682
2986
  return Joi.object({
@@ -1731,6 +3035,18 @@ class ContentPlatformModel {
1731
3035
  });
1732
3036
  }
1733
3037
 
3038
+ /** @returns {Url} */
3039
+ static Url() {
3040
+ return Joi.object({
3041
+ list_enabled: Joi.boolean(),
3042
+ name: Joi.string().allow(""),
3043
+ supported_validations: Joi.array().items(
3044
+ ContentPlatformModel.SupportedValidationsSchema()
3045
+ ),
3046
+ type: Joi.string().allow(""),
3047
+ });
3048
+ }
3049
+
1734
3050
  /**
1735
3051
  * Enum: GenerationEntityType Used By: Content
1736
3052
  *