import {LegacyOpenFlareBaseService} from './legacy-base.service'; import type {DnsAccountItem, DnsAccountMutationPayload} from './types'; export class DnsAccountService extends LegacyOpenFlareBaseService { protected static readonly basePath = '/api/dns-accounts'; static async list(): Promise { return this.legacyGet('/'); } static async create( payload: DnsAccountMutationPayload, ): Promise { return this.legacyPost('/', payload); } static async update( id: number, payload: DnsAccountMutationPayload, ): Promise { return this.legacyPost(`/${id}/update`, payload); } static async delete(id: number): Promise { return this.legacyPost(`/${id}/delete`); } }