@chevre/factory 4.361.0 → 4.362.0-alpha.0
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.
- package/lib/action/interact/confirm/moneyTransfer.d.ts +3 -0
- package/lib/action/interact/confirm/pay.d.ts +3 -0
- package/lib/action/interact/confirm/registerService.d.ts +3 -3
- package/lib/action/interact/confirm/reservation.d.ts +4 -1
- package/lib/action/interact/confirm.d.ts +8 -3
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { IParticipantAsProject } from '../../../action';
|
|
1
2
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
2
3
|
import { ISimpleOrder } from '../../../order';
|
|
3
4
|
import { TransactionType } from '../../../transactionType';
|
|
4
5
|
import * as ConfirmActionFactory from '../confirm';
|
|
6
|
+
export type IAgent = IParticipantAsProject;
|
|
5
7
|
export interface IObject {
|
|
6
8
|
transactionNumber: string;
|
|
7
9
|
typeOf: AssetTransactionType.MoneyTransfer;
|
|
@@ -13,6 +15,7 @@ export interface ITransactionPurpose {
|
|
|
13
15
|
}
|
|
14
16
|
export type IPurpose = ITransactionPurpose | ISimpleOrder;
|
|
15
17
|
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
18
|
+
agent: IAgent;
|
|
16
19
|
/**
|
|
17
20
|
* 注文取引から発生した場合はISimpleOrder
|
|
18
21
|
*/
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { IParticipantAsProject } from '../../../action';
|
|
1
2
|
import * as RegisterServiceFactory from '../../../assetTransaction/registerService';
|
|
2
3
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
3
4
|
import { ISimpleOrder } from '../../../order';
|
|
4
5
|
import * as ConfirmActionFactory from '../confirm';
|
|
6
|
+
export type IAgent = IParticipantAsProject;
|
|
5
7
|
export type IObject = Pick<RegisterServiceFactory.IConfirmParams, 'transactionNumber' | 'endDate'> & {
|
|
6
8
|
transactionNumber: string;
|
|
7
9
|
typeOf: AssetTransactionType.RegisterService;
|
|
@@ -15,10 +17,8 @@ export type IObject = Pick<RegisterServiceFactory.IConfirmParams, 'transactionNu
|
|
|
15
17
|
};
|
|
16
18
|
export type IPurpose = ISimpleOrder;
|
|
17
19
|
export type IResult = any;
|
|
18
|
-
export interface IPotentialActions {
|
|
19
|
-
}
|
|
20
20
|
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
21
|
-
|
|
21
|
+
agent: IAgent;
|
|
22
22
|
purpose: IPurpose;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type * as COA from '@motionpicture/coa-service';
|
|
2
|
+
import { IParticipantAsProject } from '../../../action';
|
|
2
3
|
import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
|
|
3
4
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
4
5
|
import { ISimpleOrder } from '../../../order';
|
|
5
6
|
import * as WebAPIFactory from '../../../service/webAPI';
|
|
6
7
|
import * as ConfirmActionFactory from '../confirm';
|
|
8
|
+
export type IAgent = IParticipantAsProject;
|
|
7
9
|
export type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
|
|
8
10
|
transactionNumber: string;
|
|
9
11
|
typeOf: 'COAReserveTransaction';
|
|
@@ -17,10 +19,11 @@ export type IPurpose = ISimpleOrder;
|
|
|
17
19
|
export type IResult = any;
|
|
18
20
|
export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
|
|
19
21
|
export interface IAttributes<T extends WebAPIFactory.Identifier> extends ConfirmActionFactory.IAttributes<IObject<T>, IResult> {
|
|
22
|
+
agent: IAgent;
|
|
20
23
|
instrument: IInstrument<T>;
|
|
21
24
|
purpose: IPurpose;
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
24
|
-
*
|
|
27
|
+
* 予約取引確定アクション
|
|
25
28
|
*/
|
|
26
29
|
export type IAction<T extends WebAPIFactory.Identifier> = ConfirmActionFactory.IAction<IAttributes<T>>;
|
|
@@ -2,16 +2,21 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import * as OrderFactory from '../../order';
|
|
4
4
|
import { TransactionType } from '../../transactionType';
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* 確定アクション主体
|
|
7
|
+
* Projectに統一(2022-05-16~)
|
|
8
|
+
* 決済取引に関してはクライアントによる確定がありうるので拡張(2024-03-11~)
|
|
9
|
+
*/
|
|
10
|
+
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsProject | ActionFactory.IParticipantAsWebApplication;
|
|
6
11
|
export type IObject = any;
|
|
7
12
|
export interface ITransactionPurpose {
|
|
8
|
-
typeOf: TransactionType;
|
|
13
|
+
typeOf: TransactionType.MoneyTransfer | TransactionType.PlaceOrder;
|
|
9
14
|
id: string;
|
|
10
15
|
}
|
|
11
16
|
export type IPurpose = ITransactionPurpose | OrderFactory.ISimpleOrder;
|
|
12
17
|
export type IResult = any;
|
|
13
18
|
export type IPotentialActions = any;
|
|
14
|
-
export interface IAttributes<TObject, TResult> extends
|
|
19
|
+
export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | 'instrument' | 'object' | 'project' | 'purpose' | 'result' | 'typeOf'> {
|
|
15
20
|
agent: IAgent;
|
|
16
21
|
purpose: IPurpose;
|
|
17
22
|
}
|