@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +53 -60
- package/sdk/application/Cart/CartApplicationClient.js +53 -130
- package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
- package/sdk/application/Cart/CartApplicationModel.js +159 -380
- package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
- package/sdk/application/Cart/CartApplicationValidator.js +18 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
- package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
- package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
- package/sdk/application/Common/CommonApplicationClient.js +5 -6
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
- package/sdk/application/Content/ContentApplicationClient.js +75 -54
- package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
- package/sdk/application/Content/ContentApplicationModel.js +32 -83
- package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
- package/sdk/application/Content/ContentApplicationValidator.js +10 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
- package/sdk/application/Lead/LeadApplicationClient.js +3 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
- package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
- package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
- package/sdk/application/Order/OrderApplicationClient.js +13 -96
- package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
- package/sdk/application/Order/OrderApplicationModel.js +81 -279
- package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
- package/sdk/application/Order/OrderApplicationValidator.js +2 -15
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
- package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
- package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
- package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
- package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +0 -1
- package/sdk/application/index.js +0 -2
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1304 -4979
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -15
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
- package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
- package/sdk/platform/Order/OrderPlatformClient.js +245 -597
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
- package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- 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 +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +341 -602
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +284 -483
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +5 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
|
@@ -29,15 +29,20 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* @typedef
|
|
32
|
+
* @typedef CreateAppCustomFieldByResourceIdParam
|
|
33
33
|
* @property {string} resource
|
|
34
|
+
* @property {string} resourceId
|
|
35
|
+
* @property {ContentPlatformModel.CustomFieldRequestSchema} body
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @typedef CreateAppCustomFieldDefinitionParam
|
|
34
40
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
35
41
|
*/
|
|
36
42
|
|
|
37
43
|
/**
|
|
38
|
-
* @typedef
|
|
39
|
-
* @property {
|
|
40
|
-
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
44
|
+
* @typedef CreateAppCustomObjectParam
|
|
45
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchema} body
|
|
41
46
|
*/
|
|
42
47
|
|
|
43
48
|
/**
|
|
@@ -47,7 +52,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
47
52
|
|
|
48
53
|
/**
|
|
49
54
|
* @typedef CreateBlogParam
|
|
50
|
-
* @property {ContentPlatformModel.
|
|
55
|
+
* @property {ContentPlatformModel.BlogRequest} body
|
|
51
56
|
*/
|
|
52
57
|
|
|
53
58
|
/**
|
|
@@ -62,17 +67,17 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
62
67
|
|
|
63
68
|
/**
|
|
64
69
|
* @typedef CreateNavigationParam
|
|
65
|
-
* @property {ContentPlatformModel.
|
|
70
|
+
* @property {ContentPlatformModel.NavigationRequest} body
|
|
66
71
|
*/
|
|
67
72
|
|
|
68
73
|
/**
|
|
69
74
|
* @typedef CreatePageParam
|
|
70
|
-
* @property {ContentPlatformModel.
|
|
75
|
+
* @property {ContentPlatformModel.PageRequest} body
|
|
71
76
|
*/
|
|
72
77
|
|
|
73
78
|
/**
|
|
74
79
|
* @typedef CreatePagePreviewParam
|
|
75
|
-
* @property {ContentPlatformModel.
|
|
80
|
+
* @property {ContentPlatformModel.PageRequest} body
|
|
76
81
|
*/
|
|
77
82
|
|
|
78
83
|
/**
|
|
@@ -82,7 +87,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
82
87
|
|
|
83
88
|
/**
|
|
84
89
|
* @typedef CreateSlideshowParam
|
|
85
|
-
* @property {ContentPlatformModel.
|
|
90
|
+
* @property {ContentPlatformModel.SlideshowRequest} body
|
|
86
91
|
*/
|
|
87
92
|
|
|
88
93
|
/**
|
|
@@ -91,21 +96,18 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
91
96
|
*/
|
|
92
97
|
|
|
93
98
|
/**
|
|
94
|
-
* @typedef
|
|
95
|
-
* @property {string}
|
|
96
|
-
* @property {string} resource
|
|
97
|
-
* @property {string} namespace
|
|
99
|
+
* @typedef DeleteAppCustomFieldDefinitionParam
|
|
100
|
+
* @property {string} definitionId
|
|
98
101
|
*/
|
|
99
102
|
|
|
100
103
|
/**
|
|
101
|
-
* @typedef
|
|
102
|
-
* @property {string}
|
|
103
|
-
* @property {string} slug
|
|
104
|
+
* @typedef DeleteAppCustomObjectParam
|
|
105
|
+
* @property {string} metaobjectId
|
|
104
106
|
*/
|
|
105
107
|
|
|
106
108
|
/**
|
|
107
|
-
* @typedef
|
|
108
|
-
* @property {string}
|
|
109
|
+
* @typedef DeleteAppCustomObjectDefinitionParam
|
|
110
|
+
* @property {string} definitionId
|
|
109
111
|
*/
|
|
110
112
|
|
|
111
113
|
/**
|
|
@@ -180,8 +182,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
180
182
|
*/
|
|
181
183
|
|
|
182
184
|
/**
|
|
183
|
-
* @typedef
|
|
184
|
-
* @property {string}
|
|
185
|
+
* @typedef ExportAppCustomObjectEntriesParam
|
|
186
|
+
* @property {string} definitionId
|
|
185
187
|
*/
|
|
186
188
|
|
|
187
189
|
/**
|
|
@@ -206,51 +208,40 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
206
208
|
*/
|
|
207
209
|
|
|
208
210
|
/**
|
|
209
|
-
* @typedef
|
|
210
|
-
* @property {string}
|
|
211
|
-
* @property {string} pageSize
|
|
212
|
-
* @property {string} resource
|
|
213
|
-
* @property {string} [types]
|
|
214
|
-
* @property {string} [search]
|
|
215
|
-
* @property {string} [slugs]
|
|
216
|
-
* @property {string} [namespaces]
|
|
217
|
-
*/
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* @typedef GetAppCustomFieldDefinitionBySlugParam
|
|
221
|
-
* @property {string} slug
|
|
222
|
-
* @property {string} resource
|
|
223
|
-
* @property {string} namespace
|
|
211
|
+
* @typedef GetAppCustomFieldDefinitionParam
|
|
212
|
+
* @property {string} definitionId
|
|
224
213
|
*/
|
|
225
214
|
|
|
226
215
|
/**
|
|
227
216
|
* @typedef GetAppCustomFieldDefinitionsParam
|
|
228
217
|
* @property {string} pageNo
|
|
229
218
|
* @property {string} pageSize
|
|
230
|
-
* @property {string} [
|
|
231
|
-
* @property {string} [
|
|
219
|
+
* @property {string} [resource]
|
|
220
|
+
* @property {string} [type]
|
|
232
221
|
* @property {string} [search]
|
|
233
|
-
* @property {string} [slugs]
|
|
234
|
-
* @property {string} [namespaces]
|
|
235
222
|
*/
|
|
236
223
|
|
|
237
224
|
/** @typedef GetAppCustomFieldTypesParam */
|
|
238
225
|
|
|
239
226
|
/**
|
|
240
|
-
* @typedef
|
|
227
|
+
* @typedef GetAppCustomFieldsParam
|
|
241
228
|
* @property {string} resource
|
|
242
|
-
* @property {string} resourceSlug
|
|
243
229
|
*/
|
|
244
230
|
|
|
245
231
|
/**
|
|
246
|
-
* @typedef
|
|
247
|
-
* @property {string}
|
|
248
|
-
* @property {string}
|
|
232
|
+
* @typedef GetAppCustomFieldsByResourceIdParam
|
|
233
|
+
* @property {string} resource
|
|
234
|
+
* @property {string} resourceId
|
|
249
235
|
*/
|
|
250
236
|
|
|
251
237
|
/**
|
|
252
|
-
* @typedef
|
|
253
|
-
* @property {string}
|
|
238
|
+
* @typedef GetAppCustomObjectParam
|
|
239
|
+
* @property {string} metaobjectId
|
|
240
|
+
*/
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @typedef GetAppCustomObjectDefinitionParam
|
|
244
|
+
* @property {string} definitionId
|
|
254
245
|
*/
|
|
255
246
|
|
|
256
247
|
/**
|
|
@@ -261,10 +252,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
261
252
|
*/
|
|
262
253
|
|
|
263
254
|
/**
|
|
264
|
-
* @typedef
|
|
255
|
+
* @typedef GetAppCustomObjectsParam
|
|
256
|
+
* @property {string} [definitionId]
|
|
265
257
|
* @property {string} pageNo
|
|
266
258
|
* @property {string} pageSize
|
|
267
|
-
* @property {string} definitionSlug
|
|
268
259
|
*/
|
|
269
260
|
|
|
270
261
|
/**
|
|
@@ -352,8 +343,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
352
343
|
* @typedef GetNavigationBySlugParam
|
|
353
344
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
354
345
|
* a navigation. You can get slug value of a navigation from `getNavigations` API.
|
|
355
|
-
* @property {string}
|
|
356
|
-
* Acceptable values are: web, android, ios
|
|
346
|
+
* @property {string} devicePlatform - Filter navigations by platform.
|
|
347
|
+
* Acceptable values are: web, android, ios, all
|
|
357
348
|
*/
|
|
358
349
|
|
|
359
350
|
/**
|
|
@@ -436,8 +427,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
436
427
|
/** @typedef GetSupportInformationParam */
|
|
437
428
|
|
|
438
429
|
/**
|
|
439
|
-
* @typedef
|
|
440
|
-
* @property {string}
|
|
430
|
+
* @typedef ImportAppCustomObjectEntriesParam
|
|
431
|
+
* @property {string} definitionId
|
|
441
432
|
* @property {ContentPlatformModel.CustomObjectBulkSchema} body
|
|
442
433
|
*/
|
|
443
434
|
|
|
@@ -453,8 +444,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
453
444
|
*/
|
|
454
445
|
|
|
455
446
|
/**
|
|
456
|
-
* @typedef
|
|
457
|
-
* @property {string}
|
|
447
|
+
* @typedef SampleAppCustomObjectBulkEntryParam
|
|
448
|
+
* @property {string} definitionId
|
|
458
449
|
*/
|
|
459
450
|
|
|
460
451
|
/**
|
|
@@ -475,37 +466,27 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
475
466
|
*/
|
|
476
467
|
|
|
477
468
|
/**
|
|
478
|
-
* @typedef
|
|
479
|
-
* @property {string}
|
|
480
|
-
* @property {string} resourceSlug
|
|
481
|
-
* @property {ContentPlatformModel.CustomFieldRequestSchema} body
|
|
482
|
-
*/
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* @typedef UpdateAppCustomFieldDefinitionBySlugParam
|
|
486
|
-
* @property {string} slug
|
|
487
|
-
* @property {string} resource
|
|
488
|
-
* @property {string} namespace
|
|
469
|
+
* @typedef UpdateAppCustomFieldDefinitionParam
|
|
470
|
+
* @property {string} definitionId
|
|
489
471
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
490
472
|
*/
|
|
491
473
|
|
|
492
474
|
/**
|
|
493
|
-
* @typedef
|
|
494
|
-
* @property {string}
|
|
495
|
-
* @property {
|
|
496
|
-
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
475
|
+
* @typedef UpdateAppCustomObjectParam
|
|
476
|
+
* @property {string} metaobjectId
|
|
477
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchema} body
|
|
497
478
|
*/
|
|
498
479
|
|
|
499
480
|
/**
|
|
500
|
-
* @typedef
|
|
501
|
-
* @property {string}
|
|
481
|
+
* @typedef UpdateAppCustomObjectDefinitionParam
|
|
482
|
+
* @property {string} definitionId
|
|
502
483
|
* @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
|
|
503
484
|
*/
|
|
504
485
|
|
|
505
486
|
/**
|
|
506
487
|
* @typedef UpdateBlogParam
|
|
507
488
|
* @property {string} id - ID allotted to the blog.
|
|
508
|
-
* @property {ContentPlatformModel.
|
|
489
|
+
* @property {ContentPlatformModel.BlogRequest} body
|
|
509
490
|
*/
|
|
510
491
|
|
|
511
492
|
/**
|
|
@@ -540,7 +521,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
540
521
|
/**
|
|
541
522
|
* @typedef UpdateNavigationParam
|
|
542
523
|
* @property {string} id - ID allotted to the navigation.
|
|
543
|
-
* @property {ContentPlatformModel.
|
|
524
|
+
* @property {ContentPlatformModel.NavigationRequest} body
|
|
544
525
|
*/
|
|
545
526
|
|
|
546
527
|
/**
|
|
@@ -553,7 +534,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
553
534
|
* @typedef UpdatePagePreviewParam
|
|
554
535
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
555
536
|
* a page. You can get slug value of a page from `getPages` API.
|
|
556
|
-
* @property {ContentPlatformModel.
|
|
537
|
+
* @property {ContentPlatformModel.PagePublishRequest} body
|
|
557
538
|
*/
|
|
558
539
|
|
|
559
540
|
/**
|
|
@@ -570,7 +551,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
570
551
|
/**
|
|
571
552
|
* @typedef UpdateSlideshowParam
|
|
572
553
|
* @property {string} id - ID allotted to the slideshow.
|
|
573
|
-
* @property {ContentPlatformModel.
|
|
554
|
+
* @property {ContentPlatformModel.SlideshowRequest} body
|
|
574
555
|
*/
|
|
575
556
|
|
|
576
557
|
/**
|
|
@@ -615,19 +596,26 @@ class ContentPlatformApplicationValidator {
|
|
|
615
596
|
}).required();
|
|
616
597
|
}
|
|
617
598
|
|
|
599
|
+
/** @returns {CreateAppCustomFieldByResourceIdParam} */
|
|
600
|
+
static createAppCustomFieldByResourceId() {
|
|
601
|
+
return Joi.object({
|
|
602
|
+
resource: Joi.string().allow("").required(),
|
|
603
|
+
resourceId: Joi.string().allow("").required(),
|
|
604
|
+
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
605
|
+
}).required();
|
|
606
|
+
}
|
|
607
|
+
|
|
618
608
|
/** @returns {CreateAppCustomFieldDefinitionParam} */
|
|
619
609
|
static createAppCustomFieldDefinition() {
|
|
620
610
|
return Joi.object({
|
|
621
|
-
resource: Joi.string().allow("").required(),
|
|
622
611
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
623
612
|
}).required();
|
|
624
613
|
}
|
|
625
614
|
|
|
626
|
-
/** @returns {
|
|
627
|
-
static
|
|
615
|
+
/** @returns {CreateAppCustomObjectParam} */
|
|
616
|
+
static createAppCustomObject() {
|
|
628
617
|
return Joi.object({
|
|
629
|
-
|
|
630
|
-
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
618
|
+
body: ContentPlatformModel.CustomObjectRequestSchema().required(),
|
|
631
619
|
}).required();
|
|
632
620
|
}
|
|
633
621
|
|
|
@@ -641,7 +629,7 @@ class ContentPlatformApplicationValidator {
|
|
|
641
629
|
/** @returns {CreateBlogParam} */
|
|
642
630
|
static createBlog() {
|
|
643
631
|
return Joi.object({
|
|
644
|
-
body: ContentPlatformModel.
|
|
632
|
+
body: ContentPlatformModel.BlogRequest().required(),
|
|
645
633
|
}).required();
|
|
646
634
|
}
|
|
647
635
|
|
|
@@ -662,21 +650,21 @@ class ContentPlatformApplicationValidator {
|
|
|
662
650
|
/** @returns {CreateNavigationParam} */
|
|
663
651
|
static createNavigation() {
|
|
664
652
|
return Joi.object({
|
|
665
|
-
body: ContentPlatformModel.
|
|
653
|
+
body: ContentPlatformModel.NavigationRequest().required(),
|
|
666
654
|
}).required();
|
|
667
655
|
}
|
|
668
656
|
|
|
669
657
|
/** @returns {CreatePageParam} */
|
|
670
658
|
static createPage() {
|
|
671
659
|
return Joi.object({
|
|
672
|
-
body: ContentPlatformModel.
|
|
660
|
+
body: ContentPlatformModel.PageRequest().required(),
|
|
673
661
|
}).required();
|
|
674
662
|
}
|
|
675
663
|
|
|
676
664
|
/** @returns {CreatePagePreviewParam} */
|
|
677
665
|
static createPagePreview() {
|
|
678
666
|
return Joi.object({
|
|
679
|
-
body: ContentPlatformModel.
|
|
667
|
+
body: ContentPlatformModel.PageRequest().required(),
|
|
680
668
|
}).required();
|
|
681
669
|
}
|
|
682
670
|
|
|
@@ -690,7 +678,7 @@ class ContentPlatformApplicationValidator {
|
|
|
690
678
|
/** @returns {CreateSlideshowParam} */
|
|
691
679
|
static createSlideshow() {
|
|
692
680
|
return Joi.object({
|
|
693
|
-
body: ContentPlatformModel.
|
|
681
|
+
body: ContentPlatformModel.SlideshowRequest().required(),
|
|
694
682
|
}).required();
|
|
695
683
|
}
|
|
696
684
|
|
|
@@ -701,27 +689,24 @@ class ContentPlatformApplicationValidator {
|
|
|
701
689
|
}).required();
|
|
702
690
|
}
|
|
703
691
|
|
|
704
|
-
/** @returns {
|
|
705
|
-
static
|
|
692
|
+
/** @returns {DeleteAppCustomFieldDefinitionParam} */
|
|
693
|
+
static deleteAppCustomFieldDefinition() {
|
|
706
694
|
return Joi.object({
|
|
707
|
-
|
|
708
|
-
resource: Joi.string().allow("").required(),
|
|
709
|
-
namespace: Joi.string().allow("").required(),
|
|
695
|
+
definitionId: Joi.string().allow("").required(),
|
|
710
696
|
}).required();
|
|
711
697
|
}
|
|
712
698
|
|
|
713
|
-
/** @returns {
|
|
714
|
-
static
|
|
699
|
+
/** @returns {DeleteAppCustomObjectParam} */
|
|
700
|
+
static deleteAppCustomObject() {
|
|
715
701
|
return Joi.object({
|
|
716
|
-
|
|
717
|
-
slug: Joi.string().allow("").required(),
|
|
702
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
718
703
|
}).required();
|
|
719
704
|
}
|
|
720
705
|
|
|
721
|
-
/** @returns {
|
|
722
|
-
static
|
|
706
|
+
/** @returns {DeleteAppCustomObjectDefinitionParam} */
|
|
707
|
+
static deleteAppCustomObjectDefinition() {
|
|
723
708
|
return Joi.object({
|
|
724
|
-
|
|
709
|
+
definitionId: Joi.string().allow("").required(),
|
|
725
710
|
}).required();
|
|
726
711
|
}
|
|
727
712
|
|
|
@@ -820,10 +805,10 @@ class ContentPlatformApplicationValidator {
|
|
|
820
805
|
}).required();
|
|
821
806
|
}
|
|
822
807
|
|
|
823
|
-
/** @returns {
|
|
824
|
-
static
|
|
808
|
+
/** @returns {ExportAppCustomObjectEntriesParam} */
|
|
809
|
+
static exportAppCustomObjectEntries() {
|
|
825
810
|
return Joi.object({
|
|
826
|
-
|
|
811
|
+
definitionId: Joi.string().allow("").required(),
|
|
827
812
|
}).required();
|
|
828
813
|
}
|
|
829
814
|
|
|
@@ -850,25 +835,10 @@ class ContentPlatformApplicationValidator {
|
|
|
850
835
|
}).required();
|
|
851
836
|
}
|
|
852
837
|
|
|
853
|
-
/** @returns {
|
|
854
|
-
static
|
|
838
|
+
/** @returns {GetAppCustomFieldDefinitionParam} */
|
|
839
|
+
static getAppCustomFieldDefinition() {
|
|
855
840
|
return Joi.object({
|
|
856
|
-
|
|
857
|
-
pageSize: Joi.string().allow("").required(),
|
|
858
|
-
resource: Joi.string().allow("").required(),
|
|
859
|
-
types: Joi.string().allow(""),
|
|
860
|
-
search: Joi.string().allow(""),
|
|
861
|
-
slugs: Joi.string().allow(""),
|
|
862
|
-
namespaces: Joi.string().allow(""),
|
|
863
|
-
}).required();
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
/** @returns {GetAppCustomFieldDefinitionBySlugParam} */
|
|
867
|
-
static getAppCustomFieldDefinitionBySlug() {
|
|
868
|
-
return Joi.object({
|
|
869
|
-
slug: Joi.string().allow("").required(),
|
|
870
|
-
resource: Joi.string().allow("").required(),
|
|
871
|
-
namespace: Joi.string().allow("").required(),
|
|
841
|
+
definitionId: Joi.string().allow("").required(),
|
|
872
842
|
}).required();
|
|
873
843
|
}
|
|
874
844
|
|
|
@@ -877,11 +847,9 @@ class ContentPlatformApplicationValidator {
|
|
|
877
847
|
return Joi.object({
|
|
878
848
|
pageNo: Joi.string().allow("").required(),
|
|
879
849
|
pageSize: Joi.string().allow("").required(),
|
|
880
|
-
|
|
881
|
-
|
|
850
|
+
resource: Joi.string().allow(""),
|
|
851
|
+
type: Joi.string().allow(""),
|
|
882
852
|
search: Joi.string().allow(""),
|
|
883
|
-
slugs: Joi.string().allow(""),
|
|
884
|
-
namespaces: Joi.string().allow(""),
|
|
885
853
|
}).required();
|
|
886
854
|
}
|
|
887
855
|
|
|
@@ -890,26 +858,32 @@ class ContentPlatformApplicationValidator {
|
|
|
890
858
|
return Joi.object({}).required();
|
|
891
859
|
}
|
|
892
860
|
|
|
893
|
-
/** @returns {
|
|
894
|
-
static
|
|
861
|
+
/** @returns {GetAppCustomFieldsParam} */
|
|
862
|
+
static getAppCustomFields() {
|
|
895
863
|
return Joi.object({
|
|
896
864
|
resource: Joi.string().allow("").required(),
|
|
897
|
-
resourceSlug: Joi.string().allow("").required(),
|
|
898
865
|
}).required();
|
|
899
866
|
}
|
|
900
867
|
|
|
901
|
-
/** @returns {
|
|
902
|
-
static
|
|
868
|
+
/** @returns {GetAppCustomFieldsByResourceIdParam} */
|
|
869
|
+
static getAppCustomFieldsByResourceId() {
|
|
903
870
|
return Joi.object({
|
|
904
|
-
|
|
905
|
-
|
|
871
|
+
resource: Joi.string().allow("").required(),
|
|
872
|
+
resourceId: Joi.string().allow("").required(),
|
|
906
873
|
}).required();
|
|
907
874
|
}
|
|
908
875
|
|
|
909
|
-
/** @returns {
|
|
910
|
-
static
|
|
876
|
+
/** @returns {GetAppCustomObjectParam} */
|
|
877
|
+
static getAppCustomObject() {
|
|
911
878
|
return Joi.object({
|
|
912
|
-
|
|
879
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
880
|
+
}).required();
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/** @returns {GetAppCustomObjectDefinitionParam} */
|
|
884
|
+
static getAppCustomObjectDefinition() {
|
|
885
|
+
return Joi.object({
|
|
886
|
+
definitionId: Joi.string().allow("").required(),
|
|
913
887
|
}).required();
|
|
914
888
|
}
|
|
915
889
|
|
|
@@ -922,12 +896,12 @@ class ContentPlatformApplicationValidator {
|
|
|
922
896
|
}).required();
|
|
923
897
|
}
|
|
924
898
|
|
|
925
|
-
/** @returns {
|
|
926
|
-
static
|
|
899
|
+
/** @returns {GetAppCustomObjectsParam} */
|
|
900
|
+
static getAppCustomObjects() {
|
|
927
901
|
return Joi.object({
|
|
902
|
+
definitionId: Joi.string().allow(""),
|
|
928
903
|
pageNo: Joi.string().allow("").required(),
|
|
929
904
|
pageSize: Joi.string().allow("").required(),
|
|
930
|
-
definitionSlug: Joi.string().allow("").required(),
|
|
931
905
|
}).required();
|
|
932
906
|
}
|
|
933
907
|
|
|
@@ -1039,7 +1013,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1039
1013
|
static getNavigationBySlug() {
|
|
1040
1014
|
return Joi.object({
|
|
1041
1015
|
slug: Joi.string().allow("").required(),
|
|
1042
|
-
devicePlatform: Joi.string().allow(""),
|
|
1016
|
+
devicePlatform: Joi.string().allow("").required(),
|
|
1043
1017
|
}).required();
|
|
1044
1018
|
}
|
|
1045
1019
|
|
|
@@ -1136,10 +1110,10 @@ class ContentPlatformApplicationValidator {
|
|
|
1136
1110
|
return Joi.object({}).required();
|
|
1137
1111
|
}
|
|
1138
1112
|
|
|
1139
|
-
/** @returns {
|
|
1140
|
-
static
|
|
1113
|
+
/** @returns {ImportAppCustomObjectEntriesParam} */
|
|
1114
|
+
static importAppCustomObjectEntries() {
|
|
1141
1115
|
return Joi.object({
|
|
1142
|
-
|
|
1116
|
+
definitionId: Joi.string().allow("").required(),
|
|
1143
1117
|
body: ContentPlatformModel.CustomObjectBulkSchema().required(),
|
|
1144
1118
|
}).required();
|
|
1145
1119
|
}
|
|
@@ -1159,10 +1133,10 @@ class ContentPlatformApplicationValidator {
|
|
|
1159
1133
|
}).required();
|
|
1160
1134
|
}
|
|
1161
1135
|
|
|
1162
|
-
/** @returns {
|
|
1163
|
-
static
|
|
1136
|
+
/** @returns {SampleAppCustomObjectBulkEntryParam} */
|
|
1137
|
+
static sampleAppCustomObjectBulkEntry() {
|
|
1164
1138
|
return Joi.object({
|
|
1165
|
-
|
|
1139
|
+
definitionId: Joi.string().allow("").required(),
|
|
1166
1140
|
}).required();
|
|
1167
1141
|
}
|
|
1168
1142
|
|
|
@@ -1189,38 +1163,26 @@ class ContentPlatformApplicationValidator {
|
|
|
1189
1163
|
}).required();
|
|
1190
1164
|
}
|
|
1191
1165
|
|
|
1192
|
-
/** @returns {
|
|
1193
|
-
static
|
|
1166
|
+
/** @returns {UpdateAppCustomFieldDefinitionParam} */
|
|
1167
|
+
static updateAppCustomFieldDefinition() {
|
|
1194
1168
|
return Joi.object({
|
|
1195
|
-
|
|
1196
|
-
resourceSlug: Joi.string().allow("").required(),
|
|
1197
|
-
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
1198
|
-
}).required();
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
/** @returns {UpdateAppCustomFieldDefinitionBySlugParam} */
|
|
1202
|
-
static updateAppCustomFieldDefinitionBySlug() {
|
|
1203
|
-
return Joi.object({
|
|
1204
|
-
slug: Joi.string().allow("").required(),
|
|
1205
|
-
resource: Joi.string().allow("").required(),
|
|
1206
|
-
namespace: Joi.string().allow("").required(),
|
|
1169
|
+
definitionId: Joi.string().allow("").required(),
|
|
1207
1170
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
1208
1171
|
}).required();
|
|
1209
1172
|
}
|
|
1210
1173
|
|
|
1211
|
-
/** @returns {
|
|
1212
|
-
static
|
|
1174
|
+
/** @returns {UpdateAppCustomObjectParam} */
|
|
1175
|
+
static updateAppCustomObject() {
|
|
1213
1176
|
return Joi.object({
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
1177
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
1178
|
+
body: ContentPlatformModel.CustomObjectRequestSchema().required(),
|
|
1217
1179
|
}).required();
|
|
1218
1180
|
}
|
|
1219
1181
|
|
|
1220
|
-
/** @returns {
|
|
1221
|
-
static
|
|
1182
|
+
/** @returns {UpdateAppCustomObjectDefinitionParam} */
|
|
1183
|
+
static updateAppCustomObjectDefinition() {
|
|
1222
1184
|
return Joi.object({
|
|
1223
|
-
|
|
1185
|
+
definitionId: Joi.string().allow("").required(),
|
|
1224
1186
|
body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
|
|
1225
1187
|
}).required();
|
|
1226
1188
|
}
|
|
@@ -1229,7 +1191,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1229
1191
|
static updateBlog() {
|
|
1230
1192
|
return Joi.object({
|
|
1231
1193
|
id: Joi.string().allow("").required(),
|
|
1232
|
-
body: ContentPlatformModel.
|
|
1194
|
+
body: ContentPlatformModel.BlogRequest().required(),
|
|
1233
1195
|
}).required();
|
|
1234
1196
|
}
|
|
1235
1197
|
|
|
@@ -1276,7 +1238,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1276
1238
|
static updateNavigation() {
|
|
1277
1239
|
return Joi.object({
|
|
1278
1240
|
id: Joi.string().allow("").required(),
|
|
1279
|
-
body: ContentPlatformModel.
|
|
1241
|
+
body: ContentPlatformModel.NavigationRequest().required(),
|
|
1280
1242
|
}).required();
|
|
1281
1243
|
}
|
|
1282
1244
|
|
|
@@ -1292,7 +1254,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1292
1254
|
static updatePagePreview() {
|
|
1293
1255
|
return Joi.object({
|
|
1294
1256
|
slug: Joi.string().allow("").required(),
|
|
1295
|
-
body: ContentPlatformModel.
|
|
1257
|
+
body: ContentPlatformModel.PagePublishRequest().required(),
|
|
1296
1258
|
}).required();
|
|
1297
1259
|
}
|
|
1298
1260
|
|
|
@@ -1315,7 +1277,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1315
1277
|
static updateSlideshow() {
|
|
1316
1278
|
return Joi.object({
|
|
1317
1279
|
id: Joi.string().allow("").required(),
|
|
1318
|
-
body: ContentPlatformModel.
|
|
1280
|
+
body: ContentPlatformModel.SlideshowRequest().required(),
|
|
1319
1281
|
}).required();
|
|
1320
1282
|
}
|
|
1321
1283
|
|