@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.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 +1 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
- package/sdk/application/Cart/CartApplicationClient.js +173 -511
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -61
- package/sdk/application/Content/ContentApplicationClient.js +183 -366
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +28 -117
- package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -54
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
- package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +240 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +330 -502
- package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -100
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -31
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +562 -1289
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -248
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2391 -924
- package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +406 -403
- package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
- package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +937 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1307 -3536
- package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -521
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -9
- package/sdk/platform/Share/SharePlatformModel.js +45 -5
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -2,6 +2,11 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const ContentPlatformModel = require("./ContentPlatformModel");
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @typedef AddApplicationLanguageParam
|
|
7
|
+
* @property {ContentPlatformModel.ApplicationLanguageCreate} body
|
|
8
|
+
*/
|
|
9
|
+
|
|
5
10
|
/**
|
|
6
11
|
* @typedef AddDataLoaderParam
|
|
7
12
|
* @property {ContentPlatformModel.DataLoaderSchema} body
|
|
@@ -24,25 +29,25 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
24
29
|
*/
|
|
25
30
|
|
|
26
31
|
/**
|
|
27
|
-
* @typedef
|
|
28
|
-
* @property {ContentPlatformModel.
|
|
32
|
+
* @typedef BulkUnPublishApplicationLanguageParam
|
|
33
|
+
* @property {ContentPlatformModel.unPublishApplicationLanguage} body
|
|
29
34
|
*/
|
|
30
35
|
|
|
31
36
|
/**
|
|
32
|
-
* @typedef
|
|
33
|
-
* @property {
|
|
34
|
-
* @property {string} resourceId
|
|
35
|
-
* @property {ContentPlatformModel.CustomFieldRequestSchema} body
|
|
37
|
+
* @typedef CreateAnnouncementParam
|
|
38
|
+
* @property {ContentPlatformModel.AdminAnnouncementSchema} body
|
|
36
39
|
*/
|
|
37
40
|
|
|
38
41
|
/**
|
|
39
42
|
* @typedef CreateAppCustomFieldDefinitionParam
|
|
43
|
+
* @property {string} resource
|
|
40
44
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
41
45
|
*/
|
|
42
46
|
|
|
43
47
|
/**
|
|
44
|
-
* @typedef
|
|
45
|
-
* @property {
|
|
48
|
+
* @typedef CreateAppCustomObjectBySlugParam
|
|
49
|
+
* @property {string} definitionSlug
|
|
50
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
46
51
|
*/
|
|
47
52
|
|
|
48
53
|
/**
|
|
@@ -51,18 +56,18 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
51
56
|
*/
|
|
52
57
|
|
|
53
58
|
/**
|
|
54
|
-
* @typedef
|
|
55
|
-
* @property {ContentPlatformModel.
|
|
59
|
+
* @typedef CreateApplicationResourceTranslationParam
|
|
60
|
+
* @property {ContentPlatformModel.ResourceTranslationCreate} body
|
|
56
61
|
*/
|
|
57
62
|
|
|
58
63
|
/**
|
|
59
|
-
* @typedef
|
|
60
|
-
* @property {ContentPlatformModel.
|
|
64
|
+
* @typedef CreateBlogParam
|
|
65
|
+
* @property {ContentPlatformModel.BlogPayload} body
|
|
61
66
|
*/
|
|
62
67
|
|
|
63
68
|
/**
|
|
64
|
-
* @typedef
|
|
65
|
-
* @property {ContentPlatformModel.
|
|
69
|
+
* @typedef CreateFaqCategoryParam
|
|
70
|
+
* @property {ContentPlatformModel.CreateFaqCategoryRequestSchema} body
|
|
66
71
|
*/
|
|
67
72
|
|
|
68
73
|
/**
|
|
@@ -72,17 +77,12 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
72
77
|
|
|
73
78
|
/**
|
|
74
79
|
* @typedef CreateNavigationParam
|
|
75
|
-
* @property {ContentPlatformModel.
|
|
80
|
+
* @property {ContentPlatformModel.NavigationPayload} body
|
|
76
81
|
*/
|
|
77
82
|
|
|
78
83
|
/**
|
|
79
84
|
* @typedef CreatePageParam
|
|
80
|
-
* @property {ContentPlatformModel.
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @typedef CreatePagePreviewParam
|
|
85
|
-
* @property {ContentPlatformModel.PageRequest} body
|
|
85
|
+
* @property {ContentPlatformModel.PagePayload} body
|
|
86
86
|
*/
|
|
87
87
|
|
|
88
88
|
/**
|
|
@@ -90,7 +90,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
90
90
|
* @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
|
|
91
91
|
*/
|
|
92
92
|
|
|
93
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* @typedef CreateTranslateUILabelsParam
|
|
95
|
+
* @property {ContentPlatformModel.TranslateUiLabelsCreate} body
|
|
96
|
+
*/
|
|
94
97
|
|
|
95
98
|
/**
|
|
96
99
|
* @typedef DeleteAnnouncementParam
|
|
@@ -98,24 +101,30 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
98
101
|
*/
|
|
99
102
|
|
|
100
103
|
/**
|
|
101
|
-
* @typedef
|
|
102
|
-
* @property {string}
|
|
104
|
+
* @typedef DeleteAppCustomFieldDefinitionBySlugParam
|
|
105
|
+
* @property {string} slug
|
|
106
|
+
* @property {string} resource
|
|
107
|
+
* @property {string} namespace
|
|
103
108
|
*/
|
|
104
109
|
|
|
105
110
|
/**
|
|
106
|
-
* @typedef
|
|
107
|
-
* @property {string}
|
|
108
|
-
* @property {string}
|
|
109
|
-
* @property {string} ids
|
|
111
|
+
* @typedef DeleteAppCustomObjectBySlugParam
|
|
112
|
+
* @property {string} definitionSlug
|
|
113
|
+
* @property {string} slug
|
|
110
114
|
*/
|
|
111
115
|
|
|
112
116
|
/**
|
|
113
|
-
* @typedef
|
|
114
|
-
* @property {string}
|
|
117
|
+
* @typedef DeleteAppCustomObjectDefinitionBySlugParam
|
|
118
|
+
* @property {string} slug
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @typedef DeleteApplicationLanguageParam
|
|
123
|
+
* @property {string} locale
|
|
115
124
|
*/
|
|
116
125
|
|
|
117
126
|
/**
|
|
118
|
-
* @typedef
|
|
127
|
+
* @typedef DeleteApplicationResourceTranslationParam
|
|
119
128
|
* @property {string} id
|
|
120
129
|
*/
|
|
121
130
|
|
|
@@ -162,7 +171,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
162
171
|
|
|
163
172
|
/**
|
|
164
173
|
* @typedef DeleteSEOMarkupSchemaParam
|
|
165
|
-
* @property {string}
|
|
174
|
+
* @property {string} id - Alphanumeric ID allotted to a SEO Markup Schema
|
|
166
175
|
* Template created within a business.
|
|
167
176
|
*/
|
|
168
177
|
|
|
@@ -180,20 +189,21 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
180
189
|
|
|
181
190
|
/**
|
|
182
191
|
* @typedef EditSEOMarkupSchemaParam
|
|
183
|
-
* @property {string}
|
|
192
|
+
* @property {string} id - Alphanumeric ID allotted to a SEO Markup Schema
|
|
184
193
|
* Template created within a business.
|
|
185
194
|
* @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
|
|
186
195
|
*/
|
|
187
196
|
|
|
188
197
|
/**
|
|
189
|
-
* @typedef
|
|
190
|
-
* @property {string}
|
|
198
|
+
* @typedef ExportAppCustomObjectEntriesBySlugParam
|
|
199
|
+
* @property {string} slug
|
|
191
200
|
*/
|
|
192
201
|
|
|
193
202
|
/**
|
|
194
203
|
* @typedef GenerateSEOTitleParam
|
|
195
|
-
* @property {
|
|
196
|
-
* generated. Possible values are:
|
|
204
|
+
* @property {ContentPlatformModel.GenerationEntityType} type - String
|
|
205
|
+
* representing the type of SEO content to be generated. Possible values are:
|
|
206
|
+
* title, description
|
|
197
207
|
* @property {ContentPlatformModel.GenerateSEOContent} body
|
|
198
208
|
*/
|
|
199
209
|
|
|
@@ -211,8 +221,21 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
211
221
|
*/
|
|
212
222
|
|
|
213
223
|
/**
|
|
214
|
-
* @typedef
|
|
215
|
-
* @property {string}
|
|
224
|
+
* @typedef GetAppCustomFieldDefinitionByResourceParam
|
|
225
|
+
* @property {string} pageNo
|
|
226
|
+
* @property {string} pageSize
|
|
227
|
+
* @property {string} resource
|
|
228
|
+
* @property {string} [types]
|
|
229
|
+
* @property {string} [search]
|
|
230
|
+
* @property {string} [slugs]
|
|
231
|
+
* @property {string} [namespaces]
|
|
232
|
+
*/
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @typedef GetAppCustomFieldDefinitionBySlugParam
|
|
236
|
+
* @property {string} slug
|
|
237
|
+
* @property {string} resource
|
|
238
|
+
* @property {string} namespace
|
|
216
239
|
*/
|
|
217
240
|
|
|
218
241
|
/**
|
|
@@ -223,36 +246,26 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
223
246
|
* @property {string} [types]
|
|
224
247
|
* @property {string} [search]
|
|
225
248
|
* @property {string} [slugs]
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* @typedef GetAppCustomFieldJobsParam
|
|
230
|
-
* @property {string} page
|
|
231
|
-
* @property {string} pageSize
|
|
232
|
-
* @property {string} actionType
|
|
249
|
+
* @property {string} [namespaces]
|
|
233
250
|
*/
|
|
234
251
|
|
|
235
252
|
/** @typedef GetAppCustomFieldTypesParam */
|
|
236
253
|
|
|
237
254
|
/**
|
|
238
|
-
* @typedef
|
|
239
|
-
* @property {string} resource
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* @typedef GetAppCustomFieldsByResourceIdParam
|
|
255
|
+
* @typedef GetAppCustomFieldsByResourceSlugParam
|
|
244
256
|
* @property {string} resource
|
|
245
|
-
* @property {string}
|
|
257
|
+
* @property {string} resourceSlug
|
|
246
258
|
*/
|
|
247
259
|
|
|
248
260
|
/**
|
|
249
|
-
* @typedef
|
|
250
|
-
* @property {string}
|
|
261
|
+
* @typedef GetAppCustomObjectBySlugParam
|
|
262
|
+
* @property {string} definitionSlug
|
|
263
|
+
* @property {string} slug
|
|
251
264
|
*/
|
|
252
265
|
|
|
253
266
|
/**
|
|
254
|
-
* @typedef
|
|
255
|
-
* @property {string}
|
|
267
|
+
* @typedef GetAppCustomObjectDefinitionBySlugParam
|
|
268
|
+
* @property {string} slug
|
|
256
269
|
*/
|
|
257
270
|
|
|
258
271
|
/**
|
|
@@ -263,10 +276,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
263
276
|
*/
|
|
264
277
|
|
|
265
278
|
/**
|
|
266
|
-
* @typedef
|
|
267
|
-
* @property {string} [definitionId]
|
|
279
|
+
* @typedef GetAppCustomObjectsBySlugParam
|
|
268
280
|
* @property {string} pageNo
|
|
269
281
|
* @property {string} pageSize
|
|
282
|
+
* @property {string} definitionSlug
|
|
270
283
|
*/
|
|
271
284
|
|
|
272
285
|
/**
|
|
@@ -278,6 +291,15 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
278
291
|
|
|
279
292
|
/** @typedef GetAppResourcesParam */
|
|
280
293
|
|
|
294
|
+
/** @typedef GetApplicationLanguagesParam */
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @typedef GetApplicationResourceTranslationsParam
|
|
298
|
+
* @property {string} locale
|
|
299
|
+
* @property {string} type
|
|
300
|
+
* @property {string} resourceId
|
|
301
|
+
*/
|
|
302
|
+
|
|
281
303
|
/**
|
|
282
304
|
* @typedef GetBlogBySlugParam
|
|
283
305
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
@@ -297,18 +319,6 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
297
319
|
* @property {string} [status] - Blogs retrieve based on the status passed.
|
|
298
320
|
*/
|
|
299
321
|
|
|
300
|
-
/**
|
|
301
|
-
* @typedef GetComponentByIdParam
|
|
302
|
-
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
303
|
-
* a blog page. You can get slug value of a blog from `getBlogs` API.
|
|
304
|
-
*/
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* @typedef GetDataLoaderApiSpecsParam
|
|
308
|
-
* @property {string} dataLoader - Alphanumeric ID allotted to an application
|
|
309
|
-
* created within a business account.
|
|
310
|
-
*/
|
|
311
|
-
|
|
312
322
|
/** @typedef GetDataLoadersParam */
|
|
313
323
|
|
|
314
324
|
/**
|
|
@@ -347,7 +357,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
347
357
|
* can get slug value of an FAQ category from `getFaqCategories` API.
|
|
348
358
|
*/
|
|
349
359
|
|
|
350
|
-
/**
|
|
360
|
+
/**
|
|
361
|
+
* @typedef GetInjectableTagsParam
|
|
362
|
+
* @property {boolean} [all] - Get all tags irrespective of the creator of tags
|
|
363
|
+
*/
|
|
351
364
|
|
|
352
365
|
/**
|
|
353
366
|
* @typedef GetLandingPagesParam
|
|
@@ -412,7 +425,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
412
425
|
|
|
413
426
|
/**
|
|
414
427
|
* @typedef GetSEOMarkupSchemaParam
|
|
415
|
-
* @property {string}
|
|
428
|
+
* @property {string} id - Alphanumeric ID allotted to a SEO Markup Schema
|
|
416
429
|
* Template created within a business.
|
|
417
430
|
*/
|
|
418
431
|
|
|
@@ -429,8 +442,21 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
429
442
|
/** @typedef GetSupportInformationParam */
|
|
430
443
|
|
|
431
444
|
/**
|
|
432
|
-
* @typedef
|
|
433
|
-
* @property {string}
|
|
445
|
+
* @typedef GetTranslateUILabelsParam
|
|
446
|
+
* @property {string} [templateThemeId] - Unique id of template theme
|
|
447
|
+
* @property {string} [themeId] - Unique id of theme
|
|
448
|
+
* @property {string} [locale] - Multilingual locale
|
|
449
|
+
* @property {string} [type] - Filter Translate Ui Labels by type
|
|
450
|
+
*/
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* @typedef GetTranslateUILabelsByIdParam
|
|
454
|
+
* @property {string} id - ID of the Translate Ui Labels
|
|
455
|
+
*/
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* @typedef ImportAppCustomObjectEntriesBySlugParam
|
|
459
|
+
* @property {string} slug
|
|
434
460
|
* @property {ContentPlatformModel.CustomObjectBulkSchema} body
|
|
435
461
|
*/
|
|
436
462
|
|
|
@@ -446,8 +472,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
446
472
|
*/
|
|
447
473
|
|
|
448
474
|
/**
|
|
449
|
-
* @typedef
|
|
450
|
-
* @property {string}
|
|
475
|
+
* @typedef SampleAppCustomObjectBulkEntryBySlugParam
|
|
476
|
+
* @property {string} slug
|
|
451
477
|
*/
|
|
452
478
|
|
|
453
479
|
/**
|
|
@@ -468,34 +494,49 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
468
494
|
*/
|
|
469
495
|
|
|
470
496
|
/**
|
|
471
|
-
* @typedef
|
|
497
|
+
* @typedef UpdateAppCustomFieldByResourceSlugParam
|
|
472
498
|
* @property {string} resource
|
|
473
|
-
* @property {string}
|
|
499
|
+
* @property {string} resourceSlug
|
|
474
500
|
* @property {ContentPlatformModel.CustomFieldRequestSchema} body
|
|
475
501
|
*/
|
|
476
502
|
|
|
477
503
|
/**
|
|
478
|
-
* @typedef
|
|
479
|
-
* @property {string}
|
|
504
|
+
* @typedef UpdateAppCustomFieldDefinitionBySlugParam
|
|
505
|
+
* @property {string} slug
|
|
506
|
+
* @property {string} resource
|
|
507
|
+
* @property {string} namespace
|
|
480
508
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
481
509
|
*/
|
|
482
510
|
|
|
483
511
|
/**
|
|
484
|
-
* @typedef
|
|
485
|
-
* @property {string}
|
|
486
|
-
* @property {
|
|
512
|
+
* @typedef UpdateAppCustomObjectBySlugParam
|
|
513
|
+
* @property {string} definitionSlug
|
|
514
|
+
* @property {string} slug
|
|
515
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
487
516
|
*/
|
|
488
517
|
|
|
489
518
|
/**
|
|
490
|
-
* @typedef
|
|
491
|
-
* @property {string}
|
|
519
|
+
* @typedef UpdateAppCustomObjectDefinitionBySlugParam
|
|
520
|
+
* @property {string} slug
|
|
492
521
|
* @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
|
|
493
522
|
*/
|
|
494
523
|
|
|
524
|
+
/**
|
|
525
|
+
* @typedef UpdateApplicationLanguageStatusParam
|
|
526
|
+
* @property {string} locale
|
|
527
|
+
* @property {ContentPlatformModel.ApplicationLanguageUpdate} body
|
|
528
|
+
*/
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @typedef UpdateApplicationResourceTranslationParam
|
|
532
|
+
* @property {string} id
|
|
533
|
+
* @property {ContentPlatformModel.ResourceTranslationUpdate} body
|
|
534
|
+
*/
|
|
535
|
+
|
|
495
536
|
/**
|
|
496
537
|
* @typedef UpdateBlogParam
|
|
497
538
|
* @property {string} id - ID allotted to the blog.
|
|
498
|
-
* @property {ContentPlatformModel.
|
|
539
|
+
* @property {ContentPlatformModel.BlogPayload} body
|
|
499
540
|
*/
|
|
500
541
|
|
|
501
542
|
/**
|
|
@@ -530,7 +571,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
530
571
|
/**
|
|
531
572
|
* @typedef UpdateNavigationParam
|
|
532
573
|
* @property {string} id - ID allotted to the navigation.
|
|
533
|
-
* @property {ContentPlatformModel.
|
|
574
|
+
* @property {ContentPlatformModel.NavigationPayload} body
|
|
534
575
|
*/
|
|
535
576
|
|
|
536
577
|
/**
|
|
@@ -543,7 +584,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
543
584
|
* @typedef UpdatePagePreviewParam
|
|
544
585
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
545
586
|
* a page. You can get slug value of a page from `getPages` API.
|
|
546
|
-
* @property {ContentPlatformModel.
|
|
587
|
+
* @property {ContentPlatformModel.PagePublishPayload} body
|
|
547
588
|
*/
|
|
548
589
|
|
|
549
590
|
/**
|
|
@@ -562,7 +603,25 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
562
603
|
* @property {ContentPlatformModel.Support} body
|
|
563
604
|
*/
|
|
564
605
|
|
|
606
|
+
/**
|
|
607
|
+
* @typedef UpdateTranslateUILabelsParam
|
|
608
|
+
* @property {string} id - The unique identifier of the Translate Ui Labels to update
|
|
609
|
+
* @property {ContentPlatformModel.StaticResourceUpdate} body
|
|
610
|
+
*/
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* @typedef UpsertApplicationResourceTranslationInBulkParam
|
|
614
|
+
* @property {ContentPlatformModel.ResourceTranslationList} body
|
|
615
|
+
*/
|
|
616
|
+
|
|
565
617
|
class ContentPlatformApplicationValidator {
|
|
618
|
+
/** @returns {AddApplicationLanguageParam} */
|
|
619
|
+
static addApplicationLanguage() {
|
|
620
|
+
return Joi.object({
|
|
621
|
+
body: ContentPlatformModel.ApplicationLanguageCreate().required(),
|
|
622
|
+
}).required();
|
|
623
|
+
}
|
|
624
|
+
|
|
566
625
|
/** @returns {AddDataLoaderParam} */
|
|
567
626
|
static addDataLoader() {
|
|
568
627
|
return Joi.object({
|
|
@@ -592,33 +651,33 @@ class ContentPlatformApplicationValidator {
|
|
|
592
651
|
}).required();
|
|
593
652
|
}
|
|
594
653
|
|
|
595
|
-
/** @returns {
|
|
596
|
-
static
|
|
654
|
+
/** @returns {BulkUnPublishApplicationLanguageParam} */
|
|
655
|
+
static bulkUnPublishApplicationLanguage() {
|
|
597
656
|
return Joi.object({
|
|
598
|
-
body: ContentPlatformModel.
|
|
657
|
+
body: ContentPlatformModel.unPublishApplicationLanguage().required(),
|
|
599
658
|
}).required();
|
|
600
659
|
}
|
|
601
660
|
|
|
602
|
-
/** @returns {
|
|
603
|
-
static
|
|
661
|
+
/** @returns {CreateAnnouncementParam} */
|
|
662
|
+
static createAnnouncement() {
|
|
604
663
|
return Joi.object({
|
|
605
|
-
|
|
606
|
-
resourceId: Joi.string().allow("").required(),
|
|
607
|
-
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
664
|
+
body: ContentPlatformModel.AdminAnnouncementSchema().required(),
|
|
608
665
|
}).required();
|
|
609
666
|
}
|
|
610
667
|
|
|
611
668
|
/** @returns {CreateAppCustomFieldDefinitionParam} */
|
|
612
669
|
static createAppCustomFieldDefinition() {
|
|
613
670
|
return Joi.object({
|
|
671
|
+
resource: Joi.string().allow("").required(),
|
|
614
672
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
615
673
|
}).required();
|
|
616
674
|
}
|
|
617
675
|
|
|
618
|
-
/** @returns {
|
|
619
|
-
static
|
|
676
|
+
/** @returns {CreateAppCustomObjectBySlugParam} */
|
|
677
|
+
static createAppCustomObjectBySlug() {
|
|
620
678
|
return Joi.object({
|
|
621
|
-
|
|
679
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
680
|
+
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
622
681
|
}).required();
|
|
623
682
|
}
|
|
624
683
|
|
|
@@ -629,10 +688,17 @@ class ContentPlatformApplicationValidator {
|
|
|
629
688
|
}).required();
|
|
630
689
|
}
|
|
631
690
|
|
|
691
|
+
/** @returns {CreateApplicationResourceTranslationParam} */
|
|
692
|
+
static createApplicationResourceTranslation() {
|
|
693
|
+
return Joi.object({
|
|
694
|
+
body: ContentPlatformModel.ResourceTranslationCreate().required(),
|
|
695
|
+
}).required();
|
|
696
|
+
}
|
|
697
|
+
|
|
632
698
|
/** @returns {CreateBlogParam} */
|
|
633
699
|
static createBlog() {
|
|
634
700
|
return Joi.object({
|
|
635
|
-
body: ContentPlatformModel.
|
|
701
|
+
body: ContentPlatformModel.BlogPayload().required(),
|
|
636
702
|
}).required();
|
|
637
703
|
}
|
|
638
704
|
|
|
@@ -643,13 +709,6 @@ class ContentPlatformApplicationValidator {
|
|
|
643
709
|
}).required();
|
|
644
710
|
}
|
|
645
711
|
|
|
646
|
-
/** @returns {CreateInjectableTagParam} */
|
|
647
|
-
static createInjectableTag() {
|
|
648
|
-
return Joi.object({
|
|
649
|
-
body: ContentPlatformModel.CreateTagRequestSchema().required(),
|
|
650
|
-
}).required();
|
|
651
|
-
}
|
|
652
|
-
|
|
653
712
|
/** @returns {CreateLandingPageParam} */
|
|
654
713
|
static createLandingPage() {
|
|
655
714
|
return Joi.object({
|
|
@@ -660,21 +719,14 @@ class ContentPlatformApplicationValidator {
|
|
|
660
719
|
/** @returns {CreateNavigationParam} */
|
|
661
720
|
static createNavigation() {
|
|
662
721
|
return Joi.object({
|
|
663
|
-
body: ContentPlatformModel.
|
|
722
|
+
body: ContentPlatformModel.NavigationPayload().required(),
|
|
664
723
|
}).required();
|
|
665
724
|
}
|
|
666
725
|
|
|
667
726
|
/** @returns {CreatePageParam} */
|
|
668
727
|
static createPage() {
|
|
669
728
|
return Joi.object({
|
|
670
|
-
body: ContentPlatformModel.
|
|
671
|
-
}).required();
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
/** @returns {CreatePagePreviewParam} */
|
|
675
|
-
static createPagePreview() {
|
|
676
|
-
return Joi.object({
|
|
677
|
-
body: ContentPlatformModel.PageRequest().required(),
|
|
729
|
+
body: ContentPlatformModel.PagePayload().required(),
|
|
678
730
|
}).required();
|
|
679
731
|
}
|
|
680
732
|
|
|
@@ -685,9 +737,11 @@ class ContentPlatformApplicationValidator {
|
|
|
685
737
|
}).required();
|
|
686
738
|
}
|
|
687
739
|
|
|
688
|
-
/** @returns {
|
|
689
|
-
static
|
|
690
|
-
return Joi.object({
|
|
740
|
+
/** @returns {CreateTranslateUILabelsParam} */
|
|
741
|
+
static createTranslateUILabels() {
|
|
742
|
+
return Joi.object({
|
|
743
|
+
body: ContentPlatformModel.TranslateUiLabelsCreate().required(),
|
|
744
|
+
}).required();
|
|
691
745
|
}
|
|
692
746
|
|
|
693
747
|
/** @returns {DeleteAnnouncementParam} */
|
|
@@ -697,31 +751,39 @@ class ContentPlatformApplicationValidator {
|
|
|
697
751
|
}).required();
|
|
698
752
|
}
|
|
699
753
|
|
|
700
|
-
/** @returns {
|
|
701
|
-
static
|
|
754
|
+
/** @returns {DeleteAppCustomFieldDefinitionBySlugParam} */
|
|
755
|
+
static deleteAppCustomFieldDefinitionBySlug() {
|
|
702
756
|
return Joi.object({
|
|
703
|
-
|
|
757
|
+
slug: Joi.string().allow("").required(),
|
|
758
|
+
resource: Joi.string().allow("").required(),
|
|
759
|
+
namespace: Joi.string().allow("").required(),
|
|
704
760
|
}).required();
|
|
705
761
|
}
|
|
706
762
|
|
|
707
|
-
/** @returns {
|
|
708
|
-
static
|
|
763
|
+
/** @returns {DeleteAppCustomObjectBySlugParam} */
|
|
764
|
+
static deleteAppCustomObjectBySlug() {
|
|
709
765
|
return Joi.object({
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
ids: Joi.string().allow("").required(),
|
|
766
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
767
|
+
slug: Joi.string().allow("").required(),
|
|
713
768
|
}).required();
|
|
714
769
|
}
|
|
715
770
|
|
|
716
|
-
/** @returns {
|
|
717
|
-
static
|
|
771
|
+
/** @returns {DeleteAppCustomObjectDefinitionBySlugParam} */
|
|
772
|
+
static deleteAppCustomObjectDefinitionBySlug() {
|
|
718
773
|
return Joi.object({
|
|
719
|
-
|
|
774
|
+
slug: Joi.string().allow("").required(),
|
|
720
775
|
}).required();
|
|
721
776
|
}
|
|
722
777
|
|
|
723
|
-
/** @returns {
|
|
724
|
-
static
|
|
778
|
+
/** @returns {DeleteApplicationLanguageParam} */
|
|
779
|
+
static deleteApplicationLanguage() {
|
|
780
|
+
return Joi.object({
|
|
781
|
+
locale: Joi.string().allow("").required(),
|
|
782
|
+
}).required();
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/** @returns {DeleteApplicationResourceTranslationParam} */
|
|
786
|
+
static deleteApplicationResourceTranslation() {
|
|
725
787
|
return Joi.object({
|
|
726
788
|
id: Joi.string().allow("").required(),
|
|
727
789
|
}).required();
|
|
@@ -787,7 +849,7 @@ class ContentPlatformApplicationValidator {
|
|
|
787
849
|
/** @returns {DeleteSEOMarkupSchemaParam} */
|
|
788
850
|
static deleteSEOMarkupSchema() {
|
|
789
851
|
return Joi.object({
|
|
790
|
-
|
|
852
|
+
id: Joi.string().allow("").required(),
|
|
791
853
|
}).required();
|
|
792
854
|
}
|
|
793
855
|
|
|
@@ -810,22 +872,22 @@ class ContentPlatformApplicationValidator {
|
|
|
810
872
|
/** @returns {EditSEOMarkupSchemaParam} */
|
|
811
873
|
static editSEOMarkupSchema() {
|
|
812
874
|
return Joi.object({
|
|
813
|
-
|
|
875
|
+
id: Joi.string().allow("").required(),
|
|
814
876
|
body: ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody().required(),
|
|
815
877
|
}).required();
|
|
816
878
|
}
|
|
817
879
|
|
|
818
|
-
/** @returns {
|
|
819
|
-
static
|
|
880
|
+
/** @returns {ExportAppCustomObjectEntriesBySlugParam} */
|
|
881
|
+
static exportAppCustomObjectEntriesBySlug() {
|
|
820
882
|
return Joi.object({
|
|
821
|
-
|
|
883
|
+
slug: Joi.string().allow("").required(),
|
|
822
884
|
}).required();
|
|
823
885
|
}
|
|
824
886
|
|
|
825
887
|
/** @returns {GenerateSEOTitleParam} */
|
|
826
888
|
static generateSEOTitle() {
|
|
827
889
|
return Joi.object({
|
|
828
|
-
type:
|
|
890
|
+
type: ContentPlatformModel.GenerationEntityType().required(),
|
|
829
891
|
body: ContentPlatformModel.GenerateSEOContent().required(),
|
|
830
892
|
}).required();
|
|
831
893
|
}
|
|
@@ -845,10 +907,25 @@ class ContentPlatformApplicationValidator {
|
|
|
845
907
|
}).required();
|
|
846
908
|
}
|
|
847
909
|
|
|
848
|
-
/** @returns {
|
|
849
|
-
static
|
|
910
|
+
/** @returns {GetAppCustomFieldDefinitionByResourceParam} */
|
|
911
|
+
static getAppCustomFieldDefinitionByResource() {
|
|
850
912
|
return Joi.object({
|
|
851
|
-
|
|
913
|
+
pageNo: Joi.string().allow("").required(),
|
|
914
|
+
pageSize: Joi.string().allow("").required(),
|
|
915
|
+
resource: Joi.string().allow("").required(),
|
|
916
|
+
types: Joi.string().allow(""),
|
|
917
|
+
search: Joi.string().allow(""),
|
|
918
|
+
slugs: Joi.string().allow(""),
|
|
919
|
+
namespaces: Joi.string().allow(""),
|
|
920
|
+
}).required();
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/** @returns {GetAppCustomFieldDefinitionBySlugParam} */
|
|
924
|
+
static getAppCustomFieldDefinitionBySlug() {
|
|
925
|
+
return Joi.object({
|
|
926
|
+
slug: Joi.string().allow("").required(),
|
|
927
|
+
resource: Joi.string().allow("").required(),
|
|
928
|
+
namespace: Joi.string().allow("").required(),
|
|
852
929
|
}).required();
|
|
853
930
|
}
|
|
854
931
|
|
|
@@ -861,15 +938,7 @@ class ContentPlatformApplicationValidator {
|
|
|
861
938
|
types: Joi.string().allow(""),
|
|
862
939
|
search: Joi.string().allow(""),
|
|
863
940
|
slugs: Joi.string().allow(""),
|
|
864
|
-
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
/** @returns {GetAppCustomFieldJobsParam} */
|
|
868
|
-
static getAppCustomFieldJobs() {
|
|
869
|
-
return Joi.object({
|
|
870
|
-
page: Joi.string().allow("").required(),
|
|
871
|
-
pageSize: Joi.string().allow("").required(),
|
|
872
|
-
actionType: Joi.string().allow("").required(),
|
|
941
|
+
namespaces: Joi.string().allow(""),
|
|
873
942
|
}).required();
|
|
874
943
|
}
|
|
875
944
|
|
|
@@ -878,32 +947,26 @@ class ContentPlatformApplicationValidator {
|
|
|
878
947
|
return Joi.object({}).required();
|
|
879
948
|
}
|
|
880
949
|
|
|
881
|
-
/** @returns {
|
|
882
|
-
static
|
|
950
|
+
/** @returns {GetAppCustomFieldsByResourceSlugParam} */
|
|
951
|
+
static getAppCustomFieldsByResourceSlug() {
|
|
883
952
|
return Joi.object({
|
|
884
953
|
resource: Joi.string().allow("").required(),
|
|
954
|
+
resourceSlug: Joi.string().allow("").required(),
|
|
885
955
|
}).required();
|
|
886
956
|
}
|
|
887
957
|
|
|
888
|
-
/** @returns {
|
|
889
|
-
static
|
|
890
|
-
return Joi.object({
|
|
891
|
-
resource: Joi.string().allow("").required(),
|
|
892
|
-
resourceId: Joi.string().allow("").required(),
|
|
893
|
-
}).required();
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
/** @returns {GetAppCustomObjectParam} */
|
|
897
|
-
static getAppCustomObject() {
|
|
958
|
+
/** @returns {GetAppCustomObjectBySlugParam} */
|
|
959
|
+
static getAppCustomObjectBySlug() {
|
|
898
960
|
return Joi.object({
|
|
899
|
-
|
|
961
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
962
|
+
slug: Joi.string().allow("").required(),
|
|
900
963
|
}).required();
|
|
901
964
|
}
|
|
902
965
|
|
|
903
|
-
/** @returns {
|
|
904
|
-
static
|
|
966
|
+
/** @returns {GetAppCustomObjectDefinitionBySlugParam} */
|
|
967
|
+
static getAppCustomObjectDefinitionBySlug() {
|
|
905
968
|
return Joi.object({
|
|
906
|
-
|
|
969
|
+
slug: Joi.string().allow("").required(),
|
|
907
970
|
}).required();
|
|
908
971
|
}
|
|
909
972
|
|
|
@@ -916,12 +979,12 @@ class ContentPlatformApplicationValidator {
|
|
|
916
979
|
}).required();
|
|
917
980
|
}
|
|
918
981
|
|
|
919
|
-
/** @returns {
|
|
920
|
-
static
|
|
982
|
+
/** @returns {GetAppCustomObjectsBySlugParam} */
|
|
983
|
+
static getAppCustomObjectsBySlug() {
|
|
921
984
|
return Joi.object({
|
|
922
|
-
definitionId: Joi.string().allow(""),
|
|
923
985
|
pageNo: Joi.string().allow("").required(),
|
|
924
986
|
pageSize: Joi.string().allow("").required(),
|
|
987
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
925
988
|
}).required();
|
|
926
989
|
}
|
|
927
990
|
|
|
@@ -939,6 +1002,20 @@ class ContentPlatformApplicationValidator {
|
|
|
939
1002
|
return Joi.object({}).required();
|
|
940
1003
|
}
|
|
941
1004
|
|
|
1005
|
+
/** @returns {GetApplicationLanguagesParam} */
|
|
1006
|
+
static getApplicationLanguages() {
|
|
1007
|
+
return Joi.object({}).required();
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
/** @returns {GetApplicationResourceTranslationsParam} */
|
|
1011
|
+
static getApplicationResourceTranslations() {
|
|
1012
|
+
return Joi.object({
|
|
1013
|
+
locale: Joi.string().allow("").required(),
|
|
1014
|
+
type: Joi.string().allow("").required(),
|
|
1015
|
+
resourceId: Joi.string().allow("").required(),
|
|
1016
|
+
}).required();
|
|
1017
|
+
}
|
|
1018
|
+
|
|
942
1019
|
/** @returns {GetBlogBySlugParam} */
|
|
943
1020
|
static getBlogBySlug() {
|
|
944
1021
|
return Joi.object({
|
|
@@ -959,20 +1036,6 @@ class ContentPlatformApplicationValidator {
|
|
|
959
1036
|
}).required();
|
|
960
1037
|
}
|
|
961
1038
|
|
|
962
|
-
/** @returns {GetComponentByIdParam} */
|
|
963
|
-
static getComponentById() {
|
|
964
|
-
return Joi.object({
|
|
965
|
-
slug: Joi.string().allow("").required(),
|
|
966
|
-
}).required();
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
/** @returns {GetDataLoaderApiSpecsParam} */
|
|
970
|
-
static getDataLoaderApiSpecs() {
|
|
971
|
-
return Joi.object({
|
|
972
|
-
dataLoader: Joi.string().allow("").required(),
|
|
973
|
-
}).required();
|
|
974
|
-
}
|
|
975
|
-
|
|
976
1039
|
/** @returns {GetDataLoadersParam} */
|
|
977
1040
|
static getDataLoaders() {
|
|
978
1041
|
return Joi.object({}).required();
|
|
@@ -1025,7 +1088,9 @@ class ContentPlatformApplicationValidator {
|
|
|
1025
1088
|
|
|
1026
1089
|
/** @returns {GetInjectableTagsParam} */
|
|
1027
1090
|
static getInjectableTags() {
|
|
1028
|
-
return Joi.object({
|
|
1091
|
+
return Joi.object({
|
|
1092
|
+
all: Joi.boolean(),
|
|
1093
|
+
}).required();
|
|
1029
1094
|
}
|
|
1030
1095
|
|
|
1031
1096
|
/** @returns {GetLandingPagesParam} */
|
|
@@ -1106,7 +1171,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1106
1171
|
/** @returns {GetSEOMarkupSchemaParam} */
|
|
1107
1172
|
static getSEOMarkupSchema() {
|
|
1108
1173
|
return Joi.object({
|
|
1109
|
-
|
|
1174
|
+
id: Joi.string().allow("").required(),
|
|
1110
1175
|
}).required();
|
|
1111
1176
|
}
|
|
1112
1177
|
|
|
@@ -1125,10 +1190,27 @@ class ContentPlatformApplicationValidator {
|
|
|
1125
1190
|
return Joi.object({}).required();
|
|
1126
1191
|
}
|
|
1127
1192
|
|
|
1128
|
-
/** @returns {
|
|
1129
|
-
static
|
|
1193
|
+
/** @returns {GetTranslateUILabelsParam} */
|
|
1194
|
+
static getTranslateUILabels() {
|
|
1195
|
+
return Joi.object({
|
|
1196
|
+
templateThemeId: Joi.string().allow(""),
|
|
1197
|
+
themeId: Joi.string().allow(""),
|
|
1198
|
+
locale: Joi.string().allow(""),
|
|
1199
|
+
type: Joi.string().allow(""),
|
|
1200
|
+
}).required();
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
/** @returns {GetTranslateUILabelsByIdParam} */
|
|
1204
|
+
static getTranslateUILabelsById() {
|
|
1130
1205
|
return Joi.object({
|
|
1131
|
-
|
|
1206
|
+
id: Joi.string().allow("").required(),
|
|
1207
|
+
}).required();
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
/** @returns {ImportAppCustomObjectEntriesBySlugParam} */
|
|
1211
|
+
static importAppCustomObjectEntriesBySlug() {
|
|
1212
|
+
return Joi.object({
|
|
1213
|
+
slug: Joi.string().allow("").required(),
|
|
1132
1214
|
body: ContentPlatformModel.CustomObjectBulkSchema().required(),
|
|
1133
1215
|
}).required();
|
|
1134
1216
|
}
|
|
@@ -1148,10 +1230,10 @@ class ContentPlatformApplicationValidator {
|
|
|
1148
1230
|
}).required();
|
|
1149
1231
|
}
|
|
1150
1232
|
|
|
1151
|
-
/** @returns {
|
|
1152
|
-
static
|
|
1233
|
+
/** @returns {SampleAppCustomObjectBulkEntryBySlugParam} */
|
|
1234
|
+
static sampleAppCustomObjectBulkEntryBySlug() {
|
|
1153
1235
|
return Joi.object({
|
|
1154
|
-
|
|
1236
|
+
slug: Joi.string().allow("").required(),
|
|
1155
1237
|
}).required();
|
|
1156
1238
|
}
|
|
1157
1239
|
|
|
@@ -1178,44 +1260,63 @@ class ContentPlatformApplicationValidator {
|
|
|
1178
1260
|
}).required();
|
|
1179
1261
|
}
|
|
1180
1262
|
|
|
1181
|
-
/** @returns {
|
|
1182
|
-
static
|
|
1263
|
+
/** @returns {UpdateAppCustomFieldByResourceSlugParam} */
|
|
1264
|
+
static updateAppCustomFieldByResourceSlug() {
|
|
1183
1265
|
return Joi.object({
|
|
1184
1266
|
resource: Joi.string().allow("").required(),
|
|
1185
|
-
|
|
1267
|
+
resourceSlug: Joi.string().allow("").required(),
|
|
1186
1268
|
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
1187
1269
|
}).required();
|
|
1188
1270
|
}
|
|
1189
1271
|
|
|
1190
|
-
/** @returns {
|
|
1191
|
-
static
|
|
1272
|
+
/** @returns {UpdateAppCustomFieldDefinitionBySlugParam} */
|
|
1273
|
+
static updateAppCustomFieldDefinitionBySlug() {
|
|
1192
1274
|
return Joi.object({
|
|
1193
|
-
|
|
1275
|
+
slug: Joi.string().allow("").required(),
|
|
1276
|
+
resource: Joi.string().allow("").required(),
|
|
1277
|
+
namespace: Joi.string().allow("").required(),
|
|
1194
1278
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
1195
1279
|
}).required();
|
|
1196
1280
|
}
|
|
1197
1281
|
|
|
1198
|
-
/** @returns {
|
|
1199
|
-
static
|
|
1282
|
+
/** @returns {UpdateAppCustomObjectBySlugParam} */
|
|
1283
|
+
static updateAppCustomObjectBySlug() {
|
|
1200
1284
|
return Joi.object({
|
|
1201
|
-
|
|
1202
|
-
|
|
1285
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
1286
|
+
slug: Joi.string().allow("").required(),
|
|
1287
|
+
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
1203
1288
|
}).required();
|
|
1204
1289
|
}
|
|
1205
1290
|
|
|
1206
|
-
/** @returns {
|
|
1207
|
-
static
|
|
1291
|
+
/** @returns {UpdateAppCustomObjectDefinitionBySlugParam} */
|
|
1292
|
+
static updateAppCustomObjectDefinitionBySlug() {
|
|
1208
1293
|
return Joi.object({
|
|
1209
|
-
|
|
1294
|
+
slug: Joi.string().allow("").required(),
|
|
1210
1295
|
body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
|
|
1211
1296
|
}).required();
|
|
1212
1297
|
}
|
|
1213
1298
|
|
|
1299
|
+
/** @returns {UpdateApplicationLanguageStatusParam} */
|
|
1300
|
+
static updateApplicationLanguageStatus() {
|
|
1301
|
+
return Joi.object({
|
|
1302
|
+
locale: Joi.string().allow("").required(),
|
|
1303
|
+
body: ContentPlatformModel.ApplicationLanguageUpdate().required(),
|
|
1304
|
+
}).required();
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
/** @returns {UpdateApplicationResourceTranslationParam} */
|
|
1308
|
+
static updateApplicationResourceTranslation() {
|
|
1309
|
+
return Joi.object({
|
|
1310
|
+
id: Joi.string().allow("").required(),
|
|
1311
|
+
body: ContentPlatformModel.ResourceTranslationUpdate().required(),
|
|
1312
|
+
}).required();
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1214
1315
|
/** @returns {UpdateBlogParam} */
|
|
1215
1316
|
static updateBlog() {
|
|
1216
1317
|
return Joi.object({
|
|
1217
1318
|
id: Joi.string().allow("").required(),
|
|
1218
|
-
body: ContentPlatformModel.
|
|
1319
|
+
body: ContentPlatformModel.BlogPayload().required(),
|
|
1219
1320
|
}).required();
|
|
1220
1321
|
}
|
|
1221
1322
|
|
|
@@ -1262,7 +1363,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1262
1363
|
static updateNavigation() {
|
|
1263
1364
|
return Joi.object({
|
|
1264
1365
|
id: Joi.string().allow("").required(),
|
|
1265
|
-
body: ContentPlatformModel.
|
|
1366
|
+
body: ContentPlatformModel.NavigationPayload().required(),
|
|
1266
1367
|
}).required();
|
|
1267
1368
|
}
|
|
1268
1369
|
|
|
@@ -1278,7 +1379,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1278
1379
|
static updatePagePreview() {
|
|
1279
1380
|
return Joi.object({
|
|
1280
1381
|
slug: Joi.string().allow("").required(),
|
|
1281
|
-
body: ContentPlatformModel.
|
|
1382
|
+
body: ContentPlatformModel.PagePublishPayload().required(),
|
|
1282
1383
|
}).required();
|
|
1283
1384
|
}
|
|
1284
1385
|
|
|
@@ -1303,6 +1404,22 @@ class ContentPlatformApplicationValidator {
|
|
|
1303
1404
|
body: ContentPlatformModel.Support().required(),
|
|
1304
1405
|
}).required();
|
|
1305
1406
|
}
|
|
1407
|
+
|
|
1408
|
+
/** @returns {UpdateTranslateUILabelsParam} */
|
|
1409
|
+
static updateTranslateUILabels() {
|
|
1410
|
+
return Joi.object({
|
|
1411
|
+
id: Joi.string().allow("").required(),
|
|
1412
|
+
|
|
1413
|
+
body: ContentPlatformModel.StaticResourceUpdate().required(),
|
|
1414
|
+
}).required();
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/** @returns {UpsertApplicationResourceTranslationInBulkParam} */
|
|
1418
|
+
static upsertApplicationResourceTranslationInBulk() {
|
|
1419
|
+
return Joi.object({
|
|
1420
|
+
body: ContentPlatformModel.ResourceTranslationList().required(),
|
|
1421
|
+
}).required();
|
|
1422
|
+
}
|
|
1306
1423
|
}
|
|
1307
1424
|
|
|
1308
1425
|
module.exports = ContentPlatformApplicationValidator;
|