@chevre/domain 23.1.0-alpha.33 → 23.1.0-alpha.34

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.
@@ -19,6 +19,7 @@ async function main() {
19
19
  limit: 100,
20
20
  page: 10,
21
21
  projectId: String(PROJECT_ID),
22
+ sellerId: '59d20831e53ebc2b4e774466',
22
23
  eventId: '693622f7876e9977c32ae270',
23
24
  /**
24
25
  * セクションコード
@@ -68,6 +68,7 @@ export declare function findEventSeatOffersBySection(params: {
68
68
  limit: number;
69
69
  page: number;
70
70
  projectId: string;
71
+ sellerId: string;
71
72
  eventId: string;
72
73
  /**
73
74
  * セクションコード
@@ -136,10 +136,19 @@ function searchEventSeatOffersWithPaging(params) {
136
136
  function findEventSeatOffersBySection(params) {
137
137
  return (repos) => __awaiter(this, void 0, void 0, function* () {
138
138
  var _a, _b, _c, _d, _e, _f;
139
- const { limit, page, projectId, eventId, sectionCode } = params;
139
+ const { limit, page, projectId, sellerId, eventId, sectionCode } = params;
140
140
  let offers = [];
141
- // optimize(2024-07-18~)
142
- const event = yield repos.event.projectEventFieldsById({ id: eventId }, ['startDate', 'offers.itemOffered']);
141
+ const event = (yield repos.event.projectEventFields({
142
+ limit: 1,
143
+ page: 1,
144
+ project: { id: { $eq: projectId } },
145
+ organizer: { id: { $eq: sellerId } },
146
+ id: { $eq: eventId },
147
+ typeOf: factory.eventType.ScreeningEvent
148
+ }, ['startDate', 'offers.itemOffered'])).shift();
149
+ if (event === undefined) {
150
+ throw new factory.errors.NotFound(factory.eventType.ScreeningEvent);
151
+ }
143
152
  // 座席指定利用可能かどうか
144
153
  const eventOffers = event.offers;
145
154
  const reservedSeatsAvailable = ((_b = (_a = eventOffers === null || eventOffers === void 0 ? void 0 : eventOffers.itemOffered.serviceOutput) === null || _a === void 0 ? void 0 : _a.reservedTicket) === null || _b === void 0 ? void 0 : _b.ticketedSeat) !== undefined;
package/package.json CHANGED
@@ -115,5 +115,5 @@
115
115
  "postversion": "git push origin --tags",
116
116
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
117
117
  },
118
- "version": "23.1.0-alpha.33"
118
+ "version": "23.1.0-alpha.34"
119
119
  }