@gofynd/fdk-client-javascript 1.4.16-beta.4 → 1.4.16-beta.5
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 +68 -48
- package/sdk/application/Cart/CartApplicationClient.js +118 -27
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
- package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
- 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 +51 -30
- package/sdk/application/Content/ContentApplicationClient.js +161 -56
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
- package/sdk/application/Logistic/LogisticApplicationClient.js +101 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
- package/sdk/application/Order/OrderApplicationClient.js +56 -8
- 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 +4 -2
- 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/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -21
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -16
- 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 +1200 -167
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
- 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 +419 -115
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5070 -1296
- package/sdk/platform/Cart/CartPlatformModel.js +1992 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6512 -1770
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3228 -1687
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
- 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 +204 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1076 -478
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +253 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +256 -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 +1372 -400
- package/sdk/platform/Content/ContentPlatformModel.js +631 -394
- 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 +95 -39
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -63
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -22
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -24
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -116
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -104
- 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 +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +416 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7607 -1267
- package/sdk/platform/Order/OrderPlatformModel.js +3929 -1269
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
- 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 +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- 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 +46 -36
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -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 +3 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +46 -7
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- 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 +810 -6
- 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
|
/**
|
|
@@ -85,9 +80,14 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
85
80
|
* @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
|
|
86
81
|
*/
|
|
87
82
|
|
|
83
|
+
/**
|
|
84
|
+
* @typedef CreateSitemapParam
|
|
85
|
+
* @property {ContentPlatformModel.SitemapConfigCreate} body
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
88
|
/**
|
|
89
89
|
* @typedef CreateSlideshowParam
|
|
90
|
-
* @property {ContentPlatformModel.
|
|
90
|
+
* @property {ContentPlatformModel.SlideshowPayload} body
|
|
91
91
|
*/
|
|
92
92
|
|
|
93
93
|
/**
|
|
@@ -96,18 +96,21 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
96
96
|
*/
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* @typedef
|
|
100
|
-
* @property {string}
|
|
99
|
+
* @typedef DeleteAppCustomFieldDefinitionBySlugParam
|
|
100
|
+
* @property {string} slug
|
|
101
|
+
* @property {string} resource
|
|
102
|
+
* @property {string} namespace
|
|
101
103
|
*/
|
|
102
104
|
|
|
103
105
|
/**
|
|
104
|
-
* @typedef
|
|
105
|
-
* @property {string}
|
|
106
|
+
* @typedef DeleteAppCustomObjectBySlugParam
|
|
107
|
+
* @property {string} definitionSlug
|
|
108
|
+
* @property {string} slug
|
|
106
109
|
*/
|
|
107
110
|
|
|
108
111
|
/**
|
|
109
|
-
* @typedef
|
|
110
|
-
* @property {string}
|
|
112
|
+
* @typedef DeleteAppCustomObjectDefinitionBySlugParam
|
|
113
|
+
* @property {string} slug
|
|
111
114
|
*/
|
|
112
115
|
|
|
113
116
|
/**
|
|
@@ -157,6 +160,11 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
157
160
|
* Template created within a business.
|
|
158
161
|
*/
|
|
159
162
|
|
|
163
|
+
/**
|
|
164
|
+
* @typedef DeleteSitemapParam
|
|
165
|
+
* @property {string} name
|
|
166
|
+
*/
|
|
167
|
+
|
|
160
168
|
/**
|
|
161
169
|
* @typedef DeleteSlideshowParam
|
|
162
170
|
* @property {string} id - ID allotted to the slideshow.
|
|
@@ -182,8 +190,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
182
190
|
*/
|
|
183
191
|
|
|
184
192
|
/**
|
|
185
|
-
* @typedef
|
|
186
|
-
* @property {string}
|
|
193
|
+
* @typedef ExportAppCustomObjectEntriesBySlugParam
|
|
194
|
+
* @property {string} slug
|
|
187
195
|
*/
|
|
188
196
|
|
|
189
197
|
/**
|
|
@@ -208,40 +216,51 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
208
216
|
*/
|
|
209
217
|
|
|
210
218
|
/**
|
|
211
|
-
* @typedef
|
|
212
|
-
* @property {string}
|
|
219
|
+
* @typedef GetAppCustomFieldDefinitionByResourceParam
|
|
220
|
+
* @property {string} pageNo
|
|
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
|
|
213
234
|
*/
|
|
214
235
|
|
|
215
236
|
/**
|
|
216
237
|
* @typedef GetAppCustomFieldDefinitionsParam
|
|
217
238
|
* @property {string} pageNo
|
|
218
239
|
* @property {string} pageSize
|
|
219
|
-
* @property {string} [
|
|
220
|
-
* @property {string} [
|
|
240
|
+
* @property {string} [resources]
|
|
241
|
+
* @property {string} [types]
|
|
221
242
|
* @property {string} [search]
|
|
243
|
+
* @property {string} [slugs]
|
|
244
|
+
* @property {string} [namespaces]
|
|
222
245
|
*/
|
|
223
246
|
|
|
224
247
|
/** @typedef GetAppCustomFieldTypesParam */
|
|
225
248
|
|
|
226
249
|
/**
|
|
227
|
-
* @typedef
|
|
250
|
+
* @typedef GetAppCustomFieldsByResourceSlugParam
|
|
228
251
|
* @property {string} resource
|
|
252
|
+
* @property {string} resourceSlug
|
|
229
253
|
*/
|
|
230
254
|
|
|
231
255
|
/**
|
|
232
|
-
* @typedef
|
|
233
|
-
* @property {string}
|
|
234
|
-
* @property {string}
|
|
256
|
+
* @typedef GetAppCustomObjectBySlugParam
|
|
257
|
+
* @property {string} definitionSlug
|
|
258
|
+
* @property {string} slug
|
|
235
259
|
*/
|
|
236
260
|
|
|
237
261
|
/**
|
|
238
|
-
* @typedef
|
|
239
|
-
* @property {string}
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* @typedef GetAppCustomObjectDefinitionParam
|
|
244
|
-
* @property {string} definitionId
|
|
262
|
+
* @typedef GetAppCustomObjectDefinitionBySlugParam
|
|
263
|
+
* @property {string} slug
|
|
245
264
|
*/
|
|
246
265
|
|
|
247
266
|
/**
|
|
@@ -252,10 +271,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
252
271
|
*/
|
|
253
272
|
|
|
254
273
|
/**
|
|
255
|
-
* @typedef
|
|
256
|
-
* @property {string} [definitionId]
|
|
274
|
+
* @typedef GetAppCustomObjectsBySlugParam
|
|
257
275
|
* @property {string} pageNo
|
|
258
276
|
* @property {string} pageSize
|
|
277
|
+
* @property {string} definitionSlug
|
|
259
278
|
*/
|
|
260
279
|
|
|
261
280
|
/**
|
|
@@ -301,6 +320,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
301
320
|
* template was created
|
|
302
321
|
*/
|
|
303
322
|
|
|
323
|
+
/** @typedef GetDefaultSitemapConfigParam */
|
|
324
|
+
|
|
304
325
|
/**
|
|
305
326
|
* @typedef GetFaqByIdOrSlugParam
|
|
306
327
|
* @property {string} idOrSlug - ID or the slug allotted to an FAQ category.
|
|
@@ -343,8 +364,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
343
364
|
* @typedef GetNavigationBySlugParam
|
|
344
365
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
345
366
|
* 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
|
|
367
|
+
* @property {string} [devicePlatform] - Filter navigations by platform.
|
|
368
|
+
* Acceptable values are: web, android, ios.
|
|
348
369
|
*/
|
|
349
370
|
|
|
350
371
|
/**
|
|
@@ -406,6 +427,20 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
406
427
|
* Default value is 10.
|
|
407
428
|
*/
|
|
408
429
|
|
|
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
|
+
|
|
409
444
|
/**
|
|
410
445
|
* @typedef GetSlideshowBySlugParam
|
|
411
446
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
@@ -427,8 +462,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
427
462
|
/** @typedef GetSupportInformationParam */
|
|
428
463
|
|
|
429
464
|
/**
|
|
430
|
-
* @typedef
|
|
431
|
-
* @property {string}
|
|
465
|
+
* @typedef ImportAppCustomObjectEntriesBySlugParam
|
|
466
|
+
* @property {string} slug
|
|
432
467
|
* @property {ContentPlatformModel.CustomObjectBulkSchema} body
|
|
433
468
|
*/
|
|
434
469
|
|
|
@@ -444,8 +479,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
444
479
|
*/
|
|
445
480
|
|
|
446
481
|
/**
|
|
447
|
-
* @typedef
|
|
448
|
-
* @property {string}
|
|
482
|
+
* @typedef SampleAppCustomObjectBulkEntryBySlugParam
|
|
483
|
+
* @property {string} slug
|
|
449
484
|
*/
|
|
450
485
|
|
|
451
486
|
/**
|
|
@@ -466,27 +501,42 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
466
501
|
*/
|
|
467
502
|
|
|
468
503
|
/**
|
|
469
|
-
* @typedef
|
|
470
|
-
* @property {string}
|
|
504
|
+
* @typedef UpdateAppCustomFieldByResourceSlugParam
|
|
505
|
+
* @property {string} resource
|
|
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
|
|
471
515
|
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
472
516
|
*/
|
|
473
517
|
|
|
474
518
|
/**
|
|
475
|
-
* @typedef
|
|
476
|
-
* @property {string}
|
|
477
|
-
* @property {
|
|
519
|
+
* @typedef UpdateAppCustomObjectBySlugParam
|
|
520
|
+
* @property {string} definitionSlug
|
|
521
|
+
* @property {string} slug
|
|
522
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
|
|
478
523
|
*/
|
|
479
524
|
|
|
480
525
|
/**
|
|
481
|
-
* @typedef
|
|
482
|
-
* @property {string}
|
|
526
|
+
* @typedef UpdateAppCustomObjectDefinitionBySlugParam
|
|
527
|
+
* @property {string} slug
|
|
483
528
|
* @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
|
|
484
529
|
*/
|
|
485
530
|
|
|
486
531
|
/**
|
|
487
532
|
* @typedef UpdateBlogParam
|
|
488
533
|
* @property {string} id - ID allotted to the blog.
|
|
489
|
-
* @property {ContentPlatformModel.
|
|
534
|
+
* @property {ContentPlatformModel.BlogPayload} body
|
|
535
|
+
*/
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @typedef UpdateDefaultSitemapConfigParam
|
|
539
|
+
* @property {ContentPlatformModel.DefaultSitemapConfig} body
|
|
490
540
|
*/
|
|
491
541
|
|
|
492
542
|
/**
|
|
@@ -521,7 +571,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
521
571
|
/**
|
|
522
572
|
* @typedef UpdateNavigationParam
|
|
523
573
|
* @property {string} id - ID allotted to the navigation.
|
|
524
|
-
* @property {ContentPlatformModel.
|
|
574
|
+
* @property {ContentPlatformModel.NavigationPayload} body
|
|
525
575
|
*/
|
|
526
576
|
|
|
527
577
|
/**
|
|
@@ -534,7 +584,7 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
534
584
|
* @typedef UpdatePagePreviewParam
|
|
535
585
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
536
586
|
* a page. You can get slug value of a page from `getPages` API.
|
|
537
|
-
* @property {ContentPlatformModel.
|
|
587
|
+
* @property {ContentPlatformModel.PagePublishPayload} body
|
|
538
588
|
*/
|
|
539
589
|
|
|
540
590
|
/**
|
|
@@ -548,10 +598,16 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
548
598
|
* @property {ContentPlatformModel.SeoComponent} body
|
|
549
599
|
*/
|
|
550
600
|
|
|
601
|
+
/**
|
|
602
|
+
* @typedef UpdateSitemapParam
|
|
603
|
+
* @property {string} name
|
|
604
|
+
* @property {ContentPlatformModel.SitemapConfigUpdate} body
|
|
605
|
+
*/
|
|
606
|
+
|
|
551
607
|
/**
|
|
552
608
|
* @typedef UpdateSlideshowParam
|
|
553
609
|
* @property {string} id - ID allotted to the slideshow.
|
|
554
|
-
* @property {ContentPlatformModel.
|
|
610
|
+
* @property {ContentPlatformModel.SlideshowPayload} body
|
|
555
611
|
*/
|
|
556
612
|
|
|
557
613
|
/**
|
|
@@ -596,26 +652,19 @@ class ContentPlatformApplicationValidator {
|
|
|
596
652
|
}).required();
|
|
597
653
|
}
|
|
598
654
|
|
|
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
655
|
/** @returns {CreateAppCustomFieldDefinitionParam} */
|
|
609
656
|
static createAppCustomFieldDefinition() {
|
|
610
657
|
return Joi.object({
|
|
658
|
+
resource: Joi.string().allow("").required(),
|
|
611
659
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
612
660
|
}).required();
|
|
613
661
|
}
|
|
614
662
|
|
|
615
|
-
/** @returns {
|
|
616
|
-
static
|
|
663
|
+
/** @returns {CreateAppCustomObjectBySlugParam} */
|
|
664
|
+
static createAppCustomObjectBySlug() {
|
|
617
665
|
return Joi.object({
|
|
618
|
-
|
|
666
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
667
|
+
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
619
668
|
}).required();
|
|
620
669
|
}
|
|
621
670
|
|
|
@@ -629,7 +678,7 @@ class ContentPlatformApplicationValidator {
|
|
|
629
678
|
/** @returns {CreateBlogParam} */
|
|
630
679
|
static createBlog() {
|
|
631
680
|
return Joi.object({
|
|
632
|
-
body: ContentPlatformModel.
|
|
681
|
+
body: ContentPlatformModel.BlogPayload().required(),
|
|
633
682
|
}).required();
|
|
634
683
|
}
|
|
635
684
|
|
|
@@ -650,21 +699,21 @@ class ContentPlatformApplicationValidator {
|
|
|
650
699
|
/** @returns {CreateNavigationParam} */
|
|
651
700
|
static createNavigation() {
|
|
652
701
|
return Joi.object({
|
|
653
|
-
body: ContentPlatformModel.
|
|
702
|
+
body: ContentPlatformModel.NavigationPayload().required(),
|
|
654
703
|
}).required();
|
|
655
704
|
}
|
|
656
705
|
|
|
657
706
|
/** @returns {CreatePageParam} */
|
|
658
707
|
static createPage() {
|
|
659
708
|
return Joi.object({
|
|
660
|
-
body: ContentPlatformModel.
|
|
709
|
+
body: ContentPlatformModel.PagePayload().required(),
|
|
661
710
|
}).required();
|
|
662
711
|
}
|
|
663
712
|
|
|
664
713
|
/** @returns {CreatePagePreviewParam} */
|
|
665
714
|
static createPagePreview() {
|
|
666
715
|
return Joi.object({
|
|
667
|
-
body: ContentPlatformModel.
|
|
716
|
+
body: ContentPlatformModel.PagePayload().required(),
|
|
668
717
|
}).required();
|
|
669
718
|
}
|
|
670
719
|
|
|
@@ -675,10 +724,17 @@ class ContentPlatformApplicationValidator {
|
|
|
675
724
|
}).required();
|
|
676
725
|
}
|
|
677
726
|
|
|
727
|
+
/** @returns {CreateSitemapParam} */
|
|
728
|
+
static createSitemap() {
|
|
729
|
+
return Joi.object({
|
|
730
|
+
body: ContentPlatformModel.SitemapConfigCreate().required(),
|
|
731
|
+
}).required();
|
|
732
|
+
}
|
|
733
|
+
|
|
678
734
|
/** @returns {CreateSlideshowParam} */
|
|
679
735
|
static createSlideshow() {
|
|
680
736
|
return Joi.object({
|
|
681
|
-
body: ContentPlatformModel.
|
|
737
|
+
body: ContentPlatformModel.SlideshowPayload().required(),
|
|
682
738
|
}).required();
|
|
683
739
|
}
|
|
684
740
|
|
|
@@ -689,24 +745,27 @@ class ContentPlatformApplicationValidator {
|
|
|
689
745
|
}).required();
|
|
690
746
|
}
|
|
691
747
|
|
|
692
|
-
/** @returns {
|
|
693
|
-
static
|
|
748
|
+
/** @returns {DeleteAppCustomFieldDefinitionBySlugParam} */
|
|
749
|
+
static deleteAppCustomFieldDefinitionBySlug() {
|
|
694
750
|
return Joi.object({
|
|
695
|
-
|
|
751
|
+
slug: Joi.string().allow("").required(),
|
|
752
|
+
resource: Joi.string().allow("").required(),
|
|
753
|
+
namespace: Joi.string().allow("").required(),
|
|
696
754
|
}).required();
|
|
697
755
|
}
|
|
698
756
|
|
|
699
|
-
/** @returns {
|
|
700
|
-
static
|
|
757
|
+
/** @returns {DeleteAppCustomObjectBySlugParam} */
|
|
758
|
+
static deleteAppCustomObjectBySlug() {
|
|
701
759
|
return Joi.object({
|
|
702
|
-
|
|
760
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
761
|
+
slug: Joi.string().allow("").required(),
|
|
703
762
|
}).required();
|
|
704
763
|
}
|
|
705
764
|
|
|
706
|
-
/** @returns {
|
|
707
|
-
static
|
|
765
|
+
/** @returns {DeleteAppCustomObjectDefinitionBySlugParam} */
|
|
766
|
+
static deleteAppCustomObjectDefinitionBySlug() {
|
|
708
767
|
return Joi.object({
|
|
709
|
-
|
|
768
|
+
slug: Joi.string().allow("").required(),
|
|
710
769
|
}).required();
|
|
711
770
|
}
|
|
712
771
|
|
|
@@ -774,6 +833,13 @@ class ContentPlatformApplicationValidator {
|
|
|
774
833
|
}).required();
|
|
775
834
|
}
|
|
776
835
|
|
|
836
|
+
/** @returns {DeleteSitemapParam} */
|
|
837
|
+
static deleteSitemap() {
|
|
838
|
+
return Joi.object({
|
|
839
|
+
name: Joi.string().allow("").required(),
|
|
840
|
+
}).required();
|
|
841
|
+
}
|
|
842
|
+
|
|
777
843
|
/** @returns {DeleteSlideshowParam} */
|
|
778
844
|
static deleteSlideshow() {
|
|
779
845
|
return Joi.object({
|
|
@@ -805,10 +871,10 @@ class ContentPlatformApplicationValidator {
|
|
|
805
871
|
}).required();
|
|
806
872
|
}
|
|
807
873
|
|
|
808
|
-
/** @returns {
|
|
809
|
-
static
|
|
874
|
+
/** @returns {ExportAppCustomObjectEntriesBySlugParam} */
|
|
875
|
+
static exportAppCustomObjectEntriesBySlug() {
|
|
810
876
|
return Joi.object({
|
|
811
|
-
|
|
877
|
+
slug: Joi.string().allow("").required(),
|
|
812
878
|
}).required();
|
|
813
879
|
}
|
|
814
880
|
|
|
@@ -835,10 +901,25 @@ class ContentPlatformApplicationValidator {
|
|
|
835
901
|
}).required();
|
|
836
902
|
}
|
|
837
903
|
|
|
838
|
-
/** @returns {
|
|
839
|
-
static
|
|
904
|
+
/** @returns {GetAppCustomFieldDefinitionByResourceParam} */
|
|
905
|
+
static getAppCustomFieldDefinitionByResource() {
|
|
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() {
|
|
840
919
|
return Joi.object({
|
|
841
|
-
|
|
920
|
+
slug: Joi.string().allow("").required(),
|
|
921
|
+
resource: Joi.string().allow("").required(),
|
|
922
|
+
namespace: Joi.string().allow("").required(),
|
|
842
923
|
}).required();
|
|
843
924
|
}
|
|
844
925
|
|
|
@@ -847,9 +928,11 @@ class ContentPlatformApplicationValidator {
|
|
|
847
928
|
return Joi.object({
|
|
848
929
|
pageNo: Joi.string().allow("").required(),
|
|
849
930
|
pageSize: Joi.string().allow("").required(),
|
|
850
|
-
|
|
851
|
-
|
|
931
|
+
resources: Joi.string().allow(""),
|
|
932
|
+
types: Joi.string().allow(""),
|
|
852
933
|
search: Joi.string().allow(""),
|
|
934
|
+
slugs: Joi.string().allow(""),
|
|
935
|
+
namespaces: Joi.string().allow(""),
|
|
853
936
|
}).required();
|
|
854
937
|
}
|
|
855
938
|
|
|
@@ -858,32 +941,26 @@ class ContentPlatformApplicationValidator {
|
|
|
858
941
|
return Joi.object({}).required();
|
|
859
942
|
}
|
|
860
943
|
|
|
861
|
-
/** @returns {
|
|
862
|
-
static
|
|
863
|
-
return Joi.object({
|
|
864
|
-
resource: Joi.string().allow("").required(),
|
|
865
|
-
}).required();
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
/** @returns {GetAppCustomFieldsByResourceIdParam} */
|
|
869
|
-
static getAppCustomFieldsByResourceId() {
|
|
944
|
+
/** @returns {GetAppCustomFieldsByResourceSlugParam} */
|
|
945
|
+
static getAppCustomFieldsByResourceSlug() {
|
|
870
946
|
return Joi.object({
|
|
871
947
|
resource: Joi.string().allow("").required(),
|
|
872
|
-
|
|
948
|
+
resourceSlug: Joi.string().allow("").required(),
|
|
873
949
|
}).required();
|
|
874
950
|
}
|
|
875
951
|
|
|
876
|
-
/** @returns {
|
|
877
|
-
static
|
|
952
|
+
/** @returns {GetAppCustomObjectBySlugParam} */
|
|
953
|
+
static getAppCustomObjectBySlug() {
|
|
878
954
|
return Joi.object({
|
|
879
|
-
|
|
955
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
956
|
+
slug: Joi.string().allow("").required(),
|
|
880
957
|
}).required();
|
|
881
958
|
}
|
|
882
959
|
|
|
883
|
-
/** @returns {
|
|
884
|
-
static
|
|
960
|
+
/** @returns {GetAppCustomObjectDefinitionBySlugParam} */
|
|
961
|
+
static getAppCustomObjectDefinitionBySlug() {
|
|
885
962
|
return Joi.object({
|
|
886
|
-
|
|
963
|
+
slug: Joi.string().allow("").required(),
|
|
887
964
|
}).required();
|
|
888
965
|
}
|
|
889
966
|
|
|
@@ -896,12 +973,12 @@ class ContentPlatformApplicationValidator {
|
|
|
896
973
|
}).required();
|
|
897
974
|
}
|
|
898
975
|
|
|
899
|
-
/** @returns {
|
|
900
|
-
static
|
|
976
|
+
/** @returns {GetAppCustomObjectsBySlugParam} */
|
|
977
|
+
static getAppCustomObjectsBySlug() {
|
|
901
978
|
return Joi.object({
|
|
902
|
-
definitionId: Joi.string().allow(""),
|
|
903
979
|
pageNo: Joi.string().allow("").required(),
|
|
904
980
|
pageSize: Joi.string().allow("").required(),
|
|
981
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
905
982
|
}).required();
|
|
906
983
|
}
|
|
907
984
|
|
|
@@ -963,6 +1040,11 @@ class ContentPlatformApplicationValidator {
|
|
|
963
1040
|
}).required();
|
|
964
1041
|
}
|
|
965
1042
|
|
|
1043
|
+
/** @returns {GetDefaultSitemapConfigParam} */
|
|
1044
|
+
static getDefaultSitemapConfig() {
|
|
1045
|
+
return Joi.object({}).required();
|
|
1046
|
+
}
|
|
1047
|
+
|
|
966
1048
|
/** @returns {GetFaqByIdOrSlugParam} */
|
|
967
1049
|
static getFaqByIdOrSlug() {
|
|
968
1050
|
return Joi.object({
|
|
@@ -1013,7 +1095,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1013
1095
|
static getNavigationBySlug() {
|
|
1014
1096
|
return Joi.object({
|
|
1015
1097
|
slug: Joi.string().allow("").required(),
|
|
1016
|
-
devicePlatform: Joi.string().allow("")
|
|
1098
|
+
devicePlatform: Joi.string().allow(""),
|
|
1017
1099
|
}).required();
|
|
1018
1100
|
}
|
|
1019
1101
|
|
|
@@ -1088,6 +1170,23 @@ class ContentPlatformApplicationValidator {
|
|
|
1088
1170
|
}).required();
|
|
1089
1171
|
}
|
|
1090
1172
|
|
|
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
|
+
|
|
1091
1190
|
/** @returns {GetSlideshowBySlugParam} */
|
|
1092
1191
|
static getSlideshowBySlug() {
|
|
1093
1192
|
return Joi.object({
|
|
@@ -1110,10 +1209,10 @@ class ContentPlatformApplicationValidator {
|
|
|
1110
1209
|
return Joi.object({}).required();
|
|
1111
1210
|
}
|
|
1112
1211
|
|
|
1113
|
-
/** @returns {
|
|
1114
|
-
static
|
|
1212
|
+
/** @returns {ImportAppCustomObjectEntriesBySlugParam} */
|
|
1213
|
+
static importAppCustomObjectEntriesBySlug() {
|
|
1115
1214
|
return Joi.object({
|
|
1116
|
-
|
|
1215
|
+
slug: Joi.string().allow("").required(),
|
|
1117
1216
|
body: ContentPlatformModel.CustomObjectBulkSchema().required(),
|
|
1118
1217
|
}).required();
|
|
1119
1218
|
}
|
|
@@ -1133,10 +1232,10 @@ class ContentPlatformApplicationValidator {
|
|
|
1133
1232
|
}).required();
|
|
1134
1233
|
}
|
|
1135
1234
|
|
|
1136
|
-
/** @returns {
|
|
1137
|
-
static
|
|
1235
|
+
/** @returns {SampleAppCustomObjectBulkEntryBySlugParam} */
|
|
1236
|
+
static sampleAppCustomObjectBulkEntryBySlug() {
|
|
1138
1237
|
return Joi.object({
|
|
1139
|
-
|
|
1238
|
+
slug: Joi.string().allow("").required(),
|
|
1140
1239
|
}).required();
|
|
1141
1240
|
}
|
|
1142
1241
|
|
|
@@ -1163,26 +1262,38 @@ class ContentPlatformApplicationValidator {
|
|
|
1163
1262
|
}).required();
|
|
1164
1263
|
}
|
|
1165
1264
|
|
|
1166
|
-
/** @returns {
|
|
1167
|
-
static
|
|
1265
|
+
/** @returns {UpdateAppCustomFieldByResourceSlugParam} */
|
|
1266
|
+
static updateAppCustomFieldByResourceSlug() {
|
|
1168
1267
|
return Joi.object({
|
|
1169
|
-
|
|
1268
|
+
resource: Joi.string().allow("").required(),
|
|
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(),
|
|
1170
1280
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
1171
1281
|
}).required();
|
|
1172
1282
|
}
|
|
1173
1283
|
|
|
1174
|
-
/** @returns {
|
|
1175
|
-
static
|
|
1284
|
+
/** @returns {UpdateAppCustomObjectBySlugParam} */
|
|
1285
|
+
static updateAppCustomObjectBySlug() {
|
|
1176
1286
|
return Joi.object({
|
|
1177
|
-
|
|
1178
|
-
|
|
1287
|
+
definitionSlug: Joi.string().allow("").required(),
|
|
1288
|
+
slug: Joi.string().allow("").required(),
|
|
1289
|
+
body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
|
|
1179
1290
|
}).required();
|
|
1180
1291
|
}
|
|
1181
1292
|
|
|
1182
|
-
/** @returns {
|
|
1183
|
-
static
|
|
1293
|
+
/** @returns {UpdateAppCustomObjectDefinitionBySlugParam} */
|
|
1294
|
+
static updateAppCustomObjectDefinitionBySlug() {
|
|
1184
1295
|
return Joi.object({
|
|
1185
|
-
|
|
1296
|
+
slug: Joi.string().allow("").required(),
|
|
1186
1297
|
body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
|
|
1187
1298
|
}).required();
|
|
1188
1299
|
}
|
|
@@ -1191,7 +1302,14 @@ class ContentPlatformApplicationValidator {
|
|
|
1191
1302
|
static updateBlog() {
|
|
1192
1303
|
return Joi.object({
|
|
1193
1304
|
id: Joi.string().allow("").required(),
|
|
1194
|
-
body: ContentPlatformModel.
|
|
1305
|
+
body: ContentPlatformModel.BlogPayload().required(),
|
|
1306
|
+
}).required();
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
/** @returns {UpdateDefaultSitemapConfigParam} */
|
|
1310
|
+
static updateDefaultSitemapConfig() {
|
|
1311
|
+
return Joi.object({
|
|
1312
|
+
body: ContentPlatformModel.DefaultSitemapConfig().required(),
|
|
1195
1313
|
}).required();
|
|
1196
1314
|
}
|
|
1197
1315
|
|
|
@@ -1238,7 +1356,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1238
1356
|
static updateNavigation() {
|
|
1239
1357
|
return Joi.object({
|
|
1240
1358
|
id: Joi.string().allow("").required(),
|
|
1241
|
-
body: ContentPlatformModel.
|
|
1359
|
+
body: ContentPlatformModel.NavigationPayload().required(),
|
|
1242
1360
|
}).required();
|
|
1243
1361
|
}
|
|
1244
1362
|
|
|
@@ -1254,7 +1372,7 @@ class ContentPlatformApplicationValidator {
|
|
|
1254
1372
|
static updatePagePreview() {
|
|
1255
1373
|
return Joi.object({
|
|
1256
1374
|
slug: Joi.string().allow("").required(),
|
|
1257
|
-
body: ContentPlatformModel.
|
|
1375
|
+
body: ContentPlatformModel.PagePublishPayload().required(),
|
|
1258
1376
|
}).required();
|
|
1259
1377
|
}
|
|
1260
1378
|
|
|
@@ -1273,11 +1391,19 @@ class ContentPlatformApplicationValidator {
|
|
|
1273
1391
|
}).required();
|
|
1274
1392
|
}
|
|
1275
1393
|
|
|
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
|
+
|
|
1276
1402
|
/** @returns {UpdateSlideshowParam} */
|
|
1277
1403
|
static updateSlideshow() {
|
|
1278
1404
|
return Joi.object({
|
|
1279
1405
|
id: Joi.string().allow("").required(),
|
|
1280
|
-
body: ContentPlatformModel.
|
|
1406
|
+
body: ContentPlatformModel.SlideshowPayload().required(),
|
|
1281
1407
|
}).required();
|
|
1282
1408
|
}
|
|
1283
1409
|
|