mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 23:35:26 +00:00
Minor fixes for evchargers (#220)
This commit is contained in:
@@ -16,7 +16,7 @@ type EvchargersService struct {
|
||||
client *client.Client
|
||||
}
|
||||
|
||||
// Retrieve reference data as used by this API
|
||||
// Retrieve reference data as used by this API and in conjunction with the Search endpoint
|
||||
func (t *EvchargersService) ReferenceData(request *ReferenceDataRequest) (*ReferenceDataResponse, error) {
|
||||
rsp := &ReferenceDataResponse{}
|
||||
return rsp, t.client.Call("evchargers", "ReferenceData", request, rsp)
|
||||
@@ -69,9 +69,10 @@ type Connection struct {
|
||||
// The ID of the connection type
|
||||
ConnectionTypeId string `json:"connectionTypeId"`
|
||||
// The current
|
||||
Current string `json:"current"`
|
||||
Current string `json:"current"`
|
||||
Level *ChargerType `json:"level"`
|
||||
// The level of charging power available
|
||||
Level string `json:"level"`
|
||||
LevelId string `json:"levelId"`
|
||||
// The power in KW
|
||||
Power float64 `json:"power"`
|
||||
Reference string `json:"reference"`
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -63,5 +63,5 @@
|
||||
},
|
||||
"type": "module",
|
||||
"types": "dist/index.d.ts",
|
||||
"version": "1.0.532"
|
||||
"version": "1.0.533"
|
||||
}
|
||||
Reference in New Issue
Block a user