2024-04-30 07:51:31 +00:00
|
|
|
/**
|
|
|
|
* This file is part of the NocoBase (R) project.
|
|
|
|
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
|
|
* Authors: NocoBase Team.
|
|
|
|
*
|
|
|
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
|
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
|
|
*/
|
|
|
|
|
2022-01-18 08:38:03 +00:00
|
|
|
export interface AvailableActionOptions {
|
2022-04-12 04:02:58 +00:00
|
|
|
/**
|
|
|
|
* @deprecated
|
|
|
|
*/
|
2022-06-14 14:04:33 +00:00
|
|
|
type?: 'new-data' | 'old-data';
|
2022-01-18 08:38:03 +00:00
|
|
|
displayName?: string;
|
2022-04-12 04:02:58 +00:00
|
|
|
aliases?: string[] | string;
|
2022-01-18 08:38:03 +00:00
|
|
|
resource?: string;
|
2022-04-12 04:02:58 +00:00
|
|
|
// 对新数据进行操作
|
2022-02-26 15:03:58 +00:00
|
|
|
onNewRecord?: boolean;
|
2022-04-12 04:02:58 +00:00
|
|
|
// 允许配置字段
|
2022-02-26 15:03:58 +00:00
|
|
|
allowConfigureFields?: boolean;
|
2022-01-18 08:38:03 +00:00
|
|
|
}
|
|
|
|
|
2022-10-06 02:29:53 +00:00
|
|
|
export class ACLAvailableAction {
|
2022-02-19 09:14:43 +00:00
|
|
|
constructor(public name: string, public options: AvailableActionOptions) {}
|
2022-01-18 08:38:03 +00:00
|
|
|
}
|