@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,30 +1,370 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @typedef AddThemeRequestSchema
|
|
5
|
+
* @property {string} [theme_id]
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @typedef AllAvailablePageSchema
|
|
10
|
+
* @property {AvailablePageSchema[]} [pages]
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @typedef AssetsSchema
|
|
15
|
+
* @property {CommonJs} [common_js]
|
|
16
|
+
* @property {Css} [css]
|
|
17
|
+
* @property {UmdJs} [umd_js]
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @typedef AvailablePagePredicate
|
|
22
|
+
* @property {AvailablePageRoutePredicate} [route]
|
|
23
|
+
* @property {AvailablePageScreenPredicate} [screen]
|
|
24
|
+
* @property {AvailablePageUserPredicate} [user]
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @typedef AvailablePageRoutePredicate
|
|
29
|
+
* @property {string} [exact_url]
|
|
30
|
+
* @property {Object} [query]
|
|
31
|
+
* @property {string} [selected]
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @typedef AvailablePageSchema
|
|
36
|
+
* @property {string} [_id]
|
|
37
|
+
* @property {string} [path]
|
|
38
|
+
* @property {Object[]} [props]
|
|
39
|
+
* @property {AvailablePageSchemaSections[]} [sections]
|
|
40
|
+
* @property {AvailablePageSectionMetaAttributes[]} [sections_meta]
|
|
41
|
+
* @property {AvailablePageSeo} [seo]
|
|
42
|
+
* @property {string} [text]
|
|
43
|
+
* @property {string} [theme]
|
|
44
|
+
* @property {string} [type]
|
|
45
|
+
* @property {string} [value]
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @typedef AvailablePageSchemaSections
|
|
50
|
+
* @property {Object[]} [blocks]
|
|
51
|
+
* @property {string} [label]
|
|
52
|
+
* @property {string} [name]
|
|
53
|
+
* @property {AvailablePagePredicate} [predicate]
|
|
54
|
+
* @property {Object} [preset]
|
|
55
|
+
* @property {Object} [props]
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @typedef AvailablePageScreenPredicate
|
|
60
|
+
* @property {boolean} [desktop]
|
|
61
|
+
* @property {boolean} [mobile]
|
|
62
|
+
* @property {boolean} [tablet]
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @typedef AvailablePageSectionMetaAttributes
|
|
67
|
+
* @property {Object} [attributes]
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @typedef AvailablePageSeo
|
|
72
|
+
* @property {string} [_id]
|
|
73
|
+
* @property {string} [description]
|
|
74
|
+
* @property {string} [title]
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @typedef AvailablePageUserPredicate
|
|
79
|
+
* @property {boolean} [anonymous]
|
|
80
|
+
* @property {boolean} [authenticated]
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @typedef availableSectionSchema
|
|
85
|
+
* @property {Blocks[]} [blocks]
|
|
86
|
+
* @property {string} [label]
|
|
87
|
+
* @property {string} [name]
|
|
88
|
+
* @property {BlocksProps[]} [props]
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @typedef BlitzkriegApiErrorSchema
|
|
93
|
+
* @property {string} [message]
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @typedef BlitzkriegInternalServerErrorSchema
|
|
98
|
+
* @property {string} [message]
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @typedef BlitzkriegNotFoundSchema
|
|
103
|
+
* @property {string} [message]
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @typedef Blocks
|
|
108
|
+
* @property {string} [name]
|
|
109
|
+
* @property {BlocksProps[]} [props]
|
|
110
|
+
* @property {string} [type]
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @typedef BlocksProps
|
|
115
|
+
* @property {string} [id]
|
|
116
|
+
* @property {string} [label]
|
|
117
|
+
* @property {string} [type]
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @typedef Bold
|
|
122
|
+
* @property {string} [file]
|
|
123
|
+
* @property {string} [name]
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @typedef Colors
|
|
128
|
+
* @property {string} [accent_color]
|
|
129
|
+
* @property {string} [bg_color]
|
|
130
|
+
* @property {string} [button_secondary_color]
|
|
131
|
+
* @property {string} [link_color]
|
|
132
|
+
* @property {string} [primary_color]
|
|
133
|
+
* @property {string} [secondary_color]
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @typedef CommonJs
|
|
138
|
+
* @property {string} [link]
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @typedef Config
|
|
143
|
+
* @property {string} [current]
|
|
144
|
+
* @property {GlobalSchema} [global_schema]
|
|
145
|
+
* @property {ListSchemaItem[]} [list]
|
|
146
|
+
* @property {Preset} [preset]
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @typedef ConfigPage
|
|
151
|
+
* @property {string} [page]
|
|
152
|
+
* @property {Object} [settings]
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @typedef Css
|
|
157
|
+
* @property {string} [link]
|
|
158
|
+
* @property {string[]} [links]
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @typedef Custom
|
|
163
|
+
* @property {Object} [props]
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @typedef Font
|
|
168
|
+
* @property {string} [family]
|
|
169
|
+
* @property {Variants} [variants]
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @typedef FontsSchema
|
|
174
|
+
* @property {FontsSchemaItems} [items]
|
|
175
|
+
* @property {string} [kind]
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @typedef FontsSchemaItems
|
|
180
|
+
* @property {string} [category]
|
|
181
|
+
* @property {string} [family]
|
|
182
|
+
* @property {FontsSchemaItemsFiles} [files]
|
|
183
|
+
* @property {string} [kind]
|
|
184
|
+
* @property {string} [last_modified]
|
|
185
|
+
* @property {string[]} [subsets]
|
|
186
|
+
* @property {string[]} [variants]
|
|
187
|
+
* @property {string} [version]
|
|
188
|
+
*/
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @typedef FontsSchemaItemsFiles
|
|
192
|
+
* @property {string} [bold]
|
|
193
|
+
* @property {string} [italic]
|
|
194
|
+
* @property {string} [regular]
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @typedef GlobalSchema
|
|
199
|
+
* @property {GlobalSchemaProps[]} [props]
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @typedef GlobalSchemaProps
|
|
204
|
+
* @property {string} [category]
|
|
205
|
+
* @property {string} [id]
|
|
206
|
+
* @property {string} [label]
|
|
207
|
+
* @property {string} [type]
|
|
208
|
+
*/
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* @typedef Images
|
|
212
|
+
* @property {string[]} [android]
|
|
213
|
+
* @property {string[]} [desktop]
|
|
214
|
+
* @property {string[]} [ios]
|
|
215
|
+
* @property {string[]} [thumbnail]
|
|
216
|
+
*/
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @typedef Information
|
|
220
|
+
* @property {string} [description]
|
|
221
|
+
* @property {string[]} [features]
|
|
222
|
+
* @property {Images} [images]
|
|
223
|
+
* @property {string} [name]
|
|
224
|
+
*/
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @typedef Light
|
|
228
|
+
* @property {string} [file]
|
|
229
|
+
* @property {string} [name]
|
|
230
|
+
*/
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @typedef ListSchemaItem
|
|
234
|
+
* @property {Object} [global_config]
|
|
235
|
+
* @property {string} [name]
|
|
236
|
+
* @property {ConfigPage[]} [page]
|
|
237
|
+
*/
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @typedef Medium
|
|
241
|
+
* @property {string} [file]
|
|
242
|
+
* @property {string} [name]
|
|
243
|
+
*/
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @typedef PaginationSchema
|
|
247
|
+
* @property {number} [current]
|
|
248
|
+
* @property {boolean} [has_next]
|
|
249
|
+
* @property {number} [item_total]
|
|
250
|
+
* @property {number} [size]
|
|
251
|
+
* @property {string} [type]
|
|
252
|
+
*/
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @typedef Preset
|
|
256
|
+
* @property {AvailablePageSchema[]} [pages]
|
|
257
|
+
*/
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @typedef Regular
|
|
261
|
+
* @property {string} [file]
|
|
262
|
+
* @property {string} [name]
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @typedef Sections
|
|
267
|
+
* @property {string} [attributes]
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @typedef SemiBold
|
|
272
|
+
* @property {string} [file]
|
|
273
|
+
* @property {string} [name]
|
|
274
|
+
*/
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @typedef Src
|
|
278
|
+
* @property {string} [link]
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @typedef ThemesListingResponseSchema
|
|
283
|
+
* @property {ThemesSchema[]} [items]
|
|
284
|
+
* @property {PaginationSchema} [page]
|
|
285
|
+
*/
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @typedef ThemesSchema
|
|
289
|
+
* @property {number} [__v]
|
|
290
|
+
* @property {string} [_id]
|
|
291
|
+
* @property {string} [application]
|
|
292
|
+
* @property {boolean} [applied]
|
|
293
|
+
* @property {boolean} [archived]
|
|
294
|
+
* @property {AssetsSchema} [assets]
|
|
295
|
+
* @property {availableSectionSchema[]} [available_sections]
|
|
296
|
+
* @property {Colors} [colors]
|
|
297
|
+
* @property {Config} [config]
|
|
298
|
+
* @property {string} [created_at]
|
|
299
|
+
* @property {boolean} [customized]
|
|
300
|
+
* @property {Font} [font]
|
|
301
|
+
* @property {Information} [information]
|
|
302
|
+
* @property {string} [parent_theme]
|
|
303
|
+
* @property {string} [parent_theme_version]
|
|
304
|
+
* @property {boolean} [published]
|
|
305
|
+
* @property {Src} [src]
|
|
306
|
+
* @property {Object} [styles]
|
|
307
|
+
* @property {string[]} [tags]
|
|
308
|
+
* @property {string} [updated_at]
|
|
309
|
+
* @property {string} [version]
|
|
310
|
+
*/
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* @typedef UmdJs
|
|
314
|
+
* @property {string} [link]
|
|
315
|
+
* @property {string[]} [links]
|
|
316
|
+
*/
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* @typedef UpgradableThemeSchema
|
|
320
|
+
* @property {string} [applied_theme]
|
|
321
|
+
* @property {string} [parent_theme]
|
|
322
|
+
* @property {boolean} [upgrade]
|
|
323
|
+
*/
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* @typedef Variants
|
|
327
|
+
* @property {Bold} [bold]
|
|
328
|
+
* @property {Light} [light]
|
|
329
|
+
* @property {Medium} [medium]
|
|
330
|
+
* @property {Regular} [regular]
|
|
331
|
+
* @property {SemiBold} [semi_bold]
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
class ThemePlatformModel {
|
|
335
|
+
/** @returns {AddThemeRequestSchema} */
|
|
4
336
|
static AddThemeRequestSchema() {
|
|
5
337
|
return Joi.object({
|
|
6
338
|
theme_id: Joi.string().allow(""),
|
|
7
339
|
});
|
|
8
340
|
}
|
|
341
|
+
|
|
342
|
+
/** @returns {AllAvailablePageSchema} */
|
|
9
343
|
static AllAvailablePageSchema() {
|
|
10
344
|
return Joi.object({
|
|
11
|
-
pages: Joi.array().items(
|
|
345
|
+
pages: Joi.array().items(ThemePlatformModel.AvailablePageSchema()),
|
|
12
346
|
});
|
|
13
347
|
}
|
|
348
|
+
|
|
349
|
+
/** @returns {AssetsSchema} */
|
|
14
350
|
static AssetsSchema() {
|
|
15
351
|
return Joi.object({
|
|
16
|
-
common_js:
|
|
17
|
-
css:
|
|
18
|
-
umd_js:
|
|
352
|
+
common_js: ThemePlatformModel.CommonJs(),
|
|
353
|
+
css: ThemePlatformModel.Css(),
|
|
354
|
+
umd_js: ThemePlatformModel.UmdJs(),
|
|
19
355
|
});
|
|
20
356
|
}
|
|
357
|
+
|
|
358
|
+
/** @returns {AvailablePagePredicate} */
|
|
21
359
|
static AvailablePagePredicate() {
|
|
22
360
|
return Joi.object({
|
|
23
|
-
route:
|
|
24
|
-
screen:
|
|
25
|
-
user:
|
|
361
|
+
route: ThemePlatformModel.AvailablePageRoutePredicate(),
|
|
362
|
+
screen: ThemePlatformModel.AvailablePageScreenPredicate(),
|
|
363
|
+
user: ThemePlatformModel.AvailablePageUserPredicate(),
|
|
26
364
|
});
|
|
27
365
|
}
|
|
366
|
+
|
|
367
|
+
/** @returns {AvailablePageRoutePredicate} */
|
|
28
368
|
static AvailablePageRoutePredicate() {
|
|
29
369
|
return Joi.object({
|
|
30
370
|
exact_url: Joi.string().allow(""),
|
|
@@ -32,32 +372,40 @@ class ThemeModel {
|
|
|
32
372
|
selected: Joi.string().allow(""),
|
|
33
373
|
});
|
|
34
374
|
}
|
|
375
|
+
|
|
376
|
+
/** @returns {AvailablePageSchema} */
|
|
35
377
|
static AvailablePageSchema() {
|
|
36
378
|
return Joi.object({
|
|
37
379
|
_id: Joi.string().allow(""),
|
|
38
380
|
path: Joi.string().allow(""),
|
|
39
381
|
props: Joi.array().items(Joi.any()),
|
|
40
|
-
sections: Joi.array().items(
|
|
382
|
+
sections: Joi.array().items(
|
|
383
|
+
ThemePlatformModel.AvailablePageSchemaSections()
|
|
384
|
+
),
|
|
41
385
|
sections_meta: Joi.array().items(
|
|
42
|
-
|
|
386
|
+
ThemePlatformModel.AvailablePageSectionMetaAttributes()
|
|
43
387
|
),
|
|
44
|
-
seo:
|
|
388
|
+
seo: ThemePlatformModel.AvailablePageSeo(),
|
|
45
389
|
text: Joi.string().allow(""),
|
|
46
390
|
theme: Joi.string().allow(""),
|
|
47
391
|
type: Joi.string().allow(""),
|
|
48
392
|
value: Joi.string().allow(""),
|
|
49
393
|
});
|
|
50
394
|
}
|
|
395
|
+
|
|
396
|
+
/** @returns {AvailablePageSchemaSections} */
|
|
51
397
|
static AvailablePageSchemaSections() {
|
|
52
398
|
return Joi.object({
|
|
53
399
|
blocks: Joi.array().items(Joi.any()),
|
|
54
400
|
label: Joi.string().allow(""),
|
|
55
401
|
name: Joi.string().allow(""),
|
|
56
|
-
predicate:
|
|
402
|
+
predicate: ThemePlatformModel.AvailablePagePredicate(),
|
|
57
403
|
preset: Joi.any(),
|
|
58
404
|
props: Joi.any(),
|
|
59
405
|
});
|
|
60
406
|
}
|
|
407
|
+
|
|
408
|
+
/** @returns {AvailablePageScreenPredicate} */
|
|
61
409
|
static AvailablePageScreenPredicate() {
|
|
62
410
|
return Joi.object({
|
|
63
411
|
desktop: Joi.boolean(),
|
|
@@ -65,11 +413,15 @@ class ThemeModel {
|
|
|
65
413
|
tablet: Joi.boolean(),
|
|
66
414
|
});
|
|
67
415
|
}
|
|
416
|
+
|
|
417
|
+
/** @returns {AvailablePageSectionMetaAttributes} */
|
|
68
418
|
static AvailablePageSectionMetaAttributes() {
|
|
69
419
|
return Joi.object({
|
|
70
420
|
attributes: Joi.any(),
|
|
71
421
|
});
|
|
72
422
|
}
|
|
423
|
+
|
|
424
|
+
/** @returns {AvailablePageSeo} */
|
|
73
425
|
static AvailablePageSeo() {
|
|
74
426
|
return Joi.object({
|
|
75
427
|
_id: Joi.string().allow(""),
|
|
@@ -77,42 +429,56 @@ class ThemeModel {
|
|
|
77
429
|
title: Joi.string().allow(""),
|
|
78
430
|
});
|
|
79
431
|
}
|
|
432
|
+
|
|
433
|
+
/** @returns {AvailablePageUserPredicate} */
|
|
80
434
|
static AvailablePageUserPredicate() {
|
|
81
435
|
return Joi.object({
|
|
82
436
|
anonymous: Joi.boolean(),
|
|
83
437
|
authenticated: Joi.boolean(),
|
|
84
438
|
});
|
|
85
439
|
}
|
|
440
|
+
|
|
441
|
+
/** @returns {availableSectionSchema} */
|
|
86
442
|
static availableSectionSchema() {
|
|
87
443
|
return Joi.object({
|
|
88
|
-
blocks: Joi.array().items(
|
|
444
|
+
blocks: Joi.array().items(ThemePlatformModel.Blocks()),
|
|
89
445
|
label: Joi.string().allow(""),
|
|
90
446
|
name: Joi.string().allow(""),
|
|
91
|
-
props: Joi.array().items(
|
|
447
|
+
props: Joi.array().items(ThemePlatformModel.BlocksProps()),
|
|
92
448
|
});
|
|
93
449
|
}
|
|
450
|
+
|
|
451
|
+
/** @returns {BlitzkriegApiErrorSchema} */
|
|
94
452
|
static BlitzkriegApiErrorSchema() {
|
|
95
453
|
return Joi.object({
|
|
96
454
|
message: Joi.string().allow(""),
|
|
97
455
|
});
|
|
98
456
|
}
|
|
457
|
+
|
|
458
|
+
/** @returns {BlitzkriegInternalServerErrorSchema} */
|
|
99
459
|
static BlitzkriegInternalServerErrorSchema() {
|
|
100
460
|
return Joi.object({
|
|
101
461
|
message: Joi.string().allow(""),
|
|
102
462
|
});
|
|
103
463
|
}
|
|
464
|
+
|
|
465
|
+
/** @returns {BlitzkriegNotFoundSchema} */
|
|
104
466
|
static BlitzkriegNotFoundSchema() {
|
|
105
467
|
return Joi.object({
|
|
106
468
|
message: Joi.string().allow(""),
|
|
107
469
|
});
|
|
108
470
|
}
|
|
471
|
+
|
|
472
|
+
/** @returns {Blocks} */
|
|
109
473
|
static Blocks() {
|
|
110
474
|
return Joi.object({
|
|
111
475
|
name: Joi.string().allow(""),
|
|
112
|
-
props: Joi.array().items(
|
|
476
|
+
props: Joi.array().items(ThemePlatformModel.BlocksProps()),
|
|
113
477
|
type: Joi.string().allow(""),
|
|
114
478
|
});
|
|
115
479
|
}
|
|
480
|
+
|
|
481
|
+
/** @returns {BlocksProps} */
|
|
116
482
|
static BlocksProps() {
|
|
117
483
|
return Joi.object({
|
|
118
484
|
id: Joi.string().allow(""),
|
|
@@ -120,12 +486,16 @@ class ThemeModel {
|
|
|
120
486
|
type: Joi.string().allow(""),
|
|
121
487
|
});
|
|
122
488
|
}
|
|
489
|
+
|
|
490
|
+
/** @returns {Bold} */
|
|
123
491
|
static Bold() {
|
|
124
492
|
return Joi.object({
|
|
125
493
|
file: Joi.string().allow(""),
|
|
126
494
|
name: Joi.string().allow(""),
|
|
127
495
|
});
|
|
128
496
|
}
|
|
497
|
+
|
|
498
|
+
/** @returns {Colors} */
|
|
129
499
|
static Colors() {
|
|
130
500
|
return Joi.object({
|
|
131
501
|
accent_color: Joi.string().allow(""),
|
|
@@ -136,53 +506,69 @@ class ThemeModel {
|
|
|
136
506
|
secondary_color: Joi.string().allow(""),
|
|
137
507
|
});
|
|
138
508
|
}
|
|
509
|
+
|
|
510
|
+
/** @returns {CommonJs} */
|
|
139
511
|
static CommonJs() {
|
|
140
512
|
return Joi.object({
|
|
141
513
|
link: Joi.string().allow(""),
|
|
142
514
|
});
|
|
143
515
|
}
|
|
516
|
+
|
|
517
|
+
/** @returns {Config} */
|
|
144
518
|
static Config() {
|
|
145
519
|
return Joi.object({
|
|
146
520
|
current: Joi.string().allow(""),
|
|
147
|
-
global_schema:
|
|
148
|
-
list: Joi.array().items(
|
|
149
|
-
preset:
|
|
521
|
+
global_schema: ThemePlatformModel.GlobalSchema(),
|
|
522
|
+
list: Joi.array().items(ThemePlatformModel.ListSchemaItem()),
|
|
523
|
+
preset: ThemePlatformModel.Preset(),
|
|
150
524
|
});
|
|
151
525
|
}
|
|
526
|
+
|
|
527
|
+
/** @returns {ConfigPage} */
|
|
152
528
|
static ConfigPage() {
|
|
153
529
|
return Joi.object({
|
|
154
530
|
page: Joi.string().allow(""),
|
|
155
531
|
settings: Joi.any(),
|
|
156
532
|
});
|
|
157
533
|
}
|
|
534
|
+
|
|
535
|
+
/** @returns {Css} */
|
|
158
536
|
static Css() {
|
|
159
537
|
return Joi.object({
|
|
160
538
|
link: Joi.string().allow(""),
|
|
161
539
|
links: Joi.array().items(Joi.string().allow("")),
|
|
162
540
|
});
|
|
163
541
|
}
|
|
542
|
+
|
|
543
|
+
/** @returns {Custom} */
|
|
164
544
|
static Custom() {
|
|
165
545
|
return Joi.object({
|
|
166
546
|
props: Joi.any(),
|
|
167
547
|
});
|
|
168
548
|
}
|
|
549
|
+
|
|
550
|
+
/** @returns {Font} */
|
|
169
551
|
static Font() {
|
|
170
552
|
return Joi.object({
|
|
171
553
|
family: Joi.string().allow(""),
|
|
172
|
-
variants:
|
|
554
|
+
variants: ThemePlatformModel.Variants(),
|
|
173
555
|
});
|
|
174
556
|
}
|
|
557
|
+
|
|
558
|
+
/** @returns {FontsSchema} */
|
|
175
559
|
static FontsSchema() {
|
|
176
560
|
return Joi.object({
|
|
177
|
-
items:
|
|
561
|
+
items: ThemePlatformModel.FontsSchemaItems(),
|
|
178
562
|
kind: Joi.string().allow(""),
|
|
179
563
|
});
|
|
180
564
|
}
|
|
565
|
+
|
|
566
|
+
/** @returns {FontsSchemaItems} */
|
|
181
567
|
static FontsSchemaItems() {
|
|
182
568
|
return Joi.object({
|
|
183
569
|
category: Joi.string().allow(""),
|
|
184
570
|
family: Joi.string().allow(""),
|
|
185
|
-
files:
|
|
571
|
+
files: ThemePlatformModel.FontsSchemaItemsFiles(),
|
|
186
572
|
kind: Joi.string().allow(""),
|
|
187
573
|
last_modified: Joi.string().allow(""),
|
|
188
574
|
subsets: Joi.array().items(Joi.string().allow("")),
|
|
@@ -190,6 +576,8 @@ class ThemeModel {
|
|
|
190
576
|
version: Joi.string().allow(""),
|
|
191
577
|
});
|
|
192
578
|
}
|
|
579
|
+
|
|
580
|
+
/** @returns {FontsSchemaItemsFiles} */
|
|
193
581
|
static FontsSchemaItemsFiles() {
|
|
194
582
|
return Joi.object({
|
|
195
583
|
bold: Joi.string().allow(""),
|
|
@@ -197,11 +585,15 @@ class ThemeModel {
|
|
|
197
585
|
regular: Joi.string().allow(""),
|
|
198
586
|
});
|
|
199
587
|
}
|
|
588
|
+
|
|
589
|
+
/** @returns {GlobalSchema} */
|
|
200
590
|
static GlobalSchema() {
|
|
201
591
|
return Joi.object({
|
|
202
|
-
props: Joi.array().items(
|
|
592
|
+
props: Joi.array().items(ThemePlatformModel.GlobalSchemaProps()),
|
|
203
593
|
});
|
|
204
594
|
}
|
|
595
|
+
|
|
596
|
+
/** @returns {GlobalSchemaProps} */
|
|
205
597
|
static GlobalSchemaProps() {
|
|
206
598
|
return Joi.object({
|
|
207
599
|
category: Joi.string().allow(""),
|
|
@@ -210,6 +602,8 @@ class ThemeModel {
|
|
|
210
602
|
type: Joi.string().allow(""),
|
|
211
603
|
});
|
|
212
604
|
}
|
|
605
|
+
|
|
606
|
+
/** @returns {Images} */
|
|
213
607
|
static Images() {
|
|
214
608
|
return Joi.object({
|
|
215
609
|
android: Joi.array().items(Joi.string().allow("")),
|
|
@@ -218,33 +612,43 @@ class ThemeModel {
|
|
|
218
612
|
thumbnail: Joi.array().items(Joi.string().allow("")),
|
|
219
613
|
});
|
|
220
614
|
}
|
|
615
|
+
|
|
616
|
+
/** @returns {Information} */
|
|
221
617
|
static Information() {
|
|
222
618
|
return Joi.object({
|
|
223
619
|
description: Joi.string().allow(""),
|
|
224
620
|
features: Joi.array().items(Joi.string().allow("")),
|
|
225
|
-
images:
|
|
621
|
+
images: ThemePlatformModel.Images(),
|
|
226
622
|
name: Joi.string().allow(""),
|
|
227
623
|
});
|
|
228
624
|
}
|
|
625
|
+
|
|
626
|
+
/** @returns {Light} */
|
|
229
627
|
static Light() {
|
|
230
628
|
return Joi.object({
|
|
231
629
|
file: Joi.string().allow(""),
|
|
232
630
|
name: Joi.string().allow(""),
|
|
233
631
|
});
|
|
234
632
|
}
|
|
633
|
+
|
|
634
|
+
/** @returns {ListSchemaItem} */
|
|
235
635
|
static ListSchemaItem() {
|
|
236
636
|
return Joi.object({
|
|
237
637
|
global_config: Joi.any(),
|
|
238
638
|
name: Joi.string().allow(""),
|
|
239
|
-
page: Joi.array().items(
|
|
639
|
+
page: Joi.array().items(ThemePlatformModel.ConfigPage()),
|
|
240
640
|
});
|
|
241
641
|
}
|
|
642
|
+
|
|
643
|
+
/** @returns {Medium} */
|
|
242
644
|
static Medium() {
|
|
243
645
|
return Joi.object({
|
|
244
646
|
file: Joi.string().allow(""),
|
|
245
647
|
name: Joi.string().allow(""),
|
|
246
648
|
});
|
|
247
649
|
}
|
|
650
|
+
|
|
651
|
+
/** @returns {PaginationSchema} */
|
|
248
652
|
static PaginationSchema() {
|
|
249
653
|
return Joi.object({
|
|
250
654
|
current: Joi.number(),
|
|
@@ -254,39 +658,53 @@ class ThemeModel {
|
|
|
254
658
|
type: Joi.string().allow(""),
|
|
255
659
|
});
|
|
256
660
|
}
|
|
661
|
+
|
|
662
|
+
/** @returns {Preset} */
|
|
257
663
|
static Preset() {
|
|
258
664
|
return Joi.object({
|
|
259
|
-
pages: Joi.array().items(
|
|
665
|
+
pages: Joi.array().items(ThemePlatformModel.AvailablePageSchema()),
|
|
260
666
|
});
|
|
261
667
|
}
|
|
668
|
+
|
|
669
|
+
/** @returns {Regular} */
|
|
262
670
|
static Regular() {
|
|
263
671
|
return Joi.object({
|
|
264
672
|
file: Joi.string().allow(""),
|
|
265
673
|
name: Joi.string().allow(""),
|
|
266
674
|
});
|
|
267
675
|
}
|
|
676
|
+
|
|
677
|
+
/** @returns {Sections} */
|
|
268
678
|
static Sections() {
|
|
269
679
|
return Joi.object({
|
|
270
680
|
attributes: Joi.string().allow(""),
|
|
271
681
|
});
|
|
272
682
|
}
|
|
683
|
+
|
|
684
|
+
/** @returns {SemiBold} */
|
|
273
685
|
static SemiBold() {
|
|
274
686
|
return Joi.object({
|
|
275
687
|
file: Joi.string().allow(""),
|
|
276
688
|
name: Joi.string().allow(""),
|
|
277
689
|
});
|
|
278
690
|
}
|
|
691
|
+
|
|
692
|
+
/** @returns {Src} */
|
|
279
693
|
static Src() {
|
|
280
694
|
return Joi.object({
|
|
281
695
|
link: Joi.string().allow(""),
|
|
282
696
|
});
|
|
283
697
|
}
|
|
698
|
+
|
|
699
|
+
/** @returns {ThemesListingResponseSchema} */
|
|
284
700
|
static ThemesListingResponseSchema() {
|
|
285
701
|
return Joi.object({
|
|
286
|
-
items: Joi.array().items(
|
|
287
|
-
page:
|
|
702
|
+
items: Joi.array().items(ThemePlatformModel.ThemesSchema()),
|
|
703
|
+
page: ThemePlatformModel.PaginationSchema(),
|
|
288
704
|
});
|
|
289
705
|
}
|
|
706
|
+
|
|
707
|
+
/** @returns {ThemesSchema} */
|
|
290
708
|
static ThemesSchema() {
|
|
291
709
|
return Joi.object({
|
|
292
710
|
__v: Joi.number(),
|
|
@@ -294,32 +712,36 @@ class ThemeModel {
|
|
|
294
712
|
application: Joi.string().allow(""),
|
|
295
713
|
applied: Joi.boolean(),
|
|
296
714
|
archived: Joi.boolean(),
|
|
297
|
-
assets:
|
|
715
|
+
assets: ThemePlatformModel.AssetsSchema(),
|
|
298
716
|
available_sections: Joi.array().items(
|
|
299
|
-
|
|
717
|
+
ThemePlatformModel.availableSectionSchema()
|
|
300
718
|
),
|
|
301
|
-
colors:
|
|
302
|
-
config:
|
|
719
|
+
colors: ThemePlatformModel.Colors(),
|
|
720
|
+
config: ThemePlatformModel.Config(),
|
|
303
721
|
created_at: Joi.string().allow(""),
|
|
304
722
|
customized: Joi.boolean(),
|
|
305
|
-
font:
|
|
306
|
-
information:
|
|
723
|
+
font: ThemePlatformModel.Font(),
|
|
724
|
+
information: ThemePlatformModel.Information(),
|
|
307
725
|
parent_theme: Joi.string().allow(""),
|
|
308
726
|
parent_theme_version: Joi.string().allow(""),
|
|
309
727
|
published: Joi.boolean(),
|
|
310
|
-
src:
|
|
728
|
+
src: ThemePlatformModel.Src(),
|
|
311
729
|
styles: Joi.any(),
|
|
312
730
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
313
731
|
updated_at: Joi.string().allow(""),
|
|
314
732
|
version: Joi.string().allow(""),
|
|
315
733
|
});
|
|
316
734
|
}
|
|
735
|
+
|
|
736
|
+
/** @returns {UmdJs} */
|
|
317
737
|
static UmdJs() {
|
|
318
738
|
return Joi.object({
|
|
319
739
|
link: Joi.string().allow(""),
|
|
320
740
|
links: Joi.array().items(Joi.string().allow("")),
|
|
321
741
|
});
|
|
322
742
|
}
|
|
743
|
+
|
|
744
|
+
/** @returns {UpgradableThemeSchema} */
|
|
323
745
|
static UpgradableThemeSchema() {
|
|
324
746
|
return Joi.object({
|
|
325
747
|
applied_theme: Joi.string().allow(""),
|
|
@@ -327,14 +749,16 @@ class ThemeModel {
|
|
|
327
749
|
upgrade: Joi.boolean(),
|
|
328
750
|
});
|
|
329
751
|
}
|
|
752
|
+
|
|
753
|
+
/** @returns {Variants} */
|
|
330
754
|
static Variants() {
|
|
331
755
|
return Joi.object({
|
|
332
|
-
bold:
|
|
333
|
-
light:
|
|
334
|
-
medium:
|
|
335
|
-
regular:
|
|
336
|
-
semi_bold:
|
|
756
|
+
bold: ThemePlatformModel.Bold(),
|
|
757
|
+
light: ThemePlatformModel.Light(),
|
|
758
|
+
medium: ThemePlatformModel.Medium(),
|
|
759
|
+
regular: ThemePlatformModel.Regular(),
|
|
760
|
+
semi_bold: ThemePlatformModel.SemiBold(),
|
|
337
761
|
});
|
|
338
762
|
}
|
|
339
763
|
}
|
|
340
|
-
module.exports =
|
|
764
|
+
module.exports = ThemePlatformModel;
|