diff --git a/web/src/api/client.ts b/web/src/api/client.ts index a55bc2e..f09822a 100644 --- a/web/src/api/client.ts +++ b/web/src/api/client.ts @@ -3,7 +3,7 @@ import type { AuthState, Account, CreateAccountInput, Template, CreateTemplateInput, Domain, CreateDomainInput, ChangesetResponse, ApplyRequest, - Schedule, Channel, CreateChannelInput, CheckRun, + Schedule, Channel, CreateChannelInput, CheckRun, RecordDTO, } from "./types" export class UnauthorizedError extends Error { @@ -74,6 +74,11 @@ export const api = { setDomainTemplate: (projectId: string, id: string, templateId: string | null) => req(projectPath(projectId, `/domains/${id}`), { method: "PATCH", body: JSON.stringify({ templateId }) }), + zoneRecords: (projectId: string, id: string) => + req(projectPath(projectId, `/domains/${id}/records`)), + templateFromZone: (projectId: string, id: string) => + req