@chevre/factory 4.313.0-alpha.13 → 4.313.0-alpha.14
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.
|
@@ -3,7 +3,7 @@ import { ActionType } from '../../actionType';
|
|
|
3
3
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
4
4
|
import { EventType } from '../../eventType';
|
|
5
5
|
import { ProductType } from '../../product';
|
|
6
|
-
import {
|
|
6
|
+
import { IAvailableReservationStatusType } from '../../reservation';
|
|
7
7
|
import { ReservationType } from '../../reservationType';
|
|
8
8
|
import { TripType } from '../../tripType';
|
|
9
9
|
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
@@ -16,7 +16,7 @@ export interface IReservationPackageAsObject {
|
|
|
16
16
|
/**
|
|
17
17
|
* previousReservationStatusを変更時に指定するために必要
|
|
18
18
|
*/
|
|
19
|
-
reservationStatus:
|
|
19
|
+
reservationStatus: IAvailableReservationStatusType;
|
|
20
20
|
typeOf: ReservationType.ReservationPackage;
|
|
21
21
|
}
|
|
22
22
|
export interface IBusReservationAsObject {
|
|
@@ -32,7 +32,7 @@ export interface IBusReservationAsObject {
|
|
|
32
32
|
/**
|
|
33
33
|
* previousReservationStatusを変更時に指定するために必要
|
|
34
34
|
*/
|
|
35
|
-
reservationStatus:
|
|
35
|
+
reservationStatus: IAvailableReservationStatusType;
|
|
36
36
|
typeOf: ReservationType.BusReservation;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -51,7 +51,7 @@ export interface IEventReservationAsObject {
|
|
|
51
51
|
/**
|
|
52
52
|
* previousReservationStatusを変更時に指定するために必要
|
|
53
53
|
*/
|
|
54
|
-
reservationStatus:
|
|
54
|
+
reservationStatus: IAvailableReservationStatusType;
|
|
55
55
|
typeOf: ReservationType.EventReservation;
|
|
56
56
|
}
|
|
57
57
|
export declare type IObject = IBusReservationAsObject | IEventReservationAsObject | IReservationPackageAsObject;
|
package/lib/action/reserve.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import * as ActionFactory from '../action';
|
|
|
2
2
|
import { ActionType } from '../actionType';
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { OrderType } from '../order';
|
|
5
|
-
import { IUnderName } from '../reservation';
|
|
5
|
+
import { IAvailableReservationStatusType, IUnderName } from '../reservation';
|
|
6
6
|
import { IReservation as IBusReservation, IReservationFor as IBusReservationFor } from '../reservation/busReservation';
|
|
7
7
|
import { IReservation as IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
8
|
-
import { ReservationStatusType } from '../reservationStatusType';
|
|
9
8
|
import { ReservationType } from '../reservationType';
|
|
10
9
|
import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
|
|
11
10
|
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
@@ -14,7 +13,7 @@ export declare type IReservationFor = IBusReservationFor | IEventReservationFor;
|
|
|
14
13
|
export interface IReservationPackageAsObject {
|
|
15
14
|
reservationFor: IReservationFor;
|
|
16
15
|
reservationNumber: string;
|
|
17
|
-
reservationStatus:
|
|
16
|
+
reservationStatus: IAvailableReservationStatusType;
|
|
18
17
|
underName?: IUnderName;
|
|
19
18
|
typeOf: ReservationType.ReservationPackage;
|
|
20
19
|
}
|
|
@@ -220,7 +220,8 @@ export interface IObject extends Pick<IReservationPackage, 'broker' | 'reservati
|
|
|
220
220
|
acceptedOffer?: IAcceptedOffer4object[];
|
|
221
221
|
reservationFor?: IReservationFor;
|
|
222
222
|
reservationNumber: string;
|
|
223
|
-
subReservation?:
|
|
223
|
+
subReservation?: IObjectSubReservation[];
|
|
224
|
+
disablePendingReservations: boolean;
|
|
224
225
|
}
|
|
225
226
|
export interface IPotentialActions {
|
|
226
227
|
reserve: ReserveActionFactory.IAttributes[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
|
|
2
2
|
import { ProductType } from '../product';
|
|
3
3
|
import * as ReservationFactory from '../reservation';
|
|
4
|
-
import { ReservationStatusType } from '../reservationStatusType';
|
|
5
4
|
import { ReservationType } from '../reservationType';
|
|
6
5
|
import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
|
|
7
6
|
import { TripType } from '../tripType';
|
|
@@ -28,7 +27,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
|
|
|
28
27
|
issuedThrough: IIssuedThrough;
|
|
29
28
|
reservationFor: IReservationFor;
|
|
30
29
|
reservationNumber: string;
|
|
31
|
-
reservationStatus:
|
|
30
|
+
reservationStatus: ReservationFactory.IAvailableReservationStatusType;
|
|
32
31
|
reservedTicket: ReservationFactory.ITicket;
|
|
33
32
|
subReservation?: ISubReservation[];
|
|
34
33
|
typeOf: ReservationType.BusReservation;
|
|
@@ -4,7 +4,6 @@ import { IMultilingualString } from '../multilingualString';
|
|
|
4
4
|
import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
|
|
5
5
|
import { ProductType } from '../product';
|
|
6
6
|
import * as ReservationFactory from '../reservation';
|
|
7
|
-
import { ReservationStatusType } from '../reservationStatusType';
|
|
8
7
|
import { ReservationType } from '../reservationType';
|
|
9
8
|
export declare type IOptimizedWorkPerformed = Omit<IWorkPerformed, 'project' | 'name'> & {
|
|
10
9
|
name?: string | IMultilingualString;
|
|
@@ -53,7 +52,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
|
|
|
53
52
|
issuedThrough: IIssuedThrough;
|
|
54
53
|
reservationFor: IReservationFor;
|
|
55
54
|
reservationNumber: string;
|
|
56
|
-
reservationStatus:
|
|
55
|
+
reservationStatus: ReservationFactory.IAvailableReservationStatusType;
|
|
57
56
|
reservedTicket: ReservationFactory.ITicket;
|
|
58
57
|
subReservation?: ISubReservation[];
|
|
59
58
|
typeOf: ReservationType.EventReservation;
|
package/lib/reservation.d.ts
CHANGED
|
@@ -185,6 +185,7 @@ export interface IIssuedThrough {
|
|
|
185
185
|
id: string;
|
|
186
186
|
availableChannel: IServiceChannel;
|
|
187
187
|
}
|
|
188
|
+
export declare type IAvailableReservationStatusType = ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
|
|
188
189
|
/**
|
|
189
190
|
* 予約
|
|
190
191
|
* Describes a reservation for travel, dining or an event. Some reservations require tickets.
|
|
@@ -264,7 +265,7 @@ export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> ex
|
|
|
264
265
|
/**
|
|
265
266
|
* Current status of the reservation.
|
|
266
267
|
*/
|
|
267
|
-
reservationStatus?:
|
|
268
|
+
reservationStatus?: IAvailableReservationStatusType;
|
|
268
269
|
/**
|
|
269
270
|
* A ticket associated with the reservation.
|
|
270
271
|
*/
|
|
@@ -416,14 +417,14 @@ export interface ISearchConditions<T extends ReservationType> {
|
|
|
416
417
|
additionalTicketText?: string | IStringSearchConditions;
|
|
417
418
|
broker?: IBrokerSearchConditions;
|
|
418
419
|
reservationStatus?: {
|
|
419
|
-
$eq?:
|
|
420
|
-
$ne?:
|
|
421
|
-
$in?:
|
|
420
|
+
$eq?: IAvailableReservationStatusType;
|
|
421
|
+
$ne?: IAvailableReservationStatusType;
|
|
422
|
+
$in?: IAvailableReservationStatusType[];
|
|
422
423
|
};
|
|
423
424
|
/**
|
|
424
425
|
* 予約ステータスリスト
|
|
425
426
|
*/
|
|
426
|
-
reservationStatuses?:
|
|
427
|
+
reservationStatuses?: IAvailableReservationStatusType[];
|
|
427
428
|
bookingFrom?: Date;
|
|
428
429
|
bookingThrough?: Date;
|
|
429
430
|
modifiedFrom?: Date;
|