-
Notifications
You must be signed in to change notification settings - Fork 78
/
constants.ts
35 lines (31 loc) · 1.03 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// moved all the US constants to its own file, we can use this file for shared constants
import {
getBrandEnvironment as getCABrandEnvironment,
CanadianBrandEnvironment,
} from './constants/canada';
import {
getBrandEnvironment as getEUBrandEnvironment,
EuropeanBrandEnvironment,
} from './constants/europe';
import { Brand, VehicleStatusOptions } from './interfaces/common.interfaces';
export const ALL_ENDPOINTS = {
CA: (brand: Brand): CanadianBrandEnvironment['endpoints'] =>
getCABrandEnvironment(brand).endpoints,
EU: (brand: Brand): EuropeanBrandEnvironment['endpoints'] =>
getEUBrandEnvironment({ brand }).endpoints,
};
export const GEN2 = 2;
export const GEN1 = 1;
export type REGION = 'US' | 'CA' | 'EU';
export enum REGIONS {
US = 'US',
CA = 'CA',
EU = 'EU',
}
// ev stuffz
export type ChargeTarget = 50 | 60 | 70 | 80 | 90 | 100;
export const POSSIBLE_CHARGE_LIMIT_VALUES = [50, 60, 70, 80, 90, 100];
export const DEFAULT_VEHICLE_STATUS_OPTIONS: VehicleStatusOptions = {
refresh: false,
parsed: false,
};