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