@gofynd/fdk-client-javascript 1.2.0 → 1.3.0
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 +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +4 -4
- package/sdk/application/Cart/CartApplicationModel.js +4 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +96 -9
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +117 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -15,33 +15,6 @@ const Joi = require("joi");
|
|
|
15
15
|
* @property {string} [url]
|
|
16
16
|
*/
|
|
17
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]
|
|
30
|
-
* @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]
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
18
|
/**
|
|
46
19
|
* @typedef AnnouncementSchema
|
|
47
20
|
* @property {string} [announcement]
|
|
@@ -96,22 +69,6 @@ const Joi = require("joi");
|
|
|
96
69
|
* @property {Page} [page]
|
|
97
70
|
*/
|
|
98
71
|
|
|
99
|
-
/**
|
|
100
|
-
* @typedef BlogRequest
|
|
101
|
-
* @property {Object} [_custom_json]
|
|
102
|
-
* @property {CronSchedule} [_schedule]
|
|
103
|
-
* @property {string} [application]
|
|
104
|
-
* @property {Author} [author]
|
|
105
|
-
* @property {ResourceContent[]} [content]
|
|
106
|
-
* @property {Asset} [feature_image]
|
|
107
|
-
* @property {boolean} [published]
|
|
108
|
-
* @property {string} [reading_time]
|
|
109
|
-
* @property {SEO} [seo]
|
|
110
|
-
* @property {string} [slug]
|
|
111
|
-
* @property {string[]} [tags]
|
|
112
|
-
* @property {string} [title]
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
72
|
/**
|
|
116
73
|
* @typedef BlogSchema
|
|
117
74
|
* @property {Object} [_custom_json]
|
|
@@ -131,12 +88,6 @@ const Joi = require("joi");
|
|
|
131
88
|
* @property {string} [title]
|
|
132
89
|
*/
|
|
133
90
|
|
|
134
|
-
/**
|
|
135
|
-
* @typedef CategoryRequestSchema
|
|
136
|
-
* @property {string} [slug]
|
|
137
|
-
* @property {string} [title]
|
|
138
|
-
*/
|
|
139
|
-
|
|
140
91
|
/**
|
|
141
92
|
* @typedef CategorySchema
|
|
142
93
|
* @property {Object} [_custom_json]
|
|
@@ -190,61 +141,11 @@ const Joi = require("joi");
|
|
|
190
141
|
* @property {number} [status]
|
|
191
142
|
*/
|
|
192
143
|
|
|
193
|
-
/**
|
|
194
|
-
* @typedef ContentSchema
|
|
195
|
-
* @property {string} [type]
|
|
196
|
-
* @property {Object} [value]
|
|
197
|
-
*/
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* @typedef CreateAnnouncementSchema
|
|
201
|
-
* @property {AdminAnnouncementSchema} [data]
|
|
202
|
-
* @property {string} [message]
|
|
203
|
-
*/
|
|
204
|
-
|
|
205
144
|
/**
|
|
206
145
|
* @typedef CreatedBySchema
|
|
207
146
|
* @property {string} [id]
|
|
208
147
|
*/
|
|
209
148
|
|
|
210
|
-
/**
|
|
211
|
-
* @typedef CreateFaqCategoryRequestSchema
|
|
212
|
-
* @property {CategoryRequestSchema} [category]
|
|
213
|
-
*/
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* @typedef CreateFaqCategorySchema
|
|
217
|
-
* @property {CategorySchema} [category]
|
|
218
|
-
*/
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* @typedef CreateFaqResponseSchema
|
|
222
|
-
* @property {FaqSchema} [faq]
|
|
223
|
-
*/
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* @typedef CreateFaqSchema
|
|
227
|
-
* @property {FAQ} [faq]
|
|
228
|
-
*/
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* @typedef CreateTagRequestSchema
|
|
232
|
-
* @property {CreateTagSchema[]} [tags]
|
|
233
|
-
*/
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* @typedef CreateTagSchema
|
|
237
|
-
* @property {string} [_id]
|
|
238
|
-
* @property {Object} [attributes]
|
|
239
|
-
* @property {string} [content]
|
|
240
|
-
* @property {string} [name]
|
|
241
|
-
* @property {Object[]} [pages]
|
|
242
|
-
* @property {string} [position]
|
|
243
|
-
* @property {string} [sub_type]
|
|
244
|
-
* @property {string} [type]
|
|
245
|
-
* @property {string} [url]
|
|
246
|
-
*/
|
|
247
|
-
|
|
248
149
|
/**
|
|
249
150
|
* @typedef CronSchedule
|
|
250
151
|
* @property {string} [cron]
|
|
@@ -260,48 +161,6 @@ const Joi = require("joi");
|
|
|
260
161
|
* @property {string} [name]
|
|
261
162
|
*/
|
|
262
163
|
|
|
263
|
-
/**
|
|
264
|
-
* @typedef CustomPage
|
|
265
|
-
* @property {CustomPageSchema} [data]
|
|
266
|
-
*/
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* @typedef CustomPageSchema
|
|
270
|
-
* @property {string} [_id]
|
|
271
|
-
* @property {ScheduleSchema} [_schedule]
|
|
272
|
-
* @property {string} [application]
|
|
273
|
-
* @property {Object[]} [content]
|
|
274
|
-
* @property {CreatedBySchema} [created_by]
|
|
275
|
-
* @property {DateMeta} [date_meta]
|
|
276
|
-
* @property {string} [description]
|
|
277
|
-
* @property {string} [orientation]
|
|
278
|
-
* @property {string} [platform]
|
|
279
|
-
* @property {boolean} [published]
|
|
280
|
-
* @property {string} [slug]
|
|
281
|
-
* @property {string[]} [tags]
|
|
282
|
-
* @property {string} [title]
|
|
283
|
-
* @property {string} [type]
|
|
284
|
-
*/
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* @typedef DataLoaderResetResponseSchema
|
|
288
|
-
* @property {string} [reset]
|
|
289
|
-
*/
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* @typedef DataLoaderResponseSchema
|
|
293
|
-
* @property {DataLoaderSourceSchema} [__source]
|
|
294
|
-
* @property {string} [_id]
|
|
295
|
-
* @property {string} [application]
|
|
296
|
-
* @property {string} [company]
|
|
297
|
-
* @property {string} [content]
|
|
298
|
-
* @property {string} [name]
|
|
299
|
-
* @property {string} [operation_id]
|
|
300
|
-
* @property {string} [service]
|
|
301
|
-
* @property {string} [type]
|
|
302
|
-
* @property {string} [url]
|
|
303
|
-
*/
|
|
304
|
-
|
|
305
164
|
/**
|
|
306
165
|
* @typedef DataLoaderSchema
|
|
307
166
|
* @property {DataLoaderSourceSchema} [__source]
|
|
@@ -331,11 +190,6 @@ const Joi = require("joi");
|
|
|
331
190
|
* @property {string} [modified_on]
|
|
332
191
|
*/
|
|
333
192
|
|
|
334
|
-
/**
|
|
335
|
-
* @typedef DefaultNavigationResponse
|
|
336
|
-
* @property {NavigationSchema[]} [items]
|
|
337
|
-
*/
|
|
338
|
-
|
|
339
193
|
/**
|
|
340
194
|
* @typedef Detail
|
|
341
195
|
* @property {string} [description]
|
|
@@ -343,14 +197,6 @@ const Joi = require("joi");
|
|
|
343
197
|
* @property {string} [title]
|
|
344
198
|
*/
|
|
345
199
|
|
|
346
|
-
/**
|
|
347
|
-
* @typedef EditorMeta
|
|
348
|
-
* @property {string} [background_color]
|
|
349
|
-
* @property {string} [content]
|
|
350
|
-
* @property {string} [content_type]
|
|
351
|
-
* @property {string} [foreground_color]
|
|
352
|
-
*/
|
|
353
|
-
|
|
354
200
|
/**
|
|
355
201
|
* @typedef EmailProperties
|
|
356
202
|
* @property {string} [key]
|
|
@@ -363,13 +209,6 @@ const Joi = require("joi");
|
|
|
363
209
|
* @property {EmailProperties[]} [email]
|
|
364
210
|
*/
|
|
365
211
|
|
|
366
|
-
/**
|
|
367
|
-
* @typedef FAQ
|
|
368
|
-
* @property {string} [answer]
|
|
369
|
-
* @property {string} [question]
|
|
370
|
-
* @property {string} [slug]
|
|
371
|
-
*/
|
|
372
|
-
|
|
373
212
|
/**
|
|
374
213
|
* @typedef FAQCategorySchema
|
|
375
214
|
* @property {Object} [_custom_json]
|
|
@@ -398,17 +237,6 @@ const Joi = require("joi");
|
|
|
398
237
|
* @property {string[]} [tags]
|
|
399
238
|
*/
|
|
400
239
|
|
|
401
|
-
/**
|
|
402
|
-
* @typedef FeatureImage
|
|
403
|
-
* @property {string} [secure_url]
|
|
404
|
-
*/
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* @typedef GetAnnouncementListSchema
|
|
408
|
-
* @property {AdminAnnouncementSchema[]} [items]
|
|
409
|
-
* @property {Page} [page]
|
|
410
|
-
*/
|
|
411
|
-
|
|
412
240
|
/**
|
|
413
241
|
* @typedef GetFaqCategoriesSchema
|
|
414
242
|
* @property {CategorySchema[]} [categories]
|
|
@@ -424,29 +252,6 @@ const Joi = require("joi");
|
|
|
424
252
|
* @property {FaqSchema[]} [faqs]
|
|
425
253
|
*/
|
|
426
254
|
|
|
427
|
-
/**
|
|
428
|
-
* @typedef HandpickedTagSchema
|
|
429
|
-
* @property {Object} [attributes]
|
|
430
|
-
* @property {string} [content]
|
|
431
|
-
* @property {string} [name]
|
|
432
|
-
* @property {string} [position]
|
|
433
|
-
* @property {string} [sub_type]
|
|
434
|
-
* @property {string} [type]
|
|
435
|
-
* @property {string} [url]
|
|
436
|
-
*/
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* @typedef LandingPage
|
|
440
|
-
* @property {LandingPageSchema} [data]
|
|
441
|
-
* @property {boolean} [success]
|
|
442
|
-
*/
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* @typedef LandingPageGetResponse
|
|
446
|
-
* @property {LandingPageSchema[]} [items]
|
|
447
|
-
* @property {Page} [page]
|
|
448
|
-
*/
|
|
449
|
-
|
|
450
255
|
/**
|
|
451
256
|
* @typedef LandingPageSchema
|
|
452
257
|
* @property {Object} [_custom_json]
|
|
@@ -472,20 +277,6 @@ const Joi = require("joi");
|
|
|
472
277
|
* @property {Language} [hi]
|
|
473
278
|
*/
|
|
474
279
|
|
|
475
|
-
/**
|
|
476
|
-
* @typedef Navigation
|
|
477
|
-
* @property {string} [_id]
|
|
478
|
-
* @property {string} [application]
|
|
479
|
-
* @property {CreatedBySchema} [created_by]
|
|
480
|
-
* @property {DateMeta} [date_meta]
|
|
481
|
-
* @property {string} [name]
|
|
482
|
-
* @property {NavigationReference} [navigation]
|
|
483
|
-
* @property {string} [orientation]
|
|
484
|
-
* @property {string} [platform]
|
|
485
|
-
* @property {string} [position]
|
|
486
|
-
* @property {string} [slug]
|
|
487
|
-
*/
|
|
488
|
-
|
|
489
280
|
/**
|
|
490
281
|
* @typedef NavigationGetResponse
|
|
491
282
|
* @property {NavigationSchema[]} [items]
|
|
@@ -506,15 +297,6 @@ const Joi = require("joi");
|
|
|
506
297
|
* @property {string} [type]
|
|
507
298
|
*/
|
|
508
299
|
|
|
509
|
-
/**
|
|
510
|
-
* @typedef NavigationRequest
|
|
511
|
-
* @property {string} [name]
|
|
512
|
-
* @property {NavigationReference[]} [navigation]
|
|
513
|
-
* @property {Orientation} [orientation]
|
|
514
|
-
* @property {string[]} [platform]
|
|
515
|
-
* @property {string} [slug]
|
|
516
|
-
*/
|
|
517
|
-
|
|
518
300
|
/**
|
|
519
301
|
* @typedef NavigationSchema
|
|
520
302
|
* @property {string} [_id]
|
|
@@ -553,53 +335,12 @@ const Joi = require("joi");
|
|
|
553
335
|
* @property {string} type
|
|
554
336
|
*/
|
|
555
337
|
|
|
556
|
-
/**
|
|
557
|
-
* @typedef PageContent
|
|
558
|
-
* @property {string} [type]
|
|
559
|
-
* @property {Object} [value]
|
|
560
|
-
*/
|
|
561
|
-
|
|
562
338
|
/**
|
|
563
339
|
* @typedef PageGetResponse
|
|
564
340
|
* @property {PageSchema[]} [items]
|
|
565
341
|
* @property {Page} [page]
|
|
566
342
|
*/
|
|
567
343
|
|
|
568
|
-
/**
|
|
569
|
-
* @typedef PageMeta
|
|
570
|
-
* @property {string} [key]
|
|
571
|
-
* @property {Object} [value]
|
|
572
|
-
*/
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* @typedef PageMetaSchema
|
|
576
|
-
* @property {string} [application_id]
|
|
577
|
-
* @property {PageSchema[]} [custom_pages]
|
|
578
|
-
* @property {NavigationSchema[]} [system_pages]
|
|
579
|
-
*/
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* @typedef PagePublishRequest
|
|
583
|
-
* @property {boolean} [publish]
|
|
584
|
-
*/
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* @typedef PageRequest
|
|
588
|
-
* @property {Object} [_custom_json]
|
|
589
|
-
* @property {CronSchedule} [_schedule]
|
|
590
|
-
* @property {string} [application]
|
|
591
|
-
* @property {Author} [author]
|
|
592
|
-
* @property {Object[]} [content]
|
|
593
|
-
* @property {Asset} [feature_image]
|
|
594
|
-
* @property {string} [orientation]
|
|
595
|
-
* @property {boolean} [published]
|
|
596
|
-
* @property {string} [reading_time]
|
|
597
|
-
* @property {SEO} [seo]
|
|
598
|
-
* @property {string} [slug]
|
|
599
|
-
* @property {string[]} [tags]
|
|
600
|
-
* @property {string} [title]
|
|
601
|
-
*/
|
|
602
|
-
|
|
603
344
|
/**
|
|
604
345
|
* @typedef PageSchema
|
|
605
346
|
* @property {Object} [_custom_json]
|
|
@@ -627,42 +368,6 @@ const Joi = require("joi");
|
|
|
627
368
|
* @property {Object} [visibility]
|
|
628
369
|
*/
|
|
629
370
|
|
|
630
|
-
/**
|
|
631
|
-
* @typedef PageSpec
|
|
632
|
-
* @property {Object[]} [specifications]
|
|
633
|
-
*/
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* @typedef PageSpecItem
|
|
637
|
-
* @property {string} [display_name]
|
|
638
|
-
* @property {string} [page_type]
|
|
639
|
-
* @property {PageSpecParam[]} [params]
|
|
640
|
-
* @property {PageSpecParam[]} [query]
|
|
641
|
-
*/
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* @typedef PageSpecParam
|
|
645
|
-
* @property {string} [key]
|
|
646
|
-
* @property {boolean} [required]
|
|
647
|
-
*/
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* @typedef PathMappingSchema
|
|
651
|
-
* @property {PathSourceSchema} [__source]
|
|
652
|
-
* @property {string} [_id]
|
|
653
|
-
* @property {string} [application]
|
|
654
|
-
* @property {string} [created_at]
|
|
655
|
-
* @property {string} [redirect_from]
|
|
656
|
-
* @property {string} [redirect_to]
|
|
657
|
-
* @property {string} [updated_at]
|
|
658
|
-
*/
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
* @typedef PathSourceSchema
|
|
662
|
-
* @property {string} [id]
|
|
663
|
-
* @property {string} [type]
|
|
664
|
-
*/
|
|
665
|
-
|
|
666
371
|
/**
|
|
667
372
|
* @typedef PhoneProperties
|
|
668
373
|
* @property {string} [code]
|
|
@@ -676,11 +381,6 @@ const Joi = require("joi");
|
|
|
676
381
|
* @property {PhoneProperties[]} [phone]
|
|
677
382
|
*/
|
|
678
383
|
|
|
679
|
-
/**
|
|
680
|
-
* @typedef RemoveHandpickedSchema
|
|
681
|
-
* @property {string[]} [tags]
|
|
682
|
-
*/
|
|
683
|
-
|
|
684
384
|
/**
|
|
685
385
|
* @typedef ResourceContent
|
|
686
386
|
* @property {string} [type]
|
|
@@ -692,7 +392,7 @@ const Joi = require("joi");
|
|
|
692
392
|
* @property {string} [cron]
|
|
693
393
|
* @property {number} [duration]
|
|
694
394
|
* @property {string} [end]
|
|
695
|
-
* @property {
|
|
395
|
+
* @property {NextSchedule[]} [next_schedule]
|
|
696
396
|
* @property {string} [start]
|
|
697
397
|
*/
|
|
698
398
|
|
|
@@ -725,19 +425,13 @@ const Joi = require("joi");
|
|
|
725
425
|
* @property {string} [app]
|
|
726
426
|
* @property {boolean} [cannonical_enabled]
|
|
727
427
|
* @property {string} [created_at]
|
|
728
|
-
* @property {
|
|
428
|
+
* @property {CustomMetaTag[]} [custom_meta_tags]
|
|
729
429
|
* @property {Detail} [details]
|
|
730
430
|
* @property {string} [robots_txt]
|
|
731
431
|
* @property {boolean} [sitemap_enabled]
|
|
732
432
|
* @property {string} [updated_at]
|
|
733
433
|
*/
|
|
734
434
|
|
|
735
|
-
/**
|
|
736
|
-
* @typedef Slideshow
|
|
737
|
-
* @property {SlideshowSchema} [data]
|
|
738
|
-
* @property {boolean} [success]
|
|
739
|
-
*/
|
|
740
|
-
|
|
741
435
|
/**
|
|
742
436
|
* @typedef SlideshowGetResponse
|
|
743
437
|
* @property {SlideshowSchema[]} [items]
|
|
@@ -754,15 +448,6 @@ const Joi = require("joi");
|
|
|
754
448
|
* @property {string} [url]
|
|
755
449
|
*/
|
|
756
450
|
|
|
757
|
-
/**
|
|
758
|
-
* @typedef SlideshowRequest
|
|
759
|
-
* @property {boolean} [active]
|
|
760
|
-
* @property {ConfigurationSchema} [configuration]
|
|
761
|
-
* @property {SlideshowMedia} [media]
|
|
762
|
-
* @property {string} [platform]
|
|
763
|
-
* @property {string} [slug]
|
|
764
|
-
*/
|
|
765
|
-
|
|
766
451
|
/**
|
|
767
452
|
* @typedef SlideshowSchema
|
|
768
453
|
* @property {Object} [_custom_json]
|
|
@@ -788,11 +473,6 @@ const Joi = require("joi");
|
|
|
788
473
|
* @property {string} [updated_at]
|
|
789
474
|
*/
|
|
790
475
|
|
|
791
|
-
/**
|
|
792
|
-
* @typedef TagDeleteSuccessResponse
|
|
793
|
-
* @property {boolean} [success]
|
|
794
|
-
*/
|
|
795
|
-
|
|
796
476
|
/**
|
|
797
477
|
* @typedef TagSchema
|
|
798
478
|
* @property {TagSourceSchema} [__source]
|
|
@@ -820,16 +500,6 @@ const Joi = require("joi");
|
|
|
820
500
|
* @property {TagSchema[]} [tags]
|
|
821
501
|
*/
|
|
822
502
|
|
|
823
|
-
/**
|
|
824
|
-
* @typedef UpdateFaqCategoryRequestSchema
|
|
825
|
-
* @property {CategorySchema} [category]
|
|
826
|
-
*/
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* @typedef UpdateHandpickedSchema
|
|
830
|
-
* @property {HandpickedTagSchema} [tag]
|
|
831
|
-
*/
|
|
832
|
-
|
|
833
503
|
/**
|
|
834
504
|
* @typedef {| "about-us"
|
|
835
505
|
* | "addresses"
|
|
@@ -905,51 +575,16 @@ class ContentApplicationModel {
|
|
|
905
575
|
});
|
|
906
576
|
}
|
|
907
577
|
|
|
908
|
-
/** @returns {
|
|
909
|
-
static
|
|
578
|
+
/** @returns {AnnouncementSchema} */
|
|
579
|
+
static AnnouncementSchema() {
|
|
910
580
|
return Joi.object({
|
|
911
|
-
_id: Joi.string().allow(""),
|
|
912
|
-
_schedule: ContentApplicationModel.ScheduleSchema(),
|
|
913
581
|
announcement: Joi.string().allow(""),
|
|
914
|
-
|
|
915
|
-
author: ContentApplicationModel.AnnouncementAuthorSchema(),
|
|
916
|
-
created_at: Joi.string().allow(""),
|
|
917
|
-
editor_meta: ContentApplicationModel.EditorMeta(),
|
|
918
|
-
modified_at: Joi.string().allow(""),
|
|
919
|
-
pages: Joi.array().items(
|
|
920
|
-
ContentApplicationModel.AnnouncementPageSchema()
|
|
921
|
-
),
|
|
922
|
-
platforms: Joi.array().items(Joi.string().allow("")),
|
|
923
|
-
title: Joi.string().allow(""),
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
/** @returns {AnnouncementAuthorSchema} */
|
|
928
|
-
static AnnouncementAuthorSchema() {
|
|
929
|
-
return Joi.object({
|
|
930
|
-
created_by: Joi.string().allow(""),
|
|
931
|
-
modified_by: Joi.string().allow(""),
|
|
582
|
+
schedule: ContentApplicationModel.ScheduleStartSchema(),
|
|
932
583
|
});
|
|
933
584
|
}
|
|
934
585
|
|
|
935
|
-
/** @returns {
|
|
936
|
-
static
|
|
937
|
-
return Joi.object({
|
|
938
|
-
page_slug: Joi.string().allow(""),
|
|
939
|
-
type: Joi.string().allow(""),
|
|
940
|
-
});
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
/** @returns {AnnouncementSchema} */
|
|
944
|
-
static AnnouncementSchema() {
|
|
945
|
-
return Joi.object({
|
|
946
|
-
announcement: Joi.string().allow(""),
|
|
947
|
-
schedule: ContentApplicationModel.ScheduleStartSchema(),
|
|
948
|
-
});
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
/** @returns {AnnouncementsResponseSchema} */
|
|
952
|
-
static AnnouncementsResponseSchema() {
|
|
586
|
+
/** @returns {AnnouncementsResponseSchema} */
|
|
587
|
+
static AnnouncementsResponseSchema() {
|
|
953
588
|
return Joi.object({
|
|
954
589
|
announcements: Joi.object().pattern(
|
|
955
590
|
/\S/,
|
|
@@ -1009,24 +644,6 @@ class ContentApplicationModel {
|
|
|
1009
644
|
});
|
|
1010
645
|
}
|
|
1011
646
|
|
|
1012
|
-
/** @returns {BlogRequest} */
|
|
1013
|
-
static BlogRequest() {
|
|
1014
|
-
return Joi.object({
|
|
1015
|
-
_custom_json: Joi.any(),
|
|
1016
|
-
_schedule: ContentApplicationModel.CronSchedule(),
|
|
1017
|
-
application: Joi.string().allow(""),
|
|
1018
|
-
author: ContentApplicationModel.Author(),
|
|
1019
|
-
content: Joi.array().items(ContentApplicationModel.ResourceContent()),
|
|
1020
|
-
feature_image: ContentApplicationModel.Asset(),
|
|
1021
|
-
published: Joi.boolean(),
|
|
1022
|
-
reading_time: Joi.string().allow(""),
|
|
1023
|
-
seo: ContentApplicationModel.SEO(),
|
|
1024
|
-
slug: Joi.string().allow(""),
|
|
1025
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
1026
|
-
title: Joi.string().allow(""),
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
647
|
/** @returns {BlogSchema} */
|
|
1031
648
|
static BlogSchema() {
|
|
1032
649
|
return Joi.object({
|
|
@@ -1048,14 +665,6 @@ class ContentApplicationModel {
|
|
|
1048
665
|
});
|
|
1049
666
|
}
|
|
1050
667
|
|
|
1051
|
-
/** @returns {CategoryRequestSchema} */
|
|
1052
|
-
static CategoryRequestSchema() {
|
|
1053
|
-
return Joi.object({
|
|
1054
|
-
slug: Joi.string().allow(""),
|
|
1055
|
-
title: Joi.string().allow(""),
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
668
|
/** @returns {CategorySchema} */
|
|
1060
669
|
static CategorySchema() {
|
|
1061
670
|
return Joi.object({
|
|
@@ -1121,22 +730,6 @@ class ContentApplicationModel {
|
|
|
1121
730
|
});
|
|
1122
731
|
}
|
|
1123
732
|
|
|
1124
|
-
/** @returns {ContentSchema} */
|
|
1125
|
-
static ContentSchema() {
|
|
1126
|
-
return Joi.object({
|
|
1127
|
-
type: Joi.string().allow(""),
|
|
1128
|
-
value: Joi.any(),
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
/** @returns {CreateAnnouncementSchema} */
|
|
1133
|
-
static CreateAnnouncementSchema() {
|
|
1134
|
-
return Joi.object({
|
|
1135
|
-
data: ContentApplicationModel.AdminAnnouncementSchema(),
|
|
1136
|
-
message: Joi.string().allow(""),
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
733
|
/** @returns {CreatedBySchema} */
|
|
1141
734
|
static CreatedBySchema() {
|
|
1142
735
|
return Joi.object({
|
|
@@ -1144,56 +737,6 @@ class ContentApplicationModel {
|
|
|
1144
737
|
});
|
|
1145
738
|
}
|
|
1146
739
|
|
|
1147
|
-
/** @returns {CreateFaqCategoryRequestSchema} */
|
|
1148
|
-
static CreateFaqCategoryRequestSchema() {
|
|
1149
|
-
return Joi.object({
|
|
1150
|
-
category: ContentApplicationModel.CategoryRequestSchema(),
|
|
1151
|
-
});
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
/** @returns {CreateFaqCategorySchema} */
|
|
1155
|
-
static CreateFaqCategorySchema() {
|
|
1156
|
-
return Joi.object({
|
|
1157
|
-
category: ContentApplicationModel.CategorySchema(),
|
|
1158
|
-
});
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
/** @returns {CreateFaqResponseSchema} */
|
|
1162
|
-
static CreateFaqResponseSchema() {
|
|
1163
|
-
return Joi.object({
|
|
1164
|
-
faq: ContentApplicationModel.FaqSchema(),
|
|
1165
|
-
});
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
/** @returns {CreateFaqSchema} */
|
|
1169
|
-
static CreateFaqSchema() {
|
|
1170
|
-
return Joi.object({
|
|
1171
|
-
faq: ContentApplicationModel.FAQ(),
|
|
1172
|
-
});
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
/** @returns {CreateTagRequestSchema} */
|
|
1176
|
-
static CreateTagRequestSchema() {
|
|
1177
|
-
return Joi.object({
|
|
1178
|
-
tags: Joi.array().items(ContentApplicationModel.CreateTagSchema()),
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
/** @returns {CreateTagSchema} */
|
|
1183
|
-
static CreateTagSchema() {
|
|
1184
|
-
return Joi.object({
|
|
1185
|
-
_id: Joi.string().allow(""),
|
|
1186
|
-
attributes: Joi.any(),
|
|
1187
|
-
content: Joi.string().allow(""),
|
|
1188
|
-
name: Joi.string().allow(""),
|
|
1189
|
-
pages: Joi.array().items(Joi.any()),
|
|
1190
|
-
position: Joi.string().allow(""),
|
|
1191
|
-
sub_type: Joi.string().allow(""),
|
|
1192
|
-
type: Joi.string().allow(""),
|
|
1193
|
-
url: Joi.string().allow(""),
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
740
|
/** @returns {CronSchedule} */
|
|
1198
741
|
static CronSchedule() {
|
|
1199
742
|
return Joi.object({
|
|
@@ -1213,56 +756,6 @@ class ContentApplicationModel {
|
|
|
1213
756
|
});
|
|
1214
757
|
}
|
|
1215
758
|
|
|
1216
|
-
/** @returns {CustomPage} */
|
|
1217
|
-
static CustomPage() {
|
|
1218
|
-
return Joi.object({
|
|
1219
|
-
data: ContentApplicationModel.CustomPageSchema(),
|
|
1220
|
-
});
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
/** @returns {CustomPageSchema} */
|
|
1224
|
-
static CustomPageSchema() {
|
|
1225
|
-
return Joi.object({
|
|
1226
|
-
_id: Joi.string().allow(""),
|
|
1227
|
-
_schedule: ContentApplicationModel.ScheduleSchema(),
|
|
1228
|
-
application: Joi.string().allow(""),
|
|
1229
|
-
content: Joi.array().items(Joi.any()),
|
|
1230
|
-
created_by: ContentApplicationModel.CreatedBySchema(),
|
|
1231
|
-
date_meta: ContentApplicationModel.DateMeta(),
|
|
1232
|
-
description: Joi.string().allow(""),
|
|
1233
|
-
orientation: Joi.string().allow(""),
|
|
1234
|
-
platform: Joi.string().allow(""),
|
|
1235
|
-
published: Joi.boolean(),
|
|
1236
|
-
slug: Joi.string().allow(""),
|
|
1237
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
1238
|
-
title: Joi.string().allow(""),
|
|
1239
|
-
type: Joi.string().allow(""),
|
|
1240
|
-
});
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
/** @returns {DataLoaderResetResponseSchema} */
|
|
1244
|
-
static DataLoaderResetResponseSchema() {
|
|
1245
|
-
return Joi.object({
|
|
1246
|
-
reset: Joi.string().allow(""),
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
/** @returns {DataLoaderResponseSchema} */
|
|
1251
|
-
static DataLoaderResponseSchema() {
|
|
1252
|
-
return Joi.object({
|
|
1253
|
-
__source: ContentApplicationModel.DataLoaderSourceSchema(),
|
|
1254
|
-
_id: Joi.string().allow(""),
|
|
1255
|
-
application: Joi.string().allow(""),
|
|
1256
|
-
company: Joi.string().allow(""),
|
|
1257
|
-
content: Joi.string().allow(""),
|
|
1258
|
-
name: Joi.string().allow(""),
|
|
1259
|
-
operation_id: Joi.string().allow(""),
|
|
1260
|
-
service: Joi.string().allow(""),
|
|
1261
|
-
type: Joi.string().allow(""),
|
|
1262
|
-
url: Joi.string().allow(""),
|
|
1263
|
-
});
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
759
|
/** @returns {DataLoaderSchema} */
|
|
1267
760
|
static DataLoaderSchema() {
|
|
1268
761
|
return Joi.object({
|
|
@@ -1300,13 +793,6 @@ class ContentApplicationModel {
|
|
|
1300
793
|
});
|
|
1301
794
|
}
|
|
1302
795
|
|
|
1303
|
-
/** @returns {DefaultNavigationResponse} */
|
|
1304
|
-
static DefaultNavigationResponse() {
|
|
1305
|
-
return Joi.object({
|
|
1306
|
-
items: Joi.array().items(ContentApplicationModel.NavigationSchema()),
|
|
1307
|
-
});
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
796
|
/** @returns {Detail} */
|
|
1311
797
|
static Detail() {
|
|
1312
798
|
return Joi.object({
|
|
@@ -1316,16 +802,6 @@ class ContentApplicationModel {
|
|
|
1316
802
|
});
|
|
1317
803
|
}
|
|
1318
804
|
|
|
1319
|
-
/** @returns {EditorMeta} */
|
|
1320
|
-
static EditorMeta() {
|
|
1321
|
-
return Joi.object({
|
|
1322
|
-
background_color: Joi.string().allow(""),
|
|
1323
|
-
content: Joi.string().allow(""),
|
|
1324
|
-
content_type: Joi.string().allow(""),
|
|
1325
|
-
foreground_color: Joi.string().allow(""),
|
|
1326
|
-
});
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
805
|
/** @returns {EmailProperties} */
|
|
1330
806
|
static EmailProperties() {
|
|
1331
807
|
return Joi.object({
|
|
@@ -1342,15 +818,6 @@ class ContentApplicationModel {
|
|
|
1342
818
|
});
|
|
1343
819
|
}
|
|
1344
820
|
|
|
1345
|
-
/** @returns {FAQ} */
|
|
1346
|
-
static FAQ() {
|
|
1347
|
-
return Joi.object({
|
|
1348
|
-
answer: Joi.string().allow(""),
|
|
1349
|
-
question: Joi.string().allow(""),
|
|
1350
|
-
slug: Joi.string().allow(""),
|
|
1351
|
-
});
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
821
|
/** @returns {FAQCategorySchema} */
|
|
1355
822
|
static FAQCategorySchema() {
|
|
1356
823
|
return Joi.object({
|
|
@@ -1385,23 +852,6 @@ class ContentApplicationModel {
|
|
|
1385
852
|
});
|
|
1386
853
|
}
|
|
1387
854
|
|
|
1388
|
-
/** @returns {FeatureImage} */
|
|
1389
|
-
static FeatureImage() {
|
|
1390
|
-
return Joi.object({
|
|
1391
|
-
secure_url: Joi.string().allow(""),
|
|
1392
|
-
});
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
/** @returns {GetAnnouncementListSchema} */
|
|
1396
|
-
static GetAnnouncementListSchema() {
|
|
1397
|
-
return Joi.object({
|
|
1398
|
-
items: Joi.array().items(
|
|
1399
|
-
ContentApplicationModel.AdminAnnouncementSchema()
|
|
1400
|
-
),
|
|
1401
|
-
page: ContentApplicationModel.Page(),
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
855
|
/** @returns {GetFaqCategoriesSchema} */
|
|
1406
856
|
static GetFaqCategoriesSchema() {
|
|
1407
857
|
return Joi.object({
|
|
@@ -1423,35 +873,6 @@ class ContentApplicationModel {
|
|
|
1423
873
|
});
|
|
1424
874
|
}
|
|
1425
875
|
|
|
1426
|
-
/** @returns {HandpickedTagSchema} */
|
|
1427
|
-
static HandpickedTagSchema() {
|
|
1428
|
-
return Joi.object({
|
|
1429
|
-
attributes: Joi.any(),
|
|
1430
|
-
content: Joi.string().allow(""),
|
|
1431
|
-
name: Joi.string().allow(""),
|
|
1432
|
-
position: Joi.string().allow(""),
|
|
1433
|
-
sub_type: Joi.string().allow(""),
|
|
1434
|
-
type: Joi.string().allow(""),
|
|
1435
|
-
url: Joi.string().allow(""),
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
/** @returns {LandingPage} */
|
|
1440
|
-
static LandingPage() {
|
|
1441
|
-
return Joi.object({
|
|
1442
|
-
data: ContentApplicationModel.LandingPageSchema(),
|
|
1443
|
-
success: Joi.boolean(),
|
|
1444
|
-
});
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
/** @returns {LandingPageGetResponse} */
|
|
1448
|
-
static LandingPageGetResponse() {
|
|
1449
|
-
return Joi.object({
|
|
1450
|
-
items: Joi.array().items(ContentApplicationModel.LandingPageSchema()),
|
|
1451
|
-
page: ContentApplicationModel.Page(),
|
|
1452
|
-
});
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
876
|
/** @returns {LandingPageSchema} */
|
|
1456
877
|
static LandingPageSchema() {
|
|
1457
878
|
return Joi.object({
|
|
@@ -1483,22 +904,6 @@ class ContentApplicationModel {
|
|
|
1483
904
|
});
|
|
1484
905
|
}
|
|
1485
906
|
|
|
1486
|
-
/** @returns {Navigation} */
|
|
1487
|
-
static Navigation() {
|
|
1488
|
-
return Joi.object({
|
|
1489
|
-
_id: Joi.string().allow(""),
|
|
1490
|
-
application: Joi.string().allow(""),
|
|
1491
|
-
created_by: ContentApplicationModel.CreatedBySchema(),
|
|
1492
|
-
date_meta: ContentApplicationModel.DateMeta(),
|
|
1493
|
-
name: Joi.string().allow(""),
|
|
1494
|
-
navigation: ContentApplicationModel.NavigationReference(),
|
|
1495
|
-
orientation: Joi.string().allow(""),
|
|
1496
|
-
platform: Joi.string().allow(""),
|
|
1497
|
-
position: Joi.string().allow(""),
|
|
1498
|
-
slug: Joi.string().allow(""),
|
|
1499
|
-
});
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
907
|
/** @returns {NavigationGetResponse} */
|
|
1503
908
|
static NavigationGetResponse() {
|
|
1504
909
|
return Joi.object({
|
|
@@ -1523,19 +928,6 @@ class ContentApplicationModel {
|
|
|
1523
928
|
}).id("NavigationReference");
|
|
1524
929
|
}
|
|
1525
930
|
|
|
1526
|
-
/** @returns {NavigationRequest} */
|
|
1527
|
-
static NavigationRequest() {
|
|
1528
|
-
return Joi.object({
|
|
1529
|
-
name: Joi.string().allow(""),
|
|
1530
|
-
navigation: Joi.array().items(
|
|
1531
|
-
ContentApplicationModel.NavigationReference()
|
|
1532
|
-
),
|
|
1533
|
-
orientation: ContentApplicationModel.Orientation(),
|
|
1534
|
-
platform: Joi.array().items(Joi.string().allow("")),
|
|
1535
|
-
slug: Joi.string().allow(""),
|
|
1536
|
-
});
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
931
|
/** @returns {NavigationSchema} */
|
|
1540
932
|
static NavigationSchema() {
|
|
1541
933
|
return Joi.object({
|
|
@@ -1584,14 +976,6 @@ class ContentApplicationModel {
|
|
|
1584
976
|
});
|
|
1585
977
|
}
|
|
1586
978
|
|
|
1587
|
-
/** @returns {PageContent} */
|
|
1588
|
-
static PageContent() {
|
|
1589
|
-
return Joi.object({
|
|
1590
|
-
type: Joi.string().allow(""),
|
|
1591
|
-
value: Joi.any(),
|
|
1592
|
-
});
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
979
|
/** @returns {PageGetResponse} */
|
|
1596
980
|
static PageGetResponse() {
|
|
1597
981
|
return Joi.object({
|
|
@@ -1600,51 +984,6 @@ class ContentApplicationModel {
|
|
|
1600
984
|
});
|
|
1601
985
|
}
|
|
1602
986
|
|
|
1603
|
-
/** @returns {PageMeta} */
|
|
1604
|
-
static PageMeta() {
|
|
1605
|
-
return Joi.object({
|
|
1606
|
-
key: Joi.string().allow(""),
|
|
1607
|
-
value: Joi.any(),
|
|
1608
|
-
});
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
/** @returns {PageMetaSchema} */
|
|
1612
|
-
static PageMetaSchema() {
|
|
1613
|
-
return Joi.object({
|
|
1614
|
-
application_id: Joi.string().allow(""),
|
|
1615
|
-
custom_pages: Joi.array().items(ContentApplicationModel.PageSchema()),
|
|
1616
|
-
system_pages: Joi.array().items(
|
|
1617
|
-
ContentApplicationModel.NavigationSchema()
|
|
1618
|
-
),
|
|
1619
|
-
});
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
/** @returns {PagePublishRequest} */
|
|
1623
|
-
static PagePublishRequest() {
|
|
1624
|
-
return Joi.object({
|
|
1625
|
-
publish: Joi.boolean(),
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
/** @returns {PageRequest} */
|
|
1630
|
-
static PageRequest() {
|
|
1631
|
-
return Joi.object({
|
|
1632
|
-
_custom_json: Joi.any(),
|
|
1633
|
-
_schedule: ContentApplicationModel.CronSchedule(),
|
|
1634
|
-
application: Joi.string().allow(""),
|
|
1635
|
-
author: ContentApplicationModel.Author(),
|
|
1636
|
-
content: Joi.array().items(Joi.any()),
|
|
1637
|
-
feature_image: ContentApplicationModel.Asset(),
|
|
1638
|
-
orientation: Joi.string().allow(""),
|
|
1639
|
-
published: Joi.boolean(),
|
|
1640
|
-
reading_time: Joi.string().allow(""),
|
|
1641
|
-
seo: ContentApplicationModel.SEO(),
|
|
1642
|
-
slug: Joi.string().allow(""),
|
|
1643
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
1644
|
-
title: Joi.string().allow(""),
|
|
1645
|
-
});
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
987
|
/** @returns {PageSchema} */
|
|
1649
988
|
static PageSchema() {
|
|
1650
989
|
return Joi.object({
|
|
@@ -1673,52 +1012,6 @@ class ContentApplicationModel {
|
|
|
1673
1012
|
});
|
|
1674
1013
|
}
|
|
1675
1014
|
|
|
1676
|
-
/** @returns {PageSpec} */
|
|
1677
|
-
static PageSpec() {
|
|
1678
|
-
return Joi.object({
|
|
1679
|
-
specifications: Joi.array().items(Joi.any()),
|
|
1680
|
-
});
|
|
1681
|
-
}
|
|
1682
|
-
|
|
1683
|
-
/** @returns {PageSpecItem} */
|
|
1684
|
-
static PageSpecItem() {
|
|
1685
|
-
return Joi.object({
|
|
1686
|
-
display_name: Joi.string().allow(""),
|
|
1687
|
-
page_type: Joi.string().allow(""),
|
|
1688
|
-
params: Joi.array().items(ContentApplicationModel.PageSpecParam()),
|
|
1689
|
-
query: Joi.array().items(ContentApplicationModel.PageSpecParam()),
|
|
1690
|
-
});
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
/** @returns {PageSpecParam} */
|
|
1694
|
-
static PageSpecParam() {
|
|
1695
|
-
return Joi.object({
|
|
1696
|
-
key: Joi.string().allow(""),
|
|
1697
|
-
required: Joi.boolean(),
|
|
1698
|
-
});
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
/** @returns {PathMappingSchema} */
|
|
1702
|
-
static PathMappingSchema() {
|
|
1703
|
-
return Joi.object({
|
|
1704
|
-
__source: ContentApplicationModel.PathSourceSchema(),
|
|
1705
|
-
_id: Joi.string().allow(""),
|
|
1706
|
-
application: Joi.string().allow(""),
|
|
1707
|
-
created_at: Joi.string().allow(""),
|
|
1708
|
-
redirect_from: Joi.string().allow(""),
|
|
1709
|
-
redirect_to: Joi.string().allow(""),
|
|
1710
|
-
updated_at: Joi.string().allow(""),
|
|
1711
|
-
});
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
/** @returns {PathSourceSchema} */
|
|
1715
|
-
static PathSourceSchema() {
|
|
1716
|
-
return Joi.object({
|
|
1717
|
-
id: Joi.string().allow(""),
|
|
1718
|
-
type: Joi.string().allow(""),
|
|
1719
|
-
});
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
1015
|
/** @returns {PhoneProperties} */
|
|
1723
1016
|
static PhoneProperties() {
|
|
1724
1017
|
return Joi.object({
|
|
@@ -1736,13 +1029,6 @@ class ContentApplicationModel {
|
|
|
1736
1029
|
});
|
|
1737
1030
|
}
|
|
1738
1031
|
|
|
1739
|
-
/** @returns {RemoveHandpickedSchema} */
|
|
1740
|
-
static RemoveHandpickedSchema() {
|
|
1741
|
-
return Joi.object({
|
|
1742
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
1743
|
-
});
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
1032
|
/** @returns {ResourceContent} */
|
|
1747
1033
|
static ResourceContent() {
|
|
1748
1034
|
return Joi.object({
|
|
@@ -1757,7 +1043,7 @@ class ContentApplicationModel {
|
|
|
1757
1043
|
cron: Joi.string().allow(""),
|
|
1758
1044
|
duration: Joi.number(),
|
|
1759
1045
|
end: Joi.string().allow(""),
|
|
1760
|
-
next_schedule: Joi.array().items(
|
|
1046
|
+
next_schedule: Joi.array().items(ContentApplicationModel.NextSchedule()),
|
|
1761
1047
|
start: Joi.string().allow(""),
|
|
1762
1048
|
});
|
|
1763
1049
|
}
|
|
@@ -1800,7 +1086,9 @@ class ContentApplicationModel {
|
|
|
1800
1086
|
app: Joi.string().allow(""),
|
|
1801
1087
|
cannonical_enabled: Joi.boolean(),
|
|
1802
1088
|
created_at: Joi.string().allow(""),
|
|
1803
|
-
custom_meta_tags: Joi.array().items(
|
|
1089
|
+
custom_meta_tags: Joi.array().items(
|
|
1090
|
+
ContentApplicationModel.CustomMetaTag()
|
|
1091
|
+
),
|
|
1804
1092
|
details: ContentApplicationModel.Detail(),
|
|
1805
1093
|
robots_txt: Joi.string().allow(""),
|
|
1806
1094
|
sitemap_enabled: Joi.boolean(),
|
|
@@ -1808,14 +1096,6 @@ class ContentApplicationModel {
|
|
|
1808
1096
|
});
|
|
1809
1097
|
}
|
|
1810
1098
|
|
|
1811
|
-
/** @returns {Slideshow} */
|
|
1812
|
-
static Slideshow() {
|
|
1813
|
-
return Joi.object({
|
|
1814
|
-
data: ContentApplicationModel.SlideshowSchema(),
|
|
1815
|
-
success: Joi.boolean(),
|
|
1816
|
-
});
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
1099
|
/** @returns {SlideshowGetResponse} */
|
|
1820
1100
|
static SlideshowGetResponse() {
|
|
1821
1101
|
return Joi.object({
|
|
@@ -1836,17 +1116,6 @@ class ContentApplicationModel {
|
|
|
1836
1116
|
});
|
|
1837
1117
|
}
|
|
1838
1118
|
|
|
1839
|
-
/** @returns {SlideshowRequest} */
|
|
1840
|
-
static SlideshowRequest() {
|
|
1841
|
-
return Joi.object({
|
|
1842
|
-
active: Joi.boolean(),
|
|
1843
|
-
configuration: ContentApplicationModel.ConfigurationSchema(),
|
|
1844
|
-
media: ContentApplicationModel.SlideshowMedia(),
|
|
1845
|
-
platform: Joi.string().allow(""),
|
|
1846
|
-
slug: Joi.string().allow(""),
|
|
1847
|
-
});
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
1119
|
/** @returns {SlideshowSchema} */
|
|
1851
1120
|
static SlideshowSchema() {
|
|
1852
1121
|
return Joi.object({
|
|
@@ -1876,13 +1145,6 @@ class ContentApplicationModel {
|
|
|
1876
1145
|
});
|
|
1877
1146
|
}
|
|
1878
1147
|
|
|
1879
|
-
/** @returns {TagDeleteSuccessResponse} */
|
|
1880
|
-
static TagDeleteSuccessResponse() {
|
|
1881
|
-
return Joi.object({
|
|
1882
|
-
success: Joi.boolean(),
|
|
1883
|
-
});
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
1148
|
/** @returns {TagSchema} */
|
|
1887
1149
|
static TagSchema() {
|
|
1888
1150
|
return Joi.object({
|
|
@@ -1916,20 +1178,6 @@ class ContentApplicationModel {
|
|
|
1916
1178
|
});
|
|
1917
1179
|
}
|
|
1918
1180
|
|
|
1919
|
-
/** @returns {UpdateFaqCategoryRequestSchema} */
|
|
1920
|
-
static UpdateFaqCategoryRequestSchema() {
|
|
1921
|
-
return Joi.object({
|
|
1922
|
-
category: ContentApplicationModel.CategorySchema(),
|
|
1923
|
-
});
|
|
1924
|
-
}
|
|
1925
|
-
|
|
1926
|
-
/** @returns {UpdateHandpickedSchema} */
|
|
1927
|
-
static UpdateHandpickedSchema() {
|
|
1928
|
-
return Joi.object({
|
|
1929
|
-
tag: ContentApplicationModel.HandpickedTagSchema(),
|
|
1930
|
-
});
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
1181
|
/**
|
|
1934
1182
|
* Enum: PageType Used By: Content
|
|
1935
1183
|
*
|