@chevre/factory 4.313.0-alpha.46 → 4.313.0-alpha.48
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,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from '../../../../action';
|
|
2
2
|
import { ICreativeWork as IEmailMessage } from '../../../../creativeWork/message/email';
|
|
3
3
|
import { ISimpleOrder } from '../../../../order';
|
|
4
4
|
import * as SendActionFactory from '../../send';
|
|
5
|
-
export declare type IAgent =
|
|
6
|
-
export declare type IRecipient =
|
|
5
|
+
export declare type IAgent = IParticipantAsProject;
|
|
6
|
+
export declare type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
|
|
7
7
|
/**
|
|
8
8
|
* オブジェクト
|
|
9
9
|
* 「Eメール通知」を送信する
|
|
@@ -17,6 +17,7 @@ export interface IAttributes extends SendActionFactory.IAttributes<IObject, IRes
|
|
|
17
17
|
agent: IAgent;
|
|
18
18
|
purpose: IPurpose;
|
|
19
19
|
potentialActions?: IPotentialActions;
|
|
20
|
+
recipient: IRecipient;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* Eメール送信アクション
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from '../../../action';
|
|
2
2
|
import * as OrderFactory from '../../../order';
|
|
3
3
|
import * as OwnershipInfoFactory from '../../../ownershipInfo';
|
|
4
4
|
import * as WebAPIFactory from '../../../service/webAPI';
|
|
@@ -7,8 +7,8 @@ import { IAttributes as IRegisterServiceAttributes } from '../../interact/confir
|
|
|
7
7
|
import { IAttributes as IConfirmReservationActionAttributes } from '../../interact/confirm/reservation';
|
|
8
8
|
import * as SendActionFactory from '../send';
|
|
9
9
|
import { IAttributes as ISendEmailMessageActionAttributes } from './message/email';
|
|
10
|
-
export declare type IAgent =
|
|
11
|
-
export declare type IRecipient =
|
|
10
|
+
export declare type IAgent = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
|
|
11
|
+
export declare type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
|
|
12
12
|
export declare type IObject = OrderFactory.ISimpleOrder;
|
|
13
13
|
/**
|
|
14
14
|
* 注文配送結果としての所有権
|
package/lib/order.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ import * as BusReservationFactory from './reservation/busReservation';
|
|
|
25
25
|
import * as EventReservationFactory from './reservation/event';
|
|
26
26
|
import { ReservationType } from './reservationType';
|
|
27
27
|
import { SortType } from './sortType';
|
|
28
|
-
import { IThing } from './thing';
|
|
29
28
|
import { IUnitPriceOfferPriceSpecification } from './unitPriceOffer';
|
|
30
29
|
export interface IProject {
|
|
31
30
|
typeOf: OrganizationType.Project;
|
|
@@ -189,8 +188,8 @@ export declare type IBroker = Pick<IPerson, 'id' | 'identifier' | 'typeOf'>;
|
|
|
189
188
|
export declare type IParticipantAsReturner = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
|
|
190
189
|
export declare type IReturner = Pick<IParticipantAsReturner, 'id' | 'typeOf'>;
|
|
191
190
|
export declare type IIdentifier = IPropertyValue<string>[];
|
|
192
|
-
export declare type ISimpleCustomer = Pick<ICustomer, 'id' | 'typeOf'
|
|
193
|
-
export interface ISimpleOrder
|
|
191
|
+
export declare type ISimpleCustomer = Pick<ICustomer, 'id' | 'typeOf'>;
|
|
192
|
+
export interface ISimpleOrder {
|
|
194
193
|
/**
|
|
195
194
|
* object type
|
|
196
195
|
*/
|
|
@@ -262,7 +261,7 @@ export interface IOrderedItem {
|
|
|
262
261
|
* 注文
|
|
263
262
|
* {@link https://schema.org/Order}
|
|
264
263
|
*/
|
|
265
|
-
export interface IOrder extends ISimpleOrder {
|
|
264
|
+
export interface IOrder extends Omit<ISimpleOrder, 'customer'> {
|
|
266
265
|
id?: string;
|
|
267
266
|
project: IProject;
|
|
268
267
|
/**
|