@chevre/factory 4.377.0-alpha.2 → 4.377.0-alpha.3
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,19 +1,28 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
+
import { AssetTransactionType } from '../../assetTransactionType';
|
|
3
4
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
4
5
|
export type IRecipient = ActionFactory.IParticipant;
|
|
5
6
|
export type IObject = any;
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
export interface IPayTransactionAsPurpose {
|
|
8
|
+
id: string;
|
|
9
|
+
typeOf: AssetTransactionType.Pay;
|
|
9
10
|
}
|
|
10
|
-
export interface
|
|
11
|
+
export interface IRefundTransactionAsPurpose {
|
|
12
|
+
id: string;
|
|
13
|
+
typeOf: AssetTransactionType.Refund;
|
|
14
|
+
}
|
|
15
|
+
export type IPurpose = IPayTransactionAsPurpose | IRefundTransactionAsPurpose;
|
|
16
|
+
export interface IResult {
|
|
17
|
+
statusCode?: number;
|
|
18
|
+
useFetchAPI?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface IAttributes<TObject> extends Pick<ActionFactory.IAttributes<ActionType.InformAction, TObject, IResult>, 'agent' | 'object' | 'project' | 'purpose' | 'recipient' | 'result' | 'typeOf'> {
|
|
11
21
|
agent: IAgent;
|
|
12
22
|
recipient: IRecipient;
|
|
13
|
-
potentialActions?: IPotentialActions;
|
|
14
23
|
purpose?: IPurpose;
|
|
15
24
|
}
|
|
16
25
|
/**
|
|
17
26
|
* 通知アクション
|
|
18
27
|
*/
|
|
19
|
-
export type IAction<TAttributes extends IAttributes<IObject
|
|
28
|
+
export type IAction<TAttributes extends IAttributes<IObject>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -92,7 +92,7 @@ export interface IPaymentService {
|
|
|
92
92
|
serviceOutput?: IPaymentServiceOutput;
|
|
93
93
|
}
|
|
94
94
|
export type IObject = IPaymentService[];
|
|
95
|
-
export type IInformPayment = IInformActionAttributes<{}
|
|
95
|
+
export type IInformPayment = Pick<IInformActionAttributes<{}>, 'recipient' | 'purpose'>;
|
|
96
96
|
export interface IPotentialActions {
|
|
97
97
|
add2report: boolean;
|
|
98
98
|
informPayment?: IInformPayment[];
|
|
@@ -29,7 +29,7 @@ export interface IResult {
|
|
|
29
29
|
transactionNumber: string;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
export type IInformPayment = IInformActionAttributes<{}
|
|
32
|
+
export type IInformPayment = Pick<IInformActionAttributes<{}>, 'recipient' | 'purpose'>;
|
|
33
33
|
export interface IPotentialActions {
|
|
34
34
|
add2report: boolean;
|
|
35
35
|
informPayment?: IInformPayment[];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { IAttributes as IInformActionAttributes } from '../action/interact/inform';
|
|
1
|
+
import { IAttributes as IInformActionAttributes, IObject } from '../action/interact/inform';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
export type
|
|
5
|
+
export type IPotentialInformAction = Pick<IInformActionAttributes<IObject>, 'object' | 'purpose' | 'recipient'>;
|
|
6
|
+
export type IData = IPotentialInformAction;
|
|
6
7
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
8
|
name: TaskName.TriggerWebhook;
|
|
8
9
|
data: IData;
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* 通知タスク
|
|
12
13
|
*/
|
|
13
14
|
export type ITask = IExtendId<IAttributes>;
|