feat(ui): add set supervision url action
[e-mobility-charging-stations-simulator.git] / ui / web / src / composables / UIClient.ts
index c5f20ce09b2fb83d376a8cd2eddb736350a3abe5..ce459f1b253504abbb478fa54b5aef5544646a22 100644 (file)
@@ -67,6 +67,13 @@ export class UIClient {
     return this.sendRequest(ProcedureName.DELETE_CHARGING_STATIONS, { hashIds: [hashId] })
   }
 
+  public async setSupervisionUrl(hashId: string, supervisionUrl: string): Promise<ResponsePayload> {
+    return this.sendRequest(ProcedureName.SET_SUPERVISION_URL, {
+      hashIds: [hashId],
+      url: supervisionUrl
+    })
+  }
+
   public async startChargingStation(hashId: string): Promise<ResponsePayload> {
     return this.sendRequest(ProcedureName.START_CHARGING_STATION, { hashIds: [hashId] })
   }