UNPKG

kintone-as-code

Version:

A CLI tool for managing kintone applications as code with type-safe TypeScript schemas

27 lines 1.04 kB
interface ExportOptions { appId: string; name: string; env?: string | undefined; output?: string | undefined; withRecordSchema?: boolean; withQuery?: boolean; includeRelated: boolean; includeSubtable: boolean; } /** * Validates and sanitizes file names to prevent path traversal and other security issues * @param name - The file name to validate * @returns The validated file name * @throws Error if the file name is invalid */ export declare const validateFileName: (name: string) => string; /** * Validates and normalizes output directory paths to prevent directory traversal attacks * @param outputDir - The output directory path to validate * @returns The normalized absolute path within the project root * @throws Error if the path is invalid or would escape the project root */ export declare const validateOutputDirectory: (outputDir: string) => Promise<string>; export declare const exportCommand: (options: ExportOptions) => Promise<void>; export {}; //# sourceMappingURL=export.d.ts.map