@chevre/factory 5.4.0-alpha.32 → 5.4.0-alpha.33
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/action/cancel/reservation.d.ts +2 -19
- package/lib/action/reserve.d.ts +1 -2
- package/lib/assetTransaction/cancelReservation.d.ts +2 -6
- package/lib/assetTransaction/reserve.d.ts +4 -33
- package/lib/index.d.ts +14 -16
- package/lib/index.js +0 -2
- package/lib/notification/reservation.d.ts +1 -1
- package/lib/order.d.ts +2 -18
- package/lib/ownershipInfo.d.ts +1 -19
- package/lib/reservation/pendingReservationPackage.d.ts +1 -1
- package/lib/reservationType.d.ts +0 -1
- package/lib/reservationType.js +1 -1
- package/lib/reservedCodeValues.js +1 -1
- package/package.json +2 -2
- package/lib/reservation/busReservation.d.ts +0 -55
- package/lib/reservation/busReservation.js +0 -2
|
@@ -7,12 +7,11 @@ import { ProductType } from '../../product';
|
|
|
7
7
|
import { IAvailableReservationStatusType } from '../../reservation';
|
|
8
8
|
import { ReservationType } from '../../reservationType';
|
|
9
9
|
import { ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
|
|
10
|
-
import { TripType } from '../../tripType';
|
|
11
10
|
import { IAction as IReturnReserveTransactionAction } from '../transfer/return/reserveTransaction';
|
|
12
11
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
13
12
|
export interface IReservationPackageAsObject {
|
|
14
13
|
reservationFor: {
|
|
15
|
-
typeOf: EventType.ScreeningEvent
|
|
14
|
+
typeOf: EventType.ScreeningEvent;
|
|
16
15
|
id: string;
|
|
17
16
|
};
|
|
18
17
|
reservationNumber: string;
|
|
@@ -22,22 +21,6 @@ export interface IReservationPackageAsObject {
|
|
|
22
21
|
reservationStatus: IAvailableReservationStatusType;
|
|
23
22
|
typeOf: ReservationType.ReservationPackage;
|
|
24
23
|
}
|
|
25
|
-
export interface IBusReservationAsObject {
|
|
26
|
-
id: string;
|
|
27
|
-
issuedThrough?: {
|
|
28
|
-
typeOf?: ProductType.Transportation;
|
|
29
|
-
};
|
|
30
|
-
reservationFor: {
|
|
31
|
-
typeOf: TripType.BusTrip;
|
|
32
|
-
id: string;
|
|
33
|
-
};
|
|
34
|
-
reservationNumber: string;
|
|
35
|
-
/**
|
|
36
|
-
* previousReservationStatusを変更時に指定するために必要
|
|
37
|
-
*/
|
|
38
|
-
reservationStatus: IAvailableReservationStatusType;
|
|
39
|
-
typeOf: ReservationType.BusReservation;
|
|
40
|
-
}
|
|
41
24
|
export interface IEventReservationAsObject {
|
|
42
25
|
id: string;
|
|
43
26
|
issuedThrough?: {
|
|
@@ -54,7 +37,7 @@ export interface IEventReservationAsObject {
|
|
|
54
37
|
reservationStatus: IAvailableReservationStatusType;
|
|
55
38
|
typeOf: ReservationType.EventReservation;
|
|
56
39
|
}
|
|
57
|
-
export type IObject =
|
|
40
|
+
export type IObject = IEventReservationAsObject | IReservationPackageAsObject;
|
|
58
41
|
export interface IResult {
|
|
59
42
|
}
|
|
60
43
|
export interface IPurpose {
|
package/lib/action/reserve.d.ts
CHANGED
|
@@ -3,13 +3,12 @@ import { ActionType } from '../actionType';
|
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { IOrder } from '../order';
|
|
5
5
|
import { IAvailableReservationStatusType } from '../reservation';
|
|
6
|
-
import { IReservationFor as IBusReservationFor } from '../reservation/busReservation';
|
|
7
6
|
import { IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
8
7
|
import { ReservationType } from '../reservationType';
|
|
9
8
|
import { ITransaction as IPlaceOrder } from '../transaction/placeOrder';
|
|
10
9
|
import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
|
|
11
10
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
12
|
-
export type IReservationFor =
|
|
11
|
+
export type IReservationFor = Pick<IEventReservationFor, 'id' | 'typeOf'> & {
|
|
13
12
|
optimized: boolean;
|
|
14
13
|
};
|
|
15
14
|
export interface IObject {
|
|
@@ -3,7 +3,6 @@ import * as AssetTransactionFactory from '../assetTransaction';
|
|
|
3
3
|
import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
|
-
import { IReservation as IBusReservation, IReservationFor as IBusReservationFor } from '../reservation/busReservation';
|
|
7
6
|
import { IReservation as IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
8
7
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
9
8
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
@@ -35,12 +34,9 @@ export interface IObjectWithoutDetail {
|
|
|
35
34
|
}
|
|
36
35
|
export type IReserveTransactionAsObject = Pick<IReserveTransaction, 'typeOf' | 'id' | 'transactionNumber'> & {
|
|
37
36
|
object: {
|
|
38
|
-
reservationFor: Pick<IEventReservationFor
|
|
37
|
+
reservationFor: Pick<IEventReservationFor, 'id' | 'typeOf'>;
|
|
39
38
|
};
|
|
40
39
|
};
|
|
41
|
-
export type IBusReservationAsObject = Pick<IBusReservation, 'id' | 'issuedThrough' | 'reservationNumber' | 'typeOf'> & {
|
|
42
|
-
reservationFor: Pick<IBusReservationFor, 'id' | 'typeOf'>;
|
|
43
|
-
};
|
|
44
40
|
export type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedThrough' | 'reservationNumber' | 'typeOf'> & {
|
|
45
41
|
reservationFor: Pick<IEventReservationFor, 'id' | 'typeOf'>;
|
|
46
42
|
};
|
|
@@ -49,7 +45,7 @@ export type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedTh
|
|
|
49
45
|
*/
|
|
50
46
|
export interface IObject extends Pick<IReservationPackage, 'reservationNumber' | 'typeOf'> {
|
|
51
47
|
transaction?: IReserveTransactionAsObject;
|
|
52
|
-
reservations?:
|
|
48
|
+
reservations?: IEventReservationAsObject[];
|
|
53
49
|
/**
|
|
54
50
|
* 予約番号
|
|
55
51
|
*/
|
|
@@ -9,7 +9,6 @@ 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 IBusReservationIssuedThrough, IReservation as IBusReservation, IReservationFor as IBusReservationReservationFor } from '../reservation/busReservation';
|
|
13
12
|
import { IIssuedThrough as IEventReservationIssuedThrough, IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
|
|
14
13
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
15
14
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
@@ -88,33 +87,6 @@ export interface IAcceptedPointAward {
|
|
|
88
87
|
};
|
|
89
88
|
};
|
|
90
89
|
}
|
|
91
|
-
export interface IBusReservatonAsItemOfferedServiceOutput {
|
|
92
|
-
typeOf: ReservationType.BusReservation;
|
|
93
|
-
/**
|
|
94
|
-
* 追加特性
|
|
95
|
-
*/
|
|
96
|
-
additionalProperty?: IPropertyValue<string>[];
|
|
97
|
-
/**
|
|
98
|
-
* 予約追加テキスト
|
|
99
|
-
*/
|
|
100
|
-
additionalTicketText?: string;
|
|
101
|
-
programMembershipUsed?: IAcceptedProgramMembershipUsed;
|
|
102
|
-
reservedTicket?: {
|
|
103
|
-
/**
|
|
104
|
-
* チケット識別子
|
|
105
|
-
* 指定された場合、決済カードの対象チケット識別子と関連付けされます
|
|
106
|
-
* /^[0-9a-zA-Z]{8,16}$/
|
|
107
|
-
*/
|
|
108
|
-
identifier?: string;
|
|
109
|
-
issuedBy?: ReservationFactory.IUnderName;
|
|
110
|
-
typeOf: ReservationFactory.TicketType;
|
|
111
|
-
/**
|
|
112
|
-
* 座席指定
|
|
113
|
-
*/
|
|
114
|
-
ticketedSeat?: ReservationFactory.ISeat;
|
|
115
|
-
};
|
|
116
|
-
subReservation?: IAcceptedSubReservation[];
|
|
117
|
-
}
|
|
118
90
|
export interface IEventReservatonAsItemOfferedServiceOutput {
|
|
119
91
|
typeOf: ReservationType.EventReservation;
|
|
120
92
|
/**
|
|
@@ -142,7 +114,7 @@ export interface IEventReservatonAsItemOfferedServiceOutput {
|
|
|
142
114
|
};
|
|
143
115
|
subReservation?: IAcceptedSubReservation[];
|
|
144
116
|
}
|
|
145
|
-
export type IItemOfferedServiceOutput =
|
|
117
|
+
export type IItemOfferedServiceOutput = IEventReservatonAsItemOfferedServiceOutput;
|
|
146
118
|
/**
|
|
147
119
|
* 受け入れられたオファーのアイテム
|
|
148
120
|
*/
|
|
@@ -325,11 +297,10 @@ export interface IObjectWithoutDetail {
|
|
|
325
297
|
};
|
|
326
298
|
};
|
|
327
299
|
}
|
|
328
|
-
export type IReservationFor =
|
|
329
|
-
export type IBusReservationAsSubReservation = Pick<IBusReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'price' | 'priceCurrency' | 'programMembershipUsed' | 'reservedTicket' | 'subReservation' | 'typeOf'>;
|
|
300
|
+
export type IReservationFor = IEventReservationReservationFor;
|
|
330
301
|
export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'price' | 'priceCurrency' | 'programMembershipUsed' | 'reservedTicket' | 'subReservation' | 'typeOf'>;
|
|
331
|
-
export type IObjectSubReservation =
|
|
332
|
-
export type IIssuedThrough =
|
|
302
|
+
export type IObjectSubReservation = IEventReservationAsSubReservation;
|
|
303
|
+
export type IIssuedThrough = IEventReservationIssuedThrough;
|
|
333
304
|
export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'underName' | 'typeOf'> {
|
|
334
305
|
acceptedOffer?: IAcceptedOffer4object[];
|
|
335
306
|
issuedThrough?: IIssuedThrough;
|
package/lib/index.d.ts
CHANGED
|
@@ -130,7 +130,6 @@ import * as QuantitativeValueFactory from './quantitativeValue';
|
|
|
130
130
|
import * as RecipeFactory from './recipe';
|
|
131
131
|
import * as AccountingReportFactory from './report/accountingReport';
|
|
132
132
|
import * as ReservationFactory from './reservation';
|
|
133
|
-
import * as BusReservationFactory from './reservation/busReservation';
|
|
134
133
|
import * as EventReservationFactory from './reservation/event';
|
|
135
134
|
import * as ReservationPackageFactory from './reservation/reservationPackage';
|
|
136
135
|
import { ReservationStatusType } from './reservationStatusType';
|
|
@@ -488,24 +487,23 @@ export declare namespace report {
|
|
|
488
487
|
export import accountingReport = AccountingReportFactory;
|
|
489
488
|
}
|
|
490
489
|
export declare namespace reservation {
|
|
491
|
-
export import busReservation = BusReservationFactory;
|
|
492
490
|
export import eventReservation = EventReservationFactory;
|
|
493
|
-
type IBroker<T extends ReservationType> = T extends ReservationType.
|
|
494
|
-
type IIssuedThrough<T extends ReservationType> = T extends ReservationType.
|
|
495
|
-
type IPriceSpecification<T extends ReservationType> = T extends ReservationType.
|
|
496
|
-
type IProgramMembershipUsed<T extends ReservationType> = T extends ReservationType.
|
|
491
|
+
type IBroker<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IBroker : ReservationFactory.IBroker;
|
|
492
|
+
type IIssuedThrough<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.IIssuedThrough : ReservationFactory.IIssuedThrough;
|
|
493
|
+
type IPriceSpecification<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.IPriceSpecification : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.IPriceSpecification : ReservationFactory.IPriceSpecification;
|
|
494
|
+
type IProgramMembershipUsed<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IProgramMembershipUsed : ReservationFactory.IProgramMembershipUsed;
|
|
497
495
|
export import IProvider = ReservationFactory.IProvider;
|
|
498
|
-
type IReservationFor<T extends ReservationType> = T extends ReservationType.
|
|
499
|
-
type IReservation<T extends ReservationType> = T extends ReservationType.
|
|
500
|
-
type ISearchConditions<T extends ReservationType> = T extends ReservationType.
|
|
501
|
-
type ISortOrder<T extends ReservationType> = T extends ReservationType.
|
|
502
|
-
type ISeat<T extends ReservationType> = T extends ReservationType.
|
|
503
|
-
type ISubReservation<T extends ReservationType> = T extends ReservationType.
|
|
496
|
+
type IReservationFor<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.IReservationFor : T extends ReservationType.ReservationPackage ? ReservationFactory.IReservationFor : ReservationFactory.IReservationFor;
|
|
497
|
+
type IReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.IReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.IReservation : ReservationFactory.IReservation<ReservationFactory.IPriceSpecification>;
|
|
498
|
+
type ISearchConditions<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISearchConditions : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISearchConditions : ReservationPackageFactory.ISearchConditions;
|
|
499
|
+
type ISortOrder<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISortOrder : ReservationFactory.ISortOrder;
|
|
500
|
+
type ISeat<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISeat : ReservationFactory.ISeat;
|
|
501
|
+
type ISubReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISubReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISubReservation : any;
|
|
504
502
|
export import ITicket = ReservationFactory.ITicket;
|
|
505
|
-
type IUnderName<T extends ReservationType> = T extends ReservationType.
|
|
506
|
-
type ITicketIssuedBy<T extends ReservationType> = T extends ReservationType.
|
|
507
|
-
type TicketType<T extends ReservationType> = T extends ReservationType.
|
|
508
|
-
type ITicketType<T extends ReservationType> = T extends ReservationType.
|
|
503
|
+
type IUnderName<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IUnderName : ReservationFactory.IUnderName;
|
|
504
|
+
type ITicketIssuedBy<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketIssuedBy : ReservationFactory.ITicketIssuedBy;
|
|
505
|
+
type TicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.TicketType : ReservationFactory.TicketType;
|
|
506
|
+
type ITicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketType : ReservationFactory.ITicketType;
|
|
509
507
|
export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
|
|
510
508
|
export import IServiceLocationContainedInPlace = ReservationFactory.IServiceLocationContainedInPlace;
|
|
511
509
|
export import IServiceLocation = ReservationFactory.IServiceLocation;
|
package/lib/index.js
CHANGED
|
@@ -125,7 +125,6 @@ var QualitativeValueFactory = require("./qualitativeValue");
|
|
|
125
125
|
var QuantitativeValueFactory = require("./quantitativeValue");
|
|
126
126
|
var RecipeFactory = require("./recipe");
|
|
127
127
|
var AccountingReportFactory = require("./report/accountingReport");
|
|
128
|
-
var BusReservationFactory = require("./reservation/busReservation");
|
|
129
128
|
var EventReservationFactory = require("./reservation/event");
|
|
130
129
|
var reservationStatusType_1 = require("./reservationStatusType");
|
|
131
130
|
var reservationType_1 = require("./reservationType");
|
|
@@ -512,7 +511,6 @@ var report;
|
|
|
512
511
|
})(report = exports.report || (exports.report = {}));
|
|
513
512
|
var reservation;
|
|
514
513
|
(function (reservation) {
|
|
515
|
-
reservation.busReservation = BusReservationFactory;
|
|
516
514
|
reservation.eventReservation = EventReservationFactory;
|
|
517
515
|
})(reservation = exports.reservation || (exports.reservation = {}));
|
|
518
516
|
exports.reservationStatusType = reservationStatusType_1.ReservationStatusType;
|
|
@@ -25,7 +25,7 @@ export interface IReservationPackage4informConfirmed {
|
|
|
25
25
|
* 予約取消通知
|
|
26
26
|
*/
|
|
27
27
|
export interface IReservation4informCanceled {
|
|
28
|
-
typeOf: ReservationType.
|
|
28
|
+
typeOf: ReservationType.EventReservation;
|
|
29
29
|
project: IProject;
|
|
30
30
|
id: string;
|
|
31
31
|
reservationStatus: ReservationStatusType.ReservationCancelled;
|
package/lib/order.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpeci
|
|
|
20
20
|
import { IMembershipProduct, IPaymentCardProduct, ProductType } from './product';
|
|
21
21
|
import { IPropertyValue } from './propertyValue';
|
|
22
22
|
import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './reservation';
|
|
23
|
-
import * as BusReservationFactory from './reservation/busReservation';
|
|
24
23
|
import * as EventReservationFactory from './reservation/event';
|
|
25
24
|
import { ReservationType } from './reservationType';
|
|
26
25
|
import { ISeller as IBaseSeller } from './seller';
|
|
@@ -91,7 +90,6 @@ export type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerforme
|
|
|
91
90
|
export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
92
91
|
workPerformed: IWorkPerformed;
|
|
93
92
|
};
|
|
94
|
-
export type ITripAsReservationFor = BusReservationFactory.IReservationFor;
|
|
95
93
|
export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent'> & {
|
|
96
94
|
superEvent: ISuperEvent;
|
|
97
95
|
};
|
|
@@ -99,15 +97,11 @@ export type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | 'identif
|
|
|
99
97
|
'ticketNumber' | 'dateIssued' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
|
|
100
98
|
ticketType: ITicketType;
|
|
101
99
|
};
|
|
102
|
-
export type IBusReservation = Pick<BusReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
103
|
-
reservationFor: ITripAsReservationFor;
|
|
104
|
-
reservedTicket: IReservedTicket;
|
|
105
|
-
};
|
|
106
100
|
export type IEventReservation = Pick<EventReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
107
101
|
reservationFor: IEventAsReservationFor;
|
|
108
102
|
reservedTicket: IReservedTicket;
|
|
109
103
|
};
|
|
110
|
-
export type IReservation =
|
|
104
|
+
export type IReservation = IEventReservation;
|
|
111
105
|
export type IPermit = Pick<IBasePermit, 'amount' | 'identifier' | 'name' | 'typeOf' | 'validFor'> & {
|
|
112
106
|
identifier: string;
|
|
113
107
|
issuedThrough?: IIssuedThroughAsProduct;
|
|
@@ -232,16 +226,6 @@ export interface IEventServiceAsOrderedItem {
|
|
|
232
226
|
*/
|
|
233
227
|
id?: string;
|
|
234
228
|
}
|
|
235
|
-
export type IReservationFor4TransportationOrderedItem = Pick<ITripAsReservationFor, 'typeOf' | 'id' | 'arrivalTime' | 'departureTime'>;
|
|
236
|
-
export interface ITransportationAsOrderedItem {
|
|
237
|
-
typeOf: ProductType.Transportation;
|
|
238
|
-
serviceOutput: {
|
|
239
|
-
typeOf: ReservationType.ReservationPackage;
|
|
240
|
-
reservationFor: IReservationFor4TransportationOrderedItem;
|
|
241
|
-
};
|
|
242
|
-
serviceType?: EventReservationFactory.IServiceTypeOfIssuedThrough;
|
|
243
|
-
id: string;
|
|
244
|
-
}
|
|
245
229
|
export type IProductAsOrderedItem = Pick<IMembershipProduct | IPaymentCardProduct, 'serviceType' | 'typeOf'> & {
|
|
246
230
|
id: string;
|
|
247
231
|
};
|
|
@@ -251,7 +235,7 @@ export type IProductAsOrderedItem = Pick<IMembershipProduct | IPaymentCardProduc
|
|
|
251
235
|
*/
|
|
252
236
|
export interface IOrderedItem {
|
|
253
237
|
typeOf: 'OrderItem';
|
|
254
|
-
orderedItem: IProductAsOrderedItem | IEventServiceAsOrderedItem
|
|
238
|
+
orderedItem: IProductAsOrderedItem | IEventServiceAsOrderedItem;
|
|
255
239
|
}
|
|
256
240
|
/**
|
|
257
241
|
* 注文
|
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -10,24 +10,6 @@ import { PaymentServiceType } from './service/paymentService';
|
|
|
10
10
|
import * as WebAPIFactory from './service/webAPI';
|
|
11
11
|
import { SortType } from './sortType';
|
|
12
12
|
export type IBookingService = Pick<WebAPIFactory.IService<WebAPIFactory.Identifier>, 'identifier' | 'typeOf'>;
|
|
13
|
-
export interface IBusReservationAsGood {
|
|
14
|
-
typeOf: ReservationType.BusReservation;
|
|
15
|
-
/**
|
|
16
|
-
* 予約ID
|
|
17
|
-
*/
|
|
18
|
-
id?: string;
|
|
19
|
-
issuedThrough?: {
|
|
20
|
-
typeOf: ProductFactory.ProductType.Transportation;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* 予約番号
|
|
24
|
-
*/
|
|
25
|
-
reservationNumber?: string;
|
|
26
|
-
/**
|
|
27
|
-
* ブッキングサービス(API)
|
|
28
|
-
*/
|
|
29
|
-
bookingService?: IBookingService;
|
|
30
|
-
}
|
|
31
13
|
export interface IEventReservationAsGood {
|
|
32
14
|
typeOf: ReservationType.EventReservation;
|
|
33
15
|
/**
|
|
@@ -49,7 +31,7 @@ export interface IEventReservationAsGood {
|
|
|
49
31
|
/**
|
|
50
32
|
* 予約
|
|
51
33
|
*/
|
|
52
|
-
export type IReservation =
|
|
34
|
+
export type IReservation = IEventReservationAsGood;
|
|
53
35
|
export type IPermitIssuedThroughAsFaceToFace = Pick<PermitFactory.IIssuedThroughAsFaceToFace, 'typeOf'>;
|
|
54
36
|
export type IPermitIssuedThroughAsCreditCard = Pick<PermitFactory.IIssuedThroughAsCreditCard, 'id' | 'typeOf'>;
|
|
55
37
|
export type IPermitIssuedThroughAsProduct = Pick<PermitFactory.IIssuedThroughAsProduct, 'id' | 'typeOf' | 'serviceType'>;
|
|
@@ -2,7 +2,7 @@ import { EventType } from '../eventType';
|
|
|
2
2
|
import { ISeat } from '../reservation';
|
|
3
3
|
import { ReservationType } from '../reservationType';
|
|
4
4
|
export interface ISubReservation {
|
|
5
|
-
typeOf: ReservationType.
|
|
5
|
+
typeOf: ReservationType.EventReservation;
|
|
6
6
|
id: string;
|
|
7
7
|
reservedTicket?: {
|
|
8
8
|
ticketedSeat?: Pick<ISeat, 'seatNumber' | 'seatSection'>;
|
package/lib/reservationType.d.ts
CHANGED
package/lib/reservationType.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.ReservationType = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
var ReservationType;
|
|
8
8
|
(function (ReservationType) {
|
|
9
|
-
|
|
9
|
+
// BusReservation = 'BusReservation',
|
|
10
10
|
ReservationType["EventReservation"] = "EventReservation";
|
|
11
11
|
ReservationType["ReservationPackage"] = "ReservationPackage";
|
|
12
12
|
})(ReservationType = exports.ReservationType || (exports.ReservationType = {}));
|
|
@@ -108,7 +108,7 @@ exports.RESERVED_CODE_VALUES = [
|
|
|
108
108
|
reservationStatusType_1.ReservationStatusType.ReservationPending,
|
|
109
109
|
'ReservationHold',
|
|
110
110
|
reservationStatusType_1.ReservationStatusType.ReservationPending,
|
|
111
|
-
|
|
111
|
+
'BusReservation',
|
|
112
112
|
reservationType_1.ReservationType.EventReservation,
|
|
113
113
|
reservationType_1.ReservationType.ReservationPackage,
|
|
114
114
|
sortType_1.SortType.Ascending,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chevre/factory",
|
|
3
|
-
"version": "5.4.0-alpha.
|
|
3
|
+
"version": "5.4.0-alpha.33",
|
|
4
4
|
"description": "Chevre Factory Library for Javascript",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"doc": "echo \"implementing...\" && exit 0",
|
|
23
23
|
"mocha": "mocha",
|
|
24
24
|
"nyc": "nyc mocha \"src/**/*.spec.ts\"",
|
|
25
|
-
"coverage": "npm run nyc && nyc report --reporter=text-lcov",
|
|
25
|
+
"coverage": "npm run nyc && nyc report --reporter=text-lcov | coveralls",
|
|
26
26
|
"test": "npm run check && npm run coverage",
|
|
27
27
|
"tslint": "tslint --project tsconfig.json -c tslint.json --exclude \"**/*.spec.ts\" \"src/**/*.ts\"",
|
|
28
28
|
"preversion": "npm run clean && npm run build && npm test && npm run doc",
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ProductType } from '../product';
|
|
2
|
-
import * as ReservationFactory from '../reservation';
|
|
3
|
-
import { ReservationType } from '../reservationType';
|
|
4
|
-
import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
|
|
5
|
-
import { TripType } from '../tripType';
|
|
6
|
-
import { IPriceSpecification, ITicketPriceComponent } from './event';
|
|
7
|
-
export type IReservationFor = Pick<IBusTrip, 'arrivalBusStop' | 'arrivalTime' | 'busName' | 'busNumber' | 'departureBusStop' | 'departureTime' | 'id' | 'identifier' | 'name' | 'typeOf'> & {
|
|
8
|
-
id: string;
|
|
9
|
-
};
|
|
10
|
-
export type IPriceComponentSpecification = ITicketPriceComponent;
|
|
11
|
-
export { IPriceSpecification };
|
|
12
|
-
export interface ISubReservation {
|
|
13
|
-
reservedTicket: {
|
|
14
|
-
typeOf: ReservationFactory.TicketType;
|
|
15
|
-
ticketedSeat: ReservationFactory.ISeat;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
|
|
19
|
-
export interface IIssuedThrough extends ReservationFactory.IIssuedThrough {
|
|
20
|
-
typeOf: ProductType.Transportation;
|
|
21
|
-
serviceType?: IServiceTypeOfIssuedThrough;
|
|
22
|
-
id: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* トリップ予約
|
|
26
|
-
*/
|
|
27
|
-
export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
|
|
28
|
-
bookingTime: Date;
|
|
29
|
-
id: string;
|
|
30
|
-
issuedThrough: IIssuedThrough;
|
|
31
|
-
reservationFor: IReservationFor;
|
|
32
|
-
reservationNumber: string;
|
|
33
|
-
reservationStatus: ReservationFactory.IAvailableReservationStatusType;
|
|
34
|
-
reservedTicket: ReservationFactory.ITicket;
|
|
35
|
-
subReservation?: ISubReservation[];
|
|
36
|
-
typeOf: ReservationType.BusReservation;
|
|
37
|
-
}
|
|
38
|
-
export interface IReservationForSearchConditions {
|
|
39
|
-
typeOf?: {
|
|
40
|
-
$eq?: TripType;
|
|
41
|
-
};
|
|
42
|
-
id?: {
|
|
43
|
-
$eq?: string;
|
|
44
|
-
$in?: string[];
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* 検索条件
|
|
49
|
-
*/
|
|
50
|
-
export interface ISearchConditions extends ReservationFactory.ISearchConditions<ReservationType.BusReservation> {
|
|
51
|
-
/**
|
|
52
|
-
* 予約対象
|
|
53
|
-
*/
|
|
54
|
-
reservationFor?: IReservationForSearchConditions;
|
|
55
|
-
}
|