feat(web): add remote start transaction feature and QR code scanning for charging
This commit is contained in:
@@ -208,6 +208,11 @@ export const api = {
|
||||
apiFetch<Transaction & { online: boolean }>(`/api/transactions/${id}/stop`, {
|
||||
method: "POST",
|
||||
}),
|
||||
remoteStart: (data: { chargePointIdentifier: string; connectorId: number; idTag: string }) =>
|
||||
apiFetch<{ success: true }>("/api/transactions/remote-start", {
|
||||
method: "POST",
|
||||
body: JSON.stringify(data),
|
||||
}),
|
||||
delete: (id: number) =>
|
||||
apiFetch<{ success: true }>(`/api/transactions/${id}`, { method: "DELETE" }),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user