feat(ui): add charging station options to add action
[e-mobility-charging-stations-simulator.git] / ui / web / src / composables / UIClient.ts
index c6e80946c7bbfec42d0157a73afe18b4fe8a51b8..d569b93b09719e91cd8536a4ac5f315ddc5e4417 100644 (file)
@@ -1,6 +1,7 @@
 import {
   ApplicationProtocol,
   AuthenticationType,
+  type ChargingStationOptions,
   ProcedureName,
   type ProtocolResponse,
   type RequestPayload,
@@ -64,9 +65,14 @@ export class UIClient {
 
   public async addChargingStations(
     template: string,
-    numberOfStations: number
+    numberOfStations: number,
+    options?: ChargingStationOptions
   ): Promise<ResponsePayload> {
-    return this.sendRequest(ProcedureName.ADD_CHARGING_STATIONS, { template, numberOfStations })
+    return this.sendRequest(ProcedureName.ADD_CHARGING_STATIONS, {
+      template,
+      numberOfStations,
+      options
+    })
   }
 
   public async deleteChargingStation(hashId: string): Promise<ResponsePayload> {