@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
- package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
- package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
- package/sdk/application/Content/ContentApplicationModel.js +757 -757
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
- package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
- package/sdk/application/Order/OrderApplicationModel.d.ts +846 -846
- package/sdk/application/Order/OrderApplicationModel.js +822 -822
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +2155 -2150
- package/sdk/application/Payment/PaymentApplicationModel.js +1460 -1458
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
- package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
- package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
- package/sdk/application/User/UserApplicationModel.d.ts +762 -762
- package/sdk/application/User/UserApplicationModel.js +738 -738
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
- package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
- package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
- package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
- package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
- package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -1013
- package/sdk/platform/Catalog/CatalogPlatformModel.js +923 -923
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1833 -1833
- package/sdk/platform/Content/ContentPlatformModel.js +1837 -1837
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
- package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +865 -865
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +877 -877
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
- package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
- package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5180 -5176
- package/sdk/platform/Order/OrderPlatformModel.js +4740 -4736
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2670 -2660
- package/sdk/platform/Payment/PaymentPlatformModel.js +1831 -1827
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1505 -1507
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1532 -1536
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
- package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
- package/sdk/platform/User/UserPlatformModel.d.ts +758 -758
- package/sdk/platform/User/UserPlatformModel.js +643 -643
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
- package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
- package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
- package/sdk/public/Billing/BillingPublicModel.js +51 -51
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
- package/sdk/public/Content/ContentPublicModel.js +28 -28
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
- package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
|
@@ -1,165 +1,161 @@
|
|
|
1
1
|
export = ThemeApplicationModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
4
|
-
* @property {
|
|
5
|
-
* @property {ActionPage} [popup]
|
|
6
|
-
* @property {string} [type]
|
|
3
|
+
* @typedef AllAvailablePageSchema
|
|
4
|
+
* @property {AvailablePageSchema[]} [pages]
|
|
7
5
|
*/
|
|
8
6
|
/**
|
|
9
|
-
* @typedef
|
|
10
|
-
* @property {
|
|
11
|
-
* @property {
|
|
12
|
-
* @property {
|
|
13
|
-
* @property {string} [
|
|
7
|
+
* @typedef AvailablePageSchema
|
|
8
|
+
* @property {string} [value]
|
|
9
|
+
* @property {string} [text]
|
|
10
|
+
* @property {string} [path]
|
|
11
|
+
* @property {string} [type]
|
|
12
|
+
* @property {AvailablePageSchemaSections[]} [sections]
|
|
13
|
+
* @property {AvailablePageSectionMetaAttributes[]} [sections_meta]
|
|
14
|
+
* @property {string} [theme]
|
|
15
|
+
* @property {AvailablePageSeo} [seo]
|
|
16
|
+
* @property {Object[]} [props]
|
|
17
|
+
* @property {string} [_id]
|
|
14
18
|
*/
|
|
15
19
|
/**
|
|
16
|
-
* @typedef
|
|
17
|
-
* @property {
|
|
18
|
-
* @property {OverlayPopupSetting} [overlay_popup]
|
|
19
|
-
* @property {UserAlertsSetting} [user_alerts]
|
|
20
|
+
* @typedef AvailablePageSectionMetaAttributes
|
|
21
|
+
* @property {Object} [attributes]
|
|
20
22
|
*/
|
|
21
23
|
/**
|
|
22
|
-
* @typedef
|
|
23
|
-
* @property {
|
|
24
|
+
* @typedef SEOMetaItem
|
|
25
|
+
* @property {string} [title]
|
|
26
|
+
* @property {SEOMetaItems[]} [items]
|
|
24
27
|
*/
|
|
25
28
|
/**
|
|
26
|
-
* @typedef
|
|
27
|
-
* @property {
|
|
28
|
-
* @property {
|
|
29
|
-
* @property {UMDJs} [umd_js]
|
|
29
|
+
* @typedef SEOMetaItems
|
|
30
|
+
* @property {string} [key]
|
|
31
|
+
* @property {string} [value]
|
|
30
32
|
*/
|
|
31
33
|
/**
|
|
32
|
-
* @typedef
|
|
33
|
-
* @property {
|
|
34
|
-
* @property {
|
|
34
|
+
* @typedef SEOSitemap
|
|
35
|
+
* @property {number} [priority]
|
|
36
|
+
* @property {string} [frequency]
|
|
35
37
|
*/
|
|
36
38
|
/**
|
|
37
|
-
* @typedef
|
|
38
|
-
* @property {
|
|
39
|
-
* @property {
|
|
40
|
-
* @property {boolean} [web] - Section visibility on web platform
|
|
39
|
+
* @typedef SEObreadcrumb
|
|
40
|
+
* @property {string} [url]
|
|
41
|
+
* @property {Action} [action]
|
|
41
42
|
*/
|
|
42
43
|
/**
|
|
43
|
-
* @typedef
|
|
44
|
-
* @property {
|
|
45
|
-
* @property {
|
|
46
|
-
* @property {
|
|
47
|
-
* @property {AvailablePageScreenPredicate} [screen]
|
|
48
|
-
* @property {AvailablePageUserPredicate} [user]
|
|
49
|
-
* @property {string[]} [zones] - An array of zone ids associated with the section
|
|
44
|
+
* @typedef Action
|
|
45
|
+
* @property {ActionPage} [page]
|
|
46
|
+
* @property {ActionPage} [popup]
|
|
47
|
+
* @property {string} [type]
|
|
50
48
|
*/
|
|
51
49
|
/**
|
|
52
|
-
* @typedef
|
|
53
|
-
* @property {
|
|
50
|
+
* @typedef ActionPage
|
|
51
|
+
* @property {Object} [params]
|
|
54
52
|
* @property {Object} [query]
|
|
55
|
-
* @property {string} [
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @typedef AvailablePageSchedulePredicate
|
|
59
|
-
* @property {string} [cron]
|
|
60
|
-
* @property {string} [end]
|
|
61
|
-
* @property {string} [start]
|
|
53
|
+
* @property {string} [url]
|
|
54
|
+
* @property {PageType} type
|
|
62
55
|
*/
|
|
63
56
|
/**
|
|
64
|
-
* @typedef
|
|
57
|
+
* @typedef AvailablePageSeo
|
|
58
|
+
* @property {string} [title]
|
|
59
|
+
* @property {string} [description]
|
|
60
|
+
* @property {string} [canonical_url]
|
|
61
|
+
* @property {SEOMetaItem[]} [meta_tags]
|
|
62
|
+
* @property {SEOSitemap} [sitemap]
|
|
63
|
+
* @property {SEObreadcrumb[]} [breadcrumb]
|
|
65
64
|
* @property {string} [_id]
|
|
66
|
-
* @property {string} [path]
|
|
67
|
-
* @property {Object[]} [props]
|
|
68
|
-
* @property {AvailablePageSchemaSections[]} [sections]
|
|
69
|
-
* @property {AvailablePageSectionMetaAttributes[]} [sections_meta]
|
|
70
|
-
* @property {AvailablePageSeo} [seo]
|
|
71
|
-
* @property {string} [text]
|
|
72
|
-
* @property {string} [theme]
|
|
73
|
-
* @property {string} [type]
|
|
74
|
-
* @property {string} [value]
|
|
75
65
|
*/
|
|
76
66
|
/**
|
|
77
67
|
* @typedef AvailablePageSchemaSections
|
|
78
|
-
* @property {Object[]} [blocks]
|
|
79
|
-
* @property {string} [label]
|
|
80
68
|
* @property {string} [name]
|
|
81
|
-
* @property {
|
|
82
|
-
* @property {Object} [preset]
|
|
69
|
+
* @property {string} [label]
|
|
83
70
|
* @property {Object} [props]
|
|
71
|
+
* @property {Object[]} [blocks]
|
|
72
|
+
* @property {Object} [preset]
|
|
73
|
+
* @property {AvailablePagePredicate} [predicate]
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* @typedef AvailablePagePredicate
|
|
77
|
+
* @property {AvailablePageScreenPredicate} [screen]
|
|
78
|
+
* @property {AvailablePageUserPredicate} [user]
|
|
79
|
+
* @property {AvailablePageRoutePredicate} [route]
|
|
80
|
+
* @property {AvailablePageSchedulePredicate} [schedule]
|
|
81
|
+
* @property {AvailablePagePlatformPredicate} [platform]
|
|
82
|
+
* @property {string[]} [zones] - An array of zone ids associated with the section
|
|
84
83
|
*/
|
|
85
84
|
/**
|
|
86
85
|
* @typedef AvailablePageScreenPredicate
|
|
87
|
-
* @property {boolean} [desktop]
|
|
88
86
|
* @property {boolean} [mobile]
|
|
87
|
+
* @property {boolean} [desktop]
|
|
89
88
|
* @property {boolean} [tablet]
|
|
90
89
|
*/
|
|
91
|
-
/**
|
|
92
|
-
* @typedef AvailablePageSectionMetaAttributes
|
|
93
|
-
* @property {Object} [attributes]
|
|
94
|
-
*/
|
|
95
|
-
/**
|
|
96
|
-
* @typedef AvailablePageSeo
|
|
97
|
-
* @property {string} [_id]
|
|
98
|
-
* @property {SEObreadcrumb[]} [breadcrumb]
|
|
99
|
-
* @property {string} [canonical_url]
|
|
100
|
-
* @property {string} [description]
|
|
101
|
-
* @property {SEOMetaItem[]} [meta_tags]
|
|
102
|
-
* @property {SEOSitemap} [sitemap]
|
|
103
|
-
* @property {string} [title]
|
|
104
|
-
*/
|
|
105
90
|
/**
|
|
106
91
|
* @typedef AvailablePageUserPredicate
|
|
107
|
-
* @property {boolean} [anonymous]
|
|
108
92
|
* @property {boolean} [authenticated]
|
|
93
|
+
* @property {boolean} [anonymous]
|
|
109
94
|
*/
|
|
110
95
|
/**
|
|
111
|
-
* @typedef
|
|
112
|
-
* @property {string} [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
* @typedef BlitzkriegInternalServerErrorSchema
|
|
116
|
-
* @property {string} [message]
|
|
117
|
-
*/
|
|
118
|
-
/**
|
|
119
|
-
* @typedef Block
|
|
120
|
-
* @property {string} [name] - The name of the block.
|
|
121
|
-
* @property {BlockProps} [props]
|
|
122
|
-
* @property {string} [type] - The type of the block.
|
|
96
|
+
* @typedef AvailablePageRoutePredicate
|
|
97
|
+
* @property {string} [selected]
|
|
98
|
+
* @property {string} [exact_url]
|
|
99
|
+
* @property {Object} [query]
|
|
123
100
|
*/
|
|
124
101
|
/**
|
|
125
|
-
* @typedef
|
|
126
|
-
* @property {
|
|
127
|
-
* @property {
|
|
102
|
+
* @typedef AvailablePageSchedulePredicate
|
|
103
|
+
* @property {string} [cron]
|
|
104
|
+
* @property {string} [start]
|
|
105
|
+
* @property {string} [end]
|
|
128
106
|
*/
|
|
129
107
|
/**
|
|
130
|
-
* @typedef
|
|
131
|
-
* @property {
|
|
132
|
-
* @property {
|
|
133
|
-
* @property {
|
|
108
|
+
* @typedef ThemesSchema
|
|
109
|
+
* @property {Font} [font]
|
|
110
|
+
* @property {Config} [config]
|
|
111
|
+
* @property {boolean} [applied] - Whether the theme has been applied or not
|
|
112
|
+
* @property {boolean} [is_private] - Whether the theme is private or not
|
|
113
|
+
* @property {string[]} [tags] - An array of tags associated with the theme
|
|
114
|
+
* @property {string} [_id] - The unique identifier of the theme
|
|
115
|
+
* @property {string} [application_id] - The ID of the application
|
|
116
|
+
* @property {string} [marketplace_theme_id] - The ID of the theme in the marketplace
|
|
117
|
+
* @property {ThemeMeta} [meta]
|
|
118
|
+
* @property {string} [name] - The name of the theme
|
|
119
|
+
* @property {string} [template_theme_id] - The ID of the template theme
|
|
120
|
+
* @property {string} [version] - The version of the theme
|
|
121
|
+
* @property {Object} [styles] - The styles associated with the theme
|
|
122
|
+
* @property {string} [created_at] - The creation timestamp of the theme
|
|
123
|
+
* @property {string} [updated_at] - The last update timestamp of the theme
|
|
124
|
+
* @property {Assets} [assets]
|
|
125
|
+
* @property {SectionItem[]} [available_sections] - Available sections information
|
|
126
|
+
* @property {string} [theme_type]
|
|
127
|
+
* @property {number} [company_id] - The company id in which sales channel exists
|
|
134
128
|
*/
|
|
135
129
|
/**
|
|
136
|
-
* @typedef
|
|
137
|
-
* @property {
|
|
138
|
-
* @property {
|
|
130
|
+
* @typedef Font
|
|
131
|
+
* @property {FontVariants} variants
|
|
132
|
+
* @property {string} family - The font family
|
|
139
133
|
*/
|
|
140
134
|
/**
|
|
141
|
-
* @typedef
|
|
142
|
-
* @property {
|
|
143
|
-
* @property {
|
|
144
|
-
* @property {
|
|
145
|
-
* @property {
|
|
146
|
-
* @property {
|
|
147
|
-
* @property {string} [secondary_color] - The secondary color
|
|
135
|
+
* @typedef FontVariants
|
|
136
|
+
* @property {FontVariant} [light]
|
|
137
|
+
* @property {FontVariant} [regular]
|
|
138
|
+
* @property {FontVariant} [medium]
|
|
139
|
+
* @property {FontVariant} [semi_bold]
|
|
140
|
+
* @property {FontVariant} [bold]
|
|
148
141
|
*/
|
|
149
142
|
/**
|
|
150
|
-
* @typedef
|
|
151
|
-
* @property {string}
|
|
143
|
+
* @typedef FontVariant
|
|
144
|
+
* @property {string} name - The name of the font variant
|
|
145
|
+
* @property {string} file - The URL of the font file
|
|
152
146
|
*/
|
|
153
147
|
/**
|
|
154
148
|
* @typedef Config
|
|
155
149
|
* @property {string} current - The current configuration
|
|
156
|
-
* @property {GlobalSchema} [global_schema]
|
|
157
150
|
* @property {ThemeConfiguration[]} list - A list of configurations
|
|
151
|
+
* @property {GlobalSchema} [global_schema]
|
|
158
152
|
* @property {Preset} [preset]
|
|
159
153
|
*/
|
|
160
154
|
/**
|
|
161
|
-
* @typedef
|
|
162
|
-
* @property {string
|
|
155
|
+
* @typedef ThemeConfiguration
|
|
156
|
+
* @property {string} [name] - The name of the configuration
|
|
157
|
+
* @property {Object} [global_config]
|
|
158
|
+
* @property {string[]} [page] - An array of pages
|
|
163
159
|
*/
|
|
164
160
|
/**
|
|
165
161
|
* @typedef CustomConfig
|
|
@@ -167,106 +163,109 @@ export = ThemeApplicationModel;
|
|
|
167
163
|
*/
|
|
168
164
|
/**
|
|
169
165
|
* @typedef CustomProps
|
|
166
|
+
* @property {string} [header_bg_color] - The header background color
|
|
167
|
+
* @property {string} [header_text_color] - The header text color
|
|
168
|
+
* @property {string} [header_border_color] - The header border color
|
|
169
|
+
* @property {string} [header_icon_color] - The header icon color
|
|
170
|
+
* @property {string} [header_cart_notification_bg_color] - The header cart
|
|
171
|
+
* notification background color
|
|
172
|
+
* @property {string} [header_cart_notification_text_color] - The header cart
|
|
173
|
+
* notification text color
|
|
174
|
+
* @property {string} [header_nav_hover_color] - The header navigation hover color
|
|
175
|
+
* @property {string} [button_primary_color] - The primary button color
|
|
176
|
+
* @property {string} [button_primary_label_color] - The primary button label color
|
|
170
177
|
* @property {string} [button_add_to_cart_color] - The add to cart button color
|
|
171
178
|
* @property {string} [button_add_to_cart_label_color] - The add to cart button
|
|
172
179
|
* label color
|
|
173
|
-
* @property {string} [button_primary_color] - The primary button color
|
|
174
|
-
* @property {string} [button_primary_label_color] - The primary button label color
|
|
175
180
|
* @property {string} [button_secondary_color] - The secondary button color
|
|
176
181
|
* @property {string} [button_secondary_label_color] - The secondary button label color
|
|
177
182
|
* @property {string} [button_tertiary_color] - The tertiary button color
|
|
183
|
+
* @property {string} [button_tertiary_label_color] - The tertiary button label color
|
|
178
184
|
* @property {string} [button_tertiary_hover_color] - The tertiary button hover color
|
|
179
185
|
* @property {string} [button_tertiary_hover_text_color] - The tertiary button
|
|
180
186
|
* hover text color
|
|
181
|
-
* @property {string} [button_tertiary_label_color] - The tertiary button label color
|
|
182
|
-
* @property {boolean} [disable_cart] - Whether to disable the cart or not
|
|
183
|
-
* @property {string} [footer_bg_color] - The footer background color
|
|
184
|
-
* @property {string} [footer_border_color] - The footer border color
|
|
185
|
-
* @property {string} [footer_nav_hover_color] - The footer navigation hover color
|
|
186
|
-
* @property {string} [footer_text_color] - The footer text color
|
|
187
|
-
* @property {string} [header_bg_color] - The header background color
|
|
188
|
-
* @property {string} [header_border_color] - The header border color
|
|
189
|
-
* @property {string} [header_cart_notification_bg_color] - The header cart
|
|
190
|
-
* notification background color
|
|
191
|
-
* @property {string} [header_cart_notification_text_color] - The header cart
|
|
192
|
-
* notification text color
|
|
193
|
-
* @property {string} [header_icon_color] - The header icon color
|
|
194
|
-
* @property {string} [header_nav_hover_color] - The header navigation hover color
|
|
195
|
-
* @property {string} [header_text_color] - The header text color
|
|
196
|
-
* @property {boolean} [is_menu_below_logo] - Whether the menu is below the logo or not
|
|
197
|
-
* @property {string} [menu_position] - The position of the menu
|
|
198
|
-
* @property {string} [text_body_color] - The text body color
|
|
199
|
-
* @property {string} [text_discount_color] - The text discount color
|
|
200
187
|
* @property {string} [text_heading_link_color] - The text heading link color
|
|
188
|
+
* @property {string} [text_body_color] - The text body color
|
|
201
189
|
* @property {string} [text_price_color] - The text price color
|
|
202
190
|
* @property {string} [text_sale_price_color] - The text sale price color
|
|
203
191
|
* @property {string} [text_strikethrough_price_color] - The text strikethrough
|
|
204
192
|
* price color
|
|
193
|
+
* @property {string} [text_discount_color] - The text discount color
|
|
194
|
+
* @property {string} [footer_bg_color] - The footer background color
|
|
195
|
+
* @property {string} [footer_text_color] - The footer text color
|
|
196
|
+
* @property {string} [footer_border_color] - The footer border color
|
|
197
|
+
* @property {string} [footer_nav_hover_color] - The footer navigation hover color
|
|
198
|
+
* @property {boolean} [disable_cart] - Whether to disable the cart or not
|
|
199
|
+
* @property {boolean} [is_menu_below_logo] - Whether the menu is below the logo or not
|
|
200
|
+
* @property {string} [menu_position] - The position of the menu
|
|
205
201
|
*/
|
|
206
202
|
/**
|
|
207
|
-
* @typedef
|
|
208
|
-
* @property {
|
|
209
|
-
* @property {
|
|
203
|
+
* @typedef GlobalConfig
|
|
204
|
+
* @property {StaticConfig} [statics]
|
|
205
|
+
* @property {CustomConfig} [custom]
|
|
210
206
|
*/
|
|
211
207
|
/**
|
|
212
|
-
* @typedef
|
|
213
|
-
* @property {
|
|
214
|
-
* @property {
|
|
208
|
+
* @typedef GeneralSetting
|
|
209
|
+
* @property {ThemeSetting} [theme]
|
|
210
|
+
* @property {TextSetting} [text]
|
|
211
|
+
* @property {ButtonSetting} [button]
|
|
212
|
+
* @property {SaleDiscountSetting} [sale_discount]
|
|
213
|
+
* @property {HeaderSetting} [header]
|
|
214
|
+
* @property {FooterSetting} [footer]
|
|
215
215
|
*/
|
|
216
216
|
/**
|
|
217
|
-
* @typedef
|
|
218
|
-
* @property {
|
|
219
|
-
* @property {
|
|
217
|
+
* @typedef AdvanceSetting
|
|
218
|
+
* @property {OverlayPopupSetting} [overlay_popup]
|
|
219
|
+
* @property {DividerStrokeHighlightSetting} [divider_stroke_highlight]
|
|
220
|
+
* @property {UserAlertsSetting} [user_alerts]
|
|
220
221
|
*/
|
|
221
222
|
/**
|
|
222
|
-
* @typedef
|
|
223
|
-
* @property {
|
|
224
|
-
* @property {
|
|
225
|
-
* @property {
|
|
226
|
-
* @property {
|
|
227
|
-
* @property {
|
|
223
|
+
* @typedef UserAlertsSetting
|
|
224
|
+
* @property {string} [success_background] - The success background color
|
|
225
|
+
* @property {string} [success_text] - The success text color
|
|
226
|
+
* @property {string} [error_background] - The error background color
|
|
227
|
+
* @property {string} [error_text] - The error text color
|
|
228
|
+
* @property {string} [info_background] - The info background color
|
|
229
|
+
* @property {string} [info_text] - The info text color
|
|
228
230
|
*/
|
|
229
231
|
/**
|
|
230
|
-
* @typedef
|
|
231
|
-
* @property {string} [
|
|
232
|
-
* @property {string} [
|
|
233
|
-
* @property {string} [footer_bottom_background] - The footer bottom background color
|
|
234
|
-
* @property {string} [footer_heading_text] - The footer heading text color
|
|
235
|
-
* @property {string} [footer_icon] - The footer icon color
|
|
232
|
+
* @typedef ThemeSetting
|
|
233
|
+
* @property {string} [page_background] - The page background color
|
|
234
|
+
* @property {string} [theme_accent] - The theme accent color
|
|
236
235
|
*/
|
|
237
236
|
/**
|
|
238
|
-
* @typedef
|
|
239
|
-
* @property {
|
|
240
|
-
* @property {
|
|
241
|
-
* @property {
|
|
242
|
-
* @property {
|
|
243
|
-
* @property {TextSetting} [text]
|
|
244
|
-
* @property {ThemeSetting} [theme]
|
|
237
|
+
* @typedef TextSetting
|
|
238
|
+
* @property {string} [text_heading] - The text heading color
|
|
239
|
+
* @property {string} [text_body] - The text body color
|
|
240
|
+
* @property {string} [text_label] - The text label color
|
|
241
|
+
* @property {string} [text_secondary] - The secondary text color
|
|
245
242
|
*/
|
|
246
243
|
/**
|
|
247
|
-
* @typedef
|
|
248
|
-
* @property {
|
|
249
|
-
* @property {
|
|
244
|
+
* @typedef ButtonSetting
|
|
245
|
+
* @property {string} [button_primary] - The primary button color
|
|
246
|
+
* @property {string} [button_secondary] - The secondary button color
|
|
247
|
+
* @property {string} [button_link] - The button link color
|
|
250
248
|
*/
|
|
251
249
|
/**
|
|
252
|
-
* @typedef
|
|
253
|
-
* @property {
|
|
250
|
+
* @typedef SaleDiscountSetting
|
|
251
|
+
* @property {string} [sale_badge_background] - The sale badge background color
|
|
252
|
+
* @property {string} [sale_badge_text] - The sale badge text color
|
|
253
|
+
* @property {string} [sale_discount_text] - The sale discount text color
|
|
254
|
+
* @property {string} [sale_timer] - The sale timer color
|
|
254
255
|
*/
|
|
255
256
|
/**
|
|
256
257
|
* @typedef HeaderSetting
|
|
257
258
|
* @property {string} [header_background] - The header background color
|
|
258
|
-
* @property {string} [header_icon] - The header icon color
|
|
259
259
|
* @property {string} [header_nav] - The header navigation color
|
|
260
|
+
* @property {string} [header_icon] - The header icon color
|
|
260
261
|
*/
|
|
261
262
|
/**
|
|
262
|
-
* @typedef
|
|
263
|
-
* @property {string} [
|
|
264
|
-
* @property {string} [
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
* @
|
|
268
|
-
* @property {string} [desktop] - The URL of the desktop image
|
|
269
|
-
* @property {string} [mobile] - The URL of the mobile image
|
|
263
|
+
* @typedef FooterSetting
|
|
264
|
+
* @property {string} [footer_background] - The footer background color
|
|
265
|
+
* @property {string} [footer_bottom_background] - The footer bottom background color
|
|
266
|
+
* @property {string} [footer_heading_text] - The footer heading text color
|
|
267
|
+
* @property {string} [footer_body_text] - The footer body text color
|
|
268
|
+
* @property {string} [footer_icon] - The footer icon color
|
|
270
269
|
*/
|
|
271
270
|
/**
|
|
272
271
|
* @typedef OverlayPopupSetting
|
|
@@ -274,42 +273,53 @@ export = ThemeApplicationModel;
|
|
|
274
273
|
* @property {string} [overlay] - The overlay color
|
|
275
274
|
*/
|
|
276
275
|
/**
|
|
277
|
-
* @typedef
|
|
278
|
-
* @property {
|
|
279
|
-
* @property {
|
|
280
|
-
* @property {boolean} [has_previous]
|
|
281
|
-
* @property {number} [item_total]
|
|
282
|
-
* @property {string} [next_id]
|
|
283
|
-
* @property {number} [size]
|
|
284
|
-
* @property {string} type
|
|
276
|
+
* @typedef DividerStrokeHighlightSetting
|
|
277
|
+
* @property {string} [divider_strokes] - The divider strokes color
|
|
278
|
+
* @property {string} [highlight] - The highlight color
|
|
285
279
|
*/
|
|
286
280
|
/**
|
|
287
|
-
* @typedef
|
|
288
|
-
* @property {
|
|
289
|
-
* @property {GeneralSetting} [general_setting]
|
|
281
|
+
* @typedef StaticConfig
|
|
282
|
+
* @property {StaticProps} [props]
|
|
290
283
|
*/
|
|
291
284
|
/**
|
|
292
|
-
* @typedef
|
|
293
|
-
* @property {
|
|
294
|
-
* @property {
|
|
295
|
-
* @property {
|
|
285
|
+
* @typedef StaticProps
|
|
286
|
+
* @property {Colors} [colors]
|
|
287
|
+
* @property {AuthConfig} [auth]
|
|
288
|
+
* @property {PaletteConfig} [palette]
|
|
296
289
|
*/
|
|
297
290
|
/**
|
|
298
|
-
* @typedef
|
|
299
|
-
* @property {
|
|
291
|
+
* @typedef Colors
|
|
292
|
+
* @property {string} [primary_color] - The primary color
|
|
293
|
+
* @property {string} [secondary_color] - The secondary color
|
|
294
|
+
* @property {string} [accent_color] - The accent color
|
|
295
|
+
* @property {string} [link_color] - The link color
|
|
296
|
+
* @property {string} [button_secondary_color] - The secondary button color
|
|
297
|
+
* @property {string} [bg_color] - The background color
|
|
300
298
|
*/
|
|
301
299
|
/**
|
|
302
|
-
* @typedef
|
|
303
|
-
* @property {
|
|
304
|
-
* @property {
|
|
305
|
-
* @property {string} [info] - Additional information about the property
|
|
306
|
-
* @property {string} [label] - The label of the property
|
|
307
|
-
* @property {string} [type] - The type of the property
|
|
300
|
+
* @typedef AuthConfig
|
|
301
|
+
* @property {boolean} [show_header_auth] - Whether to show header authentication or not
|
|
302
|
+
* @property {boolean} [show_footer_auth] - Whether to show footer authentication or not
|
|
308
303
|
*/
|
|
309
304
|
/**
|
|
310
|
-
* @typedef
|
|
311
|
-
* @property {
|
|
312
|
-
* @property {
|
|
305
|
+
* @typedef PaletteConfig
|
|
306
|
+
* @property {GeneralSetting} [general_setting]
|
|
307
|
+
* @property {AdvanceSetting} [advance_setting]
|
|
308
|
+
*/
|
|
309
|
+
/**
|
|
310
|
+
* @typedef ThemeMeta
|
|
311
|
+
* @property {ThemePayment} [payment]
|
|
312
|
+
* @property {string} [description] - The description of the theme
|
|
313
|
+
* @property {string[]} [industry] - An array of industries associated with the theme
|
|
314
|
+
* @property {Release} [release]
|
|
315
|
+
* @property {Images} [images]
|
|
316
|
+
* @property {string} [slug] - The slug of the theme
|
|
317
|
+
* @property {string} [name] - The name of the theme
|
|
318
|
+
*/
|
|
319
|
+
/**
|
|
320
|
+
* @typedef ThemePayment
|
|
321
|
+
* @property {boolean} [is_paid] - Whether the theme is paid or not
|
|
322
|
+
* @property {number} [amount] - The amount of the theme
|
|
313
323
|
*/
|
|
314
324
|
/**
|
|
315
325
|
* @typedef Release
|
|
@@ -317,161 +327,151 @@ export = ThemeApplicationModel;
|
|
|
317
327
|
* @property {string} [version] - The version of the theme
|
|
318
328
|
*/
|
|
319
329
|
/**
|
|
320
|
-
* @typedef
|
|
321
|
-
* @property {string} [
|
|
322
|
-
* @property {string} [
|
|
330
|
+
* @typedef Images
|
|
331
|
+
* @property {string} [desktop] - The URL of the desktop image
|
|
332
|
+
* @property {string} [mobile] - The URL of the mobile image
|
|
323
333
|
*/
|
|
324
334
|
/**
|
|
325
|
-
* @typedef
|
|
326
|
-
* @property {
|
|
327
|
-
* @property {
|
|
328
|
-
* @property {
|
|
329
|
-
* @property {string} [sale_timer] - The sale timer color
|
|
335
|
+
* @typedef Assets
|
|
336
|
+
* @property {UMDJs} [umd_js]
|
|
337
|
+
* @property {CommonJS} [common_js]
|
|
338
|
+
* @property {CSS} [css]
|
|
330
339
|
*/
|
|
331
340
|
/**
|
|
332
|
-
* @typedef
|
|
333
|
-
* @property {
|
|
334
|
-
* @property {boolean} [mobile] - True if the screen is a mobile device.
|
|
335
|
-
* @property {boolean} [tablet] - True if the screen is a tablet device.
|
|
341
|
+
* @typedef UMDJs
|
|
342
|
+
* @property {string[]} [links]
|
|
336
343
|
*/
|
|
337
344
|
/**
|
|
338
|
-
* @typedef
|
|
339
|
-
* @property {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
* @
|
|
343
|
-
* @property {
|
|
345
|
+
* @typedef CommonJS
|
|
346
|
+
* @property {string} [link]
|
|
347
|
+
*/
|
|
348
|
+
/**
|
|
349
|
+
* @typedef CSS
|
|
350
|
+
* @property {string[]} [links]
|
|
344
351
|
*/
|
|
345
352
|
/**
|
|
346
353
|
* @typedef SectionItem
|
|
354
|
+
* @property {Object[]} [props]
|
|
347
355
|
* @property {Object[]} [blocks] - Blocks
|
|
348
|
-
* @property {string} [label] - Label for the section
|
|
349
356
|
* @property {string} [name] - Name of the section
|
|
350
|
-
* @property {
|
|
357
|
+
* @property {string} [label] - Label for the section
|
|
351
358
|
*/
|
|
352
359
|
/**
|
|
353
|
-
* @typedef
|
|
354
|
-
* @property {
|
|
360
|
+
* @typedef GlobalSchema
|
|
361
|
+
* @property {Prop[]} [props]
|
|
355
362
|
*/
|
|
356
363
|
/**
|
|
357
|
-
* @typedef
|
|
358
|
-
* @property {
|
|
359
|
-
* @property {
|
|
360
|
-
* @property {
|
|
361
|
-
* @property {
|
|
364
|
+
* @typedef Prop
|
|
365
|
+
* @property {string} [type] - The type of the property
|
|
366
|
+
* @property {string} [category] - The category of the property
|
|
367
|
+
* @property {string} [id] - The ID of the property
|
|
368
|
+
* @property {string} [label] - The label of the property
|
|
369
|
+
* @property {string} [info] - Additional information about the property
|
|
362
370
|
*/
|
|
363
371
|
/**
|
|
364
|
-
* @typedef
|
|
365
|
-
* @property {
|
|
366
|
-
* @property {string} [url]
|
|
372
|
+
* @typedef Preset
|
|
373
|
+
* @property {Page[]} [pages]
|
|
367
374
|
*/
|
|
368
375
|
/**
|
|
369
|
-
* @typedef
|
|
370
|
-
* @property {
|
|
371
|
-
* @property {string} [
|
|
376
|
+
* @typedef Page
|
|
377
|
+
* @property {number} [item_total]
|
|
378
|
+
* @property {string} [next_id]
|
|
379
|
+
* @property {boolean} [has_previous]
|
|
380
|
+
* @property {boolean} [has_next]
|
|
381
|
+
* @property {number} [current]
|
|
382
|
+
* @property {string} type
|
|
383
|
+
* @property {number} [size]
|
|
372
384
|
*/
|
|
373
385
|
/**
|
|
374
|
-
* @typedef
|
|
375
|
-
* @property {
|
|
376
|
-
* @property {
|
|
386
|
+
* @typedef SectionProps
|
|
387
|
+
* @property {TextProp} [title]
|
|
388
|
+
* @property {TextProp} [item_margin]
|
|
389
|
+
* @property {CheckboxProp} [autoplay]
|
|
390
|
+
* @property {RangeProp} [slide_interval]
|
|
377
391
|
*/
|
|
378
392
|
/**
|
|
379
|
-
* @typedef
|
|
380
|
-
* @property {
|
|
381
|
-
* @property {number} [priority]
|
|
393
|
+
* @typedef SectionPreset
|
|
394
|
+
* @property {Block[]} [blocks]
|
|
382
395
|
*/
|
|
383
396
|
/**
|
|
384
|
-
* @typedef
|
|
385
|
-
* @property {
|
|
397
|
+
* @typedef ImagePickerProp
|
|
398
|
+
* @property {string} [type] - The type of the property.
|
|
399
|
+
* @property {string} [value] - The value of the image picker property.
|
|
386
400
|
*/
|
|
387
401
|
/**
|
|
388
|
-
* @typedef
|
|
389
|
-
* @property {
|
|
390
|
-
* @property {
|
|
391
|
-
|
|
402
|
+
* @typedef UrlProp
|
|
403
|
+
* @property {string} [type] - The type of the property.
|
|
404
|
+
* @property {string} [value] - The value of the URL property.
|
|
405
|
+
*/
|
|
406
|
+
/**
|
|
407
|
+
* @typedef BlockProps
|
|
408
|
+
* @property {ImagePickerProp} [image]
|
|
409
|
+
* @property {UrlProp} [slide_link]
|
|
392
410
|
*/
|
|
393
411
|
/**
|
|
394
412
|
* @typedef TextProp
|
|
395
|
-
* @property {string} [type] - The type of the property.
|
|
396
413
|
* @property {string} [value] - The value of the text property.
|
|
414
|
+
* @property {string} [type] - The type of the property.
|
|
397
415
|
*/
|
|
398
416
|
/**
|
|
399
|
-
* @typedef
|
|
400
|
-
* @property {
|
|
401
|
-
* @property {string} [
|
|
402
|
-
* @property {string} [text_label] - The text label color
|
|
403
|
-
* @property {string} [text_secondary] - The secondary text color
|
|
417
|
+
* @typedef CheckboxProp
|
|
418
|
+
* @property {boolean} [value] - The value of the checkbox property.
|
|
419
|
+
* @property {string} [type] - The type of the property.
|
|
404
420
|
*/
|
|
405
421
|
/**
|
|
406
|
-
* @typedef
|
|
407
|
-
* @property {
|
|
408
|
-
* @property {string} [
|
|
409
|
-
* @property {string[]} [page] - An array of pages
|
|
422
|
+
* @typedef RangeProp
|
|
423
|
+
* @property {number} [value] - The value of the range property.
|
|
424
|
+
* @property {string} [type] - The type of the property.
|
|
410
425
|
*/
|
|
411
426
|
/**
|
|
412
|
-
* @typedef
|
|
413
|
-
* @property {
|
|
414
|
-
* @property {
|
|
415
|
-
* @property {string
|
|
416
|
-
* @property {
|
|
417
|
-
* @property {
|
|
418
|
-
* @property {Release} [release]
|
|
419
|
-
* @property {string} [slug] - The slug of the theme
|
|
427
|
+
* @typedef Section
|
|
428
|
+
* @property {Block[]} [blocks]
|
|
429
|
+
* @property {Predicate} [predicate]
|
|
430
|
+
* @property {string} [name] - The name of the section.
|
|
431
|
+
* @property {SectionProps} [props]
|
|
432
|
+
* @property {SectionPreset} [preset]
|
|
420
433
|
*/
|
|
421
434
|
/**
|
|
422
|
-
* @typedef
|
|
423
|
-
* @property {
|
|
424
|
-
* @property {
|
|
435
|
+
* @typedef Block
|
|
436
|
+
* @property {string} [type] - The type of the block.
|
|
437
|
+
* @property {string} [name] - The name of the block.
|
|
438
|
+
* @property {BlockProps} [props]
|
|
425
439
|
*/
|
|
426
440
|
/**
|
|
427
|
-
* @typedef
|
|
428
|
-
* @property {
|
|
429
|
-
* @property {
|
|
441
|
+
* @typedef Predicate
|
|
442
|
+
* @property {Screen} [screen]
|
|
443
|
+
* @property {ThemeUserSchema} [user]
|
|
444
|
+
* @property {Route} [route]
|
|
430
445
|
*/
|
|
431
446
|
/**
|
|
432
|
-
* @typedef
|
|
433
|
-
* @property {
|
|
434
|
-
* @property {
|
|
435
|
-
* @property {boolean} [
|
|
436
|
-
* @property {Assets} [assets]
|
|
437
|
-
* @property {SectionItem[]} [available_sections] - Available sections information
|
|
438
|
-
* @property {number} [company_id] - The company id in which sales channel exists
|
|
439
|
-
* @property {Config} [config]
|
|
440
|
-
* @property {string} [created_at] - The creation timestamp of the theme
|
|
441
|
-
* @property {Font} [font]
|
|
442
|
-
* @property {boolean} [is_private] - Whether the theme is private or not
|
|
443
|
-
* @property {string} [marketplace_theme_id] - The ID of the theme in the marketplace
|
|
444
|
-
* @property {ThemeMeta} [meta]
|
|
445
|
-
* @property {string} [name] - The name of the theme
|
|
446
|
-
* @property {Object} [styles] - The styles associated with the theme
|
|
447
|
-
* @property {string[]} [tags] - An array of tags associated with the theme
|
|
448
|
-
* @property {string} [template_theme_id] - The ID of the template theme
|
|
449
|
-
* @property {string} [theme_type]
|
|
450
|
-
* @property {string} [updated_at] - The last update timestamp of the theme
|
|
451
|
-
* @property {string} [version] - The version of the theme
|
|
447
|
+
* @typedef Screen
|
|
448
|
+
* @property {boolean} [mobile] - True if the screen is a mobile device.
|
|
449
|
+
* @property {boolean} [desktop] - True if the screen is a desktop device.
|
|
450
|
+
* @property {boolean} [tablet] - True if the screen is a tablet device.
|
|
452
451
|
*/
|
|
453
452
|
/**
|
|
454
453
|
* @typedef ThemeUserSchema
|
|
455
|
-
* @property {boolean} [anonymous] - True if the user is anonymous.
|
|
456
454
|
* @property {boolean} [authenticated] - True if the user is authenticated.
|
|
455
|
+
* @property {boolean} [anonymous] - True if the user is anonymous.
|
|
457
456
|
*/
|
|
458
457
|
/**
|
|
459
|
-
* @typedef
|
|
460
|
-
* @property {string
|
|
458
|
+
* @typedef Route
|
|
459
|
+
* @property {string} [selected] - The selected route.
|
|
460
|
+
* @property {string} [exact_url] - The exact URL of the route.
|
|
461
461
|
*/
|
|
462
462
|
/**
|
|
463
|
-
* @typedef
|
|
464
|
-
* @property {
|
|
465
|
-
* @property {
|
|
463
|
+
* @typedef AvailablePagePlatformPredicate
|
|
464
|
+
* @property {boolean} [ios] - Section visibility on ios platform
|
|
465
|
+
* @property {boolean} [android] - Section visibility on android platform
|
|
466
|
+
* @property {boolean} [web] - Section visibility on web platform
|
|
466
467
|
*/
|
|
467
468
|
/**
|
|
468
|
-
* @typedef
|
|
469
|
-
* @property {string} [
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
* @
|
|
473
|
-
* @property {string} [
|
|
474
|
-
* @property {string} [success_text] - The success text color
|
|
469
|
+
* @typedef BlitzkriegInternalServerErrorSchema
|
|
470
|
+
* @property {string} [message]
|
|
471
|
+
*/
|
|
472
|
+
/**
|
|
473
|
+
* @typedef BlitzkriegApiErrorSchema
|
|
474
|
+
* @property {string} [message]
|
|
475
475
|
*/
|
|
476
476
|
/**
|
|
477
477
|
* @typedef {| "about-us"
|
|
@@ -524,8 +524,56 @@ export = ThemeApplicationModel;
|
|
|
524
524
|
declare class ThemeApplicationModel {
|
|
525
525
|
}
|
|
526
526
|
declare namespace ThemeApplicationModel {
|
|
527
|
-
export {
|
|
527
|
+
export { AllAvailablePageSchema, AvailablePageSchema, AvailablePageSectionMetaAttributes, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, ActionPage, AvailablePageSeo, AvailablePageSchemaSections, AvailablePagePredicate, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePageSchedulePredicate, ThemesSchema, Font, FontVariants, FontVariant, Config, ThemeConfiguration, CustomConfig, CustomProps, GlobalConfig, GeneralSetting, AdvanceSetting, UserAlertsSetting, ThemeSetting, TextSetting, ButtonSetting, SaleDiscountSetting, HeaderSetting, FooterSetting, OverlayPopupSetting, DividerStrokeHighlightSetting, StaticConfig, StaticProps, Colors, AuthConfig, PaletteConfig, ThemeMeta, ThemePayment, Release, Images, Assets, UMDJs, CommonJS, CSS, SectionItem, GlobalSchema, Prop, Preset, Page, SectionProps, SectionPreset, ImagePickerProp, UrlProp, BlockProps, TextProp, CheckboxProp, RangeProp, Section, Block, Predicate, Screen, ThemeUserSchema, Route, AvailablePagePlatformPredicate, BlitzkriegInternalServerErrorSchema, BlitzkriegApiErrorSchema, PageType };
|
|
528
528
|
}
|
|
529
|
+
/** @returns {AllAvailablePageSchema} */
|
|
530
|
+
declare function AllAvailablePageSchema(): AllAvailablePageSchema;
|
|
531
|
+
type AllAvailablePageSchema = {
|
|
532
|
+
pages?: AvailablePageSchema[];
|
|
533
|
+
};
|
|
534
|
+
/** @returns {AvailablePageSchema} */
|
|
535
|
+
declare function AvailablePageSchema(): AvailablePageSchema;
|
|
536
|
+
type AvailablePageSchema = {
|
|
537
|
+
value?: string;
|
|
538
|
+
text?: string;
|
|
539
|
+
path?: string;
|
|
540
|
+
type?: string;
|
|
541
|
+
sections?: AvailablePageSchemaSections[];
|
|
542
|
+
sections_meta?: AvailablePageSectionMetaAttributes[];
|
|
543
|
+
theme?: string;
|
|
544
|
+
seo?: AvailablePageSeo;
|
|
545
|
+
props?: any[];
|
|
546
|
+
_id?: string;
|
|
547
|
+
};
|
|
548
|
+
/** @returns {AvailablePageSectionMetaAttributes} */
|
|
549
|
+
declare function AvailablePageSectionMetaAttributes(): AvailablePageSectionMetaAttributes;
|
|
550
|
+
type AvailablePageSectionMetaAttributes = {
|
|
551
|
+
attributes?: any;
|
|
552
|
+
};
|
|
553
|
+
/** @returns {SEOMetaItem} */
|
|
554
|
+
declare function SEOMetaItem(): SEOMetaItem;
|
|
555
|
+
type SEOMetaItem = {
|
|
556
|
+
title?: string;
|
|
557
|
+
items?: SEOMetaItems[];
|
|
558
|
+
};
|
|
559
|
+
/** @returns {SEOMetaItems} */
|
|
560
|
+
declare function SEOMetaItems(): SEOMetaItems;
|
|
561
|
+
type SEOMetaItems = {
|
|
562
|
+
key?: string;
|
|
563
|
+
value?: string;
|
|
564
|
+
};
|
|
565
|
+
/** @returns {SEOSitemap} */
|
|
566
|
+
declare function SEOSitemap(): SEOSitemap;
|
|
567
|
+
type SEOSitemap = {
|
|
568
|
+
priority?: number;
|
|
569
|
+
frequency?: string;
|
|
570
|
+
};
|
|
571
|
+
/** @returns {SEObreadcrumb} */
|
|
572
|
+
declare function SEObreadcrumb(): SEObreadcrumb;
|
|
573
|
+
type SEObreadcrumb = {
|
|
574
|
+
url?: string;
|
|
575
|
+
action?: Action;
|
|
576
|
+
};
|
|
529
577
|
/** @returns {Action} */
|
|
530
578
|
declare function Action(): Action;
|
|
531
579
|
type Action = {
|
|
@@ -538,225 +586,164 @@ declare function ActionPage(): ActionPage;
|
|
|
538
586
|
type ActionPage = {
|
|
539
587
|
params?: any;
|
|
540
588
|
query?: any;
|
|
541
|
-
type: PageType;
|
|
542
589
|
url?: string;
|
|
590
|
+
type: PageType;
|
|
543
591
|
};
|
|
544
|
-
/** @returns {
|
|
545
|
-
declare function
|
|
546
|
-
type
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
pages?: AvailablePageSchema[];
|
|
555
|
-
};
|
|
556
|
-
/** @returns {Assets} */
|
|
557
|
-
declare function Assets(): Assets;
|
|
558
|
-
type Assets = {
|
|
559
|
-
common_js?: CommonJS;
|
|
560
|
-
css?: CSS;
|
|
561
|
-
umd_js?: UMDJs;
|
|
562
|
-
};
|
|
563
|
-
/** @returns {AuthConfig} */
|
|
564
|
-
declare function AuthConfig(): AuthConfig;
|
|
565
|
-
type AuthConfig = {
|
|
566
|
-
/**
|
|
567
|
-
* - Whether to show footer authentication or not
|
|
568
|
-
*/
|
|
569
|
-
show_footer_auth?: boolean;
|
|
570
|
-
/**
|
|
571
|
-
* - Whether to show header authentication or not
|
|
572
|
-
*/
|
|
573
|
-
show_header_auth?: boolean;
|
|
592
|
+
/** @returns {AvailablePageSeo} */
|
|
593
|
+
declare function AvailablePageSeo(): AvailablePageSeo;
|
|
594
|
+
type AvailablePageSeo = {
|
|
595
|
+
title?: string;
|
|
596
|
+
description?: string;
|
|
597
|
+
canonical_url?: string;
|
|
598
|
+
meta_tags?: SEOMetaItem[];
|
|
599
|
+
sitemap?: SEOSitemap;
|
|
600
|
+
breadcrumb?: SEObreadcrumb[];
|
|
601
|
+
_id?: string;
|
|
574
602
|
};
|
|
575
|
-
/** @returns {
|
|
576
|
-
declare function
|
|
577
|
-
type
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
*/
|
|
585
|
-
ios?: boolean;
|
|
586
|
-
/**
|
|
587
|
-
* - Section visibility on web platform
|
|
588
|
-
*/
|
|
589
|
-
web?: boolean;
|
|
603
|
+
/** @returns {AvailablePageSchemaSections} */
|
|
604
|
+
declare function AvailablePageSchemaSections(): AvailablePageSchemaSections;
|
|
605
|
+
type AvailablePageSchemaSections = {
|
|
606
|
+
name?: string;
|
|
607
|
+
label?: string;
|
|
608
|
+
props?: any;
|
|
609
|
+
blocks?: any[];
|
|
610
|
+
preset?: any;
|
|
611
|
+
predicate?: AvailablePagePredicate;
|
|
590
612
|
};
|
|
591
613
|
/** @returns {AvailablePagePredicate} */
|
|
592
614
|
declare function AvailablePagePredicate(): AvailablePagePredicate;
|
|
593
615
|
type AvailablePagePredicate = {
|
|
594
|
-
platform?: AvailablePagePlatformPredicate;
|
|
595
|
-
route?: AvailablePageRoutePredicate;
|
|
596
|
-
schedule?: AvailablePageSchedulePredicate;
|
|
597
616
|
screen?: AvailablePageScreenPredicate;
|
|
598
617
|
user?: AvailablePageUserPredicate;
|
|
618
|
+
route?: AvailablePageRoutePredicate;
|
|
619
|
+
schedule?: AvailablePageSchedulePredicate;
|
|
620
|
+
platform?: AvailablePagePlatformPredicate;
|
|
599
621
|
/**
|
|
600
622
|
* - An array of zone ids associated with the section
|
|
601
623
|
*/
|
|
602
624
|
zones?: string[];
|
|
603
625
|
};
|
|
626
|
+
/** @returns {AvailablePageScreenPredicate} */
|
|
627
|
+
declare function AvailablePageScreenPredicate(): AvailablePageScreenPredicate;
|
|
628
|
+
type AvailablePageScreenPredicate = {
|
|
629
|
+
mobile?: boolean;
|
|
630
|
+
desktop?: boolean;
|
|
631
|
+
tablet?: boolean;
|
|
632
|
+
};
|
|
633
|
+
/** @returns {AvailablePageUserPredicate} */
|
|
634
|
+
declare function AvailablePageUserPredicate(): AvailablePageUserPredicate;
|
|
635
|
+
type AvailablePageUserPredicate = {
|
|
636
|
+
authenticated?: boolean;
|
|
637
|
+
anonymous?: boolean;
|
|
638
|
+
};
|
|
604
639
|
/** @returns {AvailablePageRoutePredicate} */
|
|
605
640
|
declare function AvailablePageRoutePredicate(): AvailablePageRoutePredicate;
|
|
606
641
|
type AvailablePageRoutePredicate = {
|
|
642
|
+
selected?: string;
|
|
607
643
|
exact_url?: string;
|
|
608
644
|
query?: any;
|
|
609
|
-
selected?: string;
|
|
610
645
|
};
|
|
611
646
|
/** @returns {AvailablePageSchedulePredicate} */
|
|
612
647
|
declare function AvailablePageSchedulePredicate(): AvailablePageSchedulePredicate;
|
|
613
648
|
type AvailablePageSchedulePredicate = {
|
|
614
649
|
cron?: string;
|
|
615
|
-
end?: string;
|
|
616
650
|
start?: string;
|
|
651
|
+
end?: string;
|
|
617
652
|
};
|
|
618
|
-
/** @returns {
|
|
619
|
-
declare function
|
|
620
|
-
type
|
|
653
|
+
/** @returns {ThemesSchema} */
|
|
654
|
+
declare function ThemesSchema(): ThemesSchema;
|
|
655
|
+
type ThemesSchema = {
|
|
656
|
+
font?: Font;
|
|
657
|
+
config?: Config;
|
|
658
|
+
/**
|
|
659
|
+
* - Whether the theme has been applied or not
|
|
660
|
+
*/
|
|
661
|
+
applied?: boolean;
|
|
662
|
+
/**
|
|
663
|
+
* - Whether the theme is private or not
|
|
664
|
+
*/
|
|
665
|
+
is_private?: boolean;
|
|
666
|
+
/**
|
|
667
|
+
* - An array of tags associated with the theme
|
|
668
|
+
*/
|
|
669
|
+
tags?: string[];
|
|
670
|
+
/**
|
|
671
|
+
* - The unique identifier of the theme
|
|
672
|
+
*/
|
|
621
673
|
_id?: string;
|
|
622
|
-
path?: string;
|
|
623
|
-
props?: any[];
|
|
624
|
-
sections?: AvailablePageSchemaSections[];
|
|
625
|
-
sections_meta?: AvailablePageSectionMetaAttributes[];
|
|
626
|
-
seo?: AvailablePageSeo;
|
|
627
|
-
text?: string;
|
|
628
|
-
theme?: string;
|
|
629
|
-
type?: string;
|
|
630
|
-
value?: string;
|
|
631
|
-
};
|
|
632
|
-
/** @returns {AvailablePageSchemaSections} */
|
|
633
|
-
declare function AvailablePageSchemaSections(): AvailablePageSchemaSections;
|
|
634
|
-
type AvailablePageSchemaSections = {
|
|
635
|
-
blocks?: any[];
|
|
636
|
-
label?: string;
|
|
637
|
-
name?: string;
|
|
638
|
-
predicate?: AvailablePagePredicate;
|
|
639
|
-
preset?: any;
|
|
640
|
-
props?: any;
|
|
641
|
-
};
|
|
642
|
-
/** @returns {AvailablePageScreenPredicate} */
|
|
643
|
-
declare function AvailablePageScreenPredicate(): AvailablePageScreenPredicate;
|
|
644
|
-
type AvailablePageScreenPredicate = {
|
|
645
|
-
desktop?: boolean;
|
|
646
|
-
mobile?: boolean;
|
|
647
|
-
tablet?: boolean;
|
|
648
|
-
};
|
|
649
|
-
/** @returns {AvailablePageSectionMetaAttributes} */
|
|
650
|
-
declare function AvailablePageSectionMetaAttributes(): AvailablePageSectionMetaAttributes;
|
|
651
|
-
type AvailablePageSectionMetaAttributes = {
|
|
652
|
-
attributes?: any;
|
|
653
|
-
};
|
|
654
|
-
/** @returns {AvailablePageSeo} */
|
|
655
|
-
declare function AvailablePageSeo(): AvailablePageSeo;
|
|
656
|
-
type AvailablePageSeo = {
|
|
657
|
-
_id?: string;
|
|
658
|
-
breadcrumb?: SEObreadcrumb[];
|
|
659
|
-
canonical_url?: string;
|
|
660
|
-
description?: string;
|
|
661
|
-
meta_tags?: SEOMetaItem[];
|
|
662
|
-
sitemap?: SEOSitemap;
|
|
663
|
-
title?: string;
|
|
664
|
-
};
|
|
665
|
-
/** @returns {AvailablePageUserPredicate} */
|
|
666
|
-
declare function AvailablePageUserPredicate(): AvailablePageUserPredicate;
|
|
667
|
-
type AvailablePageUserPredicate = {
|
|
668
|
-
anonymous?: boolean;
|
|
669
|
-
authenticated?: boolean;
|
|
670
|
-
};
|
|
671
|
-
/** @returns {BlitzkriegApiErrorSchema} */
|
|
672
|
-
declare function BlitzkriegApiErrorSchema(): BlitzkriegApiErrorSchema;
|
|
673
|
-
type BlitzkriegApiErrorSchema = {
|
|
674
|
-
message?: string;
|
|
675
|
-
};
|
|
676
|
-
/** @returns {BlitzkriegInternalServerErrorSchema} */
|
|
677
|
-
declare function BlitzkriegInternalServerErrorSchema(): BlitzkriegInternalServerErrorSchema;
|
|
678
|
-
type BlitzkriegInternalServerErrorSchema = {
|
|
679
|
-
message?: string;
|
|
680
|
-
};
|
|
681
|
-
/** @returns {Block} */
|
|
682
|
-
declare function Block(): Block;
|
|
683
|
-
type Block = {
|
|
684
674
|
/**
|
|
685
|
-
* - The
|
|
675
|
+
* - The ID of the application
|
|
686
676
|
*/
|
|
687
|
-
|
|
688
|
-
props?: BlockProps;
|
|
677
|
+
application_id?: string;
|
|
689
678
|
/**
|
|
690
|
-
* - The
|
|
679
|
+
* - The ID of the theme in the marketplace
|
|
691
680
|
*/
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
/** @returns {BlockProps} */
|
|
695
|
-
declare function BlockProps(): BlockProps;
|
|
696
|
-
type BlockProps = {
|
|
697
|
-
image?: ImagePickerProp;
|
|
698
|
-
slide_link?: UrlProp;
|
|
699
|
-
};
|
|
700
|
-
/** @returns {ButtonSetting} */
|
|
701
|
-
declare function ButtonSetting(): ButtonSetting;
|
|
702
|
-
type ButtonSetting = {
|
|
681
|
+
marketplace_theme_id?: string;
|
|
682
|
+
meta?: ThemeMeta;
|
|
703
683
|
/**
|
|
704
|
-
* - The
|
|
684
|
+
* - The name of the theme
|
|
705
685
|
*/
|
|
706
|
-
|
|
686
|
+
name?: string;
|
|
707
687
|
/**
|
|
708
|
-
* - The
|
|
688
|
+
* - The ID of the template theme
|
|
709
689
|
*/
|
|
710
|
-
|
|
690
|
+
template_theme_id?: string;
|
|
711
691
|
/**
|
|
712
|
-
* - The
|
|
692
|
+
* - The version of the theme
|
|
713
693
|
*/
|
|
714
|
-
|
|
715
|
-
};
|
|
716
|
-
/** @returns {CheckboxProp} */
|
|
717
|
-
declare function CheckboxProp(): CheckboxProp;
|
|
718
|
-
type CheckboxProp = {
|
|
694
|
+
version?: string;
|
|
719
695
|
/**
|
|
720
|
-
* - The
|
|
696
|
+
* - The styles associated with the theme
|
|
721
697
|
*/
|
|
722
|
-
|
|
698
|
+
styles?: any;
|
|
723
699
|
/**
|
|
724
|
-
* - The
|
|
700
|
+
* - The creation timestamp of the theme
|
|
725
701
|
*/
|
|
726
|
-
|
|
727
|
-
};
|
|
728
|
-
/** @returns {Colors} */
|
|
729
|
-
declare function Colors(): Colors;
|
|
730
|
-
type Colors = {
|
|
702
|
+
created_at?: string;
|
|
731
703
|
/**
|
|
732
|
-
* - The
|
|
704
|
+
* - The last update timestamp of the theme
|
|
733
705
|
*/
|
|
734
|
-
|
|
706
|
+
updated_at?: string;
|
|
707
|
+
assets?: Assets;
|
|
735
708
|
/**
|
|
736
|
-
* -
|
|
709
|
+
* - Available sections information
|
|
737
710
|
*/
|
|
738
|
-
|
|
711
|
+
available_sections?: SectionItem[];
|
|
712
|
+
theme_type?: string;
|
|
739
713
|
/**
|
|
740
|
-
* - The
|
|
714
|
+
* - The company id in which sales channel exists
|
|
741
715
|
*/
|
|
742
|
-
|
|
716
|
+
company_id?: number;
|
|
717
|
+
};
|
|
718
|
+
/** @returns {Font} */
|
|
719
|
+
declare function Font(): Font;
|
|
720
|
+
type Font = {
|
|
721
|
+
variants: FontVariants;
|
|
743
722
|
/**
|
|
744
|
-
* - The
|
|
723
|
+
* - The font family
|
|
745
724
|
*/
|
|
746
|
-
|
|
725
|
+
family: string;
|
|
726
|
+
};
|
|
727
|
+
/** @returns {FontVariants} */
|
|
728
|
+
declare function FontVariants(): FontVariants;
|
|
729
|
+
type FontVariants = {
|
|
730
|
+
light?: FontVariant;
|
|
731
|
+
regular?: FontVariant;
|
|
732
|
+
medium?: FontVariant;
|
|
733
|
+
semi_bold?: FontVariant;
|
|
734
|
+
bold?: FontVariant;
|
|
735
|
+
};
|
|
736
|
+
/** @returns {FontVariant} */
|
|
737
|
+
declare function FontVariant(): FontVariant;
|
|
738
|
+
type FontVariant = {
|
|
747
739
|
/**
|
|
748
|
-
* - The
|
|
740
|
+
* - The name of the font variant
|
|
749
741
|
*/
|
|
750
|
-
|
|
742
|
+
name: string;
|
|
751
743
|
/**
|
|
752
|
-
* - The
|
|
744
|
+
* - The URL of the font file
|
|
753
745
|
*/
|
|
754
|
-
|
|
755
|
-
};
|
|
756
|
-
/** @returns {CommonJS} */
|
|
757
|
-
declare function CommonJS(): CommonJS;
|
|
758
|
-
type CommonJS = {
|
|
759
|
-
link?: string;
|
|
746
|
+
file: string;
|
|
760
747
|
};
|
|
761
748
|
/** @returns {Config} */
|
|
762
749
|
declare function Config(): Config;
|
|
@@ -765,17 +752,25 @@ type Config = {
|
|
|
765
752
|
* - The current configuration
|
|
766
753
|
*/
|
|
767
754
|
current: string;
|
|
768
|
-
global_schema?: GlobalSchema;
|
|
769
755
|
/**
|
|
770
756
|
* - A list of configurations
|
|
771
757
|
*/
|
|
772
758
|
list: ThemeConfiguration[];
|
|
759
|
+
global_schema?: GlobalSchema;
|
|
773
760
|
preset?: Preset;
|
|
774
761
|
};
|
|
775
|
-
/** @returns {
|
|
776
|
-
declare function
|
|
777
|
-
type
|
|
778
|
-
|
|
762
|
+
/** @returns {ThemeConfiguration} */
|
|
763
|
+
declare function ThemeConfiguration(): ThemeConfiguration;
|
|
764
|
+
type ThemeConfiguration = {
|
|
765
|
+
/**
|
|
766
|
+
* - The name of the configuration
|
|
767
|
+
*/
|
|
768
|
+
name?: string;
|
|
769
|
+
global_config?: any;
|
|
770
|
+
/**
|
|
771
|
+
* - An array of pages
|
|
772
|
+
*/
|
|
773
|
+
page?: string[];
|
|
779
774
|
};
|
|
780
775
|
/** @returns {CustomConfig} */
|
|
781
776
|
declare function CustomConfig(): CustomConfig;
|
|
@@ -786,14 +781,35 @@ type CustomConfig = {
|
|
|
786
781
|
declare function CustomProps(): CustomProps;
|
|
787
782
|
type CustomProps = {
|
|
788
783
|
/**
|
|
789
|
-
* - The
|
|
784
|
+
* - The header background color
|
|
790
785
|
*/
|
|
791
|
-
|
|
786
|
+
header_bg_color?: string;
|
|
792
787
|
/**
|
|
793
|
-
* - The
|
|
794
|
-
* label color
|
|
788
|
+
* - The header text color
|
|
795
789
|
*/
|
|
796
|
-
|
|
790
|
+
header_text_color?: string;
|
|
791
|
+
/**
|
|
792
|
+
* - The header border color
|
|
793
|
+
*/
|
|
794
|
+
header_border_color?: string;
|
|
795
|
+
/**
|
|
796
|
+
* - The header icon color
|
|
797
|
+
*/
|
|
798
|
+
header_icon_color?: string;
|
|
799
|
+
/**
|
|
800
|
+
* - The header cart
|
|
801
|
+
* notification background color
|
|
802
|
+
*/
|
|
803
|
+
header_cart_notification_bg_color?: string;
|
|
804
|
+
/**
|
|
805
|
+
* - The header cart
|
|
806
|
+
* notification text color
|
|
807
|
+
*/
|
|
808
|
+
header_cart_notification_text_color?: string;
|
|
809
|
+
/**
|
|
810
|
+
* - The header navigation hover color
|
|
811
|
+
*/
|
|
812
|
+
header_nav_hover_color?: string;
|
|
797
813
|
/**
|
|
798
814
|
* - The primary button color
|
|
799
815
|
*/
|
|
@@ -802,6 +818,15 @@ type CustomProps = {
|
|
|
802
818
|
* - The primary button label color
|
|
803
819
|
*/
|
|
804
820
|
button_primary_label_color?: string;
|
|
821
|
+
/**
|
|
822
|
+
* - The add to cart button color
|
|
823
|
+
*/
|
|
824
|
+
button_add_to_cart_color?: string;
|
|
825
|
+
/**
|
|
826
|
+
* - The add to cart button
|
|
827
|
+
* label color
|
|
828
|
+
*/
|
|
829
|
+
button_add_to_cart_label_color?: string;
|
|
805
830
|
/**
|
|
806
831
|
* - The secondary button color
|
|
807
832
|
*/
|
|
@@ -814,6 +839,10 @@ type CustomProps = {
|
|
|
814
839
|
* - The tertiary button color
|
|
815
840
|
*/
|
|
816
841
|
button_tertiary_color?: string;
|
|
842
|
+
/**
|
|
843
|
+
* - The tertiary button label color
|
|
844
|
+
*/
|
|
845
|
+
button_tertiary_label_color?: string;
|
|
817
846
|
/**
|
|
818
847
|
* - The tertiary button hover color
|
|
819
848
|
*/
|
|
@@ -824,179 +853,177 @@ type CustomProps = {
|
|
|
824
853
|
*/
|
|
825
854
|
button_tertiary_hover_text_color?: string;
|
|
826
855
|
/**
|
|
827
|
-
* - The
|
|
856
|
+
* - The text heading link color
|
|
828
857
|
*/
|
|
829
|
-
|
|
858
|
+
text_heading_link_color?: string;
|
|
830
859
|
/**
|
|
831
|
-
* -
|
|
860
|
+
* - The text body color
|
|
832
861
|
*/
|
|
833
|
-
|
|
862
|
+
text_body_color?: string;
|
|
834
863
|
/**
|
|
835
|
-
* - The
|
|
864
|
+
* - The text price color
|
|
836
865
|
*/
|
|
837
|
-
|
|
866
|
+
text_price_color?: string;
|
|
838
867
|
/**
|
|
839
|
-
* - The
|
|
868
|
+
* - The text sale price color
|
|
840
869
|
*/
|
|
841
|
-
|
|
870
|
+
text_sale_price_color?: string;
|
|
842
871
|
/**
|
|
843
|
-
* - The
|
|
872
|
+
* - The text strikethrough
|
|
873
|
+
* price color
|
|
844
874
|
*/
|
|
845
|
-
|
|
875
|
+
text_strikethrough_price_color?: string;
|
|
846
876
|
/**
|
|
847
|
-
* - The
|
|
877
|
+
* - The text discount color
|
|
848
878
|
*/
|
|
849
|
-
|
|
879
|
+
text_discount_color?: string;
|
|
850
880
|
/**
|
|
851
|
-
* - The
|
|
881
|
+
* - The footer background color
|
|
852
882
|
*/
|
|
853
|
-
|
|
883
|
+
footer_bg_color?: string;
|
|
854
884
|
/**
|
|
855
|
-
* - The
|
|
885
|
+
* - The footer text color
|
|
856
886
|
*/
|
|
857
|
-
|
|
887
|
+
footer_text_color?: string;
|
|
858
888
|
/**
|
|
859
|
-
* - The
|
|
860
|
-
* notification background color
|
|
889
|
+
* - The footer border color
|
|
861
890
|
*/
|
|
862
|
-
|
|
891
|
+
footer_border_color?: string;
|
|
863
892
|
/**
|
|
864
|
-
* - The
|
|
865
|
-
* notification text color
|
|
893
|
+
* - The footer navigation hover color
|
|
866
894
|
*/
|
|
867
|
-
|
|
895
|
+
footer_nav_hover_color?: string;
|
|
868
896
|
/**
|
|
869
|
-
* -
|
|
897
|
+
* - Whether to disable the cart or not
|
|
870
898
|
*/
|
|
871
|
-
|
|
899
|
+
disable_cart?: boolean;
|
|
872
900
|
/**
|
|
873
|
-
* -
|
|
874
|
-
*/
|
|
875
|
-
header_nav_hover_color?: string;
|
|
876
|
-
/**
|
|
877
|
-
* - The header text color
|
|
878
|
-
*/
|
|
879
|
-
header_text_color?: string;
|
|
880
|
-
/**
|
|
881
|
-
* - Whether the menu is below the logo or not
|
|
901
|
+
* - Whether the menu is below the logo or not
|
|
882
902
|
*/
|
|
883
903
|
is_menu_below_logo?: boolean;
|
|
884
904
|
/**
|
|
885
905
|
* - The position of the menu
|
|
886
906
|
*/
|
|
887
907
|
menu_position?: string;
|
|
908
|
+
};
|
|
909
|
+
/** @returns {GlobalConfig} */
|
|
910
|
+
declare function GlobalConfig(): GlobalConfig;
|
|
911
|
+
type GlobalConfig = {
|
|
912
|
+
statics?: StaticConfig;
|
|
913
|
+
custom?: CustomConfig;
|
|
914
|
+
};
|
|
915
|
+
/** @returns {GeneralSetting} */
|
|
916
|
+
declare function GeneralSetting(): GeneralSetting;
|
|
917
|
+
type GeneralSetting = {
|
|
918
|
+
theme?: ThemeSetting;
|
|
919
|
+
text?: TextSetting;
|
|
920
|
+
button?: ButtonSetting;
|
|
921
|
+
sale_discount?: SaleDiscountSetting;
|
|
922
|
+
header?: HeaderSetting;
|
|
923
|
+
footer?: FooterSetting;
|
|
924
|
+
};
|
|
925
|
+
/** @returns {AdvanceSetting} */
|
|
926
|
+
declare function AdvanceSetting(): AdvanceSetting;
|
|
927
|
+
type AdvanceSetting = {
|
|
928
|
+
overlay_popup?: OverlayPopupSetting;
|
|
929
|
+
divider_stroke_highlight?: DividerStrokeHighlightSetting;
|
|
930
|
+
user_alerts?: UserAlertsSetting;
|
|
931
|
+
};
|
|
932
|
+
/** @returns {UserAlertsSetting} */
|
|
933
|
+
declare function UserAlertsSetting(): UserAlertsSetting;
|
|
934
|
+
type UserAlertsSetting = {
|
|
888
935
|
/**
|
|
889
|
-
* - The
|
|
936
|
+
* - The success background color
|
|
890
937
|
*/
|
|
891
|
-
|
|
938
|
+
success_background?: string;
|
|
892
939
|
/**
|
|
893
|
-
* - The text
|
|
940
|
+
* - The success text color
|
|
894
941
|
*/
|
|
895
|
-
|
|
942
|
+
success_text?: string;
|
|
896
943
|
/**
|
|
897
|
-
* - The
|
|
944
|
+
* - The error background color
|
|
898
945
|
*/
|
|
899
|
-
|
|
946
|
+
error_background?: string;
|
|
900
947
|
/**
|
|
901
|
-
* - The text
|
|
948
|
+
* - The error text color
|
|
902
949
|
*/
|
|
903
|
-
|
|
950
|
+
error_text?: string;
|
|
904
951
|
/**
|
|
905
|
-
* - The
|
|
952
|
+
* - The info background color
|
|
906
953
|
*/
|
|
907
|
-
|
|
954
|
+
info_background?: string;
|
|
908
955
|
/**
|
|
909
|
-
* - The text
|
|
910
|
-
* price color
|
|
956
|
+
* - The info text color
|
|
911
957
|
*/
|
|
912
|
-
|
|
958
|
+
info_text?: string;
|
|
913
959
|
};
|
|
914
|
-
/** @returns {
|
|
915
|
-
declare function
|
|
916
|
-
type
|
|
960
|
+
/** @returns {ThemeSetting} */
|
|
961
|
+
declare function ThemeSetting(): ThemeSetting;
|
|
962
|
+
type ThemeSetting = {
|
|
917
963
|
/**
|
|
918
|
-
* - The
|
|
964
|
+
* - The page background color
|
|
919
965
|
*/
|
|
920
|
-
|
|
966
|
+
page_background?: string;
|
|
921
967
|
/**
|
|
922
|
-
* - The
|
|
968
|
+
* - The theme accent color
|
|
923
969
|
*/
|
|
924
|
-
|
|
970
|
+
theme_accent?: string;
|
|
925
971
|
};
|
|
926
|
-
/** @returns {
|
|
927
|
-
declare function
|
|
928
|
-
type
|
|
972
|
+
/** @returns {TextSetting} */
|
|
973
|
+
declare function TextSetting(): TextSetting;
|
|
974
|
+
type TextSetting = {
|
|
929
975
|
/**
|
|
930
|
-
* - The
|
|
976
|
+
* - The text heading color
|
|
931
977
|
*/
|
|
932
|
-
|
|
933
|
-
variants: FontVariants;
|
|
934
|
-
};
|
|
935
|
-
/** @returns {FontVariant} */
|
|
936
|
-
declare function FontVariant(): FontVariant;
|
|
937
|
-
type FontVariant = {
|
|
978
|
+
text_heading?: string;
|
|
938
979
|
/**
|
|
939
|
-
* - The
|
|
980
|
+
* - The text body color
|
|
940
981
|
*/
|
|
941
|
-
|
|
982
|
+
text_body?: string;
|
|
942
983
|
/**
|
|
943
|
-
* - The
|
|
984
|
+
* - The text label color
|
|
944
985
|
*/
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
bold?: FontVariant;
|
|
951
|
-
light?: FontVariant;
|
|
952
|
-
medium?: FontVariant;
|
|
953
|
-
regular?: FontVariant;
|
|
954
|
-
semi_bold?: FontVariant;
|
|
986
|
+
text_label?: string;
|
|
987
|
+
/**
|
|
988
|
+
* - The secondary text color
|
|
989
|
+
*/
|
|
990
|
+
text_secondary?: string;
|
|
955
991
|
};
|
|
956
|
-
/** @returns {
|
|
957
|
-
declare function
|
|
958
|
-
type
|
|
992
|
+
/** @returns {ButtonSetting} */
|
|
993
|
+
declare function ButtonSetting(): ButtonSetting;
|
|
994
|
+
type ButtonSetting = {
|
|
959
995
|
/**
|
|
960
|
-
* - The
|
|
996
|
+
* - The primary button color
|
|
961
997
|
*/
|
|
962
|
-
|
|
998
|
+
button_primary?: string;
|
|
963
999
|
/**
|
|
964
|
-
* - The
|
|
1000
|
+
* - The secondary button color
|
|
965
1001
|
*/
|
|
966
|
-
|
|
1002
|
+
button_secondary?: string;
|
|
967
1003
|
/**
|
|
968
|
-
* - The
|
|
1004
|
+
* - The button link color
|
|
969
1005
|
*/
|
|
970
|
-
|
|
1006
|
+
button_link?: string;
|
|
1007
|
+
};
|
|
1008
|
+
/** @returns {SaleDiscountSetting} */
|
|
1009
|
+
declare function SaleDiscountSetting(): SaleDiscountSetting;
|
|
1010
|
+
type SaleDiscountSetting = {
|
|
971
1011
|
/**
|
|
972
|
-
* - The
|
|
1012
|
+
* - The sale badge background color
|
|
973
1013
|
*/
|
|
974
|
-
|
|
1014
|
+
sale_badge_background?: string;
|
|
975
1015
|
/**
|
|
976
|
-
* - The
|
|
1016
|
+
* - The sale badge text color
|
|
977
1017
|
*/
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
text?: TextSetting;
|
|
988
|
-
theme?: ThemeSetting;
|
|
989
|
-
};
|
|
990
|
-
/** @returns {GlobalConfig} */
|
|
991
|
-
declare function GlobalConfig(): GlobalConfig;
|
|
992
|
-
type GlobalConfig = {
|
|
993
|
-
custom?: CustomConfig;
|
|
994
|
-
statics?: StaticConfig;
|
|
995
|
-
};
|
|
996
|
-
/** @returns {GlobalSchema} */
|
|
997
|
-
declare function GlobalSchema(): GlobalSchema;
|
|
998
|
-
type GlobalSchema = {
|
|
999
|
-
props?: Prop[];
|
|
1018
|
+
sale_badge_text?: string;
|
|
1019
|
+
/**
|
|
1020
|
+
* - The sale discount text color
|
|
1021
|
+
*/
|
|
1022
|
+
sale_discount_text?: string;
|
|
1023
|
+
/**
|
|
1024
|
+
* - The sale timer color
|
|
1025
|
+
*/
|
|
1026
|
+
sale_timer?: string;
|
|
1000
1027
|
};
|
|
1001
1028
|
/** @returns {HeaderSetting} */
|
|
1002
1029
|
declare function HeaderSetting(): HeaderSetting;
|
|
@@ -1005,38 +1032,38 @@ type HeaderSetting = {
|
|
|
1005
1032
|
* - The header background color
|
|
1006
1033
|
*/
|
|
1007
1034
|
header_background?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* - The header navigation color
|
|
1037
|
+
*/
|
|
1038
|
+
header_nav?: string;
|
|
1008
1039
|
/**
|
|
1009
1040
|
* - The header icon color
|
|
1010
1041
|
*/
|
|
1011
1042
|
header_icon?: string;
|
|
1043
|
+
};
|
|
1044
|
+
/** @returns {FooterSetting} */
|
|
1045
|
+
declare function FooterSetting(): FooterSetting;
|
|
1046
|
+
type FooterSetting = {
|
|
1012
1047
|
/**
|
|
1013
|
-
* - The
|
|
1048
|
+
* - The footer background color
|
|
1014
1049
|
*/
|
|
1015
|
-
|
|
1016
|
-
};
|
|
1017
|
-
/** @returns {ImagePickerProp} */
|
|
1018
|
-
declare function ImagePickerProp(): ImagePickerProp;
|
|
1019
|
-
type ImagePickerProp = {
|
|
1050
|
+
footer_background?: string;
|
|
1020
1051
|
/**
|
|
1021
|
-
* - The
|
|
1052
|
+
* - The footer bottom background color
|
|
1022
1053
|
*/
|
|
1023
|
-
|
|
1054
|
+
footer_bottom_background?: string;
|
|
1024
1055
|
/**
|
|
1025
|
-
* - The
|
|
1056
|
+
* - The footer heading text color
|
|
1026
1057
|
*/
|
|
1027
|
-
|
|
1028
|
-
};
|
|
1029
|
-
/** @returns {Images} */
|
|
1030
|
-
declare function Images(): Images;
|
|
1031
|
-
type Images = {
|
|
1058
|
+
footer_heading_text?: string;
|
|
1032
1059
|
/**
|
|
1033
|
-
* - The
|
|
1060
|
+
* - The footer body text color
|
|
1034
1061
|
*/
|
|
1035
|
-
|
|
1062
|
+
footer_body_text?: string;
|
|
1036
1063
|
/**
|
|
1037
|
-
* - The
|
|
1064
|
+
* - The footer icon color
|
|
1038
1065
|
*/
|
|
1039
|
-
|
|
1066
|
+
footer_icon?: string;
|
|
1040
1067
|
};
|
|
1041
1068
|
/** @returns {OverlayPopupSetting} */
|
|
1042
1069
|
declare function OverlayPopupSetting(): OverlayPopupSetting;
|
|
@@ -1050,422 +1077,395 @@ type OverlayPopupSetting = {
|
|
|
1050
1077
|
*/
|
|
1051
1078
|
overlay?: string;
|
|
1052
1079
|
};
|
|
1053
|
-
/** @returns {
|
|
1054
|
-
declare function
|
|
1055
|
-
type
|
|
1056
|
-
current?: number;
|
|
1057
|
-
has_next?: boolean;
|
|
1058
|
-
has_previous?: boolean;
|
|
1059
|
-
item_total?: number;
|
|
1060
|
-
next_id?: string;
|
|
1061
|
-
size?: number;
|
|
1062
|
-
type: string;
|
|
1063
|
-
};
|
|
1064
|
-
/** @returns {PaletteConfig} */
|
|
1065
|
-
declare function PaletteConfig(): PaletteConfig;
|
|
1066
|
-
type PaletteConfig = {
|
|
1067
|
-
advance_setting?: AdvanceSetting;
|
|
1068
|
-
general_setting?: GeneralSetting;
|
|
1069
|
-
};
|
|
1070
|
-
/** @returns {Predicate} */
|
|
1071
|
-
declare function Predicate(): Predicate;
|
|
1072
|
-
type Predicate = {
|
|
1073
|
-
route?: Route;
|
|
1074
|
-
screen?: Screen;
|
|
1075
|
-
user?: ThemeUserSchema;
|
|
1076
|
-
};
|
|
1077
|
-
/** @returns {Preset} */
|
|
1078
|
-
declare function Preset(): Preset;
|
|
1079
|
-
type Preset = {
|
|
1080
|
-
pages?: Page[];
|
|
1081
|
-
};
|
|
1082
|
-
/** @returns {Prop} */
|
|
1083
|
-
declare function Prop(): Prop;
|
|
1084
|
-
type Prop = {
|
|
1085
|
-
/**
|
|
1086
|
-
* - The category of the property
|
|
1087
|
-
*/
|
|
1088
|
-
category?: string;
|
|
1089
|
-
/**
|
|
1090
|
-
* - The ID of the property
|
|
1091
|
-
*/
|
|
1092
|
-
id?: string;
|
|
1080
|
+
/** @returns {DividerStrokeHighlightSetting} */
|
|
1081
|
+
declare function DividerStrokeHighlightSetting(): DividerStrokeHighlightSetting;
|
|
1082
|
+
type DividerStrokeHighlightSetting = {
|
|
1093
1083
|
/**
|
|
1094
|
-
* -
|
|
1084
|
+
* - The divider strokes color
|
|
1095
1085
|
*/
|
|
1096
|
-
|
|
1086
|
+
divider_strokes?: string;
|
|
1097
1087
|
/**
|
|
1098
|
-
* - The
|
|
1088
|
+
* - The highlight color
|
|
1099
1089
|
*/
|
|
1100
|
-
|
|
1101
|
-
/**
|
|
1102
|
-
* - The type of the property
|
|
1103
|
-
*/
|
|
1104
|
-
type?: string;
|
|
1090
|
+
highlight?: string;
|
|
1105
1091
|
};
|
|
1106
|
-
/** @returns {
|
|
1107
|
-
declare function
|
|
1108
|
-
type
|
|
1092
|
+
/** @returns {StaticConfig} */
|
|
1093
|
+
declare function StaticConfig(): StaticConfig;
|
|
1094
|
+
type StaticConfig = {
|
|
1095
|
+
props?: StaticProps;
|
|
1096
|
+
};
|
|
1097
|
+
/** @returns {StaticProps} */
|
|
1098
|
+
declare function StaticProps(): StaticProps;
|
|
1099
|
+
type StaticProps = {
|
|
1100
|
+
colors?: Colors;
|
|
1101
|
+
auth?: AuthConfig;
|
|
1102
|
+
palette?: PaletteConfig;
|
|
1103
|
+
};
|
|
1104
|
+
/** @returns {Colors} */
|
|
1105
|
+
declare function Colors(): Colors;
|
|
1106
|
+
type Colors = {
|
|
1109
1107
|
/**
|
|
1110
|
-
* - The
|
|
1108
|
+
* - The primary color
|
|
1111
1109
|
*/
|
|
1112
|
-
|
|
1110
|
+
primary_color?: string;
|
|
1113
1111
|
/**
|
|
1114
|
-
* - The
|
|
1112
|
+
* - The secondary color
|
|
1115
1113
|
*/
|
|
1116
|
-
|
|
1117
|
-
};
|
|
1118
|
-
/** @returns {Release} */
|
|
1119
|
-
declare function Release(): Release;
|
|
1120
|
-
type Release = {
|
|
1114
|
+
secondary_color?: string;
|
|
1121
1115
|
/**
|
|
1122
|
-
* - The
|
|
1116
|
+
* - The accent color
|
|
1123
1117
|
*/
|
|
1124
|
-
|
|
1118
|
+
accent_color?: string;
|
|
1125
1119
|
/**
|
|
1126
|
-
* - The
|
|
1120
|
+
* - The link color
|
|
1127
1121
|
*/
|
|
1128
|
-
|
|
1122
|
+
link_color?: string;
|
|
1123
|
+
/**
|
|
1124
|
+
* - The secondary button color
|
|
1125
|
+
*/
|
|
1126
|
+
button_secondary_color?: string;
|
|
1127
|
+
/**
|
|
1128
|
+
* - The background color
|
|
1129
|
+
*/
|
|
1130
|
+
bg_color?: string;
|
|
1129
1131
|
};
|
|
1130
|
-
/** @returns {
|
|
1131
|
-
declare function
|
|
1132
|
-
type
|
|
1132
|
+
/** @returns {AuthConfig} */
|
|
1133
|
+
declare function AuthConfig(): AuthConfig;
|
|
1134
|
+
type AuthConfig = {
|
|
1133
1135
|
/**
|
|
1134
|
-
* -
|
|
1136
|
+
* - Whether to show header authentication or not
|
|
1135
1137
|
*/
|
|
1136
|
-
|
|
1138
|
+
show_header_auth?: boolean;
|
|
1137
1139
|
/**
|
|
1138
|
-
* -
|
|
1140
|
+
* - Whether to show footer authentication or not
|
|
1139
1141
|
*/
|
|
1140
|
-
|
|
1142
|
+
show_footer_auth?: boolean;
|
|
1141
1143
|
};
|
|
1142
|
-
/** @returns {
|
|
1143
|
-
declare function
|
|
1144
|
-
type
|
|
1144
|
+
/** @returns {PaletteConfig} */
|
|
1145
|
+
declare function PaletteConfig(): PaletteConfig;
|
|
1146
|
+
type PaletteConfig = {
|
|
1147
|
+
general_setting?: GeneralSetting;
|
|
1148
|
+
advance_setting?: AdvanceSetting;
|
|
1149
|
+
};
|
|
1150
|
+
/** @returns {ThemeMeta} */
|
|
1151
|
+
declare function ThemeMeta(): ThemeMeta;
|
|
1152
|
+
type ThemeMeta = {
|
|
1153
|
+
payment?: ThemePayment;
|
|
1145
1154
|
/**
|
|
1146
|
-
* - The
|
|
1155
|
+
* - The description of the theme
|
|
1147
1156
|
*/
|
|
1148
|
-
|
|
1157
|
+
description?: string;
|
|
1149
1158
|
/**
|
|
1150
|
-
* -
|
|
1159
|
+
* - An array of industries associated with the theme
|
|
1151
1160
|
*/
|
|
1152
|
-
|
|
1161
|
+
industry?: string[];
|
|
1162
|
+
release?: Release;
|
|
1163
|
+
images?: Images;
|
|
1153
1164
|
/**
|
|
1154
|
-
* - The
|
|
1165
|
+
* - The slug of the theme
|
|
1155
1166
|
*/
|
|
1156
|
-
|
|
1167
|
+
slug?: string;
|
|
1157
1168
|
/**
|
|
1158
|
-
* - The
|
|
1169
|
+
* - The name of the theme
|
|
1159
1170
|
*/
|
|
1160
|
-
|
|
1171
|
+
name?: string;
|
|
1161
1172
|
};
|
|
1162
|
-
/** @returns {
|
|
1163
|
-
declare function
|
|
1164
|
-
type
|
|
1173
|
+
/** @returns {ThemePayment} */
|
|
1174
|
+
declare function ThemePayment(): ThemePayment;
|
|
1175
|
+
type ThemePayment = {
|
|
1165
1176
|
/**
|
|
1166
|
-
* -
|
|
1177
|
+
* - Whether the theme is paid or not
|
|
1167
1178
|
*/
|
|
1168
|
-
|
|
1179
|
+
is_paid?: boolean;
|
|
1169
1180
|
/**
|
|
1170
|
-
* -
|
|
1181
|
+
* - The amount of the theme
|
|
1171
1182
|
*/
|
|
1172
|
-
|
|
1183
|
+
amount?: number;
|
|
1184
|
+
};
|
|
1185
|
+
/** @returns {Release} */
|
|
1186
|
+
declare function Release(): Release;
|
|
1187
|
+
type Release = {
|
|
1173
1188
|
/**
|
|
1174
|
-
* -
|
|
1189
|
+
* - The release notes of the theme
|
|
1175
1190
|
*/
|
|
1176
|
-
|
|
1191
|
+
notes?: string;
|
|
1192
|
+
/**
|
|
1193
|
+
* - The version of the theme
|
|
1194
|
+
*/
|
|
1195
|
+
version?: string;
|
|
1177
1196
|
};
|
|
1178
|
-
/** @returns {
|
|
1179
|
-
declare function
|
|
1180
|
-
type
|
|
1181
|
-
blocks?: Block[];
|
|
1197
|
+
/** @returns {Images} */
|
|
1198
|
+
declare function Images(): Images;
|
|
1199
|
+
type Images = {
|
|
1182
1200
|
/**
|
|
1183
|
-
* - The
|
|
1201
|
+
* - The URL of the desktop image
|
|
1184
1202
|
*/
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1203
|
+
desktop?: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* - The URL of the mobile image
|
|
1206
|
+
*/
|
|
1207
|
+
mobile?: string;
|
|
1208
|
+
};
|
|
1209
|
+
/** @returns {Assets} */
|
|
1210
|
+
declare function Assets(): Assets;
|
|
1211
|
+
type Assets = {
|
|
1212
|
+
umd_js?: UMDJs;
|
|
1213
|
+
common_js?: CommonJS;
|
|
1214
|
+
css?: CSS;
|
|
1215
|
+
};
|
|
1216
|
+
/** @returns {UMDJs} */
|
|
1217
|
+
declare function UMDJs(): UMDJs;
|
|
1218
|
+
type UMDJs = {
|
|
1219
|
+
links?: string[];
|
|
1220
|
+
};
|
|
1221
|
+
/** @returns {CommonJS} */
|
|
1222
|
+
declare function CommonJS(): CommonJS;
|
|
1223
|
+
type CommonJS = {
|
|
1224
|
+
link?: string;
|
|
1225
|
+
};
|
|
1226
|
+
/** @returns {CSS} */
|
|
1227
|
+
declare function CSS(): CSS;
|
|
1228
|
+
type CSS = {
|
|
1229
|
+
links?: string[];
|
|
1189
1230
|
};
|
|
1190
1231
|
/** @returns {SectionItem} */
|
|
1191
1232
|
declare function SectionItem(): SectionItem;
|
|
1192
1233
|
type SectionItem = {
|
|
1234
|
+
props?: any[];
|
|
1193
1235
|
/**
|
|
1194
1236
|
* - Blocks
|
|
1195
1237
|
*/
|
|
1196
1238
|
blocks?: any[];
|
|
1239
|
+
/**
|
|
1240
|
+
* - Name of the section
|
|
1241
|
+
*/
|
|
1242
|
+
name?: string;
|
|
1197
1243
|
/**
|
|
1198
1244
|
* - Label for the section
|
|
1199
1245
|
*/
|
|
1200
1246
|
label?: string;
|
|
1247
|
+
};
|
|
1248
|
+
/** @returns {GlobalSchema} */
|
|
1249
|
+
declare function GlobalSchema(): GlobalSchema;
|
|
1250
|
+
type GlobalSchema = {
|
|
1251
|
+
props?: Prop[];
|
|
1252
|
+
};
|
|
1253
|
+
/** @returns {Prop} */
|
|
1254
|
+
declare function Prop(): Prop;
|
|
1255
|
+
type Prop = {
|
|
1201
1256
|
/**
|
|
1202
|
-
* -
|
|
1257
|
+
* - The type of the property
|
|
1203
1258
|
*/
|
|
1204
|
-
|
|
1205
|
-
|
|
1259
|
+
type?: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* - The category of the property
|
|
1262
|
+
*/
|
|
1263
|
+
category?: string;
|
|
1264
|
+
/**
|
|
1265
|
+
* - The ID of the property
|
|
1266
|
+
*/
|
|
1267
|
+
id?: string;
|
|
1268
|
+
/**
|
|
1269
|
+
* - The label of the property
|
|
1270
|
+
*/
|
|
1271
|
+
label?: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* - Additional information about the property
|
|
1274
|
+
*/
|
|
1275
|
+
info?: string;
|
|
1206
1276
|
};
|
|
1207
|
-
/** @returns {
|
|
1208
|
-
declare function
|
|
1209
|
-
type
|
|
1210
|
-
|
|
1277
|
+
/** @returns {Preset} */
|
|
1278
|
+
declare function Preset(): Preset;
|
|
1279
|
+
type Preset = {
|
|
1280
|
+
pages?: Page[];
|
|
1281
|
+
};
|
|
1282
|
+
/** @returns {Page} */
|
|
1283
|
+
declare function Page(): Page;
|
|
1284
|
+
type Page = {
|
|
1285
|
+
item_total?: number;
|
|
1286
|
+
next_id?: string;
|
|
1287
|
+
has_previous?: boolean;
|
|
1288
|
+
has_next?: boolean;
|
|
1289
|
+
current?: number;
|
|
1290
|
+
type: string;
|
|
1291
|
+
size?: number;
|
|
1211
1292
|
};
|
|
1212
1293
|
/** @returns {SectionProps} */
|
|
1213
1294
|
declare function SectionProps(): SectionProps;
|
|
1214
1295
|
type SectionProps = {
|
|
1215
|
-
|
|
1296
|
+
title?: TextProp;
|
|
1216
1297
|
item_margin?: TextProp;
|
|
1298
|
+
autoplay?: CheckboxProp;
|
|
1217
1299
|
slide_interval?: RangeProp;
|
|
1218
|
-
title?: TextProp;
|
|
1219
1300
|
};
|
|
1220
|
-
/** @returns {
|
|
1221
|
-
declare function
|
|
1222
|
-
type
|
|
1223
|
-
|
|
1224
|
-
url?: string;
|
|
1225
|
-
};
|
|
1226
|
-
/** @returns {SEOMetaItem} */
|
|
1227
|
-
declare function SEOMetaItem(): SEOMetaItem;
|
|
1228
|
-
type SEOMetaItem = {
|
|
1229
|
-
items?: SEOMetaItems[];
|
|
1230
|
-
title?: string;
|
|
1231
|
-
};
|
|
1232
|
-
/** @returns {SEOMetaItems} */
|
|
1233
|
-
declare function SEOMetaItems(): SEOMetaItems;
|
|
1234
|
-
type SEOMetaItems = {
|
|
1235
|
-
key?: string;
|
|
1236
|
-
value?: string;
|
|
1237
|
-
};
|
|
1238
|
-
/** @returns {SEOSitemap} */
|
|
1239
|
-
declare function SEOSitemap(): SEOSitemap;
|
|
1240
|
-
type SEOSitemap = {
|
|
1241
|
-
frequency?: string;
|
|
1242
|
-
priority?: number;
|
|
1243
|
-
};
|
|
1244
|
-
/** @returns {StaticConfig} */
|
|
1245
|
-
declare function StaticConfig(): StaticConfig;
|
|
1246
|
-
type StaticConfig = {
|
|
1247
|
-
props?: StaticProps;
|
|
1248
|
-
};
|
|
1249
|
-
/** @returns {StaticProps} */
|
|
1250
|
-
declare function StaticProps(): StaticProps;
|
|
1251
|
-
type StaticProps = {
|
|
1252
|
-
auth?: AuthConfig;
|
|
1253
|
-
colors?: Colors;
|
|
1254
|
-
palette?: PaletteConfig;
|
|
1301
|
+
/** @returns {SectionPreset} */
|
|
1302
|
+
declare function SectionPreset(): SectionPreset;
|
|
1303
|
+
type SectionPreset = {
|
|
1304
|
+
blocks?: Block[];
|
|
1255
1305
|
};
|
|
1256
|
-
/** @returns {
|
|
1257
|
-
declare function
|
|
1258
|
-
type
|
|
1306
|
+
/** @returns {ImagePickerProp} */
|
|
1307
|
+
declare function ImagePickerProp(): ImagePickerProp;
|
|
1308
|
+
type ImagePickerProp = {
|
|
1259
1309
|
/**
|
|
1260
1310
|
* - The type of the property.
|
|
1261
1311
|
*/
|
|
1262
1312
|
type?: string;
|
|
1263
1313
|
/**
|
|
1264
|
-
* - The value of the
|
|
1314
|
+
* - The value of the image picker property.
|
|
1265
1315
|
*/
|
|
1266
1316
|
value?: string;
|
|
1267
1317
|
};
|
|
1268
|
-
/** @returns {
|
|
1269
|
-
declare function
|
|
1270
|
-
type
|
|
1271
|
-
/**
|
|
1272
|
-
* - The text body color
|
|
1273
|
-
*/
|
|
1274
|
-
text_body?: string;
|
|
1275
|
-
/**
|
|
1276
|
-
* - The text heading color
|
|
1277
|
-
*/
|
|
1278
|
-
text_heading?: string;
|
|
1318
|
+
/** @returns {UrlProp} */
|
|
1319
|
+
declare function UrlProp(): UrlProp;
|
|
1320
|
+
type UrlProp = {
|
|
1279
1321
|
/**
|
|
1280
|
-
* - The
|
|
1322
|
+
* - The type of the property.
|
|
1281
1323
|
*/
|
|
1282
|
-
|
|
1324
|
+
type?: string;
|
|
1283
1325
|
/**
|
|
1284
|
-
* - The
|
|
1326
|
+
* - The value of the URL property.
|
|
1285
1327
|
*/
|
|
1286
|
-
|
|
1328
|
+
value?: string;
|
|
1287
1329
|
};
|
|
1288
|
-
/** @returns {
|
|
1289
|
-
declare function
|
|
1290
|
-
type
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
* - The name of the configuration
|
|
1294
|
-
*/
|
|
1295
|
-
name?: string;
|
|
1296
|
-
/**
|
|
1297
|
-
* - An array of pages
|
|
1298
|
-
*/
|
|
1299
|
-
page?: string[];
|
|
1330
|
+
/** @returns {BlockProps} */
|
|
1331
|
+
declare function BlockProps(): BlockProps;
|
|
1332
|
+
type BlockProps = {
|
|
1333
|
+
image?: ImagePickerProp;
|
|
1334
|
+
slide_link?: UrlProp;
|
|
1300
1335
|
};
|
|
1301
|
-
/** @returns {
|
|
1302
|
-
declare function
|
|
1303
|
-
type
|
|
1304
|
-
/**
|
|
1305
|
-
* - The description of the theme
|
|
1306
|
-
*/
|
|
1307
|
-
description?: string;
|
|
1308
|
-
images?: Images;
|
|
1309
|
-
/**
|
|
1310
|
-
* - An array of industries associated with the theme
|
|
1311
|
-
*/
|
|
1312
|
-
industry?: string[];
|
|
1336
|
+
/** @returns {TextProp} */
|
|
1337
|
+
declare function TextProp(): TextProp;
|
|
1338
|
+
type TextProp = {
|
|
1313
1339
|
/**
|
|
1314
|
-
* - The
|
|
1340
|
+
* - The value of the text property.
|
|
1315
1341
|
*/
|
|
1316
|
-
|
|
1317
|
-
payment?: ThemePayment;
|
|
1318
|
-
release?: Release;
|
|
1342
|
+
value?: string;
|
|
1319
1343
|
/**
|
|
1320
|
-
* - The
|
|
1344
|
+
* - The type of the property.
|
|
1321
1345
|
*/
|
|
1322
|
-
|
|
1346
|
+
type?: string;
|
|
1323
1347
|
};
|
|
1324
|
-
/** @returns {
|
|
1325
|
-
declare function
|
|
1326
|
-
type
|
|
1348
|
+
/** @returns {CheckboxProp} */
|
|
1349
|
+
declare function CheckboxProp(): CheckboxProp;
|
|
1350
|
+
type CheckboxProp = {
|
|
1327
1351
|
/**
|
|
1328
|
-
* - The
|
|
1352
|
+
* - The value of the checkbox property.
|
|
1329
1353
|
*/
|
|
1330
|
-
|
|
1354
|
+
value?: boolean;
|
|
1331
1355
|
/**
|
|
1332
|
-
* -
|
|
1356
|
+
* - The type of the property.
|
|
1333
1357
|
*/
|
|
1334
|
-
|
|
1358
|
+
type?: string;
|
|
1335
1359
|
};
|
|
1336
|
-
/** @returns {
|
|
1337
|
-
declare function
|
|
1338
|
-
type
|
|
1360
|
+
/** @returns {RangeProp} */
|
|
1361
|
+
declare function RangeProp(): RangeProp;
|
|
1362
|
+
type RangeProp = {
|
|
1339
1363
|
/**
|
|
1340
|
-
* - The
|
|
1364
|
+
* - The value of the range property.
|
|
1341
1365
|
*/
|
|
1342
|
-
|
|
1366
|
+
value?: number;
|
|
1343
1367
|
/**
|
|
1344
|
-
* - The
|
|
1368
|
+
* - The type of the property.
|
|
1345
1369
|
*/
|
|
1346
|
-
|
|
1370
|
+
type?: string;
|
|
1347
1371
|
};
|
|
1348
|
-
/** @returns {
|
|
1349
|
-
declare function
|
|
1350
|
-
type
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
*/
|
|
1354
|
-
_id?: string;
|
|
1355
|
-
/**
|
|
1356
|
-
* - The ID of the application
|
|
1357
|
-
*/
|
|
1358
|
-
application_id?: string;
|
|
1359
|
-
/**
|
|
1360
|
-
* - Whether the theme has been applied or not
|
|
1361
|
-
*/
|
|
1362
|
-
applied?: boolean;
|
|
1363
|
-
assets?: Assets;
|
|
1364
|
-
/**
|
|
1365
|
-
* - Available sections information
|
|
1366
|
-
*/
|
|
1367
|
-
available_sections?: SectionItem[];
|
|
1368
|
-
/**
|
|
1369
|
-
* - The company id in which sales channel exists
|
|
1370
|
-
*/
|
|
1371
|
-
company_id?: number;
|
|
1372
|
-
config?: Config;
|
|
1373
|
-
/**
|
|
1374
|
-
* - The creation timestamp of the theme
|
|
1375
|
-
*/
|
|
1376
|
-
created_at?: string;
|
|
1377
|
-
font?: Font;
|
|
1378
|
-
/**
|
|
1379
|
-
* - Whether the theme is private or not
|
|
1380
|
-
*/
|
|
1381
|
-
is_private?: boolean;
|
|
1382
|
-
/**
|
|
1383
|
-
* - The ID of the theme in the marketplace
|
|
1384
|
-
*/
|
|
1385
|
-
marketplace_theme_id?: string;
|
|
1386
|
-
meta?: ThemeMeta;
|
|
1372
|
+
/** @returns {Section} */
|
|
1373
|
+
declare function Section(): Section;
|
|
1374
|
+
type Section = {
|
|
1375
|
+
blocks?: Block[];
|
|
1376
|
+
predicate?: Predicate;
|
|
1387
1377
|
/**
|
|
1388
|
-
* - The name of the
|
|
1378
|
+
* - The name of the section.
|
|
1389
1379
|
*/
|
|
1390
1380
|
name?: string;
|
|
1381
|
+
props?: SectionProps;
|
|
1382
|
+
preset?: SectionPreset;
|
|
1383
|
+
};
|
|
1384
|
+
/** @returns {Block} */
|
|
1385
|
+
declare function Block(): Block;
|
|
1386
|
+
type Block = {
|
|
1391
1387
|
/**
|
|
1392
|
-
* - The
|
|
1388
|
+
* - The type of the block.
|
|
1393
1389
|
*/
|
|
1394
|
-
|
|
1390
|
+
type?: string;
|
|
1395
1391
|
/**
|
|
1396
|
-
* -
|
|
1392
|
+
* - The name of the block.
|
|
1397
1393
|
*/
|
|
1398
|
-
|
|
1394
|
+
name?: string;
|
|
1395
|
+
props?: BlockProps;
|
|
1396
|
+
};
|
|
1397
|
+
/** @returns {Predicate} */
|
|
1398
|
+
declare function Predicate(): Predicate;
|
|
1399
|
+
type Predicate = {
|
|
1400
|
+
screen?: Screen;
|
|
1401
|
+
user?: ThemeUserSchema;
|
|
1402
|
+
route?: Route;
|
|
1403
|
+
};
|
|
1404
|
+
/** @returns {Screen} */
|
|
1405
|
+
declare function Screen(): Screen;
|
|
1406
|
+
type Screen = {
|
|
1399
1407
|
/**
|
|
1400
|
-
* -
|
|
1408
|
+
* - True if the screen is a mobile device.
|
|
1401
1409
|
*/
|
|
1402
|
-
|
|
1403
|
-
theme_type?: string;
|
|
1410
|
+
mobile?: boolean;
|
|
1404
1411
|
/**
|
|
1405
|
-
* -
|
|
1412
|
+
* - True if the screen is a desktop device.
|
|
1406
1413
|
*/
|
|
1407
|
-
|
|
1414
|
+
desktop?: boolean;
|
|
1408
1415
|
/**
|
|
1409
|
-
* -
|
|
1416
|
+
* - True if the screen is a tablet device.
|
|
1410
1417
|
*/
|
|
1411
|
-
|
|
1418
|
+
tablet?: boolean;
|
|
1412
1419
|
};
|
|
1413
1420
|
/** @returns {ThemeUserSchema} */
|
|
1414
1421
|
declare function ThemeUserSchema(): ThemeUserSchema;
|
|
1415
1422
|
type ThemeUserSchema = {
|
|
1416
|
-
/**
|
|
1417
|
-
* - True if the user is anonymous.
|
|
1418
|
-
*/
|
|
1419
|
-
anonymous?: boolean;
|
|
1420
1423
|
/**
|
|
1421
1424
|
* - True if the user is authenticated.
|
|
1422
1425
|
*/
|
|
1423
1426
|
authenticated?: boolean;
|
|
1424
|
-
};
|
|
1425
|
-
/** @returns {UMDJs} */
|
|
1426
|
-
declare function UMDJs(): UMDJs;
|
|
1427
|
-
type UMDJs = {
|
|
1428
|
-
links?: string[];
|
|
1429
|
-
};
|
|
1430
|
-
/** @returns {UrlProp} */
|
|
1431
|
-
declare function UrlProp(): UrlProp;
|
|
1432
|
-
type UrlProp = {
|
|
1433
|
-
/**
|
|
1434
|
-
* - The type of the property.
|
|
1435
|
-
*/
|
|
1436
|
-
type?: string;
|
|
1437
1427
|
/**
|
|
1438
|
-
* -
|
|
1428
|
+
* - True if the user is anonymous.
|
|
1439
1429
|
*/
|
|
1440
|
-
|
|
1430
|
+
anonymous?: boolean;
|
|
1441
1431
|
};
|
|
1442
|
-
/** @returns {
|
|
1443
|
-
declare function
|
|
1444
|
-
type
|
|
1445
|
-
/**
|
|
1446
|
-
* - The error background color
|
|
1447
|
-
*/
|
|
1448
|
-
error_background?: string;
|
|
1432
|
+
/** @returns {Route} */
|
|
1433
|
+
declare function Route(): Route;
|
|
1434
|
+
type Route = {
|
|
1449
1435
|
/**
|
|
1450
|
-
* - The
|
|
1436
|
+
* - The selected route.
|
|
1451
1437
|
*/
|
|
1452
|
-
|
|
1438
|
+
selected?: string;
|
|
1453
1439
|
/**
|
|
1454
|
-
* - The
|
|
1440
|
+
* - The exact URL of the route.
|
|
1455
1441
|
*/
|
|
1456
|
-
|
|
1442
|
+
exact_url?: string;
|
|
1443
|
+
};
|
|
1444
|
+
/** @returns {AvailablePagePlatformPredicate} */
|
|
1445
|
+
declare function AvailablePagePlatformPredicate(): AvailablePagePlatformPredicate;
|
|
1446
|
+
type AvailablePagePlatformPredicate = {
|
|
1457
1447
|
/**
|
|
1458
|
-
* -
|
|
1448
|
+
* - Section visibility on ios platform
|
|
1459
1449
|
*/
|
|
1460
|
-
|
|
1450
|
+
ios?: boolean;
|
|
1461
1451
|
/**
|
|
1462
|
-
* -
|
|
1452
|
+
* - Section visibility on android platform
|
|
1463
1453
|
*/
|
|
1464
|
-
|
|
1454
|
+
android?: boolean;
|
|
1465
1455
|
/**
|
|
1466
|
-
* -
|
|
1456
|
+
* - Section visibility on web platform
|
|
1467
1457
|
*/
|
|
1468
|
-
|
|
1458
|
+
web?: boolean;
|
|
1459
|
+
};
|
|
1460
|
+
/** @returns {BlitzkriegInternalServerErrorSchema} */
|
|
1461
|
+
declare function BlitzkriegInternalServerErrorSchema(): BlitzkriegInternalServerErrorSchema;
|
|
1462
|
+
type BlitzkriegInternalServerErrorSchema = {
|
|
1463
|
+
message?: string;
|
|
1464
|
+
};
|
|
1465
|
+
/** @returns {BlitzkriegApiErrorSchema} */
|
|
1466
|
+
declare function BlitzkriegApiErrorSchema(): BlitzkriegApiErrorSchema;
|
|
1467
|
+
type BlitzkriegApiErrorSchema = {
|
|
1468
|
+
message?: string;
|
|
1469
1469
|
};
|
|
1470
1470
|
/**
|
|
1471
1471
|
* Enum: PageType Used By: Theme
|