@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
  4. package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
  5. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  6. package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
  7. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  8. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  9. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  10. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  11. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
  12. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
  13. package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
  14. package/sdk/application/Content/ContentApplicationModel.js +757 -757
  15. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  16. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  17. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  18. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  19. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
  20. package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
  21. package/sdk/application/Order/OrderApplicationModel.d.ts +852 -846
  22. package/sdk/application/Order/OrderApplicationModel.js +828 -822
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
  24. package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
  25. package/sdk/application/Payment/PaymentApplicationModel.d.ts +2176 -2145
  26. package/sdk/application/Payment/PaymentApplicationModel.js +1474 -1453
  27. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
  28. package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
  29. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
  30. package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
  31. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  32. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  33. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  34. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  35. package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
  36. package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
  37. package/sdk/application/User/UserApplicationClient.d.ts +2 -2
  38. package/sdk/application/User/UserApplicationClient.js +4 -7
  39. package/sdk/application/User/UserApplicationModel.d.ts +769 -764
  40. package/sdk/application/User/UserApplicationModel.js +731 -741
  41. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
  44. package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
  45. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
  46. package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
  47. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
  48. package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
  49. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
  50. package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
  51. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  52. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  53. package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
  54. package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
  55. package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
  56. package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
  57. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
  58. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
  59. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
  60. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
  61. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -980
  62. package/sdk/platform/Catalog/CatalogPlatformModel.js +977 -933
  63. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  64. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  65. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
  66. package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
  67. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
  68. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
  69. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
  70. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
  71. package/sdk/platform/Content/ContentPlatformModel.d.ts +1842 -1825
  72. package/sdk/platform/Content/ContentPlatformModel.js +1868 -1848
  73. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
  74. package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
  75. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
  76. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
  77. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
  78. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
  79. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
  80. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
  81. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +882 -869
  82. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +894 -878
  83. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
  84. package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
  85. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  86. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  87. package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
  88. package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
  89. package/sdk/platform/Order/OrderPlatformModel.d.ts +5192 -5176
  90. package/sdk/platform/Order/OrderPlatformModel.js +4752 -4736
  91. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  92. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  93. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2693 -2657
  94. package/sdk/platform/Payment/PaymentPlatformModel.js +1842 -1819
  95. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  96. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  97. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
  98. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
  99. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1674 -1539
  100. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1663 -1534
  101. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
  102. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
  103. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
  104. package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
  105. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
  106. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
  107. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  108. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  109. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
  110. package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
  111. package/sdk/platform/User/UserPlatformModel.d.ts +823 -753
  112. package/sdk/platform/User/UserPlatformModel.js +731 -661
  113. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
  114. package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
  115. package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
  116. package/sdk/public/Billing/BillingPublicModel.js +51 -51
  117. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  118. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  119. package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
  120. package/sdk/public/Content/ContentPublicModel.js +28 -28
  121. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  122. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  123. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  124. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  125. package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
  126. package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
@@ -1,1255 +1,1163 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef Action
5
- * @property {ActionPage} [page]
6
- * @property {ActionPage} [popup]
4
+ * @typedef GenerateSEOContent
5
+ * @property {string} [text]
6
+ * @property {string} [existing_text]
7
+ * @property {string[]} [keywords]
7
8
  * @property {string} [type]
8
9
  */
9
10
 
10
11
  /**
11
- * @typedef ActionPage
12
- * @property {Object} [params]
13
- * @property {Object} [query]
14
- * @property {PageType} type
15
- * @property {string} [url]
16
- */
17
-
18
- /**
19
- * @typedef AdminAnnouncementSchema
20
- * @property {string} [_id]
21
- * @property {ScheduleSchema} [_schedule]
22
- * @property {string} [announcement]
23
- * @property {string} [app]
24
- * @property {AnnouncementAuthorSchema} [author]
25
- * @property {string} [created_at]
26
- * @property {EditorMeta} [editor_meta]
27
- * @property {string} [modified_at]
28
- * @property {AnnouncementPageSchema[]} [pages]
29
- * @property {string[]} [platforms]
12
+ * @typedef GeneratedSEOContent
30
13
  * @property {string} [title]
31
- */
32
-
33
- /**
34
- * @typedef AnnouncementAuthorSchema
35
- * @property {string} [created_by]
36
- * @property {string} [modified_by]
37
- */
38
-
39
- /**
40
- * @typedef AnnouncementPageSchema
41
- * @property {string} [page_slug]
42
- * @property {string} [type]
14
+ * @property {string} [description]
43
15
  */
44
16
 
45
17
  /**
46
18
  * @typedef ApplicationLegal
47
- * @property {string} [_id]
48
19
  * @property {string} [application]
49
- * @property {string} [created_at]
50
- * @property {ApplicationLegalFAQ[]} [faq]
20
+ * @property {string} [tnc]
51
21
  * @property {string} [policy]
52
- * @property {string} [returns]
53
22
  * @property {string} [shipping]
54
- * @property {string} [tnc]
23
+ * @property {string} [returns]
24
+ * @property {ApplicationLegalFAQ[]} [faq]
25
+ * @property {string} [_id]
55
26
  * @property {string} [updated_at]
27
+ * @property {string} [created_at]
56
28
  */
57
29
 
58
30
  /**
59
31
  * @typedef ApplicationLegalFAQ
60
- * @property {string} [answer]
61
32
  * @property {string} [question]
33
+ * @property {string} [answer]
62
34
  */
63
35
 
64
36
  /**
65
- * @typedef Asset
66
- * @property {string} [aspect_ratio]
67
- * @property {string} [id]
68
- * @property {string} [secure_url]
37
+ * @typedef PathMappingSchema
38
+ * @property {string} [application]
39
+ * @property {string} [_id]
40
+ * @property {string} [redirect_from]
41
+ * @property {string} [redirect_to]
42
+ * @property {string} [updated_at]
43
+ * @property {string} [created_at]
44
+ * @property {PathSourceSchema} [__source]
69
45
  */
70
46
 
71
47
  /**
72
- * @typedef Author
73
- * @property {string} [designation]
48
+ * @typedef PathSourceSchema
49
+ * @property {string} [type]
74
50
  * @property {string} [id]
75
- * @property {string} [name]
76
51
  */
77
52
 
78
53
  /**
79
- * @typedef BlogGetResponse
80
- * @property {BlogSchema[]} [items]
81
- * @property {Page} [page]
54
+ * @typedef SeoComponent
55
+ * @property {SeoSchema} [seo]
82
56
  */
83
57
 
84
58
  /**
85
- * @typedef BlogRequest
86
- * @property {Object} [_custom_json]
87
- * @property {CronSchedule} [_schedule]
88
- * @property {string} [application]
89
- * @property {Author} [author]
90
- * @property {ResourceContent[]} [content]
91
- * @property {Asset} [feature_image]
92
- * @property {boolean} [published]
93
- * @property {string} [reading_time]
94
- * @property {SEO} [seo]
95
- * @property {string} [slug]
96
- * @property {string[]} [tags]
97
- * @property {string} [title]
59
+ * @typedef SeoSchema
60
+ * @property {string} [app]
61
+ * @property {string} [_id]
62
+ * @property {string} [robots_txt]
63
+ * @property {boolean} [sitemap_enabled]
64
+ * @property {string} [additional_sitemap]
65
+ * @property {boolean} [cannonical_enabled]
66
+ * @property {CustomMetaTag[]} [custom_meta_tags]
67
+ * @property {Detail} [details]
68
+ * @property {string} [created_at]
69
+ * @property {string} [updated_at]
98
70
  */
99
71
 
100
72
  /**
101
- * @typedef BlogSchema
102
- * @property {Object} [_custom_json]
73
+ * @typedef CustomMetaTag
74
+ * @property {string} [name]
75
+ * @property {string} [content]
103
76
  * @property {string} [_id]
104
- * @property {CronSchedule} [_schedule]
105
- * @property {string} [application]
106
- * @property {boolean} [archived]
107
- * @property {Author} [author]
108
- * @property {ResourceContent[]} [content]
109
- * @property {DateMeta} [date_meta]
110
- * @property {Asset} [feature_image]
111
- * @property {boolean} [published]
112
- * @property {string} [reading_time]
113
- * @property {SEO} [seo]
114
- * @property {string} [slug]
115
- * @property {string[]} [tags]
77
+ */
78
+
79
+ /**
80
+ * @typedef Detail
116
81
  * @property {string} [title]
82
+ * @property {string} [description]
83
+ * @property {string} [image_url]
117
84
  */
118
85
 
119
86
  /**
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]
87
+ * @typedef SeoSchemaComponent
88
+ * @property {SEOSchemaMarkupTemplate[]} [items]
89
+ * @property {Page} [page]
126
90
  */
127
91
 
128
92
  /**
129
- * @typedef CategoryRequestSchema
130
- * @property {string} [slug]
93
+ * @typedef SEOSchemaMarkupTemplate
94
+ * @property {string} [id]
131
95
  * @property {string} [title]
96
+ * @property {string} [page_type]
97
+ * @property {string} [schema]
98
+ * @property {string} [description]
99
+ * @property {boolean} [active]
100
+ * @property {string} [created_at]
101
+ * @property {string} [updated_at]
102
+ * @property {string} [application]
103
+ * @property {Object} [target_json]
132
104
  */
133
105
 
134
106
  /**
135
- * @typedef CategorySchema
136
- * @property {Object} [_custom_json]
137
- * @property {string} [_id]
138
- * @property {string} [application]
139
- * @property {string[]} [children]
140
- * @property {string} [description]
141
- * @property {string} [icon_url]
142
- * @property {number} [index]
143
- * @property {string} [slug]
107
+ * @typedef SEOSchemaMarkupTemplateRequestBody
144
108
  * @property {string} [title]
109
+ * @property {string} [page_type]
110
+ * @property {string} [schema]
111
+ * @property {string} [description]
112
+ * @property {Object} [target_json]
113
+ * @property {boolean} [active]
114
+ * @property {string} [created_at]
115
+ * @property {string} [updated_at]
145
116
  */
146
117
 
147
118
  /**
148
- * @typedef ChildrenSchema
149
- * @property {string} [_id]
150
- * @property {string} [answer]
151
- * @property {string} [application]
152
- * @property {string} [question]
153
- * @property {string} [slug]
119
+ * @typedef AnnouncementPageSchema
120
+ * @property {string} [page_slug]
121
+ * @property {string} [type]
154
122
  */
155
123
 
156
124
  /**
157
- * @typedef CommonError
158
- * @property {string} [message]
125
+ * @typedef EditorMeta
126
+ * @property {string} [foreground_color]
127
+ * @property {string} [background_color]
128
+ * @property {string} [content_type]
129
+ * @property {string} [content]
159
130
  */
160
131
 
161
132
  /**
162
- * @typedef ConfigurationSchema
163
- * @property {number} [duration]
164
- * @property {number} [sleep_time]
165
- * @property {string} [slide_direction]
166
- * @property {boolean} [start_on_launch]
133
+ * @typedef AnnouncementAuthorSchema
134
+ * @property {string} [created_by]
135
+ * @property {string} [modified_by]
167
136
  */
168
137
 
169
138
  /**
170
- * @typedef ContactSchema
171
- * @property {EmailSchema} [email]
172
- * @property {PhoneSchema} [phone]
139
+ * @typedef AdminAnnouncementSchema
140
+ * @property {string} [_id]
141
+ * @property {string[]} [platforms]
142
+ * @property {string} [title]
143
+ * @property {string} [announcement]
144
+ * @property {AnnouncementPageSchema[]} [pages]
145
+ * @property {EditorMeta} [editor_meta]
146
+ * @property {AnnouncementAuthorSchema} [author]
147
+ * @property {string} [created_at]
148
+ * @property {string} [app]
149
+ * @property {string} [modified_at]
150
+ * @property {ScheduleSchema} [_schedule]
173
151
  */
174
152
 
175
153
  /**
176
- * @typedef ContentAPIError
177
- * @property {string} [code]
178
- * @property {string} [exception]
179
- * @property {string} [info]
180
- * @property {string} [message]
181
- * @property {Object} [meta]
182
- * @property {string} [request_id]
183
- * @property {string} [stack_trace]
184
- * @property {number} [status]
154
+ * @typedef DefaultSchemaComponent
155
+ * @property {DefaultSEOSchemaMarkupTemplate[]} [items]
185
156
  */
186
157
 
187
158
  /**
188
- * @typedef CreateAnnouncementSchema
189
- * @property {AdminAnnouncementSchema} [data]
190
- * @property {string} [message]
159
+ * @typedef DefaultSEOSchemaMarkupTemplate
160
+ * @property {string} [page_type]
161
+ * @property {string} [schema]
162
+ * @property {Object} [target_json]
191
163
  */
192
164
 
193
165
  /**
194
- * @typedef CreatedBySchema
195
- * @property {string} [id]
166
+ * @typedef ScheduleSchema
167
+ * @property {string} [cron]
168
+ * @property {string} [start]
169
+ * @property {string} [end]
170
+ * @property {number} [duration]
171
+ * @property {NextSchedule[]} [next_schedule]
196
172
  */
197
173
 
198
174
  /**
199
- * @typedef CreateFaqCategoryRequestSchema
200
- * @property {CategoryRequestSchema} [category]
175
+ * @typedef NextSchedule
176
+ * @property {string} [start]
177
+ * @property {string} [end]
201
178
  */
202
179
 
203
180
  /**
204
- * @typedef CreateFaqCategorySchema
205
- * @property {CategorySchema} [category]
181
+ * @typedef BlogGetResponse
182
+ * @property {BlogSchema[]} [items]
183
+ * @property {Page} [page]
206
184
  */
207
185
 
208
186
  /**
209
- * @typedef CreateFaqResponseSchema
210
- * @property {FaqSchema} [faq]
187
+ * @typedef ResourceContent
188
+ * @property {string} [type]
189
+ * @property {string} [value]
211
190
  */
212
191
 
213
192
  /**
214
- * @typedef CreateFaqSchema
215
- * @property {FAQ} [faq]
193
+ * @typedef Asset
194
+ * @property {string} [aspect_ratio]
195
+ * @property {string} [id]
196
+ * @property {string} [secure_url]
216
197
  */
217
198
 
218
199
  /**
219
- * @typedef CreateTagRequestSchema
220
- * @property {CreateTagSchema[]} [tags]
200
+ * @typedef Author
201
+ * @property {string} [designation]
202
+ * @property {string} [id]
203
+ * @property {string} [name]
221
204
  */
222
205
 
223
206
  /**
224
- * @typedef CreateTagSchema
207
+ * @typedef BlogSchema
225
208
  * @property {string} [_id]
226
- * @property {Object} [attributes]
227
- * @property {string} [content]
228
- * @property {string} [name]
229
- * @property {Object[]} [pages]
230
- * @property {string} [position]
231
- * @property {string} [sub_type]
232
- * @property {string} [type]
233
- * @property {string} [url]
209
+ * @property {Object} [_custom_json]
210
+ * @property {string} [application]
211
+ * @property {boolean} [archived]
212
+ * @property {Author} [author]
213
+ * @property {ResourceContent[]} [content]
214
+ * @property {Asset} [feature_image]
215
+ * @property {boolean} [published]
216
+ * @property {string} [reading_time]
217
+ * @property {string} [slug]
218
+ * @property {string[]} [tags]
219
+ * @property {SEO} [seo]
220
+ * @property {CronSchedule} [_schedule]
221
+ * @property {string} [title]
222
+ * @property {DateMeta} [date_meta]
234
223
  */
235
224
 
236
225
  /**
237
- * @typedef CronSchedule
238
- * @property {string} [cron]
239
- * @property {number} [duration]
240
- * @property {string} [end]
241
- * @property {string} [start]
226
+ * @typedef SEO
227
+ * @property {string} [description]
228
+ * @property {SEOImage} [image]
229
+ * @property {string} [title]
230
+ * @property {SEOMetaItem[]} [meta_tags]
231
+ * @property {SEOSitemap} [sitemap]
232
+ * @property {SEObreadcrumb[]} [breadcrumb]
233
+ * @property {string} [canonical_url]
242
234
  */
243
235
 
244
236
  /**
245
- * @typedef CustomDataDeleteSchema
246
- * @property {string} [message]
247
- * @property {boolean} [success]
237
+ * @typedef SEOImage
238
+ * @property {string} [url]
248
239
  */
249
240
 
250
241
  /**
251
- * @typedef CustomField
252
- * @property {string} [definition_id]
253
- * @property {Object[]} [value]
242
+ * @typedef SEOMetaItem
243
+ * @property {string} [title]
244
+ * @property {SEOMetaItems[]} [items]
254
245
  */
255
246
 
256
247
  /**
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]
248
+ * @typedef SEOMetaItems
266
249
  * @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]
250
+ * @property {string} [value]
276
251
  */
277
252
 
278
253
  /**
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]
254
+ * @typedef SEOSitemap
255
+ * @property {number} [priority]
256
+ * @property {string} [frequency]
288
257
  */
289
258
 
290
259
  /**
291
- * @typedef CustomFieldDefinitionsSchema
292
- * @property {FieldDefinitionSchema[]} [items]
293
- * @property {Page} [page]
260
+ * @typedef SEObreadcrumb
261
+ * @property {string} [url]
262
+ * @property {Action} [action]
294
263
  */
295
264
 
296
265
  /**
297
- * @typedef CustomFieldRequestSchema
298
- * @property {CustomField[]} [fields]
266
+ * @typedef DateMeta
267
+ * @property {string} [created_on]
268
+ * @property {string} [modified_on]
299
269
  */
300
270
 
301
271
  /**
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]
272
+ * @typedef BlogRequest
273
+ * @property {string} [application]
274
+ * @property {Object} [_custom_json]
275
+ * @property {Author} [author]
276
+ * @property {ResourceContent[]} [content]
277
+ * @property {Asset} [feature_image]
278
+ * @property {boolean} [published]
279
+ * @property {string} [reading_time]
280
+ * @property {string} [slug]
281
+ * @property {string[]} [tags]
282
+ * @property {string} [title]
283
+ * @property {SEO} [seo]
284
+ * @property {CronSchedule} [_schedule]
320
285
  */
321
286
 
322
287
  /**
323
- * @typedef CustomFieldsResponseByResourceIdSchema
324
- * @property {CustomFieldSchema[]} [items]
288
+ * @typedef GetAnnouncementListSchema
289
+ * @property {AdminAnnouncementSchema[]} [items]
290
+ * @property {Page} [page]
325
291
  */
326
292
 
327
293
  /**
328
- * @typedef CustomFieldsResponseSchema
329
- * @property {CustomFieldSchema[]} [items]
330
- * @property {Page} [page]
294
+ * @typedef CreateAnnouncementSchema
295
+ * @property {string} [message]
296
+ * @property {AdminAnnouncementSchema} [data]
331
297
  */
332
298
 
333
299
  /**
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]
300
+ * @typedef DataLoaderResponseSchema
301
+ * @property {string} [application]
302
+ * @property {string} [company]
303
+ * @property {string} [_id]
304
+ * @property {string} [name]
305
+ * @property {string} [service]
306
+ * @property {string} [operation_id]
307
+ * @property {string} [type]
308
+ * @property {string} [url]
309
+ * @property {string} [content]
310
+ * @property {DataLoaderSourceSchema} [__source]
348
311
  */
349
312
 
350
313
  /**
351
- * @typedef CustomFieldValue
352
- * @property {Object} [value]
314
+ * @typedef DataLoaderResetResponseSchema
315
+ * @property {boolean} [reset]
353
316
  */
354
317
 
355
318
  /**
356
- * @typedef CustomMetaTag
357
- * @property {string} [_id]
358
- * @property {string} [content]
359
- * @property {string} [name]
319
+ * @typedef LocaleLanguage
320
+ * @property {Language} [hi]
321
+ * @property {Language} [ar]
322
+ * @property {Language} [en_us]
360
323
  */
361
324
 
362
325
  /**
363
- * @typedef CustomObjectBulkEntry
364
- * @property {CustomObjectJobSchema[]} [items]
365
- * @property {Page} [page]
326
+ * @typedef Language
327
+ * @property {string} [display]
366
328
  */
367
329
 
368
330
  /**
369
- * @typedef CustomObjectBulkEntryInitiateDownload
370
- * @property {string} [message]
371
- * @property {string} [task_id]
331
+ * @typedef Action
332
+ * @property {ActionPage} [page]
333
+ * @property {ActionPage} [popup]
334
+ * @property {string} [type]
372
335
  */
373
336
 
374
337
  /**
375
- * @typedef CustomObjectBulkSchema
376
- * @property {number} [total_records]
338
+ * @typedef ActionPage
339
+ * @property {Object} [params]
340
+ * @property {Object} [query]
377
341
  * @property {string} [url]
342
+ * @property {PageType} type
378
343
  */
379
344
 
380
345
  /**
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]
346
+ * @typedef NavigationReference
347
+ * @property {string[]} [acl]
348
+ * @property {string[]} [tags]
349
+ * @property {LocaleLanguage} [_locale_language]
350
+ * @property {string} [image]
351
+ * @property {string} [type]
352
+ * @property {Action} [action]
353
+ * @property {boolean} [active]
354
+ * @property {string} [display]
355
+ * @property {number} [sort_order]
356
+ * @property {CronBasedScheduleSchema} [schedule]
357
+ * @property {NavigationReference[]} [sub_navigation]
388
358
  */
389
359
 
390
360
  /**
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]
361
+ * @typedef CronBasedScheduleSchema
362
+ * @property {boolean} [enabled]
363
+ * @property {string} [cron]
364
+ * @property {string} [start]
365
+ * @property {string} [end]
409
366
  */
410
367
 
411
368
  /**
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]
369
+ * @typedef ConfigurationSchema
370
+ * @property {number} [sleep_time]
371
+ * @property {boolean} [start_on_launch]
372
+ * @property {number} [duration]
373
+ * @property {string} [slide_direction]
422
374
  */
423
375
 
424
376
  /**
425
- * @typedef CustomObjectDefinitionDeleteResponseSchema
426
- * @property {string} [message]
427
- * @property {boolean} [success]
377
+ * @typedef SlideshowMedia
378
+ * @property {string} [type]
379
+ * @property {string} [url]
380
+ * @property {string} [bg_color]
381
+ * @property {number} [duration]
382
+ * @property {boolean} [auto_decide_duration]
383
+ * @property {Action} [action]
428
384
  */
429
385
 
430
386
  /**
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]
387
+ * @typedef UpdateHandpickedSchema
388
+ * @property {HandpickedTagSchema} [tag]
437
389
  */
438
390
 
439
391
  /**
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]
392
+ * @typedef HandpickedTagSchema
393
+ * @property {string} [position]
394
+ * @property {Object} [attributes]
447
395
  * @property {string} [name]
396
+ * @property {string} [url]
448
397
  * @property {string} [type]
449
- * @property {string} [updated_by]
398
+ * @property {string} [sub_type]
399
+ * @property {string} [content]
450
400
  */
451
401
 
452
402
  /**
453
- * @typedef CustomObjectDefinitionsSchema
454
- * @property {CustomObjectEntry[]} [items]
455
- * @property {Page} [page]
403
+ * @typedef RemoveHandpickedSchema
404
+ * @property {string[]} [tags]
456
405
  */
457
406
 
458
407
  /**
459
- * @typedef CustomObjectDefinitionUpdateRequestSchema
460
- * @property {string} [description]
461
- * @property {string} [display_name_key]
462
- * @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
408
+ * @typedef CreateTagSchema
463
409
  * @property {string} [name]
464
- * @property {string} [type]
465
- */
466
-
467
- /**
468
- * @typedef CustomObjectEntry
410
+ * @property {string} [sub_type]
469
411
  * @property {string} [_id]
470
- * @property {number} [entries_count]
471
- * @property {number} [fields_count]
472
- * @property {string} [name]
473
412
  * @property {string} [type]
474
- * @property {string} [updated_at]
475
- */
476
-
477
- /**
478
- * @typedef CustomObjectEntryBulkUploadResponse
479
- * @property {number} [total_records]
480
413
  * @property {string} [url]
414
+ * @property {string} [position]
415
+ * @property {Object} [attributes]
416
+ * @property {Object[]} [pages]
417
+ * @property {string} [content]
481
418
  */
482
419
 
483
420
  /**
484
- * @typedef CustomObjectEntryFieldSchema
485
- * @property {string} [definition_id]
486
- * @property {Object[]} [value]
421
+ * @typedef CreateTagRequestSchema
422
+ * @property {CreateTagSchema[]} [tags]
487
423
  */
488
424
 
489
425
  /**
490
- * @typedef CustomObjectFieldSchema
491
- * @property {string} [_id]
492
- * @property {string} [definition_id]
493
- * @property {string} [key]
426
+ * @typedef DataLoaderSchema
427
+ * @property {string} [name]
428
+ * @property {string} [service]
429
+ * @property {string} [operation_id]
494
430
  * @property {string} [type]
495
- * @property {Object[]} [value]
431
+ * @property {string} [url]
432
+ * @property {string} [content]
433
+ * @property {DataLoaderSourceSchema} [__source]
434
+ * @property {string} [_id]
496
435
  */
497
436
 
498
437
  /**
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]
438
+ * @typedef DataLoaderSourceSchema
439
+ * @property {string} [type]
440
+ * @property {string} [id]
520
441
  */
521
442
 
522
443
  /**
523
- * @typedef CustomObjectListItemDefinationSchema
524
- * @property {string} [_id]
525
- * @property {string} [name]
526
- * @property {string} [type]
444
+ * @typedef DataLoadersSchema
445
+ * @property {DataLoaderSchema[]} [items]
527
446
  */
528
447
 
529
448
  /**
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]
449
+ * @typedef TagDeleteSuccessResponse
450
+ * @property {boolean} [success]
538
451
  */
539
452
 
540
453
  /**
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]
454
+ * @typedef ContentAPIError
455
+ * @property {string} [message]
456
+ * @property {number} [status]
457
+ * @property {string} [code]
458
+ * @property {string} [exception]
459
+ * @property {string} [info]
460
+ * @property {string} [request_id]
461
+ * @property {string} [stack_trace]
462
+ * @property {Object} [meta]
546
463
  */
547
464
 
548
465
  /**
549
- * @typedef CustomObjectRequestSchema
550
- * @property {string} [definition_id]
551
- * @property {CustomObjectEntryFieldSchema[]} [fields]
552
- * @property {string} [status]
466
+ * @typedef CommonError
467
+ * @property {string} [message]
553
468
  */
554
469
 
555
470
  /**
556
- * @typedef CustomObjectSchema
471
+ * @typedef CategorySchema
472
+ * @property {number} [index]
473
+ * @property {string} [title]
474
+ * @property {string} [description]
475
+ * @property {string[]} [children]
557
476
  * @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]
477
+ * @property {string} [slug]
478
+ * @property {string} [application]
479
+ * @property {string} [icon_url]
480
+ * @property {Object} [_custom_json]
568
481
  */
569
482
 
570
483
  /**
571
- * @typedef CustomObjectsSchema
572
- * @property {CustomObjectListItemSchema[]} [items]
573
- * @property {Page} [page]
484
+ * @typedef ChildrenSchema
485
+ * @property {string} [question]
486
+ * @property {string} [answer]
487
+ * @property {string} [slug]
488
+ * @property {string} [application]
489
+ * @property {string} [_id]
574
490
  */
575
491
 
576
492
  /**
577
- * @typedef DataLoaderResetResponseSchema
578
- * @property {boolean} [reset]
493
+ * @typedef CategoryRequestSchema
494
+ * @property {string} [slug]
495
+ * @property {string} [title]
579
496
  */
580
497
 
581
498
  /**
582
- * @typedef DataLoaderResponseSchema
583
- * @property {DataLoaderSourceSchema} [__source]
499
+ * @typedef FAQCategorySchema
500
+ * @property {number} [index]
501
+ * @property {string} [title]
502
+ * @property {string} [description]
503
+ * @property {ChildrenSchema[]} [children]
584
504
  * @property {string} [_id]
505
+ * @property {string} [slug]
585
506
  * @property {string} [application]
586
- * @property {string} [company]
587
- * @property {string} [content]
588
- * @property {string} [name]
589
- * @property {string} [operation_id]
590
- * @property {string} [service]
591
- * @property {string} [type]
592
- * @property {string} [url]
507
+ * @property {string} [icon_url]
508
+ * @property {Object} [_custom_json]
593
509
  */
594
510
 
595
511
  /**
596
- * @typedef DataLoaderSchema
597
- * @property {DataLoaderSourceSchema} [__source]
512
+ * @typedef FaqSchema
513
+ * @property {string} [slug]
514
+ * @property {string} [application]
598
515
  * @property {string} [_id]
599
- * @property {string} [content]
600
- * @property {string} [name]
601
- * @property {string} [operation_id]
602
- * @property {string} [service]
603
- * @property {string} [type]
604
- * @property {string} [url]
516
+ * @property {string} [question]
517
+ * @property {string} [answer]
518
+ * @property {string[]} [tags]
605
519
  */
606
520
 
607
521
  /**
608
- * @typedef DataLoaderSourceSchema
609
- * @property {string} [id]
610
- * @property {string} [type]
522
+ * @typedef FAQ
523
+ * @property {string} [slug]
524
+ * @property {string} [question]
525
+ * @property {string} [answer]
611
526
  */
612
527
 
613
528
  /**
614
- * @typedef DataLoadersSchema
615
- * @property {DataLoaderSchema[]} [items]
529
+ * @typedef CreateFaqResponseSchema
530
+ * @property {FaqSchema} [faq]
616
531
  */
617
532
 
618
533
  /**
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]
534
+ * @typedef CreateFaqSchema
535
+ * @property {FAQ} [faq]
625
536
  */
626
537
 
627
538
  /**
628
- * @typedef DateMeta
629
- * @property {string} [created_on]
630
- * @property {string} [modified_on]
539
+ * @typedef GetFaqSchema
540
+ * @property {FaqSchema[]} [faqs]
631
541
  */
632
542
 
633
543
  /**
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]
544
+ * @typedef UpdateFaqCategoryRequestSchema
545
+ * @property {CategorySchema} [category]
640
546
  */
641
547
 
642
548
  /**
643
- * @typedef DefaultNavigationResponse
644
- * @property {NavigationSchema[]} [items]
549
+ * @typedef CreateFaqCategoryRequestSchema
550
+ * @property {CategoryRequestSchema} [category]
645
551
  */
646
552
 
647
553
  /**
648
- * @typedef DefaultSchemaComponent
649
- * @property {DefaultSEOSchemaMarkupTemplate[]} [items]
554
+ * @typedef CreateFaqCategorySchema
555
+ * @property {CategorySchema} [category]
650
556
  */
651
557
 
652
558
  /**
653
- * @typedef DefaultSEOSchemaMarkupTemplate
654
- * @property {string} [page_type]
655
- * @property {string} [schema]
656
- * @property {Object} [target_json]
559
+ * @typedef GetFaqCategoriesSchema
560
+ * @property {CategorySchema[]} [categories]
657
561
  */
658
562
 
659
563
  /**
660
- * @typedef Detail
661
- * @property {string} [description]
662
- * @property {string} [image_url]
663
- * @property {string} [title]
564
+ * @typedef GetFaqCategoryBySlugSchema
565
+ * @property {FAQCategorySchema} [category]
664
566
  */
665
567
 
666
568
  /**
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]
569
+ * @typedef Page
570
+ * @property {number} [item_total]
571
+ * @property {string} [next_id]
572
+ * @property {boolean} [has_previous]
573
+ * @property {boolean} [has_next]
574
+ * @property {number} [current]
575
+ * @property {string} type
576
+ * @property {number} [size]
673
577
  */
674
578
 
675
579
  /**
676
- * @typedef EditorMeta
677
- * @property {string} [background_color]
678
- * @property {string} [content]
679
- * @property {string} [content_type]
680
- * @property {string} [foreground_color]
580
+ * @typedef LandingPageGetResponse
581
+ * @property {LandingPageSchema[]} [items]
582
+ * @property {Page} [page]
681
583
  */
682
584
 
683
585
  /**
684
- * @typedef EmailProperties
685
- * @property {string} [key]
686
- * @property {string} [value]
586
+ * @typedef LandingPageSchema
587
+ * @property {string} [slug]
588
+ * @property {Action} [action]
589
+ * @property {string[]} [platform]
590
+ * @property {CreatedBySchema} [created_by]
591
+ * @property {DateMeta} [date_meta]
592
+ * @property {string} [_id]
593
+ * @property {string} [application]
594
+ * @property {boolean} [archived]
595
+ * @property {Object} [_custom_json]
687
596
  */
688
597
 
689
598
  /**
690
- * @typedef EmailSchema
691
- * @property {boolean} [active]
692
- * @property {EmailProperties[]} [email]
599
+ * @typedef DefaultNavigationResponse
600
+ * @property {NavigationSchema[]} [items]
693
601
  */
694
602
 
695
603
  /**
696
- * @typedef FAQ
697
- * @property {string} [answer]
698
- * @property {string} [question]
699
- * @property {string} [slug]
604
+ * @typedef NavigationGetResponse
605
+ * @property {NavigationSchema[]} [items]
606
+ * @property {Page} [page]
700
607
  */
701
608
 
702
609
  /**
703
- * @typedef FAQCategorySchema
704
- * @property {Object} [_custom_json]
705
- * @property {string} [_id]
706
- * @property {string} [application]
707
- * @property {ChildrenSchema[]} [children]
708
- * @property {string} [description]
709
- * @property {string} [icon_url]
710
- * @property {number} [index]
711
- * @property {string} [slug]
712
- * @property {string} [title]
610
+ * @typedef Orientation
611
+ * @property {string[]} [portrait]
612
+ * @property {string[]} [landscape]
713
613
  */
714
614
 
715
615
  /**
716
- * @typedef FaqSchema
616
+ * @typedef NavigationSchema
717
617
  * @property {string} [_id]
718
- * @property {string} [answer]
719
618
  * @property {string} [application]
720
- * @property {string} [question]
619
+ * @property {boolean} [archived]
620
+ * @property {string} [name]
721
621
  * @property {string} [slug]
722
- * @property {string[]} [tags]
622
+ * @property {string[]} [platform]
623
+ * @property {CreatedBySchema} [created_by]
624
+ * @property {DateMeta} [date_meta]
625
+ * @property {Orientation} [orientation]
626
+ * @property {number} [version]
627
+ * @property {NavigationReference[]} [navigation]
723
628
  */
724
629
 
725
630
  /**
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]
631
+ * @typedef NavigationRequest
737
632
  * @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]
633
+ * @property {string} [slug]
634
+ * @property {string[]} [platform]
635
+ * @property {Orientation} [orientation]
636
+ * @property {NavigationReference[]} [navigation]
746
637
  */
747
638
 
748
639
  /**
749
- * @typedef FieldValidations
750
- * @property {string} [name]
751
- * @property {string} [type]
752
- * @property {Object} [value]
640
+ * @typedef PageGetResponse
641
+ * @property {PageSchema[]} [items]
642
+ * @property {Page} [page]
753
643
  */
754
644
 
755
645
  /**
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]
646
+ * @typedef PageSpec
647
+ * @property {PageSpecItem[]} [specifications]
762
648
  */
763
649
 
764
650
  /**
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]
651
+ * @typedef PageSpecParam
652
+ * @property {string} [key]
653
+ * @property {boolean} [required]
771
654
  */
772
655
 
773
656
  /**
774
- * @typedef GeneratedSEOContent
775
- * @property {string} [description]
776
- * @property {string} [title]
657
+ * @typedef PageSpecItem
658
+ * @property {string} [page_type]
659
+ * @property {string} [display_name]
660
+ * @property {PageSpecParam[]} [params]
661
+ * @property {PageSpecParam[]} [query]
777
662
  */
778
663
 
779
664
  /**
780
- * @typedef GenerateSEOContent
781
- * @property {string} [existing_text]
782
- * @property {string[]} [keywords]
783
- * @property {string} [text]
665
+ * @typedef PageSchema
666
+ * @property {string} [_id]
667
+ * @property {string} [application]
668
+ * @property {string[]} [component_ids] - Components can be used to store
669
+ * multiple components
670
+ * @property {Object[]} [content]
671
+ * @property {string} [content_path]
672
+ * @property {CreatedBySchema} [created_by]
673
+ * @property {DateMeta} [date_meta]
674
+ * @property {string} [description]
675
+ * @property {Asset} [feature_image]
676
+ * @property {Object[]} [page_meta]
677
+ * @property {ScheduleSchema} [_schedule]
678
+ * @property {Object} [_custom_json]
679
+ * @property {string} [orientation]
680
+ * @property {string} [platform]
681
+ * @property {boolean} [published]
682
+ * @property {string} [slug]
683
+ * @property {string[]} [tags]
684
+ * @property {string} [title]
784
685
  * @property {string} [type]
686
+ * @property {SEO} [seo]
687
+ * @property {Object} [visibility]
688
+ * @property {boolean} [archived]
785
689
  */
786
690
 
787
691
  /**
788
- * @typedef GetAnnouncementListSchema
789
- * @property {AdminAnnouncementSchema[]} [items]
790
- * @property {Page} [page]
692
+ * @typedef CreatedBySchema
693
+ * @property {string} [id]
791
694
  */
792
695
 
793
696
  /**
794
- * @typedef GetFaqCategoriesSchema
795
- * @property {CategorySchema[]} [categories]
697
+ * @typedef PageRequest
698
+ * @property {CronSchedule} [_schedule]
699
+ * @property {string} [application]
700
+ * @property {Author} [author]
701
+ * @property {Object} [_custom_json]
702
+ * @property {string} [orientation]
703
+ * @property {Object[]} [content]
704
+ * @property {Asset} [feature_image]
705
+ * @property {boolean} [published]
706
+ * @property {string} [reading_time]
707
+ * @property {string} [slug]
708
+ * @property {string[]} [tags]
709
+ * @property {SEO} [seo]
710
+ * @property {string} [title]
796
711
  */
797
712
 
798
713
  /**
799
- * @typedef GetFaqCategoryBySlugSchema
800
- * @property {FAQCategorySchema} [category]
714
+ * @typedef CronSchedule
715
+ * @property {string} [cron]
716
+ * @property {string} [start]
717
+ * @property {string} [end]
718
+ * @property {number} [duration]
801
719
  */
802
720
 
803
721
  /**
804
- * @typedef GetFaqSchema
805
- * @property {FaqSchema[]} [faqs]
722
+ * @typedef PagePublishRequest
723
+ * @property {boolean} [publish]
806
724
  */
807
725
 
808
726
  /**
809
- * @typedef HandpickedTagSchema
810
- * @property {Object} [attributes]
811
- * @property {string} [content]
812
- * @property {string} [name]
813
- * @property {string} [position]
814
- * @property {string} [sub_type]
815
- * @property {string} [type]
816
- * @property {string} [url]
727
+ * @typedef PageMetaSchema
728
+ * @property {NavigationSchema[]} [system_pages]
729
+ * @property {PageSchema[]} [custom_pages]
730
+ * @property {string} [application_id]
817
731
  */
818
732
 
819
733
  /**
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]
734
+ * @typedef SlideshowGetResponse
735
+ * @property {SlideshowSchema[]} [items]
736
+ * @property {Page} [page]
826
737
  */
827
738
 
828
739
  /**
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]
740
+ * @typedef SlideshowSchema
741
+ * @property {string} [_id]
742
+ * @property {string} [slug]
743
+ * @property {DateMeta} [date_meta]
744
+ * @property {string} [application]
745
+ * @property {string} [platform]
746
+ * @property {ConfigurationSchema} [configuration]
747
+ * @property {SlideshowMedia[]} [media]
748
+ * @property {boolean} [active]
749
+ * @property {boolean} [archived]
750
+ * @property {Object} [_custom_json]
835
751
  */
836
752
 
837
753
  /**
838
- * @typedef LandingPageGetResponse
839
- * @property {LandingPageSchema[]} [items]
840
- * @property {Page} [page]
754
+ * @typedef SlideshowRequest
755
+ * @property {string} [slug]
756
+ * @property {string} [platform]
757
+ * @property {ConfigurationSchema} [configuration]
758
+ * @property {SlideshowMedia} [media]
759
+ * @property {boolean} [active]
841
760
  */
842
761
 
843
762
  /**
844
- * @typedef LandingPageSchema
845
- * @property {Object} [_custom_json]
763
+ * @typedef Support
764
+ * @property {boolean} [created]
846
765
  * @property {string} [_id]
847
- * @property {Action} [action]
766
+ * @property {string} [config_type]
848
767
  * @property {string} [application]
849
- * @property {boolean} [archived]
850
- * @property {CreatedBySchema} [created_by]
851
- * @property {DateMeta} [date_meta]
852
- * @property {string[]} [platform]
853
- * @property {string} [slug]
768
+ * @property {string} [created_at]
769
+ * @property {string} [updated_at]
770
+ * @property {ContactSchema} [contact]
854
771
  */
855
772
 
856
773
  /**
857
- * @typedef Language
858
- * @property {string} [display]
774
+ * @typedef PhoneProperties
775
+ * @property {string} [key]
776
+ * @property {string} [code]
777
+ * @property {string} [number]
859
778
  */
860
779
 
861
780
  /**
862
- * @typedef LocaleLanguage
863
- * @property {Language} [ar]
864
- * @property {Language} [en_us]
865
- * @property {Language} [hi]
781
+ * @typedef PhoneSchema
782
+ * @property {boolean} [active]
783
+ * @property {PhoneProperties[]} [phone]
866
784
  */
867
785
 
868
786
  /**
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]
787
+ * @typedef EmailProperties
788
+ * @property {string} [key]
789
+ * @property {string} [value]
875
790
  */
876
791
 
877
792
  /**
878
- * @typedef NavigationGetResponse
879
- * @property {NavigationSchema[]} [items]
880
- * @property {Page} [page]
881
- */
882
-
883
- /**
884
- * @typedef NavigationReference
885
- * @property {LocaleLanguage} [_locale_language]
886
- * @property {string[]} [acl]
887
- * @property {Action} [action]
793
+ * @typedef EmailSchema
888
794
  * @property {boolean} [active]
889
- * @property {string} [display]
890
- * @property {string} [image]
891
- * @property {number} [sort_order]
892
- * @property {NavigationReference[]} [sub_navigation]
893
- * @property {string[]} [tags]
894
- * @property {string} [type]
795
+ * @property {EmailProperties[]} [email]
895
796
  */
896
797
 
897
798
  /**
898
- * @typedef NavigationRequest
899
- * @property {string} [name]
900
- * @property {NavigationReference[]} [navigation]
901
- * @property {Orientation} [orientation]
902
- * @property {string[]} [platform]
903
- * @property {string} [slug]
799
+ * @typedef ContactSchema
800
+ * @property {PhoneSchema} [phone]
801
+ * @property {EmailSchema} [email]
904
802
  */
905
803
 
906
804
  /**
907
- * @typedef NavigationSchema
908
- * @property {string} [_id]
805
+ * @typedef TagsSchema
909
806
  * @property {string} [application]
910
- * @property {boolean} [archived]
911
- * @property {CreatedBySchema} [created_by]
912
- * @property {DateMeta} [date_meta]
913
- * @property {string} [name]
914
- * @property {NavigationReference[]} [navigation]
915
- * @property {Orientation} [orientation]
916
- * @property {string[]} [platform]
917
- * @property {string} [slug]
918
- * @property {number} [version]
807
+ * @property {string} [_id]
808
+ * @property {TagSchema[]} [tags]
919
809
  */
920
810
 
921
811
  /**
922
- * @typedef NextSchedule
923
- * @property {string} [end]
924
- * @property {string} [start]
812
+ * @typedef TagSchema
813
+ * @property {string} [name]
814
+ * @property {string} [url]
815
+ * @property {string} [type]
816
+ * @property {string} [sub_type]
817
+ * @property {string} [_id]
818
+ * @property {string} [position]
819
+ * @property {Object} [attributes]
820
+ * @property {string} [content]
821
+ * @property {Object[]} [pages]
822
+ * @property {TagSourceSchema} [__source]
925
823
  */
926
824
 
927
825
  /**
928
- * @typedef Orientation
929
- * @property {string[]} [landscape]
930
- * @property {string[]} [portrait]
826
+ * @typedef TagSourceSchema
827
+ * @property {string} [type]
828
+ * @property {string} [id]
931
829
  */
932
830
 
933
831
  /**
934
- * @typedef Page
935
- * @property {number} [current]
936
- * @property {boolean} [has_next]
937
- * @property {boolean} [has_previous]
938
- * @property {number} [item_total]
939
- * @property {string} [next_id]
940
- * @property {number} [size]
941
- * @property {string} type
832
+ * @typedef ResourcesSchema
833
+ * @property {ResourceSchema[]} [resources]
942
834
  */
943
835
 
944
836
  /**
945
- * @typedef PageGetResponse
946
- * @property {PageSchema[]} [items]
947
- * @property {Page} [page]
837
+ * @typedef ResourceSchema
838
+ * @property {string} [name] - Resource name
839
+ * @property {string} [key] - Resource key
840
+ * @property {number} [definitions_count] - Number of definitions
948
841
  */
949
842
 
950
843
  /**
951
- * @typedef PageMetaSchema
952
- * @property {string} [application_id]
953
- * @property {PageSchema[]} [custom_pages]
954
- * @property {NavigationSchema[]} [system_pages]
844
+ * @typedef FieldValidations
845
+ * @property {string} [name]
846
+ * @property {string} [type]
847
+ * @property {Object} [value]
955
848
  */
956
849
 
957
850
  /**
958
- * @typedef PagePublishRequest
959
- * @property {boolean} [publish]
851
+ * @typedef FieldDefinitionSchema
852
+ * @property {string} [_id]
853
+ * @property {string} [creator]
854
+ * @property {string} [resource]
855
+ * @property {string} [name]
856
+ * @property {string} [namespace]
857
+ * @property {string} [key]
858
+ * @property {string} [description]
859
+ * @property {string} [type]
860
+ * @property {boolean} [multi_value]
861
+ * @property {FieldValidations[]} [validations]
862
+ * @property {string} [company_id]
863
+ * @property {string} [created_by]
864
+ * @property {string} [updated_by]
865
+ * @property {boolean} [required]
866
+ * @property {boolean} [is_deleted]
867
+ * @property {string} [created_at]
868
+ * @property {string} [updated_at]
869
+ * @property {string} [type_name]
870
+ * @property {number} [invalid_fields_count]
960
871
  */
961
872
 
962
873
  /**
963
- * @typedef PageRequest
964
- * @property {Object} [_custom_json]
965
- * @property {CronSchedule} [_schedule]
966
- * @property {string} [application]
967
- * @property {Author} [author]
968
- * @property {Object[]} [content]
969
- * @property {Asset} [feature_image]
970
- * @property {string} [orientation]
971
- * @property {boolean} [published]
972
- * @property {string} [reading_time]
973
- * @property {SEO} [seo]
974
- * @property {string} [slug]
975
- * @property {string[]} [tags]
976
- * @property {string} [title]
874
+ * @typedef CustomFieldDefinitionsSchema
875
+ * @property {FieldDefinitionSchema[]} [items]
876
+ * @property {Page} [page]
977
877
  */
978
878
 
979
879
  /**
980
- * @typedef PageSchema
981
- * @property {Object} [_custom_json]
982
- * @property {string} [_id]
983
- * @property {ScheduleSchema} [_schedule]
984
- * @property {string} [application]
985
- * @property {boolean} [archived]
986
- * @property {string[]} [component_ids] - Components can be used to store
987
- * multiple components
988
- * @property {Object[]} [content]
989
- * @property {string} [content_path]
990
- * @property {CreatedBySchema} [created_by]
991
- * @property {DateMeta} [date_meta]
992
- * @property {string} [description]
993
- * @property {Asset} [feature_image]
994
- * @property {string} [orientation]
995
- * @property {Object[]} [page_meta]
996
- * @property {string} [platform]
997
- * @property {boolean} [published]
998
- * @property {SEO} [seo]
999
- * @property {string} [slug]
1000
- * @property {string[]} [tags]
1001
- * @property {string} [title]
880
+ * @typedef CustomFieldDefinitionRequestSchema
881
+ * @property {string} [resource]
1002
882
  * @property {string} [type]
1003
- * @property {Object} [visibility]
883
+ * @property {string} [key]
884
+ * @property {string} [namespace]
885
+ * @property {boolean} [multi_value]
886
+ * @property {string} [name]
887
+ * @property {string} [description]
888
+ * @property {FieldValidations[]} [validations]
1004
889
  */
1005
890
 
1006
891
  /**
1007
- * @typedef PageSpec
1008
- * @property {PageSpecItem[]} [specifications]
892
+ * @typedef CustomObjectCustomFieldDefinitions
893
+ * @property {string} [id]
894
+ * @property {string} [type]
895
+ * @property {string} [description]
896
+ * @property {string} [name]
897
+ * @property {boolean} [multi_value]
898
+ * @property {boolean} [required]
899
+ * @property {string} [key]
900
+ * @property {FieldValidations[]} [validations]
901
+ * @property {string} [action]
1009
902
  */
1010
903
 
1011
904
  /**
1012
- * @typedef PageSpecItem
1013
- * @property {string} [display_name]
1014
- * @property {string} [page_type]
1015
- * @property {PageSpecParam[]} [params]
1016
- * @property {PageSpecParam[]} [query]
905
+ * @typedef CustomObjectDefinitionUpdateRequestSchema
906
+ * @property {string} [type]
907
+ * @property {string} [description]
908
+ * @property {string} [name]
909
+ * @property {string} [display_name_key]
910
+ * @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
1017
911
  */
1018
912
 
1019
913
  /**
1020
- * @typedef PageSpecParam
914
+ * @typedef CustomFieldDefinitionDetailResSchema
915
+ * @property {string} [creator]
916
+ * @property {string} [resource]
917
+ * @property {string} [name]
918
+ * @property {string} [namespace]
1021
919
  * @property {string} [key]
920
+ * @property {string} [description]
921
+ * @property {string} [type]
922
+ * @property {boolean} [multi_value]
923
+ * @property {string} [company_id]
924
+ * @property {string} [application_id]
925
+ * @property {string} [created_by]
926
+ * @property {string} [updated_by]
1022
927
  * @property {boolean} [required]
1023
- */
1024
-
1025
- /**
1026
- * @typedef PathMappingSchema
1027
- * @property {PathSourceSchema} [__source]
928
+ * @property {boolean} [is_deleted]
1028
929
  * @property {string} [_id]
1029
- * @property {string} [application]
930
+ * @property {Object[]} [validations]
1030
931
  * @property {string} [created_at]
1031
- * @property {string} [redirect_from]
1032
- * @property {string} [redirect_to]
1033
932
  * @property {string} [updated_at]
1034
933
  */
1035
934
 
1036
935
  /**
1037
- * @typedef PathSourceSchema
1038
- * @property {string} [id]
1039
- * @property {string} [type]
936
+ * @typedef CustomDataDeleteSchema
937
+ * @property {boolean} [success]
938
+ * @property {string} [message]
1040
939
  */
1041
940
 
1042
941
  /**
1043
- * @typedef PhoneProperties
1044
- * @property {string} [code]
1045
- * @property {string} [key]
1046
- * @property {string} [number]
942
+ * @typedef CustomFieldValue
943
+ * @property {Object} [value]
1047
944
  */
1048
945
 
1049
946
  /**
1050
- * @typedef PhoneSchema
1051
- * @property {boolean} [active]
1052
- * @property {PhoneProperties[]} [phone]
947
+ * @typedef CustomFieldSchema
948
+ * @property {string} [_id]
949
+ * @property {string} [namespace]
950
+ * @property {string} [key]
951
+ * @property {string} [resource]
952
+ * @property {string} [creator]
953
+ * @property {CustomFieldValue[]} [value]
954
+ * @property {string} [resource_id]
955
+ * @property {string} [type]
956
+ * @property {boolean} [multi_value]
957
+ * @property {string} [company_id]
958
+ * @property {string} [definition_id]
959
+ * @property {boolean} [has_invalid_values]
960
+ * @property {Object[]} [invalid_value_errors]
961
+ * @property {string} [created_by]
962
+ * @property {boolean} [is_deleted]
963
+ * @property {string} [created_at]
964
+ * @property {string} [updated_at]
1053
965
  */
1054
966
 
1055
967
  /**
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]
968
+ * @typedef CustomFieldsResponseSchema
969
+ * @property {CustomFieldSchema[]} [items]
970
+ * @property {Page} [page]
1062
971
  */
1063
972
 
1064
973
  /**
1065
- * @typedef RemoveHandpickedSchema
1066
- * @property {string[]} [tags]
974
+ * @typedef CustomFieldsResponseByResourceIdSchema
975
+ * @property {CustomFieldSchema[]} [items]
1067
976
  */
1068
977
 
1069
978
  /**
1070
- * @typedef ResourceContent
1071
- * @property {string} [type]
1072
- * @property {string} [value]
979
+ * @typedef CustomField
980
+ * @property {Object[]} [value]
981
+ * @property {string} [definition_id]
1073
982
  */
1074
983
 
1075
984
  /**
1076
- * @typedef ResourceSchema
1077
- * @property {number} [definitions_count] - Number of definitions
1078
- * @property {string} [key] - Resource key
1079
- * @property {string} [name] - Resource name
985
+ * @typedef CustomFieldRequestSchema
986
+ * @property {CustomField[]} [fields]
1080
987
  */
1081
988
 
1082
989
  /**
1083
- * @typedef ResourcesSchema
1084
- * @property {ResourceSchema[]} [resources]
990
+ * @typedef CustomObjectSchema
991
+ * @property {string} [_id]
992
+ * @property {string} [creator]
993
+ * @property {string} [company_id]
994
+ * @property {string} [application_id]
995
+ * @property {string} [created_by]
996
+ * @property {string} [updated_by]
997
+ * @property {string} [status]
998
+ * @property {string} [type]
999
+ * @property {string} [display_name]
1000
+ * @property {string} [definition_id]
1001
+ * @property {CustomFieldSchema[]} [fields]
1085
1002
  */
1086
1003
 
1087
1004
  /**
1088
- * @typedef ScheduleSchema
1089
- * @property {string} [cron]
1090
- * @property {number} [duration]
1091
- * @property {string} [end]
1092
- * @property {NextSchedule[]} [next_schedule]
1093
- * @property {string} [start]
1005
+ * @typedef CustomObjectDefinitionRequestSchema
1006
+ * @property {string} [type]
1007
+ * @property {string} [description]
1008
+ * @property {string} [name]
1009
+ * @property {string} [display_name_key]
1010
+ * @property {CustomObjectCustomFieldDefinitions[]} [field_definitions]
1094
1011
  */
1095
1012
 
1096
1013
  /**
1097
- * @typedef SEO
1098
- * @property {SEObreadcrumb[]} [breadcrumb]
1099
- * @property {string} [canonical_url]
1014
+ * @typedef CustomObjectCustomFieldDefinitionResSchema
1015
+ * @property {string} [creator]
1016
+ * @property {string} [resource]
1017
+ * @property {string} [name]
1018
+ * @property {string} [namespace]
1019
+ * @property {string} [key]
1100
1020
  * @property {string} [description]
1101
- * @property {SEOImage} [image]
1102
- * @property {SEOMetaItem[]} [meta_tags]
1103
- * @property {SEOSitemap} [sitemap]
1104
- * @property {string} [title]
1021
+ * @property {string} [type]
1022
+ * @property {boolean} [multi_value]
1023
+ * @property {FieldValidations[]} [validations]
1024
+ * @property {string} [company_id]
1025
+ * @property {string} [created_by]
1026
+ * @property {string} [metaobject_definition_id]
1027
+ * @property {boolean} [required]
1028
+ * @property {boolean} [is_deleted]
1029
+ * @property {string} [_id]
1030
+ * @property {string} [created_at]
1031
+ * @property {string} [updated_at]
1105
1032
  */
1106
1033
 
1107
1034
  /**
1108
- * @typedef SEObreadcrumb
1109
- * @property {Action} [action]
1110
- * @property {string} [url]
1035
+ * @typedef CustomObjectDefinitionSchema
1036
+ * @property {string} [_id]
1037
+ * @property {string} [name]
1038
+ * @property {string} [type]
1039
+ * @property {string} [display_name_key]
1040
+ * @property {string} [description]
1041
+ * @property {string} [creator]
1042
+ * @property {string} [created_by]
1043
+ * @property {string} [updated_by]
1044
+ * @property {CustomObjectCustomFieldDefinitionResSchema[]} [field_definitions]
1111
1045
  */
1112
1046
 
1113
1047
  /**
1114
- * @typedef SeoComponent
1115
- * @property {SeoSchema} [seo]
1048
+ * @typedef CustomObjectDefinitionDeleteResponseSchema
1049
+ * @property {boolean} [success]
1050
+ * @property {string} [message]
1116
1051
  */
1117
1052
 
1118
1053
  /**
1119
- * @typedef SEOImage
1054
+ * @typedef CustomObjectEntryBulkUploadResponse
1120
1055
  * @property {string} [url]
1056
+ * @property {number} [total_records]
1121
1057
  */
1122
1058
 
1123
1059
  /**
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]
1060
+ * @typedef CustomObjectListItemDefinationSchema
1061
+ * @property {string} [_id]
1062
+ * @property {string} [name]
1063
+ * @property {string} [type]
1133
1064
  */
1134
1065
 
1135
1066
  /**
1136
- * @typedef SeoSchema
1067
+ * @typedef CustomObjectListItemSchema
1137
1068
  * @property {string} [_id]
1138
- * @property {string} [additional_sitemap]
1139
- * @property {string} [app]
1140
- * @property {boolean} [cannonical_enabled]
1141
- * @property {string} [created_at]
1142
- * @property {CustomMetaTag[]} [custom_meta_tags]
1143
- * @property {Detail} [details]
1144
- * @property {string} [robots_txt]
1145
- * @property {boolean} [sitemap_enabled]
1069
+ * @property {string} [definition_id]
1070
+ * @property {string} [status]
1146
1071
  * @property {string} [updated_at]
1072
+ * @property {string} [display_name]
1073
+ * @property {CustomObjectListItemDefinationSchema} [definition]
1074
+ * @property {number} [references]
1147
1075
  */
1148
1076
 
1149
1077
  /**
1150
- * @typedef SeoSchemaComponent
1151
- * @property {SEOSchemaMarkupTemplate[]} [items]
1078
+ * @typedef CustomObjectsSchema
1079
+ * @property {CustomObjectListItemSchema[]} [items]
1152
1080
  * @property {Page} [page]
1153
1081
  */
1154
1082
 
1155
1083
  /**
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]
1084
+ * @typedef CustomObjectFieldSchema
1085
+ * @property {string} [_id]
1086
+ * @property {string} [key]
1087
+ * @property {Object[]} [value]
1088
+ * @property {string} [type]
1089
+ * @property {string} [definition_id]
1185
1090
  */
1186
1091
 
1187
1092
  /**
1188
- * @typedef SlideshowGetResponse
1189
- * @property {SlideshowSchema[]} [items]
1190
- * @property {Page} [page]
1093
+ * @typedef CustomObjectByIdSchema
1094
+ * @property {string} [_id]
1095
+ * @property {string} [status]
1096
+ * @property {string} [display_name]
1097
+ * @property {CustomObjectListItemDefinationSchema} [definition]
1098
+ * @property {Object[]} [references]
1099
+ * @property {CustomObjectFieldSchema[]} [fields]
1191
1100
  */
1192
1101
 
1193
1102
  /**
1194
- * @typedef SlideshowMedia
1195
- * @property {Action} [action]
1196
- * @property {boolean} [auto_decide_duration]
1197
- * @property {string} [bg_color]
1198
- * @property {number} [duration]
1199
- * @property {string} [type]
1200
- * @property {string} [url]
1103
+ * @typedef CustomObjectBulkEntryInitiateDownload
1104
+ * @property {string} [message]
1105
+ * @property {string} [task_id]
1201
1106
  */
1202
1107
 
1203
1108
  /**
1204
- * @typedef SlideshowRequest
1205
- * @property {boolean} [active]
1206
- * @property {ConfigurationSchema} [configuration]
1207
- * @property {SlideshowMedia} [media]
1208
- * @property {string} [platform]
1209
- * @property {string} [slug]
1109
+ * @typedef CustomObjectMetaSchema
1110
+ * @property {number} [mo_total_count]
1111
+ * @property {number} [mo_success_count]
1112
+ * @property {number} [mo_error_count]
1113
+ * @property {string} [mo_defintion_type]
1210
1114
  */
1211
1115
 
1212
1116
  /**
1213
- * @typedef SlideshowSchema
1214
- * @property {Object} [_custom_json]
1117
+ * @typedef CustomObjectJobSchema
1215
1118
  * @property {string} [_id]
1216
- * @property {boolean} [active]
1217
- * @property {string} [application]
1218
- * @property {boolean} [archived]
1219
- * @property {ConfigurationSchema} [configuration]
1220
- * @property {DateMeta} [date_meta]
1221
- * @property {SlideshowMedia[]} [media]
1222
- * @property {string} [platform]
1223
- * @property {string} [slug]
1224
- */
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]
1119
+ * @property {string[]} [jobs]
1120
+ * @property {string[]} [finished_jobs]
1121
+ * @property {string[]} [error_jobs]
1122
+ * @property {string[]} [errors_occured]
1123
+ * @property {string} [company_id]
1124
+ * @property {string} [creator]
1125
+ * @property {string} [url]
1126
+ * @property {string} [status]
1127
+ * @property {string} [action_type]
1128
+ * @property {string} [entity]
1129
+ * @property {string} [error_url]
1130
+ * @property {number} [finished_count]
1131
+ * @property {number} [error_count]
1132
+ * @property {number} [success_count]
1133
+ * @property {number} [total_jobs]
1134
+ * @property {CustomObjectMetaSchema} [meta]
1135
+ * @property {string} [created_by]
1136
+ * @property {string} [created_at]
1137
+ * @property {string} [updated_at]
1233
1138
  */
1234
1139
 
1235
1140
  /**
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]
1141
+ * @typedef CustomObjectBulkEntry
1142
+ * @property {CustomObjectJobSchema[]} [items]
1143
+ * @property {Page} [page]
1242
1144
  */
1243
1145
 
1244
1146
  /**
1245
- * @typedef Support
1246
- * @property {string} [_id]
1247
- * @property {string} [application]
1248
- * @property {string} [config_type]
1249
- * @property {ContactSchema} [contact]
1250
- * @property {boolean} [created]
1251
- * @property {string} [created_at]
1252
- * @property {string} [updated_at]
1147
+ * @typedef CustomFieldTypeSchema
1148
+ * @property {StringSingleLine} [string_single_line]
1149
+ * @property {StringMultiLine} [string_multi_line]
1150
+ * @property {Dropdown} [dropdown]
1151
+ * @property {Integer} [integer]
1152
+ * @property {FloatType} [float_type]
1153
+ * @property {BooleanType} [boolean_type]
1154
+ * @property {Date} [date]
1155
+ * @property {Datetime} [datetime]
1156
+ * @property {Json} [json]
1157
+ * @property {File} [file]
1158
+ * @property {Url} [url]
1159
+ * @property {Metaobject} [metaobject]
1160
+ * @property {Product} [product]
1253
1161
  */
1254
1162
 
1255
1163
  /**
@@ -1265,61 +1173,162 @@ const Joi = require("joi");
1265
1173
 
1266
1174
  /**
1267
1175
  * @typedef SupportedValidationsSchema
1268
- * @property {string} [display]
1269
- * @property {SupportedValidationsMetaSchema} [meta]
1270
1176
  * @property {string} [name]
1271
- * @property {boolean} [required]
1272
1177
  * @property {string} [type]
1178
+ * @property {string} [display]
1179
+ * @property {boolean} [required]
1180
+ * @property {SupportedValidationsMetaSchema} [meta]
1273
1181
  */
1274
1182
 
1275
1183
  /**
1276
- * @typedef TagDeleteSuccessResponse
1277
- * @property {boolean} [success]
1184
+ * @typedef StringSingleLine
1185
+ * @property {string} [name]
1186
+ * @property {boolean} [list_enabled]
1187
+ * @property {string} [category]
1188
+ * @property {string} [type]
1189
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1278
1190
  */
1279
1191
 
1280
1192
  /**
1281
- * @typedef TagSchema
1282
- * @property {TagSourceSchema} [__source]
1283
- * @property {string} [_id]
1284
- * @property {Object} [attributes]
1285
- * @property {string} [content]
1193
+ * @typedef StringMultiLine
1286
1194
  * @property {string} [name]
1287
- * @property {Object[]} [pages]
1288
- * @property {string} [position]
1289
- * @property {string} [sub_type]
1195
+ * @property {boolean} [list_enabled]
1196
+ * @property {string} [category]
1290
1197
  * @property {string} [type]
1291
- * @property {string} [url]
1198
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1292
1199
  */
1293
1200
 
1294
1201
  /**
1295
- * @typedef TagSourceSchema
1296
- * @property {string} [id]
1202
+ * @typedef Dropdown
1203
+ * @property {string} [name]
1204
+ * @property {boolean} [list_enabled]
1205
+ * @property {string} [category]
1297
1206
  * @property {string} [type]
1207
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1298
1208
  */
1299
1209
 
1300
1210
  /**
1301
- * @typedef TagsSchema
1302
- * @property {string} [_id]
1303
- * @property {string} [application]
1304
- * @property {TagSchema[]} [tags]
1211
+ * @typedef Integer
1212
+ * @property {string} [name]
1213
+ * @property {boolean} [list_enabled]
1214
+ * @property {string} [type]
1215
+ * @property {string} [category]
1216
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1305
1217
  */
1306
1218
 
1307
1219
  /**
1308
- * @typedef UpdateFaqCategoryRequestSchema
1309
- * @property {CategorySchema} [category]
1220
+ * @typedef FloatType
1221
+ * @property {string} [name]
1222
+ * @property {boolean} [list_enabled]
1223
+ * @property {string} [type]
1224
+ * @property {string} [category]
1225
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1310
1226
  */
1311
1227
 
1312
1228
  /**
1313
- * @typedef UpdateHandpickedSchema
1314
- * @property {HandpickedTagSchema} [tag]
1229
+ * @typedef BooleanType
1230
+ * @property {string} [name]
1231
+ * @property {string} [category]
1232
+ * @property {boolean} [list_enabled]
1233
+ * @property {string} [type]
1234
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1235
+ */
1236
+
1237
+ /**
1238
+ * @typedef Date
1239
+ * @property {string} [name]
1240
+ * @property {boolean} [list_enabled]
1241
+ * @property {string} [category]
1242
+ * @property {string} [type]
1243
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1244
+ */
1245
+
1246
+ /**
1247
+ * @typedef Datetime
1248
+ * @property {string} [name]
1249
+ * @property {string} [category]
1250
+ * @property {boolean} [list_enabled]
1251
+ * @property {string} [type]
1252
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1253
+ */
1254
+
1255
+ /**
1256
+ * @typedef Json
1257
+ * @property {string} [name]
1258
+ * @property {boolean} [list_enabled]
1259
+ * @property {string} [category]
1260
+ * @property {string} [type]
1261
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1262
+ */
1263
+
1264
+ /**
1265
+ * @typedef File
1266
+ * @property {string} [name]
1267
+ * @property {string} [category]
1268
+ * @property {boolean} [list_enabled]
1269
+ * @property {string} [type]
1270
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1315
1271
  */
1316
1272
 
1317
1273
  /**
1318
1274
  * @typedef Url
1275
+ * @property {string} [name]
1319
1276
  * @property {boolean} [list_enabled]
1277
+ * @property {string} [type]
1278
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1279
+ */
1280
+
1281
+ /**
1282
+ * @typedef Metaobject
1283
+ * @property {string} [name]
1284
+ * @property {boolean} [list_enabled]
1285
+ * @property {string} [category]
1286
+ * @property {string} [type]
1287
+ * @property {SupportedValidationsSchema[]} [supported_validations]
1288
+ */
1289
+
1290
+ /**
1291
+ * @typedef Product
1320
1292
  * @property {string} [name]
1293
+ * @property {boolean} [list_enabled]
1294
+ * @property {string} [category]
1295
+ * @property {string} [type]
1321
1296
  * @property {SupportedValidationsSchema[]} [supported_validations]
1297
+ */
1298
+
1299
+ /**
1300
+ * @typedef CustomObjectEntry
1301
+ * @property {string} [_id]
1302
+ * @property {string} [name]
1322
1303
  * @property {string} [type]
1304
+ * @property {string} [updated_at]
1305
+ * @property {number} [entries_count]
1306
+ * @property {number} [fields_count]
1307
+ */
1308
+
1309
+ /**
1310
+ * @typedef CustomObjectDefinitionsSchema
1311
+ * @property {CustomObjectEntry[]} [items]
1312
+ * @property {Page} [page]
1313
+ */
1314
+
1315
+ /**
1316
+ * @typedef CustomObjectEntryFieldSchema
1317
+ * @property {string} [definition_id]
1318
+ * @property {Object[]} [value]
1319
+ */
1320
+
1321
+ /**
1322
+ * @typedef CustomObjectRequestSchema
1323
+ * @property {string} [status]
1324
+ * @property {string} [definition_id]
1325
+ * @property {CustomObjectEntryFieldSchema[]} [fields]
1326
+ */
1327
+
1328
+ /**
1329
+ * @typedef CustomObjectBulkSchema
1330
+ * @property {string} [url]
1331
+ * @property {number} [total_records]
1323
1332
  */
1324
1333
 
1325
1334
  /** @typedef {"title" | "description"} GenerationEntityType */
@@ -1374,806 +1383,754 @@ const Joi = require("joi");
1374
1383
  */
1375
1384
 
1376
1385
  class ContentPlatformModel {
1377
- /** @returns {Action} */
1378
- static Action() {
1386
+ /** @returns {GenerateSEOContent} */
1387
+ static GenerateSEOContent() {
1379
1388
  return Joi.object({
1380
- page: ContentPlatformModel.ActionPage(),
1381
- popup: ContentPlatformModel.ActionPage(),
1389
+ text: Joi.string().allow(""),
1390
+ existing_text: Joi.string().allow(""),
1391
+ keywords: Joi.array().items(Joi.string().allow("")),
1382
1392
  type: Joi.string().allow(""),
1383
1393
  });
1384
1394
  }
1385
1395
 
1386
- /** @returns {ActionPage} */
1387
- static ActionPage() {
1388
- return Joi.object({
1389
- params: Joi.object().pattern(
1390
- /\S/,
1391
- Joi.array().items(Joi.string().allow(""))
1392
- ),
1393
- query: Joi.object().pattern(
1394
- /\S/,
1395
- Joi.array().items(Joi.string().allow(""))
1396
- ),
1397
- type: ContentPlatformModel.PageType().required(),
1398
- url: Joi.string().allow(""),
1399
- });
1400
- }
1401
-
1402
- /** @returns {AdminAnnouncementSchema} */
1403
- static AdminAnnouncementSchema() {
1396
+ /** @returns {GeneratedSEOContent} */
1397
+ static GeneratedSEOContent() {
1404
1398
  return Joi.object({
1405
- _id: Joi.string().allow(""),
1406
- _schedule: ContentPlatformModel.ScheduleSchema(),
1407
- announcement: Joi.string().allow(""),
1408
- app: Joi.string().allow(""),
1409
- author: ContentPlatformModel.AnnouncementAuthorSchema(),
1410
- created_at: Joi.string().allow(""),
1411
- editor_meta: ContentPlatformModel.EditorMeta(),
1412
- modified_at: Joi.string().allow(""),
1413
- pages: Joi.array().items(ContentPlatformModel.AnnouncementPageSchema()),
1414
- platforms: Joi.array().items(Joi.string().allow("")),
1415
1399
  title: Joi.string().allow(""),
1416
- });
1417
- }
1418
-
1419
- /** @returns {AnnouncementAuthorSchema} */
1420
- static AnnouncementAuthorSchema() {
1421
- return Joi.object({
1422
- created_by: Joi.string().allow(""),
1423
- modified_by: Joi.string().allow(""),
1424
- });
1425
- }
1426
-
1427
- /** @returns {AnnouncementPageSchema} */
1428
- static AnnouncementPageSchema() {
1429
- return Joi.object({
1430
- page_slug: Joi.string().allow(""),
1431
- type: Joi.string().allow(""),
1400
+ description: Joi.string().allow(""),
1432
1401
  });
1433
1402
  }
1434
1403
 
1435
1404
  /** @returns {ApplicationLegal} */
1436
1405
  static ApplicationLegal() {
1437
1406
  return Joi.object({
1438
- _id: Joi.string().allow(""),
1439
1407
  application: Joi.string().allow(""),
1440
- created_at: Joi.string().allow(""),
1441
- faq: Joi.array().items(ContentPlatformModel.ApplicationLegalFAQ()),
1408
+ tnc: Joi.string().allow(""),
1442
1409
  policy: Joi.string().allow(""),
1443
- returns: Joi.string().allow(""),
1444
1410
  shipping: Joi.string().allow(""),
1445
- tnc: Joi.string().allow(""),
1411
+ returns: Joi.string().allow(""),
1412
+ faq: Joi.array().items(ContentPlatformModel.ApplicationLegalFAQ()),
1413
+ _id: Joi.string().allow(""),
1446
1414
  updated_at: Joi.string().allow(""),
1415
+ created_at: Joi.string().allow(""),
1447
1416
  });
1448
1417
  }
1449
1418
 
1450
1419
  /** @returns {ApplicationLegalFAQ} */
1451
1420
  static ApplicationLegalFAQ() {
1452
1421
  return Joi.object({
1453
- answer: Joi.string().allow(""),
1454
1422
  question: Joi.string().allow(""),
1423
+ answer: Joi.string().allow(""),
1455
1424
  });
1456
1425
  }
1457
1426
 
1458
- /** @returns {Asset} */
1459
- static Asset() {
1427
+ /** @returns {PathMappingSchema} */
1428
+ static PathMappingSchema() {
1460
1429
  return Joi.object({
1461
- aspect_ratio: Joi.string().allow(""),
1462
- id: Joi.string().allow(""),
1463
- secure_url: Joi.string().allow(""),
1430
+ application: Joi.string().allow(""),
1431
+ _id: Joi.string().allow(""),
1432
+ redirect_from: Joi.string().allow(""),
1433
+ redirect_to: Joi.string().allow(""),
1434
+ updated_at: Joi.string().allow(""),
1435
+ created_at: Joi.string().allow(""),
1436
+ __source: ContentPlatformModel.PathSourceSchema(),
1464
1437
  });
1465
1438
  }
1466
1439
 
1467
- /** @returns {Author} */
1468
- static Author() {
1440
+ /** @returns {PathSourceSchema} */
1441
+ static PathSourceSchema() {
1469
1442
  return Joi.object({
1470
- designation: Joi.string().allow(""),
1443
+ type: Joi.string().allow(""),
1471
1444
  id: Joi.string().allow(""),
1472
- name: Joi.string().allow(""),
1473
1445
  });
1474
1446
  }
1475
1447
 
1476
- /** @returns {BlogGetResponse} */
1477
- static BlogGetResponse() {
1448
+ /** @returns {SeoComponent} */
1449
+ static SeoComponent() {
1478
1450
  return Joi.object({
1479
- items: Joi.array().items(ContentPlatformModel.BlogSchema()),
1480
- page: ContentPlatformModel.Page(),
1451
+ seo: ContentPlatformModel.SeoSchema(),
1481
1452
  });
1482
1453
  }
1483
1454
 
1484
- /** @returns {BlogRequest} */
1485
- static BlogRequest() {
1455
+ /** @returns {SeoSchema} */
1456
+ static SeoSchema() {
1486
1457
  return Joi.object({
1487
- _custom_json: Joi.any(),
1488
- _schedule: ContentPlatformModel.CronSchedule(),
1489
- application: Joi.string().allow(""),
1490
- author: ContentPlatformModel.Author(),
1491
- content: Joi.array().items(ContentPlatformModel.ResourceContent()),
1492
- feature_image: ContentPlatformModel.Asset(),
1493
- published: Joi.boolean(),
1494
- reading_time: Joi.string().allow(""),
1495
- seo: ContentPlatformModel.SEO(),
1496
- slug: Joi.string().allow(""),
1497
- tags: Joi.array().items(Joi.string().allow("")),
1498
- title: Joi.string().allow(""),
1458
+ app: Joi.string().allow(""),
1459
+ _id: Joi.string().allow(""),
1460
+ robots_txt: Joi.string().allow(""),
1461
+ sitemap_enabled: Joi.boolean(),
1462
+ additional_sitemap: Joi.string().allow(""),
1463
+ cannonical_enabled: Joi.boolean(),
1464
+ custom_meta_tags: Joi.array().items(ContentPlatformModel.CustomMetaTag()),
1465
+ details: ContentPlatformModel.Detail(),
1466
+ created_at: Joi.string().allow(""),
1467
+ updated_at: Joi.string().allow(""),
1499
1468
  });
1500
1469
  }
1501
1470
 
1502
- /** @returns {BlogSchema} */
1503
- static BlogSchema() {
1471
+ /** @returns {CustomMetaTag} */
1472
+ static CustomMetaTag() {
1504
1473
  return Joi.object({
1505
- _custom_json: Joi.any(),
1474
+ name: Joi.string().allow(""),
1475
+ content: Joi.string().allow(""),
1506
1476
  _id: Joi.string().allow(""),
1507
- _schedule: ContentPlatformModel.CronSchedule(),
1508
- application: Joi.string().allow(""),
1509
- archived: Joi.boolean(),
1510
- author: ContentPlatformModel.Author(),
1511
- content: Joi.array().items(ContentPlatformModel.ResourceContent()),
1512
- date_meta: ContentPlatformModel.DateMeta(),
1513
- feature_image: ContentPlatformModel.Asset(),
1514
- published: Joi.boolean(),
1515
- reading_time: Joi.string().allow(""),
1516
- seo: ContentPlatformModel.SEO(),
1517
- slug: Joi.string().allow(""),
1518
- tags: Joi.array().items(Joi.string().allow("")),
1477
+ });
1478
+ }
1479
+
1480
+ /** @returns {Detail} */
1481
+ static Detail() {
1482
+ return Joi.object({
1519
1483
  title: Joi.string().allow(""),
1484
+ description: Joi.string().allow(""),
1485
+ image_url: Joi.string().allow(""),
1520
1486
  });
1521
1487
  }
1522
1488
 
1523
- /** @returns {BooleanType} */
1524
- static BooleanType() {
1489
+ /** @returns {SeoSchemaComponent} */
1490
+ static SeoSchemaComponent() {
1525
1491
  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(""),
1492
+ items: Joi.array().items(ContentPlatformModel.SEOSchemaMarkupTemplate()),
1493
+ page: ContentPlatformModel.Page(),
1533
1494
  });
1534
1495
  }
1535
1496
 
1536
- /** @returns {CategoryRequestSchema} */
1537
- static CategoryRequestSchema() {
1497
+ /** @returns {SEOSchemaMarkupTemplate} */
1498
+ static SEOSchemaMarkupTemplate() {
1538
1499
  return Joi.object({
1539
- slug: Joi.string().allow(""),
1500
+ id: Joi.string().allow(""),
1540
1501
  title: Joi.string().allow(""),
1502
+ page_type: Joi.string().allow(""),
1503
+ schema: Joi.string().allow(""),
1504
+ description: Joi.string().allow(""),
1505
+ active: Joi.boolean(),
1506
+ created_at: Joi.string().allow(""),
1507
+ updated_at: Joi.string().allow(""),
1508
+ application: Joi.string().allow(""),
1509
+ target_json: Joi.object().pattern(/\S/, Joi.any()),
1541
1510
  });
1542
1511
  }
1543
1512
 
1544
- /** @returns {CategorySchema} */
1545
- static CategorySchema() {
1513
+ /** @returns {SEOSchemaMarkupTemplateRequestBody} */
1514
+ static SEOSchemaMarkupTemplateRequestBody() {
1546
1515
  return Joi.object({
1547
- _custom_json: Joi.any(),
1548
- _id: Joi.string().allow(""),
1549
- application: Joi.string().allow(""),
1550
- children: Joi.array().items(Joi.string().allow("")),
1551
- description: Joi.string().allow(""),
1552
- icon_url: Joi.string().allow(""),
1553
- index: Joi.number(),
1554
- slug: Joi.string().allow(""),
1555
1516
  title: Joi.string().allow(""),
1517
+ page_type: Joi.string().allow(""),
1518
+ schema: Joi.string().allow(""),
1519
+ description: Joi.string().allow(""),
1520
+ target_json: Joi.object().pattern(/\S/, Joi.any()),
1521
+ active: Joi.boolean(),
1522
+ created_at: Joi.string().allow(""),
1523
+ updated_at: Joi.string().allow(""),
1556
1524
  });
1557
1525
  }
1558
1526
 
1559
- /** @returns {ChildrenSchema} */
1560
- static ChildrenSchema() {
1527
+ /** @returns {AnnouncementPageSchema} */
1528
+ static AnnouncementPageSchema() {
1561
1529
  return Joi.object({
1562
- _id: Joi.string().allow(""),
1563
- answer: Joi.string().allow(""),
1564
- application: Joi.string().allow(""),
1565
- question: Joi.string().allow(""),
1566
- slug: Joi.string().allow(""),
1530
+ page_slug: Joi.string().allow(""),
1531
+ type: Joi.string().allow(""),
1567
1532
  });
1568
1533
  }
1569
1534
 
1570
- /** @returns {CommonError} */
1571
- static CommonError() {
1535
+ /** @returns {EditorMeta} */
1536
+ static EditorMeta() {
1572
1537
  return Joi.object({
1573
- message: Joi.string().allow(""),
1538
+ foreground_color: Joi.string().allow(""),
1539
+ background_color: Joi.string().allow(""),
1540
+ content_type: Joi.string().allow(""),
1541
+ content: Joi.string().allow(""),
1574
1542
  });
1575
1543
  }
1576
1544
 
1577
- /** @returns {ConfigurationSchema} */
1578
- static ConfigurationSchema() {
1545
+ /** @returns {AnnouncementAuthorSchema} */
1546
+ static AnnouncementAuthorSchema() {
1579
1547
  return Joi.object({
1580
- duration: Joi.number(),
1581
- sleep_time: Joi.number(),
1582
- slide_direction: Joi.string().allow(""),
1583
- start_on_launch: Joi.boolean(),
1548
+ created_by: Joi.string().allow(""),
1549
+ modified_by: Joi.string().allow(""),
1584
1550
  });
1585
1551
  }
1586
1552
 
1587
- /** @returns {ContactSchema} */
1588
- static ContactSchema() {
1553
+ /** @returns {AdminAnnouncementSchema} */
1554
+ static AdminAnnouncementSchema() {
1589
1555
  return Joi.object({
1590
- email: ContentPlatformModel.EmailSchema(),
1591
- phone: ContentPlatformModel.PhoneSchema(),
1556
+ _id: Joi.string().allow(""),
1557
+ platforms: Joi.array().items(Joi.string().allow("")),
1558
+ title: Joi.string().allow(""),
1559
+ announcement: Joi.string().allow(""),
1560
+ pages: Joi.array().items(ContentPlatformModel.AnnouncementPageSchema()),
1561
+ editor_meta: ContentPlatformModel.EditorMeta(),
1562
+ author: ContentPlatformModel.AnnouncementAuthorSchema(),
1563
+ created_at: Joi.string().allow(""),
1564
+ app: Joi.string().allow(""),
1565
+ modified_at: Joi.string().allow(""),
1566
+ _schedule: ContentPlatformModel.ScheduleSchema(),
1592
1567
  });
1593
1568
  }
1594
1569
 
1595
- /** @returns {ContentAPIError} */
1596
- static ContentAPIError() {
1570
+ /** @returns {DefaultSchemaComponent} */
1571
+ static DefaultSchemaComponent() {
1597
1572
  return Joi.object({
1598
- code: Joi.string().allow(""),
1599
- exception: Joi.string().allow(""),
1600
- info: Joi.string().allow(""),
1601
- message: Joi.string().allow(""),
1602
- meta: Joi.any(),
1603
- request_id: Joi.string().allow(""),
1604
- stack_trace: Joi.string().allow(""),
1605
- status: Joi.number(),
1573
+ items: Joi.array().items(
1574
+ ContentPlatformModel.DefaultSEOSchemaMarkupTemplate()
1575
+ ),
1606
1576
  });
1607
1577
  }
1608
1578
 
1609
- /** @returns {CreateAnnouncementSchema} */
1610
- static CreateAnnouncementSchema() {
1579
+ /** @returns {DefaultSEOSchemaMarkupTemplate} */
1580
+ static DefaultSEOSchemaMarkupTemplate() {
1611
1581
  return Joi.object({
1612
- data: ContentPlatformModel.AdminAnnouncementSchema(),
1613
- message: Joi.string().allow(""),
1582
+ page_type: Joi.string().allow(""),
1583
+ schema: Joi.string().allow(""),
1584
+ target_json: Joi.object().pattern(/\S/, Joi.any()),
1614
1585
  });
1615
1586
  }
1616
1587
 
1617
- /** @returns {CreatedBySchema} */
1618
- static CreatedBySchema() {
1588
+ /** @returns {ScheduleSchema} */
1589
+ static ScheduleSchema() {
1619
1590
  return Joi.object({
1620
- id: Joi.string().allow(""),
1591
+ cron: Joi.string().allow(""),
1592
+ start: Joi.string().allow(""),
1593
+ end: Joi.string().allow(""),
1594
+ duration: Joi.number(),
1595
+ next_schedule: Joi.array().items(ContentPlatformModel.NextSchedule()),
1621
1596
  });
1622
1597
  }
1623
1598
 
1624
- /** @returns {CreateFaqCategoryRequestSchema} */
1625
- static CreateFaqCategoryRequestSchema() {
1599
+ /** @returns {NextSchedule} */
1600
+ static NextSchedule() {
1626
1601
  return Joi.object({
1627
- category: ContentPlatformModel.CategoryRequestSchema(),
1602
+ start: Joi.string().allow(""),
1603
+ end: Joi.string().allow(""),
1628
1604
  });
1629
1605
  }
1630
1606
 
1631
- /** @returns {CreateFaqCategorySchema} */
1632
- static CreateFaqCategorySchema() {
1607
+ /** @returns {BlogGetResponse} */
1608
+ static BlogGetResponse() {
1633
1609
  return Joi.object({
1634
- category: ContentPlatformModel.CategorySchema(),
1610
+ items: Joi.array().items(ContentPlatformModel.BlogSchema()),
1611
+ page: ContentPlatformModel.Page(),
1635
1612
  });
1636
1613
  }
1637
1614
 
1638
- /** @returns {CreateFaqResponseSchema} */
1639
- static CreateFaqResponseSchema() {
1615
+ /** @returns {ResourceContent} */
1616
+ static ResourceContent() {
1640
1617
  return Joi.object({
1641
- faq: ContentPlatformModel.FaqSchema(),
1618
+ type: Joi.string().allow(""),
1619
+ value: Joi.string().allow(""),
1642
1620
  });
1643
1621
  }
1644
1622
 
1645
- /** @returns {CreateFaqSchema} */
1646
- static CreateFaqSchema() {
1623
+ /** @returns {Asset} */
1624
+ static Asset() {
1647
1625
  return Joi.object({
1648
- faq: ContentPlatformModel.FAQ(),
1626
+ aspect_ratio: Joi.string().allow(""),
1627
+ id: Joi.string().allow(""),
1628
+ secure_url: Joi.string().allow(""),
1649
1629
  });
1650
1630
  }
1651
1631
 
1652
- /** @returns {CreateTagRequestSchema} */
1653
- static CreateTagRequestSchema() {
1632
+ /** @returns {Author} */
1633
+ static Author() {
1654
1634
  return Joi.object({
1655
- tags: Joi.array().items(ContentPlatformModel.CreateTagSchema()),
1635
+ designation: Joi.string().allow(""),
1636
+ id: Joi.string().allow(""),
1637
+ name: Joi.string().allow(""),
1656
1638
  });
1657
1639
  }
1658
1640
 
1659
- /** @returns {CreateTagSchema} */
1660
- static CreateTagSchema() {
1641
+ /** @returns {BlogSchema} */
1642
+ static BlogSchema() {
1661
1643
  return Joi.object({
1662
1644
  _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(""),
1645
+ _custom_json: Joi.any(),
1646
+ application: Joi.string().allow(""),
1647
+ archived: Joi.boolean(),
1648
+ author: ContentPlatformModel.Author(),
1649
+ content: Joi.array().items(ContentPlatformModel.ResourceContent()),
1650
+ feature_image: ContentPlatformModel.Asset(),
1651
+ published: Joi.boolean(),
1652
+ reading_time: Joi.string().allow(""),
1653
+ slug: Joi.string().allow(""),
1654
+ tags: Joi.array().items(Joi.string().allow("")),
1655
+ seo: ContentPlatformModel.SEO(),
1656
+ _schedule: ContentPlatformModel.CronSchedule(),
1657
+ title: Joi.string().allow(""),
1658
+ date_meta: ContentPlatformModel.DateMeta(),
1671
1659
  });
1672
1660
  }
1673
1661
 
1674
- /** @returns {CronSchedule} */
1675
- static CronSchedule() {
1662
+ /** @returns {SEO} */
1663
+ static SEO() {
1676
1664
  return Joi.object({
1677
- cron: Joi.string().allow(""),
1678
- duration: Joi.number(),
1679
- end: Joi.string().allow(""),
1680
- start: Joi.string().allow(""),
1665
+ description: Joi.string().allow(""),
1666
+ image: ContentPlatformModel.SEOImage(),
1667
+ title: Joi.string().allow(""),
1668
+ meta_tags: Joi.array().items(ContentPlatformModel.SEOMetaItem()),
1669
+ sitemap: ContentPlatformModel.SEOSitemap(),
1670
+ breadcrumb: Joi.array().items(ContentPlatformModel.SEObreadcrumb()),
1671
+ canonical_url: Joi.string().allow(""),
1681
1672
  });
1682
1673
  }
1683
1674
 
1684
- /** @returns {CustomDataDeleteSchema} */
1685
- static CustomDataDeleteSchema() {
1675
+ /** @returns {SEOImage} */
1676
+ static SEOImage() {
1686
1677
  return Joi.object({
1687
- message: Joi.string().allow(""),
1688
- success: Joi.boolean(),
1678
+ url: Joi.string().allow(""),
1689
1679
  });
1690
1680
  }
1691
1681
 
1692
- /** @returns {CustomField} */
1693
- static CustomField() {
1682
+ /** @returns {SEOMetaItem} */
1683
+ static SEOMetaItem() {
1694
1684
  return Joi.object({
1695
- definition_id: Joi.string().allow(""),
1696
- value: Joi.array().items(Joi.any()),
1685
+ title: Joi.string().allow(""),
1686
+ items: Joi.array().items(ContentPlatformModel.SEOMetaItems()),
1697
1687
  });
1698
1688
  }
1699
1689
 
1700
- /** @returns {CustomFieldDefinitionDetailResSchema} */
1701
- static CustomFieldDefinitionDetailResSchema() {
1690
+ /** @returns {SEOMetaItems} */
1691
+ static SEOMetaItems() {
1702
1692
  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
1693
  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()),
1694
+ value: Joi.string().allow(""),
1721
1695
  });
1722
1696
  }
1723
1697
 
1724
- /** @returns {CustomFieldDefinitionRequestSchema} */
1725
- static CustomFieldDefinitionRequestSchema() {
1698
+ /** @returns {SEOSitemap} */
1699
+ static SEOSitemap() {
1726
1700
  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()),
1701
+ priority: Joi.number(),
1702
+ frequency: Joi.string().allow(""),
1735
1703
  });
1736
1704
  }
1737
1705
 
1738
- /** @returns {CustomFieldDefinitionsSchema} */
1739
- static CustomFieldDefinitionsSchema() {
1706
+ /** @returns {SEObreadcrumb} */
1707
+ static SEObreadcrumb() {
1740
1708
  return Joi.object({
1741
- items: Joi.array().items(ContentPlatformModel.FieldDefinitionSchema()),
1742
- page: ContentPlatformModel.Page(),
1709
+ url: Joi.string().allow(""),
1710
+ action: ContentPlatformModel.Action(),
1743
1711
  });
1744
1712
  }
1745
1713
 
1746
- /** @returns {CustomFieldRequestSchema} */
1747
- static CustomFieldRequestSchema() {
1714
+ /** @returns {DateMeta} */
1715
+ static DateMeta() {
1748
1716
  return Joi.object({
1749
- fields: Joi.array().items(ContentPlatformModel.CustomField()),
1717
+ created_on: Joi.string().allow(""),
1718
+ modified_on: Joi.string().allow(""),
1750
1719
  });
1751
1720
  }
1752
1721
 
1753
- /** @returns {CustomFieldSchema} */
1754
- static CustomFieldSchema() {
1722
+ /** @returns {BlogRequest} */
1723
+ static BlogRequest() {
1755
1724
  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()),
1725
+ application: Joi.string().allow(""),
1726
+ _custom_json: Joi.any(),
1727
+ author: ContentPlatformModel.Author(),
1728
+ content: Joi.array().items(ContentPlatformModel.ResourceContent()),
1729
+ feature_image: ContentPlatformModel.Asset(),
1730
+ published: Joi.boolean(),
1731
+ reading_time: Joi.string().allow(""),
1732
+ slug: Joi.string().allow(""),
1733
+ tags: Joi.array().items(Joi.string().allow("")),
1734
+ title: Joi.string().allow(""),
1735
+ seo: ContentPlatformModel.SEO(),
1736
+ _schedule: ContentPlatformModel.CronSchedule(),
1773
1737
  });
1774
1738
  }
1775
1739
 
1776
- /** @returns {CustomFieldsResponseByResourceIdSchema} */
1777
- static CustomFieldsResponseByResourceIdSchema() {
1740
+ /** @returns {GetAnnouncementListSchema} */
1741
+ static GetAnnouncementListSchema() {
1778
1742
  return Joi.object({
1779
- items: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
1743
+ items: Joi.array().items(ContentPlatformModel.AdminAnnouncementSchema()),
1744
+ page: ContentPlatformModel.Page(),
1780
1745
  });
1781
1746
  }
1782
1747
 
1783
- /** @returns {CustomFieldsResponseSchema} */
1784
- static CustomFieldsResponseSchema() {
1748
+ /** @returns {CreateAnnouncementSchema} */
1749
+ static CreateAnnouncementSchema() {
1785
1750
  return Joi.object({
1786
- items: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
1787
- page: ContentPlatformModel.Page(),
1751
+ message: Joi.string().allow(""),
1752
+ data: ContentPlatformModel.AdminAnnouncementSchema(),
1788
1753
  });
1789
1754
  }
1790
1755
 
1791
- /** @returns {CustomFieldTypeSchema} */
1792
- static CustomFieldTypeSchema() {
1756
+ /** @returns {DataLoaderResponseSchema} */
1757
+ static DataLoaderResponseSchema() {
1793
1758
  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(),
1759
+ application: Joi.string().allow(""),
1760
+ company: Joi.string().allow(""),
1761
+ _id: Joi.string().allow(""),
1762
+ name: Joi.string().allow(""),
1763
+ service: Joi.string().allow(""),
1764
+ operation_id: Joi.string().allow(""),
1765
+ type: Joi.string().allow(""),
1766
+ url: Joi.string().allow(""),
1767
+ content: Joi.string().allow(""),
1768
+ __source: ContentPlatformModel.DataLoaderSourceSchema(),
1807
1769
  });
1808
1770
  }
1809
1771
 
1810
- /** @returns {CustomFieldValue} */
1811
- static CustomFieldValue() {
1772
+ /** @returns {DataLoaderResetResponseSchema} */
1773
+ static DataLoaderResetResponseSchema() {
1812
1774
  return Joi.object({
1813
- value: Joi.any(),
1775
+ reset: Joi.boolean(),
1814
1776
  });
1815
1777
  }
1816
1778
 
1817
- /** @returns {CustomMetaTag} */
1818
- static CustomMetaTag() {
1779
+ /** @returns {LocaleLanguage} */
1780
+ static LocaleLanguage() {
1819
1781
  return Joi.object({
1820
- _id: Joi.string().allow(""),
1821
- content: Joi.string().allow(""),
1822
- name: Joi.string().allow(""),
1782
+ hi: ContentPlatformModel.Language(),
1783
+ ar: ContentPlatformModel.Language(),
1784
+ en_us: ContentPlatformModel.Language(),
1823
1785
  });
1824
1786
  }
1825
1787
 
1826
- /** @returns {CustomObjectBulkEntry} */
1827
- static CustomObjectBulkEntry() {
1788
+ /** @returns {Language} */
1789
+ static Language() {
1828
1790
  return Joi.object({
1829
- items: Joi.array().items(ContentPlatformModel.CustomObjectJobSchema()),
1830
- page: ContentPlatformModel.Page(),
1791
+ display: Joi.string().allow(""),
1831
1792
  });
1832
1793
  }
1833
1794
 
1834
- /** @returns {CustomObjectBulkEntryInitiateDownload} */
1835
- static CustomObjectBulkEntryInitiateDownload() {
1795
+ /** @returns {Action} */
1796
+ static Action() {
1836
1797
  return Joi.object({
1837
- message: Joi.string().allow(""),
1838
- task_id: Joi.string().allow(""),
1798
+ page: ContentPlatformModel.ActionPage(),
1799
+ popup: ContentPlatformModel.ActionPage(),
1800
+ type: Joi.string().allow(""),
1839
1801
  });
1840
1802
  }
1841
1803
 
1842
- /** @returns {CustomObjectBulkSchema} */
1843
- static CustomObjectBulkSchema() {
1804
+ /** @returns {ActionPage} */
1805
+ static ActionPage() {
1844
1806
  return Joi.object({
1845
- total_records: Joi.number(),
1807
+ params: Joi.object().pattern(
1808
+ /\S/,
1809
+ Joi.array().items(Joi.string().allow(""))
1810
+ ),
1811
+ query: Joi.object().pattern(
1812
+ /\S/,
1813
+ Joi.array().items(Joi.string().allow(""))
1814
+ ),
1846
1815
  url: Joi.string().allow(""),
1816
+ type: ContentPlatformModel.PageType().required(),
1847
1817
  });
1848
1818
  }
1849
1819
 
1850
- /** @returns {CustomObjectByIdSchema} */
1851
- static CustomObjectByIdSchema() {
1820
+ /** @returns {NavigationReference} */
1821
+ static NavigationReference() {
1852
1822
  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(""),
1823
+ acl: Joi.array().items(Joi.string().allow("")),
1824
+ tags: Joi.array().items(Joi.string().allow("")),
1825
+ _locale_language: ContentPlatformModel.LocaleLanguage(),
1826
+ image: Joi.string().allow(""),
1827
+ type: Joi.string().allow(""),
1828
+ action: ContentPlatformModel.Action(),
1829
+ active: Joi.boolean(),
1830
+ display: Joi.string().allow(""),
1831
+ sort_order: Joi.number(),
1832
+ schedule: ContentPlatformModel.CronBasedScheduleSchema(),
1833
+ sub_navigation: Joi.array().items(Joi.link("#NavigationReference")),
1834
+ }).id("NavigationReference");
1835
+ }
1836
+
1837
+ /** @returns {CronBasedScheduleSchema} */
1838
+ static CronBasedScheduleSchema() {
1839
+ return Joi.object({
1840
+ enabled: Joi.boolean(),
1841
+ cron: Joi.string().allow(""),
1842
+ start: Joi.string().allow(""),
1843
+ end: Joi.string().allow(""),
1859
1844
  });
1860
1845
  }
1861
1846
 
1862
- /** @returns {CustomObjectCustomFieldDefinitionResSchema} */
1863
- static CustomObjectCustomFieldDefinitionResSchema() {
1847
+ /** @returns {ConfigurationSchema} */
1848
+ static ConfigurationSchema() {
1864
1849
  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()),
1850
+ sleep_time: Joi.number(),
1851
+ start_on_launch: Joi.boolean(),
1852
+ duration: Joi.number(),
1853
+ slide_direction: Joi.string().allow(""),
1882
1854
  });
1883
1855
  }
1884
1856
 
1885
- /** @returns {CustomObjectCustomFieldDefinitions} */
1886
- static CustomObjectCustomFieldDefinitions() {
1857
+ /** @returns {SlideshowMedia} */
1858
+ static SlideshowMedia() {
1887
1859
  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
1860
  type: Joi.string().allow(""),
1896
- validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
1861
+ url: Joi.string().allow(""),
1862
+ bg_color: Joi.string().allow(""),
1863
+ duration: Joi.number(),
1864
+ auto_decide_duration: Joi.boolean(),
1865
+ action: ContentPlatformModel.Action(),
1897
1866
  });
1898
1867
  }
1899
1868
 
1900
- /** @returns {CustomObjectDefinitionDeleteResponseSchema} */
1901
- static CustomObjectDefinitionDeleteResponseSchema() {
1869
+ /** @returns {UpdateHandpickedSchema} */
1870
+ static UpdateHandpickedSchema() {
1902
1871
  return Joi.object({
1903
- message: Joi.string().allow(""),
1904
- success: Joi.boolean(),
1872
+ tag: ContentPlatformModel.HandpickedTagSchema(),
1905
1873
  });
1906
1874
  }
1907
1875
 
1908
- /** @returns {CustomObjectDefinitionRequestSchema} */
1909
- static CustomObjectDefinitionRequestSchema() {
1876
+ /** @returns {HandpickedTagSchema} */
1877
+ static HandpickedTagSchema() {
1910
1878
  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
- ),
1879
+ position: Joi.string().allow(""),
1880
+ attributes: Joi.any(),
1916
1881
  name: Joi.string().allow(""),
1882
+ url: Joi.string().allow(""),
1917
1883
  type: Joi.string().allow(""),
1884
+ sub_type: Joi.string().allow(""),
1885
+ content: Joi.string().allow(""),
1918
1886
  });
1919
1887
  }
1920
1888
 
1921
- /** @returns {CustomObjectDefinitionSchema} */
1922
- static CustomObjectDefinitionSchema() {
1889
+ /** @returns {RemoveHandpickedSchema} */
1890
+ static RemoveHandpickedSchema() {
1891
+ return Joi.object({
1892
+ tags: Joi.array().items(Joi.string().allow("")),
1893
+ });
1894
+ }
1895
+
1896
+ /** @returns {CreateTagSchema} */
1897
+ static CreateTagSchema() {
1923
1898
  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
1899
  name: Joi.string().allow(""),
1900
+ sub_type: Joi.string().allow(""),
1901
+ _id: Joi.string().allow(""),
1933
1902
  type: Joi.string().allow(""),
1934
- updated_by: Joi.string().allow(""),
1903
+ url: Joi.string().allow(""),
1904
+ position: Joi.string().allow(""),
1905
+ attributes: Joi.any(),
1906
+ pages: Joi.array().items(Joi.any()),
1907
+ content: Joi.string().allow(""),
1935
1908
  });
1936
1909
  }
1937
1910
 
1938
- /** @returns {CustomObjectDefinitionsSchema} */
1939
- static CustomObjectDefinitionsSchema() {
1911
+ /** @returns {CreateTagRequestSchema} */
1912
+ static CreateTagRequestSchema() {
1940
1913
  return Joi.object({
1941
- items: Joi.array().items(ContentPlatformModel.CustomObjectEntry()),
1942
- page: ContentPlatformModel.Page(),
1914
+ tags: Joi.array().items(ContentPlatformModel.CreateTagSchema()),
1943
1915
  });
1944
1916
  }
1945
1917
 
1946
- /** @returns {CustomObjectDefinitionUpdateRequestSchema} */
1947
- static CustomObjectDefinitionUpdateRequestSchema() {
1918
+ /** @returns {DataLoaderSchema} */
1919
+ static DataLoaderSchema() {
1948
1920
  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
1921
  name: Joi.string().allow(""),
1922
+ service: Joi.string().allow(""),
1923
+ operation_id: Joi.string().allow(""),
1955
1924
  type: Joi.string().allow(""),
1925
+ url: Joi.string().allow(""),
1926
+ content: Joi.string().allow(""),
1927
+ __source: ContentPlatformModel.DataLoaderSourceSchema(),
1928
+ _id: Joi.string().allow(""),
1956
1929
  });
1957
1930
  }
1958
1931
 
1959
- /** @returns {CustomObjectEntry} */
1960
- static CustomObjectEntry() {
1932
+ /** @returns {DataLoaderSourceSchema} */
1933
+ static DataLoaderSourceSchema() {
1961
1934
  return Joi.object({
1962
- _id: Joi.string().allow(""),
1963
- entries_count: Joi.number(),
1964
- fields_count: Joi.number(),
1965
- name: Joi.string().allow(""),
1966
1935
  type: Joi.string().allow(""),
1967
- updated_at: Joi.string().allow(""),
1936
+ id: Joi.string().allow(""),
1968
1937
  });
1969
1938
  }
1970
1939
 
1971
- /** @returns {CustomObjectEntryBulkUploadResponse} */
1972
- static CustomObjectEntryBulkUploadResponse() {
1940
+ /** @returns {DataLoadersSchema} */
1941
+ static DataLoadersSchema() {
1973
1942
  return Joi.object({
1974
- total_records: Joi.number(),
1975
- url: Joi.string().allow(""),
1943
+ items: Joi.array().items(ContentPlatformModel.DataLoaderSchema()),
1976
1944
  });
1977
1945
  }
1978
1946
 
1979
- /** @returns {CustomObjectEntryFieldSchema} */
1980
- static CustomObjectEntryFieldSchema() {
1947
+ /** @returns {TagDeleteSuccessResponse} */
1948
+ static TagDeleteSuccessResponse() {
1981
1949
  return Joi.object({
1982
- definition_id: Joi.string().allow(""),
1983
- value: Joi.array().items(Joi.any()),
1950
+ success: Joi.boolean(),
1984
1951
  });
1985
1952
  }
1986
1953
 
1987
- /** @returns {CustomObjectFieldSchema} */
1988
- static CustomObjectFieldSchema() {
1954
+ /** @returns {ContentAPIError} */
1955
+ static ContentAPIError() {
1989
1956
  return Joi.object({
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()),
1957
+ message: Joi.string().allow(""),
1958
+ status: Joi.number(),
1959
+ code: Joi.string().allow(""),
1960
+ exception: Joi.string().allow(""),
1961
+ info: Joi.string().allow(""),
1962
+ request_id: Joi.string().allow(""),
1963
+ stack_trace: Joi.string().allow(""),
1964
+ meta: Joi.any(),
1995
1965
  });
1996
1966
  }
1997
1967
 
1998
- /** @returns {CustomObjectJobSchema} */
1999
- static CustomObjectJobSchema() {
1968
+ /** @returns {CommonError} */
1969
+ static CommonError() {
2000
1970
  return Joi.object({
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(""),
1971
+ message: Joi.string().allow(""),
2021
1972
  });
2022
1973
  }
2023
1974
 
2024
- /** @returns {CustomObjectListItemDefinationSchema} */
2025
- static CustomObjectListItemDefinationSchema() {
1975
+ /** @returns {CategorySchema} */
1976
+ static CategorySchema() {
2026
1977
  return Joi.object({
1978
+ index: Joi.number(),
1979
+ title: Joi.string().allow(""),
1980
+ description: Joi.string().allow(""),
1981
+ children: Joi.array().items(Joi.string().allow("")),
2027
1982
  _id: Joi.string().allow(""),
2028
- name: Joi.string().allow(""),
2029
- type: Joi.string().allow(""),
1983
+ slug: Joi.string().allow(""),
1984
+ application: Joi.string().allow(""),
1985
+ icon_url: Joi.string().allow(""),
1986
+ _custom_json: Joi.any(),
2030
1987
  });
2031
1988
  }
2032
1989
 
2033
- /** @returns {CustomObjectListItemSchema} */
2034
- static CustomObjectListItemSchema() {
1990
+ /** @returns {ChildrenSchema} */
1991
+ static ChildrenSchema() {
2035
1992
  return Joi.object({
1993
+ question: Joi.string().allow(""),
1994
+ answer: Joi.string().allow(""),
1995
+ slug: Joi.string().allow(""),
1996
+ application: Joi.string().allow(""),
2036
1997
  _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(""),
2043
1998
  });
2044
1999
  }
2045
2000
 
2046
- /** @returns {CustomObjectMetaSchema} */
2047
- static CustomObjectMetaSchema() {
2001
+ /** @returns {CategoryRequestSchema} */
2002
+ static CategoryRequestSchema() {
2048
2003
  return Joi.object({
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(),
2004
+ slug: Joi.string().allow(""),
2005
+ title: Joi.string().allow(""),
2053
2006
  });
2054
2007
  }
2055
2008
 
2056
- /** @returns {CustomObjectRequestSchema} */
2057
- static CustomObjectRequestSchema() {
2009
+ /** @returns {FAQCategorySchema} */
2010
+ static FAQCategorySchema() {
2058
2011
  return Joi.object({
2059
- definition_id: Joi.string().allow(""),
2060
- fields: Joi.array().items(
2061
- ContentPlatformModel.CustomObjectEntryFieldSchema()
2062
- ),
2063
- status: Joi.string().allow(""),
2012
+ index: Joi.number(),
2013
+ title: Joi.string().allow(""),
2014
+ description: Joi.string().allow(""),
2015
+ children: Joi.array().items(ContentPlatformModel.ChildrenSchema()),
2016
+ _id: Joi.string().allow(""),
2017
+ slug: Joi.string().allow(""),
2018
+ application: Joi.string().allow(""),
2019
+ icon_url: Joi.string().allow(""),
2020
+ _custom_json: Joi.any(),
2064
2021
  });
2065
2022
  }
2066
2023
 
2067
- /** @returns {CustomObjectSchema} */
2068
- static CustomObjectSchema() {
2024
+ /** @returns {FaqSchema} */
2025
+ static FaqSchema() {
2069
2026
  return Joi.object({
2027
+ slug: Joi.string().allow(""),
2028
+ application: Joi.string().allow(""),
2070
2029
  _id: 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(""),
2079
- type: Joi.string().allow(""),
2080
- updated_by: Joi.string().allow(""),
2030
+ question: Joi.string().allow(""),
2031
+ answer: Joi.string().allow(""),
2032
+ tags: Joi.array().items(Joi.string().allow("")),
2081
2033
  });
2082
2034
  }
2083
2035
 
2084
- /** @returns {CustomObjectsSchema} */
2085
- static CustomObjectsSchema() {
2036
+ /** @returns {FAQ} */
2037
+ static FAQ() {
2086
2038
  return Joi.object({
2087
- items: Joi.array().items(
2088
- ContentPlatformModel.CustomObjectListItemSchema()
2089
- ),
2090
- page: ContentPlatformModel.Page(),
2039
+ slug: Joi.string().allow(""),
2040
+ question: Joi.string().allow(""),
2041
+ answer: Joi.string().allow(""),
2091
2042
  });
2092
2043
  }
2093
2044
 
2094
- /** @returns {DataLoaderResetResponseSchema} */
2095
- static DataLoaderResetResponseSchema() {
2045
+ /** @returns {CreateFaqResponseSchema} */
2046
+ static CreateFaqResponseSchema() {
2096
2047
  return Joi.object({
2097
- reset: Joi.boolean(),
2048
+ faq: ContentPlatformModel.FaqSchema(),
2098
2049
  });
2099
2050
  }
2100
2051
 
2101
- /** @returns {DataLoaderResponseSchema} */
2102
- static DataLoaderResponseSchema() {
2052
+ /** @returns {CreateFaqSchema} */
2053
+ static CreateFaqSchema() {
2103
2054
  return Joi.object({
2104
- __source: ContentPlatformModel.DataLoaderSourceSchema(),
2105
- _id: Joi.string().allow(""),
2106
- application: Joi.string().allow(""),
2107
- company: Joi.string().allow(""),
2108
- content: Joi.string().allow(""),
2109
- name: Joi.string().allow(""),
2110
- operation_id: Joi.string().allow(""),
2111
- service: Joi.string().allow(""),
2112
- type: Joi.string().allow(""),
2113
- url: Joi.string().allow(""),
2055
+ faq: ContentPlatformModel.FAQ(),
2114
2056
  });
2115
2057
  }
2116
2058
 
2117
- /** @returns {DataLoaderSchema} */
2118
- static DataLoaderSchema() {
2059
+ /** @returns {GetFaqSchema} */
2060
+ static GetFaqSchema() {
2119
2061
  return Joi.object({
2120
- __source: ContentPlatformModel.DataLoaderSourceSchema(),
2121
- _id: Joi.string().allow(""),
2122
- content: Joi.string().allow(""),
2123
- name: Joi.string().allow(""),
2124
- operation_id: Joi.string().allow(""),
2125
- service: Joi.string().allow(""),
2126
- type: Joi.string().allow(""),
2127
- url: Joi.string().allow(""),
2062
+ faqs: Joi.array().items(ContentPlatformModel.FaqSchema()),
2128
2063
  });
2129
2064
  }
2130
2065
 
2131
- /** @returns {DataLoaderSourceSchema} */
2132
- static DataLoaderSourceSchema() {
2066
+ /** @returns {UpdateFaqCategoryRequestSchema} */
2067
+ static UpdateFaqCategoryRequestSchema() {
2133
2068
  return Joi.object({
2134
- id: Joi.string().allow(""),
2135
- type: Joi.string().allow(""),
2069
+ category: ContentPlatformModel.CategorySchema(),
2136
2070
  });
2137
2071
  }
2138
2072
 
2139
- /** @returns {DataLoadersSchema} */
2140
- static DataLoadersSchema() {
2073
+ /** @returns {CreateFaqCategoryRequestSchema} */
2074
+ static CreateFaqCategoryRequestSchema() {
2141
2075
  return Joi.object({
2142
- items: Joi.array().items(ContentPlatformModel.DataLoaderSchema()),
2076
+ category: ContentPlatformModel.CategoryRequestSchema(),
2143
2077
  });
2144
2078
  }
2145
2079
 
2146
- /** @returns {Date} */
2147
- static Date() {
2080
+ /** @returns {CreateFaqCategorySchema} */
2081
+ static CreateFaqCategorySchema() {
2148
2082
  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(""),
2083
+ category: ContentPlatformModel.CategorySchema(),
2156
2084
  });
2157
2085
  }
2158
2086
 
2159
- /** @returns {DateMeta} */
2160
- static DateMeta() {
2087
+ /** @returns {GetFaqCategoriesSchema} */
2088
+ static GetFaqCategoriesSchema() {
2161
2089
  return Joi.object({
2162
- created_on: Joi.string().allow(""),
2163
- modified_on: Joi.string().allow(""),
2090
+ categories: Joi.array().items(ContentPlatformModel.CategorySchema()),
2164
2091
  });
2165
2092
  }
2166
2093
 
2167
- /** @returns {Datetime} */
2168
- static Datetime() {
2094
+ /** @returns {GetFaqCategoryBySlugSchema} */
2095
+ static GetFaqCategoryBySlugSchema() {
2169
2096
  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(""),
2097
+ category: ContentPlatformModel.FAQCategorySchema(),
2098
+ });
2099
+ }
2100
+
2101
+ /** @returns {Page} */
2102
+ static Page() {
2103
+ return Joi.object({
2104
+ item_total: Joi.number(),
2105
+ next_id: Joi.string().allow(""),
2106
+ has_previous: Joi.boolean(),
2107
+ has_next: Joi.boolean(),
2108
+ current: Joi.number(),
2109
+ type: Joi.string().allow("").required(),
2110
+ size: Joi.number(),
2111
+ });
2112
+ }
2113
+
2114
+ /** @returns {LandingPageGetResponse} */
2115
+ static LandingPageGetResponse() {
2116
+ return Joi.object({
2117
+ items: Joi.array().items(ContentPlatformModel.LandingPageSchema()),
2118
+ page: ContentPlatformModel.Page(),
2119
+ });
2120
+ }
2121
+
2122
+ /** @returns {LandingPageSchema} */
2123
+ static LandingPageSchema() {
2124
+ return Joi.object({
2125
+ slug: Joi.string().allow(""),
2126
+ action: ContentPlatformModel.Action(),
2127
+ platform: Joi.array().items(Joi.string().allow("")),
2128
+ created_by: ContentPlatformModel.CreatedBySchema(),
2129
+ date_meta: ContentPlatformModel.DateMeta(),
2130
+ _id: Joi.string().allow(""),
2131
+ application: Joi.string().allow(""),
2132
+ archived: Joi.boolean(),
2133
+ _custom_json: Joi.any(),
2177
2134
  });
2178
2135
  }
2179
2136
 
@@ -2184,866 +2141,929 @@ class ContentPlatformModel {
2184
2141
  });
2185
2142
  }
2186
2143
 
2187
- /** @returns {DefaultSchemaComponent} */
2188
- static DefaultSchemaComponent() {
2144
+ /** @returns {NavigationGetResponse} */
2145
+ static NavigationGetResponse() {
2189
2146
  return Joi.object({
2190
- items: Joi.array().items(
2191
- ContentPlatformModel.DefaultSEOSchemaMarkupTemplate()
2192
- ),
2147
+ items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
2148
+ page: ContentPlatformModel.Page(),
2193
2149
  });
2194
2150
  }
2195
2151
 
2196
- /** @returns {DefaultSEOSchemaMarkupTemplate} */
2197
- static DefaultSEOSchemaMarkupTemplate() {
2152
+ /** @returns {Orientation} */
2153
+ static Orientation() {
2198
2154
  return Joi.object({
2199
- page_type: Joi.string().allow(""),
2200
- schema: Joi.string().allow(""),
2201
- target_json: Joi.object().pattern(/\S/, Joi.any()),
2155
+ portrait: Joi.array().items(Joi.string().allow("")),
2156
+ landscape: Joi.array().items(Joi.string().allow("")),
2202
2157
  });
2203
2158
  }
2204
2159
 
2205
- /** @returns {Detail} */
2206
- static Detail() {
2160
+ /** @returns {NavigationSchema} */
2161
+ static NavigationSchema() {
2207
2162
  return Joi.object({
2208
- description: Joi.string().allow(""),
2209
- image_url: Joi.string().allow(""),
2210
- title: Joi.string().allow(""),
2163
+ _id: Joi.string().allow(""),
2164
+ application: Joi.string().allow(""),
2165
+ archived: Joi.boolean(),
2166
+ name: Joi.string().allow(""),
2167
+ slug: Joi.string().allow(""),
2168
+ platform: Joi.array().items(Joi.string().allow("")),
2169
+ created_by: ContentPlatformModel.CreatedBySchema(),
2170
+ date_meta: ContentPlatformModel.DateMeta(),
2171
+ orientation: ContentPlatformModel.Orientation(),
2172
+ version: Joi.number(),
2173
+ navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
2211
2174
  });
2212
2175
  }
2213
2176
 
2214
- /** @returns {Dropdown} */
2215
- static Dropdown() {
2177
+ /** @returns {NavigationRequest} */
2178
+ static NavigationRequest() {
2216
2179
  return Joi.object({
2217
- category: Joi.string().allow(""),
2218
- list_enabled: Joi.boolean(),
2219
2180
  name: Joi.string().allow(""),
2220
- supported_validations: Joi.array().items(
2221
- ContentPlatformModel.SupportedValidationsSchema()
2222
- ),
2223
- type: Joi.string().allow(""),
2181
+ slug: Joi.string().allow(""),
2182
+ platform: Joi.array().items(Joi.string().allow("")),
2183
+ orientation: ContentPlatformModel.Orientation(),
2184
+ navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
2224
2185
  });
2225
2186
  }
2226
2187
 
2227
- /** @returns {EditorMeta} */
2228
- static EditorMeta() {
2188
+ /** @returns {PageGetResponse} */
2189
+ static PageGetResponse() {
2229
2190
  return Joi.object({
2230
- background_color: Joi.string().allow(""),
2231
- content: Joi.string().allow(""),
2232
- content_type: Joi.string().allow(""),
2233
- foreground_color: Joi.string().allow(""),
2191
+ items: Joi.array().items(ContentPlatformModel.PageSchema()),
2192
+ page: ContentPlatformModel.Page(),
2234
2193
  });
2235
2194
  }
2236
2195
 
2237
- /** @returns {EmailProperties} */
2238
- static EmailProperties() {
2196
+ /** @returns {PageSpec} */
2197
+ static PageSpec() {
2239
2198
  return Joi.object({
2240
- key: Joi.string().allow(""),
2241
- value: Joi.string().allow(""),
2199
+ specifications: Joi.array().items(ContentPlatformModel.PageSpecItem()),
2242
2200
  });
2243
2201
  }
2244
2202
 
2245
- /** @returns {EmailSchema} */
2246
- static EmailSchema() {
2203
+ /** @returns {PageSpecParam} */
2204
+ static PageSpecParam() {
2247
2205
  return Joi.object({
2248
- active: Joi.boolean(),
2249
- email: Joi.array().items(ContentPlatformModel.EmailProperties()),
2206
+ key: Joi.string().allow(""),
2207
+ required: Joi.boolean(),
2250
2208
  });
2251
2209
  }
2252
2210
 
2253
- /** @returns {FAQ} */
2254
- static FAQ() {
2211
+ /** @returns {PageSpecItem} */
2212
+ static PageSpecItem() {
2255
2213
  return Joi.object({
2256
- answer: Joi.string().allow(""),
2257
- question: Joi.string().allow(""),
2258
- slug: Joi.string().allow(""),
2214
+ page_type: Joi.string().allow(""),
2215
+ display_name: Joi.string().allow(""),
2216
+ params: Joi.array().items(ContentPlatformModel.PageSpecParam()),
2217
+ query: Joi.array().items(ContentPlatformModel.PageSpecParam()),
2259
2218
  });
2260
2219
  }
2261
2220
 
2262
- /** @returns {FAQCategorySchema} */
2263
- static FAQCategorySchema() {
2221
+ /** @returns {PageSchema} */
2222
+ static PageSchema() {
2264
2223
  return Joi.object({
2265
- _custom_json: Joi.any(),
2266
2224
  _id: Joi.string().allow(""),
2267
2225
  application: Joi.string().allow(""),
2268
- children: Joi.array().items(ContentPlatformModel.ChildrenSchema()),
2226
+ component_ids: Joi.array().items(Joi.string().allow("")),
2227
+ content: Joi.array().items(Joi.any()),
2228
+ content_path: Joi.string().allow(""),
2229
+ created_by: ContentPlatformModel.CreatedBySchema(),
2230
+ date_meta: ContentPlatformModel.DateMeta(),
2269
2231
  description: Joi.string().allow(""),
2270
- icon_url: Joi.string().allow(""),
2271
- index: Joi.number(),
2232
+ feature_image: ContentPlatformModel.Asset(),
2233
+ page_meta: Joi.array().items(Joi.any()),
2234
+ _schedule: ContentPlatformModel.ScheduleSchema(),
2235
+ _custom_json: Joi.any(),
2236
+ orientation: Joi.string().allow(""),
2237
+ platform: Joi.string().allow(""),
2238
+ published: Joi.boolean(),
2272
2239
  slug: Joi.string().allow(""),
2240
+ tags: Joi.array().items(Joi.string().allow("")),
2273
2241
  title: Joi.string().allow(""),
2242
+ type: Joi.string().allow(""),
2243
+ seo: ContentPlatformModel.SEO(),
2244
+ visibility: Joi.any(),
2245
+ archived: Joi.boolean(),
2274
2246
  });
2275
2247
  }
2276
2248
 
2277
- /** @returns {FaqSchema} */
2278
- static FaqSchema() {
2249
+ /** @returns {CreatedBySchema} */
2250
+ static CreatedBySchema() {
2279
2251
  return Joi.object({
2280
- _id: Joi.string().allow(""),
2281
- answer: Joi.string().allow(""),
2252
+ id: Joi.string().allow(""),
2253
+ });
2254
+ }
2255
+
2256
+ /** @returns {PageRequest} */
2257
+ static PageRequest() {
2258
+ return Joi.object({
2259
+ _schedule: ContentPlatformModel.CronSchedule(),
2282
2260
  application: Joi.string().allow(""),
2283
- question: Joi.string().allow(""),
2261
+ author: ContentPlatformModel.Author(),
2262
+ _custom_json: Joi.any(),
2263
+ orientation: Joi.string().allow(""),
2264
+ content: Joi.array().items(Joi.any()),
2265
+ feature_image: ContentPlatformModel.Asset(),
2266
+ published: Joi.boolean(),
2267
+ reading_time: Joi.string().allow(""),
2284
2268
  slug: Joi.string().allow(""),
2285
2269
  tags: Joi.array().items(Joi.string().allow("")),
2270
+ seo: ContentPlatformModel.SEO(),
2271
+ title: Joi.string().allow(""),
2286
2272
  });
2287
2273
  }
2288
2274
 
2289
- /** @returns {FieldDefinitionSchema} */
2290
- static FieldDefinitionSchema() {
2275
+ /** @returns {CronSchedule} */
2276
+ static CronSchedule() {
2291
2277
  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()),
2278
+ cron: Joi.string().allow(""),
2279
+ start: Joi.string().allow(""),
2280
+ end: Joi.string().allow(""),
2281
+ duration: Joi.number(),
2311
2282
  });
2312
2283
  }
2313
2284
 
2314
- /** @returns {FieldValidations} */
2315
- static FieldValidations() {
2285
+ /** @returns {PagePublishRequest} */
2286
+ static PagePublishRequest() {
2316
2287
  return Joi.object({
2317
- name: Joi.string().allow(""),
2318
- type: Joi.string().allow(""),
2319
- value: Joi.any(),
2288
+ publish: Joi.boolean(),
2320
2289
  });
2321
2290
  }
2322
2291
 
2323
- /** @returns {File} */
2324
- static File() {
2292
+ /** @returns {PageMetaSchema} */
2293
+ static PageMetaSchema() {
2325
2294
  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(""),
2295
+ system_pages: Joi.array().items(ContentPlatformModel.NavigationSchema()),
2296
+ custom_pages: Joi.array().items(ContentPlatformModel.PageSchema()),
2297
+ application_id: Joi.string().allow(""),
2333
2298
  });
2334
2299
  }
2335
2300
 
2336
- /** @returns {FloatType} */
2337
- static FloatType() {
2301
+ /** @returns {SlideshowGetResponse} */
2302
+ static SlideshowGetResponse() {
2338
2303
  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(""),
2304
+ items: Joi.array().items(ContentPlatformModel.SlideshowSchema()),
2305
+ page: ContentPlatformModel.Page(),
2346
2306
  });
2347
2307
  }
2348
2308
 
2349
- /** @returns {GeneratedSEOContent} */
2350
- static GeneratedSEOContent() {
2309
+ /** @returns {SlideshowSchema} */
2310
+ static SlideshowSchema() {
2351
2311
  return Joi.object({
2352
- description: Joi.string().allow(""),
2353
- title: Joi.string().allow(""),
2354
- });
2355
- }
2356
-
2357
- /** @returns {GenerateSEOContent} */
2358
- static GenerateSEOContent() {
2359
- return Joi.object({
2360
- existing_text: Joi.string().allow(""),
2361
- keywords: Joi.array().items(Joi.string().allow("")),
2362
- text: Joi.string().allow(""),
2363
- type: Joi.string().allow(""),
2312
+ _id: Joi.string().allow(""),
2313
+ slug: Joi.string().allow(""),
2314
+ date_meta: ContentPlatformModel.DateMeta(),
2315
+ application: Joi.string().allow(""),
2316
+ platform: Joi.string().allow(""),
2317
+ configuration: ContentPlatformModel.ConfigurationSchema(),
2318
+ media: Joi.array().items(ContentPlatformModel.SlideshowMedia()),
2319
+ active: Joi.boolean(),
2320
+ archived: Joi.boolean(),
2321
+ _custom_json: Joi.any(),
2364
2322
  });
2365
2323
  }
2366
2324
 
2367
- /** @returns {GetAnnouncementListSchema} */
2368
- static GetAnnouncementListSchema() {
2325
+ /** @returns {SlideshowRequest} */
2326
+ static SlideshowRequest() {
2369
2327
  return Joi.object({
2370
- items: Joi.array().items(ContentPlatformModel.AdminAnnouncementSchema()),
2371
- page: ContentPlatformModel.Page(),
2328
+ slug: Joi.string().allow(""),
2329
+ platform: Joi.string().allow(""),
2330
+ configuration: ContentPlatformModel.ConfigurationSchema(),
2331
+ media: ContentPlatformModel.SlideshowMedia(),
2332
+ active: Joi.boolean(),
2372
2333
  });
2373
2334
  }
2374
2335
 
2375
- /** @returns {GetFaqCategoriesSchema} */
2376
- static GetFaqCategoriesSchema() {
2336
+ /** @returns {Support} */
2337
+ static Support() {
2377
2338
  return Joi.object({
2378
- categories: Joi.array().items(ContentPlatformModel.CategorySchema()),
2339
+ created: Joi.boolean(),
2340
+ _id: Joi.string().allow(""),
2341
+ config_type: Joi.string().allow(""),
2342
+ application: Joi.string().allow(""),
2343
+ created_at: Joi.string().allow(""),
2344
+ updated_at: Joi.string().allow(""),
2345
+ contact: ContentPlatformModel.ContactSchema(),
2379
2346
  });
2380
2347
  }
2381
2348
 
2382
- /** @returns {GetFaqCategoryBySlugSchema} */
2383
- static GetFaqCategoryBySlugSchema() {
2349
+ /** @returns {PhoneProperties} */
2350
+ static PhoneProperties() {
2384
2351
  return Joi.object({
2385
- category: ContentPlatformModel.FAQCategorySchema(),
2352
+ key: Joi.string().allow(""),
2353
+ code: Joi.string().allow(""),
2354
+ number: Joi.string().allow(""),
2386
2355
  });
2387
2356
  }
2388
2357
 
2389
- /** @returns {GetFaqSchema} */
2390
- static GetFaqSchema() {
2358
+ /** @returns {PhoneSchema} */
2359
+ static PhoneSchema() {
2391
2360
  return Joi.object({
2392
- faqs: Joi.array().items(ContentPlatformModel.FaqSchema()),
2361
+ active: Joi.boolean(),
2362
+ phone: Joi.array().items(ContentPlatformModel.PhoneProperties()),
2393
2363
  });
2394
2364
  }
2395
2365
 
2396
- /** @returns {HandpickedTagSchema} */
2397
- static HandpickedTagSchema() {
2366
+ /** @returns {EmailProperties} */
2367
+ static EmailProperties() {
2398
2368
  return Joi.object({
2399
- attributes: Joi.any(),
2400
- content: Joi.string().allow(""),
2401
- name: Joi.string().allow(""),
2402
- position: Joi.string().allow(""),
2403
- sub_type: Joi.string().allow(""),
2404
- type: Joi.string().allow(""),
2405
- url: Joi.string().allow(""),
2369
+ key: Joi.string().allow(""),
2370
+ value: Joi.string().allow(""),
2406
2371
  });
2407
2372
  }
2408
2373
 
2409
- /** @returns {Integer} */
2410
- static Integer() {
2374
+ /** @returns {EmailSchema} */
2375
+ static EmailSchema() {
2411
2376
  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(""),
2377
+ active: Joi.boolean(),
2378
+ email: Joi.array().items(ContentPlatformModel.EmailProperties()),
2419
2379
  });
2420
2380
  }
2421
2381
 
2422
- /** @returns {Json} */
2423
- static Json() {
2382
+ /** @returns {ContactSchema} */
2383
+ static ContactSchema() {
2424
2384
  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(""),
2385
+ phone: ContentPlatformModel.PhoneSchema(),
2386
+ email: ContentPlatformModel.EmailSchema(),
2432
2387
  });
2433
2388
  }
2434
2389
 
2435
- /** @returns {LandingPageGetResponse} */
2436
- static LandingPageGetResponse() {
2390
+ /** @returns {TagsSchema} */
2391
+ static TagsSchema() {
2437
2392
  return Joi.object({
2438
- items: Joi.array().items(ContentPlatformModel.LandingPageSchema()),
2439
- page: ContentPlatformModel.Page(),
2393
+ application: Joi.string().allow(""),
2394
+ _id: Joi.string().allow(""),
2395
+ tags: Joi.array().items(ContentPlatformModel.TagSchema()),
2440
2396
  });
2441
2397
  }
2442
2398
 
2443
- /** @returns {LandingPageSchema} */
2444
- static LandingPageSchema() {
2399
+ /** @returns {TagSchema} */
2400
+ static TagSchema() {
2445
2401
  return Joi.object({
2446
- _custom_json: Joi.any(),
2402
+ name: Joi.string().allow(""),
2403
+ url: Joi.string().allow(""),
2404
+ type: Joi.string().allow(""),
2405
+ sub_type: Joi.string().allow(""),
2447
2406
  _id: Joi.string().allow(""),
2448
- action: ContentPlatformModel.Action(),
2449
- application: Joi.string().allow(""),
2450
- archived: Joi.boolean(),
2451
- created_by: ContentPlatformModel.CreatedBySchema(),
2452
- date_meta: ContentPlatformModel.DateMeta(),
2453
- platform: Joi.array().items(Joi.string().allow("")),
2454
- slug: Joi.string().allow(""),
2407
+ position: Joi.string().allow(""),
2408
+ attributes: Joi.any(),
2409
+ content: Joi.string().allow(""),
2410
+ pages: Joi.array().items(Joi.any()),
2411
+ __source: ContentPlatformModel.TagSourceSchema(),
2455
2412
  });
2456
2413
  }
2457
2414
 
2458
- /** @returns {Language} */
2459
- static Language() {
2415
+ /** @returns {TagSourceSchema} */
2416
+ static TagSourceSchema() {
2460
2417
  return Joi.object({
2461
- display: Joi.string().allow(""),
2418
+ type: Joi.string().allow(""),
2419
+ id: Joi.string().allow(""),
2462
2420
  });
2463
2421
  }
2464
2422
 
2465
- /** @returns {LocaleLanguage} */
2466
- static LocaleLanguage() {
2423
+ /** @returns {ResourcesSchema} */
2424
+ static ResourcesSchema() {
2467
2425
  return Joi.object({
2468
- ar: ContentPlatformModel.Language(),
2469
- en_us: ContentPlatformModel.Language(),
2470
- hi: ContentPlatformModel.Language(),
2426
+ resources: Joi.array().items(ContentPlatformModel.ResourceSchema()),
2471
2427
  });
2472
2428
  }
2473
2429
 
2474
- /** @returns {Metaobject} */
2475
- static Metaobject() {
2430
+ /** @returns {ResourceSchema} */
2431
+ static ResourceSchema() {
2476
2432
  return Joi.object({
2477
- category: Joi.string().allow(""),
2478
- list_enabled: Joi.boolean(),
2479
2433
  name: Joi.string().allow(""),
2480
- supported_validations: Joi.array().items(
2481
- ContentPlatformModel.SupportedValidationsSchema()
2482
- ),
2483
- type: Joi.string().allow(""),
2484
- });
2485
- }
2486
-
2487
- /** @returns {NavigationGetResponse} */
2488
- static NavigationGetResponse() {
2489
- return Joi.object({
2490
- items: Joi.array().items(ContentPlatformModel.NavigationSchema()),
2491
- page: ContentPlatformModel.Page(),
2434
+ key: Joi.string().allow(""),
2435
+ definitions_count: Joi.number(),
2492
2436
  });
2493
2437
  }
2494
2438
 
2495
- /** @returns {NavigationReference} */
2496
- static NavigationReference() {
2497
- return Joi.object({
2498
- _locale_language: ContentPlatformModel.LocaleLanguage(),
2499
- acl: Joi.array().items(Joi.string().allow("")),
2500
- action: ContentPlatformModel.Action(),
2501
- active: Joi.boolean(),
2502
- display: Joi.string().allow(""),
2503
- image: Joi.string().allow(""),
2504
- sort_order: Joi.number(),
2505
- sub_navigation: Joi.array().items(Joi.link("#NavigationReference")),
2506
- tags: Joi.array().items(Joi.string().allow("")),
2507
- type: Joi.string().allow(""),
2508
- }).id("NavigationReference");
2509
- }
2510
-
2511
- /** @returns {NavigationRequest} */
2512
- static NavigationRequest() {
2439
+ /** @returns {FieldValidations} */
2440
+ static FieldValidations() {
2513
2441
  return Joi.object({
2514
2442
  name: Joi.string().allow(""),
2515
- navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
2516
- orientation: ContentPlatformModel.Orientation(),
2517
- platform: Joi.array().items(Joi.string().allow("")),
2518
- slug: Joi.string().allow(""),
2443
+ type: Joi.string().allow(""),
2444
+ value: Joi.any(),
2519
2445
  });
2520
2446
  }
2521
2447
 
2522
- /** @returns {NavigationSchema} */
2523
- static NavigationSchema() {
2448
+ /** @returns {FieldDefinitionSchema} */
2449
+ static FieldDefinitionSchema() {
2524
2450
  return Joi.object({
2525
2451
  _id: Joi.string().allow(""),
2526
- application: Joi.string().allow(""),
2527
- archived: Joi.boolean(),
2528
- created_by: ContentPlatformModel.CreatedBySchema(),
2529
- date_meta: ContentPlatformModel.DateMeta(),
2452
+ creator: Joi.string().allow(""),
2453
+ resource: Joi.string().allow(""),
2530
2454
  name: Joi.string().allow(""),
2531
- navigation: Joi.array().items(ContentPlatformModel.NavigationReference()),
2532
- orientation: ContentPlatformModel.Orientation(),
2533
- platform: Joi.array().items(Joi.string().allow("")),
2534
- slug: Joi.string().allow(""),
2535
- version: Joi.number(),
2455
+ namespace: Joi.string().allow(""),
2456
+ key: Joi.string().allow(""),
2457
+ description: Joi.string().allow(""),
2458
+ type: Joi.string().allow(""),
2459
+ multi_value: Joi.boolean(),
2460
+ validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
2461
+ company_id: Joi.string().allow(""),
2462
+ created_by: Joi.string().allow(""),
2463
+ updated_by: Joi.string().allow(""),
2464
+ required: Joi.boolean(),
2465
+ is_deleted: Joi.boolean(),
2466
+ created_at: Joi.string().allow(""),
2467
+ updated_at: Joi.string().allow(""),
2468
+ type_name: Joi.string().allow(""),
2469
+ invalid_fields_count: Joi.number(),
2536
2470
  });
2537
2471
  }
2538
2472
 
2539
- /** @returns {NextSchedule} */
2540
- static NextSchedule() {
2473
+ /** @returns {CustomFieldDefinitionsSchema} */
2474
+ static CustomFieldDefinitionsSchema() {
2541
2475
  return Joi.object({
2542
- end: Joi.string().allow(""),
2543
- start: Joi.string().allow(""),
2476
+ items: Joi.array().items(ContentPlatformModel.FieldDefinitionSchema()),
2477
+ page: ContentPlatformModel.Page(),
2544
2478
  });
2545
2479
  }
2546
2480
 
2547
- /** @returns {Orientation} */
2548
- static Orientation() {
2481
+ /** @returns {CustomFieldDefinitionRequestSchema} */
2482
+ static CustomFieldDefinitionRequestSchema() {
2549
2483
  return Joi.object({
2550
- landscape: Joi.array().items(Joi.string().allow("")),
2551
- portrait: Joi.array().items(Joi.string().allow("")),
2484
+ resource: Joi.string().allow(""),
2485
+ type: Joi.string().allow(""),
2486
+ key: Joi.string().allow(""),
2487
+ namespace: Joi.string().allow(""),
2488
+ multi_value: Joi.boolean(),
2489
+ name: Joi.string().allow(""),
2490
+ description: Joi.string().allow(""),
2491
+ validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
2552
2492
  });
2553
2493
  }
2554
2494
 
2555
- /** @returns {Page} */
2556
- static Page() {
2495
+ /** @returns {CustomObjectCustomFieldDefinitions} */
2496
+ static CustomObjectCustomFieldDefinitions() {
2557
2497
  return Joi.object({
2558
- current: Joi.number(),
2559
- has_next: Joi.boolean(),
2560
- has_previous: Joi.boolean(),
2561
- item_total: Joi.number(),
2562
- next_id: Joi.string().allow(""),
2563
- size: Joi.number(),
2564
- type: Joi.string().allow("").required(),
2498
+ id: Joi.string().allow(""),
2499
+ type: Joi.string().allow(""),
2500
+ description: Joi.string().allow(""),
2501
+ name: Joi.string().allow(""),
2502
+ multi_value: Joi.boolean(),
2503
+ required: Joi.boolean(),
2504
+ key: Joi.string().allow(""),
2505
+ validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
2506
+ action: Joi.string().allow(""),
2565
2507
  });
2566
2508
  }
2567
2509
 
2568
- /** @returns {PageGetResponse} */
2569
- static PageGetResponse() {
2510
+ /** @returns {CustomObjectDefinitionUpdateRequestSchema} */
2511
+ static CustomObjectDefinitionUpdateRequestSchema() {
2570
2512
  return Joi.object({
2571
- items: Joi.array().items(ContentPlatformModel.PageSchema()),
2572
- page: ContentPlatformModel.Page(),
2513
+ type: Joi.string().allow(""),
2514
+ description: Joi.string().allow(""),
2515
+ name: Joi.string().allow(""),
2516
+ display_name_key: Joi.string().allow(""),
2517
+ field_definitions: Joi.array().items(
2518
+ ContentPlatformModel.CustomObjectCustomFieldDefinitions()
2519
+ ),
2573
2520
  });
2574
2521
  }
2575
2522
 
2576
- /** @returns {PageMetaSchema} */
2577
- static PageMetaSchema() {
2523
+ /** @returns {CustomFieldDefinitionDetailResSchema} */
2524
+ static CustomFieldDefinitionDetailResSchema() {
2578
2525
  return Joi.object({
2526
+ creator: Joi.string().allow(""),
2527
+ resource: Joi.string().allow(""),
2528
+ name: Joi.string().allow(""),
2529
+ namespace: Joi.string().allow(""),
2530
+ key: Joi.string().allow(""),
2531
+ description: Joi.string().allow(""),
2532
+ type: Joi.string().allow(""),
2533
+ multi_value: Joi.boolean(),
2534
+ company_id: Joi.string().allow(""),
2579
2535
  application_id: Joi.string().allow(""),
2580
- custom_pages: Joi.array().items(ContentPlatformModel.PageSchema()),
2581
- system_pages: Joi.array().items(ContentPlatformModel.NavigationSchema()),
2536
+ created_by: Joi.string().allow(""),
2537
+ updated_by: Joi.string().allow(""),
2538
+ required: Joi.boolean(),
2539
+ is_deleted: Joi.boolean(),
2540
+ _id: Joi.string().allow(""),
2541
+ validations: Joi.array().items(Joi.any()),
2542
+ created_at: Joi.string().allow(""),
2543
+ updated_at: Joi.string().allow(""),
2582
2544
  });
2583
2545
  }
2584
2546
 
2585
- /** @returns {PagePublishRequest} */
2586
- static PagePublishRequest() {
2547
+ /** @returns {CustomDataDeleteSchema} */
2548
+ static CustomDataDeleteSchema() {
2587
2549
  return Joi.object({
2588
- publish: Joi.boolean(),
2550
+ success: Joi.boolean(),
2551
+ message: Joi.string().allow(""),
2589
2552
  });
2590
2553
  }
2591
2554
 
2592
- /** @returns {PageRequest} */
2593
- static PageRequest() {
2555
+ /** @returns {CustomFieldValue} */
2556
+ static CustomFieldValue() {
2594
2557
  return Joi.object({
2595
- _custom_json: Joi.any(),
2596
- _schedule: ContentPlatformModel.CronSchedule(),
2597
- application: Joi.string().allow(""),
2598
- author: ContentPlatformModel.Author(),
2599
- content: Joi.array().items(Joi.any()),
2600
- feature_image: ContentPlatformModel.Asset(),
2601
- orientation: Joi.string().allow(""),
2602
- published: Joi.boolean(),
2603
- reading_time: Joi.string().allow(""),
2604
- seo: ContentPlatformModel.SEO(),
2605
- slug: Joi.string().allow(""),
2606
- tags: Joi.array().items(Joi.string().allow("")),
2607
- title: Joi.string().allow(""),
2558
+ value: Joi.any(),
2608
2559
  });
2609
2560
  }
2610
2561
 
2611
- /** @returns {PageSchema} */
2612
- static PageSchema() {
2562
+ /** @returns {CustomFieldSchema} */
2563
+ static CustomFieldSchema() {
2613
2564
  return Joi.object({
2614
- _custom_json: Joi.any(),
2615
2565
  _id: Joi.string().allow(""),
2616
- _schedule: ContentPlatformModel.ScheduleSchema(),
2617
- application: Joi.string().allow(""),
2618
- archived: Joi.boolean(),
2619
- component_ids: Joi.array().items(Joi.string().allow("")),
2620
- content: Joi.array().items(Joi.any()),
2621
- content_path: Joi.string().allow(""),
2622
- created_by: ContentPlatformModel.CreatedBySchema(),
2623
- date_meta: ContentPlatformModel.DateMeta(),
2624
- description: Joi.string().allow(""),
2625
- feature_image: ContentPlatformModel.Asset(),
2626
- orientation: Joi.string().allow(""),
2627
- page_meta: Joi.array().items(Joi.any()),
2628
- platform: Joi.string().allow(""),
2629
- published: Joi.boolean(),
2630
- seo: ContentPlatformModel.SEO(),
2631
- slug: Joi.string().allow(""),
2632
- tags: Joi.array().items(Joi.string().allow("")),
2633
- title: Joi.string().allow(""),
2566
+ namespace: Joi.string().allow(""),
2567
+ key: Joi.string().allow(""),
2568
+ resource: Joi.string().allow(""),
2569
+ creator: Joi.string().allow(""),
2570
+ value: Joi.array().items(ContentPlatformModel.CustomFieldValue()),
2571
+ resource_id: Joi.string().allow(""),
2634
2572
  type: Joi.string().allow(""),
2635
- visibility: Joi.any(),
2636
- });
2637
- }
2638
-
2639
- /** @returns {PageSpec} */
2640
- static PageSpec() {
2641
- return Joi.object({
2642
- specifications: Joi.array().items(ContentPlatformModel.PageSpecItem()),
2643
- });
2644
- }
2645
-
2646
- /** @returns {PageSpecItem} */
2647
- static PageSpecItem() {
2648
- return Joi.object({
2649
- display_name: Joi.string().allow(""),
2650
- page_type: Joi.string().allow(""),
2651
- params: Joi.array().items(ContentPlatformModel.PageSpecParam()),
2652
- query: Joi.array().items(ContentPlatformModel.PageSpecParam()),
2573
+ multi_value: Joi.boolean(),
2574
+ company_id: Joi.string().allow(""),
2575
+ definition_id: Joi.string().allow(""),
2576
+ has_invalid_values: Joi.boolean(),
2577
+ invalid_value_errors: Joi.array().items(Joi.any()),
2578
+ created_by: Joi.string().allow(""),
2579
+ is_deleted: Joi.boolean(),
2580
+ created_at: Joi.string().allow(""),
2581
+ updated_at: Joi.string().allow(""),
2653
2582
  });
2654
2583
  }
2655
-
2656
- /** @returns {PageSpecParam} */
2657
- static PageSpecParam() {
2584
+
2585
+ /** @returns {CustomFieldsResponseSchema} */
2586
+ static CustomFieldsResponseSchema() {
2658
2587
  return Joi.object({
2659
- key: Joi.string().allow(""),
2660
- required: Joi.boolean(),
2588
+ items: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
2589
+ page: ContentPlatformModel.Page(),
2661
2590
  });
2662
2591
  }
2663
2592
 
2664
- /** @returns {PathMappingSchema} */
2665
- static PathMappingSchema() {
2593
+ /** @returns {CustomFieldsResponseByResourceIdSchema} */
2594
+ static CustomFieldsResponseByResourceIdSchema() {
2666
2595
  return Joi.object({
2667
- __source: ContentPlatformModel.PathSourceSchema(),
2668
- _id: Joi.string().allow(""),
2669
- application: Joi.string().allow(""),
2670
- created_at: Joi.string().allow(""),
2671
- redirect_from: Joi.string().allow(""),
2672
- redirect_to: Joi.string().allow(""),
2673
- updated_at: Joi.string().allow(""),
2596
+ items: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
2674
2597
  });
2675
2598
  }
2676
2599
 
2677
- /** @returns {PathSourceSchema} */
2678
- static PathSourceSchema() {
2600
+ /** @returns {CustomField} */
2601
+ static CustomField() {
2679
2602
  return Joi.object({
2680
- id: Joi.string().allow(""),
2681
- type: Joi.string().allow(""),
2603
+ value: Joi.array().items(Joi.any()),
2604
+ definition_id: Joi.string().allow(""),
2682
2605
  });
2683
2606
  }
2684
2607
 
2685
- /** @returns {PhoneProperties} */
2686
- static PhoneProperties() {
2608
+ /** @returns {CustomFieldRequestSchema} */
2609
+ static CustomFieldRequestSchema() {
2687
2610
  return Joi.object({
2688
- code: Joi.string().allow(""),
2689
- key: Joi.string().allow(""),
2690
- number: Joi.string().allow(""),
2611
+ fields: Joi.array().items(ContentPlatformModel.CustomField()),
2691
2612
  });
2692
2613
  }
2693
2614
 
2694
- /** @returns {PhoneSchema} */
2695
- static PhoneSchema() {
2615
+ /** @returns {CustomObjectSchema} */
2616
+ static CustomObjectSchema() {
2696
2617
  return Joi.object({
2697
- active: Joi.boolean(),
2698
- phone: Joi.array().items(ContentPlatformModel.PhoneProperties()),
2618
+ _id: Joi.string().allow(""),
2619
+ creator: Joi.string().allow(""),
2620
+ company_id: Joi.string().allow(""),
2621
+ application_id: Joi.string().allow(""),
2622
+ created_by: Joi.string().allow(""),
2623
+ updated_by: Joi.string().allow(""),
2624
+ status: Joi.string().allow(""),
2625
+ type: Joi.string().allow(""),
2626
+ display_name: Joi.string().allow(""),
2627
+ definition_id: Joi.string().allow(""),
2628
+ fields: Joi.array().items(ContentPlatformModel.CustomFieldSchema()),
2699
2629
  });
2700
2630
  }
2701
2631
 
2702
- /** @returns {Product} */
2703
- static Product() {
2632
+ /** @returns {CustomObjectDefinitionRequestSchema} */
2633
+ static CustomObjectDefinitionRequestSchema() {
2704
2634
  return Joi.object({
2705
- category: Joi.string().allow(""),
2706
- list_enabled: Joi.boolean(),
2635
+ type: Joi.string().allow(""),
2636
+ description: Joi.string().allow(""),
2707
2637
  name: Joi.string().allow(""),
2708
- supported_validations: Joi.array().items(
2709
- ContentPlatformModel.SupportedValidationsSchema()
2638
+ display_name_key: Joi.string().allow(""),
2639
+ field_definitions: Joi.array().items(
2640
+ ContentPlatformModel.CustomObjectCustomFieldDefinitions()
2710
2641
  ),
2711
- type: Joi.string().allow(""),
2712
2642
  });
2713
2643
  }
2714
2644
 
2715
- /** @returns {RemoveHandpickedSchema} */
2716
- static RemoveHandpickedSchema() {
2645
+ /** @returns {CustomObjectCustomFieldDefinitionResSchema} */
2646
+ static CustomObjectCustomFieldDefinitionResSchema() {
2717
2647
  return Joi.object({
2718
- tags: Joi.array().items(Joi.string().allow("")),
2648
+ creator: Joi.string().allow(""),
2649
+ resource: Joi.string().allow(""),
2650
+ name: Joi.string().allow(""),
2651
+ namespace: Joi.string().allow(""),
2652
+ key: Joi.string().allow(""),
2653
+ description: Joi.string().allow(""),
2654
+ type: Joi.string().allow(""),
2655
+ multi_value: Joi.boolean(),
2656
+ validations: Joi.array().items(ContentPlatformModel.FieldValidations()),
2657
+ company_id: Joi.string().allow(""),
2658
+ created_by: Joi.string().allow(""),
2659
+ metaobject_definition_id: Joi.string().allow(""),
2660
+ required: Joi.boolean(),
2661
+ is_deleted: Joi.boolean(),
2662
+ _id: Joi.string().allow(""),
2663
+ created_at: Joi.string().allow(""),
2664
+ updated_at: Joi.string().allow(""),
2719
2665
  });
2720
2666
  }
2721
2667
 
2722
- /** @returns {ResourceContent} */
2723
- static ResourceContent() {
2668
+ /** @returns {CustomObjectDefinitionSchema} */
2669
+ static CustomObjectDefinitionSchema() {
2724
2670
  return Joi.object({
2671
+ _id: Joi.string().allow(""),
2672
+ name: Joi.string().allow(""),
2725
2673
  type: Joi.string().allow(""),
2726
- value: Joi.string().allow(""),
2674
+ display_name_key: Joi.string().allow(""),
2675
+ description: Joi.string().allow(""),
2676
+ creator: Joi.string().allow(""),
2677
+ created_by: Joi.string().allow(""),
2678
+ updated_by: Joi.string().allow(""),
2679
+ field_definitions: Joi.array().items(
2680
+ ContentPlatformModel.CustomObjectCustomFieldDefinitionResSchema()
2681
+ ),
2727
2682
  });
2728
2683
  }
2729
2684
 
2730
- /** @returns {ResourceSchema} */
2731
- static ResourceSchema() {
2685
+ /** @returns {CustomObjectDefinitionDeleteResponseSchema} */
2686
+ static CustomObjectDefinitionDeleteResponseSchema() {
2732
2687
  return Joi.object({
2733
- definitions_count: Joi.number(),
2734
- key: Joi.string().allow(""),
2735
- name: Joi.string().allow(""),
2688
+ success: Joi.boolean(),
2689
+ message: Joi.string().allow(""),
2736
2690
  });
2737
2691
  }
2738
2692
 
2739
- /** @returns {ResourcesSchema} */
2740
- static ResourcesSchema() {
2693
+ /** @returns {CustomObjectEntryBulkUploadResponse} */
2694
+ static CustomObjectEntryBulkUploadResponse() {
2741
2695
  return Joi.object({
2742
- resources: Joi.array().items(ContentPlatformModel.ResourceSchema()),
2696
+ url: Joi.string().allow(""),
2697
+ total_records: Joi.number(),
2743
2698
  });
2744
2699
  }
2745
2700
 
2746
- /** @returns {ScheduleSchema} */
2747
- static ScheduleSchema() {
2701
+ /** @returns {CustomObjectListItemDefinationSchema} */
2702
+ static CustomObjectListItemDefinationSchema() {
2748
2703
  return Joi.object({
2749
- cron: Joi.string().allow(""),
2750
- duration: Joi.number(),
2751
- end: Joi.string().allow(""),
2752
- next_schedule: Joi.array().items(ContentPlatformModel.NextSchedule()),
2753
- start: Joi.string().allow(""),
2704
+ _id: Joi.string().allow(""),
2705
+ name: Joi.string().allow(""),
2706
+ type: Joi.string().allow(""),
2754
2707
  });
2755
2708
  }
2756
2709
 
2757
- /** @returns {SEO} */
2758
- static SEO() {
2710
+ /** @returns {CustomObjectListItemSchema} */
2711
+ static CustomObjectListItemSchema() {
2759
2712
  return Joi.object({
2760
- breadcrumb: Joi.array().items(ContentPlatformModel.SEObreadcrumb()),
2761
- canonical_url: Joi.string().allow(""),
2762
- description: Joi.string().allow(""),
2763
- image: ContentPlatformModel.SEOImage(),
2764
- meta_tags: Joi.array().items(ContentPlatformModel.SEOMetaItem()),
2765
- sitemap: ContentPlatformModel.SEOSitemap(),
2766
- title: Joi.string().allow(""),
2713
+ _id: Joi.string().allow(""),
2714
+ definition_id: Joi.string().allow(""),
2715
+ status: Joi.string().allow(""),
2716
+ updated_at: Joi.string().allow(""),
2717
+ display_name: Joi.string().allow(""),
2718
+ definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
2719
+ references: Joi.number(),
2767
2720
  });
2768
2721
  }
2769
2722
 
2770
- /** @returns {SEObreadcrumb} */
2771
- static SEObreadcrumb() {
2723
+ /** @returns {CustomObjectsSchema} */
2724
+ static CustomObjectsSchema() {
2772
2725
  return Joi.object({
2773
- action: ContentPlatformModel.Action(),
2774
- url: Joi.string().allow(""),
2726
+ items: Joi.array().items(
2727
+ ContentPlatformModel.CustomObjectListItemSchema()
2728
+ ),
2729
+ page: ContentPlatformModel.Page(),
2775
2730
  });
2776
2731
  }
2777
2732
 
2778
- /** @returns {SeoComponent} */
2779
- static SeoComponent() {
2733
+ /** @returns {CustomObjectFieldSchema} */
2734
+ static CustomObjectFieldSchema() {
2780
2735
  return Joi.object({
2781
- seo: ContentPlatformModel.SeoSchema(),
2736
+ _id: Joi.string().allow(""),
2737
+ key: Joi.string().allow(""),
2738
+ value: Joi.array().items(Joi.any()),
2739
+ type: Joi.string().allow(""),
2740
+ definition_id: Joi.string().allow(""),
2782
2741
  });
2783
2742
  }
2784
2743
 
2785
- /** @returns {SEOImage} */
2786
- static SEOImage() {
2744
+ /** @returns {CustomObjectByIdSchema} */
2745
+ static CustomObjectByIdSchema() {
2787
2746
  return Joi.object({
2788
- url: Joi.string().allow(""),
2747
+ _id: Joi.string().allow(""),
2748
+ status: Joi.string().allow(""),
2749
+ display_name: Joi.string().allow(""),
2750
+ definition: ContentPlatformModel.CustomObjectListItemDefinationSchema(),
2751
+ references: Joi.array().items(Joi.any()),
2752
+ fields: Joi.array().items(ContentPlatformModel.CustomObjectFieldSchema()),
2789
2753
  });
2790
2754
  }
2791
2755
 
2792
- /** @returns {SEOMetaItem} */
2793
- static SEOMetaItem() {
2756
+ /** @returns {CustomObjectBulkEntryInitiateDownload} */
2757
+ static CustomObjectBulkEntryInitiateDownload() {
2794
2758
  return Joi.object({
2795
- items: Joi.array().items(ContentPlatformModel.SEOMetaItems()),
2796
- title: Joi.string().allow(""),
2759
+ message: Joi.string().allow(""),
2760
+ task_id: Joi.string().allow(""),
2797
2761
  });
2798
2762
  }
2799
2763
 
2800
- /** @returns {SEOMetaItems} */
2801
- static SEOMetaItems() {
2764
+ /** @returns {CustomObjectMetaSchema} */
2765
+ static CustomObjectMetaSchema() {
2802
2766
  return Joi.object({
2803
- key: Joi.string().allow(""),
2804
- value: Joi.string().allow(""),
2767
+ mo_total_count: Joi.number(),
2768
+ mo_success_count: Joi.number(),
2769
+ mo_error_count: Joi.number(),
2770
+ mo_defintion_type: Joi.string().allow(""),
2805
2771
  });
2806
2772
  }
2807
2773
 
2808
- /** @returns {SeoSchema} */
2809
- static SeoSchema() {
2774
+ /** @returns {CustomObjectJobSchema} */
2775
+ static CustomObjectJobSchema() {
2810
2776
  return Joi.object({
2811
2777
  _id: Joi.string().allow(""),
2812
- additional_sitemap: Joi.string().allow(""),
2813
- app: Joi.string().allow(""),
2814
- cannonical_enabled: Joi.boolean(),
2778
+ jobs: Joi.array().items(Joi.string().allow("")),
2779
+ finished_jobs: Joi.array().items(Joi.string().allow("")),
2780
+ error_jobs: Joi.array().items(Joi.string().allow("")),
2781
+ errors_occured: Joi.array().items(Joi.string().allow("")),
2782
+ company_id: Joi.string().allow(""),
2783
+ creator: Joi.string().allow(""),
2784
+ url: Joi.string().allow(""),
2785
+ status: Joi.string().allow(""),
2786
+ action_type: Joi.string().allow(""),
2787
+ entity: Joi.string().allow(""),
2788
+ error_url: Joi.string().allow(""),
2789
+ finished_count: Joi.number(),
2790
+ error_count: Joi.number(),
2791
+ success_count: Joi.number(),
2792
+ total_jobs: Joi.number(),
2793
+ meta: ContentPlatformModel.CustomObjectMetaSchema(),
2794
+ created_by: Joi.string().allow(""),
2815
2795
  created_at: Joi.string().allow(""),
2816
- custom_meta_tags: Joi.array().items(ContentPlatformModel.CustomMetaTag()),
2817
- details: ContentPlatformModel.Detail(),
2818
- robots_txt: Joi.string().allow(""),
2819
- sitemap_enabled: Joi.boolean(),
2820
2796
  updated_at: Joi.string().allow(""),
2821
2797
  });
2822
2798
  }
2823
2799
 
2824
- /** @returns {SeoSchemaComponent} */
2825
- static SeoSchemaComponent() {
2800
+ /** @returns {CustomObjectBulkEntry} */
2801
+ static CustomObjectBulkEntry() {
2826
2802
  return Joi.object({
2827
- items: Joi.array().items(ContentPlatformModel.SEOSchemaMarkupTemplate()),
2803
+ items: Joi.array().items(ContentPlatformModel.CustomObjectJobSchema()),
2828
2804
  page: ContentPlatformModel.Page(),
2829
2805
  });
2830
2806
  }
2831
2807
 
2832
- /** @returns {SEOSchemaMarkupTemplate} */
2833
- static SEOSchemaMarkupTemplate() {
2808
+ /** @returns {CustomFieldTypeSchema} */
2809
+ static CustomFieldTypeSchema() {
2834
2810
  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(""),
2811
+ string_single_line: ContentPlatformModel.StringSingleLine(),
2812
+ string_multi_line: ContentPlatformModel.StringMultiLine(),
2813
+ dropdown: ContentPlatformModel.Dropdown(),
2814
+ integer: ContentPlatformModel.Integer(),
2815
+ float_type: ContentPlatformModel.FloatType(),
2816
+ boolean_type: ContentPlatformModel.BooleanType(),
2817
+ date: ContentPlatformModel.Date(),
2818
+ datetime: ContentPlatformModel.Datetime(),
2819
+ json: ContentPlatformModel.Json(),
2820
+ file: ContentPlatformModel.File(),
2821
+ url: ContentPlatformModel.Url(),
2822
+ metaobject: ContentPlatformModel.Metaobject(),
2823
+ product: ContentPlatformModel.Product(),
2845
2824
  });
2846
2825
  }
2847
2826
 
2848
- /** @returns {SEOSchemaMarkupTemplateRequestBody} */
2849
- static SEOSchemaMarkupTemplateRequestBody() {
2827
+ /** @returns {SupportedValidationsMetaExampleSchema} */
2828
+ static SupportedValidationsMetaExampleSchema() {
2850
2829
  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(""),
2830
+ name: Joi.string().allow(""),
2831
+ value: Joi.string().allow(""),
2859
2832
  });
2860
2833
  }
2861
2834
 
2862
- /** @returns {SEOSitemap} */
2863
- static SEOSitemap() {
2835
+ /** @returns {SupportedValidationsMetaSchema} */
2836
+ static SupportedValidationsMetaSchema() {
2864
2837
  return Joi.object({
2865
- frequency: Joi.string().allow(""),
2866
- priority: Joi.number(),
2838
+ examples: Joi.array().items(
2839
+ ContentPlatformModel.SupportedValidationsMetaExampleSchema()
2840
+ ),
2867
2841
  });
2868
2842
  }
2869
2843
 
2870
- /** @returns {SlideshowGetResponse} */
2871
- static SlideshowGetResponse() {
2844
+ /** @returns {SupportedValidationsSchema} */
2845
+ static SupportedValidationsSchema() {
2872
2846
  return Joi.object({
2873
- items: Joi.array().items(ContentPlatformModel.SlideshowSchema()),
2874
- page: ContentPlatformModel.Page(),
2847
+ name: Joi.string().allow(""),
2848
+ type: Joi.string().allow(""),
2849
+ display: Joi.string().allow(""),
2850
+ required: Joi.boolean(),
2851
+ meta: ContentPlatformModel.SupportedValidationsMetaSchema(),
2875
2852
  });
2876
2853
  }
2877
2854
 
2878
- /** @returns {SlideshowMedia} */
2879
- static SlideshowMedia() {
2855
+ /** @returns {StringSingleLine} */
2856
+ static StringSingleLine() {
2880
2857
  return Joi.object({
2881
- action: ContentPlatformModel.Action(),
2882
- auto_decide_duration: Joi.boolean(),
2883
- bg_color: Joi.string().allow(""),
2884
- duration: Joi.number(),
2858
+ name: Joi.string().allow(""),
2859
+ list_enabled: Joi.boolean(),
2860
+ category: Joi.string().allow(""),
2885
2861
  type: Joi.string().allow(""),
2886
- url: Joi.string().allow(""),
2862
+ supported_validations: Joi.array().items(
2863
+ ContentPlatformModel.SupportedValidationsSchema()
2864
+ ),
2887
2865
  });
2888
2866
  }
2889
2867
 
2890
- /** @returns {SlideshowRequest} */
2891
- static SlideshowRequest() {
2868
+ /** @returns {StringMultiLine} */
2869
+ static StringMultiLine() {
2892
2870
  return Joi.object({
2893
- active: Joi.boolean(),
2894
- configuration: ContentPlatformModel.ConfigurationSchema(),
2895
- media: ContentPlatformModel.SlideshowMedia(),
2896
- platform: Joi.string().allow(""),
2897
- slug: Joi.string().allow(""),
2871
+ name: Joi.string().allow(""),
2872
+ list_enabled: Joi.boolean(),
2873
+ category: Joi.string().allow(""),
2874
+ type: Joi.string().allow(""),
2875
+ supported_validations: Joi.array().items(
2876
+ ContentPlatformModel.SupportedValidationsSchema()
2877
+ ),
2898
2878
  });
2899
2879
  }
2900
2880
 
2901
- /** @returns {SlideshowSchema} */
2902
- static SlideshowSchema() {
2881
+ /** @returns {Dropdown} */
2882
+ static Dropdown() {
2903
2883
  return Joi.object({
2904
- _custom_json: Joi.any(),
2905
- _id: Joi.string().allow(""),
2906
- active: Joi.boolean(),
2907
- application: Joi.string().allow(""),
2908
- archived: Joi.boolean(),
2909
- configuration: ContentPlatformModel.ConfigurationSchema(),
2910
- date_meta: ContentPlatformModel.DateMeta(),
2911
- media: Joi.array().items(ContentPlatformModel.SlideshowMedia()),
2912
- platform: Joi.string().allow(""),
2913
- slug: Joi.string().allow(""),
2884
+ name: Joi.string().allow(""),
2885
+ list_enabled: Joi.boolean(),
2886
+ category: Joi.string().allow(""),
2887
+ type: Joi.string().allow(""),
2888
+ supported_validations: Joi.array().items(
2889
+ ContentPlatformModel.SupportedValidationsSchema()
2890
+ ),
2914
2891
  });
2915
2892
  }
2916
2893
 
2917
- /** @returns {StringMultiLine} */
2918
- static StringMultiLine() {
2894
+ /** @returns {Integer} */
2895
+ static Integer() {
2919
2896
  return Joi.object({
2920
- category: Joi.string().allow(""),
2921
- list_enabled: Joi.boolean(),
2922
2897
  name: Joi.string().allow(""),
2898
+ list_enabled: Joi.boolean(),
2899
+ type: Joi.string().allow(""),
2900
+ category: Joi.string().allow(""),
2923
2901
  supported_validations: Joi.array().items(
2924
2902
  ContentPlatformModel.SupportedValidationsSchema()
2925
2903
  ),
2904
+ });
2905
+ }
2906
+
2907
+ /** @returns {FloatType} */
2908
+ static FloatType() {
2909
+ return Joi.object({
2910
+ name: Joi.string().allow(""),
2911
+ list_enabled: Joi.boolean(),
2926
2912
  type: Joi.string().allow(""),
2913
+ category: Joi.string().allow(""),
2914
+ supported_validations: Joi.array().items(
2915
+ ContentPlatformModel.SupportedValidationsSchema()
2916
+ ),
2927
2917
  });
2928
2918
  }
2929
2919
 
2930
- /** @returns {StringSingleLine} */
2931
- static StringSingleLine() {
2920
+ /** @returns {BooleanType} */
2921
+ static BooleanType() {
2932
2922
  return Joi.object({
2923
+ name: Joi.string().allow(""),
2933
2924
  category: Joi.string().allow(""),
2934
2925
  list_enabled: Joi.boolean(),
2935
- name: Joi.string().allow(""),
2926
+ type: Joi.string().allow(""),
2936
2927
  supported_validations: Joi.array().items(
2937
2928
  ContentPlatformModel.SupportedValidationsSchema()
2938
2929
  ),
2939
- type: Joi.string().allow(""),
2940
2930
  });
2941
2931
  }
2942
2932
 
2943
- /** @returns {Support} */
2944
- static Support() {
2933
+ /** @returns {Date} */
2934
+ static Date() {
2945
2935
  return Joi.object({
2946
- _id: Joi.string().allow(""),
2947
- application: Joi.string().allow(""),
2948
- config_type: Joi.string().allow(""),
2949
- contact: ContentPlatformModel.ContactSchema(),
2950
- created: Joi.boolean(),
2951
- created_at: Joi.string().allow(""),
2952
- updated_at: Joi.string().allow(""),
2936
+ name: Joi.string().allow(""),
2937
+ list_enabled: Joi.boolean(),
2938
+ category: Joi.string().allow(""),
2939
+ type: Joi.string().allow(""),
2940
+ supported_validations: Joi.array().items(
2941
+ ContentPlatformModel.SupportedValidationsSchema()
2942
+ ),
2953
2943
  });
2954
2944
  }
2955
2945
 
2956
- /** @returns {SupportedValidationsMetaExampleSchema} */
2957
- static SupportedValidationsMetaExampleSchema() {
2946
+ /** @returns {Datetime} */
2947
+ static Datetime() {
2958
2948
  return Joi.object({
2959
2949
  name: Joi.string().allow(""),
2960
- value: Joi.string().allow(""),
2950
+ category: Joi.string().allow(""),
2951
+ list_enabled: Joi.boolean(),
2952
+ type: Joi.string().allow(""),
2953
+ supported_validations: Joi.array().items(
2954
+ ContentPlatformModel.SupportedValidationsSchema()
2955
+ ),
2961
2956
  });
2962
2957
  }
2963
2958
 
2964
- /** @returns {SupportedValidationsMetaSchema} */
2965
- static SupportedValidationsMetaSchema() {
2959
+ /** @returns {Json} */
2960
+ static Json() {
2966
2961
  return Joi.object({
2967
- examples: Joi.array().items(
2968
- ContentPlatformModel.SupportedValidationsMetaExampleSchema()
2962
+ name: Joi.string().allow(""),
2963
+ list_enabled: Joi.boolean(),
2964
+ category: Joi.string().allow(""),
2965
+ type: Joi.string().allow(""),
2966
+ supported_validations: Joi.array().items(
2967
+ ContentPlatformModel.SupportedValidationsSchema()
2969
2968
  ),
2970
2969
  });
2971
2970
  }
2972
2971
 
2973
- /** @returns {SupportedValidationsSchema} */
2974
- static SupportedValidationsSchema() {
2972
+ /** @returns {File} */
2973
+ static File() {
2975
2974
  return Joi.object({
2976
- display: Joi.string().allow(""),
2977
- meta: ContentPlatformModel.SupportedValidationsMetaSchema(),
2978
2975
  name: Joi.string().allow(""),
2979
- required: Joi.boolean(),
2976
+ category: Joi.string().allow(""),
2977
+ list_enabled: Joi.boolean(),
2980
2978
  type: Joi.string().allow(""),
2979
+ supported_validations: Joi.array().items(
2980
+ ContentPlatformModel.SupportedValidationsSchema()
2981
+ ),
2981
2982
  });
2982
2983
  }
2983
2984
 
2984
- /** @returns {TagDeleteSuccessResponse} */
2985
- static TagDeleteSuccessResponse() {
2985
+ /** @returns {Url} */
2986
+ static Url() {
2986
2987
  return Joi.object({
2987
- success: Joi.boolean(),
2988
+ name: Joi.string().allow(""),
2989
+ list_enabled: Joi.boolean(),
2990
+ type: Joi.string().allow(""),
2991
+ supported_validations: Joi.array().items(
2992
+ ContentPlatformModel.SupportedValidationsSchema()
2993
+ ),
2988
2994
  });
2989
2995
  }
2990
2996
 
2991
- /** @returns {TagSchema} */
2992
- static TagSchema() {
2997
+ /** @returns {Metaobject} */
2998
+ static Metaobject() {
2993
2999
  return Joi.object({
2994
- __source: ContentPlatformModel.TagSourceSchema(),
2995
- _id: Joi.string().allow(""),
2996
- attributes: Joi.any(),
2997
- content: Joi.string().allow(""),
2998
3000
  name: Joi.string().allow(""),
2999
- pages: Joi.array().items(Joi.any()),
3000
- position: Joi.string().allow(""),
3001
- sub_type: Joi.string().allow(""),
3001
+ list_enabled: Joi.boolean(),
3002
+ category: Joi.string().allow(""),
3002
3003
  type: Joi.string().allow(""),
3003
- url: Joi.string().allow(""),
3004
+ supported_validations: Joi.array().items(
3005
+ ContentPlatformModel.SupportedValidationsSchema()
3006
+ ),
3004
3007
  });
3005
3008
  }
3006
3009
 
3007
- /** @returns {TagSourceSchema} */
3008
- static TagSourceSchema() {
3010
+ /** @returns {Product} */
3011
+ static Product() {
3009
3012
  return Joi.object({
3010
- id: Joi.string().allow(""),
3013
+ name: Joi.string().allow(""),
3014
+ list_enabled: Joi.boolean(),
3015
+ category: Joi.string().allow(""),
3011
3016
  type: Joi.string().allow(""),
3017
+ supported_validations: Joi.array().items(
3018
+ ContentPlatformModel.SupportedValidationsSchema()
3019
+ ),
3012
3020
  });
3013
3021
  }
3014
3022
 
3015
- /** @returns {TagsSchema} */
3016
- static TagsSchema() {
3023
+ /** @returns {CustomObjectEntry} */
3024
+ static CustomObjectEntry() {
3017
3025
  return Joi.object({
3018
3026
  _id: Joi.string().allow(""),
3019
- application: Joi.string().allow(""),
3020
- tags: Joi.array().items(ContentPlatformModel.TagSchema()),
3027
+ name: Joi.string().allow(""),
3028
+ type: Joi.string().allow(""),
3029
+ updated_at: Joi.string().allow(""),
3030
+ entries_count: Joi.number(),
3031
+ fields_count: Joi.number(),
3021
3032
  });
3022
3033
  }
3023
3034
 
3024
- /** @returns {UpdateFaqCategoryRequestSchema} */
3025
- static UpdateFaqCategoryRequestSchema() {
3035
+ /** @returns {CustomObjectDefinitionsSchema} */
3036
+ static CustomObjectDefinitionsSchema() {
3026
3037
  return Joi.object({
3027
- category: ContentPlatformModel.CategorySchema(),
3038
+ items: Joi.array().items(ContentPlatformModel.CustomObjectEntry()),
3039
+ page: ContentPlatformModel.Page(),
3028
3040
  });
3029
3041
  }
3030
3042
 
3031
- /** @returns {UpdateHandpickedSchema} */
3032
- static UpdateHandpickedSchema() {
3043
+ /** @returns {CustomObjectEntryFieldSchema} */
3044
+ static CustomObjectEntryFieldSchema() {
3033
3045
  return Joi.object({
3034
- tag: ContentPlatformModel.HandpickedTagSchema(),
3046
+ definition_id: Joi.string().allow(""),
3047
+ value: Joi.array().items(Joi.any()),
3035
3048
  });
3036
3049
  }
3037
3050
 
3038
- /** @returns {Url} */
3039
- static Url() {
3051
+ /** @returns {CustomObjectRequestSchema} */
3052
+ static CustomObjectRequestSchema() {
3040
3053
  return Joi.object({
3041
- list_enabled: Joi.boolean(),
3042
- name: Joi.string().allow(""),
3043
- supported_validations: Joi.array().items(
3044
- ContentPlatformModel.SupportedValidationsSchema()
3054
+ status: Joi.string().allow(""),
3055
+ definition_id: Joi.string().allow(""),
3056
+ fields: Joi.array().items(
3057
+ ContentPlatformModel.CustomObjectEntryFieldSchema()
3045
3058
  ),
3046
- type: Joi.string().allow(""),
3059
+ });
3060
+ }
3061
+
3062
+ /** @returns {CustomObjectBulkSchema} */
3063
+ static CustomObjectBulkSchema() {
3064
+ return Joi.object({
3065
+ url: Joi.string().allow(""),
3066
+ total_records: Joi.number(),
3047
3067
  });
3048
3068
  }
3049
3069