watchtower-node-sdk
Version:
A TypeScript Node.js SDK for the Watchtower API, providing API key management, connection string generation, and more
31 lines (30 loc) • 1.32 kB
TypeScript
import { BaseEndpoint } from '../base';
import { PDFExportRequest, PDFExportResponse, PDFExportStatus } from './types';
export declare class PDFEndpoint extends BaseEndpoint {
constructor(client: any);
private validateRequiredKeys;
/**
* Generate a PDF export for a specific item
* @param data - The PDF export request parameters
* @returns Promise with the PDF export response
* @throws {InvalidRequestError} If required fields are missing or invalid
* @throws {AuthenticationError} If API keys are invalid
* @throws {ServerError} If server encounters an error
*/
generatePDF(data: PDFExportRequest): Promise<PDFExportResponse>;
/**
* Get the status of a PDF export
* @param exportId - The ID of the export to check
* @param data - The request parameters containing API keys
* @returns Promise with the export status
* @throws {InvalidRequestError} If required fields are missing
* @throws {AuthenticationError} If API keys are invalid
* @throws {NotFoundError} If export is not found
* @throws {ServerError} If server encounters an error
*/
getExportStatus(exportId: string, data: {
organization_apikey: string;
app_apikey: string;
tenant_apikey?: string;
}): Promise<PDFExportStatus>;
}