gohl
Version:
Go Highlevel Node Js ease of use library implementation to their API
35 lines (34 loc) • 1.2 kB
TypeScript
import { AuthData } from "../interfaces/auth/authdata";
import { ISurvey } from "../interfaces/survey";
import { ISubmission } from "../interfaces/submission";
export declare class Survey {
private authData?;
/**
* Endpoints For Surveys
* https://highlevel.stoplight.io/docs/integrations/3c7cf6a44f362-workflows-api
*/
constructor(authData?: AuthData);
/**
* Get Surveys
* https://highlevel.stoplight.io/docs/integrations/1e9fdbe3f2013-get-surveys
* @param locationId
*/
getAll(locationId: string, skip?: number, limit?: number, type?: string): Promise<{
surveys: ISurvey[];
total: number;
}>;
/**
* Get Survey Submissions
* https://highlevel.stoplight.io/docs/integrations/288c25c7e319a-get-surveys-submissions
* @param locationId
*/
getSubmissions(locationId: string, skip?: number, limit?: number, page?: number, search?: string, type?: string, startAt?: string, endAt?: string): Promise<{
submissions: ISubmission[];
meta: {
total: number;
currentPage: number;
nextPage: string | null;
prevPage: string | null;
};
}>;
}