@chevre/domain 28.0.0-alpha.8 → 28.0.0-alpha.9

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.
@@ -100,6 +100,11 @@ export declare class ScreeningRoomRepo {
100
100
  };
101
101
  limit: number;
102
102
  page: number;
103
+ }, options: {
104
+ /**
105
+ * 将来的にcontainedInPlace最小化のためオプション採用(2026-09-17~)
106
+ */
107
+ minimizeContainedInPlace: boolean;
103
108
  }): Promise<Pick<factory.place.screeningRoom.IPlace, 'additionalProperty' | 'address' | 'branchCode' | 'containedInPlace' | 'maximumAttendeeCapacity' | 'name' | 'openSeatingAllowed' | 'typeOf' | 'seatCount' | 'sectionCount'>[]>;
104
109
  findRooms(params: Omit<factory.place.screeningRoom.ISearchConditions, '$projection'>): Promise<Pick<factory.place.screeningRoom.IPlace, 'additionalProperty' | 'address' | 'branchCode' | 'name' | 'openSeatingAllowed' | 'maximumAttendeeCapacity'>[]>;
105
110
  /**
@@ -384,7 +384,8 @@ class ScreeningRoomRepo {
384
384
  * sectionCount,seatCountのprojectが可能
385
385
  * sortはbranchCode: factory.sortType.Ascendingで固定
386
386
  */
387
- async projectRoomFields(params) {
387
+ async projectRoomFields(params, options) {
388
+ const { minimizeContainedInPlace } = options;
388
389
  const aggregate = this.placeModel.aggregate([
389
390
  ...ScreeningRoomRepo.CREATE_ROOM_MONGO_CONDITIONS(params),
390
391
  {
@@ -394,12 +395,16 @@ class ScreeningRoomRepo {
394
395
  branchCode: '$branchCode',
395
396
  name: '$name',
396
397
  address: '$address',
397
- containedInPlace: {
398
- id: '$containedInPlace.id',
399
- typeOf: '$containedInPlace.typeOf',
400
- branchCode: '$containedInPlace.branchCode',
401
- name: '$containedInPlace.name'
402
- },
398
+ containedInPlace: (minimizeContainedInPlace)
399
+ ? {
400
+ branchCode: '$containedInPlace.branchCode',
401
+ }
402
+ : {
403
+ id: '$containedInPlace.id',
404
+ typeOf: '$containedInPlace.typeOf',
405
+ branchCode: '$containedInPlace.branchCode',
406
+ name: '$containedInPlace.name'
407
+ },
403
408
  openSeatingAllowed: '$openSeatingAllowed',
404
409
  additionalProperty: '$additionalProperty',
405
410
  maximumAttendeeCapacity: '$maximumAttendeeCapacity',
package/package.json CHANGED
@@ -88,5 +88,5 @@
88
88
  "postversion": "git push origin --tags",
89
89
  "prepublishOnly": "npm run clean && npm run build"
90
90
  },
91
- "version": "28.0.0-alpha.8"
91
+ "version": "28.0.0-alpha.9"
92
92
  }