@chevre/factory 4.313.0-alpha.37 → 4.313.0-alpha.38
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/event/anyEvent.d.ts +1 -0
- package/lib/event/screeningEvent.d.ts +1 -0
- package/lib/event/screeningEventSeries.d.ts +1 -0
- package/lib/place/screeningRoom.d.ts +1 -0
- package/lib/reservation/pendingReservationPackage.d.ts +24 -0
- package/lib/reservation/pendingReservationPackage.js +14 -0
- package/package.json +1 -1
package/lib/event/anyEvent.d.ts
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventType } from '../eventType';
|
|
2
|
+
import { ISeat } from '../reservation';
|
|
3
|
+
import { ReservationType } from '../reservationType';
|
|
4
|
+
export interface ISubReservation {
|
|
5
|
+
typeOf: ReservationType.BusReservation | ReservationType.EventReservation;
|
|
6
|
+
id: string;
|
|
7
|
+
reservedTicket?: {
|
|
8
|
+
ticketedSeat?: Pick<ISeat, 'seatNumber' | 'seatSection'>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface IReservationPackage {
|
|
12
|
+
typeOf: ReservationType.ReservationPackage;
|
|
13
|
+
reservationNumber: string;
|
|
14
|
+
subReservation: ISubReservation[];
|
|
15
|
+
}
|
|
16
|
+
export interface IAggregateReservation {
|
|
17
|
+
typeOf: 'AggregateReservation';
|
|
18
|
+
reservationCount: number;
|
|
19
|
+
reservationFor: {
|
|
20
|
+
id: string;
|
|
21
|
+
typeOf: EventType.Event | EventType.ScreeningEvent;
|
|
22
|
+
};
|
|
23
|
+
reservations: IReservationPackage[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// public async lockIfNotLimitExceeded
|
|
4
|
+
// reservationCount<=nであれば$push+$incする
|
|
5
|
+
// public async lock
|
|
6
|
+
// [reservationFor.id+seatNumber+seatSection][reservationNumber][subReservation.id]にunique indexを作成した上で$push+$incする
|
|
7
|
+
// public async unlock
|
|
8
|
+
// [id]あるいは[seatNumber+seatSection]でreservations.subReservationsから$pull+$incする
|
|
9
|
+
// public async countUnavailableOffers
|
|
10
|
+
// reservationCountを返す
|
|
11
|
+
// public async getHolder
|
|
12
|
+
// [id]あるいは[seatNumber+seatSection]でreservationNumberを返す
|
|
13
|
+
// public async searchHolders
|
|
14
|
+
// [id]あるいは[seatNumber+seatSection]のリストでreservationNumberのリストを返す
|