@lark-project/cli
Version:
飞书项目插件开发工具
33 lines (32 loc) • 1.12 kB
TypeScript
export declare function getSnapshotPath(caseId: string): string;
export declare function getResultPath(caseId: string): string;
export declare function getSummaryPath(): string;
export declare function saveSnapshot(caseId: string, data: Record<string, any>): void;
export declare function loadSnapshot(caseId: string): Record<string, any> | null;
export declare function saveResult(caseId: string, result: CaseCompareResult): void;
export declare function updateSummary(caseId: string, result: CaseCompareResult): void;
export interface CaseCompareResult {
caseId: string;
status: 'pass' | 'fail' | 'partial';
matched: string[];
missingInRemote: string[];
extraInRemote: string[];
diffs: FieldDiff[];
snapshotPath: string;
evaluatedAt: string;
}
export interface FieldDiff {
key: string;
field: string;
snapshotValue: unknown;
remoteValue: unknown;
}
export interface SummaryEntry {
caseId: string;
status: 'pass' | 'fail' | 'partial';
matchedCount: number;
diffCount: number;
missingInRemote: number;
extraInRemote: number;
evaluatedAt: string;
}