@chevre/factory 4.367.0-alpha.6 → 4.367.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
import * as ActionFactory from '../action';
|
|
2
2
|
import { ActionType } from '../actionType';
|
|
3
|
-
/**
|
|
4
|
-
* 承認対象インターフェース
|
|
5
|
-
*/
|
|
6
3
|
export type IObject = any;
|
|
7
|
-
/**
|
|
8
|
-
* 承認結果インターフェース
|
|
9
|
-
*/
|
|
10
4
|
export type IResult = any;
|
|
11
|
-
/**
|
|
12
|
-
* 承認目的インターフェース
|
|
13
|
-
*/
|
|
14
5
|
export type IPurpose = any;
|
|
15
|
-
/**
|
|
16
|
-
* アクション属性インターフェース
|
|
17
|
-
*/
|
|
18
6
|
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.AuthorizeAction, TObject, TResult> {
|
|
19
|
-
purpose
|
|
7
|
+
purpose?: IPurpose;
|
|
20
8
|
recipient: ActionFactory.IParticipant;
|
|
21
9
|
}
|
|
22
10
|
/**
|
|
23
|
-
*
|
|
11
|
+
* 承認アクション
|
|
24
12
|
*/
|
|
25
13
|
export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -2,9 +2,7 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
export type IObject = any;
|
|
4
4
|
export type IResult = any;
|
|
5
|
-
export
|
|
6
|
-
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.UseAction, TObject, TResult> {
|
|
7
|
-
purpose?: IPurpose;
|
|
5
|
+
export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.UseAction, TObject, TResult>, 'typeOf' | 'result' | 'project' | 'object' | 'location' | 'error' | 'instrument' | 'agent'> {
|
|
8
6
|
}
|
|
9
7
|
/**
|
|
10
8
|
* 使用アクション
|