mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 10:30:37 +09:00
10 lines
322 B
TypeScript
10 lines
322 B
TypeScript
|
|
import type { HeartbeatRun } from "@paperclip/shared";
|
||
|
|
import { api } from "./client";
|
||
|
|
|
||
|
|
export const heartbeatsApi = {
|
||
|
|
list: (companyId: string, agentId?: string) => {
|
||
|
|
const params = agentId ? `?agentId=${agentId}` : "";
|
||
|
|
return api.get<HeartbeatRun[]>(`/companies/${companyId}/heartbeat-runs${params}`);
|
||
|
|
},
|
||
|
|
};
|