@gofynd/fdk-client-javascript 1.6.4 → 3.0.0-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 +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- 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 +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- 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 +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4103 -9109
- package/sdk/platform/Order/OrderPlatformModel.js +3198 -4245
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- 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 +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- 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 +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- 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/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -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
|
/**
|
|
@@ -55,6 +60,11 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
55
60
|
* @property {ContentPlatformModel.CreateFaqCategoryRequestSchema} body
|
|
56
61
|
*/
|
|
57
62
|
|
|
63
|
+
/**
|
|
64
|
+
* @typedef CreateInjectableTagParam
|
|
65
|
+
* @property {ContentPlatformModel.CreateTagRequestSchema} body
|
|
66
|
+
*/
|
|
67
|
+
|
|
58
68
|
/**
|
|
59
69
|
* @typedef CreateLandingPageParam
|
|
60
70
|
* @property {ContentPlatformModel.LandingPageSchema} body
|
|
@@ -62,12 +72,17 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
62
72
|
|
|
63
73
|
/**
|
|
64
74
|
* @typedef CreateNavigationParam
|
|
65
|
-
* @property {ContentPlatformModel.
|
|
75
|
+
* @property {ContentPlatformModel.NavigationRequest} body
|
|
66
76
|
*/
|
|
67
77
|
|
|
68
78
|
/**
|
|
69
79
|
* @typedef CreatePageParam
|
|
70
|
-
* @property {ContentPlatformModel.
|
|
80
|
+
* @property {ContentPlatformModel.PageRequest} body
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @typedef CreatePagePreviewParam
|
|
85
|
+
* @property {ContentPlatformModel.PageRequest} body
|
|
71
86
|
*/
|
|
72
87
|
|
|
73
88
|
/**
|
|
@@ -75,27 +90,33 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
75
90
|
* @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
|
|
76
91
|
*/
|
|
77
92
|
|
|
93
|
+
/** @typedef DeleteAllInjectableTagsParam */
|
|
94
|
+
|
|
78
95
|
/**
|
|
79
96
|
* @typedef DeleteAnnouncementParam
|
|
80
97
|
* @property {string} announcementId - ID allotted to the announcement.
|
|
81
98
|
*/
|
|
82
99
|
|
|
83
100
|
/**
|
|
84
|
-
* @typedef
|
|
85
|
-
* @property {string}
|
|
101
|
+
* @typedef DeleteAppCustomFieldDefinitionParam
|
|
102
|
+
* @property {string} id
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @typedef DeleteAppCustomFieldsByResourceIdParam
|
|
86
107
|
* @property {string} resource
|
|
87
|
-
* @property {string}
|
|
108
|
+
* @property {string} resourceId
|
|
109
|
+
* @property {string} ids
|
|
88
110
|
*/
|
|
89
111
|
|
|
90
112
|
/**
|
|
91
|
-
* @typedef
|
|
92
|
-
* @property {string}
|
|
93
|
-
* @property {string} slug
|
|
113
|
+
* @typedef DeleteAppCustomObjectParam
|
|
114
|
+
* @property {string} id
|
|
94
115
|
*/
|
|
95
116
|
|
|
96
117
|
/**
|
|
97
|
-
* @typedef
|
|
98
|
-
* @property {string}
|
|
118
|
+
* @typedef DeleteAppCustomObjectDefinitionParam
|
|
119
|
+
* @property {string} id
|
|
99
120
|
*/
|
|
100
121
|
|
|
101
122
|
/**
|
|
@@ -141,7 +162,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
141
162
|
|
|
142
163
|
/**
|
|
143
164
|
* @typedef DeleteSEOMarkupSchemaParam
|
|
144
|
-
* @property {string}
|
|
165
|
+
* @property {string} schemaId - Alphanumeric ID allotted to a SEO Markup Schema
|
|
145
166
|
* Template created within a business.
|
|
146
167
|
*/
|
|
147
168
|
|
|
@@ -159,21 +180,20 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
159
180
|
|
|
160
181
|
/**
|
|
161
182
|
* @typedef EditSEOMarkupSchemaParam
|
|
162
|
-
* @property {string}
|
|
183
|
+
* @property {string} schemaId - Alphanumeric ID allotted to a SEO Markup Schema
|
|
163
184
|
* Template created within a business.
|
|
164
185
|
* @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
|
|
165
186
|
*/
|
|
166
187
|
|
|
167
188
|
/**
|
|
168
|
-
* @typedef
|
|
169
|
-
* @property {string}
|
|
189
|
+
* @typedef ExportAppCustomObjectEntriesParam
|
|
190
|
+
* @property {string} definitionId
|
|
170
191
|
*/
|
|
171
192
|
|
|
172
193
|
/**
|
|
173
194
|
* @typedef GenerateSEOTitleParam
|
|
174
|
-
* @property {
|
|
175
|
-
*
|
|
176
|
-
* title, description
|
|
195
|
+
* @property {string} type - String representing the type of SEO content to be
|
|
196
|
+
* generated. Possible values are: title, description
|
|
177
197
|
* @property {ContentPlatformModel.GenerateSEOContent} body
|
|
178
198
|
*/
|
|
179
199
|
|
|
@@ -191,21 +211,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
191
211
|
*/
|
|
192
212
|
|
|
193
213
|
/**
|
|
194
|
-
* @typedef
|
|
195
|
-
* @property {string}
|
|
196
|
-
* @property {string} pageSize
|
|
197
|
-
* @property {string} resource
|
|
198
|
-
* @property {string} [types]
|
|
199
|
-
* @property {string} [search]
|
|
200
|
-
* @property {string} [slugs]
|
|
201
|
-
* @property {string} [namespaces]
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* @typedef GetAppCustomFieldDefinitionBySlugParam
|
|
206
|
-
* @property {string} slug
|
|
207
|
-
* @property {string} resource
|
|
208
|
-
* @property {string} namespace
|
|
214
|
+
* @typedef GetAppCustomFieldDefinitionParam
|
|
215
|
+
* @property {string} id
|
|
209
216
|
*/
|
|
210
217
|
|
|
211
218
|
/**
|
|
@@ -216,26 +223,36 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
216
223
|
* @property {string} [types]
|
|
217
224
|
* @property {string} [search]
|
|
218
225
|
* @property {string} [slugs]
|
|
219
|
-
|
|
226
|
+
*/
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @typedef GetAppCustomFieldJobsParam
|
|
230
|
+
* @property {string} page
|
|
231
|
+
* @property {string} pageSize
|
|
232
|
+
* @property {string} actionType
|
|
220
233
|
*/
|
|
221
234
|
|
|
222
235
|
/** @typedef GetAppCustomFieldTypesParam */
|
|
223
236
|
|
|
224
237
|
/**
|
|
225
|
-
* @typedef
|
|
238
|
+
* @typedef GetAppCustomFieldsParam
|
|
226
239
|
* @property {string} resource
|
|
227
|
-
* @property {string} resourceSlug
|
|
228
240
|
*/
|
|
229
241
|
|
|
230
242
|
/**
|
|
231
|
-
* @typedef
|
|
232
|
-
* @property {string}
|
|
233
|
-
* @property {string}
|
|
243
|
+
* @typedef GetAppCustomFieldsByResourceIdParam
|
|
244
|
+
* @property {string} resource
|
|
245
|
+
* @property {string} resourceId
|
|
234
246
|
*/
|
|
235
247
|
|
|
236
248
|
/**
|
|
237
|
-
* @typedef
|
|
238
|
-
* @property {string}
|
|
249
|
+
* @typedef GetAppCustomObjectParam
|
|
250
|
+
* @property {string} id
|
|
251
|
+
*/
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @typedef GetAppCustomObjectDefinitionParam
|
|
255
|
+
* @property {string} id
|
|
239
256
|
*/
|
|
240
257
|
|
|
241
258
|
/**
|
|
@@ -246,10 +263,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
246
263
|
*/
|
|
247
264
|
|
|
248
265
|
/**
|
|
249
|
-
* @typedef
|
|
266
|
+
* @typedef GetAppCustomObjectsParam
|
|
267
|
+
* @property {string} [definitionId]
|
|
250
268
|
* @property {string} pageNo
|
|
251
269
|
* @property {string} pageSize
|
|
252
|
-
* @property {string} definitionSlug
|
|
253
270
|
*/
|
|
254
271
|
|
|
255
272
|
/**
|
|
@@ -280,6 +297,18 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
280
297
|
* @property {string} [status] - Blogs retrieve based on the status passed.
|
|
281
298
|
*/
|
|
282
299
|
|
|
300
|
+
/**
|
|
301
|
+
* @typedef GetComponentByIdParam
|
|
302
|
+
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
303
|
+
* a blog page. You can get slug value of a blog from `getBlogs` API.
|
|
304
|
+
*/
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @typedef GetDataLoaderApiSpecsParam
|
|
308
|
+
* @property {string} dataLoader - Alphanumeric ID allotted to an application
|
|
309
|
+
* created within a business account.
|
|
310
|
+
*/
|
|
311
|
+
|
|
283
312
|
/** @typedef GetDataLoadersParam */
|
|
284
313
|
|
|
285
314
|
/**
|
|
@@ -318,10 +347,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
318
347
|
* can get slug value of an FAQ category from `getFaqCategories` API.
|
|
319
348
|
*/
|
|
320
349
|
|
|
321
|
-
/**
|
|
322
|
-
* @typedef GetInjectableTagsParam
|
|
323
|
-
* @property {boolean} [all] - Get all tags irrespective of the creator of tags
|
|
324
|
-
*/
|
|
350
|
+
/** @typedef GetInjectableTagsParam */
|
|
325
351
|
|
|
326
352
|
/**
|
|
327
353
|
* @typedef GetLandingPagesParam
|
|
@@ -386,7 +412,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
386
412
|
|
|
387
413
|
/**
|
|
388
414
|
* @typedef GetSEOMarkupSchemaParam
|
|
389
|
-
* @property {string}
|
|
415
|
+
* @property {string} schemaId - Alphanumeric ID allotted to a SEO Markup Schema
|
|
390
416
|
* Template created within a business.
|
|
391
417
|
*/
|
|
392
418
|
|
|
@@ -403,8 +429,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
403
429
|
/** @typedef GetSupportInformationParam */
|
|
404
430
|
|
|
405
431
|
/**
|
|
406
|
-
* @typedef
|
|
407
|
-
* @property {string}
|
|
432
|
+
* @typedef ImportAppCustomObjectEntriesParam
|
|
433
|
+
* @property {string} definitionId
|
|
408
434
|
* @property {ContentPlatformModel.CustomObjectBulkSchema} body
|
|
409
435
|
*/
|
|
410
436
|
|
|
@@ -420,8 +446,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
420
446
|
*/
|
|
421
447
|
|
|
422
448
|
/**
|
|
423
|
-
* @typedef
|
|
424
|
-
* @property {string}
|
|
449
|
+
* @typedef SampleAppCustomObjectBulkEntryParam
|
|
450
|
+
* @property {string} definitionId
|
|
425
451
|
*/
|
|
426
452
|
|
|
427
453
|
/**
|
|
@@ -442,37 +468,34 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
442
468
|
*/
|
|
443
469
|
|
|
444
470
|
/**
|
|
445
|
-
* @typedef
|
|
471
|
+
* @typedef UpdateAppCustomFieldByResourceIdParam
|
|
446
472
|
* @property {string} resource
|
|
447
|
-
* @property {string}
|
|
473
|
+
* @property {string} resourceId
|
|
448
474
|
* @property {ContentPlatformModel.CustomFieldRequestSchema} body
|
|
449
475
|
*/
|
|
450
476
|
|
|
451
477
|
/**
|
|
452
|
-
* @typedef
|
|
453
|
-
* @property {string}
|
|
454
|
-
* @property {string} resource
|
|
455
|
-
* @property {string} namespace
|
|
478
|
+
* @typedef UpdateAppCustomFieldDefinitionParam
|
|
479
|
+
* @property {string} id
|
|
456
480
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
457
481
|
*/
|
|
458
482
|
|
|
459
483
|
/**
|
|
460
|
-
* @typedef
|
|
461
|
-
* @property {string}
|
|
462
|
-
* @property {
|
|
463
|
-
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
484
|
+
* @typedef UpdateAppCustomObjectParam
|
|
485
|
+
* @property {string} id
|
|
486
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchema} body
|
|
464
487
|
*/
|
|
465
488
|
|
|
466
489
|
/**
|
|
467
|
-
* @typedef
|
|
468
|
-
* @property {string}
|
|
490
|
+
* @typedef UpdateAppCustomObjectDefinitionParam
|
|
491
|
+
* @property {string} id
|
|
469
492
|
* @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
|
|
470
493
|
*/
|
|
471
494
|
|
|
472
495
|
/**
|
|
473
496
|
* @typedef UpdateBlogParam
|
|
474
497
|
* @property {string} id - ID allotted to the blog.
|
|
475
|
-
* @property {ContentPlatformModel.
|
|
498
|
+
* @property {ContentPlatformModel.BlogRequest} body
|
|
476
499
|
*/
|
|
477
500
|
|
|
478
501
|
/**
|
|
@@ -507,7 +530,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
507
530
|
/**
|
|
508
531
|
* @typedef UpdateNavigationParam
|
|
509
532
|
* @property {string} id - ID allotted to the navigation.
|
|
510
|
-
* @property {ContentPlatformModel.
|
|
533
|
+
* @property {ContentPlatformModel.NavigationRequest} body
|
|
511
534
|
*/
|
|
512
535
|
|
|
513
536
|
/**
|
|
@@ -520,7 +543,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
520
543
|
* @typedef UpdatePagePreviewParam
|
|
521
544
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
522
545
|
* a page. You can get slug value of a page from `getPages` API.
|
|
523
|
-
* @property {ContentPlatformModel.
|
|
546
|
+
* @property {ContentPlatformModel.PagePublishRequest} body
|
|
524
547
|
*/
|
|
525
548
|
|
|
526
549
|
/**
|
|
@@ -576,19 +599,26 @@ class ContentPlatformApplicationValidator {
|
|
|
576
599
|
}).required();
|
|
577
600
|
}
|
|
578
601
|
|
|
602
|
+
/** @returns {CreateAppCustomFieldByResourceIdParam} */
|
|
603
|
+
static createAppCustomFieldByResourceId() {
|
|
604
|
+
return Joi.object({
|
|
605
|
+
resource: Joi.string().allow("").required(),
|
|
606
|
+
resourceId: Joi.string().allow("").required(),
|
|
607
|
+
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
608
|
+
}).required();
|
|
609
|
+
}
|
|
610
|
+
|
|
579
611
|
/** @returns {CreateAppCustomFieldDefinitionParam} */
|
|
580
612
|
static createAppCustomFieldDefinition() {
|
|
581
613
|
return Joi.object({
|
|
582
|
-
resource: Joi.string().allow("").required(),
|
|
583
614
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
584
615
|
}).required();
|
|
585
616
|
}
|
|
586
617
|
|
|
587
|
-
/** @returns {
|
|
588
|
-
static
|
|
618
|
+
/** @returns {CreateAppCustomObjectParam} */
|
|
619
|
+
static createAppCustomObject() {
|
|
589
620
|
return Joi.object({
|
|
590
|
-
|
|
591
|
-
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
621
|
+
body: ContentPlatformModel.CustomObjectRequestSchema().required(),
|
|
592
622
|
}).required();
|
|
593
623
|
}
|
|
594
624
|
|
|
@@ -602,7 +632,7 @@ class ContentPlatformApplicationValidator {
|
|
|
602
632
|
/** @returns {CreateBlogParam} */
|
|
603
633
|
static createBlog() {
|
|
604
634
|
return Joi.object({
|
|
605
|
-
body: ContentPlatformModel.
|
|
635
|
+
body: ContentPlatformModel.BlogRequest().required(),
|
|
606
636
|
}).required();
|
|
607
637
|
}
|
|
608
638
|
|
|
@@ -613,6 +643,13 @@ class ContentPlatformApplicationValidator {
|
|
|
613
643
|
}).required();
|
|
614
644
|
}
|
|
615
645
|
|
|
646
|
+
/** @returns {CreateInjectableTagParam} */
|
|
647
|
+
static createInjectableTag() {
|
|
648
|
+
return Joi.object({
|
|
649
|
+
body: ContentPlatformModel.CreateTagRequestSchema().required(),
|
|
650
|
+
}).required();
|
|
651
|
+
}
|
|
652
|
+
|
|
616
653
|
/** @returns {CreateLandingPageParam} */
|
|
617
654
|
static createLandingPage() {
|
|
618
655
|
return Joi.object({
|
|
@@ -623,14 +660,21 @@ class ContentPlatformApplicationValidator {
|
|
|
623
660
|
/** @returns {CreateNavigationParam} */
|
|
624
661
|
static createNavigation() {
|
|
625
662
|
return Joi.object({
|
|
626
|
-
body: ContentPlatformModel.
|
|
663
|
+
body: ContentPlatformModel.NavigationRequest().required(),
|
|
627
664
|
}).required();
|
|
628
665
|
}
|
|
629
666
|
|
|
630
667
|
/** @returns {CreatePageParam} */
|
|
631
668
|
static createPage() {
|
|
632
669
|
return Joi.object({
|
|
633
|
-
body: ContentPlatformModel.
|
|
670
|
+
body: ContentPlatformModel.PageRequest().required(),
|
|
671
|
+
}).required();
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/** @returns {CreatePagePreviewParam} */
|
|
675
|
+
static createPagePreview() {
|
|
676
|
+
return Joi.object({
|
|
677
|
+
body: ContentPlatformModel.PageRequest().required(),
|
|
634
678
|
}).required();
|
|
635
679
|
}
|
|
636
680
|
|
|
@@ -641,6 +685,11 @@ class ContentPlatformApplicationValidator {
|
|
|
641
685
|
}).required();
|
|
642
686
|
}
|
|
643
687
|
|
|
688
|
+
/** @returns {DeleteAllInjectableTagsParam} */
|
|
689
|
+
static deleteAllInjectableTags() {
|
|
690
|
+
return Joi.object({}).required();
|
|
691
|
+
}
|
|
692
|
+
|
|
644
693
|
/** @returns {DeleteAnnouncementParam} */
|
|
645
694
|
static deleteAnnouncement() {
|
|
646
695
|
return Joi.object({
|
|
@@ -648,27 +697,33 @@ class ContentPlatformApplicationValidator {
|
|
|
648
697
|
}).required();
|
|
649
698
|
}
|
|
650
699
|
|
|
651
|
-
/** @returns {
|
|
652
|
-
static
|
|
700
|
+
/** @returns {DeleteAppCustomFieldDefinitionParam} */
|
|
701
|
+
static deleteAppCustomFieldDefinition() {
|
|
702
|
+
return Joi.object({
|
|
703
|
+
id: Joi.string().allow("").required(),
|
|
704
|
+
}).required();
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/** @returns {DeleteAppCustomFieldsByResourceIdParam} */
|
|
708
|
+
static deleteAppCustomFieldsByResourceId() {
|
|
653
709
|
return Joi.object({
|
|
654
|
-
slug: Joi.string().allow("").required(),
|
|
655
710
|
resource: Joi.string().allow("").required(),
|
|
656
|
-
|
|
711
|
+
resourceId: Joi.string().allow("").required(),
|
|
712
|
+
ids: Joi.string().allow("").required(),
|
|
657
713
|
}).required();
|
|
658
714
|
}
|
|
659
715
|
|
|
660
|
-
/** @returns {
|
|
661
|
-
static
|
|
716
|
+
/** @returns {DeleteAppCustomObjectParam} */
|
|
717
|
+
static deleteAppCustomObject() {
|
|
662
718
|
return Joi.object({
|
|
663
|
-
|
|
664
|
-
slug: Joi.string().allow("").required(),
|
|
719
|
+
id: Joi.string().allow("").required(),
|
|
665
720
|
}).required();
|
|
666
721
|
}
|
|
667
722
|
|
|
668
|
-
/** @returns {
|
|
669
|
-
static
|
|
723
|
+
/** @returns {DeleteAppCustomObjectDefinitionParam} */
|
|
724
|
+
static deleteAppCustomObjectDefinition() {
|
|
670
725
|
return Joi.object({
|
|
671
|
-
|
|
726
|
+
id: Joi.string().allow("").required(),
|
|
672
727
|
}).required();
|
|
673
728
|
}
|
|
674
729
|
|
|
@@ -732,7 +787,7 @@ class ContentPlatformApplicationValidator {
|
|
|
732
787
|
/** @returns {DeleteSEOMarkupSchemaParam} */
|
|
733
788
|
static deleteSEOMarkupSchema() {
|
|
734
789
|
return Joi.object({
|
|
735
|
-
|
|
790
|
+
schemaId: Joi.string().allow("").required(),
|
|
736
791
|
}).required();
|
|
737
792
|
}
|
|
738
793
|
|
|
@@ -755,22 +810,22 @@ class ContentPlatformApplicationValidator {
|
|
|
755
810
|
/** @returns {EditSEOMarkupSchemaParam} */
|
|
756
811
|
static editSEOMarkupSchema() {
|
|
757
812
|
return Joi.object({
|
|
758
|
-
|
|
813
|
+
schemaId: Joi.string().allow("").required(),
|
|
759
814
|
body: ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody().required(),
|
|
760
815
|
}).required();
|
|
761
816
|
}
|
|
762
817
|
|
|
763
|
-
/** @returns {
|
|
764
|
-
static
|
|
818
|
+
/** @returns {ExportAppCustomObjectEntriesParam} */
|
|
819
|
+
static exportAppCustomObjectEntries() {
|
|
765
820
|
return Joi.object({
|
|
766
|
-
|
|
821
|
+
definitionId: Joi.string().allow("").required(),
|
|
767
822
|
}).required();
|
|
768
823
|
}
|
|
769
824
|
|
|
770
825
|
/** @returns {GenerateSEOTitleParam} */
|
|
771
826
|
static generateSEOTitle() {
|
|
772
827
|
return Joi.object({
|
|
773
|
-
type:
|
|
828
|
+
type: Joi.string().allow("").required(),
|
|
774
829
|
body: ContentPlatformModel.GenerateSEOContent().required(),
|
|
775
830
|
}).required();
|
|
776
831
|
}
|
|
@@ -790,25 +845,10 @@ class ContentPlatformApplicationValidator {
|
|
|
790
845
|
}).required();
|
|
791
846
|
}
|
|
792
847
|
|
|
793
|
-
/** @returns {
|
|
794
|
-
static
|
|
848
|
+
/** @returns {GetAppCustomFieldDefinitionParam} */
|
|
849
|
+
static getAppCustomFieldDefinition() {
|
|
795
850
|
return Joi.object({
|
|
796
|
-
|
|
797
|
-
pageSize: Joi.string().allow("").required(),
|
|
798
|
-
resource: Joi.string().allow("").required(),
|
|
799
|
-
types: Joi.string().allow(""),
|
|
800
|
-
search: Joi.string().allow(""),
|
|
801
|
-
slugs: Joi.string().allow(""),
|
|
802
|
-
namespaces: Joi.string().allow(""),
|
|
803
|
-
}).required();
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
/** @returns {GetAppCustomFieldDefinitionBySlugParam} */
|
|
807
|
-
static getAppCustomFieldDefinitionBySlug() {
|
|
808
|
-
return Joi.object({
|
|
809
|
-
slug: Joi.string().allow("").required(),
|
|
810
|
-
resource: Joi.string().allow("").required(),
|
|
811
|
-
namespace: Joi.string().allow("").required(),
|
|
851
|
+
id: Joi.string().allow("").required(),
|
|
812
852
|
}).required();
|
|
813
853
|
}
|
|
814
854
|
|
|
@@ -821,7 +861,15 @@ class ContentPlatformApplicationValidator {
|
|
|
821
861
|
types: Joi.string().allow(""),
|
|
822
862
|
search: Joi.string().allow(""),
|
|
823
863
|
slugs: Joi.string().allow(""),
|
|
824
|
-
|
|
864
|
+
}).required();
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
/** @returns {GetAppCustomFieldJobsParam} */
|
|
868
|
+
static getAppCustomFieldJobs() {
|
|
869
|
+
return Joi.object({
|
|
870
|
+
page: Joi.string().allow("").required(),
|
|
871
|
+
pageSize: Joi.string().allow("").required(),
|
|
872
|
+
actionType: Joi.string().allow("").required(),
|
|
825
873
|
}).required();
|
|
826
874
|
}
|
|
827
875
|
|
|
@@ -830,26 +878,32 @@ class ContentPlatformApplicationValidator {
|
|
|
830
878
|
return Joi.object({}).required();
|
|
831
879
|
}
|
|
832
880
|
|
|
833
|
-
/** @returns {
|
|
834
|
-
static
|
|
881
|
+
/** @returns {GetAppCustomFieldsParam} */
|
|
882
|
+
static getAppCustomFields() {
|
|
835
883
|
return Joi.object({
|
|
836
884
|
resource: Joi.string().allow("").required(),
|
|
837
|
-
resourceSlug: Joi.string().allow("").required(),
|
|
838
885
|
}).required();
|
|
839
886
|
}
|
|
840
887
|
|
|
841
|
-
/** @returns {
|
|
842
|
-
static
|
|
888
|
+
/** @returns {GetAppCustomFieldsByResourceIdParam} */
|
|
889
|
+
static getAppCustomFieldsByResourceId() {
|
|
843
890
|
return Joi.object({
|
|
844
|
-
|
|
845
|
-
|
|
891
|
+
resource: Joi.string().allow("").required(),
|
|
892
|
+
resourceId: Joi.string().allow("").required(),
|
|
846
893
|
}).required();
|
|
847
894
|
}
|
|
848
895
|
|
|
849
|
-
/** @returns {
|
|
850
|
-
static
|
|
896
|
+
/** @returns {GetAppCustomObjectParam} */
|
|
897
|
+
static getAppCustomObject() {
|
|
851
898
|
return Joi.object({
|
|
852
|
-
|
|
899
|
+
id: Joi.string().allow("").required(),
|
|
900
|
+
}).required();
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/** @returns {GetAppCustomObjectDefinitionParam} */
|
|
904
|
+
static getAppCustomObjectDefinition() {
|
|
905
|
+
return Joi.object({
|
|
906
|
+
id: Joi.string().allow("").required(),
|
|
853
907
|
}).required();
|
|
854
908
|
}
|
|
855
909
|
|
|
@@ -862,12 +916,12 @@ class ContentPlatformApplicationValidator {
|
|
|
862
916
|
}).required();
|
|
863
917
|
}
|
|
864
918
|
|
|
865
|
-
/** @returns {
|
|
866
|
-
static
|
|
919
|
+
/** @returns {GetAppCustomObjectsParam} */
|
|
920
|
+
static getAppCustomObjects() {
|
|
867
921
|
return Joi.object({
|
|
922
|
+
definitionId: Joi.string().allow(""),
|
|
868
923
|
pageNo: Joi.string().allow("").required(),
|
|
869
924
|
pageSize: Joi.string().allow("").required(),
|
|
870
|
-
definitionSlug: Joi.string().allow("").required(),
|
|
871
925
|
}).required();
|
|
872
926
|
}
|
|
873
927
|
|
|
@@ -905,6 +959,20 @@ class ContentPlatformApplicationValidator {
|
|
|
905
959
|
}).required();
|
|
906
960
|
}
|
|
907
961
|
|
|
962
|
+
/** @returns {GetComponentByIdParam} */
|
|
963
|
+
static getComponentById() {
|
|
964
|
+
return Joi.object({
|
|
965
|
+
slug: Joi.string().allow("").required(),
|
|
966
|
+
}).required();
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/** @returns {GetDataLoaderApiSpecsParam} */
|
|
970
|
+
static getDataLoaderApiSpecs() {
|
|
971
|
+
return Joi.object({
|
|
972
|
+
dataLoader: Joi.string().allow("").required(),
|
|
973
|
+
}).required();
|
|
974
|
+
}
|
|
975
|
+
|
|
908
976
|
/** @returns {GetDataLoadersParam} */
|
|
909
977
|
static getDataLoaders() {
|
|
910
978
|
return Joi.object({}).required();
|
|
@@ -957,9 +1025,7 @@ class ContentPlatformApplicationValidator {
|
|
|
957
1025
|
|
|
958
1026
|
/** @returns {GetInjectableTagsParam} */
|
|
959
1027
|
static getInjectableTags() {
|
|
960
|
-
return Joi.object({
|
|
961
|
-
all: Joi.boolean(),
|
|
962
|
-
}).required();
|
|
1028
|
+
return Joi.object({}).required();
|
|
963
1029
|
}
|
|
964
1030
|
|
|
965
1031
|
/** @returns {GetLandingPagesParam} */
|
|
@@ -1040,7 +1106,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1040
1106
|
/** @returns {GetSEOMarkupSchemaParam} */
|
|
1041
1107
|
static getSEOMarkupSchema() {
|
|
1042
1108
|
return Joi.object({
|
|
1043
|
-
|
|
1109
|
+
schemaId: Joi.string().allow("").required(),
|
|
1044
1110
|
}).required();
|
|
1045
1111
|
}
|
|
1046
1112
|
|
|
@@ -1059,10 +1125,10 @@ class ContentPlatformApplicationValidator {
|
|
|
1059
1125
|
return Joi.object({}).required();
|
|
1060
1126
|
}
|
|
1061
1127
|
|
|
1062
|
-
/** @returns {
|
|
1063
|
-
static
|
|
1128
|
+
/** @returns {ImportAppCustomObjectEntriesParam} */
|
|
1129
|
+
static importAppCustomObjectEntries() {
|
|
1064
1130
|
return Joi.object({
|
|
1065
|
-
|
|
1131
|
+
definitionId: Joi.string().allow("").required(),
|
|
1066
1132
|
body: ContentPlatformModel.CustomObjectBulkSchema().required(),
|
|
1067
1133
|
}).required();
|
|
1068
1134
|
}
|
|
@@ -1082,10 +1148,10 @@ class ContentPlatformApplicationValidator {
|
|
|
1082
1148
|
}).required();
|
|
1083
1149
|
}
|
|
1084
1150
|
|
|
1085
|
-
/** @returns {
|
|
1086
|
-
static
|
|
1151
|
+
/** @returns {SampleAppCustomObjectBulkEntryParam} */
|
|
1152
|
+
static sampleAppCustomObjectBulkEntry() {
|
|
1087
1153
|
return Joi.object({
|
|
1088
|
-
|
|
1154
|
+
definitionId: Joi.string().allow("").required(),
|
|
1089
1155
|
}).required();
|
|
1090
1156
|
}
|
|
1091
1157
|
|
|
@@ -1112,38 +1178,35 @@ class ContentPlatformApplicationValidator {
|
|
|
1112
1178
|
}).required();
|
|
1113
1179
|
}
|
|
1114
1180
|
|
|
1115
|
-
/** @returns {
|
|
1116
|
-
static
|
|
1181
|
+
/** @returns {UpdateAppCustomFieldByResourceIdParam} */
|
|
1182
|
+
static updateAppCustomFieldByResourceId() {
|
|
1117
1183
|
return Joi.object({
|
|
1118
1184
|
resource: Joi.string().allow("").required(),
|
|
1119
|
-
|
|
1185
|
+
resourceId: Joi.string().allow("").required(),
|
|
1120
1186
|
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
1121
1187
|
}).required();
|
|
1122
1188
|
}
|
|
1123
1189
|
|
|
1124
|
-
/** @returns {
|
|
1125
|
-
static
|
|
1190
|
+
/** @returns {UpdateAppCustomFieldDefinitionParam} */
|
|
1191
|
+
static updateAppCustomFieldDefinition() {
|
|
1126
1192
|
return Joi.object({
|
|
1127
|
-
|
|
1128
|
-
resource: Joi.string().allow("").required(),
|
|
1129
|
-
namespace: Joi.string().allow("").required(),
|
|
1193
|
+
id: Joi.string().allow("").required(),
|
|
1130
1194
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
1131
1195
|
}).required();
|
|
1132
1196
|
}
|
|
1133
1197
|
|
|
1134
|
-
/** @returns {
|
|
1135
|
-
static
|
|
1198
|
+
/** @returns {UpdateAppCustomObjectParam} */
|
|
1199
|
+
static updateAppCustomObject() {
|
|
1136
1200
|
return Joi.object({
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
1201
|
+
id: Joi.string().allow("").required(),
|
|
1202
|
+
body: ContentPlatformModel.CustomObjectRequestSchema().required(),
|
|
1140
1203
|
}).required();
|
|
1141
1204
|
}
|
|
1142
1205
|
|
|
1143
|
-
/** @returns {
|
|
1144
|
-
static
|
|
1206
|
+
/** @returns {UpdateAppCustomObjectDefinitionParam} */
|
|
1207
|
+
static updateAppCustomObjectDefinition() {
|
|
1145
1208
|
return Joi.object({
|
|
1146
|
-
|
|
1209
|
+
id: Joi.string().allow("").required(),
|
|
1147
1210
|
body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
|
|
1148
1211
|
}).required();
|
|
1149
1212
|
}
|
|
@@ -1152,7 +1215,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1152
1215
|
static updateBlog() {
|
|
1153
1216
|
return Joi.object({
|
|
1154
1217
|
id: Joi.string().allow("").required(),
|
|
1155
|
-
body: ContentPlatformModel.
|
|
1218
|
+
body: ContentPlatformModel.BlogRequest().required(),
|
|
1156
1219
|
}).required();
|
|
1157
1220
|
}
|
|
1158
1221
|
|
|
@@ -1199,7 +1262,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1199
1262
|
static updateNavigation() {
|
|
1200
1263
|
return Joi.object({
|
|
1201
1264
|
id: Joi.string().allow("").required(),
|
|
1202
|
-
body: ContentPlatformModel.
|
|
1265
|
+
body: ContentPlatformModel.NavigationRequest().required(),
|
|
1203
1266
|
}).required();
|
|
1204
1267
|
}
|
|
1205
1268
|
|
|
@@ -1215,7 +1278,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1215
1278
|
static updatePagePreview() {
|
|
1216
1279
|
return Joi.object({
|
|
1217
1280
|
slug: Joi.string().allow("").required(),
|
|
1218
|
-
body: ContentPlatformModel.
|
|
1281
|
+
body: ContentPlatformModel.PagePublishRequest().required(),
|
|
1219
1282
|
}).required();
|
|
1220
1283
|
}
|
|
1221
1284
|
|