@chevre/factory 4.313.0-alpha.36 → 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.
@@ -389,6 +389,7 @@ export interface ISearchConditions extends EventFactory.ISearchConditions<EventT
389
389
  */
390
390
  branchCode?: {
391
391
  $eq?: string;
392
+ $in?: string[];
392
393
  };
393
394
  };
394
395
  /**
@@ -297,6 +297,7 @@ export interface ISearchConditions extends EventFactory.ISearchConditions<EventT
297
297
  */
298
298
  branchCode?: {
299
299
  $eq?: string;
300
+ $in?: string[];
300
301
  };
301
302
  };
302
303
  /**
@@ -176,6 +176,7 @@ export interface ISearchConditions extends EventFactory.ISearchConditions<EventT
176
176
  location?: {
177
177
  branchCode?: {
178
178
  $eq?: string;
179
+ $in?: string[];
179
180
  };
180
181
  /**
181
182
  * 施設コードリスト
@@ -39,6 +39,7 @@ export interface ISearchConditions {
39
39
  };
40
40
  branchCode?: {
41
41
  $eq?: string;
42
+ $in?: string[];
42
43
  $regex?: string;
43
44
  };
44
45
  containedInPlace?: {
@@ -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のリストを返す
@@ -1,3 +1,4 @@
1
+ import { IAccountTitle } from '../accountTitle';
1
2
  import { IExtendId } from '../autoGenerated';
2
3
  import { ICategoryCode } from '../categoryCode';
3
4
  import { CreativeWorkType } from '../creativeWorkType';
@@ -5,8 +6,9 @@ import { PlaceType } from '../placeType';
5
6
  import { ProductType } from '../product';
6
7
  import * as TaskFactory from '../task';
7
8
  import { TaskName } from '../taskName';
9
+ export declare type AccountTitleType = IAccountTitle['typeOf'];
8
10
  export declare type CategoryCodeType = ICategoryCode['typeOf'];
9
- export declare type IResourceTypeOf = CategoryCodeType | CreativeWorkType | PlaceType.MovieTheater | ProductType;
11
+ export declare type IResourceTypeOf = AccountTitleType | CategoryCodeType | CreativeWorkType | PlaceType.MovieTheater | ProductType;
10
12
  export interface IData {
11
13
  id: string[];
12
14
  project: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.313.0-alpha.36",
3
+ "version": "4.313.0-alpha.38",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",