@gofynd/fdk-client-javascript 1.1.6 → 1.2.0
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 +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -1,102 +1,501 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const ContentPlatformModel = require("./ContentPlatformModel");
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @typedef AddDataLoaderParam
|
|
7
|
+
* @property {ContentPlatformModel.DataLoaderSchema} body
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef AddFaqParam
|
|
12
|
+
* @property {string} categoryId - ID allotted to an FAQ category.
|
|
13
|
+
* @property {ContentPlatformModel.CreateFaqSchema} body
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @typedef AddInjectableTagParam
|
|
18
|
+
* @property {ContentPlatformModel.CreateTagRequestSchema} body
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @typedef AddPathRedirectionRulesParam
|
|
23
|
+
* @property {ContentPlatformModel.PathMappingSchema} body
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @typedef CreateAnnouncementParam
|
|
28
|
+
* @property {ContentPlatformModel.AdminAnnouncementSchema} body
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @typedef CreateBlogParam
|
|
33
|
+
* @property {ContentPlatformModel.BlogRequest} body
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @typedef CreateFaqCategoryParam
|
|
38
|
+
* @property {ContentPlatformModel.CreateFaqCategoryRequestSchema} body
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @typedef CreateLandingPageParam
|
|
43
|
+
* @property {ContentPlatformModel.LandingPageSchema} body
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @typedef CreateNavigationParam
|
|
48
|
+
* @property {ContentPlatformModel.NavigationRequest} body
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @typedef CreatePageParam
|
|
53
|
+
* @property {ContentPlatformModel.PageRequest} body
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @typedef CreatePagePreviewParam
|
|
58
|
+
* @property {ContentPlatformModel.PageRequest} body
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @typedef CreateSlideshowParam
|
|
63
|
+
* @property {ContentPlatformModel.SlideshowRequest} body
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
/** @typedef DeleteAllInjectableTagsParam */
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @typedef DeleteAnnouncementParam
|
|
70
|
+
* @property {string} announcementId - ID allotted to the announcement.
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @typedef DeleteBlogParam
|
|
75
|
+
* @property {string} id - ID allotted to the blog.
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @typedef DeleteDataLoaderParam
|
|
80
|
+
* @property {string} dataLoaderId - ID allotted to the data loader.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @typedef DeleteFaqParam
|
|
85
|
+
* @property {string} categoryId - ID allotted to an FAQ category.
|
|
86
|
+
* @property {string} faqId - ID allotted to an FAQ.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @typedef DeleteFaqCategoryParam
|
|
91
|
+
* @property {string} id - ID allotted to an FAQ category.
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @typedef DeleteLandingPageParam
|
|
96
|
+
* @property {string} id - ID allotted to a landing page.
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @typedef DeleteNavigationParam
|
|
101
|
+
* @property {string} id - ID allotted to the navigation.
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @typedef DeletePageParam
|
|
106
|
+
* @property {string} id - ID allotted to the page.
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @typedef DeletePathRedirectionRulesParam
|
|
111
|
+
* @property {string} pathId - ID allotted to the path redirection rule.
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @typedef DeleteSlideshowParam
|
|
116
|
+
* @property {string} id - ID allotted to the slideshow.
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @typedef EditDataLoaderParam
|
|
121
|
+
* @property {string} dataLoaderId - ID allotted to the data loader.
|
|
122
|
+
* @property {ContentPlatformModel.DataLoaderSchema} body
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @typedef EditInjectableTagParam
|
|
127
|
+
* @property {string} tagId - ID allotted to the tag.
|
|
128
|
+
* @property {ContentPlatformModel.UpdateHandpickedSchema} body
|
|
129
|
+
*/
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @typedef GenerateSEOTitleParam
|
|
133
|
+
* @property {ContentPlatformModel.GenerationEntityType} type - String
|
|
134
|
+
* representing the type of SEO content to be generated. Possible values are:
|
|
135
|
+
* title, description
|
|
136
|
+
* @property {ContentPlatformModel.GenerateSEOContent} body
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @typedef GetAnnouncementByIdParam
|
|
141
|
+
* @property {string} announcementId - ID allotted to the announcement.
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @typedef GetAnnouncementsListParam
|
|
146
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
147
|
+
* set of results. Default value is 1.
|
|
148
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
149
|
+
* Default value is 10.
|
|
150
|
+
*/
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @typedef GetBlogBySlugParam
|
|
154
|
+
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
155
|
+
* a blog page. You can get slug value of a blog from `getBlogs` API.
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @typedef GetBlogsParam
|
|
160
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
161
|
+
* set of results. Default value is 1.
|
|
162
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
163
|
+
* Default value is 10.
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @typedef GetComponentByIdParam
|
|
168
|
+
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
169
|
+
* a blog page. You can get slug value of a blog from `getBlogs` API.
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
/** @typedef GetDataLoadersParam */
|
|
173
|
+
|
|
174
|
+
/** @typedef GetDefaultNavigationsParam */
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @typedef GetFaqByIdOrSlugParam
|
|
178
|
+
* @property {string} idOrSlug - ID or the slug allotted to an FAQ category.
|
|
179
|
+
* Slug is a short, human-readable, URL-friendly identifier of an object. You
|
|
180
|
+
* can get slug value of an FAQ category from `getFaqCategories` API.
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
/** @typedef GetFaqCategoriesParam */
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @typedef GetFaqCategoryBySlugOrIdParam
|
|
187
|
+
* @property {string} idOrSlug - ID or the slug allotted to an FAQ category.
|
|
188
|
+
* Slug is a short, human-readable, URL-friendly identifier of an object. You
|
|
189
|
+
* can get slug value of an FAQ category from `getFaqCategories` API.
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @typedef GetFaqsByCategoryIdOrSlugParam
|
|
194
|
+
* @property {string} idOrSlug - ID or the slug allotted to an FAQ category.
|
|
195
|
+
* Slug is a short, human-readable, URL-friendly identifier of an object. You
|
|
196
|
+
* can get slug value of an FAQ category from `getFaqCategories` API.
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
/** @typedef GetInjectableTagsParam */
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @typedef GetLandingPagesParam
|
|
203
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
204
|
+
* set of results. Default value is 1.
|
|
205
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
206
|
+
* Default value is 10.
|
|
207
|
+
*/
|
|
208
|
+
|
|
209
|
+
/** @typedef GetLegalInformationParam */
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @typedef GetNavigationBySlugParam
|
|
213
|
+
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
214
|
+
* a navigation. You can get slug value of a navigation from `getNavigations` API.
|
|
215
|
+
* @property {string} devicePlatform - Filter navigations by platform.
|
|
216
|
+
* Acceptable values are: web, android, ios, all
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @typedef GetNavigationsParam
|
|
221
|
+
* @property {string} devicePlatform - Filter navigations by platform.
|
|
222
|
+
* Acceptable values are: web, android, ios, all
|
|
223
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
224
|
+
* set of results. Default value is 1.
|
|
225
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
226
|
+
* Default value is 10.
|
|
227
|
+
*/
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @typedef GetPageBySlugParam
|
|
231
|
+
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
232
|
+
* a page. You can get slug value of a page from `getPages` API.
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
/** @typedef GetPageMetaParam */
|
|
236
|
+
|
|
237
|
+
/** @typedef GetPageSpecParam */
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @typedef GetPagesParam
|
|
241
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
242
|
+
* set of results. Default value is 1.
|
|
243
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
244
|
+
* Default value is 10.
|
|
245
|
+
*/
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @typedef GetPathRedirectionRuleParam
|
|
249
|
+
* @property {string} pathId - ID allotted to the path redirection rule.
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @typedef GetPathRedirectionRulesParam
|
|
254
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
255
|
+
* Default value is 5.
|
|
256
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
257
|
+
* set of results. Default value is 1.
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
/** @typedef GetSEOConfigurationParam */
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @typedef GetSlideshowBySlugParam
|
|
264
|
+
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
265
|
+
* a slideshow. You can get slug value of a page from `getSlideshows` API.
|
|
266
|
+
* @property {string} devicePlatform - Filter slideshows by platform. Acceptable
|
|
267
|
+
* values are: web, android, ios and all
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @typedef GetSlideshowsParam
|
|
272
|
+
* @property {string} devicePlatform - Filter slideshows by platform. Acceptable
|
|
273
|
+
* values are: web, android, ios and all
|
|
274
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
275
|
+
* set of results. Default value is 1.
|
|
276
|
+
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
277
|
+
* Default value is 10.
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
/** @typedef GetSupportInformationParam */
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @typedef RemoveInjectableTagParam
|
|
284
|
+
* @property {ContentPlatformModel.RemoveHandpickedSchema} body
|
|
285
|
+
*/
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @typedef ResetDataLoaderParam
|
|
289
|
+
* @property {string} service - Name of service.
|
|
290
|
+
* @property {string} operationId - Name of operation id of the service.
|
|
291
|
+
*/
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @typedef SelectDataLoaderParam
|
|
295
|
+
* @property {string} dataLoaderId - ID allotted to the data loader.
|
|
296
|
+
*/
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @typedef UpdateAnnouncementParam
|
|
300
|
+
* @property {string} announcementId - ID allotted to the announcement.
|
|
301
|
+
* @property {ContentPlatformModel.AdminAnnouncementSchema} body
|
|
302
|
+
*/
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* @typedef UpdateAnnouncementScheduleParam
|
|
306
|
+
* @property {string} announcementId - ID allotted to the announcement.
|
|
307
|
+
* @property {ContentPlatformModel.ScheduleSchema} body
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @typedef UpdateBlogParam
|
|
312
|
+
* @property {string} id - ID allotted to the blog.
|
|
313
|
+
* @property {ContentPlatformModel.BlogRequest} body
|
|
314
|
+
*/
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* @typedef UpdateFaqParam
|
|
318
|
+
* @property {string} categoryId - ID allotted to an FAQ category.
|
|
319
|
+
* @property {string} faqId - ID allotted to an FAQ.
|
|
320
|
+
* @property {ContentPlatformModel.CreateFaqSchema} body
|
|
321
|
+
*/
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @typedef UpdateFaqCategoryParam
|
|
325
|
+
* @property {string} id - ID allotted to an FAQ category.
|
|
326
|
+
* @property {ContentPlatformModel.UpdateFaqCategoryRequestSchema} body
|
|
327
|
+
*/
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* @typedef UpdateInjectableTagParam
|
|
331
|
+
* @property {ContentPlatformModel.CreateTagRequestSchema} body
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* @typedef UpdateLandingPageParam
|
|
336
|
+
* @property {string} id - ID allotted to a landing page.
|
|
337
|
+
* @property {ContentPlatformModel.LandingPageSchema} body
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* @typedef UpdateLegalInformationParam
|
|
342
|
+
* @property {ContentPlatformModel.ApplicationLegal} body
|
|
343
|
+
*/
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* @typedef UpdateNavigationParam
|
|
347
|
+
* @property {string} id - ID allotted to the navigation.
|
|
348
|
+
* @property {ContentPlatformModel.NavigationRequest} body
|
|
349
|
+
*/
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @typedef UpdatePageParam
|
|
353
|
+
* @property {string} id - ID allotted to the page.
|
|
354
|
+
* @property {ContentPlatformModel.PageSchema} body
|
|
355
|
+
*/
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* @typedef UpdatePagePreviewParam
|
|
359
|
+
* @property {string} slug - A short, human-readable, URL-friendly identifier of
|
|
360
|
+
* a page. You can get slug value of a page from `getPages` API.
|
|
361
|
+
* @property {ContentPlatformModel.PagePublishRequest} body
|
|
362
|
+
*/
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* @typedef UpdatePathRedirectionRulesParam
|
|
366
|
+
* @property {string} pathId - ID allotted to the path redirection rule.
|
|
367
|
+
* @property {ContentPlatformModel.PathMappingSchema} body
|
|
368
|
+
*/
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* @typedef UpdateSEOConfigurationParam
|
|
372
|
+
* @property {ContentPlatformModel.SeoComponent} body
|
|
373
|
+
*/
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* @typedef UpdateSlideshowParam
|
|
377
|
+
* @property {string} id - ID allotted to the slideshow.
|
|
378
|
+
* @property {ContentPlatformModel.SlideshowRequest} body
|
|
379
|
+
*/
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @typedef UpdateSupportInformationParam
|
|
383
|
+
* @property {ContentPlatformModel.Support} body
|
|
384
|
+
*/
|
|
385
|
+
|
|
386
|
+
class ContentPlatformApplicationValidator {
|
|
387
|
+
/** @returns {AddDataLoaderParam} */
|
|
5
388
|
static addDataLoader() {
|
|
6
389
|
return Joi.object({
|
|
7
|
-
body:
|
|
390
|
+
body: ContentPlatformModel.DataLoaderSchema().required(),
|
|
8
391
|
}).required();
|
|
9
392
|
}
|
|
10
393
|
|
|
394
|
+
/** @returns {AddFaqParam} */
|
|
11
395
|
static addFaq() {
|
|
12
396
|
return Joi.object({
|
|
13
397
|
categoryId: Joi.string().allow("").required(),
|
|
14
|
-
body:
|
|
398
|
+
body: ContentPlatformModel.CreateFaqSchema().required(),
|
|
15
399
|
}).required();
|
|
16
400
|
}
|
|
17
401
|
|
|
402
|
+
/** @returns {AddInjectableTagParam} */
|
|
18
403
|
static addInjectableTag() {
|
|
19
404
|
return Joi.object({
|
|
20
|
-
body:
|
|
405
|
+
body: ContentPlatformModel.CreateTagRequestSchema().required(),
|
|
21
406
|
}).required();
|
|
22
407
|
}
|
|
23
408
|
|
|
409
|
+
/** @returns {AddPathRedirectionRulesParam} */
|
|
24
410
|
static addPathRedirectionRules() {
|
|
25
411
|
return Joi.object({
|
|
26
|
-
body:
|
|
412
|
+
body: ContentPlatformModel.PathMappingSchema().required(),
|
|
27
413
|
}).required();
|
|
28
414
|
}
|
|
29
415
|
|
|
416
|
+
/** @returns {CreateAnnouncementParam} */
|
|
30
417
|
static createAnnouncement() {
|
|
31
418
|
return Joi.object({
|
|
32
|
-
body:
|
|
419
|
+
body: ContentPlatformModel.AdminAnnouncementSchema().required(),
|
|
33
420
|
}).required();
|
|
34
421
|
}
|
|
35
422
|
|
|
423
|
+
/** @returns {CreateBlogParam} */
|
|
36
424
|
static createBlog() {
|
|
37
425
|
return Joi.object({
|
|
38
|
-
body:
|
|
426
|
+
body: ContentPlatformModel.BlogRequest().required(),
|
|
39
427
|
}).required();
|
|
40
428
|
}
|
|
41
429
|
|
|
430
|
+
/** @returns {CreateFaqCategoryParam} */
|
|
42
431
|
static createFaqCategory() {
|
|
43
432
|
return Joi.object({
|
|
44
|
-
body:
|
|
433
|
+
body: ContentPlatformModel.CreateFaqCategoryRequestSchema().required(),
|
|
45
434
|
}).required();
|
|
46
435
|
}
|
|
47
436
|
|
|
437
|
+
/** @returns {CreateLandingPageParam} */
|
|
48
438
|
static createLandingPage() {
|
|
49
439
|
return Joi.object({
|
|
50
|
-
body:
|
|
440
|
+
body: ContentPlatformModel.LandingPageSchema().required(),
|
|
51
441
|
}).required();
|
|
52
442
|
}
|
|
53
443
|
|
|
444
|
+
/** @returns {CreateNavigationParam} */
|
|
54
445
|
static createNavigation() {
|
|
55
446
|
return Joi.object({
|
|
56
|
-
body:
|
|
447
|
+
body: ContentPlatformModel.NavigationRequest().required(),
|
|
57
448
|
}).required();
|
|
58
449
|
}
|
|
59
450
|
|
|
451
|
+
/** @returns {CreatePageParam} */
|
|
60
452
|
static createPage() {
|
|
61
453
|
return Joi.object({
|
|
62
|
-
body:
|
|
454
|
+
body: ContentPlatformModel.PageRequest().required(),
|
|
63
455
|
}).required();
|
|
64
456
|
}
|
|
65
457
|
|
|
458
|
+
/** @returns {CreatePagePreviewParam} */
|
|
66
459
|
static createPagePreview() {
|
|
67
460
|
return Joi.object({
|
|
68
|
-
body:
|
|
461
|
+
body: ContentPlatformModel.PageRequest().required(),
|
|
69
462
|
}).required();
|
|
70
463
|
}
|
|
71
464
|
|
|
465
|
+
/** @returns {CreateSlideshowParam} */
|
|
72
466
|
static createSlideshow() {
|
|
73
467
|
return Joi.object({
|
|
74
|
-
body:
|
|
468
|
+
body: ContentPlatformModel.SlideshowRequest().required(),
|
|
75
469
|
}).required();
|
|
76
470
|
}
|
|
77
471
|
|
|
472
|
+
/** @returns {DeleteAllInjectableTagsParam} */
|
|
78
473
|
static deleteAllInjectableTags() {
|
|
79
474
|
return Joi.object({}).required();
|
|
80
475
|
}
|
|
81
476
|
|
|
477
|
+
/** @returns {DeleteAnnouncementParam} */
|
|
82
478
|
static deleteAnnouncement() {
|
|
83
479
|
return Joi.object({
|
|
84
480
|
announcementId: Joi.string().allow("").required(),
|
|
85
481
|
}).required();
|
|
86
482
|
}
|
|
87
483
|
|
|
484
|
+
/** @returns {DeleteBlogParam} */
|
|
88
485
|
static deleteBlog() {
|
|
89
486
|
return Joi.object({
|
|
90
487
|
id: Joi.string().allow("").required(),
|
|
91
488
|
}).required();
|
|
92
489
|
}
|
|
93
490
|
|
|
491
|
+
/** @returns {DeleteDataLoaderParam} */
|
|
94
492
|
static deleteDataLoader() {
|
|
95
493
|
return Joi.object({
|
|
96
494
|
dataLoaderId: Joi.string().allow("").required(),
|
|
97
495
|
}).required();
|
|
98
496
|
}
|
|
99
497
|
|
|
498
|
+
/** @returns {DeleteFaqParam} */
|
|
100
499
|
static deleteFaq() {
|
|
101
500
|
return Joi.object({
|
|
102
501
|
categoryId: Joi.string().allow("").required(),
|
|
@@ -104,69 +503,80 @@ class ContentValidator {
|
|
|
104
503
|
}).required();
|
|
105
504
|
}
|
|
106
505
|
|
|
506
|
+
/** @returns {DeleteFaqCategoryParam} */
|
|
107
507
|
static deleteFaqCategory() {
|
|
108
508
|
return Joi.object({
|
|
109
509
|
id: Joi.string().allow("").required(),
|
|
110
510
|
}).required();
|
|
111
511
|
}
|
|
112
512
|
|
|
513
|
+
/** @returns {DeleteLandingPageParam} */
|
|
113
514
|
static deleteLandingPage() {
|
|
114
515
|
return Joi.object({
|
|
115
516
|
id: Joi.string().allow("").required(),
|
|
116
517
|
}).required();
|
|
117
518
|
}
|
|
118
519
|
|
|
520
|
+
/** @returns {DeleteNavigationParam} */
|
|
119
521
|
static deleteNavigation() {
|
|
120
522
|
return Joi.object({
|
|
121
523
|
id: Joi.string().allow("").required(),
|
|
122
524
|
}).required();
|
|
123
525
|
}
|
|
124
526
|
|
|
527
|
+
/** @returns {DeletePageParam} */
|
|
125
528
|
static deletePage() {
|
|
126
529
|
return Joi.object({
|
|
127
530
|
id: Joi.string().allow("").required(),
|
|
128
531
|
}).required();
|
|
129
532
|
}
|
|
130
533
|
|
|
534
|
+
/** @returns {DeletePathRedirectionRulesParam} */
|
|
131
535
|
static deletePathRedirectionRules() {
|
|
132
536
|
return Joi.object({
|
|
133
537
|
pathId: Joi.string().allow("").required(),
|
|
134
538
|
}).required();
|
|
135
539
|
}
|
|
136
540
|
|
|
541
|
+
/** @returns {DeleteSlideshowParam} */
|
|
137
542
|
static deleteSlideshow() {
|
|
138
543
|
return Joi.object({
|
|
139
544
|
id: Joi.string().allow("").required(),
|
|
140
545
|
}).required();
|
|
141
546
|
}
|
|
142
547
|
|
|
548
|
+
/** @returns {EditDataLoaderParam} */
|
|
143
549
|
static editDataLoader() {
|
|
144
550
|
return Joi.object({
|
|
145
551
|
dataLoaderId: Joi.string().allow("").required(),
|
|
146
|
-
body:
|
|
552
|
+
body: ContentPlatformModel.DataLoaderSchema().required(),
|
|
147
553
|
}).required();
|
|
148
554
|
}
|
|
149
555
|
|
|
556
|
+
/** @returns {EditInjectableTagParam} */
|
|
150
557
|
static editInjectableTag() {
|
|
151
558
|
return Joi.object({
|
|
152
559
|
tagId: Joi.string().allow("").required(),
|
|
153
|
-
body:
|
|
560
|
+
body: ContentPlatformModel.UpdateHandpickedSchema().required(),
|
|
154
561
|
}).required();
|
|
155
562
|
}
|
|
156
563
|
|
|
564
|
+
/** @returns {GenerateSEOTitleParam} */
|
|
157
565
|
static generateSEOTitle() {
|
|
158
566
|
return Joi.object({
|
|
159
|
-
type:
|
|
160
|
-
body:
|
|
567
|
+
type: ContentPlatformModel.GenerationEntityType().required(),
|
|
568
|
+
body: ContentPlatformModel.GenerateSEOContent().required(),
|
|
161
569
|
}).required();
|
|
162
570
|
}
|
|
163
571
|
|
|
572
|
+
/** @returns {GetAnnouncementByIdParam} */
|
|
164
573
|
static getAnnouncementById() {
|
|
165
574
|
return Joi.object({
|
|
166
575
|
announcementId: Joi.string().allow("").required(),
|
|
167
576
|
}).required();
|
|
168
577
|
}
|
|
169
578
|
|
|
579
|
+
/** @returns {GetAnnouncementsListParam} */
|
|
170
580
|
static getAnnouncementsList() {
|
|
171
581
|
return Joi.object({
|
|
172
582
|
pageNo: Joi.number(),
|
|
@@ -174,12 +584,14 @@ class ContentValidator {
|
|
|
174
584
|
}).required();
|
|
175
585
|
}
|
|
176
586
|
|
|
587
|
+
/** @returns {GetBlogBySlugParam} */
|
|
177
588
|
static getBlogBySlug() {
|
|
178
589
|
return Joi.object({
|
|
179
590
|
slug: Joi.string().allow("").required(),
|
|
180
591
|
}).required();
|
|
181
592
|
}
|
|
182
593
|
|
|
594
|
+
/** @returns {GetBlogsParam} */
|
|
183
595
|
static getBlogs() {
|
|
184
596
|
return Joi.object({
|
|
185
597
|
pageNo: Joi.number(),
|
|
@@ -187,46 +599,55 @@ class ContentValidator {
|
|
|
187
599
|
}).required();
|
|
188
600
|
}
|
|
189
601
|
|
|
602
|
+
/** @returns {GetComponentByIdParam} */
|
|
190
603
|
static getComponentById() {
|
|
191
604
|
return Joi.object({
|
|
192
605
|
slug: Joi.string().allow("").required(),
|
|
193
606
|
}).required();
|
|
194
607
|
}
|
|
195
608
|
|
|
609
|
+
/** @returns {GetDataLoadersParam} */
|
|
196
610
|
static getDataLoaders() {
|
|
197
611
|
return Joi.object({}).required();
|
|
198
612
|
}
|
|
199
613
|
|
|
614
|
+
/** @returns {GetDefaultNavigationsParam} */
|
|
200
615
|
static getDefaultNavigations() {
|
|
201
616
|
return Joi.object({}).required();
|
|
202
617
|
}
|
|
203
618
|
|
|
619
|
+
/** @returns {GetFaqByIdOrSlugParam} */
|
|
204
620
|
static getFaqByIdOrSlug() {
|
|
205
621
|
return Joi.object({
|
|
206
622
|
idOrSlug: Joi.string().allow("").required(),
|
|
207
623
|
}).required();
|
|
208
624
|
}
|
|
209
625
|
|
|
626
|
+
/** @returns {GetFaqCategoriesParam} */
|
|
210
627
|
static getFaqCategories() {
|
|
211
628
|
return Joi.object({}).required();
|
|
212
629
|
}
|
|
213
630
|
|
|
631
|
+
/** @returns {GetFaqCategoryBySlugOrIdParam} */
|
|
214
632
|
static getFaqCategoryBySlugOrId() {
|
|
215
633
|
return Joi.object({
|
|
216
634
|
idOrSlug: Joi.string().allow("").required(),
|
|
217
635
|
}).required();
|
|
218
636
|
}
|
|
219
637
|
|
|
638
|
+
/** @returns {GetFaqsByCategoryIdOrSlugParam} */
|
|
220
639
|
static getFaqsByCategoryIdOrSlug() {
|
|
221
640
|
return Joi.object({
|
|
222
641
|
idOrSlug: Joi.string().allow("").required(),
|
|
223
642
|
}).required();
|
|
224
643
|
}
|
|
225
644
|
|
|
645
|
+
/** @returns {GetInjectableTagsParam} */
|
|
226
646
|
static getInjectableTags() {
|
|
227
647
|
return Joi.object({}).required();
|
|
228
648
|
}
|
|
229
649
|
|
|
650
|
+
/** @returns {GetLandingPagesParam} */
|
|
230
651
|
static getLandingPages() {
|
|
231
652
|
return Joi.object({
|
|
232
653
|
pageNo: Joi.number(),
|
|
@@ -234,10 +655,12 @@ class ContentValidator {
|
|
|
234
655
|
}).required();
|
|
235
656
|
}
|
|
236
657
|
|
|
658
|
+
/** @returns {GetLegalInformationParam} */
|
|
237
659
|
static getLegalInformation() {
|
|
238
660
|
return Joi.object({}).required();
|
|
239
661
|
}
|
|
240
662
|
|
|
663
|
+
/** @returns {GetNavigationBySlugParam} */
|
|
241
664
|
static getNavigationBySlug() {
|
|
242
665
|
return Joi.object({
|
|
243
666
|
slug: Joi.string().allow("").required(),
|
|
@@ -245,6 +668,7 @@ class ContentValidator {
|
|
|
245
668
|
}).required();
|
|
246
669
|
}
|
|
247
670
|
|
|
671
|
+
/** @returns {GetNavigationsParam} */
|
|
248
672
|
static getNavigations() {
|
|
249
673
|
return Joi.object({
|
|
250
674
|
devicePlatform: Joi.string().allow("").required(),
|
|
@@ -253,20 +677,24 @@ class ContentValidator {
|
|
|
253
677
|
}).required();
|
|
254
678
|
}
|
|
255
679
|
|
|
680
|
+
/** @returns {GetPageBySlugParam} */
|
|
256
681
|
static getPageBySlug() {
|
|
257
682
|
return Joi.object({
|
|
258
683
|
slug: Joi.string().allow("").required(),
|
|
259
684
|
}).required();
|
|
260
685
|
}
|
|
261
686
|
|
|
687
|
+
/** @returns {GetPageMetaParam} */
|
|
262
688
|
static getPageMeta() {
|
|
263
689
|
return Joi.object({}).required();
|
|
264
690
|
}
|
|
265
691
|
|
|
692
|
+
/** @returns {GetPageSpecParam} */
|
|
266
693
|
static getPageSpec() {
|
|
267
694
|
return Joi.object({}).required();
|
|
268
695
|
}
|
|
269
696
|
|
|
697
|
+
/** @returns {GetPagesParam} */
|
|
270
698
|
static getPages() {
|
|
271
699
|
return Joi.object({
|
|
272
700
|
pageNo: Joi.number(),
|
|
@@ -274,12 +702,14 @@ class ContentValidator {
|
|
|
274
702
|
}).required();
|
|
275
703
|
}
|
|
276
704
|
|
|
705
|
+
/** @returns {GetPathRedirectionRuleParam} */
|
|
277
706
|
static getPathRedirectionRule() {
|
|
278
707
|
return Joi.object({
|
|
279
708
|
pathId: Joi.string().allow("").required(),
|
|
280
709
|
}).required();
|
|
281
710
|
}
|
|
282
711
|
|
|
712
|
+
/** @returns {GetPathRedirectionRulesParam} */
|
|
283
713
|
static getPathRedirectionRules() {
|
|
284
714
|
return Joi.object({
|
|
285
715
|
pageSize: Joi.number(),
|
|
@@ -287,10 +717,12 @@ class ContentValidator {
|
|
|
287
717
|
}).required();
|
|
288
718
|
}
|
|
289
719
|
|
|
720
|
+
/** @returns {GetSEOConfigurationParam} */
|
|
290
721
|
static getSEOConfiguration() {
|
|
291
722
|
return Joi.object({}).required();
|
|
292
723
|
}
|
|
293
724
|
|
|
725
|
+
/** @returns {GetSlideshowBySlugParam} */
|
|
294
726
|
static getSlideshowBySlug() {
|
|
295
727
|
return Joi.object({
|
|
296
728
|
slug: Joi.string().allow("").required(),
|
|
@@ -298,6 +730,7 @@ class ContentValidator {
|
|
|
298
730
|
}).required();
|
|
299
731
|
}
|
|
300
732
|
|
|
733
|
+
/** @returns {GetSlideshowsParam} */
|
|
301
734
|
static getSlideshows() {
|
|
302
735
|
return Joi.object({
|
|
303
736
|
devicePlatform: Joi.string().allow("").required(),
|
|
@@ -306,16 +739,19 @@ class ContentValidator {
|
|
|
306
739
|
}).required();
|
|
307
740
|
}
|
|
308
741
|
|
|
742
|
+
/** @returns {GetSupportInformationParam} */
|
|
309
743
|
static getSupportInformation() {
|
|
310
744
|
return Joi.object({}).required();
|
|
311
745
|
}
|
|
312
746
|
|
|
747
|
+
/** @returns {RemoveInjectableTagParam} */
|
|
313
748
|
static removeInjectableTag() {
|
|
314
749
|
return Joi.object({
|
|
315
|
-
body:
|
|
750
|
+
body: ContentPlatformModel.RemoveHandpickedSchema().required(),
|
|
316
751
|
}).required();
|
|
317
752
|
}
|
|
318
753
|
|
|
754
|
+
/** @returns {ResetDataLoaderParam} */
|
|
319
755
|
static resetDataLoader() {
|
|
320
756
|
return Joi.object({
|
|
321
757
|
service: Joi.string().allow("").required(),
|
|
@@ -323,113 +759,129 @@ class ContentValidator {
|
|
|
323
759
|
}).required();
|
|
324
760
|
}
|
|
325
761
|
|
|
762
|
+
/** @returns {SelectDataLoaderParam} */
|
|
326
763
|
static selectDataLoader() {
|
|
327
764
|
return Joi.object({
|
|
328
765
|
dataLoaderId: Joi.string().allow("").required(),
|
|
329
766
|
}).required();
|
|
330
767
|
}
|
|
331
768
|
|
|
769
|
+
/** @returns {UpdateAnnouncementParam} */
|
|
332
770
|
static updateAnnouncement() {
|
|
333
771
|
return Joi.object({
|
|
334
772
|
announcementId: Joi.string().allow("").required(),
|
|
335
|
-
body:
|
|
773
|
+
body: ContentPlatformModel.AdminAnnouncementSchema().required(),
|
|
336
774
|
}).required();
|
|
337
775
|
}
|
|
338
776
|
|
|
777
|
+
/** @returns {UpdateAnnouncementScheduleParam} */
|
|
339
778
|
static updateAnnouncementSchedule() {
|
|
340
779
|
return Joi.object({
|
|
341
780
|
announcementId: Joi.string().allow("").required(),
|
|
342
|
-
body:
|
|
781
|
+
body: ContentPlatformModel.ScheduleSchema().required(),
|
|
343
782
|
}).required();
|
|
344
783
|
}
|
|
345
784
|
|
|
785
|
+
/** @returns {UpdateBlogParam} */
|
|
346
786
|
static updateBlog() {
|
|
347
787
|
return Joi.object({
|
|
348
788
|
id: Joi.string().allow("").required(),
|
|
349
|
-
body:
|
|
789
|
+
body: ContentPlatformModel.BlogRequest().required(),
|
|
350
790
|
}).required();
|
|
351
791
|
}
|
|
352
792
|
|
|
793
|
+
/** @returns {UpdateFaqParam} */
|
|
353
794
|
static updateFaq() {
|
|
354
795
|
return Joi.object({
|
|
355
796
|
categoryId: Joi.string().allow("").required(),
|
|
356
797
|
faqId: Joi.string().allow("").required(),
|
|
357
|
-
body:
|
|
798
|
+
body: ContentPlatformModel.CreateFaqSchema().required(),
|
|
358
799
|
}).required();
|
|
359
800
|
}
|
|
360
801
|
|
|
802
|
+
/** @returns {UpdateFaqCategoryParam} */
|
|
361
803
|
static updateFaqCategory() {
|
|
362
804
|
return Joi.object({
|
|
363
805
|
id: Joi.string().allow("").required(),
|
|
364
|
-
body:
|
|
806
|
+
body: ContentPlatformModel.UpdateFaqCategoryRequestSchema().required(),
|
|
365
807
|
}).required();
|
|
366
808
|
}
|
|
367
809
|
|
|
810
|
+
/** @returns {UpdateInjectableTagParam} */
|
|
368
811
|
static updateInjectableTag() {
|
|
369
812
|
return Joi.object({
|
|
370
|
-
body:
|
|
813
|
+
body: ContentPlatformModel.CreateTagRequestSchema().required(),
|
|
371
814
|
}).required();
|
|
372
815
|
}
|
|
373
816
|
|
|
817
|
+
/** @returns {UpdateLandingPageParam} */
|
|
374
818
|
static updateLandingPage() {
|
|
375
819
|
return Joi.object({
|
|
376
820
|
id: Joi.string().allow("").required(),
|
|
377
|
-
body:
|
|
821
|
+
body: ContentPlatformModel.LandingPageSchema().required(),
|
|
378
822
|
}).required();
|
|
379
823
|
}
|
|
380
824
|
|
|
825
|
+
/** @returns {UpdateLegalInformationParam} */
|
|
381
826
|
static updateLegalInformation() {
|
|
382
827
|
return Joi.object({
|
|
383
|
-
body:
|
|
828
|
+
body: ContentPlatformModel.ApplicationLegal().required(),
|
|
384
829
|
}).required();
|
|
385
830
|
}
|
|
386
831
|
|
|
832
|
+
/** @returns {UpdateNavigationParam} */
|
|
387
833
|
static updateNavigation() {
|
|
388
834
|
return Joi.object({
|
|
389
835
|
id: Joi.string().allow("").required(),
|
|
390
|
-
body:
|
|
836
|
+
body: ContentPlatformModel.NavigationRequest().required(),
|
|
391
837
|
}).required();
|
|
392
838
|
}
|
|
393
839
|
|
|
840
|
+
/** @returns {UpdatePageParam} */
|
|
394
841
|
static updatePage() {
|
|
395
842
|
return Joi.object({
|
|
396
843
|
id: Joi.string().allow("").required(),
|
|
397
|
-
body:
|
|
844
|
+
body: ContentPlatformModel.PageSchema().required(),
|
|
398
845
|
}).required();
|
|
399
846
|
}
|
|
400
847
|
|
|
848
|
+
/** @returns {UpdatePagePreviewParam} */
|
|
401
849
|
static updatePagePreview() {
|
|
402
850
|
return Joi.object({
|
|
403
851
|
slug: Joi.string().allow("").required(),
|
|
404
|
-
body:
|
|
852
|
+
body: ContentPlatformModel.PagePublishRequest().required(),
|
|
405
853
|
}).required();
|
|
406
854
|
}
|
|
407
855
|
|
|
856
|
+
/** @returns {UpdatePathRedirectionRulesParam} */
|
|
408
857
|
static updatePathRedirectionRules() {
|
|
409
858
|
return Joi.object({
|
|
410
859
|
pathId: Joi.string().allow("").required(),
|
|
411
|
-
body:
|
|
860
|
+
body: ContentPlatformModel.PathMappingSchema().required(),
|
|
412
861
|
}).required();
|
|
413
862
|
}
|
|
414
863
|
|
|
864
|
+
/** @returns {UpdateSEOConfigurationParam} */
|
|
415
865
|
static updateSEOConfiguration() {
|
|
416
866
|
return Joi.object({
|
|
417
|
-
body:
|
|
867
|
+
body: ContentPlatformModel.SeoComponent().required(),
|
|
418
868
|
}).required();
|
|
419
869
|
}
|
|
420
870
|
|
|
871
|
+
/** @returns {UpdateSlideshowParam} */
|
|
421
872
|
static updateSlideshow() {
|
|
422
873
|
return Joi.object({
|
|
423
874
|
id: Joi.string().allow("").required(),
|
|
424
|
-
body:
|
|
875
|
+
body: ContentPlatformModel.SlideshowRequest().required(),
|
|
425
876
|
}).required();
|
|
426
877
|
}
|
|
427
878
|
|
|
879
|
+
/** @returns {UpdateSupportInformationParam} */
|
|
428
880
|
static updateSupportInformation() {
|
|
429
881
|
return Joi.object({
|
|
430
|
-
body:
|
|
882
|
+
body: ContentPlatformModel.Support().required(),
|
|
431
883
|
}).required();
|
|
432
884
|
}
|
|
433
885
|
}
|
|
434
886
|
|
|
435
|
-
module.exports =
|
|
887
|
+
module.exports = ContentPlatformApplicationValidator;
|