@gofynd/fdk-client-javascript 1.4.16-beta.3 → 1.4.16-beta.4
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 +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +27 -117
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -51
- package/sdk/application/Content/ContentApplicationClient.js +56 -161
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +8 -101
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +8 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/common/Utility.js +6 -3
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -121
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1294 -5068
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1992
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6389
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1681 -3222
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -204
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +475 -1073
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -253
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -256
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +403 -1375
- package/sdk/platform/Content/ContentPlatformModel.js +394 -631
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- 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 +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +49 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +7 -46
- package/sdk/platform/Share/SharePlatformModel.js +6 -31
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +6 -810
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -111
|
@@ -29,15 +29,20 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* @typedef
|
|
32
|
+
* @typedef CreateAppCustomFieldByResourceIdParam
|
|
33
33
|
* @property {string} resource
|
|
34
|
+
* @property {string} resourceId
|
|
35
|
+
* @property {ContentPlatformModel.CustomFieldRequestSchema} body
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @typedef CreateAppCustomFieldDefinitionParam
|
|
34
40
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
35
41
|
*/
|
|
36
42
|
|
|
37
43
|
/**
|
|
38
|
-
* @typedef
|
|
39
|
-
* @property {
|
|
40
|
-
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
44
|
+
* @typedef CreateAppCustomObjectParam
|
|
45
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchema} body
|
|
41
46
|
*/
|
|
42
47
|
|
|
43
48
|
/**
|
|
@@ -47,7 +52,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
47
52
|
|
|
48
53
|
/**
|
|
49
54
|
* @typedef CreateBlogParam
|
|
50
|
-
* @property {ContentPlatformModel.
|
|
55
|
+
* @property {ContentPlatformModel.BlogRequest} body
|
|
51
56
|
*/
|
|
52
57
|
|
|
53
58
|
/**
|
|
@@ -62,17 +67,17 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
62
67
|
|
|
63
68
|
/**
|
|
64
69
|
* @typedef CreateNavigationParam
|
|
65
|
-
* @property {ContentPlatformModel.
|
|
70
|
+
* @property {ContentPlatformModel.NavigationRequest} body
|
|
66
71
|
*/
|
|
67
72
|
|
|
68
73
|
/**
|
|
69
74
|
* @typedef CreatePageParam
|
|
70
|
-
* @property {ContentPlatformModel.
|
|
75
|
+
* @property {ContentPlatformModel.PageRequest} body
|
|
71
76
|
*/
|
|
72
77
|
|
|
73
78
|
/**
|
|
74
79
|
* @typedef CreatePagePreviewParam
|
|
75
|
-
* @property {ContentPlatformModel.
|
|
80
|
+
* @property {ContentPlatformModel.PageRequest} body
|
|
76
81
|
*/
|
|
77
82
|
|
|
78
83
|
/**
|
|
@@ -80,14 +85,9 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
80
85
|
* @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
|
|
81
86
|
*/
|
|
82
87
|
|
|
83
|
-
/**
|
|
84
|
-
* @typedef CreateSitemapParam
|
|
85
|
-
* @property {ContentPlatformModel.SitemapConfigCreate} body
|
|
86
|
-
*/
|
|
87
|
-
|
|
88
88
|
/**
|
|
89
89
|
* @typedef CreateSlideshowParam
|
|
90
|
-
* @property {ContentPlatformModel.
|
|
90
|
+
* @property {ContentPlatformModel.SlideshowRequest} body
|
|
91
91
|
*/
|
|
92
92
|
|
|
93
93
|
/**
|
|
@@ -96,21 +96,18 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
96
96
|
*/
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* @typedef
|
|
100
|
-
* @property {string}
|
|
101
|
-
* @property {string} resource
|
|
102
|
-
* @property {string} namespace
|
|
99
|
+
* @typedef DeleteAppCustomFieldDefinitionParam
|
|
100
|
+
* @property {string} definitionId
|
|
103
101
|
*/
|
|
104
102
|
|
|
105
103
|
/**
|
|
106
|
-
* @typedef
|
|
107
|
-
* @property {string}
|
|
108
|
-
* @property {string} slug
|
|
104
|
+
* @typedef DeleteAppCustomObjectParam
|
|
105
|
+
* @property {string} metaobjectId
|
|
109
106
|
*/
|
|
110
107
|
|
|
111
108
|
/**
|
|
112
|
-
* @typedef
|
|
113
|
-
* @property {string}
|
|
109
|
+
* @typedef DeleteAppCustomObjectDefinitionParam
|
|
110
|
+
* @property {string} definitionId
|
|
114
111
|
*/
|
|
115
112
|
|
|
116
113
|
/**
|
|
@@ -160,11 +157,6 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
160
157
|
* Template created within a business.
|
|
161
158
|
*/
|
|
162
159
|
|
|
163
|
-
/**
|
|
164
|
-
* @typedef DeleteSitemapParam
|
|
165
|
-
* @property {string} name
|
|
166
|
-
*/
|
|
167
|
-
|
|
168
160
|
/**
|
|
169
161
|
* @typedef DeleteSlideshowParam
|
|
170
162
|
* @property {string} id - ID allotted to the slideshow.
|
|
@@ -190,8 +182,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
190
182
|
*/
|
|
191
183
|
|
|
192
184
|
/**
|
|
193
|
-
* @typedef
|
|
194
|
-
* @property {string}
|
|
185
|
+
* @typedef ExportAppCustomObjectEntriesParam
|
|
186
|
+
* @property {string} definitionId
|
|
195
187
|
*/
|
|
196
188
|
|
|
197
189
|
/**
|
|
@@ -216,51 +208,40 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
216
208
|
*/
|
|
217
209
|
|
|
218
210
|
/**
|
|
219
|
-
* @typedef
|
|
220
|
-
* @property {string}
|
|
221
|
-
* @property {string} pageSize
|
|
222
|
-
* @property {string} resource
|
|
223
|
-
* @property {string} [types]
|
|
224
|
-
* @property {string} [search]
|
|
225
|
-
* @property {string} [slugs]
|
|
226
|
-
* @property {string} [namespaces]
|
|
227
|
-
*/
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* @typedef GetAppCustomFieldDefinitionBySlugParam
|
|
231
|
-
* @property {string} slug
|
|
232
|
-
* @property {string} resource
|
|
233
|
-
* @property {string} namespace
|
|
211
|
+
* @typedef GetAppCustomFieldDefinitionParam
|
|
212
|
+
* @property {string} definitionId
|
|
234
213
|
*/
|
|
235
214
|
|
|
236
215
|
/**
|
|
237
216
|
* @typedef GetAppCustomFieldDefinitionsParam
|
|
238
217
|
* @property {string} pageNo
|
|
239
218
|
* @property {string} pageSize
|
|
240
|
-
* @property {string} [
|
|
241
|
-
* @property {string} [
|
|
219
|
+
* @property {string} [resource]
|
|
220
|
+
* @property {string} [type]
|
|
242
221
|
* @property {string} [search]
|
|
243
|
-
* @property {string} [slugs]
|
|
244
|
-
* @property {string} [namespaces]
|
|
245
222
|
*/
|
|
246
223
|
|
|
247
224
|
/** @typedef GetAppCustomFieldTypesParam */
|
|
248
225
|
|
|
249
226
|
/**
|
|
250
|
-
* @typedef
|
|
227
|
+
* @typedef GetAppCustomFieldsParam
|
|
251
228
|
* @property {string} resource
|
|
252
|
-
* @property {string} resourceSlug
|
|
253
229
|
*/
|
|
254
230
|
|
|
255
231
|
/**
|
|
256
|
-
* @typedef
|
|
257
|
-
* @property {string}
|
|
258
|
-
* @property {string}
|
|
232
|
+
* @typedef GetAppCustomFieldsByResourceIdParam
|
|
233
|
+
* @property {string} resource
|
|
234
|
+
* @property {string} resourceId
|
|
259
235
|
*/
|
|
260
236
|
|
|
261
237
|
/**
|
|
262
|
-
* @typedef
|
|
263
|
-
* @property {string}
|
|
238
|
+
* @typedef GetAppCustomObjectParam
|
|
239
|
+
* @property {string} metaobjectId
|
|
240
|
+
*/
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @typedef GetAppCustomObjectDefinitionParam
|
|
244
|
+
* @property {string} definitionId
|
|
264
245
|
*/
|
|
265
246
|
|
|
266
247
|
/**
|
|
@@ -271,10 +252,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
271
252
|
*/
|
|
272
253
|
|
|
273
254
|
/**
|
|
274
|
-
* @typedef
|
|
255
|
+
* @typedef GetAppCustomObjectsParam
|
|
256
|
+
* @property {string} [definitionId]
|
|
275
257
|
* @property {string} pageNo
|
|
276
258
|
* @property {string} pageSize
|
|
277
|
-
* @property {string} definitionSlug
|
|
278
259
|
*/
|
|
279
260
|
|
|
280
261
|
/**
|
|
@@ -320,8 +301,6 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
320
301
|
* template was created
|
|
321
302
|
*/
|
|
322
303
|
|
|
323
|
-
/** @typedef GetDefaultSitemapConfigParam */
|
|
324
|
-
|
|
325
304
|
/**
|
|
326
305
|
* @typedef GetFaqByIdOrSlugParam
|
|
327
306
|
* @property {string} idOrSlug - ID or the slug allotted to an FAQ category.
|
|
@@ -364,8 +343,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
364
343
|
* @typedef GetNavigationBySlugParam
|
|
365
344
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
366
345
|
* a navigation. You can get slug value of a navigation from `getNavigations` API.
|
|
367
|
-
* @property {string}
|
|
368
|
-
* Acceptable values are: web, android, ios
|
|
346
|
+
* @property {string} devicePlatform - Filter navigations by platform.
|
|
347
|
+
* Acceptable values are: web, android, ios, all
|
|
369
348
|
*/
|
|
370
349
|
|
|
371
350
|
/**
|
|
@@ -427,20 +406,6 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
427
406
|
* Default value is 10.
|
|
428
407
|
*/
|
|
429
408
|
|
|
430
|
-
/**
|
|
431
|
-
* @typedef GetSitemapParam
|
|
432
|
-
* @property {string} name
|
|
433
|
-
*/
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* @typedef GetSitemapsParam
|
|
437
|
-
* @property {string} pageNo
|
|
438
|
-
* @property {string} pageSize
|
|
439
|
-
* @property {boolean} [isActive] - Boolean flag for checking if sitemap is
|
|
440
|
-
* active or not in storefront
|
|
441
|
-
* @property {string} [name] - Query parameter to search sitemaps with name
|
|
442
|
-
*/
|
|
443
|
-
|
|
444
409
|
/**
|
|
445
410
|
* @typedef GetSlideshowBySlugParam
|
|
446
411
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
@@ -462,8 +427,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
462
427
|
/** @typedef GetSupportInformationParam */
|
|
463
428
|
|
|
464
429
|
/**
|
|
465
|
-
* @typedef
|
|
466
|
-
* @property {string}
|
|
430
|
+
* @typedef ImportAppCustomObjectEntriesParam
|
|
431
|
+
* @property {string} definitionId
|
|
467
432
|
* @property {ContentPlatformModel.CustomObjectBulkSchema} body
|
|
468
433
|
*/
|
|
469
434
|
|
|
@@ -479,8 +444,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
479
444
|
*/
|
|
480
445
|
|
|
481
446
|
/**
|
|
482
|
-
* @typedef
|
|
483
|
-
* @property {string}
|
|
447
|
+
* @typedef SampleAppCustomObjectBulkEntryParam
|
|
448
|
+
* @property {string} definitionId
|
|
484
449
|
*/
|
|
485
450
|
|
|
486
451
|
/**
|
|
@@ -501,42 +466,27 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
501
466
|
*/
|
|
502
467
|
|
|
503
468
|
/**
|
|
504
|
-
* @typedef
|
|
505
|
-
* @property {string}
|
|
506
|
-
* @property {string} resourceSlug
|
|
507
|
-
* @property {ContentPlatformModel.CustomFieldRequestSchema} body
|
|
508
|
-
*/
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* @typedef UpdateAppCustomFieldDefinitionBySlugParam
|
|
512
|
-
* @property {string} slug
|
|
513
|
-
* @property {string} resource
|
|
514
|
-
* @property {string} namespace
|
|
469
|
+
* @typedef UpdateAppCustomFieldDefinitionParam
|
|
470
|
+
* @property {string} definitionId
|
|
515
471
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
516
472
|
*/
|
|
517
473
|
|
|
518
474
|
/**
|
|
519
|
-
* @typedef
|
|
520
|
-
* @property {string}
|
|
521
|
-
* @property {
|
|
522
|
-
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
475
|
+
* @typedef UpdateAppCustomObjectParam
|
|
476
|
+
* @property {string} metaobjectId
|
|
477
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchema} body
|
|
523
478
|
*/
|
|
524
479
|
|
|
525
480
|
/**
|
|
526
|
-
* @typedef
|
|
527
|
-
* @property {string}
|
|
481
|
+
* @typedef UpdateAppCustomObjectDefinitionParam
|
|
482
|
+
* @property {string} definitionId
|
|
528
483
|
* @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
|
|
529
484
|
*/
|
|
530
485
|
|
|
531
486
|
/**
|
|
532
487
|
* @typedef UpdateBlogParam
|
|
533
488
|
* @property {string} id - ID allotted to the blog.
|
|
534
|
-
* @property {ContentPlatformModel.
|
|
535
|
-
*/
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* @typedef UpdateDefaultSitemapConfigParam
|
|
539
|
-
* @property {ContentPlatformModel.DefaultSitemapConfig} body
|
|
489
|
+
* @property {ContentPlatformModel.BlogRequest} body
|
|
540
490
|
*/
|
|
541
491
|
|
|
542
492
|
/**
|
|
@@ -571,7 +521,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
571
521
|
/**
|
|
572
522
|
* @typedef UpdateNavigationParam
|
|
573
523
|
* @property {string} id - ID allotted to the navigation.
|
|
574
|
-
* @property {ContentPlatformModel.
|
|
524
|
+
* @property {ContentPlatformModel.NavigationRequest} body
|
|
575
525
|
*/
|
|
576
526
|
|
|
577
527
|
/**
|
|
@@ -584,7 +534,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
584
534
|
* @typedef UpdatePagePreviewParam
|
|
585
535
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
586
536
|
* a page. You can get slug value of a page from `getPages` API.
|
|
587
|
-
* @property {ContentPlatformModel.
|
|
537
|
+
* @property {ContentPlatformModel.PagePublishRequest} body
|
|
588
538
|
*/
|
|
589
539
|
|
|
590
540
|
/**
|
|
@@ -598,16 +548,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
598
548
|
* @property {ContentPlatformModel.SeoComponent} body
|
|
599
549
|
*/
|
|
600
550
|
|
|
601
|
-
/**
|
|
602
|
-
* @typedef UpdateSitemapParam
|
|
603
|
-
* @property {string} name
|
|
604
|
-
* @property {ContentPlatformModel.SitemapConfigUpdate} body
|
|
605
|
-
*/
|
|
606
|
-
|
|
607
551
|
/**
|
|
608
552
|
* @typedef UpdateSlideshowParam
|
|
609
553
|
* @property {string} id - ID allotted to the slideshow.
|
|
610
|
-
* @property {ContentPlatformModel.
|
|
554
|
+
* @property {ContentPlatformModel.SlideshowRequest} body
|
|
611
555
|
*/
|
|
612
556
|
|
|
613
557
|
/**
|
|
@@ -652,19 +596,26 @@ class ContentPlatformApplicationValidator {
|
|
|
652
596
|
}).required();
|
|
653
597
|
}
|
|
654
598
|
|
|
599
|
+
/** @returns {CreateAppCustomFieldByResourceIdParam} */
|
|
600
|
+
static createAppCustomFieldByResourceId() {
|
|
601
|
+
return Joi.object({
|
|
602
|
+
resource: Joi.string().allow("").required(),
|
|
603
|
+
resourceId: Joi.string().allow("").required(),
|
|
604
|
+
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
605
|
+
}).required();
|
|
606
|
+
}
|
|
607
|
+
|
|
655
608
|
/** @returns {CreateAppCustomFieldDefinitionParam} */
|
|
656
609
|
static createAppCustomFieldDefinition() {
|
|
657
610
|
return Joi.object({
|
|
658
|
-
resource: Joi.string().allow("").required(),
|
|
659
611
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
660
612
|
}).required();
|
|
661
613
|
}
|
|
662
614
|
|
|
663
|
-
/** @returns {
|
|
664
|
-
static
|
|
615
|
+
/** @returns {CreateAppCustomObjectParam} */
|
|
616
|
+
static createAppCustomObject() {
|
|
665
617
|
return Joi.object({
|
|
666
|
-
|
|
667
|
-
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
618
|
+
body: ContentPlatformModel.CustomObjectRequestSchema().required(),
|
|
668
619
|
}).required();
|
|
669
620
|
}
|
|
670
621
|
|
|
@@ -678,7 +629,7 @@ class ContentPlatformApplicationValidator {
|
|
|
678
629
|
/** @returns {CreateBlogParam} */
|
|
679
630
|
static createBlog() {
|
|
680
631
|
return Joi.object({
|
|
681
|
-
body: ContentPlatformModel.
|
|
632
|
+
body: ContentPlatformModel.BlogRequest().required(),
|
|
682
633
|
}).required();
|
|
683
634
|
}
|
|
684
635
|
|
|
@@ -699,21 +650,21 @@ class ContentPlatformApplicationValidator {
|
|
|
699
650
|
/** @returns {CreateNavigationParam} */
|
|
700
651
|
static createNavigation() {
|
|
701
652
|
return Joi.object({
|
|
702
|
-
body: ContentPlatformModel.
|
|
653
|
+
body: ContentPlatformModel.NavigationRequest().required(),
|
|
703
654
|
}).required();
|
|
704
655
|
}
|
|
705
656
|
|
|
706
657
|
/** @returns {CreatePageParam} */
|
|
707
658
|
static createPage() {
|
|
708
659
|
return Joi.object({
|
|
709
|
-
body: ContentPlatformModel.
|
|
660
|
+
body: ContentPlatformModel.PageRequest().required(),
|
|
710
661
|
}).required();
|
|
711
662
|
}
|
|
712
663
|
|
|
713
664
|
/** @returns {CreatePagePreviewParam} */
|
|
714
665
|
static createPagePreview() {
|
|
715
666
|
return Joi.object({
|
|
716
|
-
body: ContentPlatformModel.
|
|
667
|
+
body: ContentPlatformModel.PageRequest().required(),
|
|
717
668
|
}).required();
|
|
718
669
|
}
|
|
719
670
|
|
|
@@ -724,17 +675,10 @@ class ContentPlatformApplicationValidator {
|
|
|
724
675
|
}).required();
|
|
725
676
|
}
|
|
726
677
|
|
|
727
|
-
/** @returns {CreateSitemapParam} */
|
|
728
|
-
static createSitemap() {
|
|
729
|
-
return Joi.object({
|
|
730
|
-
body: ContentPlatformModel.SitemapConfigCreate().required(),
|
|
731
|
-
}).required();
|
|
732
|
-
}
|
|
733
|
-
|
|
734
678
|
/** @returns {CreateSlideshowParam} */
|
|
735
679
|
static createSlideshow() {
|
|
736
680
|
return Joi.object({
|
|
737
|
-
body: ContentPlatformModel.
|
|
681
|
+
body: ContentPlatformModel.SlideshowRequest().required(),
|
|
738
682
|
}).required();
|
|
739
683
|
}
|
|
740
684
|
|
|
@@ -745,27 +689,24 @@ class ContentPlatformApplicationValidator {
|
|
|
745
689
|
}).required();
|
|
746
690
|
}
|
|
747
691
|
|
|
748
|
-
/** @returns {
|
|
749
|
-
static
|
|
692
|
+
/** @returns {DeleteAppCustomFieldDefinitionParam} */
|
|
693
|
+
static deleteAppCustomFieldDefinition() {
|
|
750
694
|
return Joi.object({
|
|
751
|
-
|
|
752
|
-
resource: Joi.string().allow("").required(),
|
|
753
|
-
namespace: Joi.string().allow("").required(),
|
|
695
|
+
definitionId: Joi.string().allow("").required(),
|
|
754
696
|
}).required();
|
|
755
697
|
}
|
|
756
698
|
|
|
757
|
-
/** @returns {
|
|
758
|
-
static
|
|
699
|
+
/** @returns {DeleteAppCustomObjectParam} */
|
|
700
|
+
static deleteAppCustomObject() {
|
|
759
701
|
return Joi.object({
|
|
760
|
-
|
|
761
|
-
slug: Joi.string().allow("").required(),
|
|
702
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
762
703
|
}).required();
|
|
763
704
|
}
|
|
764
705
|
|
|
765
|
-
/** @returns {
|
|
766
|
-
static
|
|
706
|
+
/** @returns {DeleteAppCustomObjectDefinitionParam} */
|
|
707
|
+
static deleteAppCustomObjectDefinition() {
|
|
767
708
|
return Joi.object({
|
|
768
|
-
|
|
709
|
+
definitionId: Joi.string().allow("").required(),
|
|
769
710
|
}).required();
|
|
770
711
|
}
|
|
771
712
|
|
|
@@ -833,13 +774,6 @@ class ContentPlatformApplicationValidator {
|
|
|
833
774
|
}).required();
|
|
834
775
|
}
|
|
835
776
|
|
|
836
|
-
/** @returns {DeleteSitemapParam} */
|
|
837
|
-
static deleteSitemap() {
|
|
838
|
-
return Joi.object({
|
|
839
|
-
name: Joi.string().allow("").required(),
|
|
840
|
-
}).required();
|
|
841
|
-
}
|
|
842
|
-
|
|
843
777
|
/** @returns {DeleteSlideshowParam} */
|
|
844
778
|
static deleteSlideshow() {
|
|
845
779
|
return Joi.object({
|
|
@@ -871,10 +805,10 @@ class ContentPlatformApplicationValidator {
|
|
|
871
805
|
}).required();
|
|
872
806
|
}
|
|
873
807
|
|
|
874
|
-
/** @returns {
|
|
875
|
-
static
|
|
808
|
+
/** @returns {ExportAppCustomObjectEntriesParam} */
|
|
809
|
+
static exportAppCustomObjectEntries() {
|
|
876
810
|
return Joi.object({
|
|
877
|
-
|
|
811
|
+
definitionId: Joi.string().allow("").required(),
|
|
878
812
|
}).required();
|
|
879
813
|
}
|
|
880
814
|
|
|
@@ -901,25 +835,10 @@ class ContentPlatformApplicationValidator {
|
|
|
901
835
|
}).required();
|
|
902
836
|
}
|
|
903
837
|
|
|
904
|
-
/** @returns {
|
|
905
|
-
static
|
|
906
|
-
return Joi.object({
|
|
907
|
-
pageNo: Joi.string().allow("").required(),
|
|
908
|
-
pageSize: Joi.string().allow("").required(),
|
|
909
|
-
resource: Joi.string().allow("").required(),
|
|
910
|
-
types: Joi.string().allow(""),
|
|
911
|
-
search: Joi.string().allow(""),
|
|
912
|
-
slugs: Joi.string().allow(""),
|
|
913
|
-
namespaces: Joi.string().allow(""),
|
|
914
|
-
}).required();
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
/** @returns {GetAppCustomFieldDefinitionBySlugParam} */
|
|
918
|
-
static getAppCustomFieldDefinitionBySlug() {
|
|
838
|
+
/** @returns {GetAppCustomFieldDefinitionParam} */
|
|
839
|
+
static getAppCustomFieldDefinition() {
|
|
919
840
|
return Joi.object({
|
|
920
|
-
|
|
921
|
-
resource: Joi.string().allow("").required(),
|
|
922
|
-
namespace: Joi.string().allow("").required(),
|
|
841
|
+
definitionId: Joi.string().allow("").required(),
|
|
923
842
|
}).required();
|
|
924
843
|
}
|
|
925
844
|
|
|
@@ -928,11 +847,9 @@ class ContentPlatformApplicationValidator {
|
|
|
928
847
|
return Joi.object({
|
|
929
848
|
pageNo: Joi.string().allow("").required(),
|
|
930
849
|
pageSize: Joi.string().allow("").required(),
|
|
931
|
-
|
|
932
|
-
|
|
850
|
+
resource: Joi.string().allow(""),
|
|
851
|
+
type: Joi.string().allow(""),
|
|
933
852
|
search: Joi.string().allow(""),
|
|
934
|
-
slugs: Joi.string().allow(""),
|
|
935
|
-
namespaces: Joi.string().allow(""),
|
|
936
853
|
}).required();
|
|
937
854
|
}
|
|
938
855
|
|
|
@@ -941,26 +858,32 @@ class ContentPlatformApplicationValidator {
|
|
|
941
858
|
return Joi.object({}).required();
|
|
942
859
|
}
|
|
943
860
|
|
|
944
|
-
/** @returns {
|
|
945
|
-
static
|
|
861
|
+
/** @returns {GetAppCustomFieldsParam} */
|
|
862
|
+
static getAppCustomFields() {
|
|
946
863
|
return Joi.object({
|
|
947
864
|
resource: Joi.string().allow("").required(),
|
|
948
|
-
resourceSlug: Joi.string().allow("").required(),
|
|
949
865
|
}).required();
|
|
950
866
|
}
|
|
951
867
|
|
|
952
|
-
/** @returns {
|
|
953
|
-
static
|
|
868
|
+
/** @returns {GetAppCustomFieldsByResourceIdParam} */
|
|
869
|
+
static getAppCustomFieldsByResourceId() {
|
|
954
870
|
return Joi.object({
|
|
955
|
-
|
|
956
|
-
|
|
871
|
+
resource: Joi.string().allow("").required(),
|
|
872
|
+
resourceId: Joi.string().allow("").required(),
|
|
957
873
|
}).required();
|
|
958
874
|
}
|
|
959
875
|
|
|
960
|
-
/** @returns {
|
|
961
|
-
static
|
|
876
|
+
/** @returns {GetAppCustomObjectParam} */
|
|
877
|
+
static getAppCustomObject() {
|
|
962
878
|
return Joi.object({
|
|
963
|
-
|
|
879
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
880
|
+
}).required();
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/** @returns {GetAppCustomObjectDefinitionParam} */
|
|
884
|
+
static getAppCustomObjectDefinition() {
|
|
885
|
+
return Joi.object({
|
|
886
|
+
definitionId: Joi.string().allow("").required(),
|
|
964
887
|
}).required();
|
|
965
888
|
}
|
|
966
889
|
|
|
@@ -973,12 +896,12 @@ class ContentPlatformApplicationValidator {
|
|
|
973
896
|
}).required();
|
|
974
897
|
}
|
|
975
898
|
|
|
976
|
-
/** @returns {
|
|
977
|
-
static
|
|
899
|
+
/** @returns {GetAppCustomObjectsParam} */
|
|
900
|
+
static getAppCustomObjects() {
|
|
978
901
|
return Joi.object({
|
|
902
|
+
definitionId: Joi.string().allow(""),
|
|
979
903
|
pageNo: Joi.string().allow("").required(),
|
|
980
904
|
pageSize: Joi.string().allow("").required(),
|
|
981
|
-
definitionSlug: Joi.string().allow("").required(),
|
|
982
905
|
}).required();
|
|
983
906
|
}
|
|
984
907
|
|
|
@@ -1040,11 +963,6 @@ class ContentPlatformApplicationValidator {
|
|
|
1040
963
|
}).required();
|
|
1041
964
|
}
|
|
1042
965
|
|
|
1043
|
-
/** @returns {GetDefaultSitemapConfigParam} */
|
|
1044
|
-
static getDefaultSitemapConfig() {
|
|
1045
|
-
return Joi.object({}).required();
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
966
|
/** @returns {GetFaqByIdOrSlugParam} */
|
|
1049
967
|
static getFaqByIdOrSlug() {
|
|
1050
968
|
return Joi.object({
|
|
@@ -1095,7 +1013,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1095
1013
|
static getNavigationBySlug() {
|
|
1096
1014
|
return Joi.object({
|
|
1097
1015
|
slug: Joi.string().allow("").required(),
|
|
1098
|
-
devicePlatform: Joi.string().allow(""),
|
|
1016
|
+
devicePlatform: Joi.string().allow("").required(),
|
|
1099
1017
|
}).required();
|
|
1100
1018
|
}
|
|
1101
1019
|
|
|
@@ -1170,23 +1088,6 @@ class ContentPlatformApplicationValidator {
|
|
|
1170
1088
|
}).required();
|
|
1171
1089
|
}
|
|
1172
1090
|
|
|
1173
|
-
/** @returns {GetSitemapParam} */
|
|
1174
|
-
static getSitemap() {
|
|
1175
|
-
return Joi.object({
|
|
1176
|
-
name: Joi.string().allow("").required(),
|
|
1177
|
-
}).required();
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
/** @returns {GetSitemapsParam} */
|
|
1181
|
-
static getSitemaps() {
|
|
1182
|
-
return Joi.object({
|
|
1183
|
-
pageNo: Joi.string().allow("").required(),
|
|
1184
|
-
pageSize: Joi.string().allow("").required(),
|
|
1185
|
-
isActive: Joi.boolean(),
|
|
1186
|
-
name: Joi.string().allow(""),
|
|
1187
|
-
}).required();
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
1091
|
/** @returns {GetSlideshowBySlugParam} */
|
|
1191
1092
|
static getSlideshowBySlug() {
|
|
1192
1093
|
return Joi.object({
|
|
@@ -1209,10 +1110,10 @@ class ContentPlatformApplicationValidator {
|
|
|
1209
1110
|
return Joi.object({}).required();
|
|
1210
1111
|
}
|
|
1211
1112
|
|
|
1212
|
-
/** @returns {
|
|
1213
|
-
static
|
|
1113
|
+
/** @returns {ImportAppCustomObjectEntriesParam} */
|
|
1114
|
+
static importAppCustomObjectEntries() {
|
|
1214
1115
|
return Joi.object({
|
|
1215
|
-
|
|
1116
|
+
definitionId: Joi.string().allow("").required(),
|
|
1216
1117
|
body: ContentPlatformModel.CustomObjectBulkSchema().required(),
|
|
1217
1118
|
}).required();
|
|
1218
1119
|
}
|
|
@@ -1232,10 +1133,10 @@ class ContentPlatformApplicationValidator {
|
|
|
1232
1133
|
}).required();
|
|
1233
1134
|
}
|
|
1234
1135
|
|
|
1235
|
-
/** @returns {
|
|
1236
|
-
static
|
|
1136
|
+
/** @returns {SampleAppCustomObjectBulkEntryParam} */
|
|
1137
|
+
static sampleAppCustomObjectBulkEntry() {
|
|
1237
1138
|
return Joi.object({
|
|
1238
|
-
|
|
1139
|
+
definitionId: Joi.string().allow("").required(),
|
|
1239
1140
|
}).required();
|
|
1240
1141
|
}
|
|
1241
1142
|
|
|
@@ -1262,38 +1163,26 @@ class ContentPlatformApplicationValidator {
|
|
|
1262
1163
|
}).required();
|
|
1263
1164
|
}
|
|
1264
1165
|
|
|
1265
|
-
/** @returns {
|
|
1266
|
-
static
|
|
1166
|
+
/** @returns {UpdateAppCustomFieldDefinitionParam} */
|
|
1167
|
+
static updateAppCustomFieldDefinition() {
|
|
1267
1168
|
return Joi.object({
|
|
1268
|
-
|
|
1269
|
-
resourceSlug: Joi.string().allow("").required(),
|
|
1270
|
-
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
1271
|
-
}).required();
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
/** @returns {UpdateAppCustomFieldDefinitionBySlugParam} */
|
|
1275
|
-
static updateAppCustomFieldDefinitionBySlug() {
|
|
1276
|
-
return Joi.object({
|
|
1277
|
-
slug: Joi.string().allow("").required(),
|
|
1278
|
-
resource: Joi.string().allow("").required(),
|
|
1279
|
-
namespace: Joi.string().allow("").required(),
|
|
1169
|
+
definitionId: Joi.string().allow("").required(),
|
|
1280
1170
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
1281
1171
|
}).required();
|
|
1282
1172
|
}
|
|
1283
1173
|
|
|
1284
|
-
/** @returns {
|
|
1285
|
-
static
|
|
1174
|
+
/** @returns {UpdateAppCustomObjectParam} */
|
|
1175
|
+
static updateAppCustomObject() {
|
|
1286
1176
|
return Joi.object({
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
1177
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
1178
|
+
body: ContentPlatformModel.CustomObjectRequestSchema().required(),
|
|
1290
1179
|
}).required();
|
|
1291
1180
|
}
|
|
1292
1181
|
|
|
1293
|
-
/** @returns {
|
|
1294
|
-
static
|
|
1182
|
+
/** @returns {UpdateAppCustomObjectDefinitionParam} */
|
|
1183
|
+
static updateAppCustomObjectDefinition() {
|
|
1295
1184
|
return Joi.object({
|
|
1296
|
-
|
|
1185
|
+
definitionId: Joi.string().allow("").required(),
|
|
1297
1186
|
body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
|
|
1298
1187
|
}).required();
|
|
1299
1188
|
}
|
|
@@ -1302,14 +1191,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1302
1191
|
static updateBlog() {
|
|
1303
1192
|
return Joi.object({
|
|
1304
1193
|
id: Joi.string().allow("").required(),
|
|
1305
|
-
body: ContentPlatformModel.
|
|
1306
|
-
}).required();
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
/** @returns {UpdateDefaultSitemapConfigParam} */
|
|
1310
|
-
static updateDefaultSitemapConfig() {
|
|
1311
|
-
return Joi.object({
|
|
1312
|
-
body: ContentPlatformModel.DefaultSitemapConfig().required(),
|
|
1194
|
+
body: ContentPlatformModel.BlogRequest().required(),
|
|
1313
1195
|
}).required();
|
|
1314
1196
|
}
|
|
1315
1197
|
|
|
@@ -1356,7 +1238,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1356
1238
|
static updateNavigation() {
|
|
1357
1239
|
return Joi.object({
|
|
1358
1240
|
id: Joi.string().allow("").required(),
|
|
1359
|
-
body: ContentPlatformModel.
|
|
1241
|
+
body: ContentPlatformModel.NavigationRequest().required(),
|
|
1360
1242
|
}).required();
|
|
1361
1243
|
}
|
|
1362
1244
|
|
|
@@ -1372,7 +1254,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1372
1254
|
static updatePagePreview() {
|
|
1373
1255
|
return Joi.object({
|
|
1374
1256
|
slug: Joi.string().allow("").required(),
|
|
1375
|
-
body: ContentPlatformModel.
|
|
1257
|
+
body: ContentPlatformModel.PagePublishRequest().required(),
|
|
1376
1258
|
}).required();
|
|
1377
1259
|
}
|
|
1378
1260
|
|
|
@@ -1391,19 +1273,11 @@ class ContentPlatformApplicationValidator {
|
|
|
1391
1273
|
}).required();
|
|
1392
1274
|
}
|
|
1393
1275
|
|
|
1394
|
-
/** @returns {UpdateSitemapParam} */
|
|
1395
|
-
static updateSitemap() {
|
|
1396
|
-
return Joi.object({
|
|
1397
|
-
name: Joi.string().allow("").required(),
|
|
1398
|
-
body: ContentPlatformModel.SitemapConfigUpdate().required(),
|
|
1399
|
-
}).required();
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
1276
|
/** @returns {UpdateSlideshowParam} */
|
|
1403
1277
|
static updateSlideshow() {
|
|
1404
1278
|
return Joi.object({
|
|
1405
1279
|
id: Joi.string().allow("").required(),
|
|
1406
|
-
body: ContentPlatformModel.
|
|
1280
|
+
body: ContentPlatformModel.SlideshowRequest().required(),
|
|
1407
1281
|
}).required();
|
|
1408
1282
|
}
|
|
1409
1283
|
|