import { OpenFlareBaseService } from './base.service'; import type { DnsAccountItem, DnsAccountMutationPayload } from './types'; export class DnsAccountService extends OpenFlareBaseService { protected static override readonly basePath: string = '/api/v1/d/dns-accounts'; static async list(): Promise { return this.get('/'); } static async create( payload: DnsAccountMutationPayload, ): Promise { return this.post('/', payload); } static async update( id: number, payload: DnsAccountMutationPayload, ): Promise { return this.post(`/${id}/update`, payload); } static async deleteById(id: number): Promise { return this.post(`/${id}/delete`); } }