@chevre/factory 6.0.0-alpha.2 → 6.0.0-alpha.3
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.
- package/lib/ownershipInfo.d.ts +7 -20
- package/package.json +1 -1
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CreativeWorkType } from './creativeWorkType';
|
|
2
1
|
import { IInvoice } from './invoice';
|
|
3
2
|
import { OrganizationType } from './organizationType';
|
|
4
3
|
import * as PermitFactory from './permit';
|
|
@@ -7,9 +6,7 @@ import * as ProductFactory from './product';
|
|
|
7
6
|
import { IProject } from './project';
|
|
8
7
|
import { ReservationType } from './reservationType';
|
|
9
8
|
import { PaymentServiceType } from './service/paymentService';
|
|
10
|
-
import * as WebAPIFactory from './service/webAPI';
|
|
11
9
|
import { SortType } from './sortType';
|
|
12
|
-
export type IBookingService = Pick<WebAPIFactory.IService<WebAPIFactory.Identifier>, 'identifier' | 'typeOf'>;
|
|
13
10
|
export interface IEventReservationAsGood {
|
|
14
11
|
typeOf: ReservationType.EventReservation;
|
|
15
12
|
/**
|
|
@@ -22,11 +19,7 @@ export interface IEventReservationAsGood {
|
|
|
22
19
|
/**
|
|
23
20
|
* 予約番号
|
|
24
21
|
*/
|
|
25
|
-
reservationNumber
|
|
26
|
-
/**
|
|
27
|
-
* ブッキングサービス(API)
|
|
28
|
-
*/
|
|
29
|
-
bookingService?: IBookingService;
|
|
22
|
+
reservationNumber: string;
|
|
30
23
|
}
|
|
31
24
|
/**
|
|
32
25
|
* 予約
|
|
@@ -36,9 +29,11 @@ export type IPermitIssuedThroughAsFaceToFace = Pick<PermitFactory.IIssuedThrough
|
|
|
36
29
|
export type IPermitIssuedThroughAsCreditCard = Pick<PermitFactory.IIssuedThroughAsCreditCard, 'id' | 'typeOf'>;
|
|
37
30
|
export type IPermitIssuedThroughAsProduct = Pick<PermitFactory.IIssuedThroughAsProduct, 'id' | 'typeOf' | 'serviceType'>;
|
|
38
31
|
export type IPermitIssuedThrough = IPermitIssuedThroughAsFaceToFace | IPermitIssuedThroughAsCreditCard | IPermitIssuedThroughAsProduct;
|
|
39
|
-
export type IPermitAsGood = Pick<PermitFactory.IPermit, '
|
|
32
|
+
export type IPermitAsGood = Pick<PermitFactory.IPermit, 'typeOf'> & {
|
|
40
33
|
identifier: string;
|
|
41
34
|
issuedThrough?: IPermitIssuedThrough;
|
|
35
|
+
name?: never;
|
|
36
|
+
validFor?: never;
|
|
42
37
|
};
|
|
43
38
|
/**
|
|
44
39
|
* 所有対象としての請求
|
|
@@ -75,23 +70,15 @@ export interface IFaceToFacePaymentMethodAsGood {
|
|
|
75
70
|
* 所有対象物 (Product or Service)
|
|
76
71
|
*/
|
|
77
72
|
export type IGood = IReservation | IPermitAsGood | InvoiceAsGood | IPaymentMethodAsGood | IFaceToFacePaymentMethodAsGood;
|
|
78
|
-
export interface IOwnerAsOrganization {
|
|
79
|
-
typeOf: OrganizationType.Organization;
|
|
80
|
-
id: string;
|
|
81
|
-
}
|
|
82
73
|
export interface IOwnerAsPerson {
|
|
83
74
|
typeOf: PersonType;
|
|
84
75
|
id: string;
|
|
85
76
|
}
|
|
86
|
-
export interface IOwnerAsWebApplication {
|
|
87
|
-
typeOf: CreativeWorkType.WebApplication;
|
|
88
|
-
id: string;
|
|
89
|
-
}
|
|
90
77
|
/**
|
|
91
78
|
* 所有者
|
|
92
79
|
* 個人情報排除するように
|
|
93
80
|
*/
|
|
94
|
-
export type IOwner =
|
|
81
|
+
export type IOwner = IOwnerAsPerson;
|
|
95
82
|
export interface IAcquiredFrom {
|
|
96
83
|
id: string;
|
|
97
84
|
typeOf: OrganizationType.Corporation;
|
|
@@ -116,10 +103,10 @@ export interface IOwnershipInfo<T extends IGood> {
|
|
|
116
103
|
*/
|
|
117
104
|
identifier?: string;
|
|
118
105
|
/**
|
|
119
|
-
*
|
|
106
|
+
* A person or organization who owns this Thing.
|
|
120
107
|
* Array対応(2022-07-25~)
|
|
121
108
|
*/
|
|
122
|
-
ownedBy: IOwner
|
|
109
|
+
ownedBy: IOwner[];
|
|
123
110
|
/**
|
|
124
111
|
* The organization or person from which the product was acquired.
|
|
125
112
|
*/
|