@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +5 -3
- package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
- package/sdk/application/Cart/CartApplicationModel.js +74 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationValidator.js +4 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
- package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
- package/sdk/application/Content/ContentApplicationClient.js +246 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
- package/sdk/application/Content/ContentApplicationModel.js +252 -0
- package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
- package/sdk/application/Content/ContentApplicationValidator.js +41 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
- package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +32 -8
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
- package/sdk/application/Order/OrderApplicationValidator.js +8 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
- package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
- package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
- package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
- package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
- package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
- package/sdk/application/User/UserApplicationClient.d.ts +33 -0
- package/sdk/application/User/UserApplicationClient.js +239 -0
- package/sdk/application/User/UserApplicationModel.d.ts +28 -13
- package/sdk/application/User/UserApplicationModel.js +36 -12
- package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
- package/sdk/application/User/UserApplicationValidator.js +36 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
- package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
- package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
- package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
- package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
- package/sdk/platform/Cart/CartPlatformModel.js +71 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
- package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
- package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
- package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
- package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
- package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
- package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +4 -2
- package/sdk/platform/PlatformClient.js +8 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
- package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
- package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
- package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
- package/sdk/platform/User/UserPlatformModel.js +256 -5
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
- package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
- package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
- package/sdk/public/Billing/BillingPublicClient.js +116 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
- package/sdk/public/Billing/BillingPublicModel.js +96 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
- package/sdk/public/Billing/BillingPublicValidator.js +19 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +114 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
- package/sdk/public/Content/ContentPublicModel.js +60 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +4 -0
- package/sdk/public/PublicClient.js +8 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
- package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
|
@@ -28,6 +28,28 @@ 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
|
+
/**
|
|
39
|
+
* @typedef CreateAppCustomFieldDefinitionParam
|
|
40
|
+
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @typedef CreateAppCustomObjectParam
|
|
45
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchema} body
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @typedef CreateAppCustomObjectDefinitionParam
|
|
50
|
+
* @property {ContentPlatformModel.CustomObjectDefinitionRequestSchema} body
|
|
51
|
+
*/
|
|
52
|
+
|
|
31
53
|
/**
|
|
32
54
|
* @typedef CreateBlogParam
|
|
33
55
|
* @property {ContentPlatformModel.BlogRequest} body
|
|
@@ -58,6 +80,11 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
58
80
|
* @property {ContentPlatformModel.PageRequest} body
|
|
59
81
|
*/
|
|
60
82
|
|
|
83
|
+
/**
|
|
84
|
+
* @typedef CreateSEOMarkupSchemaParam
|
|
85
|
+
* @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
|
|
86
|
+
*/
|
|
87
|
+
|
|
61
88
|
/**
|
|
62
89
|
* @typedef CreateSlideshowParam
|
|
63
90
|
* @property {ContentPlatformModel.SlideshowRequest} body
|
|
@@ -68,6 +95,21 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
68
95
|
* @property {string} announcementId - ID allotted to the announcement.
|
|
69
96
|
*/
|
|
70
97
|
|
|
98
|
+
/**
|
|
99
|
+
* @typedef DeleteAppCustomFieldDefinitionParam
|
|
100
|
+
* @property {string} definitionId
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @typedef DeleteAppCustomObjectParam
|
|
105
|
+
* @property {string} metaobjectId
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @typedef DeleteAppCustomObjectDefinitionParam
|
|
110
|
+
* @property {string} definitionId
|
|
111
|
+
*/
|
|
112
|
+
|
|
71
113
|
/**
|
|
72
114
|
* @typedef DeleteBlogParam
|
|
73
115
|
* @property {string} id - ID allotted to the blog.
|
|
@@ -109,6 +151,12 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
109
151
|
* @property {string} pathId - ID allotted to the path redirection rule.
|
|
110
152
|
*/
|
|
111
153
|
|
|
154
|
+
/**
|
|
155
|
+
* @typedef DeleteSEOMarkupSchemaParam
|
|
156
|
+
* @property {string} id - Alphanumeric ID allotted to a SEO Markup Schema
|
|
157
|
+
* Template created within a business.
|
|
158
|
+
*/
|
|
159
|
+
|
|
112
160
|
/**
|
|
113
161
|
* @typedef DeleteSlideshowParam
|
|
114
162
|
* @property {string} id - ID allotted to the slideshow.
|
|
@@ -126,6 +174,18 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
126
174
|
* @property {ContentPlatformModel.UpdateHandpickedSchema} body
|
|
127
175
|
*/
|
|
128
176
|
|
|
177
|
+
/**
|
|
178
|
+
* @typedef EditSEOMarkupSchemaParam
|
|
179
|
+
* @property {string} id - Alphanumeric ID allotted to a SEO Markup Schema
|
|
180
|
+
* Template created within a business.
|
|
181
|
+
* @property {ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody} body
|
|
182
|
+
*/
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @typedef ExportAppCustomObjectEntriesParam
|
|
186
|
+
* @property {string} definitionId
|
|
187
|
+
*/
|
|
188
|
+
|
|
129
189
|
/**
|
|
130
190
|
* @typedef GenerateSEOTitleParam
|
|
131
191
|
* @property {ContentPlatformModel.GenerationEntityType} type - String
|
|
@@ -147,6 +207,66 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
147
207
|
* Default value is 10.
|
|
148
208
|
*/
|
|
149
209
|
|
|
210
|
+
/**
|
|
211
|
+
* @typedef GetAppCustomFieldDefinitionParam
|
|
212
|
+
* @property {string} definitionId
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @typedef GetAppCustomFieldDefinitionsParam
|
|
217
|
+
* @property {string} pageNo
|
|
218
|
+
* @property {string} pageSize
|
|
219
|
+
* @property {string} [resource]
|
|
220
|
+
* @property {string} [type]
|
|
221
|
+
* @property {string} [search]
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
/** @typedef GetAppCustomFieldTypesParam */
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @typedef GetAppCustomFieldsParam
|
|
228
|
+
* @property {string} resource
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @typedef GetAppCustomFieldsByResourceIdParam
|
|
233
|
+
* @property {string} resource
|
|
234
|
+
* @property {string} resourceId
|
|
235
|
+
*/
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @typedef GetAppCustomObjectParam
|
|
239
|
+
* @property {string} metaobjectId
|
|
240
|
+
*/
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @typedef GetAppCustomObjectDefinitionParam
|
|
244
|
+
* @property {string} definitionId
|
|
245
|
+
*/
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @typedef GetAppCustomObjectDefinitionsParam
|
|
249
|
+
* @property {string} pageNo
|
|
250
|
+
* @property {string} pageSize
|
|
251
|
+
* @property {string} [search]
|
|
252
|
+
*/
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @typedef GetAppCustomObjectsParam
|
|
256
|
+
* @property {string} [definitionId]
|
|
257
|
+
* @property {string} pageNo
|
|
258
|
+
* @property {string} pageSize
|
|
259
|
+
*/
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* @typedef GetAppJobsParam
|
|
263
|
+
* @property {string} page
|
|
264
|
+
* @property {string} pageSize
|
|
265
|
+
* @property {string} actionType
|
|
266
|
+
*/
|
|
267
|
+
|
|
268
|
+
/** @typedef GetAppResourcesParam */
|
|
269
|
+
|
|
150
270
|
/**
|
|
151
271
|
* @typedef GetBlogBySlugParam
|
|
152
272
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
@@ -169,8 +289,19 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
169
289
|
|
|
170
290
|
/** @typedef GetDataLoadersParam */
|
|
171
291
|
|
|
292
|
+
/**
|
|
293
|
+
* @typedef GetDataLoadersByServiceParam
|
|
294
|
+
* @property {string} serviceName - Service name of the data loader..
|
|
295
|
+
*/
|
|
296
|
+
|
|
172
297
|
/** @typedef GetDefaultNavigationsParam */
|
|
173
298
|
|
|
299
|
+
/**
|
|
300
|
+
* @typedef GetDefaultSEOMarkupSchemaParam
|
|
301
|
+
* @property {string} [pageType] - The type of page against which schema
|
|
302
|
+
* template was created
|
|
303
|
+
*/
|
|
304
|
+
|
|
174
305
|
/**
|
|
175
306
|
* @typedef GetFaqByIdOrSlugParam
|
|
176
307
|
* @property {string} idOrSlug - ID or the slug allotted to an FAQ category.
|
|
@@ -260,6 +391,22 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
260
391
|
|
|
261
392
|
/** @typedef GetSEOConfigurationParam */
|
|
262
393
|
|
|
394
|
+
/**
|
|
395
|
+
* @typedef GetSEOMarkupSchemaParam
|
|
396
|
+
* @property {string} id - Alphanumeric ID allotted to a SEO Markup Schema
|
|
397
|
+
* Template created within a business.
|
|
398
|
+
*/
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @typedef GetSEOMarkupSchemasParam
|
|
402
|
+
* @property {string} [title] - Title of the seo schema.
|
|
403
|
+
* @property {string} [active] - Boolean value for fetching seo schema.
|
|
404
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
405
|
+
* set of results. Default value is 1.
|
|
406
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
407
|
+
* Default value is 10.
|
|
408
|
+
*/
|
|
409
|
+
|
|
263
410
|
/**
|
|
264
411
|
* @typedef GetSlideshowBySlugParam
|
|
265
412
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
@@ -280,6 +427,12 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
280
427
|
|
|
281
428
|
/** @typedef GetSupportInformationParam */
|
|
282
429
|
|
|
430
|
+
/**
|
|
431
|
+
* @typedef ImportAppCustomObjectEntriesParam
|
|
432
|
+
* @property {string} definitionId
|
|
433
|
+
* @property {ContentPlatformModel.CustomObjectBulkSchema} body
|
|
434
|
+
*/
|
|
435
|
+
|
|
283
436
|
/**
|
|
284
437
|
* @typedef RemoveInjectableTagParam
|
|
285
438
|
* @property {ContentPlatformModel.RemoveHandpickedSchema} body
|
|
@@ -291,6 +444,11 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
291
444
|
* @property {string} operationId - Name of operation id of the service.
|
|
292
445
|
*/
|
|
293
446
|
|
|
447
|
+
/**
|
|
448
|
+
* @typedef SampleAppCustomObjectBulkEntryParam
|
|
449
|
+
* @property {string} definitionId
|
|
450
|
+
*/
|
|
451
|
+
|
|
294
452
|
/**
|
|
295
453
|
* @typedef SelectDataLoaderParam
|
|
296
454
|
* @property {string} dataLoaderId - ID allotted to the data loader.
|
|
@@ -308,6 +466,24 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
308
466
|
* @property {ContentPlatformModel.ScheduleSchema} body
|
|
309
467
|
*/
|
|
310
468
|
|
|
469
|
+
/**
|
|
470
|
+
* @typedef UpdateAppCustomFieldDefinitionParam
|
|
471
|
+
* @property {string} definitionId
|
|
472
|
+
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
473
|
+
*/
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @typedef UpdateAppCustomObjectParam
|
|
477
|
+
* @property {string} metaobjectId
|
|
478
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchema} body
|
|
479
|
+
*/
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* @typedef UpdateAppCustomObjectDefinitionParam
|
|
483
|
+
* @property {string} definitionId
|
|
484
|
+
* @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
|
|
485
|
+
*/
|
|
486
|
+
|
|
311
487
|
/**
|
|
312
488
|
* @typedef UpdateBlogParam
|
|
313
489
|
* @property {string} id - ID allotted to the blog.
|
|
@@ -421,6 +597,36 @@ class ContentPlatformApplicationValidator {
|
|
|
421
597
|
}).required();
|
|
422
598
|
}
|
|
423
599
|
|
|
600
|
+
/** @returns {CreateAppCustomFieldByResourceIdParam} */
|
|
601
|
+
static createAppCustomFieldByResourceId() {
|
|
602
|
+
return Joi.object({
|
|
603
|
+
resource: Joi.string().allow("").required(),
|
|
604
|
+
resourceId: Joi.string().allow("").required(),
|
|
605
|
+
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
606
|
+
}).required();
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/** @returns {CreateAppCustomFieldDefinitionParam} */
|
|
610
|
+
static createAppCustomFieldDefinition() {
|
|
611
|
+
return Joi.object({
|
|
612
|
+
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
613
|
+
}).required();
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/** @returns {CreateAppCustomObjectParam} */
|
|
617
|
+
static createAppCustomObject() {
|
|
618
|
+
return Joi.object({
|
|
619
|
+
body: ContentPlatformModel.CustomObjectRequestSchema().required(),
|
|
620
|
+
}).required();
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/** @returns {CreateAppCustomObjectDefinitionParam} */
|
|
624
|
+
static createAppCustomObjectDefinition() {
|
|
625
|
+
return Joi.object({
|
|
626
|
+
body: ContentPlatformModel.CustomObjectDefinitionRequestSchema().required(),
|
|
627
|
+
}).required();
|
|
628
|
+
}
|
|
629
|
+
|
|
424
630
|
/** @returns {CreateBlogParam} */
|
|
425
631
|
static createBlog() {
|
|
426
632
|
return Joi.object({
|
|
@@ -463,6 +669,13 @@ class ContentPlatformApplicationValidator {
|
|
|
463
669
|
}).required();
|
|
464
670
|
}
|
|
465
671
|
|
|
672
|
+
/** @returns {CreateSEOMarkupSchemaParam} */
|
|
673
|
+
static createSEOMarkupSchema() {
|
|
674
|
+
return Joi.object({
|
|
675
|
+
body: ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody().required(),
|
|
676
|
+
}).required();
|
|
677
|
+
}
|
|
678
|
+
|
|
466
679
|
/** @returns {CreateSlideshowParam} */
|
|
467
680
|
static createSlideshow() {
|
|
468
681
|
return Joi.object({
|
|
@@ -477,6 +690,27 @@ class ContentPlatformApplicationValidator {
|
|
|
477
690
|
}).required();
|
|
478
691
|
}
|
|
479
692
|
|
|
693
|
+
/** @returns {DeleteAppCustomFieldDefinitionParam} */
|
|
694
|
+
static deleteAppCustomFieldDefinition() {
|
|
695
|
+
return Joi.object({
|
|
696
|
+
definitionId: Joi.string().allow("").required(),
|
|
697
|
+
}).required();
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/** @returns {DeleteAppCustomObjectParam} */
|
|
701
|
+
static deleteAppCustomObject() {
|
|
702
|
+
return Joi.object({
|
|
703
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
704
|
+
}).required();
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/** @returns {DeleteAppCustomObjectDefinitionParam} */
|
|
708
|
+
static deleteAppCustomObjectDefinition() {
|
|
709
|
+
return Joi.object({
|
|
710
|
+
definitionId: Joi.string().allow("").required(),
|
|
711
|
+
}).required();
|
|
712
|
+
}
|
|
713
|
+
|
|
480
714
|
/** @returns {DeleteBlogParam} */
|
|
481
715
|
static deleteBlog() {
|
|
482
716
|
return Joi.object({
|
|
@@ -534,6 +768,13 @@ class ContentPlatformApplicationValidator {
|
|
|
534
768
|
}).required();
|
|
535
769
|
}
|
|
536
770
|
|
|
771
|
+
/** @returns {DeleteSEOMarkupSchemaParam} */
|
|
772
|
+
static deleteSEOMarkupSchema() {
|
|
773
|
+
return Joi.object({
|
|
774
|
+
id: Joi.string().allow("").required(),
|
|
775
|
+
}).required();
|
|
776
|
+
}
|
|
777
|
+
|
|
537
778
|
/** @returns {DeleteSlideshowParam} */
|
|
538
779
|
static deleteSlideshow() {
|
|
539
780
|
return Joi.object({
|
|
@@ -557,6 +798,21 @@ class ContentPlatformApplicationValidator {
|
|
|
557
798
|
}).required();
|
|
558
799
|
}
|
|
559
800
|
|
|
801
|
+
/** @returns {EditSEOMarkupSchemaParam} */
|
|
802
|
+
static editSEOMarkupSchema() {
|
|
803
|
+
return Joi.object({
|
|
804
|
+
id: Joi.string().allow("").required(),
|
|
805
|
+
body: ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody().required(),
|
|
806
|
+
}).required();
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
/** @returns {ExportAppCustomObjectEntriesParam} */
|
|
810
|
+
static exportAppCustomObjectEntries() {
|
|
811
|
+
return Joi.object({
|
|
812
|
+
definitionId: Joi.string().allow("").required(),
|
|
813
|
+
}).required();
|
|
814
|
+
}
|
|
815
|
+
|
|
560
816
|
/** @returns {GenerateSEOTitleParam} */
|
|
561
817
|
static generateSEOTitle() {
|
|
562
818
|
return Joi.object({
|
|
@@ -580,6 +836,90 @@ class ContentPlatformApplicationValidator {
|
|
|
580
836
|
}).required();
|
|
581
837
|
}
|
|
582
838
|
|
|
839
|
+
/** @returns {GetAppCustomFieldDefinitionParam} */
|
|
840
|
+
static getAppCustomFieldDefinition() {
|
|
841
|
+
return Joi.object({
|
|
842
|
+
definitionId: Joi.string().allow("").required(),
|
|
843
|
+
}).required();
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/** @returns {GetAppCustomFieldDefinitionsParam} */
|
|
847
|
+
static getAppCustomFieldDefinitions() {
|
|
848
|
+
return Joi.object({
|
|
849
|
+
pageNo: Joi.string().allow("").required(),
|
|
850
|
+
pageSize: Joi.string().allow("").required(),
|
|
851
|
+
resource: Joi.string().allow(""),
|
|
852
|
+
type: Joi.string().allow(""),
|
|
853
|
+
search: Joi.string().allow(""),
|
|
854
|
+
}).required();
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/** @returns {GetAppCustomFieldTypesParam} */
|
|
858
|
+
static getAppCustomFieldTypes() {
|
|
859
|
+
return Joi.object({}).required();
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
/** @returns {GetAppCustomFieldsParam} */
|
|
863
|
+
static getAppCustomFields() {
|
|
864
|
+
return Joi.object({
|
|
865
|
+
resource: Joi.string().allow("").required(),
|
|
866
|
+
}).required();
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/** @returns {GetAppCustomFieldsByResourceIdParam} */
|
|
870
|
+
static getAppCustomFieldsByResourceId() {
|
|
871
|
+
return Joi.object({
|
|
872
|
+
resource: Joi.string().allow("").required(),
|
|
873
|
+
resourceId: Joi.string().allow("").required(),
|
|
874
|
+
}).required();
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/** @returns {GetAppCustomObjectParam} */
|
|
878
|
+
static getAppCustomObject() {
|
|
879
|
+
return Joi.object({
|
|
880
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
881
|
+
}).required();
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/** @returns {GetAppCustomObjectDefinitionParam} */
|
|
885
|
+
static getAppCustomObjectDefinition() {
|
|
886
|
+
return Joi.object({
|
|
887
|
+
definitionId: Joi.string().allow("").required(),
|
|
888
|
+
}).required();
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/** @returns {GetAppCustomObjectDefinitionsParam} */
|
|
892
|
+
static getAppCustomObjectDefinitions() {
|
|
893
|
+
return Joi.object({
|
|
894
|
+
pageNo: Joi.string().allow("").required(),
|
|
895
|
+
pageSize: Joi.string().allow("").required(),
|
|
896
|
+
search: Joi.string().allow(""),
|
|
897
|
+
}).required();
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/** @returns {GetAppCustomObjectsParam} */
|
|
901
|
+
static getAppCustomObjects() {
|
|
902
|
+
return Joi.object({
|
|
903
|
+
definitionId: Joi.string().allow(""),
|
|
904
|
+
pageNo: Joi.string().allow("").required(),
|
|
905
|
+
pageSize: Joi.string().allow("").required(),
|
|
906
|
+
}).required();
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/** @returns {GetAppJobsParam} */
|
|
910
|
+
static getAppJobs() {
|
|
911
|
+
return Joi.object({
|
|
912
|
+
page: Joi.string().allow("").required(),
|
|
913
|
+
pageSize: Joi.string().allow("").required(),
|
|
914
|
+
actionType: Joi.string().allow("").required(),
|
|
915
|
+
}).required();
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
/** @returns {GetAppResourcesParam} */
|
|
919
|
+
static getAppResources() {
|
|
920
|
+
return Joi.object({}).required();
|
|
921
|
+
}
|
|
922
|
+
|
|
583
923
|
/** @returns {GetBlogBySlugParam} */
|
|
584
924
|
static getBlogBySlug() {
|
|
585
925
|
return Joi.object({
|
|
@@ -607,11 +947,25 @@ class ContentPlatformApplicationValidator {
|
|
|
607
947
|
return Joi.object({}).required();
|
|
608
948
|
}
|
|
609
949
|
|
|
950
|
+
/** @returns {GetDataLoadersByServiceParam} */
|
|
951
|
+
static getDataLoadersByService() {
|
|
952
|
+
return Joi.object({
|
|
953
|
+
serviceName: Joi.string().allow("").required(),
|
|
954
|
+
}).required();
|
|
955
|
+
}
|
|
956
|
+
|
|
610
957
|
/** @returns {GetDefaultNavigationsParam} */
|
|
611
958
|
static getDefaultNavigations() {
|
|
612
959
|
return Joi.object({}).required();
|
|
613
960
|
}
|
|
614
961
|
|
|
962
|
+
/** @returns {GetDefaultSEOMarkupSchemaParam} */
|
|
963
|
+
static getDefaultSEOMarkupSchema() {
|
|
964
|
+
return Joi.object({
|
|
965
|
+
pageType: Joi.string().allow(""),
|
|
966
|
+
}).required();
|
|
967
|
+
}
|
|
968
|
+
|
|
615
969
|
/** @returns {GetFaqByIdOrSlugParam} */
|
|
616
970
|
static getFaqByIdOrSlug() {
|
|
617
971
|
return Joi.object({
|
|
@@ -720,6 +1074,23 @@ class ContentPlatformApplicationValidator {
|
|
|
720
1074
|
return Joi.object({}).required();
|
|
721
1075
|
}
|
|
722
1076
|
|
|
1077
|
+
/** @returns {GetSEOMarkupSchemaParam} */
|
|
1078
|
+
static getSEOMarkupSchema() {
|
|
1079
|
+
return Joi.object({
|
|
1080
|
+
id: Joi.string().allow("").required(),
|
|
1081
|
+
}).required();
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/** @returns {GetSEOMarkupSchemasParam} */
|
|
1085
|
+
static getSEOMarkupSchemas() {
|
|
1086
|
+
return Joi.object({
|
|
1087
|
+
title: Joi.string().allow(""),
|
|
1088
|
+
active: Joi.string().allow(""),
|
|
1089
|
+
pageNo: Joi.number(),
|
|
1090
|
+
pageSize: Joi.number(),
|
|
1091
|
+
}).required();
|
|
1092
|
+
}
|
|
1093
|
+
|
|
723
1094
|
/** @returns {GetSlideshowBySlugParam} */
|
|
724
1095
|
static getSlideshowBySlug() {
|
|
725
1096
|
return Joi.object({
|
|
@@ -742,6 +1113,14 @@ class ContentPlatformApplicationValidator {
|
|
|
742
1113
|
return Joi.object({}).required();
|
|
743
1114
|
}
|
|
744
1115
|
|
|
1116
|
+
/** @returns {ImportAppCustomObjectEntriesParam} */
|
|
1117
|
+
static importAppCustomObjectEntries() {
|
|
1118
|
+
return Joi.object({
|
|
1119
|
+
definitionId: Joi.string().allow("").required(),
|
|
1120
|
+
body: ContentPlatformModel.CustomObjectBulkSchema().required(),
|
|
1121
|
+
}).required();
|
|
1122
|
+
}
|
|
1123
|
+
|
|
745
1124
|
/** @returns {RemoveInjectableTagParam} */
|
|
746
1125
|
static removeInjectableTag() {
|
|
747
1126
|
return Joi.object({
|
|
@@ -757,6 +1136,13 @@ class ContentPlatformApplicationValidator {
|
|
|
757
1136
|
}).required();
|
|
758
1137
|
}
|
|
759
1138
|
|
|
1139
|
+
/** @returns {SampleAppCustomObjectBulkEntryParam} */
|
|
1140
|
+
static sampleAppCustomObjectBulkEntry() {
|
|
1141
|
+
return Joi.object({
|
|
1142
|
+
definitionId: Joi.string().allow("").required(),
|
|
1143
|
+
}).required();
|
|
1144
|
+
}
|
|
1145
|
+
|
|
760
1146
|
/** @returns {SelectDataLoaderParam} */
|
|
761
1147
|
static selectDataLoader() {
|
|
762
1148
|
return Joi.object({
|
|
@@ -780,6 +1166,30 @@ class ContentPlatformApplicationValidator {
|
|
|
780
1166
|
}).required();
|
|
781
1167
|
}
|
|
782
1168
|
|
|
1169
|
+
/** @returns {UpdateAppCustomFieldDefinitionParam} */
|
|
1170
|
+
static updateAppCustomFieldDefinition() {
|
|
1171
|
+
return Joi.object({
|
|
1172
|
+
definitionId: Joi.string().allow("").required(),
|
|
1173
|
+
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
1174
|
+
}).required();
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
/** @returns {UpdateAppCustomObjectParam} */
|
|
1178
|
+
static updateAppCustomObject() {
|
|
1179
|
+
return Joi.object({
|
|
1180
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
1181
|
+
body: ContentPlatformModel.CustomObjectRequestSchema().required(),
|
|
1182
|
+
}).required();
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/** @returns {UpdateAppCustomObjectDefinitionParam} */
|
|
1186
|
+
static updateAppCustomObjectDefinition() {
|
|
1187
|
+
return Joi.object({
|
|
1188
|
+
definitionId: Joi.string().allow("").required(),
|
|
1189
|
+
body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
|
|
1190
|
+
}).required();
|
|
1191
|
+
}
|
|
1192
|
+
|
|
783
1193
|
/** @returns {UpdateBlogParam} */
|
|
784
1194
|
static updateBlog() {
|
|
785
1195
|
return Joi.object({
|