@openinc/parse-server-opendash
Version:
Parse Server Cloud Code for open.INC Stack.
22 lines (21 loc) • 630 B
TypeScript
import { ImportOptions, ImportResult } from "../types";
import { _User, Tenant } from "../../../types";
/**
* Main Documentation Importer class
*/
export declare class DocumentationImporter {
private githubClient;
constructor(token: string);
/**
* Import documentation from a GitHub repository
*/
importFromRepository(options: ImportOptions, user: _User | undefined, tenant: Tenant | undefined): Promise<ImportResult>;
/**
* Validate that a branch exists
*/
private validateBranch;
/**
* Get file content from GitHub
*/
getFileContent(path: string): Promise<any>;
}