@chevre/domain 20.4.0-alpha.27 → 20.4.0-alpha.28
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.
|
@@ -118,27 +118,12 @@ function addReservations(params) {
|
|
|
118
118
|
// 対応アプリケーション条件追加(2023-01-27~)
|
|
119
119
|
store: { id: (_a = params.availableAtOrFrom) === null || _a === void 0 ? void 0 : _a.id },
|
|
120
120
|
onlyValid: true,
|
|
121
|
-
sort: false,
|
|
122
121
|
addSortIndex: false,
|
|
123
122
|
validateOfferRateLimit: true
|
|
124
123
|
})(repos);
|
|
125
124
|
ticketOffers = searchEventTicketOffersResult.ticketOffers;
|
|
126
125
|
availableOffers = searchEventTicketOffersResult.unitPriceOffers;
|
|
127
126
|
}
|
|
128
|
-
// 冗長なfindOffersByOfferCatalogId処理を削除(2023-01-26~)
|
|
129
|
-
// let availableOffers: factory.unitPriceOffer.IUnitPriceOffer[] = [];
|
|
130
|
-
// // 興行設定があれば興行のカタログを参照する(2022-08-31~)
|
|
131
|
-
// const eventOffers = <factory.event.screeningEvent.IOffer | undefined>event.offers;
|
|
132
|
-
// if (typeof eventOffers?.itemOffered?.id === 'string') {
|
|
133
|
-
// const eventService = <factory.product.IProduct>await repos.product.findById({ id: eventOffers.itemOffered.id });
|
|
134
|
-
// if (typeof eventService.hasOfferCatalog?.id === 'string') {
|
|
135
|
-
// availableOffers = await repos.offer.findOffersByOfferCatalogId({
|
|
136
|
-
// offerCatalog: { id: eventService.hasOfferCatalog.id }
|
|
137
|
-
// });
|
|
138
|
-
// }
|
|
139
|
-
// } else {
|
|
140
|
-
// throw new factory.errors.NotFound('event.offers.itemOffered.id');
|
|
141
|
-
// }
|
|
142
127
|
const availableSeatOffers = yield searchAvailableSeatOffers({ acceptedOffers, event: { id: event.id } })(repos);
|
|
143
128
|
// 仮予約作成
|
|
144
129
|
const { acceptedOffers4transactionObject, objectSubReservations } = yield createAcceptedOffers4transactionObject({
|
|
@@ -26,12 +26,18 @@ function searchTicketOffersByItemOffered(params) {
|
|
|
26
26
|
if (typeof catalogId !== 'string') {
|
|
27
27
|
throw new factory.errors.NotFound('itemOffered.hasOfferCatalog');
|
|
28
28
|
}
|
|
29
|
-
const findOffersByOfferCatalogIdResult = yield repos.offer.findOffersByOfferCatalogId(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
:
|
|
29
|
+
const findOffersByOfferCatalogIdResult = yield repos.offer.findOffersByOfferCatalogId({
|
|
30
|
+
ids: params.ids,
|
|
31
|
+
offerCatalog: { id: catalogId },
|
|
32
|
+
availableAtOrFrom: { id: (_d = params.store) === null || _d === void 0 ? void 0 : _d.id },
|
|
33
|
+
unacceptedPaymentMethod: params.unacceptedPaymentMethod,
|
|
34
|
+
excludeAppliesToMovieTicket: params.excludeAppliesToMovieTicket,
|
|
35
|
+
onlyValid: params.onlyValid === true,
|
|
36
|
+
// Mongoのpagingを利用するオプション(2023-02-21~)
|
|
37
|
+
limit: params.limit,
|
|
38
|
+
page: params.page,
|
|
39
|
+
sort: false
|
|
40
|
+
});
|
|
35
41
|
const availableOffers = findOffersByOfferCatalogIdResult.offers;
|
|
36
42
|
const sortedOfferIds = findOffersByOfferCatalogIdResult.sortedOfferIds;
|
|
37
43
|
return { availableOffers, sortedOfferIds };
|
|
@@ -63,7 +69,6 @@ function searchEventTicketOffersByEvent(params) {
|
|
|
63
69
|
store: params.store,
|
|
64
70
|
limit: params.limit,
|
|
65
71
|
page: params.page,
|
|
66
|
-
sort: params.sort,
|
|
67
72
|
onlyValid: params.onlyValid,
|
|
68
73
|
unacceptedPaymentMethod,
|
|
69
74
|
excludeAppliesToMovieTicket
|
|
@@ -271,7 +276,6 @@ function searchEventTicketOffers(params) {
|
|
|
271
276
|
store: params.store,
|
|
272
277
|
limit: params.limit,
|
|
273
278
|
page: params.page,
|
|
274
|
-
sort: params.sort,
|
|
275
279
|
addSortIndex: params.addSortIndex,
|
|
276
280
|
validateOfferRateLimit: params.validateOfferRateLimit,
|
|
277
281
|
onlyValid: params.onlyValid === true
|
package/package.json
CHANGED