@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
|
@@ -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,75 +30,109 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
25
30
|
*/
|
|
26
31
|
|
|
27
32
|
/**
|
|
28
|
-
* @typedef
|
|
33
|
+
* @typedef DeleteCompanyLanguageParam
|
|
34
|
+
* @property {string} locale
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @typedef DeleteCompanyResourceTranslationParam
|
|
29
39
|
* @property {string} id
|
|
30
40
|
*/
|
|
31
41
|
|
|
32
42
|
/**
|
|
33
|
-
* @typedef
|
|
43
|
+
* @typedef DeleteCustomFieldDefinitionBySlugParam
|
|
44
|
+
* @property {string} slug
|
|
34
45
|
* @property {string} resource
|
|
35
|
-
* @property {string}
|
|
46
|
+
* @property {string} namespace
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @typedef DeleteCustomFieldsByResourceSlugParam
|
|
51
|
+
* @property {string} resource
|
|
52
|
+
* @property {string} resourceSlug
|
|
36
53
|
* @property {string} ids
|
|
37
54
|
*/
|
|
38
55
|
|
|
39
56
|
/**
|
|
40
|
-
* @typedef
|
|
41
|
-
* @property {string}
|
|
57
|
+
* @typedef DeleteCustomObjectBySlugParam
|
|
58
|
+
* @property {string} definitionSlug
|
|
59
|
+
* @property {string} slug
|
|
42
60
|
*/
|
|
43
61
|
|
|
44
62
|
/**
|
|
45
|
-
* @typedef
|
|
46
|
-
* @property {string}
|
|
63
|
+
* @typedef DeleteCustomObjectDefinitionBySlugParam
|
|
64
|
+
* @property {string} slug
|
|
47
65
|
*/
|
|
48
66
|
|
|
49
67
|
/**
|
|
50
|
-
* @typedef
|
|
51
|
-
* @property {string}
|
|
68
|
+
* @typedef ExportCustomObjectEntriesBySlugParam
|
|
69
|
+
* @property {string} slug
|
|
52
70
|
*/
|
|
53
71
|
|
|
54
72
|
/**
|
|
55
|
-
* @typedef
|
|
56
|
-
* @property {string}
|
|
73
|
+
* @typedef GetAllResourceDefinitionsParam
|
|
74
|
+
* @property {string} [translatableResourceId]
|
|
57
75
|
*/
|
|
58
76
|
|
|
77
|
+
/** @typedef GetAllSectionsParam */
|
|
78
|
+
|
|
79
|
+
/** @typedef GetAllTranslatableResourcesParam */
|
|
80
|
+
|
|
81
|
+
/** @typedef GetCompanyLanguagesParam */
|
|
82
|
+
|
|
59
83
|
/**
|
|
60
|
-
* @typedef
|
|
84
|
+
* @typedef GetCompanyResourceTranslationParam
|
|
85
|
+
* @property {string} locale
|
|
86
|
+
* @property {string} type
|
|
87
|
+
* @property {string} resourceId
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @typedef GetCustomFieldDefinitionByResourceParam
|
|
61
92
|
* @property {string} pageNo
|
|
62
93
|
* @property {string} pageSize
|
|
63
|
-
* @property {string}
|
|
94
|
+
* @property {string} resource
|
|
64
95
|
* @property {string} [types]
|
|
65
96
|
* @property {string} [search]
|
|
66
97
|
* @property {string} [slugs]
|
|
98
|
+
* @property {string} [namespaces]
|
|
67
99
|
*/
|
|
68
100
|
|
|
69
101
|
/**
|
|
70
|
-
* @typedef
|
|
71
|
-
* @property {string}
|
|
72
|
-
* @property {string}
|
|
73
|
-
* @property {string}
|
|
102
|
+
* @typedef GetCustomFieldDefinitionBySlugParam
|
|
103
|
+
* @property {string} slug
|
|
104
|
+
* @property {string} resource
|
|
105
|
+
* @property {string} namespace
|
|
74
106
|
*/
|
|
75
107
|
|
|
76
|
-
/** @typedef GetCustomFieldTypesParam */
|
|
77
|
-
|
|
78
108
|
/**
|
|
79
|
-
* @typedef
|
|
80
|
-
* @property {string}
|
|
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]
|
|
81
117
|
*/
|
|
82
118
|
|
|
119
|
+
/** @typedef GetCustomFieldTypesParam */
|
|
120
|
+
|
|
83
121
|
/**
|
|
84
|
-
* @typedef
|
|
122
|
+
* @typedef GetCustomFieldsByResourceSlugParam
|
|
85
123
|
* @property {string} resource
|
|
86
|
-
* @property {string}
|
|
124
|
+
* @property {string} resourceSlug
|
|
87
125
|
*/
|
|
88
126
|
|
|
89
127
|
/**
|
|
90
|
-
* @typedef
|
|
91
|
-
* @property {string}
|
|
128
|
+
* @typedef GetCustomObjectBySlugParam
|
|
129
|
+
* @property {string} definitionSlug
|
|
130
|
+
* @property {string} slug
|
|
92
131
|
*/
|
|
93
132
|
|
|
94
133
|
/**
|
|
95
|
-
* @typedef
|
|
96
|
-
* @property {string}
|
|
134
|
+
* @typedef GetCustomObjectDefinitionBySlugParam
|
|
135
|
+
* @property {string} slug
|
|
97
136
|
*/
|
|
98
137
|
|
|
99
138
|
/**
|
|
@@ -104,10 +143,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
104
143
|
*/
|
|
105
144
|
|
|
106
145
|
/**
|
|
107
|
-
* @typedef
|
|
108
|
-
* @property {string} [definitionId]
|
|
146
|
+
* @typedef GetCustomObjectsBySlugParam
|
|
109
147
|
* @property {string} pageNo
|
|
110
148
|
* @property {string} pageSize
|
|
149
|
+
* @property {string} definitionSlug
|
|
111
150
|
*/
|
|
112
151
|
|
|
113
152
|
/**
|
|
@@ -117,65 +156,107 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
117
156
|
* @property {string} actionType
|
|
118
157
|
*/
|
|
119
158
|
|
|
159
|
+
/**
|
|
160
|
+
* @typedef GetResourceDefinitionByIdParam
|
|
161
|
+
* @property {string} id
|
|
162
|
+
*/
|
|
163
|
+
|
|
120
164
|
/** @typedef GetResourcesParam */
|
|
121
165
|
|
|
122
166
|
/**
|
|
123
|
-
* @typedef
|
|
124
|
-
* @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
|
|
125
184
|
* @property {ContentPlatformModel.CustomObjectBulkSchema} body
|
|
126
185
|
*/
|
|
127
186
|
|
|
128
187
|
/**
|
|
129
|
-
* @typedef
|
|
130
|
-
* @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
|
|
131
202
|
*/
|
|
132
203
|
|
|
133
204
|
/**
|
|
134
|
-
* @typedef
|
|
205
|
+
* @typedef UpdateCustomFieldByResourceSlugParam
|
|
135
206
|
* @property {string} resource
|
|
136
|
-
* @property {string}
|
|
207
|
+
* @property {string} resourceSlug
|
|
137
208
|
* @property {ContentPlatformModel.CustomFieldRequestSchema} body
|
|
138
209
|
*/
|
|
139
210
|
|
|
140
211
|
/**
|
|
141
|
-
* @typedef
|
|
142
|
-
* @property {string}
|
|
212
|
+
* @typedef UpdateCustomFieldDefinitionBySlugParam
|
|
213
|
+
* @property {string} slug
|
|
214
|
+
* @property {string} resource
|
|
215
|
+
* @property {string} namespace
|
|
143
216
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
144
217
|
*/
|
|
145
218
|
|
|
146
219
|
/**
|
|
147
|
-
* @typedef
|
|
148
|
-
* @property {string}
|
|
149
|
-
* @property {
|
|
220
|
+
* @typedef UpdateCustomObjectBySlugParam
|
|
221
|
+
* @property {string} definitionSlug
|
|
222
|
+
* @property {string} slug
|
|
223
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
150
224
|
*/
|
|
151
225
|
|
|
152
226
|
/**
|
|
153
|
-
* @typedef
|
|
154
|
-
* @property {string}
|
|
227
|
+
* @typedef UpdateCustomObjectDefinitionBySlugParam
|
|
228
|
+
* @property {string} slug
|
|
155
229
|
* @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
|
|
156
230
|
*/
|
|
157
231
|
|
|
158
232
|
class ContentPlatformValidator {
|
|
159
|
-
/** @returns {
|
|
160
|
-
static
|
|
233
|
+
/** @returns {AddCompanyLanguageParam} */
|
|
234
|
+
static addCompanyLanguage() {
|
|
161
235
|
return Joi.object({
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
236
|
+
body: ContentPlatformModel.CompanyLanguageCreate().required(),
|
|
237
|
+
}).required();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/** @returns {CreateCompanyResourceTranslationParam} */
|
|
241
|
+
static createCompanyResourceTranslation() {
|
|
242
|
+
return Joi.object({
|
|
243
|
+
body: ContentPlatformModel.ResourceTranslationCreate().required(),
|
|
165
244
|
}).required();
|
|
166
245
|
}
|
|
167
246
|
|
|
168
247
|
/** @returns {CreateCustomFieldDefinitionParam} */
|
|
169
248
|
static createCustomFieldDefinition() {
|
|
170
249
|
return Joi.object({
|
|
250
|
+
resource: Joi.string().allow("").required(),
|
|
171
251
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
172
252
|
}).required();
|
|
173
253
|
}
|
|
174
254
|
|
|
175
|
-
/** @returns {
|
|
176
|
-
static
|
|
255
|
+
/** @returns {CreateCustomObjectBySlugParam} */
|
|
256
|
+
static createCustomObjectBySlug() {
|
|
177
257
|
return Joi.object({
|
|
178
|
-
|
|
258
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
259
|
+
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
179
260
|
}).required();
|
|
180
261
|
}
|
|
181
262
|
|
|
@@ -186,68 +267,123 @@ class ContentPlatformValidator {
|
|
|
186
267
|
}).required();
|
|
187
268
|
}
|
|
188
269
|
|
|
189
|
-
/** @returns {
|
|
190
|
-
static
|
|
270
|
+
/** @returns {DeleteCompanyLanguageParam} */
|
|
271
|
+
static deleteCompanyLanguage() {
|
|
272
|
+
return Joi.object({
|
|
273
|
+
locale: Joi.string().allow("").required(),
|
|
274
|
+
}).required();
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/** @returns {DeleteCompanyResourceTranslationParam} */
|
|
278
|
+
static deleteCompanyResourceTranslation() {
|
|
191
279
|
return Joi.object({
|
|
192
280
|
id: Joi.string().allow("").required(),
|
|
193
281
|
}).required();
|
|
194
282
|
}
|
|
195
283
|
|
|
196
|
-
/** @returns {
|
|
197
|
-
static
|
|
284
|
+
/** @returns {DeleteCustomFieldDefinitionBySlugParam} */
|
|
285
|
+
static deleteCustomFieldDefinitionBySlug() {
|
|
198
286
|
return Joi.object({
|
|
287
|
+
slug: Joi.string().allow("").required(),
|
|
199
288
|
resource: Joi.string().allow("").required(),
|
|
200
|
-
|
|
289
|
+
namespace: Joi.string().allow("").required(),
|
|
290
|
+
}).required();
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/** @returns {DeleteCustomFieldsByResourceSlugParam} */
|
|
294
|
+
static deleteCustomFieldsByResourceSlug() {
|
|
295
|
+
return Joi.object({
|
|
296
|
+
resource: Joi.string().allow("").required(),
|
|
297
|
+
resourceSlug: Joi.string().allow("").required(),
|
|
201
298
|
ids: Joi.string().allow("").required(),
|
|
202
299
|
}).required();
|
|
203
300
|
}
|
|
204
301
|
|
|
205
|
-
/** @returns {
|
|
206
|
-
static
|
|
302
|
+
/** @returns {DeleteCustomObjectBySlugParam} */
|
|
303
|
+
static deleteCustomObjectBySlug() {
|
|
207
304
|
return Joi.object({
|
|
208
|
-
|
|
305
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
306
|
+
slug: Joi.string().allow("").required(),
|
|
209
307
|
}).required();
|
|
210
308
|
}
|
|
211
309
|
|
|
212
|
-
/** @returns {
|
|
213
|
-
static
|
|
310
|
+
/** @returns {DeleteCustomObjectDefinitionBySlugParam} */
|
|
311
|
+
static deleteCustomObjectDefinitionBySlug() {
|
|
214
312
|
return Joi.object({
|
|
215
|
-
|
|
313
|
+
slug: Joi.string().allow("").required(),
|
|
216
314
|
}).required();
|
|
217
315
|
}
|
|
218
316
|
|
|
219
|
-
/** @returns {
|
|
220
|
-
static
|
|
317
|
+
/** @returns {ExportCustomObjectEntriesBySlugParam} */
|
|
318
|
+
static exportCustomObjectEntriesBySlug() {
|
|
221
319
|
return Joi.object({
|
|
222
|
-
|
|
320
|
+
slug: Joi.string().allow("").required(),
|
|
223
321
|
}).required();
|
|
224
322
|
}
|
|
225
323
|
|
|
226
|
-
/** @returns {
|
|
227
|
-
static
|
|
324
|
+
/** @returns {GetAllResourceDefinitionsParam} */
|
|
325
|
+
static getAllResourceDefinitions() {
|
|
228
326
|
return Joi.object({
|
|
229
|
-
|
|
327
|
+
translatableResourceId: Joi.string().allow(""),
|
|
230
328
|
}).required();
|
|
231
329
|
}
|
|
232
330
|
|
|
233
|
-
/** @returns {
|
|
234
|
-
static
|
|
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() {
|
|
235
357
|
return Joi.object({
|
|
236
358
|
pageNo: Joi.string().allow("").required(),
|
|
237
359
|
pageSize: Joi.string().allow("").required(),
|
|
238
|
-
|
|
360
|
+
resource: Joi.string().allow("").required(),
|
|
239
361
|
types: Joi.string().allow(""),
|
|
240
362
|
search: Joi.string().allow(""),
|
|
241
363
|
slugs: Joi.string().allow(""),
|
|
364
|
+
namespaces: Joi.string().allow(""),
|
|
242
365
|
}).required();
|
|
243
366
|
}
|
|
244
367
|
|
|
245
|
-
/** @returns {
|
|
246
|
-
static
|
|
368
|
+
/** @returns {GetCustomFieldDefinitionBySlugParam} */
|
|
369
|
+
static getCustomFieldDefinitionBySlug() {
|
|
247
370
|
return Joi.object({
|
|
248
|
-
|
|
371
|
+
slug: Joi.string().allow("").required(),
|
|
372
|
+
resource: Joi.string().allow("").required(),
|
|
373
|
+
namespace: Joi.string().allow("").required(),
|
|
374
|
+
}).required();
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/** @returns {GetCustomFieldDefinitionsParam} */
|
|
378
|
+
static getCustomFieldDefinitions() {
|
|
379
|
+
return Joi.object({
|
|
380
|
+
pageNo: Joi.string().allow("").required(),
|
|
249
381
|
pageSize: Joi.string().allow("").required(),
|
|
250
|
-
|
|
382
|
+
resources: Joi.string().allow(""),
|
|
383
|
+
types: Joi.string().allow(""),
|
|
384
|
+
search: Joi.string().allow(""),
|
|
385
|
+
slugs: Joi.string().allow(""),
|
|
386
|
+
namespaces: Joi.string().allow(""),
|
|
251
387
|
}).required();
|
|
252
388
|
}
|
|
253
389
|
|
|
@@ -256,32 +392,26 @@ class ContentPlatformValidator {
|
|
|
256
392
|
return Joi.object({}).required();
|
|
257
393
|
}
|
|
258
394
|
|
|
259
|
-
/** @returns {
|
|
260
|
-
static
|
|
395
|
+
/** @returns {GetCustomFieldsByResourceSlugParam} */
|
|
396
|
+
static getCustomFieldsByResourceSlug() {
|
|
261
397
|
return Joi.object({
|
|
262
398
|
resource: Joi.string().allow("").required(),
|
|
399
|
+
resourceSlug: Joi.string().allow("").required(),
|
|
263
400
|
}).required();
|
|
264
401
|
}
|
|
265
402
|
|
|
266
|
-
/** @returns {
|
|
267
|
-
static
|
|
403
|
+
/** @returns {GetCustomObjectBySlugParam} */
|
|
404
|
+
static getCustomObjectBySlug() {
|
|
268
405
|
return Joi.object({
|
|
269
|
-
|
|
270
|
-
|
|
406
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
407
|
+
slug: Joi.string().allow("").required(),
|
|
271
408
|
}).required();
|
|
272
409
|
}
|
|
273
410
|
|
|
274
|
-
/** @returns {
|
|
275
|
-
static
|
|
411
|
+
/** @returns {GetCustomObjectDefinitionBySlugParam} */
|
|
412
|
+
static getCustomObjectDefinitionBySlug() {
|
|
276
413
|
return Joi.object({
|
|
277
|
-
|
|
278
|
-
}).required();
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/** @returns {GetCustomObjectDefinitionParam} */
|
|
282
|
-
static getCustomObjectDefinition() {
|
|
283
|
-
return Joi.object({
|
|
284
|
-
id: Joi.string().allow("").required(),
|
|
414
|
+
slug: Joi.string().allow("").required(),
|
|
285
415
|
}).required();
|
|
286
416
|
}
|
|
287
417
|
|
|
@@ -294,12 +424,12 @@ class ContentPlatformValidator {
|
|
|
294
424
|
}).required();
|
|
295
425
|
}
|
|
296
426
|
|
|
297
|
-
/** @returns {
|
|
298
|
-
static
|
|
427
|
+
/** @returns {GetCustomObjectsBySlugParam} */
|
|
428
|
+
static getCustomObjectsBySlug() {
|
|
299
429
|
return Joi.object({
|
|
300
|
-
definitionId: Joi.string().allow(""),
|
|
301
430
|
pageNo: Joi.string().allow("").required(),
|
|
302
431
|
pageSize: Joi.string().allow("").required(),
|
|
432
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
303
433
|
}).required();
|
|
304
434
|
}
|
|
305
435
|
|
|
@@ -312,55 +442,102 @@ class ContentPlatformValidator {
|
|
|
312
442
|
}).required();
|
|
313
443
|
}
|
|
314
444
|
|
|
445
|
+
/** @returns {GetResourceDefinitionByIdParam} */
|
|
446
|
+
static getResourceDefinitionById() {
|
|
447
|
+
return Joi.object({
|
|
448
|
+
id: Joi.string().allow("").required(),
|
|
449
|
+
}).required();
|
|
450
|
+
}
|
|
451
|
+
|
|
315
452
|
/** @returns {GetResourcesParam} */
|
|
316
453
|
static getResources() {
|
|
317
454
|
return Joi.object({}).required();
|
|
318
455
|
}
|
|
319
456
|
|
|
320
|
-
/** @returns {
|
|
321
|
-
static
|
|
457
|
+
/** @returns {GetSectionByIdParam} */
|
|
458
|
+
static getSectionById() {
|
|
459
|
+
return Joi.object({
|
|
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() {
|
|
322
473
|
return Joi.object({
|
|
323
|
-
|
|
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(),
|
|
324
482
|
body: ContentPlatformModel.CustomObjectBulkSchema().required(),
|
|
325
483
|
}).required();
|
|
326
484
|
}
|
|
327
485
|
|
|
328
|
-
/** @returns {
|
|
329
|
-
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() {
|
|
330
495
|
return Joi.object({
|
|
331
|
-
|
|
496
|
+
locale: Joi.string().allow("").required(),
|
|
497
|
+
body: ContentPlatformModel.CompanyLanguageUpdate().required(),
|
|
332
498
|
}).required();
|
|
333
499
|
}
|
|
334
500
|
|
|
335
|
-
/** @returns {
|
|
336
|
-
static
|
|
501
|
+
/** @returns {UpdateCompanyResourceTranslationParam} */
|
|
502
|
+
static updateCompanyResourceTranslation() {
|
|
503
|
+
return Joi.object({
|
|
504
|
+
id: Joi.string().allow("").required(),
|
|
505
|
+
body: ContentPlatformModel.ResourceTranslationUpdate().required(),
|
|
506
|
+
}).required();
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/** @returns {UpdateCustomFieldByResourceSlugParam} */
|
|
510
|
+
static updateCustomFieldByResourceSlug() {
|
|
337
511
|
return Joi.object({
|
|
338
512
|
resource: Joi.string().allow("").required(),
|
|
339
|
-
|
|
513
|
+
resourceSlug: Joi.string().allow("").required(),
|
|
340
514
|
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
341
515
|
}).required();
|
|
342
516
|
}
|
|
343
517
|
|
|
344
|
-
/** @returns {
|
|
345
|
-
static
|
|
518
|
+
/** @returns {UpdateCustomFieldDefinitionBySlugParam} */
|
|
519
|
+
static updateCustomFieldDefinitionBySlug() {
|
|
346
520
|
return Joi.object({
|
|
347
|
-
|
|
521
|
+
slug: Joi.string().allow("").required(),
|
|
522
|
+
resource: Joi.string().allow("").required(),
|
|
523
|
+
namespace: Joi.string().allow("").required(),
|
|
348
524
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
349
525
|
}).required();
|
|
350
526
|
}
|
|
351
527
|
|
|
352
|
-
/** @returns {
|
|
353
|
-
static
|
|
528
|
+
/** @returns {UpdateCustomObjectBySlugParam} */
|
|
529
|
+
static updateCustomObjectBySlug() {
|
|
354
530
|
return Joi.object({
|
|
355
|
-
|
|
356
|
-
|
|
531
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
532
|
+
slug: Joi.string().allow("").required(),
|
|
533
|
+
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
357
534
|
}).required();
|
|
358
535
|
}
|
|
359
536
|
|
|
360
|
-
/** @returns {
|
|
361
|
-
static
|
|
537
|
+
/** @returns {UpdateCustomObjectDefinitionBySlugParam} */
|
|
538
|
+
static updateCustomObjectDefinitionBySlug() {
|
|
362
539
|
return Joi.object({
|
|
363
|
-
|
|
540
|
+
slug: Joi.string().allow("").required(),
|
|
364
541
|
body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
|
|
365
542
|
}).required();
|
|
366
543
|
}
|