@chevre/factory 10.3.0-alpha.10 → 10.3.0-alpha.11

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,11 +1,10 @@
1
- import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from '../../../../action';
1
+ import { IParticipantAsProject } from '../../../../action';
2
2
  import { ICreativeWork as IEmailMessage } 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
- export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
9
8
  export type IObjectAsEmailMessage = Pick<IEmailMessage, 'about' | 'identifier' | 'name' | 'sender' | 'text' | 'toRecipient' | 'typeOf'>;
10
9
  export type IOptimizedObject = Pick<IEmailMessage, 'identifier' | 'typeOf'> & {
11
10
  identifier: string;
@@ -21,10 +20,10 @@ export interface IResult {
21
20
  statusMessage?: string;
22
21
  }
23
22
  export type IPurpose = ISimpleOrder;
24
- export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'error' | 'agent'> {
23
+ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'purpose' | 'project' | 'object' | 'error'> {
25
24
  agent: IAgent;
26
25
  purpose: IPurpose;
27
- recipient: IRecipient;
26
+ recipient?: never;
28
27
  }
29
28
  /**
30
29
  * Eメール送信アクション
@@ -1,9 +1,8 @@
1
- import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from '../../../action';
1
+ import { IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from '../../../action';
2
2
  import { ISimpleOrder } from '../../../order';
3
3
  import { IGood, IOwnershipInfo } from '../../../ownershipInfo';
4
4
  import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../send';
5
5
  export type IAgent = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
6
- export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
7
6
  export type IObject = ISimpleOrder & {
8
7
  /**
9
8
  * 配送対象オファー(2024-01-11~)
@@ -17,9 +16,9 @@ export type IObject = ISimpleOrder & {
17
16
  * 注文配送結果としての所有権
18
17
  */
19
18
  export type IResult = Pick<IOwnershipInfo<IGood>, 'id' | 'identifier'>[];
20
- export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'result' | 'recipient' | 'project' | 'object' | 'error' | 'agent'> {
19
+ export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'typeOf' | 'result' | 'project' | 'object' | 'error'> {
21
20
  agent: IAgent;
22
- recipient: IRecipient;
21
+ recipient?: never;
23
22
  }
24
23
  /**
25
24
  * 注文配送アクション
@@ -8,7 +8,7 @@ export type IPotentialActions = any;
8
8
  export type IPurpose = any;
9
9
  export interface IAttributes<TObject, TResult> extends IBaseAttributes<ActionType.SendAction, TObject, TResult> {
10
10
  agent: IAgent;
11
- recipient: IParticipant;
11
+ recipient?: IParticipant;
12
12
  potentialActions?: IPotentialActions;
13
13
  purpose?: IPurpose;
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "10.3.0-alpha.10",
3
+ "version": "10.3.0-alpha.11",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [