@foxpage/foxpage-types
Version:
foxpage sdk types
18 lines (17 loc) • 605 B
TypeScript
import { ContentDetail, ContentRelationInfo } from '../../content';
import { StructureNode } from '../../structure';
export interface MockItem {
id?: string;
name?: string;
props: StructureNode['props'];
enable?: boolean;
}
export interface Mock extends ContentDetail<MockItem> {
enable?: boolean;
}
export interface MockManager {
getMock(mockId: string): Promise<Mock | undefined>;
getMocks(mockIds: string[]): Promise<ContentRelationInfo[]>;
getDraftMock(mockId: string): Promise<Mock | undefined>;
getDraftMocks(mockIds: string[]): Promise<ContentRelationInfo[]>;
}