@gofynd/fdk-client-javascript 1.0.2 → 1.0.4
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 +31 -2
- package/index.d.ts +4 -4
- package/index.js +9 -10
- package/package.json +14 -14
- package/sdk/APIClient.d.ts +11 -0
- package/sdk/APIClient.js +35 -0
- package/sdk/Client.d.ts +6 -0
- package/sdk/Client.js +17 -0
- package/sdk/Config.d.ts +9 -0
- package/sdk/Config.js +17 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
- package/sdk/application/Cart/CartApplicationClient.js +595 -594
- package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
- package/sdk/application/Cart/CartApplicationModel.js +490 -885
- package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
- package/sdk/application/Cart/CartApplicationValidator.js +98 -98
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
- package/sdk/application/Catalog/CatalogApplicationClient.js +1079 -1078
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
- package/sdk/application/Catalog/CatalogApplicationModel.js +683 -1249
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
- package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
- package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
- package/sdk/application/Common/CommonApplicationClient.js +43 -42
- package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
- package/sdk/application/Common/CommonApplicationModel.js +83 -160
- package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
- package/sdk/application/Common/CommonApplicationValidator.js +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
- package/sdk/application/Communication/CommunicationApplicationClient.js +32 -31
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +350 -349
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
- package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
- package/sdk/application/Content/ContentApplicationClient.js +216 -215
- package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
- package/sdk/application/Content/ContentApplicationModel.js +468 -884
- package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
- package/sdk/application/Content/ContentApplicationValidator.js +24 -24
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +65 -64
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
- package/sdk/application/Lead/LeadApplicationClient.js +109 -108
- package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
- package/sdk/application/Lead/LeadApplicationModel.js +267 -474
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +31 -22
- package/sdk/application/Logistic/LogisticApplicationClient.js +115 -49
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
- package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
- package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -9
- package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
- package/sdk/application/Order/OrderApplicationClient.js +247 -246
- package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
- package/sdk/application/Order/OrderApplicationModel.js +361 -656
- package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
- package/sdk/application/Order/OrderApplicationValidator.js +28 -28
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
- package/sdk/application/Payment/PaymentApplicationClient.js +781 -780
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
- package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
- package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
- package/sdk/application/PosCart/PosCartApplicationClient.js +646 -645
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
- package/sdk/application/PosCart/PosCartApplicationModel.js +476 -870
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
- package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
- package/sdk/application/Rewards/RewardsApplicationClient.js +122 -121
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
- package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
- package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
- package/sdk/application/Share/ShareApplicationClient.js +94 -93
- package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
- package/sdk/application/Share/ShareApplicationModel.js +63 -123
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationValidator.js +12 -12
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +38 -37
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
- package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
- package/sdk/application/User/UserApplicationClient.d.ts +280 -280
- package/sdk/application/User/UserApplicationClient.js +619 -618
- package/sdk/application/User/UserApplicationModel.d.ts +79 -72
- package/sdk/application/User/UserApplicationModel.js +440 -689
- package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
- package/sdk/application/User/UserApplicationValidator.js +89 -89
- package/sdk/common/AxiosHelper.js +18 -7
- package/sdk/constructUrl.d.ts +5 -0
- package/sdk/constructUrl.js +13 -0
- package/sdk/index.d.ts +3 -0
- package/sdk/index.js +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +182 -180
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +21 -21
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
- package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +44 -43
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +7 -6
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
- package/sdk/platform/Billing/BillingPlatformClient.js +184 -183
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
- package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
- package/sdk/platform/Billing/BillingPlatformValidator.js +26 -25
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +192 -165
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +686 -510
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +14 -11
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +77 -61
- package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
- package/sdk/platform/Cart/CartPlatformModel.js +676 -1206
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1558 -1556
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +688 -688
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1556 -1559
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2133 -3910
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -228
- package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformClient.js +40 -51
- package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
- package/sdk/platform/Common/CommonPlatformModel.js +83 -160
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformValidator.js +7 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +945 -943
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +88 -88
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +217 -216
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -24
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +617 -552
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +70 -64
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +348 -347
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +39 -38
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +524 -534
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1287 -1346
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +49 -50
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +153 -159
- package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
- package/sdk/platform/Content/ContentPlatformModel.js +485 -907
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
- package/sdk/platform/Discount/DiscountPlatformClient.js +219 -218
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
- package/sdk/platform/Discount/DiscountPlatformValidator.js +30 -29
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +25 -25
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +83 -61
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +9 -9
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +53 -53
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +147 -125
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +12 -11
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
- package/sdk/platform/Inventory/InventoryPlatformClient.js +231 -230
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
- package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +29 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +203 -201
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +29 -29
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
- package/sdk/platform/Lead/LeadPlatformClient.js +215 -214
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
- package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
- package/sdk/platform/Lead/LeadPlatformValidator.js +25 -24
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +68 -66
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
- package/sdk/platform/Order/OrderPlatformClient.js +1046 -1033
- package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
- package/sdk/platform/Order/OrderPlatformModel.js +1575 -2861
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
- package/sdk/platform/Order/OrderPlatformValidator.js +161 -160
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +58 -58
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +178 -178
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +24 -24
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
- package/sdk/platform/Payment/PaymentPlatformClient.js +156 -155
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
- package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformValidator.js +22 -21
- package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
- package/sdk/platform/PlatformApplicationClient.js +1584 -13899
- package/sdk/platform/PlatformClient.d.ts +7972 -7888
- package/sdk/platform/PlatformClient.js +8678 -10107
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +85 -85
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +299 -280
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +35 -35
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
- package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +62 -60
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +7 -7
- package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
- package/sdk/platform/Share/SharePlatformModel.js +60 -118
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +314 -312
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +45 -45
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
- package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
- package/sdk/platform/User/UserPlatformApplicationClient.js +507 -166
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +62 -24
- package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
- package/sdk/platform/User/UserPlatformModel.js +440 -689
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
- package/sdk/platform/Webhook/WebhookPlatformClient.js +91 -90
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +15 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
- package/sdk/public/Configuration/ConfigurationPublicClient.js +40 -38
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
- package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
- package/sdk/public/Inventory/InventoryPublicClient.js +115 -113
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
- package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
- package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
- package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
- package/.github/workflows/on_create_release.yml +0 -23
- package/.github/workflows/on_merge_main.yml +0 -38
- package/.github/workflows/on_pull_request.yml +0 -35
- package/.prettierrc +0 -5
- package/documentation/application/CART.md +0 -7339
- package/documentation/application/CATALOG.md +0 -9597
- package/documentation/application/COMMON.md +0 -452
- package/documentation/application/COMMUNICATION.md +0 -467
- package/documentation/application/CONFIGURATION.md +0 -2906
- package/documentation/application/CONTENT.md +0 -3351
- package/documentation/application/FILESTORAGE.md +0 -578
- package/documentation/application/LEAD.md +0 -1895
- package/documentation/application/LOGISTIC.md +0 -765
- package/documentation/application/ORDER.md +0 -3432
- package/documentation/application/PAYMENT.md +0 -5221
- package/documentation/application/POSCART.md +0 -7938
- package/documentation/application/README.md +0 -21
- package/documentation/application/REWARDS.md +0 -708
- package/documentation/application/SHARE.md +0 -733
- package/documentation/application/THEME.md +0 -5800
- package/documentation/application/USER.md +0 -4335
- package/documentation/platform/ANALYTICS.md +0 -1154
- package/documentation/platform/AUDITTRAIL.md +0 -576
- package/documentation/platform/BILLING.md +0 -2400
- package/documentation/platform/CART.md +0 -5559
- package/documentation/platform/CATALOG.md +0 -23261
- package/documentation/platform/COMMON.md +0 -452
- package/documentation/platform/COMMUNICATION.md +0 -5718
- package/documentation/platform/COMPANYPROFILE.md +0 -2031
- package/documentation/platform/CONFIGURATION.md +0 -7339
- package/documentation/platform/CONTENT.md +0 -9098
- package/documentation/platform/DISCOUNT.md +0 -863
- package/documentation/platform/FILESTORAGE.md +0 -1081
- package/documentation/platform/INVENTORY.md +0 -1779
- package/documentation/platform/LEAD.md +0 -4740
- package/documentation/platform/ORDER.md +0 -8486
- package/documentation/platform/PARTNER.md +0 -220
- package/documentation/platform/PAYMENT.md +0 -3448
- package/documentation/platform/README.md +0 -27
- package/documentation/platform/REWARDS.md +0 -1083
- package/documentation/platform/SHARE.md +0 -606
- package/documentation/platform/THEME.md +0 -35729
- package/documentation/platform/USER.md +0 -2319
- package/documentation/platform/WEBHOOK.md +0 -591
- package/documentation/public/CONFIGURATION.md +0 -452
- package/documentation/public/INVENTORY.md +0 -690
- package/documentation/public/WEBHOOK.md +0 -352
- package/jest.config.d.ts +0 -4
- package/jest.config.js +0 -6
- package/tests/application/catalog.spec.js +0 -47
- package/tests/common/action-url.spec.js +0 -35
- package/tests/common/schema/action-url.json +0 -178
- package/tests/common/schema/url-action.json +0 -683
- package/tests/common/url-action.spec.js +0 -48
- package/tests/helpers/cookie.helper.js +0 -31
- package/tests/helpers/oauth.helper.js +0 -43
- package/tests/platform/catalog.spec.js +0 -49
- package/tests/public/location.spec.js +0 -39
|
@@ -1,485 +1,339 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
class ThemeModel {
|
|
4
|
-
static
|
|
5
|
-
return Joi.object({
|
|
6
|
-
value: Joi.string().allow(""),
|
|
7
|
-
|
|
8
|
-
text: Joi.string().allow(""),
|
|
9
|
-
|
|
10
|
-
path: Joi.string().allow(""),
|
|
11
|
-
|
|
12
|
-
type: Joi.string().allow(""),
|
|
13
|
-
|
|
14
|
-
sections: Joi.array().items(ThemeModel.AvailablePageSchemaSections()),
|
|
15
|
-
|
|
16
|
-
sections_meta: Joi.array().items(
|
|
17
|
-
ThemeModel.AvailablePageSectionMetaAttributes()
|
|
18
|
-
),
|
|
19
|
-
|
|
20
|
-
theme: Joi.string().allow(""),
|
|
21
|
-
|
|
22
|
-
seo: ThemeModel.AvailablePageSeo(),
|
|
23
|
-
|
|
24
|
-
props: Joi.array().items(Joi.any()),
|
|
25
|
-
|
|
26
|
-
_id: Joi.string().allow(""),
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
static AvailablePageSectionMetaAttributes() {
|
|
31
|
-
return Joi.object({
|
|
32
|
-
attributes: Joi.any(),
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
static AvailablePageSeo() {
|
|
4
|
+
static AddThemeRequestSchema() {
|
|
37
5
|
return Joi.object({
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
description: Joi.string().allow(""),
|
|
41
|
-
|
|
42
|
-
_id: Joi.string().allow(""),
|
|
6
|
+
theme_id: Joi.string().allow(""),
|
|
43
7
|
});
|
|
44
8
|
}
|
|
45
|
-
|
|
46
|
-
static AvailablePageSchemaSections() {
|
|
9
|
+
static AllAvailablePageSchema() {
|
|
47
10
|
return Joi.object({
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
label: Joi.string().allow(""),
|
|
51
|
-
|
|
52
|
-
props: Joi.any(),
|
|
53
|
-
|
|
54
|
-
blocks: Joi.array().items(Joi.any()),
|
|
55
|
-
|
|
56
|
-
preset: Joi.any(),
|
|
57
|
-
|
|
58
|
-
predicate: ThemeModel.AvailablePagePredicate(),
|
|
11
|
+
pages: Joi.array().items(ThemeModel.AvailablePageSchema()),
|
|
59
12
|
});
|
|
60
13
|
}
|
|
61
|
-
|
|
62
|
-
static AvailablePageScreenPredicate() {
|
|
14
|
+
static AssetsSchema() {
|
|
63
15
|
return Joi.object({
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
tablet: Joi.boolean(),
|
|
16
|
+
common_js: ThemeModel.CommonJs(),
|
|
17
|
+
css: ThemeModel.Css(),
|
|
18
|
+
umd_js: ThemeModel.UmdJs(),
|
|
69
19
|
});
|
|
70
20
|
}
|
|
71
|
-
|
|
72
|
-
static AvailablePageUserPredicate() {
|
|
21
|
+
static AvailablePagePredicate() {
|
|
73
22
|
return Joi.object({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
23
|
+
route: ThemeModel.AvailablePageRoutePredicate(),
|
|
24
|
+
screen: ThemeModel.AvailablePageScreenPredicate(),
|
|
25
|
+
user: ThemeModel.AvailablePageUserPredicate(),
|
|
77
26
|
});
|
|
78
27
|
}
|
|
79
|
-
|
|
80
28
|
static AvailablePageRoutePredicate() {
|
|
81
29
|
return Joi.object({
|
|
82
|
-
selected: Joi.string().allow(""),
|
|
83
|
-
|
|
84
30
|
exact_url: Joi.string().allow(""),
|
|
85
|
-
|
|
86
31
|
query: Joi.any(),
|
|
32
|
+
selected: Joi.string().allow(""),
|
|
87
33
|
});
|
|
88
34
|
}
|
|
89
|
-
|
|
90
|
-
static AvailablePagePredicate() {
|
|
35
|
+
static AvailablePageSchema() {
|
|
91
36
|
return Joi.object({
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
37
|
+
_id: Joi.string().allow(""),
|
|
38
|
+
path: Joi.string().allow(""),
|
|
39
|
+
props: Joi.array().items(Joi.any()),
|
|
40
|
+
sections: Joi.array().items(ThemeModel.AvailablePageSchemaSections()),
|
|
41
|
+
sections_meta: Joi.array().items(
|
|
42
|
+
ThemeModel.AvailablePageSectionMetaAttributes()
|
|
43
|
+
),
|
|
44
|
+
seo: ThemeModel.AvailablePageSeo(),
|
|
45
|
+
text: Joi.string().allow(""),
|
|
46
|
+
theme: Joi.string().allow(""),
|
|
47
|
+
type: Joi.string().allow(""),
|
|
48
|
+
value: Joi.string().allow(""),
|
|
97
49
|
});
|
|
98
50
|
}
|
|
99
|
-
|
|
100
|
-
static AllAvailablePageSchema() {
|
|
51
|
+
static AvailablePageSchemaSections() {
|
|
101
52
|
return Joi.object({
|
|
102
|
-
|
|
53
|
+
blocks: Joi.array().items(Joi.any()),
|
|
54
|
+
label: Joi.string().allow(""),
|
|
55
|
+
name: Joi.string().allow(""),
|
|
56
|
+
predicate: ThemeModel.AvailablePagePredicate(),
|
|
57
|
+
preset: Joi.any(),
|
|
58
|
+
props: Joi.any(),
|
|
103
59
|
});
|
|
104
60
|
}
|
|
105
|
-
|
|
106
|
-
static PaginationSchema() {
|
|
61
|
+
static AvailablePageScreenPredicate() {
|
|
107
62
|
return Joi.object({
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
has_next: Joi.boolean(),
|
|
113
|
-
|
|
114
|
-
type: Joi.string().allow(""),
|
|
115
|
-
|
|
116
|
-
current: Joi.number(),
|
|
63
|
+
desktop: Joi.boolean(),
|
|
64
|
+
mobile: Joi.boolean(),
|
|
65
|
+
tablet: Joi.boolean(),
|
|
117
66
|
});
|
|
118
67
|
}
|
|
119
|
-
|
|
120
|
-
static ThemesListingResponseSchema() {
|
|
68
|
+
static AvailablePageSectionMetaAttributes() {
|
|
121
69
|
return Joi.object({
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
page: ThemeModel.PaginationSchema(),
|
|
70
|
+
attributes: Joi.any(),
|
|
125
71
|
});
|
|
126
72
|
}
|
|
127
|
-
|
|
128
|
-
static AddThemeRequestSchema() {
|
|
73
|
+
static AvailablePageSeo() {
|
|
129
74
|
return Joi.object({
|
|
130
|
-
|
|
75
|
+
_id: Joi.string().allow(""),
|
|
76
|
+
description: Joi.string().allow(""),
|
|
77
|
+
title: Joi.string().allow(""),
|
|
131
78
|
});
|
|
132
79
|
}
|
|
133
|
-
|
|
134
|
-
static UpgradableThemeSchema() {
|
|
80
|
+
static AvailablePageUserPredicate() {
|
|
135
81
|
return Joi.object({
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
applied_theme: Joi.string().allow(""),
|
|
139
|
-
|
|
140
|
-
upgrade: Joi.boolean(),
|
|
82
|
+
anonymous: Joi.boolean(),
|
|
83
|
+
authenticated: Joi.boolean(),
|
|
141
84
|
});
|
|
142
85
|
}
|
|
143
|
-
|
|
144
|
-
static FontsSchema() {
|
|
86
|
+
static availableSectionSchema() {
|
|
145
87
|
return Joi.object({
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
88
|
+
blocks: Joi.array().items(ThemeModel.Blocks()),
|
|
89
|
+
label: Joi.string().allow(""),
|
|
90
|
+
name: Joi.string().allow(""),
|
|
91
|
+
props: Joi.array().items(ThemeModel.BlocksProps()),
|
|
149
92
|
});
|
|
150
93
|
}
|
|
151
|
-
|
|
152
94
|
static BlitzkriegApiErrorSchema() {
|
|
153
95
|
return Joi.object({
|
|
154
96
|
message: Joi.string().allow(""),
|
|
155
97
|
});
|
|
156
98
|
}
|
|
157
|
-
|
|
158
|
-
static BlitzkriegNotFoundSchema() {
|
|
159
|
-
return Joi.object({
|
|
160
|
-
message: Joi.string().allow(""),
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
|
|
164
99
|
static BlitzkriegInternalServerErrorSchema() {
|
|
165
100
|
return Joi.object({
|
|
166
101
|
message: Joi.string().allow(""),
|
|
167
102
|
});
|
|
168
103
|
}
|
|
169
|
-
|
|
170
|
-
static FontsSchemaItems() {
|
|
104
|
+
static BlitzkriegNotFoundSchema() {
|
|
171
105
|
return Joi.object({
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
variants: Joi.array().items(Joi.string().allow("")),
|
|
175
|
-
|
|
176
|
-
subsets: Joi.array().items(Joi.string().allow("")),
|
|
177
|
-
|
|
178
|
-
version: Joi.string().allow(""),
|
|
179
|
-
|
|
180
|
-
last_modified: Joi.string().allow(""),
|
|
181
|
-
|
|
182
|
-
files: ThemeModel.FontsSchemaItemsFiles(),
|
|
183
|
-
|
|
184
|
-
category: Joi.string().allow(""),
|
|
185
|
-
|
|
186
|
-
kind: Joi.string().allow(""),
|
|
106
|
+
message: Joi.string().allow(""),
|
|
187
107
|
});
|
|
188
108
|
}
|
|
189
|
-
|
|
190
|
-
static FontsSchemaItemsFiles() {
|
|
109
|
+
static Blocks() {
|
|
191
110
|
return Joi.object({
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
bold: Joi.string().allow(""),
|
|
111
|
+
name: Joi.string().allow(""),
|
|
112
|
+
props: Joi.array().items(ThemeModel.BlocksProps()),
|
|
113
|
+
type: Joi.string().allow(""),
|
|
197
114
|
});
|
|
198
115
|
}
|
|
199
|
-
|
|
200
|
-
static ThemesSchema() {
|
|
116
|
+
static BlocksProps() {
|
|
201
117
|
return Joi.object({
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
customized: Joi.boolean(),
|
|
207
|
-
|
|
208
|
-
published: Joi.boolean(),
|
|
209
|
-
|
|
210
|
-
archived: Joi.boolean(),
|
|
211
|
-
|
|
212
|
-
created_at: Joi.string().allow(""),
|
|
213
|
-
|
|
214
|
-
updated_at: Joi.string().allow(""),
|
|
215
|
-
|
|
216
|
-
version: Joi.string().allow(""),
|
|
217
|
-
|
|
218
|
-
parent_theme_version: Joi.string().allow(""),
|
|
219
|
-
|
|
220
|
-
parent_theme: Joi.string().allow(""),
|
|
221
|
-
|
|
222
|
-
information: ThemeModel.Information(),
|
|
223
|
-
|
|
224
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
225
|
-
|
|
226
|
-
src: ThemeModel.Src(),
|
|
227
|
-
|
|
228
|
-
assets: ThemeModel.AssetsSchema(),
|
|
229
|
-
|
|
230
|
-
available_sections: Joi.array().items(
|
|
231
|
-
ThemeModel.availableSectionSchema()
|
|
232
|
-
),
|
|
233
|
-
|
|
234
|
-
styles: Joi.any(),
|
|
235
|
-
|
|
236
|
-
config: ThemeModel.Config(),
|
|
237
|
-
|
|
238
|
-
font: ThemeModel.Font(),
|
|
239
|
-
|
|
240
|
-
_id: Joi.string().allow(""),
|
|
241
|
-
|
|
242
|
-
__v: Joi.number(),
|
|
243
|
-
|
|
244
|
-
colors: ThemeModel.Colors(),
|
|
118
|
+
id: Joi.string().allow(""),
|
|
119
|
+
label: Joi.string().allow(""),
|
|
120
|
+
type: Joi.string().allow(""),
|
|
245
121
|
});
|
|
246
122
|
}
|
|
247
|
-
|
|
248
|
-
static availableSectionSchema() {
|
|
123
|
+
static Bold() {
|
|
249
124
|
return Joi.object({
|
|
250
|
-
|
|
251
|
-
|
|
125
|
+
file: Joi.string().allow(""),
|
|
252
126
|
name: Joi.string().allow(""),
|
|
253
|
-
|
|
254
|
-
label: Joi.string().allow(""),
|
|
255
|
-
|
|
256
|
-
props: Joi.array().items(ThemeModel.BlocksProps()),
|
|
257
127
|
});
|
|
258
128
|
}
|
|
259
|
-
|
|
260
|
-
static Information() {
|
|
129
|
+
static Colors() {
|
|
261
130
|
return Joi.object({
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
description: Joi.string().allow(""),
|
|
131
|
+
accent_color: Joi.string().allow(""),
|
|
132
|
+
bg_color: Joi.string().allow(""),
|
|
133
|
+
button_secondary_color: Joi.string().allow(""),
|
|
134
|
+
link_color: Joi.string().allow(""),
|
|
135
|
+
primary_color: Joi.string().allow(""),
|
|
136
|
+
secondary_color: Joi.string().allow(""),
|
|
269
137
|
});
|
|
270
138
|
}
|
|
271
|
-
|
|
272
|
-
static Images() {
|
|
139
|
+
static CommonJs() {
|
|
273
140
|
return Joi.object({
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
android: Joi.array().items(Joi.string().allow("")),
|
|
277
|
-
|
|
278
|
-
ios: Joi.array().items(Joi.string().allow("")),
|
|
279
|
-
|
|
280
|
-
thumbnail: Joi.array().items(Joi.string().allow("")),
|
|
141
|
+
link: Joi.string().allow(""),
|
|
281
142
|
});
|
|
282
143
|
}
|
|
283
|
-
|
|
284
|
-
static Src() {
|
|
144
|
+
static Config() {
|
|
285
145
|
return Joi.object({
|
|
286
|
-
|
|
146
|
+
current: Joi.string().allow(""),
|
|
147
|
+
global_schema: ThemeModel.GlobalSchema(),
|
|
148
|
+
list: Joi.array().items(ThemeModel.ListSchemaItem()),
|
|
149
|
+
preset: ThemeModel.Preset(),
|
|
287
150
|
});
|
|
288
151
|
}
|
|
289
|
-
|
|
290
|
-
static AssetsSchema() {
|
|
152
|
+
static ConfigPage() {
|
|
291
153
|
return Joi.object({
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
common_js: ThemeModel.CommonJs(),
|
|
295
|
-
|
|
296
|
-
css: ThemeModel.Css(),
|
|
154
|
+
page: Joi.string().allow(""),
|
|
155
|
+
settings: Joi.any(),
|
|
297
156
|
});
|
|
298
157
|
}
|
|
299
|
-
|
|
300
|
-
static UmdJs() {
|
|
158
|
+
static Css() {
|
|
301
159
|
return Joi.object({
|
|
302
160
|
link: Joi.string().allow(""),
|
|
303
|
-
|
|
304
161
|
links: Joi.array().items(Joi.string().allow("")),
|
|
305
162
|
});
|
|
306
163
|
}
|
|
307
|
-
|
|
308
|
-
static CommonJs() {
|
|
164
|
+
static Custom() {
|
|
309
165
|
return Joi.object({
|
|
310
|
-
|
|
166
|
+
props: Joi.any(),
|
|
311
167
|
});
|
|
312
168
|
}
|
|
313
|
-
|
|
314
|
-
static Css() {
|
|
169
|
+
static Font() {
|
|
315
170
|
return Joi.object({
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
links: Joi.array().items(Joi.string().allow("")),
|
|
171
|
+
family: Joi.string().allow(""),
|
|
172
|
+
variants: ThemeModel.Variants(),
|
|
319
173
|
});
|
|
320
174
|
}
|
|
321
|
-
|
|
322
|
-
static Sections() {
|
|
175
|
+
static FontsSchema() {
|
|
323
176
|
return Joi.object({
|
|
324
|
-
|
|
177
|
+
items: ThemeModel.FontsSchemaItems(),
|
|
178
|
+
kind: Joi.string().allow(""),
|
|
325
179
|
});
|
|
326
180
|
}
|
|
327
|
-
|
|
328
|
-
static Config() {
|
|
181
|
+
static FontsSchemaItems() {
|
|
329
182
|
return Joi.object({
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
183
|
+
category: Joi.string().allow(""),
|
|
184
|
+
family: Joi.string().allow(""),
|
|
185
|
+
files: ThemeModel.FontsSchemaItemsFiles(),
|
|
186
|
+
kind: Joi.string().allow(""),
|
|
187
|
+
last_modified: Joi.string().allow(""),
|
|
188
|
+
subsets: Joi.array().items(Joi.string().allow("")),
|
|
189
|
+
variants: Joi.array().items(Joi.string().allow("")),
|
|
190
|
+
version: Joi.string().allow(""),
|
|
337
191
|
});
|
|
338
192
|
}
|
|
339
|
-
|
|
340
|
-
static Preset() {
|
|
193
|
+
static FontsSchemaItemsFiles() {
|
|
341
194
|
return Joi.object({
|
|
342
|
-
|
|
195
|
+
bold: Joi.string().allow(""),
|
|
196
|
+
italic: Joi.string().allow(""),
|
|
197
|
+
regular: Joi.string().allow(""),
|
|
343
198
|
});
|
|
344
199
|
}
|
|
345
|
-
|
|
346
200
|
static GlobalSchema() {
|
|
347
201
|
return Joi.object({
|
|
348
202
|
props: Joi.array().items(ThemeModel.GlobalSchemaProps()),
|
|
349
203
|
});
|
|
350
204
|
}
|
|
351
|
-
|
|
352
|
-
static ListSchemaItem() {
|
|
205
|
+
static GlobalSchemaProps() {
|
|
353
206
|
return Joi.object({
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
207
|
+
category: Joi.string().allow(""),
|
|
208
|
+
id: Joi.string().allow(""),
|
|
209
|
+
label: Joi.string().allow(""),
|
|
210
|
+
type: Joi.string().allow(""),
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
static Images() {
|
|
214
|
+
return Joi.object({
|
|
215
|
+
android: Joi.array().items(Joi.string().allow("")),
|
|
216
|
+
desktop: Joi.array().items(Joi.string().allow("")),
|
|
217
|
+
ios: Joi.array().items(Joi.string().allow("")),
|
|
218
|
+
thumbnail: Joi.array().items(Joi.string().allow("")),
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
static Information() {
|
|
222
|
+
return Joi.object({
|
|
223
|
+
description: Joi.string().allow(""),
|
|
224
|
+
features: Joi.array().items(Joi.string().allow("")),
|
|
225
|
+
images: ThemeModel.Images(),
|
|
358
226
|
name: Joi.string().allow(""),
|
|
359
227
|
});
|
|
360
228
|
}
|
|
361
|
-
|
|
362
|
-
static Colors() {
|
|
229
|
+
static Light() {
|
|
363
230
|
return Joi.object({
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
primary_color: Joi.string().allow(""),
|
|
367
|
-
|
|
368
|
-
secondary_color: Joi.string().allow(""),
|
|
369
|
-
|
|
370
|
-
accent_color: Joi.string().allow(""),
|
|
371
|
-
|
|
372
|
-
link_color: Joi.string().allow(""),
|
|
373
|
-
|
|
374
|
-
button_secondary_color: Joi.string().allow(""),
|
|
231
|
+
file: Joi.string().allow(""),
|
|
232
|
+
name: Joi.string().allow(""),
|
|
375
233
|
});
|
|
376
234
|
}
|
|
377
|
-
|
|
378
|
-
static Custom() {
|
|
235
|
+
static ListSchemaItem() {
|
|
379
236
|
return Joi.object({
|
|
380
|
-
|
|
237
|
+
global_config: Joi.any(),
|
|
238
|
+
name: Joi.string().allow(""),
|
|
239
|
+
page: Joi.array().items(ThemeModel.ConfigPage()),
|
|
381
240
|
});
|
|
382
241
|
}
|
|
383
|
-
|
|
384
|
-
static ConfigPage() {
|
|
242
|
+
static Medium() {
|
|
385
243
|
return Joi.object({
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
page: Joi.string().allow(""),
|
|
244
|
+
file: Joi.string().allow(""),
|
|
245
|
+
name: Joi.string().allow(""),
|
|
389
246
|
});
|
|
390
247
|
}
|
|
391
|
-
|
|
392
|
-
static Font() {
|
|
248
|
+
static PaginationSchema() {
|
|
393
249
|
return Joi.object({
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
250
|
+
current: Joi.number(),
|
|
251
|
+
has_next: Joi.boolean(),
|
|
252
|
+
item_total: Joi.number(),
|
|
253
|
+
size: Joi.number(),
|
|
254
|
+
type: Joi.string().allow(""),
|
|
397
255
|
});
|
|
398
256
|
}
|
|
399
|
-
|
|
400
|
-
static Variants() {
|
|
257
|
+
static Preset() {
|
|
401
258
|
return Joi.object({
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
semi_bold: ThemeModel.SemiBold(),
|
|
405
|
-
|
|
406
|
-
bold: ThemeModel.Bold(),
|
|
407
|
-
|
|
408
|
-
light: ThemeModel.Light(),
|
|
409
|
-
|
|
410
|
-
regular: ThemeModel.Regular(),
|
|
259
|
+
pages: Joi.array().items(ThemeModel.AvailablePageSchema()),
|
|
411
260
|
});
|
|
412
261
|
}
|
|
413
|
-
|
|
414
|
-
static Medium() {
|
|
262
|
+
static Regular() {
|
|
415
263
|
return Joi.object({
|
|
416
|
-
name: Joi.string().allow(""),
|
|
417
|
-
|
|
418
264
|
file: Joi.string().allow(""),
|
|
265
|
+
name: Joi.string().allow(""),
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
static Sections() {
|
|
269
|
+
return Joi.object({
|
|
270
|
+
attributes: Joi.string().allow(""),
|
|
419
271
|
});
|
|
420
272
|
}
|
|
421
|
-
|
|
422
273
|
static SemiBold() {
|
|
423
274
|
return Joi.object({
|
|
424
|
-
name: Joi.string().allow(""),
|
|
425
|
-
|
|
426
275
|
file: Joi.string().allow(""),
|
|
276
|
+
name: Joi.string().allow(""),
|
|
427
277
|
});
|
|
428
278
|
}
|
|
429
|
-
|
|
430
|
-
static Bold() {
|
|
279
|
+
static Src() {
|
|
431
280
|
return Joi.object({
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
file: Joi.string().allow(""),
|
|
281
|
+
link: Joi.string().allow(""),
|
|
435
282
|
});
|
|
436
283
|
}
|
|
437
|
-
|
|
438
|
-
static Light() {
|
|
284
|
+
static ThemesListingResponseSchema() {
|
|
439
285
|
return Joi.object({
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
file: Joi.string().allow(""),
|
|
286
|
+
items: Joi.array().items(ThemeModel.ThemesSchema()),
|
|
287
|
+
page: ThemeModel.PaginationSchema(),
|
|
443
288
|
});
|
|
444
289
|
}
|
|
445
|
-
|
|
446
|
-
static Regular() {
|
|
290
|
+
static ThemesSchema() {
|
|
447
291
|
return Joi.object({
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
292
|
+
__v: Joi.number(),
|
|
293
|
+
_id: Joi.string().allow(""),
|
|
294
|
+
application: Joi.string().allow(""),
|
|
295
|
+
applied: Joi.boolean(),
|
|
296
|
+
archived: Joi.boolean(),
|
|
297
|
+
assets: ThemeModel.AssetsSchema(),
|
|
298
|
+
available_sections: Joi.array().items(
|
|
299
|
+
ThemeModel.availableSectionSchema()
|
|
300
|
+
),
|
|
301
|
+
colors: ThemeModel.Colors(),
|
|
302
|
+
config: ThemeModel.Config(),
|
|
303
|
+
created_at: Joi.string().allow(""),
|
|
304
|
+
customized: Joi.boolean(),
|
|
305
|
+
font: ThemeModel.Font(),
|
|
306
|
+
information: ThemeModel.Information(),
|
|
307
|
+
parent_theme: Joi.string().allow(""),
|
|
308
|
+
parent_theme_version: Joi.string().allow(""),
|
|
309
|
+
published: Joi.boolean(),
|
|
310
|
+
src: ThemeModel.Src(),
|
|
311
|
+
styles: Joi.any(),
|
|
312
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
313
|
+
updated_at: Joi.string().allow(""),
|
|
314
|
+
version: Joi.string().allow(""),
|
|
451
315
|
});
|
|
452
316
|
}
|
|
453
|
-
|
|
454
|
-
static Blocks() {
|
|
317
|
+
static UmdJs() {
|
|
455
318
|
return Joi.object({
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
name: Joi.string().allow(""),
|
|
459
|
-
|
|
460
|
-
props: Joi.array().items(ThemeModel.BlocksProps()),
|
|
319
|
+
link: Joi.string().allow(""),
|
|
320
|
+
links: Joi.array().items(Joi.string().allow("")),
|
|
461
321
|
});
|
|
462
322
|
}
|
|
463
|
-
|
|
464
|
-
static GlobalSchemaProps() {
|
|
323
|
+
static UpgradableThemeSchema() {
|
|
465
324
|
return Joi.object({
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
type: Joi.string().allow(""),
|
|
471
|
-
|
|
472
|
-
category: Joi.string().allow(""),
|
|
325
|
+
applied_theme: Joi.string().allow(""),
|
|
326
|
+
parent_theme: Joi.string().allow(""),
|
|
327
|
+
upgrade: Joi.boolean(),
|
|
473
328
|
});
|
|
474
329
|
}
|
|
475
|
-
|
|
476
|
-
static BlocksProps() {
|
|
330
|
+
static Variants() {
|
|
477
331
|
return Joi.object({
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
332
|
+
bold: ThemeModel.Bold(),
|
|
333
|
+
light: ThemeModel.Light(),
|
|
334
|
+
medium: ThemeModel.Medium(),
|
|
335
|
+
regular: ThemeModel.Regular(),
|
|
336
|
+
semi_bold: ThemeModel.SemiBold(),
|
|
483
337
|
});
|
|
484
338
|
}
|
|
485
339
|
}
|