gohl
Version:
Go Highlevel Node Js ease of use library implementation to their API
47 lines (46 loc) • 1.7 kB
TypeScript
import { AuthData } from "../interfaces/auth/authdata";
import { ICustomValue } from "../interfaces/custom.values";
export declare class CustomValue {
private authData?;
/**
* Endpoints For Subaccounts
* https://highlevel.stoplight.io/docs/integrations/e283eac258a96-sub-account-formerly-location-api
*/
constructor(authData?: AuthData);
/**
* Get CustomValues
* Documentation - https://highlevel.stoplight.io/docs/integrations/d40742c5e3e7d-get-custom-values
* @param locationId
* @returns
*/
getAll(locationId: string): Promise<ICustomValue[]>;
/**
* Get CustomValue
* Documentation - https://highlevel.stoplight.io/docs/integrations/1c982c0816621-get-custom-value
* @param locationId
* @returns
*/
get(customValueId: string, locationId: string): Promise<ICustomValue>;
/**
* Create CustomValue
* Documentation - https://highlevel.stoplight.io/docs/integrations/e0c3b7e6d196c-create-custom-value
* @param customValue
* @returns
*/
add(locationId: string, customValue: ICustomValue): Promise<ICustomValue>;
/**
* Update CustomValue
* Documentation - https://highlevel.stoplight.io/docs/integrations/c5c9b99b0e74f-update-custom-value
* @param customValue
* @param locationId
* @returns
*/
update(customValueId: string, locationId: string, customValue: ICustomValue): Promise<ICustomValue>;
/**
* Delete CustomValue
* Documentation - https://highlevel.stoplight.io/docs/integrations/40e00c29eb2da-delete-custom-value
* @param customValueId
* @returns
*/
remove(customValueId: string, locationId: string): Promise<boolean>;
}