tesla-fleet-api 0.0.12 → 0.0.13
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/dist/types/products.d.ts +3 -2
- package/package.json +1 -1
- package/src/types/products.ts +4 -2
- package/dist/types/index.d.ts +0 -44
- package/dist/types/index.js +0 -11
- package/dist/types/index.js.map +0 -1
- package/dist/types/types.d.ts +0 -48
- package/dist/types/types.js +0 -11
- package/dist/types/types.js.map +0 -1
- package/dist/types.d.ts +0 -48
- package/dist/types.js +0 -11
- package/dist/types.js.map +0 -1
package/dist/types/products.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { VehicleResponse } from "./vehicle.js";
|
|
2
2
|
import { VehicleConfig } from "./vehicle_data.js";
|
|
3
|
-
export type
|
|
4
|
-
response:
|
|
3
|
+
export type ProductsData = {
|
|
4
|
+
response: ProductsResponse;
|
|
5
5
|
count: number;
|
|
6
6
|
};
|
|
7
|
+
export type ProductsResponse = (VehicleProduct | EnergyProduct)[];
|
|
7
8
|
export type VehicleProduct = VehicleResponse & {
|
|
8
9
|
vehicle_config: VehicleConfig;
|
|
9
10
|
command_signing: string;
|
package/package.json
CHANGED
package/src/types/products.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { VehicleResponse } from "./vehicle.js";
|
|
2
2
|
import { VehicleConfig } from "./vehicle_data.js";
|
|
3
3
|
|
|
4
|
-
export type
|
|
5
|
-
response:
|
|
4
|
+
export type ProductsData = {
|
|
5
|
+
response: ProductsResponse;
|
|
6
6
|
count: number;
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
+
export type ProductsResponse = (VehicleProduct | EnergyProduct)[];
|
|
10
|
+
|
|
9
11
|
export type VehicleProduct = VehicleResponse & {
|
|
10
12
|
vehicle_config: VehicleConfig;
|
|
11
13
|
command_signing: string;
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export interface CommandResponse {
|
|
2
|
-
response: {
|
|
3
|
-
result: boolean;
|
|
4
|
-
reason: string;
|
|
5
|
-
};
|
|
6
|
-
error: string;
|
|
7
|
-
}
|
|
8
|
-
export type Scope = "user_data" | "vehicle_device_data" | "vehicle_cmds" | "vehicle_charging_cmds" | "energy_device_data" | "energy_cmds" | "offline_access" | "openid";
|
|
9
|
-
export type Trunk = "front" | "rear";
|
|
10
|
-
export declare const Seats: {
|
|
11
|
-
FRONT_LEFT: number;
|
|
12
|
-
FRONT_RIGHT: number;
|
|
13
|
-
REAR_LEFT: number;
|
|
14
|
-
REAR_CENTER: number;
|
|
15
|
-
REAR_RIGHT: number;
|
|
16
|
-
THIRD_ROW_LEFT: number;
|
|
17
|
-
THIRD_ROW_RIGHT: number;
|
|
18
|
-
};
|
|
19
|
-
export type Seat = keyof typeof Seats;
|
|
20
|
-
export type Level = 0 | 1 | 2 | 3;
|
|
21
|
-
export declare const ClimateModes: {
|
|
22
|
-
Off: number;
|
|
23
|
-
Keep: number;
|
|
24
|
-
Dog: number;
|
|
25
|
-
Camp: number;
|
|
26
|
-
};
|
|
27
|
-
export type ClimateMode = keyof typeof ClimateModes;
|
|
28
|
-
export type VehicleDataEndpoint = "charge_state" | "climate_state" | "closures_state" | "drive_state" | "gui_settings" | "location_data" | "vehicle_config" | "vehicle_state" | "vehicle_data_combo";
|
|
29
|
-
export type AlertTypes = "customer" | "service";
|
|
30
|
-
export interface FleetTelemetryConfig {
|
|
31
|
-
vins: string[];
|
|
32
|
-
config: {
|
|
33
|
-
hostname: string;
|
|
34
|
-
ca: string;
|
|
35
|
-
fields: {
|
|
36
|
-
[key: string]: {
|
|
37
|
-
interval_seconds: number;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
alert_types: AlertTypes[];
|
|
41
|
-
exp: number;
|
|
42
|
-
port: number;
|
|
43
|
-
};
|
|
44
|
-
}
|
package/dist/types/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export const Seats = {
|
|
2
|
-
FRONT_LEFT: 0,
|
|
3
|
-
FRONT_RIGHT: 1,
|
|
4
|
-
REAR_LEFT: 2,
|
|
5
|
-
REAR_CENTER: 4,
|
|
6
|
-
REAR_RIGHT: 5,
|
|
7
|
-
THIRD_ROW_LEFT: 6,
|
|
8
|
-
THIRD_ROW_RIGHT: 7,
|
|
9
|
-
};
|
|
10
|
-
export const ClimateModes = { Off: 0, Keep: 1, Dog: 2, Camp: 3 };
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAuBA,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,CAAC;IACd,SAAS,EAAE,CAAC;IACZ,WAAW,EAAE,CAAC;IACd,UAAU,EAAE,CAAC;IACb,cAAc,EAAE,CAAC;IACjB,eAAe,EAAE,CAAC;CACrB,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC"}
|
package/dist/types/types.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export interface CommandResponse {
|
|
2
|
-
response: {
|
|
3
|
-
result: boolean;
|
|
4
|
-
reason: string;
|
|
5
|
-
};
|
|
6
|
-
error: string;
|
|
7
|
-
}
|
|
8
|
-
export type Scope = "user_data" | "vehicle_device_data" | "vehicle_cmds" | "vehicle_charging_cmds" | "energy_device_data" | "energy_cmds" | "offline_access" | "openid";
|
|
9
|
-
export type Method = "GET" | "POST" | "PUT" | "DELETE";
|
|
10
|
-
export interface RequestFunction {
|
|
11
|
-
(method: Method, endpoint: string, data?: Record<string, any>): Promise<Record<string, any>>;
|
|
12
|
-
}
|
|
13
|
-
export type Trunk = "front" | "rear";
|
|
14
|
-
export declare const Seats: {
|
|
15
|
-
FRONT_LEFT: number;
|
|
16
|
-
FRONT_RIGHT: number;
|
|
17
|
-
REAR_LEFT: number;
|
|
18
|
-
REAR_CENTER: number;
|
|
19
|
-
REAR_RIGHT: number;
|
|
20
|
-
THIRD_ROW_LEFT: number;
|
|
21
|
-
THIRD_ROW_RIGHT: number;
|
|
22
|
-
};
|
|
23
|
-
export type Seat = keyof typeof Seats;
|
|
24
|
-
export type Level = 0 | 1 | 2 | 3;
|
|
25
|
-
export declare const ClimateModes: {
|
|
26
|
-
Off: number;
|
|
27
|
-
Keep: number;
|
|
28
|
-
Dog: number;
|
|
29
|
-
Camp: number;
|
|
30
|
-
};
|
|
31
|
-
export type ClimateMode = keyof typeof ClimateModes;
|
|
32
|
-
export type VehicleDataEndpoint = "charge_state" | "climate_state" | "closures_state" | "drive_state" | "gui_settings" | "location_data" | "vehicle_config" | "vehicle_state" | "vehicle_data_combo";
|
|
33
|
-
export type AlertTypes = "customer" | "service";
|
|
34
|
-
export interface FleetTelemetryConfig {
|
|
35
|
-
vins: string[];
|
|
36
|
-
config: {
|
|
37
|
-
hostname: string;
|
|
38
|
-
ca: string;
|
|
39
|
-
fields: {
|
|
40
|
-
[key: string]: {
|
|
41
|
-
interval_seconds: number;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
alert_types: AlertTypes[];
|
|
45
|
-
exp: number;
|
|
46
|
-
port: number;
|
|
47
|
-
};
|
|
48
|
-
}
|
package/dist/types/types.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export const Seats = {
|
|
2
|
-
FRONT_LEFT: 0,
|
|
3
|
-
FRONT_RIGHT: 1,
|
|
4
|
-
REAR_LEFT: 2,
|
|
5
|
-
REAR_CENTER: 4,
|
|
6
|
-
REAR_RIGHT: 5,
|
|
7
|
-
THIRD_ROW_LEFT: 6,
|
|
8
|
-
THIRD_ROW_RIGHT: 7,
|
|
9
|
-
};
|
|
10
|
-
export const ClimateModes = { Off: 0, Keep: 1, Dog: 2, Camp: 3 };
|
|
11
|
-
//# sourceMappingURL=types.js.map
|
package/dist/types/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AA2BA,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,CAAC;IACd,SAAS,EAAE,CAAC;IACZ,WAAW,EAAE,CAAC;IACd,UAAU,EAAE,CAAC;IACb,cAAc,EAAE,CAAC;IACjB,eAAe,EAAE,CAAC;CACrB,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC"}
|
package/dist/types.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export interface CommandResponse {
|
|
2
|
-
response: {
|
|
3
|
-
result: boolean;
|
|
4
|
-
reason: string;
|
|
5
|
-
};
|
|
6
|
-
error: string;
|
|
7
|
-
}
|
|
8
|
-
export type Scope = "user_data" | "vehicle_device_data" | "vehicle_cmds" | "vehicle_charging_cmds" | "energy_device_data" | "energy_cmds" | "offline_access" | "openid";
|
|
9
|
-
export type Method = "GET" | "POST" | "PUT" | "DELETE";
|
|
10
|
-
export interface RequestFunction {
|
|
11
|
-
(method: Method, endpoint: string, data?: Record<string, any>): Promise<Record<string, any>>;
|
|
12
|
-
}
|
|
13
|
-
export type Trunk = "front" | "rear";
|
|
14
|
-
export declare const Seats: {
|
|
15
|
-
FRONT_LEFT: number;
|
|
16
|
-
FRONT_RIGHT: number;
|
|
17
|
-
REAR_LEFT: number;
|
|
18
|
-
REAR_CENTER: number;
|
|
19
|
-
REAR_RIGHT: number;
|
|
20
|
-
THIRD_ROW_LEFT: number;
|
|
21
|
-
THIRD_ROW_RIGHT: number;
|
|
22
|
-
};
|
|
23
|
-
export type Seat = keyof typeof Seats;
|
|
24
|
-
export type Level = 0 | 1 | 2 | 3;
|
|
25
|
-
export declare const ClimateModes: {
|
|
26
|
-
Off: number;
|
|
27
|
-
Keep: number;
|
|
28
|
-
Dog: number;
|
|
29
|
-
Camp: number;
|
|
30
|
-
};
|
|
31
|
-
export type ClimateMode = keyof typeof ClimateModes;
|
|
32
|
-
export type VehicleDataEndpoint = "charge_state" | "climate_state" | "closures_state" | "drive_state" | "gui_settings" | "location_data" | "vehicle_config" | "vehicle_state" | "vehicle_data_combo";
|
|
33
|
-
export type AlertTypes = "customer" | "service";
|
|
34
|
-
export interface FleetTelemetryConfig {
|
|
35
|
-
vins: string[];
|
|
36
|
-
config: {
|
|
37
|
-
hostname: string;
|
|
38
|
-
ca: string;
|
|
39
|
-
fields: {
|
|
40
|
-
[key: string]: {
|
|
41
|
-
interval_seconds: number;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
alert_types: AlertTypes[];
|
|
45
|
-
exp: number;
|
|
46
|
-
port: number;
|
|
47
|
-
};
|
|
48
|
-
}
|
package/dist/types.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export const Seats = {
|
|
2
|
-
FRONT_LEFT: 0,
|
|
3
|
-
FRONT_RIGHT: 1,
|
|
4
|
-
REAR_LEFT: 2,
|
|
5
|
-
REAR_CENTER: 4,
|
|
6
|
-
REAR_RIGHT: 5,
|
|
7
|
-
THIRD_ROW_LEFT: 6,
|
|
8
|
-
THIRD_ROW_RIGHT: 7,
|
|
9
|
-
};
|
|
10
|
-
export const ClimateModes = { Off: 0, Keep: 1, Dog: 2, Camp: 3 };
|
|
11
|
-
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AA2BA,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,CAAC;IACd,SAAS,EAAE,CAAC;IACZ,WAAW,EAAE,CAAC;IACd,UAAU,EAAE,CAAC;IACb,cAAc,EAAE,CAAC;IACjB,eAAe,EAAE,CAAC;CACrB,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC"}
|