UNPKG

gohl

Version:

Go Highlevel Node Js ease of use library implementation to their API

46 lines (45 loc) 1.39 kB
import { AuthData } from "../interfaces/auth/authdata"; import { ITag } from "../interfaces/tag"; export declare class Tag { private authData?; /** * Endpoints For Tags */ constructor(authData?: AuthData); /** * Get Tags * Documentation - https://highlevel.stoplight.io/docs/integrations/00a65a984720b-get-tags * @param locationId * @returns */ getAll(locationId: string): Promise<ITag[]>; /** * Get Tag * Documentation - https://highlevel.stoplight.io/docs/integrations/2be6f9044b427-get-tag-by-id * @param locationId * @returns */ get(tagId: string, locationId: string): Promise<ITag>; /** * Create Tag * Documentation - https://highlevel.stoplight.io/docs/integrations/64433faeaa52e-create-tag * @param tag * @returns */ add(locationId: string, tag: ITag): Promise<ITag>; /** * Update Tag * Documentation - https://highlevel.stoplight.io/docs/integrations/809b211aaf37a-update-tag * @param tag * @param locationId * @returns */ update(tagId: string, locationId: string, tag: ITag): Promise<ITag>; /** * Delete Tag * Documentation - https://highlevel.stoplight.io/docs/integrations/8742f26722f45-delete-tag * @param tagId * @returns */ remove(tagId: string, locationId: string): Promise<boolean>; }