@gofynd/fdk-client-javascript 1.4.15-beta.13 → 1.4.15-beta.15
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 +23 -26
- package/package.json +5 -1
- package/sdk/application/ApplicationClient.d.ts +5 -6
- package/sdk/application/ApplicationClient.js +24 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
- package/sdk/application/Cart/CartApplicationClient.js +444 -76
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
- package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
- package/sdk/application/Content/ContentApplicationClient.js +274 -111
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
- package/sdk/application/Lead/LeadApplicationClient.js +6 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
- package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
- package/sdk/application/Order/OrderApplicationClient.js +217 -17
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
- package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
- package/sdk/application/User/UserApplicationClient.d.ts +103 -53
- package/sdk/application/User/UserApplicationClient.js +308 -49
- package/sdk/common/AxiosHelper.js +11 -4
- package/sdk/common/Constant.d.ts +27 -4
- package/sdk/common/Constant.js +33 -6
- package/sdk/common/utils.d.ts +10 -0
- package/sdk/common/utils.js +24 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
- package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
- package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
- package/sdk/partner/PartnerClient.d.ts +5 -2
- package/sdk/partner/PartnerClient.js +21 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
- package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
- package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
- package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
- 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 +15 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
- 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 +266 -203
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
- package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
- package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9571 -2674
- package/sdk/platform/Catalog/CatalogPlatformModel.js +5081 -2019
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
- package/sdk/platform/Common/CommonPlatformModel.js +25 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
- package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
- package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
- package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
- package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
- package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
- package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
- package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
- package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
- package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
- package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
- package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
- package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
- package/sdk/platform/PlatformApplicationClient.js +0 -4
- package/sdk/platform/PlatformClient.d.ts +5 -4
- package/sdk/platform/PlatformClient.js +32 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
- package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
- package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
- package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
- package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
- package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
- package/sdk/platform/User/UserPlatformModel.js +607 -46
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
- package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
- package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -2
- package/sdk/platform/index.js +0 -4
- 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 +5 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
- package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
- package/sdk/public/Content/ContentPublicClient.js +1067 -17
- package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
- package/sdk/public/Content/ContentPublicModel.js +751 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
- package/sdk/public/Content/ContentPublicValidator.js +119 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +1 -1
- 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 +5 -2
- package/sdk/public/PublicClient.js +16 -6
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +81 -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/utility.d.ts +3 -0
- package/utility.js +7 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
- package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
- package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
- 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 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
|
@@ -3,20 +3,25 @@ const Joi = require("joi");
|
|
|
3
3
|
const ContentPlatformModel = require("./ContentPlatformModel");
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @typedef
|
|
7
|
-
* @property {
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
* @typedef AddCompanyLanguageParam
|
|
7
|
+
* @property {ContentPlatformModel.CompanyLanguageCreate} body
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef CreateCompanyResourceTranslationParam
|
|
12
|
+
* @property {ContentPlatformModel.ResourceTranslationCreate} body
|
|
10
13
|
*/
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
16
|
* @typedef CreateCustomFieldDefinitionParam
|
|
17
|
+
* @property {string} resource
|
|
14
18
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
15
19
|
*/
|
|
16
20
|
|
|
17
21
|
/**
|
|
18
|
-
* @typedef
|
|
19
|
-
* @property {
|
|
22
|
+
* @typedef CreateCustomObjectBySlugParam
|
|
23
|
+
* @property {string} definitionSlug
|
|
24
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
20
25
|
*/
|
|
21
26
|
|
|
22
27
|
/**
|
|
@@ -25,60 +30,109 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
25
30
|
*/
|
|
26
31
|
|
|
27
32
|
/**
|
|
28
|
-
* @typedef
|
|
29
|
-
* @property {string}
|
|
33
|
+
* @typedef DeleteCompanyLanguageParam
|
|
34
|
+
* @property {string} locale
|
|
30
35
|
*/
|
|
31
36
|
|
|
32
37
|
/**
|
|
33
|
-
* @typedef
|
|
34
|
-
* @property {string}
|
|
38
|
+
* @typedef DeleteCompanyResourceTranslationParam
|
|
39
|
+
* @property {string} id
|
|
35
40
|
*/
|
|
36
41
|
|
|
37
42
|
/**
|
|
38
|
-
* @typedef
|
|
39
|
-
* @property {string}
|
|
43
|
+
* @typedef DeleteCustomFieldDefinitionBySlugParam
|
|
44
|
+
* @property {string} slug
|
|
45
|
+
* @property {string} resource
|
|
46
|
+
* @property {string} namespace
|
|
40
47
|
*/
|
|
41
48
|
|
|
42
49
|
/**
|
|
43
|
-
* @typedef
|
|
44
|
-
* @property {string}
|
|
50
|
+
* @typedef DeleteCustomFieldsByResourceSlugParam
|
|
51
|
+
* @property {string} resource
|
|
52
|
+
* @property {string} resourceSlug
|
|
53
|
+
* @property {string} ids
|
|
45
54
|
*/
|
|
46
55
|
|
|
47
56
|
/**
|
|
48
|
-
* @typedef
|
|
49
|
-
* @property {string}
|
|
57
|
+
* @typedef DeleteCustomObjectBySlugParam
|
|
58
|
+
* @property {string} definitionSlug
|
|
59
|
+
* @property {string} slug
|
|
50
60
|
*/
|
|
51
61
|
|
|
52
62
|
/**
|
|
53
|
-
* @typedef
|
|
63
|
+
* @typedef DeleteCustomObjectDefinitionBySlugParam
|
|
64
|
+
* @property {string} slug
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @typedef ExportCustomObjectEntriesBySlugParam
|
|
69
|
+
* @property {string} slug
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @typedef GetAllResourceDefinitionsParam
|
|
74
|
+
* @property {string} [translatableResourceId]
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
/** @typedef GetAllSectionsParam */
|
|
78
|
+
|
|
79
|
+
/** @typedef GetAllTranslatableResourcesParam */
|
|
80
|
+
|
|
81
|
+
/** @typedef GetCompanyLanguagesParam */
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @typedef GetCompanyResourceTranslationParam
|
|
85
|
+
* @property {string} locale
|
|
86
|
+
* @property {string} type
|
|
87
|
+
* @property {string} resourceId
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @typedef GetCustomFieldDefinitionByResourceParam
|
|
54
92
|
* @property {string} pageNo
|
|
55
93
|
* @property {string} pageSize
|
|
56
|
-
* @property {string}
|
|
57
|
-
* @property {string} [
|
|
94
|
+
* @property {string} resource
|
|
95
|
+
* @property {string} [types]
|
|
58
96
|
* @property {string} [search]
|
|
97
|
+
* @property {string} [slugs]
|
|
98
|
+
* @property {string} [namespaces]
|
|
59
99
|
*/
|
|
60
100
|
|
|
61
|
-
/** @typedef GetCustomFieldTypesParam */
|
|
62
|
-
|
|
63
101
|
/**
|
|
64
|
-
* @typedef
|
|
102
|
+
* @typedef GetCustomFieldDefinitionBySlugParam
|
|
103
|
+
* @property {string} slug
|
|
65
104
|
* @property {string} resource
|
|
105
|
+
* @property {string} namespace
|
|
66
106
|
*/
|
|
67
107
|
|
|
68
108
|
/**
|
|
69
|
-
* @typedef
|
|
109
|
+
* @typedef GetCustomFieldDefinitionsParam
|
|
110
|
+
* @property {string} pageNo
|
|
111
|
+
* @property {string} pageSize
|
|
112
|
+
* @property {string} [resources]
|
|
113
|
+
* @property {string} [types]
|
|
114
|
+
* @property {string} [search]
|
|
115
|
+
* @property {string} [slugs]
|
|
116
|
+
* @property {string} [namespaces]
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
/** @typedef GetCustomFieldTypesParam */
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @typedef GetCustomFieldsByResourceSlugParam
|
|
70
123
|
* @property {string} resource
|
|
71
|
-
* @property {string}
|
|
124
|
+
* @property {string} resourceSlug
|
|
72
125
|
*/
|
|
73
126
|
|
|
74
127
|
/**
|
|
75
|
-
* @typedef
|
|
76
|
-
* @property {string}
|
|
128
|
+
* @typedef GetCustomObjectBySlugParam
|
|
129
|
+
* @property {string} definitionSlug
|
|
130
|
+
* @property {string} slug
|
|
77
131
|
*/
|
|
78
132
|
|
|
79
133
|
/**
|
|
80
|
-
* @typedef
|
|
81
|
-
* @property {string}
|
|
134
|
+
* @typedef GetCustomObjectDefinitionBySlugParam
|
|
135
|
+
* @property {string} slug
|
|
82
136
|
*/
|
|
83
137
|
|
|
84
138
|
/**
|
|
@@ -89,10 +143,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
89
143
|
*/
|
|
90
144
|
|
|
91
145
|
/**
|
|
92
|
-
* @typedef
|
|
93
|
-
* @property {string} [definitionId]
|
|
146
|
+
* @typedef GetCustomObjectsBySlugParam
|
|
94
147
|
* @property {string} pageNo
|
|
95
148
|
* @property {string} pageSize
|
|
149
|
+
* @property {string} definitionSlug
|
|
96
150
|
*/
|
|
97
151
|
|
|
98
152
|
/**
|
|
@@ -102,58 +156,107 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
102
156
|
* @property {string} actionType
|
|
103
157
|
*/
|
|
104
158
|
|
|
159
|
+
/**
|
|
160
|
+
* @typedef GetResourceDefinitionByIdParam
|
|
161
|
+
* @property {string} id
|
|
162
|
+
*/
|
|
163
|
+
|
|
105
164
|
/** @typedef GetResourcesParam */
|
|
106
165
|
|
|
107
166
|
/**
|
|
108
|
-
* @typedef
|
|
109
|
-
* @property {string}
|
|
167
|
+
* @typedef GetSectionByIdParam
|
|
168
|
+
* @property {string} id
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @typedef GetTranslatableResourceByIdParam
|
|
173
|
+
* @property {string} id
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @typedef GetTranslatableResourcesBySectionIdParam
|
|
178
|
+
* @property {string} id
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @typedef ImportCustomObjectEntriesBySlugParam
|
|
183
|
+
* @property {string} slug
|
|
110
184
|
* @property {ContentPlatformModel.CustomObjectBulkSchema} body
|
|
111
185
|
*/
|
|
112
186
|
|
|
113
187
|
/**
|
|
114
|
-
* @typedef
|
|
115
|
-
* @property {string}
|
|
188
|
+
* @typedef SampleCustomObjectBulkEntryBySlugParam
|
|
189
|
+
* @property {string} slug
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @typedef UpdateCompanyLanguageDefaultParam
|
|
194
|
+
* @property {string} locale
|
|
195
|
+
* @property {ContentPlatformModel.CompanyLanguageUpdate} body
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @typedef UpdateCompanyResourceTranslationParam
|
|
200
|
+
* @property {string} id
|
|
201
|
+
* @property {ContentPlatformModel.ResourceTranslationUpdate} body
|
|
116
202
|
*/
|
|
117
203
|
|
|
118
204
|
/**
|
|
119
|
-
* @typedef
|
|
120
|
-
* @property {string}
|
|
205
|
+
* @typedef UpdateCustomFieldByResourceSlugParam
|
|
206
|
+
* @property {string} resource
|
|
207
|
+
* @property {string} resourceSlug
|
|
208
|
+
* @property {ContentPlatformModel.CustomFieldRequestSchema} body
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @typedef UpdateCustomFieldDefinitionBySlugParam
|
|
213
|
+
* @property {string} slug
|
|
214
|
+
* @property {string} resource
|
|
215
|
+
* @property {string} namespace
|
|
121
216
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
122
217
|
*/
|
|
123
218
|
|
|
124
219
|
/**
|
|
125
|
-
* @typedef
|
|
126
|
-
* @property {string}
|
|
127
|
-
* @property {
|
|
220
|
+
* @typedef UpdateCustomObjectBySlugParam
|
|
221
|
+
* @property {string} definitionSlug
|
|
222
|
+
* @property {string} slug
|
|
223
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
128
224
|
*/
|
|
129
225
|
|
|
130
226
|
/**
|
|
131
|
-
* @typedef
|
|
132
|
-
* @property {string}
|
|
227
|
+
* @typedef UpdateCustomObjectDefinitionBySlugParam
|
|
228
|
+
* @property {string} slug
|
|
133
229
|
* @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
|
|
134
230
|
*/
|
|
135
231
|
|
|
136
232
|
class ContentPlatformValidator {
|
|
137
|
-
/** @returns {
|
|
138
|
-
static
|
|
233
|
+
/** @returns {AddCompanyLanguageParam} */
|
|
234
|
+
static addCompanyLanguage() {
|
|
139
235
|
return Joi.object({
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
236
|
+
body: ContentPlatformModel.CompanyLanguageCreate().required(),
|
|
237
|
+
}).required();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/** @returns {CreateCompanyResourceTranslationParam} */
|
|
241
|
+
static createCompanyResourceTranslation() {
|
|
242
|
+
return Joi.object({
|
|
243
|
+
body: ContentPlatformModel.ResourceTranslationCreate().required(),
|
|
143
244
|
}).required();
|
|
144
245
|
}
|
|
145
246
|
|
|
146
247
|
/** @returns {CreateCustomFieldDefinitionParam} */
|
|
147
248
|
static createCustomFieldDefinition() {
|
|
148
249
|
return Joi.object({
|
|
250
|
+
resource: Joi.string().allow("").required(),
|
|
149
251
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
150
252
|
}).required();
|
|
151
253
|
}
|
|
152
254
|
|
|
153
|
-
/** @returns {
|
|
154
|
-
static
|
|
255
|
+
/** @returns {CreateCustomObjectBySlugParam} */
|
|
256
|
+
static createCustomObjectBySlug() {
|
|
155
257
|
return Joi.object({
|
|
156
|
-
|
|
258
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
259
|
+
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
157
260
|
}).required();
|
|
158
261
|
}
|
|
159
262
|
|
|
@@ -164,38 +267,110 @@ class ContentPlatformValidator {
|
|
|
164
267
|
}).required();
|
|
165
268
|
}
|
|
166
269
|
|
|
167
|
-
/** @returns {
|
|
168
|
-
static
|
|
270
|
+
/** @returns {DeleteCompanyLanguageParam} */
|
|
271
|
+
static deleteCompanyLanguage() {
|
|
169
272
|
return Joi.object({
|
|
170
|
-
|
|
273
|
+
locale: Joi.string().allow("").required(),
|
|
171
274
|
}).required();
|
|
172
275
|
}
|
|
173
276
|
|
|
174
|
-
/** @returns {
|
|
175
|
-
static
|
|
277
|
+
/** @returns {DeleteCompanyResourceTranslationParam} */
|
|
278
|
+
static deleteCompanyResourceTranslation() {
|
|
176
279
|
return Joi.object({
|
|
177
|
-
|
|
280
|
+
id: Joi.string().allow("").required(),
|
|
178
281
|
}).required();
|
|
179
282
|
}
|
|
180
283
|
|
|
181
|
-
/** @returns {
|
|
182
|
-
static
|
|
284
|
+
/** @returns {DeleteCustomFieldDefinitionBySlugParam} */
|
|
285
|
+
static deleteCustomFieldDefinitionBySlug() {
|
|
183
286
|
return Joi.object({
|
|
184
|
-
|
|
287
|
+
slug: Joi.string().allow("").required(),
|
|
288
|
+
resource: Joi.string().allow("").required(),
|
|
289
|
+
namespace: Joi.string().allow("").required(),
|
|
185
290
|
}).required();
|
|
186
291
|
}
|
|
187
292
|
|
|
188
|
-
/** @returns {
|
|
189
|
-
static
|
|
293
|
+
/** @returns {DeleteCustomFieldsByResourceSlugParam} */
|
|
294
|
+
static deleteCustomFieldsByResourceSlug() {
|
|
190
295
|
return Joi.object({
|
|
191
|
-
|
|
296
|
+
resource: Joi.string().allow("").required(),
|
|
297
|
+
resourceSlug: Joi.string().allow("").required(),
|
|
298
|
+
ids: Joi.string().allow("").required(),
|
|
192
299
|
}).required();
|
|
193
300
|
}
|
|
194
301
|
|
|
195
|
-
/** @returns {
|
|
196
|
-
static
|
|
302
|
+
/** @returns {DeleteCustomObjectBySlugParam} */
|
|
303
|
+
static deleteCustomObjectBySlug() {
|
|
197
304
|
return Joi.object({
|
|
198
|
-
|
|
305
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
306
|
+
slug: Joi.string().allow("").required(),
|
|
307
|
+
}).required();
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/** @returns {DeleteCustomObjectDefinitionBySlugParam} */
|
|
311
|
+
static deleteCustomObjectDefinitionBySlug() {
|
|
312
|
+
return Joi.object({
|
|
313
|
+
slug: Joi.string().allow("").required(),
|
|
314
|
+
}).required();
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/** @returns {ExportCustomObjectEntriesBySlugParam} */
|
|
318
|
+
static exportCustomObjectEntriesBySlug() {
|
|
319
|
+
return Joi.object({
|
|
320
|
+
slug: Joi.string().allow("").required(),
|
|
321
|
+
}).required();
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/** @returns {GetAllResourceDefinitionsParam} */
|
|
325
|
+
static getAllResourceDefinitions() {
|
|
326
|
+
return Joi.object({
|
|
327
|
+
translatableResourceId: Joi.string().allow(""),
|
|
328
|
+
}).required();
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/** @returns {GetAllSectionsParam} */
|
|
332
|
+
static getAllSections() {
|
|
333
|
+
return Joi.object({}).required();
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/** @returns {GetAllTranslatableResourcesParam} */
|
|
337
|
+
static getAllTranslatableResources() {
|
|
338
|
+
return Joi.object({}).required();
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/** @returns {GetCompanyLanguagesParam} */
|
|
342
|
+
static getCompanyLanguages() {
|
|
343
|
+
return Joi.object({}).required();
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/** @returns {GetCompanyResourceTranslationParam} */
|
|
347
|
+
static getCompanyResourceTranslation() {
|
|
348
|
+
return Joi.object({
|
|
349
|
+
locale: Joi.string().allow("").required(),
|
|
350
|
+
type: Joi.string().allow("").required(),
|
|
351
|
+
resourceId: Joi.string().allow("").required(),
|
|
352
|
+
}).required();
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/** @returns {GetCustomFieldDefinitionByResourceParam} */
|
|
356
|
+
static getCustomFieldDefinitionByResource() {
|
|
357
|
+
return Joi.object({
|
|
358
|
+
pageNo: Joi.string().allow("").required(),
|
|
359
|
+
pageSize: Joi.string().allow("").required(),
|
|
360
|
+
resource: Joi.string().allow("").required(),
|
|
361
|
+
types: Joi.string().allow(""),
|
|
362
|
+
search: Joi.string().allow(""),
|
|
363
|
+
slugs: Joi.string().allow(""),
|
|
364
|
+
namespaces: Joi.string().allow(""),
|
|
365
|
+
}).required();
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/** @returns {GetCustomFieldDefinitionBySlugParam} */
|
|
369
|
+
static getCustomFieldDefinitionBySlug() {
|
|
370
|
+
return Joi.object({
|
|
371
|
+
slug: Joi.string().allow("").required(),
|
|
372
|
+
resource: Joi.string().allow("").required(),
|
|
373
|
+
namespace: Joi.string().allow("").required(),
|
|
199
374
|
}).required();
|
|
200
375
|
}
|
|
201
376
|
|
|
@@ -204,9 +379,11 @@ class ContentPlatformValidator {
|
|
|
204
379
|
return Joi.object({
|
|
205
380
|
pageNo: Joi.string().allow("").required(),
|
|
206
381
|
pageSize: Joi.string().allow("").required(),
|
|
207
|
-
|
|
208
|
-
|
|
382
|
+
resources: Joi.string().allow(""),
|
|
383
|
+
types: Joi.string().allow(""),
|
|
209
384
|
search: Joi.string().allow(""),
|
|
385
|
+
slugs: Joi.string().allow(""),
|
|
386
|
+
namespaces: Joi.string().allow(""),
|
|
210
387
|
}).required();
|
|
211
388
|
}
|
|
212
389
|
|
|
@@ -215,32 +392,26 @@ class ContentPlatformValidator {
|
|
|
215
392
|
return Joi.object({}).required();
|
|
216
393
|
}
|
|
217
394
|
|
|
218
|
-
/** @returns {
|
|
219
|
-
static
|
|
395
|
+
/** @returns {GetCustomFieldsByResourceSlugParam} */
|
|
396
|
+
static getCustomFieldsByResourceSlug() {
|
|
220
397
|
return Joi.object({
|
|
221
398
|
resource: Joi.string().allow("").required(),
|
|
399
|
+
resourceSlug: Joi.string().allow("").required(),
|
|
222
400
|
}).required();
|
|
223
401
|
}
|
|
224
402
|
|
|
225
|
-
/** @returns {
|
|
226
|
-
static
|
|
403
|
+
/** @returns {GetCustomObjectBySlugParam} */
|
|
404
|
+
static getCustomObjectBySlug() {
|
|
227
405
|
return Joi.object({
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}).required();
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/** @returns {GetCustomObjectParam} */
|
|
234
|
-
static getCustomObject() {
|
|
235
|
-
return Joi.object({
|
|
236
|
-
metaobjectId: Joi.string().allow("").required(),
|
|
406
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
407
|
+
slug: Joi.string().allow("").required(),
|
|
237
408
|
}).required();
|
|
238
409
|
}
|
|
239
410
|
|
|
240
|
-
/** @returns {
|
|
241
|
-
static
|
|
411
|
+
/** @returns {GetCustomObjectDefinitionBySlugParam} */
|
|
412
|
+
static getCustomObjectDefinitionBySlug() {
|
|
242
413
|
return Joi.object({
|
|
243
|
-
|
|
414
|
+
slug: Joi.string().allow("").required(),
|
|
244
415
|
}).required();
|
|
245
416
|
}
|
|
246
417
|
|
|
@@ -253,12 +424,12 @@ class ContentPlatformValidator {
|
|
|
253
424
|
}).required();
|
|
254
425
|
}
|
|
255
426
|
|
|
256
|
-
/** @returns {
|
|
257
|
-
static
|
|
427
|
+
/** @returns {GetCustomObjectsBySlugParam} */
|
|
428
|
+
static getCustomObjectsBySlug() {
|
|
258
429
|
return Joi.object({
|
|
259
|
-
definitionId: Joi.string().allow(""),
|
|
260
430
|
pageNo: Joi.string().allow("").required(),
|
|
261
431
|
pageSize: Joi.string().allow("").required(),
|
|
432
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
262
433
|
}).required();
|
|
263
434
|
}
|
|
264
435
|
|
|
@@ -271,46 +442,102 @@ class ContentPlatformValidator {
|
|
|
271
442
|
}).required();
|
|
272
443
|
}
|
|
273
444
|
|
|
445
|
+
/** @returns {GetResourceDefinitionByIdParam} */
|
|
446
|
+
static getResourceDefinitionById() {
|
|
447
|
+
return Joi.object({
|
|
448
|
+
id: Joi.string().allow("").required(),
|
|
449
|
+
}).required();
|
|
450
|
+
}
|
|
451
|
+
|
|
274
452
|
/** @returns {GetResourcesParam} */
|
|
275
453
|
static getResources() {
|
|
276
454
|
return Joi.object({}).required();
|
|
277
455
|
}
|
|
278
456
|
|
|
279
|
-
/** @returns {
|
|
280
|
-
static
|
|
457
|
+
/** @returns {GetSectionByIdParam} */
|
|
458
|
+
static getSectionById() {
|
|
281
459
|
return Joi.object({
|
|
282
|
-
|
|
460
|
+
id: Joi.string().allow("").required(),
|
|
461
|
+
}).required();
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/** @returns {GetTranslatableResourceByIdParam} */
|
|
465
|
+
static getTranslatableResourceById() {
|
|
466
|
+
return Joi.object({
|
|
467
|
+
id: Joi.string().allow("").required(),
|
|
468
|
+
}).required();
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/** @returns {GetTranslatableResourcesBySectionIdParam} */
|
|
472
|
+
static getTranslatableResourcesBySectionId() {
|
|
473
|
+
return Joi.object({
|
|
474
|
+
id: Joi.string().allow("").required(),
|
|
475
|
+
}).required();
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/** @returns {ImportCustomObjectEntriesBySlugParam} */
|
|
479
|
+
static importCustomObjectEntriesBySlug() {
|
|
480
|
+
return Joi.object({
|
|
481
|
+
slug: Joi.string().allow("").required(),
|
|
283
482
|
body: ContentPlatformModel.CustomObjectBulkSchema().required(),
|
|
284
483
|
}).required();
|
|
285
484
|
}
|
|
286
485
|
|
|
287
|
-
/** @returns {
|
|
288
|
-
static
|
|
486
|
+
/** @returns {SampleCustomObjectBulkEntryBySlugParam} */
|
|
487
|
+
static sampleCustomObjectBulkEntryBySlug() {
|
|
488
|
+
return Joi.object({
|
|
489
|
+
slug: Joi.string().allow("").required(),
|
|
490
|
+
}).required();
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/** @returns {UpdateCompanyLanguageDefaultParam} */
|
|
494
|
+
static updateCompanyLanguageDefault() {
|
|
495
|
+
return Joi.object({
|
|
496
|
+
locale: Joi.string().allow("").required(),
|
|
497
|
+
body: ContentPlatformModel.CompanyLanguageUpdate().required(),
|
|
498
|
+
}).required();
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/** @returns {UpdateCompanyResourceTranslationParam} */
|
|
502
|
+
static updateCompanyResourceTranslation() {
|
|
289
503
|
return Joi.object({
|
|
290
|
-
|
|
504
|
+
id: Joi.string().allow("").required(),
|
|
505
|
+
body: ContentPlatformModel.ResourceTranslationUpdate().required(),
|
|
291
506
|
}).required();
|
|
292
507
|
}
|
|
293
508
|
|
|
294
|
-
/** @returns {
|
|
295
|
-
static
|
|
509
|
+
/** @returns {UpdateCustomFieldByResourceSlugParam} */
|
|
510
|
+
static updateCustomFieldByResourceSlug() {
|
|
296
511
|
return Joi.object({
|
|
297
|
-
|
|
512
|
+
resource: Joi.string().allow("").required(),
|
|
513
|
+
resourceSlug: Joi.string().allow("").required(),
|
|
514
|
+
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
515
|
+
}).required();
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/** @returns {UpdateCustomFieldDefinitionBySlugParam} */
|
|
519
|
+
static updateCustomFieldDefinitionBySlug() {
|
|
520
|
+
return Joi.object({
|
|
521
|
+
slug: Joi.string().allow("").required(),
|
|
522
|
+
resource: Joi.string().allow("").required(),
|
|
523
|
+
namespace: Joi.string().allow("").required(),
|
|
298
524
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
299
525
|
}).required();
|
|
300
526
|
}
|
|
301
527
|
|
|
302
|
-
/** @returns {
|
|
303
|
-
static
|
|
528
|
+
/** @returns {UpdateCustomObjectBySlugParam} */
|
|
529
|
+
static updateCustomObjectBySlug() {
|
|
304
530
|
return Joi.object({
|
|
305
|
-
|
|
306
|
-
|
|
531
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
532
|
+
slug: Joi.string().allow("").required(),
|
|
533
|
+
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
307
534
|
}).required();
|
|
308
535
|
}
|
|
309
536
|
|
|
310
|
-
/** @returns {
|
|
311
|
-
static
|
|
537
|
+
/** @returns {UpdateCustomObjectDefinitionBySlugParam} */
|
|
538
|
+
static updateCustomObjectDefinitionBySlug() {
|
|
312
539
|
return Joi.object({
|
|
313
|
-
|
|
540
|
+
slug: Joi.string().allow("").required(),
|
|
314
541
|
body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
|
|
315
542
|
}).required();
|
|
316
543
|
}
|