import { Service } from "../service.ts";import { Payload } from "../client.ts";import { TombaException } from "../exception.ts";
export class LeadsLists extends Service { async getLists<T extends unknown>(): Promise<T> { let path = "/leads_lists/{id}"; let payload: Payload = {};
return await this.client.call("get", path, { "content-type": "application/json", }, payload); }
async deleteListId<T extends unknown>(id: string): Promise<T> { if (typeof id === "undefined") { throw new TombaException('Missing required parameter: "id"'); }
let path = "/leads_lists/{id}".replace("{id}", id); let payload: Payload = {};
return await this.client.call("delete", path, { "content-type": "application/json", }, payload); }
async createList<T extends unknown>(): Promise<T> { let path = "/leads_lists/{id}"; let payload: Payload = {};
return await this.client.call("post", path, { "content-type": "application/json", }, payload); }
async updateListId<T extends unknown>(id: string): Promise<T> { if (typeof id === "undefined") { throw new TombaException('Missing required parameter: "id"'); }
let path = "/leads_lists/{id}".replace("{id}", id); let payload: Payload = {};
return await this.client.call("put", path, { "content-type": "application/json", }, payload); }}