@chevre/domain 21.2.0 → 21.3.0-alpha.0
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/example/src/chevre/findScreeningRoomsByBranchCode.ts +1 -2
- package/example/src/chevre/ownershipInfosCsv2peopleJson.ts +1 -1
- package/example/src/chevre/searchScreeningRooms.ts +2 -4
- package/example/src/chevre/syncScreeningRooms.ts +1 -2
- package/example/src/chevre/syncScreeningRoomsAll.ts +1 -4
- package/lib/chevre/repo/place.d.ts +13 -73
- package/lib/chevre/repo/place.js +769 -1638
- package/lib/chevre/repo/seller.d.ts +1 -1
- package/lib/chevre/repo/seller.js +23 -2
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +1 -2
- package/lib/chevre/service/assetTransaction/reserve.js +1 -1
- package/lib/chevre/service/event.js +2 -3
- package/lib/chevre/service/offer.js +1 -1
- package/lib/chevre/service/task/onResourceUpdated.js +1 -1
- package/lib/chevre/service/task/syncScreeningRooms.js +1 -2
- package/lib/chevre/settings.d.ts +0 -2
- package/lib/chevre/settings.js +1 -3
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ async function main() {
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
const sellerRepo = new chevre.repository.Seller(mongoose.connection);
|
|
36
|
-
const sellers = await sellerRepo.search({});
|
|
36
|
+
const sellers = <Pick<chevre.factory.seller.ISeller, 'id' | 'name'>[]>await sellerRepo.search({}, ['_id', 'name'], []);
|
|
37
37
|
|
|
38
38
|
const personRepo = new chevre.repository.Person({
|
|
39
39
|
userPoolId: <string>process.env.COGNITO_USER_POOL_ID
|
|
@@ -15,8 +15,7 @@ async function main() {
|
|
|
15
15
|
limit: 10,
|
|
16
16
|
page: 1,
|
|
17
17
|
$projection: { sectionCount: 1 }
|
|
18
|
-
}
|
|
19
|
-
true
|
|
18
|
+
}
|
|
20
19
|
);
|
|
21
20
|
console.log('place found', rooms);
|
|
22
21
|
const filteredRooms = rooms.filter((room) => typeof room.sectionCount === 'number' && room.sectionCount > 1);
|
|
@@ -24,8 +23,7 @@ async function main() {
|
|
|
24
23
|
|
|
25
24
|
const screeningRoom = await placeRepo.findScreeningRoomsByBranchCode({
|
|
26
25
|
branchCode: { $eq: rooms[0].branchCode },
|
|
27
|
-
containedInPlace: { id: { $eq: String(rooms[0].containedInPlace?.id) } }
|
|
28
|
-
useScreeningRoomType: true
|
|
26
|
+
containedInPlace: { id: { $eq: String(rooms[0].containedInPlace?.id) } }
|
|
29
27
|
});
|
|
30
28
|
console.log('screeningRoom found', screeningRoom);
|
|
31
29
|
}
|
|
@@ -11,8 +11,7 @@ async function main() {
|
|
|
11
11
|
const placeRepo = new chevre.repository.Place(mongoose.connection);
|
|
12
12
|
|
|
13
13
|
await placeRepo.syncScreeningRooms({
|
|
14
|
-
id: '60409176f60a46000a7a3787'
|
|
15
|
-
useScreeningRoomType: true
|
|
14
|
+
id: '60409176f60a46000a7a3787'
|
|
16
15
|
});
|
|
17
16
|
console.log('synced');
|
|
18
17
|
}
|
|
@@ -30,10 +30,7 @@ async function main() {
|
|
|
30
30
|
doc.toObject();
|
|
31
31
|
|
|
32
32
|
console.log('syncing...', project.id, typeOf, id, name.ja, i);
|
|
33
|
-
await placeRepo.syncScreeningRooms({
|
|
34
|
-
id,
|
|
35
|
-
useScreeningRoomType: true
|
|
36
|
-
});
|
|
33
|
+
await placeRepo.syncScreeningRooms({ id });
|
|
37
34
|
console.log('synced.', project.id, typeOf, id, name.ja, i);
|
|
38
35
|
});
|
|
39
36
|
|
|
@@ -43,10 +43,6 @@ export declare class MongoRepository {
|
|
|
43
43
|
* 施設検索
|
|
44
44
|
*/
|
|
45
45
|
searchMovieTheaters(params: factory.place.movieTheater.ISearchConditions & {}, inclusion: string[], exclusion: string[]): Promise<factory.place.movieTheater.IPlaceWithoutScreeningRoom[]>;
|
|
46
|
-
/**
|
|
47
|
-
* 施設取得
|
|
48
|
-
* 廃止(2023-06-22~)
|
|
49
|
-
*/
|
|
50
46
|
deleteMovieTheaterById(params: {
|
|
51
47
|
id: string;
|
|
52
48
|
}): Promise<void>;
|
|
@@ -54,13 +50,7 @@ export declare class MongoRepository {
|
|
|
54
50
|
containedInPlace: {
|
|
55
51
|
branchCode: string;
|
|
56
52
|
};
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* 施設ID
|
|
60
|
-
*/
|
|
61
|
-
id: string;
|
|
62
|
-
typeOf: factory.placeType.MovieTheater;
|
|
63
|
-
} | {
|
|
53
|
+
}): Promise<{
|
|
64
54
|
containedInPlace: {
|
|
65
55
|
/**
|
|
66
56
|
* 施設ID
|
|
@@ -73,13 +63,7 @@ export declare class MongoRepository {
|
|
|
73
63
|
containedInPlace: {
|
|
74
64
|
branchCode: string;
|
|
75
65
|
};
|
|
76
|
-
}, $unset: any
|
|
77
|
-
/**
|
|
78
|
-
* 施設ID
|
|
79
|
-
*/
|
|
80
|
-
id: string;
|
|
81
|
-
typeOf: factory.placeType.MovieTheater;
|
|
82
|
-
} | {
|
|
66
|
+
}, $unset: any): Promise<{
|
|
83
67
|
containedInPlace: {
|
|
84
68
|
/**
|
|
85
69
|
* 施設ID
|
|
@@ -108,13 +92,7 @@ export declare class MongoRepository {
|
|
|
108
92
|
*/
|
|
109
93
|
branchCode: string;
|
|
110
94
|
};
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* 施設ID
|
|
114
|
-
*/
|
|
115
|
-
id: string;
|
|
116
|
-
typeOf: factory.placeType.MovieTheater;
|
|
117
|
-
} | {
|
|
95
|
+
}): Promise<{
|
|
118
96
|
containedInPlace: {
|
|
119
97
|
/**
|
|
120
98
|
* 施設ID
|
|
@@ -134,13 +112,7 @@ export declare class MongoRepository {
|
|
|
134
112
|
id: string;
|
|
135
113
|
};
|
|
136
114
|
}): Promise<void>;
|
|
137
|
-
createScreeningRoomSection(screeningRoomSection: IScreeningRoomSectionWithoutContainsPlace
|
|
138
|
-
/**
|
|
139
|
-
* 施設ID
|
|
140
|
-
*/
|
|
141
|
-
id: string;
|
|
142
|
-
typeOf: factory.placeType.MovieTheater;
|
|
143
|
-
} | {
|
|
115
|
+
createScreeningRoomSection(screeningRoomSection: IScreeningRoomSectionWithoutContainsPlace): Promise<{
|
|
144
116
|
containedInPlace: {
|
|
145
117
|
/**
|
|
146
118
|
* 施設ID
|
|
@@ -156,13 +128,7 @@ export declare class MongoRepository {
|
|
|
156
128
|
branchCode: string;
|
|
157
129
|
};
|
|
158
130
|
};
|
|
159
|
-
}, $unset: any
|
|
160
|
-
/**
|
|
161
|
-
* 施設ID
|
|
162
|
-
*/
|
|
163
|
-
id: string;
|
|
164
|
-
typeOf: factory.placeType.MovieTheater;
|
|
165
|
-
} | {
|
|
131
|
+
}, $unset: any): Promise<{
|
|
166
132
|
containedInPlace: {
|
|
167
133
|
/**
|
|
168
134
|
* 施設ID
|
|
@@ -175,7 +141,7 @@ export declare class MongoRepository {
|
|
|
175
141
|
$projection?: {
|
|
176
142
|
[key: string]: number;
|
|
177
143
|
};
|
|
178
|
-
}
|
|
144
|
+
}): Promise<IScreeningRoomSectionWithoutContainsPlace[]>;
|
|
179
145
|
deleteScreeningRoomSection(screeningRoomSection: {
|
|
180
146
|
project: {
|
|
181
147
|
id: string;
|
|
@@ -196,13 +162,7 @@ export declare class MongoRepository {
|
|
|
196
162
|
branchCode: string;
|
|
197
163
|
};
|
|
198
164
|
};
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* 施設ID
|
|
202
|
-
*/
|
|
203
|
-
id: string;
|
|
204
|
-
typeOf: factory.placeType.MovieTheater;
|
|
205
|
-
} | {
|
|
165
|
+
}): Promise<{
|
|
206
166
|
containedInPlace: {
|
|
207
167
|
/**
|
|
208
168
|
* 施設ID
|
|
@@ -211,7 +171,7 @@ export declare class MongoRepository {
|
|
|
211
171
|
};
|
|
212
172
|
typeOf: factory.placeType.ScreeningRoom;
|
|
213
173
|
}>;
|
|
214
|
-
searchScreeningRooms(searchConditions: factory.place.screeningRoom.ISearchConditions
|
|
174
|
+
searchScreeningRooms(searchConditions: factory.place.screeningRoom.ISearchConditions): Promise<Omit<factory.place.screeningRoom.IPlace, 'containsPlace'>[]>;
|
|
215
175
|
findScreeningRoomsByBranchCode(params: {
|
|
216
176
|
branchCode: {
|
|
217
177
|
$eq: string;
|
|
@@ -221,15 +181,8 @@ export declare class MongoRepository {
|
|
|
221
181
|
$eq: string;
|
|
222
182
|
};
|
|
223
183
|
};
|
|
224
|
-
useScreeningRoomType: boolean;
|
|
225
184
|
}): Promise<IScreeningRoomFoundByBranchCode>;
|
|
226
|
-
createSeat(seat: factory.place.seat.IPlace
|
|
227
|
-
/**
|
|
228
|
-
* 施設ID
|
|
229
|
-
*/
|
|
230
|
-
id: string;
|
|
231
|
-
typeOf: factory.placeType.MovieTheater;
|
|
232
|
-
} | {
|
|
185
|
+
createSeat(seat: factory.place.seat.IPlace): Promise<{
|
|
233
186
|
containedInPlace: {
|
|
234
187
|
/**
|
|
235
188
|
* 施設ID
|
|
@@ -248,13 +201,7 @@ export declare class MongoRepository {
|
|
|
248
201
|
};
|
|
249
202
|
};
|
|
250
203
|
};
|
|
251
|
-
}, $unset: any
|
|
252
|
-
/**
|
|
253
|
-
* 施設ID
|
|
254
|
-
*/
|
|
255
|
-
id: string;
|
|
256
|
-
typeOf: factory.placeType.MovieTheater;
|
|
257
|
-
} | {
|
|
204
|
+
}, $unset: any): Promise<{
|
|
258
205
|
containedInPlace: {
|
|
259
206
|
/**
|
|
260
207
|
* 施設ID
|
|
@@ -263,7 +210,7 @@ export declare class MongoRepository {
|
|
|
263
210
|
};
|
|
264
211
|
typeOf: factory.placeType.ScreeningRoom;
|
|
265
212
|
}>;
|
|
266
|
-
searchSeats(params: factory.place.seat.ISearchConditions
|
|
213
|
+
searchSeats(params: factory.place.seat.ISearchConditions): Promise<factory.place.seat.IPlace[]>;
|
|
267
214
|
deleteSeat(seat: {
|
|
268
215
|
project: {
|
|
269
216
|
id: string;
|
|
@@ -290,13 +237,7 @@ export declare class MongoRepository {
|
|
|
290
237
|
};
|
|
291
238
|
};
|
|
292
239
|
};
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* 施設ID
|
|
296
|
-
*/
|
|
297
|
-
id: string;
|
|
298
|
-
typeOf: factory.placeType.MovieTheater;
|
|
299
|
-
} | {
|
|
240
|
+
}): Promise<{
|
|
300
241
|
containedInPlace: {
|
|
301
242
|
/**
|
|
302
243
|
* 施設ID
|
|
@@ -305,7 +246,7 @@ export declare class MongoRepository {
|
|
|
305
246
|
};
|
|
306
247
|
typeOf: factory.placeType.ScreeningRoom;
|
|
307
248
|
}>;
|
|
308
|
-
syncScreeningRooms(
|
|
249
|
+
syncScreeningRooms(__: {
|
|
309
250
|
/**
|
|
310
251
|
* 施設ID
|
|
311
252
|
*/
|
|
@@ -314,7 +255,6 @@ export declare class MongoRepository {
|
|
|
314
255
|
* 特定のルームのみ同期する場合、ルームコードを指定する
|
|
315
256
|
*/
|
|
316
257
|
screeningRoomBranchCode?: string;
|
|
317
|
-
useScreeningRoomType: boolean;
|
|
318
258
|
}): Promise<void>;
|
|
319
259
|
unsetContainsPlaceFromMovieTheater(params: {
|
|
320
260
|
/**
|