UNPKG

gong-api-client

Version:

A Node.js library that automatically generates a TypeScript client for the Gong API from the OpenAPI specification

17 lines (16 loc) 605 B
/** * Downloads the Gong API specification from the Gong API. * @returns The API specification as a JSON object. */ export declare function downloadGongSpec(): Promise<any>; /** * Saves the API specification to a file. * @param spec The API specification object. * @param outputFile Path to save the file. */ export declare function saveSpec(spec: any, outputFile: string): void; /** * Main function to download and save the Gong API specification. * @param outputFile Path to save the API specification. */ export declare function downloadAndSaveGongSpec(outputFile?: string): Promise<string>;