@openinc/parse-server-opendash
Version:
Parse Server Cloud Code for open.INC Stack.
32 lines (31 loc) • 1.14 kB
TypeScript
import { _User, Tenant, Assets } from "../../../types";
import { DocumentationStructure } from "../types";
/**
* Service for cleaning up old documentation that no longer exists in the repository
*/
export declare class DocumentationCleanup {
/**
* Remove old default documentation that is no longer present in the new import
*/
static cleanupOldDocumentation(newStructure: DocumentationStructure, user: _User | undefined, tenant: Tenant | undefined): Promise<{
deletedDocuments: number;
deletedCategories: number;
}>;
static findExistingAssets(user: _User | undefined, tenant: Tenant | undefined): Promise<Assets[]>;
/**
* Collect all git paths from the documentation structure
*/
private static collectGitPaths;
/**
* Recursively collect folder paths
*/
private static collectFolderPaths;
/**
* Find all existing default documents for the given user/tenant
*/
private static findExistingDefaultDocuments;
/**
* Find all existing default categories for the given user/tenant
*/
private static findExistingDefaultCategories;
}