@chevre/domain 21.28.0-alpha.1 → 21.28.0-alpha.2

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.
@@ -31,6 +31,7 @@ class MongoRepository {
31
31
  branchCode: '$containsPlace.containsPlace.branchCode',
32
32
  name: '$containsPlace.containsPlace.name',
33
33
  seatingType: '$containsPlace.containsPlace.seatingType',
34
+ maximumAttendeeCapacity: '$containsPlace.containsPlace.maximumAttendeeCapacity',
34
35
  containedInPlace: Object.assign(Object.assign(Object.assign(Object.assign({}, (includeSectionBranchCode) ? { branchCode: '$containsPlace.branchCode' } : undefined), (includeSectionName) ? { name: '$containsPlace.name' } : undefined), (includeSectionTypeOf) ? { typeOf: '$containsPlace.typeOf' } : undefined), (includeScreeningRooms)
35
36
  ? {
36
37
  containedInPlace: {
@@ -89,7 +90,7 @@ class MongoRepository {
89
90
  'containsPlace.branchCode': { $eq: screeningRoomSection.branchCode }
90
91
  }, {
91
92
  $push: {
92
- 'containsPlace.$[screeningRoomSection].containsPlace': Object.assign(Object.assign({ typeOf: seat.typeOf, branchCode: seat.branchCode, additionalProperty: seat.additionalProperty }, (typeof ((_b = seat.name) === null || _b === void 0 ? void 0 : _b.ja) === 'string' || typeof ((_c = seat.name) === null || _c === void 0 ? void 0 : _c.en) === 'string') ? { name: seat.name } : undefined), (Array.isArray(seat.seatingType)) ? { seatingType: seat.seatingType } : undefined)
93
+ 'containsPlace.$[screeningRoomSection].containsPlace': Object.assign(Object.assign(Object.assign({ typeOf: seat.typeOf, branchCode: seat.branchCode, additionalProperty: seat.additionalProperty }, (typeof ((_b = seat.name) === null || _b === void 0 ? void 0 : _b.ja) === 'string' || typeof ((_c = seat.name) === null || _c === void 0 ? void 0 : _c.en) === 'string') ? { name: seat.name } : undefined), (Array.isArray(seat.seatingType)) ? { seatingType: seat.seatingType } : undefined), (seat.maximumAttendeeCapacity === 0) ? { maximumAttendeeCapacity: seat.maximumAttendeeCapacity } : undefined)
93
94
  }
94
95
  }, {
95
96
  new: true,
@@ -127,7 +128,7 @@ class MongoRepository {
127
128
  }
128
129
  const doc = yield this.placeModel.findOneAndUpdate(Object.assign({ typeOf: { $eq: factory.placeType.ScreeningRoom }, 'project.id': { $eq: seat.project.id }, 'containedInPlace.branchCode': { $exists: true, $eq: movieTheater.branchCode }, branchCode: { $eq: screeningRoom.branchCode }, 'containsPlace.branchCode': { $eq: screeningRoomSection.branchCode }, 'containsPlace.containsPlace.branchCode': { $eq: seat.branchCode } }, (typeof ((_a = seat.parentOrganization) === null || _a === void 0 ? void 0 : _a.id) === 'string')
129
130
  ? { 'parentOrganization.id': { $exists: true, $eq: seat.parentOrganization.id } }
130
- : undefined), Object.assign(Object.assign(Object.assign(Object.assign({ 'containsPlace.$[screeningRoomSection].containsPlace.$[seat].branchCode': seat.branchCode }, (typeof ((_b = seat.name) === null || _b === void 0 ? void 0 : _b.ja) === 'string' || typeof ((_c = seat.name) === null || _c === void 0 ? void 0 : _c.en) === 'string')
131
+ : undefined), Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ 'containsPlace.$[screeningRoomSection].containsPlace.$[seat].branchCode': seat.branchCode }, (typeof ((_b = seat.name) === null || _b === void 0 ? void 0 : _b.ja) === 'string' || typeof ((_c = seat.name) === null || _c === void 0 ? void 0 : _c.en) === 'string')
131
132
  ? {
132
133
  'containsPlace.$[screeningRoomSection].containsPlace.$[seat].name': seat.name
133
134
  }
@@ -139,7 +140,11 @@ class MongoRepository {
139
140
  ? {
140
141
  'containsPlace.$[screeningRoomSection].containsPlace.$[seat].additionalProperty': seat.additionalProperty
141
142
  }
142
- : undefined), { $unset: Object.assign(Object.assign({ noExistingAttributeName: 1 }, (($unset === null || $unset === void 0 ? void 0 : $unset['containsPlace.$[screeningRoom].containsPlace.$[screeningRoomSection].containsPlace.$[seat].name'])
143
+ : undefined), (seat.maximumAttendeeCapacity === 0)
144
+ ? {
145
+ 'containsPlace.$[screeningRoomSection].containsPlace.$[seat].maximumAttendeeCapacity': seat.maximumAttendeeCapacity
146
+ }
147
+ : undefined), { $unset: Object.assign(Object.assign(Object.assign({ noExistingAttributeName: 1 }, (($unset === null || $unset === void 0 ? void 0 : $unset['containsPlace.$[screeningRoom].containsPlace.$[screeningRoomSection].containsPlace.$[seat].name'])
143
148
  === 1
144
149
  || ($unset === null || $unset === void 0 ? void 0 : $unset['containsPlace.$[screeningRoomSection].containsPlace.$[seat].name']) === 1)
145
150
  ? {
@@ -151,6 +156,12 @@ class MongoRepository {
151
156
  ? {
152
157
  'containsPlace.$[screeningRoomSection].containsPlace.$[seat].seatingType': 1
153
158
  }
159
+ : undefined), (($unset === null || $unset === void 0 ? void 0 : $unset['containsPlace.$[screeningRoom].containsPlace.$[screeningRoomSection].containsPlace.$[seat].maximumAttendeeCapacity'])
160
+ === 1
161
+ || ($unset === null || $unset === void 0 ? void 0 : $unset['containsPlace.$[screeningRoomSection].containsPlace.$[seat].maximumAttendeeCapacity']) === 1)
162
+ ? {
163
+ 'containsPlace.$[screeningRoomSection].containsPlace.$[seat].maximumAttendeeCapacity': 1
164
+ }
154
165
  : undefined) }), {
155
166
  new: true,
156
167
  arrayFilters: [
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "dependencies": {
12
12
  "@aws-sdk/credential-providers": "3.433.0",
13
- "@chevre/factory": "4.364.0",
13
+ "@chevre/factory": "4.365.0-alpha.0",
14
14
  "@cinerino/sdk": "5.15.0",
15
15
  "@motionpicture/coa-service": "9.4.0",
16
16
  "@motionpicture/gmo-service": "5.3.0",
@@ -110,5 +110,5 @@
110
110
  "postversion": "git push origin --tags",
111
111
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
112
112
  },
113
- "version": "21.28.0-alpha.1"
113
+ "version": "21.28.0-alpha.2"
114
114
  }