31 lines
588 B
TypeScript
31 lines
588 B
TypeScript
import type { ManifestElement } from './models';
|
|
|
|
export interface ManifestMenuItem extends ManifestElement {
|
|
type: 'menuItem';
|
|
meta: MetaMenuItem;
|
|
conditions: ConditionsMenuItem;
|
|
}
|
|
|
|
export interface MetaMenuItem {
|
|
label: string;
|
|
icon: string;
|
|
entityType?: string;
|
|
}
|
|
|
|
export interface ConditionsMenuItem {
|
|
menus: Array<string>;
|
|
}
|
|
|
|
export interface ManifestMenuItemTreeKind extends ManifestMenuItem {
|
|
type: 'menuItem';
|
|
kind: 'tree';
|
|
meta: MetaMenuItemTreeKind;
|
|
}
|
|
|
|
export interface MetaMenuItemTreeKind {
|
|
treeAlias: string;
|
|
label: string;
|
|
icon: string;
|
|
entityType?: string;
|
|
}
|