|
1 | 1 | /** |
2 | 2 | * Internal dependencies |
3 | 3 | */ |
4 | | -import { shopSettings, customers } from '.'; |
| 4 | +import { shopSettings, ShopConfig } from '.'; |
5 | 5 |
|
6 | 6 | const country = process.env.WC_DEFAULT_COUNTRY || 'usa'; |
7 | 7 |
|
8 | | -export const storeConfigDefault = { |
9 | | - classicPages: false, // false = block cart and checkout (default), true = classic cart & checkout pages |
10 | | - wpDebugging: false, // WP Debugging plugin is deactivated |
11 | | - subscription: false, // WC Subscription plugin is deactivated |
| 8 | +export const storeConfigDefault: ShopConfig = { |
| 9 | + enableClassicPages: false, // false = block cart and checkout (default), true = classic cart & checkout pages |
| 10 | + enableWpDebugging: false, // WP Debugging plugin is deactivated |
| 11 | + enableSubscriptionsPlugin: false, // WC Subscription plugin is deactivated |
12 | 12 | settings: shopSettings[ country ], // WC general settings |
13 | | - // customer: customers[ country ], // registered customer |
14 | 13 | }; |
15 | 14 |
|
16 | | -export const storeConfigClassic = { |
| 15 | +export const storeConfigClassic: ShopConfig = { |
17 | 16 | ...storeConfigDefault, |
18 | | - classicPages: true, |
| 17 | + enableClassicPages: true, |
19 | 18 | }; |
20 | 19 |
|
21 | | -export const storeConfigGermany = { |
| 20 | +export const storeConfigGermany: ShopConfig = { |
22 | 21 | ...storeConfigDefault, |
23 | 22 | settings: shopSettings.germany, // WC general settings |
24 | | - // customer: customers.germany, |
25 | 23 | }; |
26 | 24 |
|
27 | | -export const storeConfigUsa = { |
| 25 | +export const storeConfigUsa: ShopConfig = { |
28 | 26 | ...storeConfigDefault, |
29 | | - wpDebugging: true, |
| 27 | + enableWpDebugging: true, |
30 | 28 | settings: shopSettings.usa, |
31 | | - // customer: customers.usa, |
32 | 29 | }; |
33 | 30 |
|
34 | | -export const storeConfigMexico = { |
| 31 | +export const storeConfigMexico: ShopConfig = { |
35 | 32 | ...storeConfigDefault, |
36 | 33 | settings: shopSettings.mexico, |
37 | | - // customer: customers.mexico, |
38 | 34 | }; |
39 | 35 |
|
40 | | -const storeConfigSubscription = { |
41 | | - // requireFinalConfirmation: false, |
42 | | - subscription: true, |
| 36 | +const storeConfigSubscription: ShopConfig = { |
| 37 | + enableSubscriptionsPlugin: true, |
43 | 38 | }; |
44 | 39 |
|
45 | | -export const storeConfigSubscriptionGermany = { |
| 40 | +export const storeConfigSubscriptionGermany: ShopConfig = { |
46 | 41 | ...storeConfigGermany, |
47 | 42 | ...storeConfigSubscription, |
48 | 43 | }; |
49 | 44 |
|
50 | | -export const storeConfigSubscriptionUsa = { |
| 45 | +export const storeConfigSubscriptionUsa: ShopConfig = { |
51 | 46 | ...storeConfigUsa, |
52 | 47 | ...storeConfigSubscription, |
53 | 48 | }; |
0 commit comments