@chevre/factory 4.375.0-alpha.13 → 4.375.0-alpha.14
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.
|
@@ -2,20 +2,26 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { ISimpleOrder } from '../../order';
|
|
4
4
|
import { TransactionType } from '../../transactionType';
|
|
5
|
-
import { IAttributes as
|
|
5
|
+
import { IAttributes as ISendEmailMessageActionAttributes } from '../transfer/send/message/email';
|
|
6
6
|
export type IAgent = ActionFactory.IParticipant;
|
|
7
7
|
export type IRecipient = ActionFactory.IParticipant;
|
|
8
8
|
export type IObject = ISimpleOrder;
|
|
9
|
-
export
|
|
10
|
-
|
|
9
|
+
export interface IResult {
|
|
10
|
+
}
|
|
11
|
+
export type IPotentialSendEmailMessageAction = Pick<ISendEmailMessageActionAttributes, 'object'>;
|
|
12
|
+
export interface IPotentialSendOrderAction {
|
|
13
|
+
potentialActions?: {
|
|
14
|
+
sendEmailMessage?: IPotentialSendEmailMessageAction[];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
11
17
|
export interface IPotentialActions {
|
|
12
|
-
sendOrder?:
|
|
18
|
+
sendOrder?: IPotentialSendOrderAction;
|
|
13
19
|
}
|
|
14
20
|
export interface IPurpose {
|
|
15
21
|
typeOf: TransactionType.PlaceOrder;
|
|
16
22
|
id: string;
|
|
17
23
|
}
|
|
18
|
-
export interface IAttributes extends ActionFactory.IAttributes<ActionType.OrderAction, IObject, IResult> {
|
|
24
|
+
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.OrderAction, IObject, IResult>, 'typeOf' | 'result' | 'purpose' | 'project' | 'potentialActions' | 'object' | 'error' | 'agent'> {
|
|
19
25
|
potentialActions?: IPotentialActions;
|
|
20
26
|
purpose?: IPurpose;
|
|
21
27
|
}
|
|
@@ -2,7 +2,6 @@ import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IP
|
|
|
2
2
|
import * as OrderFactory from '../../../order';
|
|
3
3
|
import { IGood, IOwnershipInfo } from '../../../ownershipInfo';
|
|
4
4
|
import * as SendActionFactory from '../send';
|
|
5
|
-
import { IAttributes as ISendEmailMessageActionAttributes } from './message/email';
|
|
6
5
|
export type IAgent = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
|
|
7
6
|
export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
|
|
8
7
|
export type IObject = OrderFactory.ISimpleOrder & {
|
|
@@ -18,18 +17,9 @@ export type IObject = OrderFactory.ISimpleOrder & {
|
|
|
18
17
|
* 注文配送結果としての所有権
|
|
19
18
|
*/
|
|
20
19
|
export type IResult = IOwnershipInfo<IGood>[];
|
|
21
|
-
export
|
|
22
|
-
export interface IPotentialActions {
|
|
23
|
-
/**
|
|
24
|
-
* Eメール送信アクション
|
|
25
|
-
* 注文処理後のメッセージ送信として機能しているので注意
|
|
26
|
-
*/
|
|
27
|
-
sendEmailMessage?: ISendEmailMessage[];
|
|
28
|
-
}
|
|
29
|
-
export interface IAttributes extends SendActionFactory.IAttributes<IObject, IResult> {
|
|
20
|
+
export interface IAttributes extends Pick<SendActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'result' | 'recipient' | 'project' | 'object' | 'error' | 'agent'> {
|
|
30
21
|
agent: IAgent;
|
|
31
22
|
recipient: IRecipient;
|
|
32
|
-
potentialActions?: IPotentialActions;
|
|
33
23
|
}
|
|
34
24
|
/**
|
|
35
25
|
* 注文配送アクション
|