nocobase/packages/acl/src/acl-available-action.ts

13 lines
327 B
TypeScript
Raw Normal View History

export interface AvailableActionOptions {
aliases?: string[] | string;
type: 'new-data' | 'old-data';
displayName?: string;
resource?: string;
2022-02-26 15:03:58 +00:00
onNewRecord?: boolean;
allowConfigureFields?: boolean;
}
export class AclAvailableAction {
2022-02-19 09:14:43 +00:00
constructor(public name: string, public options: AvailableActionOptions) {}
}