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