@chevre/domain 24.0.0-alpha.42 → 24.0.0-alpha.43
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.
|
@@ -127,9 +127,14 @@ function createIssuedThrough(params) {
|
|
|
127
127
|
}
|
|
128
128
|
: undefined;
|
|
129
129
|
const availableChannel = eventOffers.itemOffered.availableChannel;
|
|
130
|
-
|
|
130
|
+
// itemOffered.availableChannel: optional(20226-03-24~)
|
|
131
|
+
// if (availableChannel === undefined) {
|
|
132
|
+
// // availableChannelは必ず存在するはず
|
|
133
|
+
// throw new factory.errors.NotFound('reservationFor.offers.availableChannel');
|
|
134
|
+
// }
|
|
135
|
+
if (typeof eventOffers.itemOffered.id !== 'string') {
|
|
131
136
|
// availableChannelは必ず存在するはず
|
|
132
|
-
throw new factory.errors.NotFound('reservationFor.offers.
|
|
137
|
+
throw new factory.errors.NotFound('reservationFor.offers.itemOffered.id');
|
|
133
138
|
}
|
|
134
139
|
if (params.reservationFor.typeOf === factory.eventType.ScreeningEvent) {
|
|
135
140
|
const issuedThrough = {
|
|
@@ -244,8 +244,10 @@ function searchEventSeatOffers(params) {
|
|
|
244
244
|
const eventOffers = params.event.offers;
|
|
245
245
|
const reservedSeatsAvailable = eventOffers?.itemOffered.serviceOutput?.reservedTicket?.ticketedSeat !== undefined;
|
|
246
246
|
if (reservedSeatsAvailable) {
|
|
247
|
-
const roomBranchCode = String(eventOffers.itemOffered?.availableChannel?.serviceLocation.branchCode);
|
|
248
|
-
const movieTheaterBranchCode = String(eventOffers.itemOffered?.availableChannel?.serviceLocation.containedInPlace.branchCode);
|
|
247
|
+
// const roomBranchCode = String(eventOffers.itemOffered?.availableChannel?.serviceLocation.branchCode);
|
|
248
|
+
// const movieTheaterBranchCode = String(eventOffers.itemOffered?.availableChannel?.serviceLocation.containedInPlace.branchCode);
|
|
249
|
+
const roomBranchCode = params.event.location.branchCode;
|
|
250
|
+
const movieTheaterBranchCode = params.event.superEvent.location.branchCode;
|
|
249
251
|
// reimplement using projectSeatsByScreeningRoom
|
|
250
252
|
const seats = await repos.seat.projectSeatsByScreeningRoom({
|
|
251
253
|
project: { id: { $eq: params.event.project.id } },
|
|
@@ -45,13 +45,15 @@ function searchEventSeatOffersWithPaging(params) {
|
|
|
45
45
|
const { includeSectionCodeOnlyFirstElement, useDefaultSection } = params.options;
|
|
46
46
|
let offers = [];
|
|
47
47
|
// optimize(2024-07-18~)
|
|
48
|
-
const event = await repos.event.projectEventFieldsById({ id: params.event.id }, ['project', 'startDate', 'offers.itemOffered', 'organizer']);
|
|
48
|
+
const event = await repos.event.projectEventFieldsById({ id: params.event.id }, ['project', 'startDate', 'offers.itemOffered', 'organizer', 'location', 'superEvent']);
|
|
49
49
|
// 座席指定利用可能かどうか
|
|
50
50
|
const eventOffers = event.offers;
|
|
51
51
|
const reservedSeatsAvailable = eventOffers?.itemOffered.serviceOutput?.reservedTicket?.ticketedSeat !== undefined;
|
|
52
52
|
if (reservedSeatsAvailable) {
|
|
53
|
-
const roomBranchCode = String(eventOffers.itemOffered?.availableChannel?.serviceLocation.branchCode);
|
|
54
|
-
const movieTheaterBranchCode = String(eventOffers.itemOffered?.availableChannel?.serviceLocation.containedInPlace.branchCode);
|
|
53
|
+
// const roomBranchCode = String(eventOffers.itemOffered?.availableChannel?.serviceLocation.branchCode);
|
|
54
|
+
// const movieTheaterBranchCode = String(eventOffers.itemOffered?.availableChannel?.serviceLocation.containedInPlace.branchCode);
|
|
55
|
+
const roomBranchCode = event.location.branchCode;
|
|
56
|
+
const movieTheaterBranchCode = event.superEvent.location.branchCode;
|
|
55
57
|
let defaultSectionCode;
|
|
56
58
|
if (useDefaultSection) {
|
|
57
59
|
const defaultSection = (await repos.section.findSectionsByRoom({
|
|
@@ -159,7 +161,7 @@ function findEventSeatOffersBySection(params) {
|
|
|
159
161
|
organizer: { id: { $eq: sellerId } },
|
|
160
162
|
id: { $eq: eventId },
|
|
161
163
|
typeOf: factory.eventType.ScreeningEvent
|
|
162
|
-
}, ['startDate', 'offers.itemOffered'])).shift();
|
|
164
|
+
}, ['startDate', 'offers.itemOffered', 'location', 'superEvent'])).shift();
|
|
163
165
|
if (event === undefined) {
|
|
164
166
|
throw new factory.errors.NotFound(factory.eventType.ScreeningEvent);
|
|
165
167
|
}
|
|
@@ -167,8 +169,10 @@ function findEventSeatOffersBySection(params) {
|
|
|
167
169
|
const eventOffers = event.offers;
|
|
168
170
|
const reservedSeatsAvailable = eventOffers?.itemOffered.serviceOutput?.reservedTicket?.ticketedSeat !== undefined;
|
|
169
171
|
if (reservedSeatsAvailable) {
|
|
170
|
-
const roomBranchCode = String(eventOffers.itemOffered?.availableChannel?.serviceLocation.branchCode);
|
|
171
|
-
const movieTheaterBranchCode = String(eventOffers.itemOffered?.availableChannel?.serviceLocation.containedInPlace.branchCode);
|
|
172
|
+
// const roomBranchCode = String(eventOffers.itemOffered?.availableChannel?.serviceLocation.branchCode);
|
|
173
|
+
// const movieTheaterBranchCode = String(eventOffers.itemOffered?.availableChannel?.serviceLocation.containedInPlace.branchCode);
|
|
174
|
+
const roomBranchCode = event.location.branchCode;
|
|
175
|
+
const movieTheaterBranchCode = event.superEvent.location.branchCode;
|
|
172
176
|
const seats = await repos.seat.projectSeatsByScreeningRoom({
|
|
173
177
|
limit,
|
|
174
178
|
page,
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/client-cognito-identity-provider": "3.600.0",
|
|
13
13
|
"@aws-sdk/credential-providers": "3.600.0",
|
|
14
|
-
"@chevre/factory": "6.0.0-alpha.
|
|
14
|
+
"@chevre/factory": "6.0.0-alpha.5",
|
|
15
15
|
"@cinerino/sdk": "13.2.0",
|
|
16
16
|
"@motionpicture/coa-service": "9.6.0",
|
|
17
17
|
"@motionpicture/gmo-service": "5.4.0-alpha.1",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"postversion": "git push origin --tags",
|
|
100
100
|
"prepublishOnly": "npm run clean && npm run build"
|
|
101
101
|
},
|
|
102
|
-
"version": "24.0.0-alpha.
|
|
102
|
+
"version": "24.0.0-alpha.43"
|
|
103
103
|
}
|