2022-01-18 16:38:03 +08:00
|
|
|
export interface AvailableActionOptions {
|
2022-04-12 12:02:58 +08:00
|
|
|
/**
|
|
|
|
* @deprecated
|
|
|
|
*/
|
2022-06-14 22:04:33 +08:00
|
|
|
type?: 'new-data' | 'old-data';
|
2022-01-18 16:38:03 +08:00
|
|
|
displayName?: string;
|
2022-04-12 12:02:58 +08:00
|
|
|
aliases?: string[] | string;
|
2022-01-18 16:38:03 +08:00
|
|
|
resource?: string;
|
2022-04-12 12:02:58 +08:00
|
|
|
// 对新数据进行操作
|
2022-02-26 23:03:58 +08:00
|
|
|
onNewRecord?: boolean;
|
2022-04-12 12:02:58 +08:00
|
|
|
// 允许配置字段
|
2022-02-26 23:03:58 +08:00
|
|
|
allowConfigureFields?: boolean;
|
2022-01-18 16:38:03 +08:00
|
|
|
}
|
|
|
|
|
2022-10-06 10:29:53 +08:00
|
|
|
export class ACLAvailableAction {
|
2024-06-12 11:39:09 +08:00
|
|
|
constructor(
|
|
|
|
public name: string,
|
|
|
|
public options: AvailableActionOptions,
|
|
|
|
) {}
|
2022-01-18 16:38:03 +08:00
|
|
|
}
|