@chevre/factory 6.0.0-alpha.2 → 6.0.0-alpha.4
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.
|
@@ -9,7 +9,7 @@ import { PermitType } from '../permit';
|
|
|
9
9
|
import { ProductType } from '../product';
|
|
10
10
|
import { IPropertyValue } from '../propertyValue';
|
|
11
11
|
import * as ReservationFactory from '../reservation';
|
|
12
|
-
import { IIssuedThrough as IEventReservationIssuedThrough, IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
|
|
12
|
+
import { IIssuedThrough as IEventReservationIssuedThrough, IPrice as IReservationPrice, IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
|
|
13
13
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
14
14
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
15
15
|
import { ReservationType } from '../reservationType';
|
|
@@ -298,7 +298,9 @@ export interface IObjectWithoutDetail {
|
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
export type IReservationFor = IEventReservationReservationFor;
|
|
301
|
-
export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | '
|
|
301
|
+
export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'priceCurrency' | 'programMembershipUsed' | 'reservedTicket' | 'subReservation' | 'typeOf'> & {
|
|
302
|
+
price?: IReservationPrice;
|
|
303
|
+
};
|
|
302
304
|
export type IObjectSubReservation = IEventReservationAsSubReservation;
|
|
303
305
|
export type IIssuedThrough = IEventReservationIssuedThrough;
|
|
304
306
|
export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'underName' | 'typeOf'> {
|
package/lib/invoice.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { IAccounting } from './priceSpecification';
|
|
|
6
6
|
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
7
7
|
import { IAppliesToMovieTicket, IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
|
|
8
8
|
import { IAppliesToAddOn as IUnitPriceSpecAppliesToAddOn, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
9
|
-
import { IPriceSpecification } from './reservation/event';
|
|
10
9
|
import { ISeller } from './seller';
|
|
11
10
|
import { PaymentServiceType } from './service/paymentService';
|
|
12
11
|
export type IBroker = Pick<ISeller, 'id' | 'typeOf'> | IPerson;
|
|
@@ -22,7 +21,7 @@ export type IMinimizedUnitPriceSpecification = Pick<IUnitPriceSpecification, 'ty
|
|
|
22
21
|
appliesToAddOn?: IAppliesToAddOn[];
|
|
23
22
|
};
|
|
24
23
|
export type IPriceComponentSpecification = IMinimizedCategoryCodeChargeSpecification | IMinimizedMovieTicketTypeChargeSpecification | IMinimizedUnitPriceSpecification;
|
|
25
|
-
export type IReservationPriceSpecification = Pick<
|
|
24
|
+
export type IReservationPriceSpecification = Pick<OrderFactory.ITicketPriceSpecification, 'typeOf'> & {
|
|
26
25
|
priceComponent: IPriceComponentSpecification[];
|
|
27
26
|
};
|
|
28
27
|
export interface IReservation {
|
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
|
*/
|
|
@@ -39,7 +39,8 @@ export type ICategoryChargePriceComponent = Pick<ICategoryCodeChargeSpecificatio
|
|
|
39
39
|
export type IMovieTicketTypeChargePriceComponent = Pick<IMovieTicketTypeChargeSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToVideoFormat' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
40
40
|
export type IUnitPriceComponent = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToAddOn' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
41
41
|
export type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicketTypeChargePriceComponent | IUnitPriceComponent;
|
|
42
|
-
export type
|
|
42
|
+
export type IPrice = Pick<ICompoundPriceSpecification<ITicketPriceComponent>, 'priceComponent' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
43
|
+
export type IPriceSpecification = Pick<ICompoundPriceSpecification<ITicketPriceComponent>, 'priceComponent' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'> | never;
|
|
43
44
|
export interface ISubReservation {
|
|
44
45
|
reservedTicket: {
|
|
45
46
|
typeOf: ReservationFactory.TicketType;
|
package/lib/reservation.d.ts
CHANGED
|
@@ -206,7 +206,7 @@ export interface IIssuedThrough {
|
|
|
206
206
|
* プロダクト管理をしている場合のみ
|
|
207
207
|
*/
|
|
208
208
|
id?: string;
|
|
209
|
-
availableChannel
|
|
209
|
+
availableChannel?: IServiceChannel;
|
|
210
210
|
}
|
|
211
211
|
export type IAvailableReservationStatusType = ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
|
|
212
212
|
export interface IProvider {
|