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