@chevre/factory 4.381.0-alpha.4 → 4.381.0-alpha.6
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.
|
@@ -16,7 +16,7 @@ export type IObject = OrderFactory.ISimpleOrder & {
|
|
|
16
16
|
/**
|
|
17
17
|
* 注文配送結果としての所有権
|
|
18
18
|
*/
|
|
19
|
-
export type IResult = IOwnershipInfo<IGood>[];
|
|
19
|
+
export type IResult = Pick<IOwnershipInfo<IGood>, 'id' | 'identifier'>[];
|
|
20
20
|
export interface IAttributes extends Pick<SendActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'result' | 'recipient' | 'project' | 'object' | 'error' | 'agent'> {
|
|
21
21
|
agent: IAgent;
|
|
22
22
|
recipient: IRecipient;
|
package/lib/authorization.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { IOwnershipInfo, IPermitAsGood, IPermitIssuedThroughAsFaceToFace, IPermi
|
|
|
6
6
|
import { PersonType } from './personType';
|
|
7
7
|
import { IProject } from './project';
|
|
8
8
|
import { SortType } from './sortType';
|
|
9
|
+
import { TransactionType } from './transactionType';
|
|
9
10
|
export type IOrderAsObject = Pick<IOrder, 'orderNumber' | 'typeOf'>;
|
|
10
11
|
export type IPermitIssuedThroughOfObjectTypeOfGood = Pick<IPermitIssuedThroughAsFaceToFace, 'typeOf'> | Pick<IPermitIssuedThroughAsProduct, 'id' | 'typeOf'>;
|
|
11
12
|
export type IPermitAsObjectTypeOfGood = Pick<IPermitAsGood, 'identifier' | 'typeOf'> & {
|
|
@@ -21,13 +22,21 @@ export type IRoleAsObject = Pick<IMember, 'member' | 'typeOf'> & {
|
|
|
21
22
|
member: Pick<IMemberOfRole, 'hasRole' | 'id' | 'memberOf' | 'typeOf'>;
|
|
22
23
|
};
|
|
23
24
|
export type IObject = IOrderAsObject | IOwnershipInfoAsObject | IRoleAsObject;
|
|
24
|
-
export interface
|
|
25
|
+
export interface IAudienceAsPlaceOrder {
|
|
26
|
+
/**
|
|
27
|
+
* 取引ID
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
typeOf: TransactionType.PlaceOrder;
|
|
31
|
+
}
|
|
32
|
+
export interface IAudienceAsApplication {
|
|
25
33
|
/**
|
|
26
34
|
* クライアントID
|
|
27
35
|
*/
|
|
28
36
|
id: string;
|
|
29
37
|
typeOf: CreativeWorkType.SoftwareApplication | CreativeWorkType.WebApplication;
|
|
30
38
|
}
|
|
39
|
+
export type IAudience = IAudienceAsApplication | IAudienceAsPlaceOrder;
|
|
31
40
|
export interface IAuthor {
|
|
32
41
|
id: string;
|
|
33
42
|
typeOf: PersonType.Person | CreativeWorkType.WebApplication;
|
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ import { IReservation as IEventReservation } from './reservation/event';
|
|
|
9
9
|
import { ReservationType } from './reservationType';
|
|
10
10
|
import * as WebAPIFactory from './service/webAPI';
|
|
11
11
|
import { SortType } from './sortType';
|
|
12
|
-
import { TransactionType } from './transactionType';
|
|
13
12
|
export type IBookingService = WebAPIFactory.IService<WebAPIFactory.Identifier>;
|
|
14
13
|
export interface IBusReservationAsGood {
|
|
15
14
|
typeOf: ReservationType.BusReservation;
|
|
@@ -79,18 +78,11 @@ export interface IOwnerAsWebApplication {
|
|
|
79
78
|
typeOf: CreativeWorkType.WebApplication;
|
|
80
79
|
id: string;
|
|
81
80
|
}
|
|
82
|
-
export interface IOwnerAsPlaceOrder {
|
|
83
|
-
typeOf: TransactionType.PlaceOrder;
|
|
84
|
-
/**
|
|
85
|
-
* 取引ID
|
|
86
|
-
*/
|
|
87
|
-
id: string;
|
|
88
|
-
}
|
|
89
81
|
/**
|
|
90
82
|
* 所有者
|
|
91
83
|
* 個人情報排除するように
|
|
92
84
|
*/
|
|
93
|
-
export type IOwner =
|
|
85
|
+
export type IOwner = IOwnerAsOrganization | IOwnerAsPerson | IOwnerAsWebApplication;
|
|
94
86
|
export interface IAcquiredFrom {
|
|
95
87
|
id: string;
|
|
96
88
|
typeOf: OrganizationType.Corporation;
|
|
@@ -109,7 +101,7 @@ export interface IOwnershipInfo<T extends IGood | IGoodWithDetail> {
|
|
|
109
101
|
/**
|
|
110
102
|
* 所有権ID
|
|
111
103
|
*/
|
|
112
|
-
id
|
|
104
|
+
id?: string;
|
|
113
105
|
/**
|
|
114
106
|
* 識別子
|
|
115
107
|
*/
|