@chevre/domain 24.0.0-alpha.43 → 24.0.0-alpha.44
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.
|
@@ -128,23 +128,29 @@ export declare class SeatRepo {
|
|
|
128
128
|
/**
|
|
129
129
|
* 座席コード
|
|
130
130
|
*/
|
|
131
|
-
branchCode
|
|
132
|
-
$in
|
|
131
|
+
branchCode: {
|
|
132
|
+
$in: string[];
|
|
133
133
|
};
|
|
134
|
-
containedInPlace
|
|
134
|
+
containedInPlace: {
|
|
135
135
|
/**
|
|
136
136
|
* セクションコード
|
|
137
137
|
*/
|
|
138
|
-
branchCode
|
|
139
|
-
$in
|
|
138
|
+
branchCode: {
|
|
139
|
+
$in: string[];
|
|
140
140
|
};
|
|
141
|
-
containedInPlace
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
containedInPlace: {
|
|
142
|
+
/**
|
|
143
|
+
* ルームコード
|
|
144
|
+
*/
|
|
145
|
+
branchCode: {
|
|
146
|
+
$eq: string;
|
|
144
147
|
};
|
|
145
|
-
containedInPlace
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
containedInPlace: {
|
|
149
|
+
/**
|
|
150
|
+
* 施設コード
|
|
151
|
+
*/
|
|
152
|
+
branchCode: {
|
|
153
|
+
$eq: string;
|
|
148
154
|
};
|
|
149
155
|
};
|
|
150
156
|
};
|
|
@@ -542,6 +542,12 @@ class SeatRepo {
|
|
|
542
542
|
// ルーム指定の座席検索として再定義(2025-04-28~)
|
|
543
543
|
async projectSeatsByScreeningRoom(params) {
|
|
544
544
|
const { limit, page, project, containedInPlace, screeningRoom, $projection, ...searchSeatsConditions } = params;
|
|
545
|
+
if (typeof screeningRoom.branchCode.$eq !== 'string' || screeningRoom.branchCode.$eq === '') {
|
|
546
|
+
throw new factory.errors.ArgumentNull('screeningRoom.branchCode.$eq');
|
|
547
|
+
}
|
|
548
|
+
if (typeof screeningRoom.containedInPlace.branchCode.$eq !== 'string' || screeningRoom.containedInPlace.branchCode.$eq === '') {
|
|
549
|
+
throw new factory.errors.ArgumentNull('screeningRoom.containedInPlace.branchCode.$eq');
|
|
550
|
+
}
|
|
545
551
|
// まずルーム検索
|
|
546
552
|
const screeningRoomDoc = await this.placeModel.findOne({
|
|
547
553
|
typeOf: { $eq: factory.placeType.ScreeningRoom },
|
|
@@ -706,10 +712,16 @@ class SeatRepo {
|
|
|
706
712
|
matchStages.push({ $match: { 'project.id': { $eq: projectIdEq } } });
|
|
707
713
|
}
|
|
708
714
|
const branchCodeEq = params.containedInPlace?.containedInPlace?.branchCode?.$eq;
|
|
715
|
+
if (typeof branchCodeEq !== 'string' || branchCodeEq === '') {
|
|
716
|
+
throw new factory.errors.ArgumentNull('containedInPlace.containedInPlace.branchCode.$eq');
|
|
717
|
+
}
|
|
709
718
|
if (typeof branchCodeEq === 'string') {
|
|
710
719
|
matchStages.push({ $match: { branchCode: { $eq: branchCodeEq } } });
|
|
711
720
|
}
|
|
712
721
|
const containedInPlaceBranchCodeEq = params.containedInPlace?.containedInPlace?.containedInPlace?.branchCode?.$eq;
|
|
722
|
+
if (typeof containedInPlaceBranchCodeEq !== 'string' || containedInPlaceBranchCodeEq === '') {
|
|
723
|
+
throw new factory.errors.ArgumentNull('containedInPlace.containedInPlace.containedInPlace.branchCode.$eq');
|
|
724
|
+
}
|
|
713
725
|
if (typeof containedInPlaceBranchCodeEq === 'string') {
|
|
714
726
|
matchStages.push({
|
|
715
727
|
$match: { 'containedInPlace.branchCode': { $exists: true, $eq: containedInPlaceBranchCodeEq } }
|
|
@@ -520,6 +520,12 @@ class SectionRepo {
|
|
|
520
520
|
// >
|
|
521
521
|
) {
|
|
522
522
|
const { limit, page, projectId, sellerId, movieTheaterCode, roomCode } = params;
|
|
523
|
+
if (typeof movieTheaterCode !== 'string' || movieTheaterCode === '') {
|
|
524
|
+
throw new factory.errors.ArgumentNull('movieTheaterCode');
|
|
525
|
+
}
|
|
526
|
+
if (typeof roomCode !== 'string' || roomCode === '') {
|
|
527
|
+
throw new factory.errors.ArgumentNull('roomCode');
|
|
528
|
+
}
|
|
523
529
|
const matchStageBeforeUnwind = {
|
|
524
530
|
$match: {
|
|
525
531
|
'project.id': { $eq: projectId },
|
package/package.json
CHANGED