@chevre/factory 11.1.0-alpha.8 → 11.1.0-alpha.9
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,12 +1,23 @@
|
|
|
1
1
|
import { IParticipantAsProject } from '../../../../action';
|
|
2
|
-
import { ICreativeWork as IEmailMessage } from '../../../../creativeWork/message/email';
|
|
2
|
+
import { ICreativeWork as IEmailMessage, ISender } from '../../../../creativeWork/message/email';
|
|
3
3
|
import { ISimpleOrder } from '../../../../order';
|
|
4
4
|
import { IRecipe, ISendMultipleArgs, ISendMultipleResult } from '../../../../recipe/sendEmailMessage';
|
|
5
5
|
import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../send';
|
|
6
6
|
export { IRecipe, ISendMultipleArgs, ISendMultipleResult };
|
|
7
7
|
export type IAgent = IParticipantAsProject;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* 生のメッセージ指定
|
|
10
|
+
*/
|
|
11
|
+
export type IObjectAsEmailMessage = Pick<IEmailMessage, 'about' | 'identifier' | 'name' | 'text' | 'toRecipient' | 'typeOf'> & {
|
|
12
|
+
sender: Pick<ISender, 'name' | 'typeOf' | 'email'> & {};
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* メッセージリポジトリに対応(2024-04-29~)
|
|
16
|
+
*/
|
|
17
|
+
export type IObjectByIdentifier = Pick<IEmailMessage, 'identifier' | 'typeOf'> & {
|
|
18
|
+
/**
|
|
19
|
+
* メッセージ識別子
|
|
20
|
+
*/
|
|
10
21
|
identifier: string;
|
|
11
22
|
text?: never;
|
|
12
23
|
};
|
|
@@ -14,7 +25,7 @@ export type IObject =
|
|
|
14
25
|
/**
|
|
15
26
|
* @deprecated use IOptimizedObject
|
|
16
27
|
*/
|
|
17
|
-
IObjectAsEmailMessage |
|
|
28
|
+
IObjectAsEmailMessage | IObjectByIdentifier;
|
|
18
29
|
export interface IResult {
|
|
19
30
|
statusCode?: number;
|
|
20
31
|
statusMessage?: string;
|
|
@@ -7,6 +7,14 @@ export interface IParticipant {
|
|
|
7
7
|
name: string;
|
|
8
8
|
email: string;
|
|
9
9
|
}
|
|
10
|
+
export interface ISender {
|
|
11
|
+
typeOf?: string;
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* optional(2026-10-20~)
|
|
15
|
+
*/
|
|
16
|
+
email?: string;
|
|
17
|
+
}
|
|
10
18
|
export declare enum AboutIdentifier {
|
|
11
19
|
OnOrderSent = "OnOrderSent",
|
|
12
20
|
OnOrderRefunded = "OnOrderRefunded",
|
|
@@ -24,7 +32,7 @@ export interface IAbout extends Pick<IThing, 'name'> {
|
|
|
24
32
|
export interface ICreativeWork extends Pick<IBaseCreativeWork, 'id' | 'identifier' | 'name' | 'typeOf'> {
|
|
25
33
|
project?: Pick<IProject, 'id' | 'typeOf'>;
|
|
26
34
|
typeOf: CreativeWorkType.EmailMessage;
|
|
27
|
-
sender:
|
|
35
|
+
sender: ISender;
|
|
28
36
|
toRecipient: IParticipant[];
|
|
29
37
|
about: IAbout;
|
|
30
38
|
text: string;
|