typescript-evnex 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # Evnex API for TypeScript
2
+
3
+ TypeScript client for the Evnex API.
4
+ <br>
5
+ Project is not affiliated with Evnex
6
+
7
+ ## Installation
8
+ `bun add evnex`
9
+
10
+ ## Examples
11
+ `evnex` is intended as a library, but a few example scripts are provided in the `examples` folder
12
+
13
+ Project is based upon [python-evnex](https://github.com/hardbyte/python-evnex)
@@ -0,0 +1,41 @@
1
+ export class Evnex {
2
+ constructor(username: any, password: any, tokens: any, config?: {});
3
+ client: any;
4
+ tokens: any;
5
+ orgId: any;
6
+ username: any;
7
+ password: any;
8
+ clientId: any;
9
+ cognito: any;
10
+ authenticate(): Promise<void>;
11
+ refreshTokens(): Promise<void>;
12
+ get accessToken(): any;
13
+ get idToken(): any;
14
+ get refreshToken(): any;
15
+ get commonHeaders(): {
16
+ Accept: string;
17
+ "Content-Type": string;
18
+ Authorization: any;
19
+ "User-Agent": string;
20
+ };
21
+ checkApiResponse(response: any): Promise<any>;
22
+ getUserDetail(): Promise<any>;
23
+ getOrgChargePoints(orgId: any): Promise<any>;
24
+ getOrgInsight(days: any, orgId: any, tzOffset?: number): Promise<any>;
25
+ getOrgSummaryStatus(orgId: any): Promise<any>;
26
+ getChargePointDetail(chargePointId: any): Promise<any>;
27
+ getChargePointDetailV3(chargePointId: any): Promise<any>;
28
+ getChargePointSolarConfig(chargePointId: any): Promise<any>;
29
+ getChargePointOverride(chargePointId: any): Promise<any>;
30
+ setChargePointOverride(chargePointId: any, chargeNow: any, connectorId?: number): Promise<boolean>;
31
+ getChargePointStatus(chargePointId: any): Promise<any>;
32
+ getChargePointTransactions(chargePointId: any): Promise<any>;
33
+ getChargePointSessions(chargePointId: any): Promise<any>;
34
+ stopChargePoint(chargePointId: any, orgId: any, connectorId?: string, timeout?: number): Promise<any>;
35
+ enableCharger(orgId: any, chargePointId: any, connectorId?: number): Promise<any>;
36
+ disableCharger(orgId: any, chargePointId: any, connectorId?: number): Promise<any>;
37
+ setChargerAvailability(orgId: any, chargePointId: any, available?: boolean, connectorId?: number, timeout?: number): Promise<any>;
38
+ unlockCharger(chargePointId: any, available?: boolean, connectorId?: string, timeout?: number): Promise<any>;
39
+ setChargerLoadProfile(chargePointId: any, chargingProfilePeriods: any, enabled?: boolean, duration?: number, units?: string, timeout?: number): Promise<any>;
40
+ setChargePointSchedule(chargePointId: any, chargingProfilePeriods: any, enabled?: boolean, duration?: number, timeout?: number): Promise<any>;
41
+ }