@gofynd/fdk-client-javascript 1.2.0 → 1.3.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 +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +4 -4
- package/sdk/application/Cart/CartApplicationModel.js +4 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +96 -9
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +117 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
export = ThemeApplicationModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
4
|
-
* @property {
|
|
3
|
+
* @typedef AdvanceSetting
|
|
4
|
+
* @property {DividerStrokeHighlightSetting} [divider_stroke_highlight]
|
|
5
|
+
* @property {OverlayPopupSetting} [overlay_popup]
|
|
6
|
+
* @property {UserAlertsSetting} [user_alerts]
|
|
5
7
|
*/
|
|
6
8
|
/**
|
|
7
9
|
* @typedef AllAvailablePageSchema
|
|
8
10
|
* @property {AvailablePageSchema[]} [pages]
|
|
9
11
|
*/
|
|
10
12
|
/**
|
|
11
|
-
* @typedef
|
|
12
|
-
* @property {
|
|
13
|
-
* @property {
|
|
14
|
-
* @property {
|
|
13
|
+
* @typedef Assets
|
|
14
|
+
* @property {CommonJS} [common_js]
|
|
15
|
+
* @property {CSS} [css]
|
|
16
|
+
* @property {UMDJs} [umd_js]
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* @typedef AuthConfig
|
|
20
|
+
* @property {boolean} [show_footer_auth] - Whether to show footer authentication or not
|
|
21
|
+
* @property {boolean} [show_header_auth] - Whether to show header authentication or not
|
|
15
22
|
*/
|
|
16
23
|
/**
|
|
17
24
|
* @typedef AvailablePagePredicate
|
|
@@ -68,13 +75,6 @@ export = ThemeApplicationModel;
|
|
|
68
75
|
* @property {boolean} [anonymous]
|
|
69
76
|
* @property {boolean} [authenticated]
|
|
70
77
|
*/
|
|
71
|
-
/**
|
|
72
|
-
* @typedef availableSectionSchema
|
|
73
|
-
* @property {Blocks[]} [blocks]
|
|
74
|
-
* @property {string} [label]
|
|
75
|
-
* @property {string} [name]
|
|
76
|
-
* @property {BlocksProps[]} [props]
|
|
77
|
-
*/
|
|
78
78
|
/**
|
|
79
79
|
* @typedef BlitzkriegApiErrorSchema
|
|
80
80
|
* @property {string} [message]
|
|
@@ -84,227 +84,377 @@ export = ThemeApplicationModel;
|
|
|
84
84
|
* @property {string} [message]
|
|
85
85
|
*/
|
|
86
86
|
/**
|
|
87
|
-
* @typedef
|
|
88
|
-
* @property {string} [
|
|
87
|
+
* @typedef Block
|
|
88
|
+
* @property {string} [name] - The name of the block.
|
|
89
|
+
* @property {BlockProps} [props]
|
|
90
|
+
* @property {string} [type] - The type of the block.
|
|
89
91
|
*/
|
|
90
92
|
/**
|
|
91
|
-
* @typedef
|
|
92
|
-
* @property {
|
|
93
|
-
* @property {
|
|
94
|
-
* @property {string} [type]
|
|
93
|
+
* @typedef BlockProps
|
|
94
|
+
* @property {ImagePickerProp} [image]
|
|
95
|
+
* @property {UrlProp} [slide_link]
|
|
95
96
|
*/
|
|
96
97
|
/**
|
|
97
|
-
* @typedef
|
|
98
|
-
* @property {string} [
|
|
99
|
-
* @property {string} [
|
|
100
|
-
* @property {string} [
|
|
98
|
+
* @typedef ButtonSetting
|
|
99
|
+
* @property {string} [button_link] - The button link color
|
|
100
|
+
* @property {string} [button_primary] - The primary button color
|
|
101
|
+
* @property {string} [button_secondary] - The secondary button color
|
|
101
102
|
*/
|
|
102
103
|
/**
|
|
103
|
-
* @typedef
|
|
104
|
-
* @property {string} [
|
|
105
|
-
* @property {
|
|
104
|
+
* @typedef CheckboxProp
|
|
105
|
+
* @property {string} [type] - The type of the property.
|
|
106
|
+
* @property {boolean} [value] - The value of the checkbox property.
|
|
106
107
|
*/
|
|
107
108
|
/**
|
|
108
109
|
* @typedef Colors
|
|
109
|
-
* @property {string} [accent_color]
|
|
110
|
-
* @property {string} [bg_color]
|
|
111
|
-
* @property {string} [button_secondary_color]
|
|
112
|
-
* @property {string} [link_color]
|
|
113
|
-
* @property {string} [primary_color]
|
|
114
|
-
* @property {string} [secondary_color]
|
|
110
|
+
* @property {string} [accent_color] - The accent color
|
|
111
|
+
* @property {string} [bg_color] - The background color
|
|
112
|
+
* @property {string} [button_secondary_color] - The secondary button color
|
|
113
|
+
* @property {string} [link_color] - The link color
|
|
114
|
+
* @property {string} [primary_color] - The primary color
|
|
115
|
+
* @property {string} [secondary_color] - The secondary color
|
|
115
116
|
*/
|
|
116
117
|
/**
|
|
117
|
-
* @typedef
|
|
118
|
+
* @typedef CommonJS
|
|
118
119
|
* @property {string} [link]
|
|
119
120
|
*/
|
|
120
121
|
/**
|
|
121
122
|
* @typedef Config
|
|
122
|
-
* @property {string}
|
|
123
|
+
* @property {string} current - The current configuration
|
|
123
124
|
* @property {GlobalSchema} [global_schema]
|
|
124
|
-
* @property {
|
|
125
|
+
* @property {ThemeConfiguration[]} list - A list of configurations
|
|
125
126
|
* @property {Preset} [preset]
|
|
126
127
|
*/
|
|
127
128
|
/**
|
|
128
|
-
* @typedef
|
|
129
|
-
* @property {string} [
|
|
130
|
-
* @property {Object} [settings]
|
|
129
|
+
* @typedef CSS
|
|
130
|
+
* @property {string[]} [links]
|
|
131
131
|
*/
|
|
132
132
|
/**
|
|
133
|
-
* @typedef
|
|
134
|
-
* @property {
|
|
135
|
-
* @property {string[]} [links]
|
|
133
|
+
* @typedef CustomConfig
|
|
134
|
+
* @property {CustomProps} [props]
|
|
136
135
|
*/
|
|
137
136
|
/**
|
|
138
|
-
* @typedef
|
|
139
|
-
* @property {
|
|
137
|
+
* @typedef CustomProps
|
|
138
|
+
* @property {string} [button_add_to_cart_color] - The add to cart button color
|
|
139
|
+
* @property {string} [button_add_to_cart_label_color] - The add to cart button
|
|
140
|
+
* label color
|
|
141
|
+
* @property {string} [button_primary_color] - The primary button color
|
|
142
|
+
* @property {string} [button_primary_label_color] - The primary button label color
|
|
143
|
+
* @property {string} [button_secondary_color] - The secondary button color
|
|
144
|
+
* @property {string} [button_secondary_label_color] - The secondary button label color
|
|
145
|
+
* @property {string} [button_tertiary_color] - The tertiary button color
|
|
146
|
+
* @property {string} [button_tertiary_hover_color] - The tertiary button hover color
|
|
147
|
+
* @property {string} [button_tertiary_hover_text_color] - The tertiary button
|
|
148
|
+
* hover text color
|
|
149
|
+
* @property {string} [button_tertiary_label_color] - The tertiary button label color
|
|
150
|
+
* @property {boolean} [disable_cart] - Whether to disable the cart or not
|
|
151
|
+
* @property {string} [footer_bg_color] - The footer background color
|
|
152
|
+
* @property {string} [footer_border_color] - The footer border color
|
|
153
|
+
* @property {string} [footer_nav_hover_color] - The footer navigation hover color
|
|
154
|
+
* @property {string} [footer_text_color] - The footer text color
|
|
155
|
+
* @property {string} [header_bg_color] - The header background color
|
|
156
|
+
* @property {string} [header_border_color] - The header border color
|
|
157
|
+
* @property {string} [header_cart_notification_bg_color] - The header cart
|
|
158
|
+
* notification background color
|
|
159
|
+
* @property {string} [header_cart_notification_text_color] - The header cart
|
|
160
|
+
* notification text color
|
|
161
|
+
* @property {string} [header_icon_color] - The header icon color
|
|
162
|
+
* @property {string} [header_nav_hover_color] - The header navigation hover color
|
|
163
|
+
* @property {string} [header_text_color] - The header text color
|
|
164
|
+
* @property {boolean} [is_menu_below_logo] - Whether the menu is below the logo or not
|
|
165
|
+
* @property {string} [menu_position] - The position of the menu
|
|
166
|
+
* @property {string} [text_body_color] - The text body color
|
|
167
|
+
* @property {string} [text_discount_color] - The text discount color
|
|
168
|
+
* @property {string} [text_heading_link_color] - The text heading link color
|
|
169
|
+
* @property {string} [text_price_color] - The text price color
|
|
170
|
+
* @property {string} [text_sale_price_color] - The text sale price color
|
|
171
|
+
* @property {string} [text_strikethrough_price_color] - The text strikethrough
|
|
172
|
+
* price color
|
|
173
|
+
*/
|
|
174
|
+
/**
|
|
175
|
+
* @typedef DividerStrokeHighlightSetting
|
|
176
|
+
* @property {string} [divider_strokes] - The divider strokes color
|
|
177
|
+
* @property {string} [highlight] - The highlight color
|
|
140
178
|
*/
|
|
141
179
|
/**
|
|
142
180
|
* @typedef Font
|
|
143
|
-
* @property {string}
|
|
144
|
-
* @property {
|
|
181
|
+
* @property {string} family - The font family
|
|
182
|
+
* @property {FontVariants} variants
|
|
145
183
|
*/
|
|
146
184
|
/**
|
|
147
|
-
* @typedef
|
|
148
|
-
* @property {
|
|
149
|
-
* @property {string}
|
|
185
|
+
* @typedef FontVariant
|
|
186
|
+
* @property {string} file - The URL of the font file
|
|
187
|
+
* @property {string} name - The name of the font variant
|
|
150
188
|
*/
|
|
151
189
|
/**
|
|
152
|
-
* @typedef
|
|
153
|
-
* @property {
|
|
154
|
-
* @property {
|
|
155
|
-
* @property {
|
|
156
|
-
* @property {
|
|
157
|
-
* @property {
|
|
158
|
-
* @property {string[]} [subsets]
|
|
159
|
-
* @property {string[]} [variants]
|
|
160
|
-
* @property {string} [version]
|
|
190
|
+
* @typedef FontVariants
|
|
191
|
+
* @property {FontVariant} [bold]
|
|
192
|
+
* @property {FontVariant} [light]
|
|
193
|
+
* @property {FontVariant} [medium]
|
|
194
|
+
* @property {FontVariant} [regular]
|
|
195
|
+
* @property {FontVariant} [semi_bold]
|
|
161
196
|
*/
|
|
162
197
|
/**
|
|
163
|
-
* @typedef
|
|
164
|
-
* @property {string} [
|
|
165
|
-
* @property {string} [
|
|
166
|
-
* @property {string} [
|
|
198
|
+
* @typedef FooterSetting
|
|
199
|
+
* @property {string} [footer_background] - The footer background color
|
|
200
|
+
* @property {string} [footer_body_text] - The footer body text color
|
|
201
|
+
* @property {string} [footer_bottom_background] - The footer bottom background color
|
|
202
|
+
* @property {string} [footer_heading_text] - The footer heading text color
|
|
203
|
+
* @property {string} [footer_icon] - The footer icon color
|
|
167
204
|
*/
|
|
168
205
|
/**
|
|
169
|
-
* @typedef
|
|
170
|
-
* @property {
|
|
206
|
+
* @typedef GeneralSetting
|
|
207
|
+
* @property {ButtonSetting} [button]
|
|
208
|
+
* @property {FooterSetting} [footer]
|
|
209
|
+
* @property {HeaderSetting} [header]
|
|
210
|
+
* @property {SaleDiscountSetting} [sale_discount]
|
|
211
|
+
* @property {TextSetting} [text]
|
|
212
|
+
* @property {ThemeSetting} [theme]
|
|
171
213
|
*/
|
|
172
214
|
/**
|
|
173
|
-
* @typedef
|
|
174
|
-
* @property {
|
|
175
|
-
* @property {
|
|
176
|
-
* @property {
|
|
177
|
-
* @property {string} [type]
|
|
215
|
+
* @typedef GlobalConfig
|
|
216
|
+
* @property {AuthConfig} [auth]
|
|
217
|
+
* @property {PaletteConfig} [palette]
|
|
218
|
+
* @property {StaticConfig} [statics]
|
|
178
219
|
*/
|
|
179
220
|
/**
|
|
180
|
-
* @typedef
|
|
181
|
-
* @property {
|
|
182
|
-
* @property {string[]} [desktop]
|
|
183
|
-
* @property {string[]} [ios]
|
|
184
|
-
* @property {string[]} [thumbnail]
|
|
221
|
+
* @typedef GlobalSchema
|
|
222
|
+
* @property {Prop[]} [props]
|
|
185
223
|
*/
|
|
186
224
|
/**
|
|
187
|
-
* @typedef
|
|
188
|
-
* @property {string} [
|
|
189
|
-
* @property {string
|
|
190
|
-
* @property {
|
|
191
|
-
* @property {string} [name]
|
|
225
|
+
* @typedef HeaderSetting
|
|
226
|
+
* @property {string} [header_background] - The header background color
|
|
227
|
+
* @property {string} [header_icon] - The header icon color
|
|
228
|
+
* @property {string} [header_nav] - The header navigation color
|
|
192
229
|
*/
|
|
193
230
|
/**
|
|
194
|
-
* @typedef
|
|
195
|
-
* @property {string} [
|
|
196
|
-
* @property {string} [
|
|
231
|
+
* @typedef ImagePickerProp
|
|
232
|
+
* @property {string} [type] - The type of the property.
|
|
233
|
+
* @property {string} [value] - The value of the image picker property.
|
|
197
234
|
*/
|
|
198
235
|
/**
|
|
199
|
-
* @typedef
|
|
200
|
-
* @property {
|
|
201
|
-
* @property {string} [
|
|
202
|
-
* @property {ConfigPage[]} [page]
|
|
236
|
+
* @typedef Images
|
|
237
|
+
* @property {string} [desktop] - The URL of the desktop image
|
|
238
|
+
* @property {string} [mobile] - The URL of the mobile image
|
|
203
239
|
*/
|
|
204
240
|
/**
|
|
205
|
-
* @typedef
|
|
206
|
-
* @property {string} [
|
|
207
|
-
* @property {
|
|
241
|
+
* @typedef Meta
|
|
242
|
+
* @property {string} [description] - The description of the theme
|
|
243
|
+
* @property {Images} [images]
|
|
244
|
+
* @property {string[]} [industry] - An array of industries associated with the theme
|
|
245
|
+
* @property {string} [name] - The name of the theme
|
|
246
|
+
* @property {ThemePayment} [payment]
|
|
247
|
+
* @property {Release} [release]
|
|
248
|
+
* @property {string} [slug] - The slug of the theme
|
|
249
|
+
*/
|
|
250
|
+
/**
|
|
251
|
+
* @typedef OverlayPopupSetting
|
|
252
|
+
* @property {string} [dialog_backgroung] - The dialog background color
|
|
253
|
+
* @property {string} [overlay] - The overlay color
|
|
208
254
|
*/
|
|
209
255
|
/**
|
|
210
|
-
* @typedef
|
|
256
|
+
* @typedef Page
|
|
211
257
|
* @property {number} [current]
|
|
212
258
|
* @property {boolean} [has_next]
|
|
259
|
+
* @property {boolean} [has_previous]
|
|
213
260
|
* @property {number} [item_total]
|
|
261
|
+
* @property {string} [next_id]
|
|
214
262
|
* @property {number} [size]
|
|
215
|
-
* @property {string}
|
|
263
|
+
* @property {string} type
|
|
264
|
+
*/
|
|
265
|
+
/**
|
|
266
|
+
* @typedef PaletteConfig
|
|
267
|
+
* @property {AdvanceSetting} [advance_setting]
|
|
268
|
+
* @property {GeneralSetting} [general_setting]
|
|
269
|
+
*/
|
|
270
|
+
/**
|
|
271
|
+
* @typedef Predicate
|
|
272
|
+
* @property {Route} [route]
|
|
273
|
+
* @property {Screen} [screen]
|
|
274
|
+
* @property {ThemeUserSchema} [user]
|
|
216
275
|
*/
|
|
217
276
|
/**
|
|
218
277
|
* @typedef Preset
|
|
219
|
-
* @property {
|
|
278
|
+
* @property {Page[]} [pages]
|
|
220
279
|
*/
|
|
221
280
|
/**
|
|
222
|
-
* @typedef
|
|
223
|
-
* @property {string} [
|
|
224
|
-
* @property {string} [
|
|
281
|
+
* @typedef Prop
|
|
282
|
+
* @property {string} [category] - The category of the property
|
|
283
|
+
* @property {string} [id] - The ID of the property
|
|
284
|
+
* @property {string} [info] - Additional information about the property
|
|
285
|
+
* @property {string} [label] - The label of the property
|
|
286
|
+
* @property {string} [type] - The type of the property
|
|
225
287
|
*/
|
|
226
288
|
/**
|
|
227
|
-
* @typedef
|
|
228
|
-
* @property {string} [
|
|
289
|
+
* @typedef RangeProp
|
|
290
|
+
* @property {string} [type] - The type of the property.
|
|
291
|
+
* @property {number} [value] - The value of the range property.
|
|
229
292
|
*/
|
|
230
293
|
/**
|
|
231
|
-
* @typedef
|
|
232
|
-
* @property {string} [
|
|
233
|
-
* @property {string} [
|
|
294
|
+
* @typedef Release
|
|
295
|
+
* @property {string} [notes] - The release notes of the theme
|
|
296
|
+
* @property {string} [version] - The version of the theme
|
|
234
297
|
*/
|
|
235
298
|
/**
|
|
236
|
-
* @typedef
|
|
237
|
-
* @property {string} [
|
|
299
|
+
* @typedef Route
|
|
300
|
+
* @property {string} [exact_url] - The exact URL of the route.
|
|
301
|
+
* @property {string} [selected] - The selected route.
|
|
238
302
|
*/
|
|
239
303
|
/**
|
|
240
|
-
* @typedef
|
|
241
|
-
* @property {
|
|
242
|
-
* @property {
|
|
304
|
+
* @typedef SaleDiscountSetting
|
|
305
|
+
* @property {string} [sale_badge_background] - The sale badge background color
|
|
306
|
+
* @property {string} [sale_badge_text] - The sale badge text color
|
|
307
|
+
* @property {string} [sale_discount_text] - The sale discount text color
|
|
308
|
+
* @property {string} [sale_timer] - The sale timer color
|
|
243
309
|
*/
|
|
244
310
|
/**
|
|
245
|
-
* @typedef
|
|
246
|
-
* @property {
|
|
247
|
-
* @property {
|
|
248
|
-
* @property {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
* @
|
|
252
|
-
* @property {
|
|
311
|
+
* @typedef Screen
|
|
312
|
+
* @property {boolean} [desktop] - True if the screen is a desktop device.
|
|
313
|
+
* @property {boolean} [mobile] - True if the screen is a mobile device.
|
|
314
|
+
* @property {boolean} [tablet] - True if the screen is a tablet device.
|
|
315
|
+
*/
|
|
316
|
+
/**
|
|
317
|
+
* @typedef Section
|
|
318
|
+
* @property {Block[]} [blocks]
|
|
319
|
+
* @property {string} [name] - The name of the section.
|
|
320
|
+
* @property {Predicate} [predicate]
|
|
321
|
+
* @property {SectionPreset} [preset]
|
|
322
|
+
* @property {SectionProps} [props]
|
|
323
|
+
*/
|
|
324
|
+
/**
|
|
325
|
+
* @typedef SectionItem
|
|
326
|
+
* @property {Object[]} [blocks] - Blocks
|
|
327
|
+
* @property {string} [label] - Label for the section
|
|
328
|
+
* @property {string} [name] - Name of the section
|
|
329
|
+
* @property {Object[]} [props]
|
|
330
|
+
*/
|
|
331
|
+
/**
|
|
332
|
+
* @typedef SectionPreset
|
|
333
|
+
* @property {Block[]} [blocks]
|
|
334
|
+
*/
|
|
335
|
+
/**
|
|
336
|
+
* @typedef SectionProps
|
|
337
|
+
* @property {CheckboxProp} [autoplay]
|
|
338
|
+
* @property {TextProp} [item_margin]
|
|
339
|
+
* @property {RangeProp} [slide_interval]
|
|
340
|
+
* @property {TextProp} [title]
|
|
341
|
+
*/
|
|
342
|
+
/**
|
|
343
|
+
* @typedef StaticConfig
|
|
344
|
+
* @property {StaticProps} [props]
|
|
345
|
+
*/
|
|
346
|
+
/**
|
|
347
|
+
* @typedef StaticProps
|
|
348
|
+
* @property {AuthConfig} [auth]
|
|
253
349
|
* @property {Colors} [colors]
|
|
350
|
+
*/
|
|
351
|
+
/**
|
|
352
|
+
* @typedef TextProp
|
|
353
|
+
* @property {string} [type] - The type of the property.
|
|
354
|
+
* @property {string} [value] - The value of the text property.
|
|
355
|
+
*/
|
|
356
|
+
/**
|
|
357
|
+
* @typedef TextSetting
|
|
358
|
+
* @property {string} [text_body] - The text body color
|
|
359
|
+
* @property {string} [text_heading] - The text heading color
|
|
360
|
+
* @property {string} [text_label] - The text label color
|
|
361
|
+
* @property {string} [text_secondary] - The secondary text color
|
|
362
|
+
*/
|
|
363
|
+
/**
|
|
364
|
+
* @typedef ThemeConfiguration
|
|
365
|
+
* @property {CustomConfig} [custom]
|
|
366
|
+
* @property {GlobalConfig} [global_config]
|
|
367
|
+
* @property {string} [name] - The name of the configuration
|
|
368
|
+
* @property {string[]} [page] - An array of pages
|
|
369
|
+
*/
|
|
370
|
+
/**
|
|
371
|
+
* @typedef ThemePayment
|
|
372
|
+
* @property {number} [amount] - The amount of the theme
|
|
373
|
+
* @property {boolean} [is_paid] - Whether the theme is paid or not
|
|
374
|
+
*/
|
|
375
|
+
/**
|
|
376
|
+
* @typedef ThemeSetting
|
|
377
|
+
* @property {string} [page_background] - The page background color
|
|
378
|
+
* @property {string} [theme_accent] - The theme accent color
|
|
379
|
+
*/
|
|
380
|
+
/**
|
|
381
|
+
* @typedef ThemesSchema
|
|
382
|
+
* @property {string} [_id] - The unique identifier of the theme
|
|
383
|
+
* @property {string} [application_id] - The ID of the application
|
|
384
|
+
* @property {boolean} [applied] - Whether the theme has been applied or not
|
|
385
|
+
* @property {Assets} [assets]
|
|
386
|
+
* @property {SectionItem[]} [available_sections] - Available sections information
|
|
254
387
|
* @property {Config} [config]
|
|
255
|
-
* @property {string} [created_at]
|
|
256
|
-
* @property {boolean} [customized]
|
|
388
|
+
* @property {string} [created_at] - The creation timestamp of the theme
|
|
257
389
|
* @property {Font} [font]
|
|
258
|
-
* @property {
|
|
259
|
-
* @property {string} [
|
|
260
|
-
* @property {
|
|
261
|
-
* @property {
|
|
262
|
-
* @property {
|
|
263
|
-
* @property {
|
|
264
|
-
* @property {string
|
|
265
|
-
* @property {string} [updated_at]
|
|
266
|
-
* @property {string} [version]
|
|
267
|
-
*/
|
|
268
|
-
/**
|
|
269
|
-
* @typedef
|
|
270
|
-
* @property {
|
|
390
|
+
* @property {boolean} [is_private] - Whether the theme is private or not
|
|
391
|
+
* @property {string} [marketplace_theme_id] - The ID of the theme in the marketplace
|
|
392
|
+
* @property {Meta} [meta]
|
|
393
|
+
* @property {string} [name] - The name of the theme
|
|
394
|
+
* @property {Object} [styles] - The styles associated with the theme
|
|
395
|
+
* @property {string[]} [tags] - An array of tags associated with the theme
|
|
396
|
+
* @property {string} [template_theme_id] - The ID of the template theme
|
|
397
|
+
* @property {string} [updated_at] - The last update timestamp of the theme
|
|
398
|
+
* @property {string} [version] - The version of the theme
|
|
399
|
+
*/
|
|
400
|
+
/**
|
|
401
|
+
* @typedef ThemeUserSchema
|
|
402
|
+
* @property {boolean} [anonymous] - True if the user is anonymous.
|
|
403
|
+
* @property {boolean} [authenticated] - True if the user is authenticated.
|
|
404
|
+
*/
|
|
405
|
+
/**
|
|
406
|
+
* @typedef UMDJs
|
|
271
407
|
* @property {string[]} [links]
|
|
272
408
|
*/
|
|
273
409
|
/**
|
|
274
|
-
* @typedef
|
|
275
|
-
* @property {string} [
|
|
276
|
-
* @property {string} [
|
|
277
|
-
* @property {boolean} [upgrade]
|
|
410
|
+
* @typedef UrlProp
|
|
411
|
+
* @property {string} [type] - The type of the property.
|
|
412
|
+
* @property {string} [value] - The value of the URL property.
|
|
278
413
|
*/
|
|
279
414
|
/**
|
|
280
|
-
* @typedef
|
|
281
|
-
* @property {
|
|
282
|
-
* @property {
|
|
283
|
-
* @property {
|
|
284
|
-
* @property {
|
|
285
|
-
* @property {
|
|
415
|
+
* @typedef UserAlertsSetting
|
|
416
|
+
* @property {string} [error_background] - The error background color
|
|
417
|
+
* @property {string} [error_text] - The error text color
|
|
418
|
+
* @property {string} [info_background] - The info background color
|
|
419
|
+
* @property {string} [info_text] - The info text color
|
|
420
|
+
* @property {string} [success_background] - The success background color
|
|
421
|
+
* @property {string} [success_text] - The success text color
|
|
286
422
|
*/
|
|
287
423
|
declare class ThemeApplicationModel {
|
|
288
424
|
}
|
|
289
425
|
declare namespace ThemeApplicationModel {
|
|
290
|
-
export {
|
|
426
|
+
export { AdvanceSetting, AllAvailablePageSchema, Assets, AuthConfig, AvailablePagePredicate, AvailablePageRoutePredicate, AvailablePageSchema, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageSectionMetaAttributes, AvailablePageSeo, AvailablePageUserPredicate, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, Block, BlockProps, ButtonSetting, CheckboxProp, Colors, CommonJS, Config, CSS, CustomConfig, CustomProps, DividerStrokeHighlightSetting, Font, FontVariant, FontVariants, FooterSetting, GeneralSetting, GlobalConfig, GlobalSchema, HeaderSetting, ImagePickerProp, Images, Meta, OverlayPopupSetting, Page, PaletteConfig, Predicate, Preset, Prop, RangeProp, Release, Route, SaleDiscountSetting, Screen, Section, SectionItem, SectionPreset, SectionProps, StaticConfig, StaticProps, TextProp, TextSetting, ThemeConfiguration, ThemePayment, ThemeSetting, ThemesSchema, ThemeUserSchema, UMDJs, UrlProp, UserAlertsSetting };
|
|
291
427
|
}
|
|
292
|
-
/** @returns {
|
|
293
|
-
declare function
|
|
294
|
-
type
|
|
295
|
-
|
|
428
|
+
/** @returns {AdvanceSetting} */
|
|
429
|
+
declare function AdvanceSetting(): AdvanceSetting;
|
|
430
|
+
type AdvanceSetting = {
|
|
431
|
+
divider_stroke_highlight?: DividerStrokeHighlightSetting;
|
|
432
|
+
overlay_popup?: OverlayPopupSetting;
|
|
433
|
+
user_alerts?: UserAlertsSetting;
|
|
296
434
|
};
|
|
297
435
|
/** @returns {AllAvailablePageSchema} */
|
|
298
436
|
declare function AllAvailablePageSchema(): AllAvailablePageSchema;
|
|
299
437
|
type AllAvailablePageSchema = {
|
|
300
438
|
pages?: AvailablePageSchema[];
|
|
301
439
|
};
|
|
302
|
-
/** @returns {
|
|
303
|
-
declare function
|
|
304
|
-
type
|
|
305
|
-
common_js?:
|
|
306
|
-
css?:
|
|
307
|
-
umd_js?:
|
|
440
|
+
/** @returns {Assets} */
|
|
441
|
+
declare function Assets(): Assets;
|
|
442
|
+
type Assets = {
|
|
443
|
+
common_js?: CommonJS;
|
|
444
|
+
css?: CSS;
|
|
445
|
+
umd_js?: UMDJs;
|
|
446
|
+
};
|
|
447
|
+
/** @returns {AuthConfig} */
|
|
448
|
+
declare function AuthConfig(): AuthConfig;
|
|
449
|
+
type AuthConfig = {
|
|
450
|
+
/**
|
|
451
|
+
* - Whether to show footer authentication or not
|
|
452
|
+
*/
|
|
453
|
+
show_footer_auth?: boolean;
|
|
454
|
+
/**
|
|
455
|
+
* - Whether to show header authentication or not
|
|
456
|
+
*/
|
|
457
|
+
show_header_auth?: boolean;
|
|
308
458
|
};
|
|
309
459
|
/** @returns {AvailablePagePredicate} */
|
|
310
460
|
declare function AvailablePagePredicate(): AvailablePagePredicate;
|
|
@@ -369,14 +519,6 @@ type AvailablePageUserPredicate = {
|
|
|
369
519
|
anonymous?: boolean;
|
|
370
520
|
authenticated?: boolean;
|
|
371
521
|
};
|
|
372
|
-
/** @returns {availableSectionSchema} */
|
|
373
|
-
declare function availableSectionSchema(): availableSectionSchema;
|
|
374
|
-
type availableSectionSchema = {
|
|
375
|
-
blocks?: Blocks[];
|
|
376
|
-
label?: string;
|
|
377
|
-
name?: string;
|
|
378
|
-
props?: BlocksProps[];
|
|
379
|
-
};
|
|
380
522
|
/** @returns {BlitzkriegApiErrorSchema} */
|
|
381
523
|
declare function BlitzkriegApiErrorSchema(): BlitzkriegApiErrorSchema;
|
|
382
524
|
type BlitzkriegApiErrorSchema = {
|
|
@@ -387,236 +529,764 @@ declare function BlitzkriegInternalServerErrorSchema(): BlitzkriegInternalServer
|
|
|
387
529
|
type BlitzkriegInternalServerErrorSchema = {
|
|
388
530
|
message?: string;
|
|
389
531
|
};
|
|
390
|
-
/** @returns {
|
|
391
|
-
declare function
|
|
392
|
-
type
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
declare function Blocks(): Blocks;
|
|
397
|
-
type Blocks = {
|
|
532
|
+
/** @returns {Block} */
|
|
533
|
+
declare function Block(): Block;
|
|
534
|
+
type Block = {
|
|
535
|
+
/**
|
|
536
|
+
* - The name of the block.
|
|
537
|
+
*/
|
|
398
538
|
name?: string;
|
|
399
|
-
props?:
|
|
539
|
+
props?: BlockProps;
|
|
540
|
+
/**
|
|
541
|
+
* - The type of the block.
|
|
542
|
+
*/
|
|
400
543
|
type?: string;
|
|
401
544
|
};
|
|
402
|
-
/** @returns {
|
|
403
|
-
declare function
|
|
404
|
-
type
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
type?: string;
|
|
545
|
+
/** @returns {BlockProps} */
|
|
546
|
+
declare function BlockProps(): BlockProps;
|
|
547
|
+
type BlockProps = {
|
|
548
|
+
image?: ImagePickerProp;
|
|
549
|
+
slide_link?: UrlProp;
|
|
408
550
|
};
|
|
409
|
-
/** @returns {
|
|
410
|
-
declare function
|
|
411
|
-
type
|
|
412
|
-
|
|
413
|
-
|
|
551
|
+
/** @returns {ButtonSetting} */
|
|
552
|
+
declare function ButtonSetting(): ButtonSetting;
|
|
553
|
+
type ButtonSetting = {
|
|
554
|
+
/**
|
|
555
|
+
* - The button link color
|
|
556
|
+
*/
|
|
557
|
+
button_link?: string;
|
|
558
|
+
/**
|
|
559
|
+
* - The primary button color
|
|
560
|
+
*/
|
|
561
|
+
button_primary?: string;
|
|
562
|
+
/**
|
|
563
|
+
* - The secondary button color
|
|
564
|
+
*/
|
|
565
|
+
button_secondary?: string;
|
|
566
|
+
};
|
|
567
|
+
/** @returns {CheckboxProp} */
|
|
568
|
+
declare function CheckboxProp(): CheckboxProp;
|
|
569
|
+
type CheckboxProp = {
|
|
570
|
+
/**
|
|
571
|
+
* - The type of the property.
|
|
572
|
+
*/
|
|
573
|
+
type?: string;
|
|
574
|
+
/**
|
|
575
|
+
* - The value of the checkbox property.
|
|
576
|
+
*/
|
|
577
|
+
value?: boolean;
|
|
414
578
|
};
|
|
415
579
|
/** @returns {Colors} */
|
|
416
580
|
declare function Colors(): Colors;
|
|
417
581
|
type Colors = {
|
|
582
|
+
/**
|
|
583
|
+
* - The accent color
|
|
584
|
+
*/
|
|
418
585
|
accent_color?: string;
|
|
586
|
+
/**
|
|
587
|
+
* - The background color
|
|
588
|
+
*/
|
|
419
589
|
bg_color?: string;
|
|
590
|
+
/**
|
|
591
|
+
* - The secondary button color
|
|
592
|
+
*/
|
|
420
593
|
button_secondary_color?: string;
|
|
594
|
+
/**
|
|
595
|
+
* - The link color
|
|
596
|
+
*/
|
|
421
597
|
link_color?: string;
|
|
598
|
+
/**
|
|
599
|
+
* - The primary color
|
|
600
|
+
*/
|
|
422
601
|
primary_color?: string;
|
|
602
|
+
/**
|
|
603
|
+
* - The secondary color
|
|
604
|
+
*/
|
|
423
605
|
secondary_color?: string;
|
|
424
606
|
};
|
|
425
|
-
/** @returns {
|
|
426
|
-
declare function
|
|
427
|
-
type
|
|
607
|
+
/** @returns {CommonJS} */
|
|
608
|
+
declare function CommonJS(): CommonJS;
|
|
609
|
+
type CommonJS = {
|
|
428
610
|
link?: string;
|
|
429
611
|
};
|
|
430
612
|
/** @returns {Config} */
|
|
431
613
|
declare function Config(): Config;
|
|
432
614
|
type Config = {
|
|
433
|
-
|
|
615
|
+
/**
|
|
616
|
+
* - The current configuration
|
|
617
|
+
*/
|
|
618
|
+
current: string;
|
|
434
619
|
global_schema?: GlobalSchema;
|
|
435
|
-
|
|
620
|
+
/**
|
|
621
|
+
* - A list of configurations
|
|
622
|
+
*/
|
|
623
|
+
list: ThemeConfiguration[];
|
|
436
624
|
preset?: Preset;
|
|
437
625
|
};
|
|
438
|
-
/** @returns {
|
|
439
|
-
declare function
|
|
440
|
-
type
|
|
441
|
-
page?: string;
|
|
442
|
-
settings?: any;
|
|
443
|
-
};
|
|
444
|
-
/** @returns {Css} */
|
|
445
|
-
declare function Css(): Css;
|
|
446
|
-
type Css = {
|
|
447
|
-
link?: string;
|
|
626
|
+
/** @returns {CSS} */
|
|
627
|
+
declare function CSS(): CSS;
|
|
628
|
+
type CSS = {
|
|
448
629
|
links?: string[];
|
|
449
630
|
};
|
|
450
|
-
/** @returns {
|
|
451
|
-
declare function
|
|
452
|
-
type
|
|
453
|
-
props?:
|
|
631
|
+
/** @returns {CustomConfig} */
|
|
632
|
+
declare function CustomConfig(): CustomConfig;
|
|
633
|
+
type CustomConfig = {
|
|
634
|
+
props?: CustomProps;
|
|
635
|
+
};
|
|
636
|
+
/** @returns {CustomProps} */
|
|
637
|
+
declare function CustomProps(): CustomProps;
|
|
638
|
+
type CustomProps = {
|
|
639
|
+
/**
|
|
640
|
+
* - The add to cart button color
|
|
641
|
+
*/
|
|
642
|
+
button_add_to_cart_color?: string;
|
|
643
|
+
/**
|
|
644
|
+
* - The add to cart button
|
|
645
|
+
* label color
|
|
646
|
+
*/
|
|
647
|
+
button_add_to_cart_label_color?: string;
|
|
648
|
+
/**
|
|
649
|
+
* - The primary button color
|
|
650
|
+
*/
|
|
651
|
+
button_primary_color?: string;
|
|
652
|
+
/**
|
|
653
|
+
* - The primary button label color
|
|
654
|
+
*/
|
|
655
|
+
button_primary_label_color?: string;
|
|
656
|
+
/**
|
|
657
|
+
* - The secondary button color
|
|
658
|
+
*/
|
|
659
|
+
button_secondary_color?: string;
|
|
660
|
+
/**
|
|
661
|
+
* - The secondary button label color
|
|
662
|
+
*/
|
|
663
|
+
button_secondary_label_color?: string;
|
|
664
|
+
/**
|
|
665
|
+
* - The tertiary button color
|
|
666
|
+
*/
|
|
667
|
+
button_tertiary_color?: string;
|
|
668
|
+
/**
|
|
669
|
+
* - The tertiary button hover color
|
|
670
|
+
*/
|
|
671
|
+
button_tertiary_hover_color?: string;
|
|
672
|
+
/**
|
|
673
|
+
* - The tertiary button
|
|
674
|
+
* hover text color
|
|
675
|
+
*/
|
|
676
|
+
button_tertiary_hover_text_color?: string;
|
|
677
|
+
/**
|
|
678
|
+
* - The tertiary button label color
|
|
679
|
+
*/
|
|
680
|
+
button_tertiary_label_color?: string;
|
|
681
|
+
/**
|
|
682
|
+
* - Whether to disable the cart or not
|
|
683
|
+
*/
|
|
684
|
+
disable_cart?: boolean;
|
|
685
|
+
/**
|
|
686
|
+
* - The footer background color
|
|
687
|
+
*/
|
|
688
|
+
footer_bg_color?: string;
|
|
689
|
+
/**
|
|
690
|
+
* - The footer border color
|
|
691
|
+
*/
|
|
692
|
+
footer_border_color?: string;
|
|
693
|
+
/**
|
|
694
|
+
* - The footer navigation hover color
|
|
695
|
+
*/
|
|
696
|
+
footer_nav_hover_color?: string;
|
|
697
|
+
/**
|
|
698
|
+
* - The footer text color
|
|
699
|
+
*/
|
|
700
|
+
footer_text_color?: string;
|
|
701
|
+
/**
|
|
702
|
+
* - The header background color
|
|
703
|
+
*/
|
|
704
|
+
header_bg_color?: string;
|
|
705
|
+
/**
|
|
706
|
+
* - The header border color
|
|
707
|
+
*/
|
|
708
|
+
header_border_color?: string;
|
|
709
|
+
/**
|
|
710
|
+
* - The header cart
|
|
711
|
+
* notification background color
|
|
712
|
+
*/
|
|
713
|
+
header_cart_notification_bg_color?: string;
|
|
714
|
+
/**
|
|
715
|
+
* - The header cart
|
|
716
|
+
* notification text color
|
|
717
|
+
*/
|
|
718
|
+
header_cart_notification_text_color?: string;
|
|
719
|
+
/**
|
|
720
|
+
* - The header icon color
|
|
721
|
+
*/
|
|
722
|
+
header_icon_color?: string;
|
|
723
|
+
/**
|
|
724
|
+
* - The header navigation hover color
|
|
725
|
+
*/
|
|
726
|
+
header_nav_hover_color?: string;
|
|
727
|
+
/**
|
|
728
|
+
* - The header text color
|
|
729
|
+
*/
|
|
730
|
+
header_text_color?: string;
|
|
731
|
+
/**
|
|
732
|
+
* - Whether the menu is below the logo or not
|
|
733
|
+
*/
|
|
734
|
+
is_menu_below_logo?: boolean;
|
|
735
|
+
/**
|
|
736
|
+
* - The position of the menu
|
|
737
|
+
*/
|
|
738
|
+
menu_position?: string;
|
|
739
|
+
/**
|
|
740
|
+
* - The text body color
|
|
741
|
+
*/
|
|
742
|
+
text_body_color?: string;
|
|
743
|
+
/**
|
|
744
|
+
* - The text discount color
|
|
745
|
+
*/
|
|
746
|
+
text_discount_color?: string;
|
|
747
|
+
/**
|
|
748
|
+
* - The text heading link color
|
|
749
|
+
*/
|
|
750
|
+
text_heading_link_color?: string;
|
|
751
|
+
/**
|
|
752
|
+
* - The text price color
|
|
753
|
+
*/
|
|
754
|
+
text_price_color?: string;
|
|
755
|
+
/**
|
|
756
|
+
* - The text sale price color
|
|
757
|
+
*/
|
|
758
|
+
text_sale_price_color?: string;
|
|
759
|
+
/**
|
|
760
|
+
* - The text strikethrough
|
|
761
|
+
* price color
|
|
762
|
+
*/
|
|
763
|
+
text_strikethrough_price_color?: string;
|
|
764
|
+
};
|
|
765
|
+
/** @returns {DividerStrokeHighlightSetting} */
|
|
766
|
+
declare function DividerStrokeHighlightSetting(): DividerStrokeHighlightSetting;
|
|
767
|
+
type DividerStrokeHighlightSetting = {
|
|
768
|
+
/**
|
|
769
|
+
* - The divider strokes color
|
|
770
|
+
*/
|
|
771
|
+
divider_strokes?: string;
|
|
772
|
+
/**
|
|
773
|
+
* - The highlight color
|
|
774
|
+
*/
|
|
775
|
+
highlight?: string;
|
|
454
776
|
};
|
|
455
777
|
/** @returns {Font} */
|
|
456
778
|
declare function Font(): Font;
|
|
457
779
|
type Font = {
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
780
|
+
/**
|
|
781
|
+
* - The font family
|
|
782
|
+
*/
|
|
783
|
+
family: string;
|
|
784
|
+
variants: FontVariants;
|
|
785
|
+
};
|
|
786
|
+
/** @returns {FontVariant} */
|
|
787
|
+
declare function FontVariant(): FontVariant;
|
|
788
|
+
type FontVariant = {
|
|
789
|
+
/**
|
|
790
|
+
* - The URL of the font file
|
|
791
|
+
*/
|
|
792
|
+
file: string;
|
|
793
|
+
/**
|
|
794
|
+
* - The name of the font variant
|
|
795
|
+
*/
|
|
796
|
+
name: string;
|
|
797
|
+
};
|
|
798
|
+
/** @returns {FontVariants} */
|
|
799
|
+
declare function FontVariants(): FontVariants;
|
|
800
|
+
type FontVariants = {
|
|
801
|
+
bold?: FontVariant;
|
|
802
|
+
light?: FontVariant;
|
|
803
|
+
medium?: FontVariant;
|
|
804
|
+
regular?: FontVariant;
|
|
805
|
+
semi_bold?: FontVariant;
|
|
478
806
|
};
|
|
479
|
-
/** @returns {
|
|
480
|
-
declare function
|
|
481
|
-
type
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
807
|
+
/** @returns {FooterSetting} */
|
|
808
|
+
declare function FooterSetting(): FooterSetting;
|
|
809
|
+
type FooterSetting = {
|
|
810
|
+
/**
|
|
811
|
+
* - The footer background color
|
|
812
|
+
*/
|
|
813
|
+
footer_background?: string;
|
|
814
|
+
/**
|
|
815
|
+
* - The footer body text color
|
|
816
|
+
*/
|
|
817
|
+
footer_body_text?: string;
|
|
818
|
+
/**
|
|
819
|
+
* - The footer bottom background color
|
|
820
|
+
*/
|
|
821
|
+
footer_bottom_background?: string;
|
|
822
|
+
/**
|
|
823
|
+
* - The footer heading text color
|
|
824
|
+
*/
|
|
825
|
+
footer_heading_text?: string;
|
|
826
|
+
/**
|
|
827
|
+
* - The footer icon color
|
|
828
|
+
*/
|
|
829
|
+
footer_icon?: string;
|
|
830
|
+
};
|
|
831
|
+
/** @returns {GeneralSetting} */
|
|
832
|
+
declare function GeneralSetting(): GeneralSetting;
|
|
833
|
+
type GeneralSetting = {
|
|
834
|
+
button?: ButtonSetting;
|
|
835
|
+
footer?: FooterSetting;
|
|
836
|
+
header?: HeaderSetting;
|
|
837
|
+
sale_discount?: SaleDiscountSetting;
|
|
838
|
+
text?: TextSetting;
|
|
839
|
+
theme?: ThemeSetting;
|
|
840
|
+
};
|
|
841
|
+
/** @returns {GlobalConfig} */
|
|
842
|
+
declare function GlobalConfig(): GlobalConfig;
|
|
843
|
+
type GlobalConfig = {
|
|
844
|
+
auth?: AuthConfig;
|
|
845
|
+
palette?: PaletteConfig;
|
|
846
|
+
statics?: StaticConfig;
|
|
485
847
|
};
|
|
486
848
|
/** @returns {GlobalSchema} */
|
|
487
849
|
declare function GlobalSchema(): GlobalSchema;
|
|
488
850
|
type GlobalSchema = {
|
|
489
|
-
props?:
|
|
851
|
+
props?: Prop[];
|
|
490
852
|
};
|
|
491
|
-
/** @returns {
|
|
492
|
-
declare function
|
|
493
|
-
type
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
853
|
+
/** @returns {HeaderSetting} */
|
|
854
|
+
declare function HeaderSetting(): HeaderSetting;
|
|
855
|
+
type HeaderSetting = {
|
|
856
|
+
/**
|
|
857
|
+
* - The header background color
|
|
858
|
+
*/
|
|
859
|
+
header_background?: string;
|
|
860
|
+
/**
|
|
861
|
+
* - The header icon color
|
|
862
|
+
*/
|
|
863
|
+
header_icon?: string;
|
|
864
|
+
/**
|
|
865
|
+
* - The header navigation color
|
|
866
|
+
*/
|
|
867
|
+
header_nav?: string;
|
|
868
|
+
};
|
|
869
|
+
/** @returns {ImagePickerProp} */
|
|
870
|
+
declare function ImagePickerProp(): ImagePickerProp;
|
|
871
|
+
type ImagePickerProp = {
|
|
872
|
+
/**
|
|
873
|
+
* - The type of the property.
|
|
874
|
+
*/
|
|
497
875
|
type?: string;
|
|
876
|
+
/**
|
|
877
|
+
* - The value of the image picker property.
|
|
878
|
+
*/
|
|
879
|
+
value?: string;
|
|
498
880
|
};
|
|
499
881
|
/** @returns {Images} */
|
|
500
882
|
declare function Images(): Images;
|
|
501
883
|
type Images = {
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
884
|
+
/**
|
|
885
|
+
* - The URL of the desktop image
|
|
886
|
+
*/
|
|
887
|
+
desktop?: string;
|
|
888
|
+
/**
|
|
889
|
+
* - The URL of the mobile image
|
|
890
|
+
*/
|
|
891
|
+
mobile?: string;
|
|
892
|
+
};
|
|
893
|
+
/** @returns {Meta} */
|
|
894
|
+
declare function Meta(): Meta;
|
|
895
|
+
type Meta = {
|
|
896
|
+
/**
|
|
897
|
+
* - The description of the theme
|
|
898
|
+
*/
|
|
510
899
|
description?: string;
|
|
511
|
-
features?: string[];
|
|
512
900
|
images?: Images;
|
|
901
|
+
/**
|
|
902
|
+
* - An array of industries associated with the theme
|
|
903
|
+
*/
|
|
904
|
+
industry?: string[];
|
|
905
|
+
/**
|
|
906
|
+
* - The name of the theme
|
|
907
|
+
*/
|
|
513
908
|
name?: string;
|
|
909
|
+
payment?: ThemePayment;
|
|
910
|
+
release?: Release;
|
|
911
|
+
/**
|
|
912
|
+
* - The slug of the theme
|
|
913
|
+
*/
|
|
914
|
+
slug?: string;
|
|
514
915
|
};
|
|
515
|
-
/** @returns {
|
|
516
|
-
declare function
|
|
517
|
-
type
|
|
518
|
-
|
|
519
|
-
|
|
916
|
+
/** @returns {OverlayPopupSetting} */
|
|
917
|
+
declare function OverlayPopupSetting(): OverlayPopupSetting;
|
|
918
|
+
type OverlayPopupSetting = {
|
|
919
|
+
/**
|
|
920
|
+
* - The dialog background color
|
|
921
|
+
*/
|
|
922
|
+
dialog_backgroung?: string;
|
|
923
|
+
/**
|
|
924
|
+
* - The overlay color
|
|
925
|
+
*/
|
|
926
|
+
overlay?: string;
|
|
520
927
|
};
|
|
521
|
-
/** @returns {
|
|
522
|
-
declare function
|
|
523
|
-
type
|
|
524
|
-
global_config?: any;
|
|
525
|
-
name?: string;
|
|
526
|
-
page?: ConfigPage[];
|
|
527
|
-
};
|
|
528
|
-
/** @returns {Medium} */
|
|
529
|
-
declare function Medium(): Medium;
|
|
530
|
-
type Medium = {
|
|
531
|
-
file?: string;
|
|
532
|
-
name?: string;
|
|
533
|
-
};
|
|
534
|
-
/** @returns {PaginationSchema} */
|
|
535
|
-
declare function PaginationSchema(): PaginationSchema;
|
|
536
|
-
type PaginationSchema = {
|
|
928
|
+
/** @returns {Page} */
|
|
929
|
+
declare function Page(): Page;
|
|
930
|
+
type Page = {
|
|
537
931
|
current?: number;
|
|
538
932
|
has_next?: boolean;
|
|
933
|
+
has_previous?: boolean;
|
|
539
934
|
item_total?: number;
|
|
935
|
+
next_id?: string;
|
|
540
936
|
size?: number;
|
|
541
|
-
type
|
|
937
|
+
type: string;
|
|
938
|
+
};
|
|
939
|
+
/** @returns {PaletteConfig} */
|
|
940
|
+
declare function PaletteConfig(): PaletteConfig;
|
|
941
|
+
type PaletteConfig = {
|
|
942
|
+
advance_setting?: AdvanceSetting;
|
|
943
|
+
general_setting?: GeneralSetting;
|
|
944
|
+
};
|
|
945
|
+
/** @returns {Predicate} */
|
|
946
|
+
declare function Predicate(): Predicate;
|
|
947
|
+
type Predicate = {
|
|
948
|
+
route?: Route;
|
|
949
|
+
screen?: Screen;
|
|
950
|
+
user?: ThemeUserSchema;
|
|
542
951
|
};
|
|
543
952
|
/** @returns {Preset} */
|
|
544
953
|
declare function Preset(): Preset;
|
|
545
954
|
type Preset = {
|
|
546
|
-
pages?:
|
|
955
|
+
pages?: Page[];
|
|
547
956
|
};
|
|
548
|
-
/** @returns {
|
|
549
|
-
declare function
|
|
550
|
-
type
|
|
551
|
-
|
|
957
|
+
/** @returns {Prop} */
|
|
958
|
+
declare function Prop(): Prop;
|
|
959
|
+
type Prop = {
|
|
960
|
+
/**
|
|
961
|
+
* - The category of the property
|
|
962
|
+
*/
|
|
963
|
+
category?: string;
|
|
964
|
+
/**
|
|
965
|
+
* - The ID of the property
|
|
966
|
+
*/
|
|
967
|
+
id?: string;
|
|
968
|
+
/**
|
|
969
|
+
* - Additional information about the property
|
|
970
|
+
*/
|
|
971
|
+
info?: string;
|
|
972
|
+
/**
|
|
973
|
+
* - The label of the property
|
|
974
|
+
*/
|
|
975
|
+
label?: string;
|
|
976
|
+
/**
|
|
977
|
+
* - The type of the property
|
|
978
|
+
*/
|
|
979
|
+
type?: string;
|
|
980
|
+
};
|
|
981
|
+
/** @returns {RangeProp} */
|
|
982
|
+
declare function RangeProp(): RangeProp;
|
|
983
|
+
type RangeProp = {
|
|
984
|
+
/**
|
|
985
|
+
* - The type of the property.
|
|
986
|
+
*/
|
|
987
|
+
type?: string;
|
|
988
|
+
/**
|
|
989
|
+
* - The value of the range property.
|
|
990
|
+
*/
|
|
991
|
+
value?: number;
|
|
992
|
+
};
|
|
993
|
+
/** @returns {Release} */
|
|
994
|
+
declare function Release(): Release;
|
|
995
|
+
type Release = {
|
|
996
|
+
/**
|
|
997
|
+
* - The release notes of the theme
|
|
998
|
+
*/
|
|
999
|
+
notes?: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* - The version of the theme
|
|
1002
|
+
*/
|
|
1003
|
+
version?: string;
|
|
1004
|
+
};
|
|
1005
|
+
/** @returns {Route} */
|
|
1006
|
+
declare function Route(): Route;
|
|
1007
|
+
type Route = {
|
|
1008
|
+
/**
|
|
1009
|
+
* - The exact URL of the route.
|
|
1010
|
+
*/
|
|
1011
|
+
exact_url?: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* - The selected route.
|
|
1014
|
+
*/
|
|
1015
|
+
selected?: string;
|
|
1016
|
+
};
|
|
1017
|
+
/** @returns {SaleDiscountSetting} */
|
|
1018
|
+
declare function SaleDiscountSetting(): SaleDiscountSetting;
|
|
1019
|
+
type SaleDiscountSetting = {
|
|
1020
|
+
/**
|
|
1021
|
+
* - The sale badge background color
|
|
1022
|
+
*/
|
|
1023
|
+
sale_badge_background?: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* - The sale badge text color
|
|
1026
|
+
*/
|
|
1027
|
+
sale_badge_text?: string;
|
|
1028
|
+
/**
|
|
1029
|
+
* - The sale discount text color
|
|
1030
|
+
*/
|
|
1031
|
+
sale_discount_text?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* - The sale timer color
|
|
1034
|
+
*/
|
|
1035
|
+
sale_timer?: string;
|
|
1036
|
+
};
|
|
1037
|
+
/** @returns {Screen} */
|
|
1038
|
+
declare function Screen(): Screen;
|
|
1039
|
+
type Screen = {
|
|
1040
|
+
/**
|
|
1041
|
+
* - True if the screen is a desktop device.
|
|
1042
|
+
*/
|
|
1043
|
+
desktop?: boolean;
|
|
1044
|
+
/**
|
|
1045
|
+
* - True if the screen is a mobile device.
|
|
1046
|
+
*/
|
|
1047
|
+
mobile?: boolean;
|
|
1048
|
+
/**
|
|
1049
|
+
* - True if the screen is a tablet device.
|
|
1050
|
+
*/
|
|
1051
|
+
tablet?: boolean;
|
|
1052
|
+
};
|
|
1053
|
+
/** @returns {Section} */
|
|
1054
|
+
declare function Section(): Section;
|
|
1055
|
+
type Section = {
|
|
1056
|
+
blocks?: Block[];
|
|
1057
|
+
/**
|
|
1058
|
+
* - The name of the section.
|
|
1059
|
+
*/
|
|
1060
|
+
name?: string;
|
|
1061
|
+
predicate?: Predicate;
|
|
1062
|
+
preset?: SectionPreset;
|
|
1063
|
+
props?: SectionProps;
|
|
1064
|
+
};
|
|
1065
|
+
/** @returns {SectionItem} */
|
|
1066
|
+
declare function SectionItem(): SectionItem;
|
|
1067
|
+
type SectionItem = {
|
|
1068
|
+
/**
|
|
1069
|
+
* - Blocks
|
|
1070
|
+
*/
|
|
1071
|
+
blocks?: any[];
|
|
1072
|
+
/**
|
|
1073
|
+
* - Label for the section
|
|
1074
|
+
*/
|
|
1075
|
+
label?: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* - Name of the section
|
|
1078
|
+
*/
|
|
552
1079
|
name?: string;
|
|
1080
|
+
props?: any[];
|
|
1081
|
+
};
|
|
1082
|
+
/** @returns {SectionPreset} */
|
|
1083
|
+
declare function SectionPreset(): SectionPreset;
|
|
1084
|
+
type SectionPreset = {
|
|
1085
|
+
blocks?: Block[];
|
|
1086
|
+
};
|
|
1087
|
+
/** @returns {SectionProps} */
|
|
1088
|
+
declare function SectionProps(): SectionProps;
|
|
1089
|
+
type SectionProps = {
|
|
1090
|
+
autoplay?: CheckboxProp;
|
|
1091
|
+
item_margin?: TextProp;
|
|
1092
|
+
slide_interval?: RangeProp;
|
|
1093
|
+
title?: TextProp;
|
|
1094
|
+
};
|
|
1095
|
+
/** @returns {StaticConfig} */
|
|
1096
|
+
declare function StaticConfig(): StaticConfig;
|
|
1097
|
+
type StaticConfig = {
|
|
1098
|
+
props?: StaticProps;
|
|
1099
|
+
};
|
|
1100
|
+
/** @returns {StaticProps} */
|
|
1101
|
+
declare function StaticProps(): StaticProps;
|
|
1102
|
+
type StaticProps = {
|
|
1103
|
+
auth?: AuthConfig;
|
|
1104
|
+
colors?: Colors;
|
|
553
1105
|
};
|
|
554
|
-
/** @returns {
|
|
555
|
-
declare function
|
|
556
|
-
type
|
|
557
|
-
|
|
1106
|
+
/** @returns {TextProp} */
|
|
1107
|
+
declare function TextProp(): TextProp;
|
|
1108
|
+
type TextProp = {
|
|
1109
|
+
/**
|
|
1110
|
+
* - The type of the property.
|
|
1111
|
+
*/
|
|
1112
|
+
type?: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* - The value of the text property.
|
|
1115
|
+
*/
|
|
1116
|
+
value?: string;
|
|
558
1117
|
};
|
|
559
|
-
/** @returns {
|
|
560
|
-
declare function
|
|
561
|
-
type
|
|
562
|
-
|
|
1118
|
+
/** @returns {TextSetting} */
|
|
1119
|
+
declare function TextSetting(): TextSetting;
|
|
1120
|
+
type TextSetting = {
|
|
1121
|
+
/**
|
|
1122
|
+
* - The text body color
|
|
1123
|
+
*/
|
|
1124
|
+
text_body?: string;
|
|
1125
|
+
/**
|
|
1126
|
+
* - The text heading color
|
|
1127
|
+
*/
|
|
1128
|
+
text_heading?: string;
|
|
1129
|
+
/**
|
|
1130
|
+
* - The text label color
|
|
1131
|
+
*/
|
|
1132
|
+
text_label?: string;
|
|
1133
|
+
/**
|
|
1134
|
+
* - The secondary text color
|
|
1135
|
+
*/
|
|
1136
|
+
text_secondary?: string;
|
|
1137
|
+
};
|
|
1138
|
+
/** @returns {ThemeConfiguration} */
|
|
1139
|
+
declare function ThemeConfiguration(): ThemeConfiguration;
|
|
1140
|
+
type ThemeConfiguration = {
|
|
1141
|
+
custom?: CustomConfig;
|
|
1142
|
+
global_config?: GlobalConfig;
|
|
1143
|
+
/**
|
|
1144
|
+
* - The name of the configuration
|
|
1145
|
+
*/
|
|
563
1146
|
name?: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* - An array of pages
|
|
1149
|
+
*/
|
|
1150
|
+
page?: string[];
|
|
564
1151
|
};
|
|
565
|
-
/** @returns {
|
|
566
|
-
declare function
|
|
567
|
-
type
|
|
568
|
-
|
|
1152
|
+
/** @returns {ThemePayment} */
|
|
1153
|
+
declare function ThemePayment(): ThemePayment;
|
|
1154
|
+
type ThemePayment = {
|
|
1155
|
+
/**
|
|
1156
|
+
* - The amount of the theme
|
|
1157
|
+
*/
|
|
1158
|
+
amount?: number;
|
|
1159
|
+
/**
|
|
1160
|
+
* - Whether the theme is paid or not
|
|
1161
|
+
*/
|
|
1162
|
+
is_paid?: boolean;
|
|
569
1163
|
};
|
|
570
|
-
/** @returns {
|
|
571
|
-
declare function
|
|
572
|
-
type
|
|
573
|
-
|
|
574
|
-
|
|
1164
|
+
/** @returns {ThemeSetting} */
|
|
1165
|
+
declare function ThemeSetting(): ThemeSetting;
|
|
1166
|
+
type ThemeSetting = {
|
|
1167
|
+
/**
|
|
1168
|
+
* - The page background color
|
|
1169
|
+
*/
|
|
1170
|
+
page_background?: string;
|
|
1171
|
+
/**
|
|
1172
|
+
* - The theme accent color
|
|
1173
|
+
*/
|
|
1174
|
+
theme_accent?: string;
|
|
575
1175
|
};
|
|
576
1176
|
/** @returns {ThemesSchema} */
|
|
577
1177
|
declare function ThemesSchema(): ThemesSchema;
|
|
578
1178
|
type ThemesSchema = {
|
|
579
|
-
|
|
1179
|
+
/**
|
|
1180
|
+
* - The unique identifier of the theme
|
|
1181
|
+
*/
|
|
580
1182
|
_id?: string;
|
|
581
|
-
|
|
1183
|
+
/**
|
|
1184
|
+
* - The ID of the application
|
|
1185
|
+
*/
|
|
1186
|
+
application_id?: string;
|
|
1187
|
+
/**
|
|
1188
|
+
* - Whether the theme has been applied or not
|
|
1189
|
+
*/
|
|
582
1190
|
applied?: boolean;
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
1191
|
+
assets?: Assets;
|
|
1192
|
+
/**
|
|
1193
|
+
* - Available sections information
|
|
1194
|
+
*/
|
|
1195
|
+
available_sections?: SectionItem[];
|
|
587
1196
|
config?: Config;
|
|
1197
|
+
/**
|
|
1198
|
+
* - The creation timestamp of the theme
|
|
1199
|
+
*/
|
|
588
1200
|
created_at?: string;
|
|
589
|
-
customized?: boolean;
|
|
590
1201
|
font?: Font;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
1202
|
+
/**
|
|
1203
|
+
* - Whether the theme is private or not
|
|
1204
|
+
*/
|
|
1205
|
+
is_private?: boolean;
|
|
1206
|
+
/**
|
|
1207
|
+
* - The ID of the theme in the marketplace
|
|
1208
|
+
*/
|
|
1209
|
+
marketplace_theme_id?: string;
|
|
1210
|
+
meta?: Meta;
|
|
1211
|
+
/**
|
|
1212
|
+
* - The name of the theme
|
|
1213
|
+
*/
|
|
1214
|
+
name?: string;
|
|
1215
|
+
/**
|
|
1216
|
+
* - The styles associated with the theme
|
|
1217
|
+
*/
|
|
596
1218
|
styles?: any;
|
|
1219
|
+
/**
|
|
1220
|
+
* - An array of tags associated with the theme
|
|
1221
|
+
*/
|
|
597
1222
|
tags?: string[];
|
|
1223
|
+
/**
|
|
1224
|
+
* - The ID of the template theme
|
|
1225
|
+
*/
|
|
1226
|
+
template_theme_id?: string;
|
|
1227
|
+
/**
|
|
1228
|
+
* - The last update timestamp of the theme
|
|
1229
|
+
*/
|
|
598
1230
|
updated_at?: string;
|
|
1231
|
+
/**
|
|
1232
|
+
* - The version of the theme
|
|
1233
|
+
*/
|
|
599
1234
|
version?: string;
|
|
600
1235
|
};
|
|
601
|
-
/** @returns {
|
|
602
|
-
declare function
|
|
603
|
-
type
|
|
604
|
-
|
|
1236
|
+
/** @returns {ThemeUserSchema} */
|
|
1237
|
+
declare function ThemeUserSchema(): ThemeUserSchema;
|
|
1238
|
+
type ThemeUserSchema = {
|
|
1239
|
+
/**
|
|
1240
|
+
* - True if the user is anonymous.
|
|
1241
|
+
*/
|
|
1242
|
+
anonymous?: boolean;
|
|
1243
|
+
/**
|
|
1244
|
+
* - True if the user is authenticated.
|
|
1245
|
+
*/
|
|
1246
|
+
authenticated?: boolean;
|
|
1247
|
+
};
|
|
1248
|
+
/** @returns {UMDJs} */
|
|
1249
|
+
declare function UMDJs(): UMDJs;
|
|
1250
|
+
type UMDJs = {
|
|
605
1251
|
links?: string[];
|
|
606
1252
|
};
|
|
607
|
-
/** @returns {
|
|
608
|
-
declare function
|
|
609
|
-
type
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
/**
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
1253
|
+
/** @returns {UrlProp} */
|
|
1254
|
+
declare function UrlProp(): UrlProp;
|
|
1255
|
+
type UrlProp = {
|
|
1256
|
+
/**
|
|
1257
|
+
* - The type of the property.
|
|
1258
|
+
*/
|
|
1259
|
+
type?: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* - The value of the URL property.
|
|
1262
|
+
*/
|
|
1263
|
+
value?: string;
|
|
1264
|
+
};
|
|
1265
|
+
/** @returns {UserAlertsSetting} */
|
|
1266
|
+
declare function UserAlertsSetting(): UserAlertsSetting;
|
|
1267
|
+
type UserAlertsSetting = {
|
|
1268
|
+
/**
|
|
1269
|
+
* - The error background color
|
|
1270
|
+
*/
|
|
1271
|
+
error_background?: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* - The error text color
|
|
1274
|
+
*/
|
|
1275
|
+
error_text?: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* - The info background color
|
|
1278
|
+
*/
|
|
1279
|
+
info_background?: string;
|
|
1280
|
+
/**
|
|
1281
|
+
* - The info text color
|
|
1282
|
+
*/
|
|
1283
|
+
info_text?: string;
|
|
1284
|
+
/**
|
|
1285
|
+
* - The success background color
|
|
1286
|
+
*/
|
|
1287
|
+
success_background?: string;
|
|
1288
|
+
/**
|
|
1289
|
+
* - The success text color
|
|
1290
|
+
*/
|
|
1291
|
+
success_text?: string;
|
|
622
1292
|
};
|