@gofynd/fdk-client-javascript 1.3.11-beta.6 → 1.3.11-beta.8
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/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 +3630 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +310 -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 +16 -5
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
- 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 +1030 -468
- package/sdk/platform/Order/OrderPlatformModel.js +1176 -523
- 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.SEOSchemaMarkupTemplate} 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,61 @@ 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
|
+
/** @typedef GetAppCustomObjectsParam */
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @typedef GetAppJobsParam
|
|
258
|
+
* @property {string} page
|
|
259
|
+
* @property {string} pageSize
|
|
260
|
+
* @property {string} actionType
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
/** @typedef GetAppResourcesParam */
|
|
264
|
+
|
|
150
265
|
/**
|
|
151
266
|
* @typedef GetBlogBySlugParam
|
|
152
267
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
@@ -169,8 +284,19 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
169
284
|
|
|
170
285
|
/** @typedef GetDataLoadersParam */
|
|
171
286
|
|
|
287
|
+
/**
|
|
288
|
+
* @typedef GetDataLoadersByServiceParam
|
|
289
|
+
* @property {string} serviceName - Service name of the data loader..
|
|
290
|
+
*/
|
|
291
|
+
|
|
172
292
|
/** @typedef GetDefaultNavigationsParam */
|
|
173
293
|
|
|
294
|
+
/**
|
|
295
|
+
* @typedef GetDefaultSEOMarkupSchemaParam
|
|
296
|
+
* @property {string} [pageType] - The type of page against which schema
|
|
297
|
+
* template was created
|
|
298
|
+
*/
|
|
299
|
+
|
|
174
300
|
/**
|
|
175
301
|
* @typedef GetFaqByIdOrSlugParam
|
|
176
302
|
* @property {string} idOrSlug - ID or the slug allotted to an FAQ category.
|
|
@@ -260,6 +386,22 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
260
386
|
|
|
261
387
|
/** @typedef GetSEOConfigurationParam */
|
|
262
388
|
|
|
389
|
+
/**
|
|
390
|
+
* @typedef GetSEOMarkupSchemaParam
|
|
391
|
+
* @property {string} id - Alphanumeric ID allotted to a SEO Markup Schema
|
|
392
|
+
* Template created within a business.
|
|
393
|
+
*/
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* @typedef GetSEOMarkupSchemasParam
|
|
397
|
+
* @property {string} [title] - Title of the seo schema.
|
|
398
|
+
* @property {string} [active] - Boolean value for fetching seo schema.
|
|
399
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
400
|
+
* set of results. Default value is 1.
|
|
401
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
402
|
+
* Default value is 10.
|
|
403
|
+
*/
|
|
404
|
+
|
|
263
405
|
/**
|
|
264
406
|
* @typedef GetSlideshowBySlugParam
|
|
265
407
|
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
@@ -280,6 +422,12 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
280
422
|
|
|
281
423
|
/** @typedef GetSupportInformationParam */
|
|
282
424
|
|
|
425
|
+
/**
|
|
426
|
+
* @typedef ImportAppCustomObjectEntriesParam
|
|
427
|
+
* @property {string} definitionId
|
|
428
|
+
* @property {ContentPlatformModel.CustomObjectBulkSchema} body
|
|
429
|
+
*/
|
|
430
|
+
|
|
283
431
|
/**
|
|
284
432
|
* @typedef RemoveInjectableTagParam
|
|
285
433
|
* @property {ContentPlatformModel.RemoveHandpickedSchema} body
|
|
@@ -291,6 +439,11 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
291
439
|
* @property {string} operationId - Name of operation id of the service.
|
|
292
440
|
*/
|
|
293
441
|
|
|
442
|
+
/**
|
|
443
|
+
* @typedef SampleAppCustomObjectBulkEntryParam
|
|
444
|
+
* @property {string} definitionId
|
|
445
|
+
*/
|
|
446
|
+
|
|
294
447
|
/**
|
|
295
448
|
* @typedef SelectDataLoaderParam
|
|
296
449
|
* @property {string} dataLoaderId - ID allotted to the data loader.
|
|
@@ -308,6 +461,24 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
308
461
|
* @property {ContentPlatformModel.ScheduleSchema} body
|
|
309
462
|
*/
|
|
310
463
|
|
|
464
|
+
/**
|
|
465
|
+
* @typedef UpdateAppCustomFieldDefinitionParam
|
|
466
|
+
* @property {string} definitionId
|
|
467
|
+
* @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
|
|
468
|
+
*/
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* @typedef UpdateAppCustomObjectParam
|
|
472
|
+
* @property {string} metaobjectId
|
|
473
|
+
* @property {ContentPlatformModel.CustomObjectRequestSchema} body
|
|
474
|
+
*/
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* @typedef UpdateAppCustomObjectDefinitionParam
|
|
478
|
+
* @property {string} definitionId
|
|
479
|
+
* @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
|
|
480
|
+
*/
|
|
481
|
+
|
|
311
482
|
/**
|
|
312
483
|
* @typedef UpdateBlogParam
|
|
313
484
|
* @property {string} id - ID allotted to the blog.
|
|
@@ -421,6 +592,36 @@ class ContentPlatformApplicationValidator {
|
|
|
421
592
|
}).required();
|
|
422
593
|
}
|
|
423
594
|
|
|
595
|
+
/** @returns {CreateAppCustomFieldByResourceIdParam} */
|
|
596
|
+
static createAppCustomFieldByResourceId() {
|
|
597
|
+
return Joi.object({
|
|
598
|
+
resource: Joi.string().allow("").required(),
|
|
599
|
+
resourceId: Joi.string().allow("").required(),
|
|
600
|
+
body: ContentPlatformModel.CustomFieldRequestSchema().required(),
|
|
601
|
+
}).required();
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/** @returns {CreateAppCustomFieldDefinitionParam} */
|
|
605
|
+
static createAppCustomFieldDefinition() {
|
|
606
|
+
return Joi.object({
|
|
607
|
+
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
608
|
+
}).required();
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/** @returns {CreateAppCustomObjectParam} */
|
|
612
|
+
static createAppCustomObject() {
|
|
613
|
+
return Joi.object({
|
|
614
|
+
body: ContentPlatformModel.CustomObjectRequestSchema().required(),
|
|
615
|
+
}).required();
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/** @returns {CreateAppCustomObjectDefinitionParam} */
|
|
619
|
+
static createAppCustomObjectDefinition() {
|
|
620
|
+
return Joi.object({
|
|
621
|
+
body: ContentPlatformModel.CustomObjectDefinitionRequestSchema().required(),
|
|
622
|
+
}).required();
|
|
623
|
+
}
|
|
624
|
+
|
|
424
625
|
/** @returns {CreateBlogParam} */
|
|
425
626
|
static createBlog() {
|
|
426
627
|
return Joi.object({
|
|
@@ -463,6 +664,13 @@ class ContentPlatformApplicationValidator {
|
|
|
463
664
|
}).required();
|
|
464
665
|
}
|
|
465
666
|
|
|
667
|
+
/** @returns {CreateSEOMarkupSchemaParam} */
|
|
668
|
+
static createSEOMarkupSchema() {
|
|
669
|
+
return Joi.object({
|
|
670
|
+
body: ContentPlatformModel.SEOSchemaMarkupTemplateRequestBody().required(),
|
|
671
|
+
}).required();
|
|
672
|
+
}
|
|
673
|
+
|
|
466
674
|
/** @returns {CreateSlideshowParam} */
|
|
467
675
|
static createSlideshow() {
|
|
468
676
|
return Joi.object({
|
|
@@ -477,6 +685,27 @@ class ContentPlatformApplicationValidator {
|
|
|
477
685
|
}).required();
|
|
478
686
|
}
|
|
479
687
|
|
|
688
|
+
/** @returns {DeleteAppCustomFieldDefinitionParam} */
|
|
689
|
+
static deleteAppCustomFieldDefinition() {
|
|
690
|
+
return Joi.object({
|
|
691
|
+
definitionId: Joi.string().allow("").required(),
|
|
692
|
+
}).required();
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/** @returns {DeleteAppCustomObjectParam} */
|
|
696
|
+
static deleteAppCustomObject() {
|
|
697
|
+
return Joi.object({
|
|
698
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
699
|
+
}).required();
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/** @returns {DeleteAppCustomObjectDefinitionParam} */
|
|
703
|
+
static deleteAppCustomObjectDefinition() {
|
|
704
|
+
return Joi.object({
|
|
705
|
+
definitionId: Joi.string().allow("").required(),
|
|
706
|
+
}).required();
|
|
707
|
+
}
|
|
708
|
+
|
|
480
709
|
/** @returns {DeleteBlogParam} */
|
|
481
710
|
static deleteBlog() {
|
|
482
711
|
return Joi.object({
|
|
@@ -534,6 +763,13 @@ class ContentPlatformApplicationValidator {
|
|
|
534
763
|
}).required();
|
|
535
764
|
}
|
|
536
765
|
|
|
766
|
+
/** @returns {DeleteSEOMarkupSchemaParam} */
|
|
767
|
+
static deleteSEOMarkupSchema() {
|
|
768
|
+
return Joi.object({
|
|
769
|
+
id: Joi.string().allow("").required(),
|
|
770
|
+
}).required();
|
|
771
|
+
}
|
|
772
|
+
|
|
537
773
|
/** @returns {DeleteSlideshowParam} */
|
|
538
774
|
static deleteSlideshow() {
|
|
539
775
|
return Joi.object({
|
|
@@ -557,6 +793,21 @@ class ContentPlatformApplicationValidator {
|
|
|
557
793
|
}).required();
|
|
558
794
|
}
|
|
559
795
|
|
|
796
|
+
/** @returns {EditSEOMarkupSchemaParam} */
|
|
797
|
+
static editSEOMarkupSchema() {
|
|
798
|
+
return Joi.object({
|
|
799
|
+
id: Joi.string().allow("").required(),
|
|
800
|
+
body: ContentPlatformModel.SEOSchemaMarkupTemplate().required(),
|
|
801
|
+
}).required();
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/** @returns {ExportAppCustomObjectEntriesParam} */
|
|
805
|
+
static exportAppCustomObjectEntries() {
|
|
806
|
+
return Joi.object({
|
|
807
|
+
definitionId: Joi.string().allow("").required(),
|
|
808
|
+
}).required();
|
|
809
|
+
}
|
|
810
|
+
|
|
560
811
|
/** @returns {GenerateSEOTitleParam} */
|
|
561
812
|
static generateSEOTitle() {
|
|
562
813
|
return Joi.object({
|
|
@@ -580,6 +831,86 @@ class ContentPlatformApplicationValidator {
|
|
|
580
831
|
}).required();
|
|
581
832
|
}
|
|
582
833
|
|
|
834
|
+
/** @returns {GetAppCustomFieldDefinitionParam} */
|
|
835
|
+
static getAppCustomFieldDefinition() {
|
|
836
|
+
return Joi.object({
|
|
837
|
+
definitionId: Joi.string().allow("").required(),
|
|
838
|
+
}).required();
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/** @returns {GetAppCustomFieldDefinitionsParam} */
|
|
842
|
+
static getAppCustomFieldDefinitions() {
|
|
843
|
+
return Joi.object({
|
|
844
|
+
pageNo: Joi.string().allow("").required(),
|
|
845
|
+
pageSize: Joi.string().allow("").required(),
|
|
846
|
+
resource: Joi.string().allow(""),
|
|
847
|
+
type: Joi.string().allow(""),
|
|
848
|
+
search: Joi.string().allow(""),
|
|
849
|
+
}).required();
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
/** @returns {GetAppCustomFieldTypesParam} */
|
|
853
|
+
static getAppCustomFieldTypes() {
|
|
854
|
+
return Joi.object({}).required();
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/** @returns {GetAppCustomFieldsParam} */
|
|
858
|
+
static getAppCustomFields() {
|
|
859
|
+
return Joi.object({
|
|
860
|
+
resource: Joi.string().allow("").required(),
|
|
861
|
+
}).required();
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/** @returns {GetAppCustomFieldsByResourceIdParam} */
|
|
865
|
+
static getAppCustomFieldsByResourceId() {
|
|
866
|
+
return Joi.object({
|
|
867
|
+
resource: Joi.string().allow("").required(),
|
|
868
|
+
resourceId: Joi.string().allow("").required(),
|
|
869
|
+
}).required();
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/** @returns {GetAppCustomObjectParam} */
|
|
873
|
+
static getAppCustomObject() {
|
|
874
|
+
return Joi.object({
|
|
875
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
876
|
+
}).required();
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
/** @returns {GetAppCustomObjectDefinitionParam} */
|
|
880
|
+
static getAppCustomObjectDefinition() {
|
|
881
|
+
return Joi.object({
|
|
882
|
+
definitionId: Joi.string().allow("").required(),
|
|
883
|
+
}).required();
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/** @returns {GetAppCustomObjectDefinitionsParam} */
|
|
887
|
+
static getAppCustomObjectDefinitions() {
|
|
888
|
+
return Joi.object({
|
|
889
|
+
pageNo: Joi.string().allow("").required(),
|
|
890
|
+
pageSize: Joi.string().allow("").required(),
|
|
891
|
+
search: Joi.string().allow(""),
|
|
892
|
+
}).required();
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/** @returns {GetAppCustomObjectsParam} */
|
|
896
|
+
static getAppCustomObjects() {
|
|
897
|
+
return Joi.object({}).required();
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/** @returns {GetAppJobsParam} */
|
|
901
|
+
static getAppJobs() {
|
|
902
|
+
return Joi.object({
|
|
903
|
+
page: Joi.string().allow("").required(),
|
|
904
|
+
pageSize: Joi.string().allow("").required(),
|
|
905
|
+
actionType: Joi.string().allow("").required(),
|
|
906
|
+
}).required();
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/** @returns {GetAppResourcesParam} */
|
|
910
|
+
static getAppResources() {
|
|
911
|
+
return Joi.object({}).required();
|
|
912
|
+
}
|
|
913
|
+
|
|
583
914
|
/** @returns {GetBlogBySlugParam} */
|
|
584
915
|
static getBlogBySlug() {
|
|
585
916
|
return Joi.object({
|
|
@@ -607,11 +938,25 @@ class ContentPlatformApplicationValidator {
|
|
|
607
938
|
return Joi.object({}).required();
|
|
608
939
|
}
|
|
609
940
|
|
|
941
|
+
/** @returns {GetDataLoadersByServiceParam} */
|
|
942
|
+
static getDataLoadersByService() {
|
|
943
|
+
return Joi.object({
|
|
944
|
+
serviceName: Joi.string().allow("").required(),
|
|
945
|
+
}).required();
|
|
946
|
+
}
|
|
947
|
+
|
|
610
948
|
/** @returns {GetDefaultNavigationsParam} */
|
|
611
949
|
static getDefaultNavigations() {
|
|
612
950
|
return Joi.object({}).required();
|
|
613
951
|
}
|
|
614
952
|
|
|
953
|
+
/** @returns {GetDefaultSEOMarkupSchemaParam} */
|
|
954
|
+
static getDefaultSEOMarkupSchema() {
|
|
955
|
+
return Joi.object({
|
|
956
|
+
pageType: Joi.string().allow(""),
|
|
957
|
+
}).required();
|
|
958
|
+
}
|
|
959
|
+
|
|
615
960
|
/** @returns {GetFaqByIdOrSlugParam} */
|
|
616
961
|
static getFaqByIdOrSlug() {
|
|
617
962
|
return Joi.object({
|
|
@@ -720,6 +1065,23 @@ class ContentPlatformApplicationValidator {
|
|
|
720
1065
|
return Joi.object({}).required();
|
|
721
1066
|
}
|
|
722
1067
|
|
|
1068
|
+
/** @returns {GetSEOMarkupSchemaParam} */
|
|
1069
|
+
static getSEOMarkupSchema() {
|
|
1070
|
+
return Joi.object({
|
|
1071
|
+
id: Joi.string().allow("").required(),
|
|
1072
|
+
}).required();
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
/** @returns {GetSEOMarkupSchemasParam} */
|
|
1076
|
+
static getSEOMarkupSchemas() {
|
|
1077
|
+
return Joi.object({
|
|
1078
|
+
title: Joi.string().allow(""),
|
|
1079
|
+
active: Joi.string().allow(""),
|
|
1080
|
+
pageNo: Joi.number(),
|
|
1081
|
+
pageSize: Joi.number(),
|
|
1082
|
+
}).required();
|
|
1083
|
+
}
|
|
1084
|
+
|
|
723
1085
|
/** @returns {GetSlideshowBySlugParam} */
|
|
724
1086
|
static getSlideshowBySlug() {
|
|
725
1087
|
return Joi.object({
|
|
@@ -742,6 +1104,14 @@ class ContentPlatformApplicationValidator {
|
|
|
742
1104
|
return Joi.object({}).required();
|
|
743
1105
|
}
|
|
744
1106
|
|
|
1107
|
+
/** @returns {ImportAppCustomObjectEntriesParam} */
|
|
1108
|
+
static importAppCustomObjectEntries() {
|
|
1109
|
+
return Joi.object({
|
|
1110
|
+
definitionId: Joi.string().allow("").required(),
|
|
1111
|
+
body: ContentPlatformModel.CustomObjectBulkSchema().required(),
|
|
1112
|
+
}).required();
|
|
1113
|
+
}
|
|
1114
|
+
|
|
745
1115
|
/** @returns {RemoveInjectableTagParam} */
|
|
746
1116
|
static removeInjectableTag() {
|
|
747
1117
|
return Joi.object({
|
|
@@ -757,6 +1127,13 @@ class ContentPlatformApplicationValidator {
|
|
|
757
1127
|
}).required();
|
|
758
1128
|
}
|
|
759
1129
|
|
|
1130
|
+
/** @returns {SampleAppCustomObjectBulkEntryParam} */
|
|
1131
|
+
static sampleAppCustomObjectBulkEntry() {
|
|
1132
|
+
return Joi.object({
|
|
1133
|
+
definitionId: Joi.string().allow("").required(),
|
|
1134
|
+
}).required();
|
|
1135
|
+
}
|
|
1136
|
+
|
|
760
1137
|
/** @returns {SelectDataLoaderParam} */
|
|
761
1138
|
static selectDataLoader() {
|
|
762
1139
|
return Joi.object({
|
|
@@ -780,6 +1157,30 @@ class ContentPlatformApplicationValidator {
|
|
|
780
1157
|
}).required();
|
|
781
1158
|
}
|
|
782
1159
|
|
|
1160
|
+
/** @returns {UpdateAppCustomFieldDefinitionParam} */
|
|
1161
|
+
static updateAppCustomFieldDefinition() {
|
|
1162
|
+
return Joi.object({
|
|
1163
|
+
definitionId: Joi.string().allow("").required(),
|
|
1164
|
+
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
|
|
1165
|
+
}).required();
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
/** @returns {UpdateAppCustomObjectParam} */
|
|
1169
|
+
static updateAppCustomObject() {
|
|
1170
|
+
return Joi.object({
|
|
1171
|
+
metaobjectId: Joi.string().allow("").required(),
|
|
1172
|
+
body: ContentPlatformModel.CustomObjectRequestSchema().required(),
|
|
1173
|
+
}).required();
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/** @returns {UpdateAppCustomObjectDefinitionParam} */
|
|
1177
|
+
static updateAppCustomObjectDefinition() {
|
|
1178
|
+
return Joi.object({
|
|
1179
|
+
definitionId: Joi.string().allow("").required(),
|
|
1180
|
+
body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
|
|
1181
|
+
}).required();
|
|
1182
|
+
}
|
|
1183
|
+
|
|
783
1184
|
/** @returns {UpdateBlogParam} */
|
|
784
1185
|
static updateBlog() {
|
|
785
1186
|
return Joi.object({
|