@chevre/factory 11.1.0-alpha.7 → 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;
|
package/lib/chevre/project.d.ts
CHANGED
|
@@ -26,22 +26,38 @@ export interface ISendEmailMessageSettings {
|
|
|
26
26
|
* プロジェクト設定
|
|
27
27
|
*/
|
|
28
28
|
export interface ISettings {
|
|
29
|
+
/**
|
|
30
|
+
* 注文照会結果にcustomerを含めるかどうか
|
|
31
|
+
* 2025-09-10=
|
|
32
|
+
* tttsのみtrue(2026-10-19時点)
|
|
33
|
+
*/
|
|
34
|
+
includeCustomerAsFindByConfirmationNumberResult?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* ssktsとtttsのみ(2026-10-19時点)
|
|
37
|
+
* Eメール送信元アドレス設定
|
|
38
|
+
*/
|
|
29
39
|
sendEmailMessage?: ISendEmailMessageSettings;
|
|
40
|
+
/**
|
|
41
|
+
* ssktsのみ(2026-10-19時点)
|
|
42
|
+
*/
|
|
30
43
|
sendgridApiKey?: string;
|
|
31
|
-
|
|
44
|
+
/**
|
|
45
|
+
* tttsのみ(2026-10-19時点)
|
|
46
|
+
*/
|
|
32
47
|
useAggregateReservation?: {
|
|
33
48
|
/**
|
|
34
49
|
* aggregateReservationsを利用する施設コンテンツID
|
|
35
50
|
*/
|
|
36
51
|
eventSeriesIds?: string[];
|
|
37
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* tttsのみ(2026-10-19時点)
|
|
55
|
+
*/
|
|
38
56
|
useAggregateOffer?: boolean;
|
|
39
|
-
useOfferRateLimit?: boolean;
|
|
40
57
|
/**
|
|
41
|
-
*
|
|
42
|
-
* 2025-09-10=
|
|
58
|
+
* tttsのみ(2026-10-19時点)
|
|
43
59
|
*/
|
|
44
|
-
|
|
60
|
+
useOfferRateLimit?: boolean;
|
|
45
61
|
}
|
|
46
62
|
export interface ISubscription {
|
|
47
63
|
identifier?: string;
|