Minor fixes for evchargers (#220)

This commit is contained in:
Dominic Wong
2021-10-02 00:00:54 +01:00
committed by GitHub
parent 6c2579b0fd
commit 684d5aa041
10 changed files with 265 additions and 239 deletions

View File

@@ -6,7 +6,7 @@ export class EvchargersService {
constructor(token: string) {
this.client = new m3o.Client({ token: token });
}
// Retrieve reference data as used by this API
// Retrieve reference data as used by this API and in conjunction with the Search endpoint
referenceData(request: ReferenceDataRequest): Promise<ReferenceDataResponse> {
return this.client.call(
"evchargers",
@@ -66,8 +66,9 @@ export interface Connection {
connectionTypeId?: string;
// The current
current?: string;
level?: ChargerType;
// The level of charging power available
level?: string;
levelId?: string;
// The power in KW
power?: number;
reference?: string;

View File

@@ -63,5 +63,5 @@
},
"type": "module",
"types": "dist/index.d.ts",
"version": "1.0.532"
"version": "1.0.533"
}