@chevre/domain 24.1.0-alpha.5 → 24.1.0-alpha.50

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.
Files changed (192) hide show
  1. package/lib/chevre/emailMessageBuilder.js +4 -12
  2. package/lib/chevre/index.d.ts +1 -2
  3. package/lib/chevre/index.js +1 -3
  4. package/lib/chevre/repo/acceptedOffer.d.ts +15 -26
  5. package/lib/chevre/repo/acceptedOffer.js +106 -67
  6. package/lib/chevre/repo/acceptedOfferInReserve.d.ts +30 -0
  7. package/lib/chevre/repo/acceptedOfferInReserve.js +86 -0
  8. package/lib/chevre/repo/accountingReport.js +2 -30
  9. package/lib/chevre/repo/action/actionProcess.d.ts +1 -1
  10. package/lib/chevre/repo/assetTransaction/reserve.d.ts +1 -2
  11. package/lib/chevre/repo/assetTransaction/reserve.js +4 -50
  12. package/lib/chevre/repo/event.js +12 -8
  13. package/lib/chevre/repo/factory/acceptedOffer/reserveTransaction2itemOffered.d.ts +7 -0
  14. package/lib/chevre/repo/factory/acceptedOffer/reserveTransaction2itemOffered.js +74 -0
  15. package/lib/chevre/repo/factory/reservation/createMongoConditions.d.ts +1 -1
  16. package/lib/chevre/repo/factory/reservation/createMongoConditions.js +171 -362
  17. package/lib/chevre/repo/mongoose/schemas/accountingReport.js +42 -42
  18. package/lib/chevre/repo/mongoose/schemas/order.js +108 -108
  19. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +3 -1
  20. package/lib/chevre/repo/mongoose/schemas/reservation.js +128 -146
  21. package/lib/chevre/repo/mongoose/schemas/setting.d.ts +84 -0
  22. package/lib/chevre/repo/mongoose/schemas/setting.js +2 -1
  23. package/lib/chevre/repo/order.d.ts +2 -83
  24. package/lib/chevre/repo/order.js +10 -373
  25. package/lib/chevre/repo/orderInTransaction.d.ts +56 -6
  26. package/lib/chevre/repo/orderInTransaction.js +58 -4
  27. package/lib/chevre/repo/place/hasPOS.js +2 -1
  28. package/lib/chevre/repo/reservation.d.ts +20 -7
  29. package/lib/chevre/repo/reservation.js +16 -12
  30. package/lib/chevre/repo/role.d.ts +1 -15
  31. package/lib/chevre/repo/role.js +7 -14
  32. package/lib/chevre/repo/setting/integration.d.ts +27 -0
  33. package/lib/chevre/repo/setting/integration.js +102 -0
  34. package/lib/chevre/repo/transaction.d.ts +6 -6
  35. package/lib/chevre/repository.d.ts +5 -0
  36. package/lib/chevre/repository.js +11 -0
  37. package/lib/chevre/service/aggregation/event/aggregateOffers.js +6 -1
  38. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +0 -1
  39. package/lib/chevre/service/assetTransaction/cancelReservation/factory.js +14 -11
  40. package/lib/chevre/service/assetTransaction/cancelReservation/start.d.ts +1 -1
  41. package/lib/chevre/service/assetTransaction/cancelReservation/start.js +1 -1
  42. package/lib/chevre/service/assetTransaction/pay/check.d.ts +1 -1
  43. package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.d.ts +1 -1
  44. package/lib/chevre/service/assetTransaction/pay/searchGMOTrade.d.ts +1 -1
  45. package/lib/chevre/service/assetTransaction/pay/start/processAuthorize.d.ts +1 -1
  46. package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeCreditCard.d.ts +1 -1
  47. package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeMovieTicket.d.ts +1 -1
  48. package/lib/chevre/service/assetTransaction/pay/start.d.ts +1 -1
  49. package/lib/chevre/service/assetTransaction/reserve/cancel.d.ts +1 -1
  50. package/lib/chevre/service/assetTransaction/reserve/confirm.d.ts +1 -1
  51. package/lib/chevre/service/assetTransaction/reserve/start/factory/createReservation.js +0 -12
  52. package/lib/chevre/service/assetTransaction/reserve/start/factory/price.d.ts +1 -1
  53. package/lib/chevre/service/assetTransaction/reserve/start.d.ts +1 -1
  54. package/lib/chevre/service/delivery/factory.d.ts +6 -1
  55. package/lib/chevre/service/delivery/factory.js +1 -1
  56. package/lib/chevre/service/delivery/reservation/factory.d.ts +1 -3
  57. package/lib/chevre/service/delivery/reservation/factory.js +0 -17
  58. package/lib/chevre/service/notification/notifyAbortedTasksByEmail.d.ts +2 -4
  59. package/lib/chevre/service/notification/notifyAbortedTasksByEmail.js +3 -3
  60. package/lib/chevre/service/notification/notifyByEmail.d.ts +3 -3
  61. package/lib/chevre/service/notification/notifyByEmail.js +7 -12
  62. package/lib/chevre/service/notification/sendEmailMessage.d.ts +2 -3
  63. package/lib/chevre/service/notification/sendEmailMessage.js +5 -4
  64. package/lib/chevre/service/offer/any.d.ts +7 -2
  65. package/lib/chevre/service/offer/event/authorize/factory.d.ts +6 -3
  66. package/lib/chevre/service/offer/event/authorize/factory.js +13 -15
  67. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.d.ts +1 -1
  68. package/lib/chevre/service/offer/event/authorize.d.ts +16 -2
  69. package/lib/chevre/service/offer/event/authorize.js +62 -11
  70. package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4chevre.d.ts +1 -1
  71. package/lib/chevre/service/offer/event/voidTransaction.d.ts +1 -1
  72. package/lib/chevre/service/offer/event/voidTransactionByActionId.d.ts +1 -1
  73. package/lib/chevre/service/offer/eventServiceByCOA/authorize/factory.d.ts +1 -3
  74. package/lib/chevre/service/order/createAccountingReportIfNotExist.d.ts +1 -1
  75. package/lib/chevre/service/order/createAccountingReportIfNotExist.js +15 -15
  76. package/lib/chevre/service/order/deleteOrder.js +19 -43
  77. package/lib/chevre/service/order/onAssetTransactionStatusChanged/onPayTransactionConfirmed.d.ts +1 -1
  78. package/lib/chevre/service/order/onAssetTransactionStatusChanged/onReserveTransactionConfirmed.d.ts +1 -1
  79. package/lib/chevre/service/order/onAssetTransactionStatusChanged/paymentDue2Processing.d.ts +1 -1
  80. package/lib/chevre/service/order/onAssetTransactionStatusChanged/paymentDue2Processing.js +9 -11
  81. package/lib/chevre/service/order/onAssetTransactionStatusChanged/processing2inTransit.d.ts +1 -1
  82. package/lib/chevre/service/order/onAssetTransactionStatusChanged.d.ts +1 -1
  83. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDelivered.js +0 -1
  84. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.d.ts +6 -1
  85. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially.js +0 -1
  86. package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.d.ts +1 -1
  87. package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.js +1 -1
  88. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing.d.ts +1 -1
  89. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing.js +2 -1
  90. package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned.js +0 -1
  91. package/lib/chevre/service/order/onOrderUpdated.js +0 -1
  92. package/lib/chevre/service/order/payOrder.d.ts +1 -1
  93. package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.js +4 -1
  94. package/lib/chevre/service/order/placeOrder/factory/orderedItem.d.ts +1 -1
  95. package/lib/chevre/service/order/placeOrder/factory/orderedItem.js +0 -5
  96. package/lib/chevre/service/order/placeOrder/factory.d.ts +1 -1
  97. package/lib/chevre/service/order/placeOrder.d.ts +1 -1
  98. package/lib/chevre/service/order/returnOrder.js +0 -1
  99. package/lib/chevre/service/order/sendOrder.js +0 -4
  100. package/lib/chevre/service/payment/any/authorize.d.ts +1 -1
  101. package/lib/chevre/service/payment/any/person2username.js +0 -1
  102. package/lib/chevre/service/payment/any/publishPaymentUrl.d.ts +1 -1
  103. package/lib/chevre/service/payment/creditCard/authorize.d.ts +1 -1
  104. package/lib/chevre/service/payment/creditCard/authorize.js +4 -3
  105. package/lib/chevre/service/payment/creditCard/payCreditCard.d.ts +1 -1
  106. package/lib/chevre/service/payment/creditCard/payCreditCard.js +1 -1
  107. package/lib/chevre/service/payment/creditCard/refundCreditCard.d.ts +1 -1
  108. package/lib/chevre/service/payment/creditCard/refundCreditCard.js +1 -1
  109. package/lib/chevre/service/payment/creditCard/searchGMOTrade.d.ts +1 -1
  110. package/lib/chevre/service/payment/creditCard/searchGMOTrade.js +1 -1
  111. package/lib/chevre/service/payment/creditCard/voidTransaction.d.ts +1 -1
  112. package/lib/chevre/service/payment/creditCard/voidTransaction.js +1 -1
  113. package/lib/chevre/service/payment/factory/createPayObjectServiceOutput.d.ts +8 -1
  114. package/lib/chevre/service/payment/factory/createPayObjectServiceOutput.js +1 -1
  115. package/lib/chevre/service/payment/movieTicket/authorize.d.ts +1 -1
  116. package/lib/chevre/service/payment/movieTicket/checkMovieTicket.d.ts +1 -1
  117. package/lib/chevre/service/payment/movieTicket/payMovieTicket.d.ts +1 -1
  118. package/lib/chevre/service/payment/movieTicket/payMovieTicket.js +1 -1
  119. package/lib/chevre/service/payment/movieTicket/processPurchaseNumberAuth.d.ts +1 -1
  120. package/lib/chevre/service/payment/movieTicket/processPurchaseNumberAuth.js +1 -1
  121. package/lib/chevre/service/payment/movieTicket/refundMovieTicket.d.ts +1 -1
  122. package/lib/chevre/service/payment/movieTicket/refundMovieTicket.js +2 -2
  123. package/lib/chevre/service/payment/movieTicket/voidTransaction.d.ts +1 -1
  124. package/lib/chevre/service/reserve/confirmReservation.js +7 -7
  125. package/lib/chevre/service/reserve/factory.js +2 -1
  126. package/lib/chevre/service/reserve/findByCode.d.ts +1 -1
  127. package/lib/chevre/service/reserve/findByCode.js +1 -1
  128. package/lib/chevre/service/reserve/findReservations.d.ts +14 -6
  129. package/lib/chevre/service/reserve/findReservations.js +26 -36
  130. package/lib/chevre/service/reserve/potentialActions/onPendingReservationCanceled.js +0 -1
  131. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.js +0 -1
  132. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +4 -3
  133. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.js +1 -10
  134. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.js +0 -1
  135. package/lib/chevre/service/reserve/potentialActions/onReservationsCreated.js +0 -1
  136. package/lib/chevre/service/reserve/searchByOrder.js +7 -3
  137. package/lib/chevre/service/task/acceptCOAOffer.js +6 -3
  138. package/lib/chevre/service/task/authorizePayment.js +4 -2
  139. package/lib/chevre/service/task/cancelPendingReservation.js +4 -2
  140. package/lib/chevre/service/task/checkMovieTicket.js +4 -2
  141. package/lib/chevre/service/task/confirmReserveTransaction.d.ts +1 -1
  142. package/lib/chevre/service/task/confirmReserveTransaction.js +5 -3
  143. package/lib/chevre/service/task/createAccountingReport.js +4 -8
  144. package/lib/chevre/service/task/importEventCapacitiesFromCOA.js +4 -2
  145. package/lib/chevre/service/task/importEventsFromCOA.js +4 -2
  146. package/lib/chevre/service/task/importOffersFromCOA.js +4 -2
  147. package/lib/chevre/service/task/invalidatePaymentUrl.js +3 -1
  148. package/lib/chevre/service/task/onAssetTransactionStatusChanged.js +3 -1
  149. package/lib/chevre/service/task/onOrderPaymentCompleted.js +3 -1
  150. package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.js +0 -1
  151. package/lib/chevre/service/task/pay.js +4 -2
  152. package/lib/chevre/service/task/payment/invalidatePaymentUrlByTask.d.ts +1 -1
  153. package/lib/chevre/service/task/payment/payByTask.d.ts +1 -1
  154. package/lib/chevre/service/task/payment/payByTask.js +6 -7
  155. package/lib/chevre/service/task/payment/refundByTask.d.ts +1 -1
  156. package/lib/chevre/service/task/payment/voidPaymentByTask.d.ts +1 -1
  157. package/lib/chevre/service/task/placeOrder.js +3 -1
  158. package/lib/chevre/service/task/publishPaymentUrl.js +3 -1
  159. package/lib/chevre/service/task/refund.js +4 -2
  160. package/lib/chevre/service/task/returnReserveTransaction.js +4 -2
  161. package/lib/chevre/service/task/sendEmailMessage.js +5 -3
  162. package/lib/chevre/service/task/syncResourcesFromCOA.js +4 -2
  163. package/lib/chevre/service/task/voidPayment.js +4 -2
  164. package/lib/chevre/service/task/voidReserveTransaction.js +4 -2
  165. package/lib/chevre/service/task.d.ts +0 -7
  166. package/lib/chevre/service/taskHandler.js +1 -0
  167. package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions/sendEmailMessage.js +0 -1
  168. package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions.js +0 -1
  169. package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateInvoiceReferencesOrder.d.ts +1 -1
  170. package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateMovieTicket.d.ts +1 -1
  171. package/lib/chevre/service/transaction/placeOrder/confirm/validation.d.ts +2 -2
  172. package/lib/chevre/service/transaction/placeOrder/confirm.js +5 -3
  173. package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +0 -1
  174. package/lib/chevre/service/transaction/placeOrder/updateAgent.js +0 -1
  175. package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +0 -1
  176. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +0 -1
  177. package/lib/chevre/service/transaction/returnOrder/potentialActions.js +0 -1
  178. package/lib/chevre/service/transaction/returnOrder/preStart.js +0 -3
  179. package/lib/chevre/service/validation/validateOrder.js +3 -78
  180. package/lib/chevre/settings.d.ts +0 -55
  181. package/lib/chevre/settings.js +1 -29
  182. package/lib/chevre/taskSettings.d.ts +0 -22
  183. package/lib/chevre/taskSettings.js +1 -7
  184. package/package.json +2 -2
  185. package/lib/chevre/credentials/customSearch.d.ts +0 -13
  186. package/lib/chevre/credentials/customSearch.js +0 -16
  187. package/lib/chevre/credentials/lineNotify.d.ts +0 -17
  188. package/lib/chevre/credentials/lineNotify.js +0 -20
  189. package/lib/chevre/credentials/sendGrid.d.ts +0 -24
  190. package/lib/chevre/credentials/sendGrid.js +0 -18
  191. package/lib/chevre/credentials.d.ts +0 -20
  192. package/lib/chevre/credentials.js +0 -42
@@ -12,54 +12,6 @@ class ReserveTransactionRepo {
12
12
  constructor(connection) {
13
13
  this.transactionModel = connection.model(assetTransaction_1.modelName, (0, assetTransaction_1.createSchema)());
14
14
  }
15
- // /**
16
- // * 予約取引から予約を検索する
17
- // */
18
- // public async findSubReservationsByReservationNumber(
19
- // params: {
20
- // reservationNumber: string;
21
- // }
22
- // ): Promise<ISubReservationAsFindResult[]> {
23
- // const aggregate = this.transactionModel.aggregate<ISubReservationAsFindResult>([
24
- // {
25
- // $match: {
26
- // typeOf: { $eq: factory.assetTransactionType.Reserve },
27
- // transactionNumber: { $eq: params.reservationNumber }
28
- // }
29
- // },
30
- // {
31
- // $unwind: {
32
- // path: '$object.subReservation'
33
- // // includeArrayIndex: 'elementIndex'
34
- // }
35
- // },
36
- // // {
37
- // // $match: {
38
- // // typeOf: { $eq: factory.assetTransactionType.Reserve },
39
- // // transactionNumber: { $eq: params.reservationNumber }
40
- // // }
41
- // // },
42
- // {
43
- // $project: {
44
- // _id: 0,
45
- // id: '$object.subReservation.id',
46
- // price: '$object.subReservation.price',
47
- // underName: '$object.underName',
48
- // reservedTicket: {
49
- // ticketType: '$object.subReservation.reservedTicket.ticketType',
50
- // }
51
- // }
52
- // }
53
- // ]);
54
- // // if (typeof filter.limit === 'number' && filter.limit > 0) {
55
- // // const page: number = (typeof filter.page === 'number' && filter.page > 0) ? filter.page : 1;
56
- // // aggregate.limit(filter.limit * page)
57
- // // .skip(filter.limit * (page - 1));
58
- // // }
59
- // return aggregate
60
- // .option({ maxTimeMS: MONGO_MAX_TIME_MS })
61
- // .exec();
62
- // }
63
15
  /**
64
16
  * 予約取引から予約を検索する
65
17
  * limitはしない
@@ -91,12 +43,14 @@ class ReserveTransactionRepo {
91
43
  $project: {
92
44
  _id: 0,
93
45
  id: '$object.subReservation.id',
94
- price: '$object.subReservation.price',
95
46
  underName: '$object.underName',
96
47
  reservationFor: '$object.reservationFor',
97
48
  reservedTicket: {
98
49
  ticketType: '$object.subReservation.reservedTicket.ticketType',
99
- }
50
+ },
51
+ // numSeats: '$object.subReservation.numSeats',
52
+ // price: '$object.subReservation.price',
53
+ // issuedThrough: '$object.issuedThrough',
100
54
  }
101
55
  }
102
56
  ]);
@@ -798,22 +798,26 @@ class EventRepo {
798
798
  .sort({ startDate: factory_1.factory.sortType.Descending })
799
799
  .cursor();
800
800
  }
801
- // public async addAvailableAtOrFrom(params: {
801
+ // /**
802
+ // * アプリケーションオファー廃止用のメソッド
803
+ // */
804
+ // public async removeAvailableAtOrFrom(params: {
802
805
  // id: string;
803
806
  // offers: {
804
807
  // seller: {
805
- // makesOffer: factory.event.screeningEvent.ISellerMakesOffer;
808
+ // makesOffer: Pick<factory.event.screeningEvent.ISellerMakesOffer, 'availableAtOrFrom'>;
806
809
  // };
807
810
  // };
808
- // }): Promise<void> {
809
- // await this.eventModel.updateOne(
811
+ // }) {
812
+ // return this.eventModel.updateOne(
810
813
  // { _id: { $eq: params.id } },
811
814
  // {
812
- // $push: {
813
- // 'offers.seller.makesOffer': params.offers.seller.makesOffer
815
+ // $pull: {
816
+ // 'offers.seller.makesOffer': {
817
+ // 'availableAtOrFrom.id': { $eq: params.offers.seller.makesOffer.availableAtOrFrom.id }
818
+ // }
814
819
  // }
815
- // },
816
- // { includeResultMetadata: true }
820
+ // }
817
821
  // )
818
822
  // .exec();
819
823
  // }
@@ -0,0 +1,7 @@
1
+ import { factory } from '../../../factory';
2
+ type IAcceptedOfferByReserveTransaction = Pick<factory.order.IOptimizedAcceptedOffer, 'itemOffered' | 'priceSpecification'>;
3
+ /**
4
+ * 予約取引を注文のitemOfferedへ変換する
5
+ */
6
+ declare function reserveTransaction2itemOffered(params: Pick<factory.assetTransaction.reserve.ITransaction, 'object'>): IAcceptedOfferByReserveTransaction[];
7
+ export { IAcceptedOfferByReserveTransaction, reserveTransaction2itemOffered };
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reserveTransaction2itemOffered = reserveTransaction2itemOffered;
4
+ function createReservationFor(reservationFor) {
5
+ const { superEvent, ...reservationForWithoutSuperEvent } = reservationFor;
6
+ const { workPerformed, ...superEventWithoutMovie } = superEvent;
7
+ const workPerformedInOrder = {
8
+ typeOf: workPerformed.typeOf,
9
+ id: workPerformed.id,
10
+ identifier: workPerformed.identifier,
11
+ name: workPerformed.name,
12
+ ...((typeof workPerformed.duration === 'string') && { duration: workPerformed.duration })
13
+ };
14
+ const superEventInOrder = {
15
+ ...superEventWithoutMovie,
16
+ workPerformed: workPerformedInOrder
17
+ };
18
+ return {
19
+ ...reservationForWithoutSuperEvent,
20
+ superEvent: superEventInOrder
21
+ };
22
+ }
23
+ function createReservedTicket(reservedTicket) {
24
+ const { issuedBy: _issuedBy, dateIssued: _dateIssued, dateUsed: _dateUsed, ticketToken: _ticketToken, ticketType, ticketNumber: _ticketNumber, ...reservedTicket4order } = reservedTicket;
25
+ const ticketTypeInOrder = {
26
+ typeOf: ticketType.typeOf,
27
+ id: ticketType.id,
28
+ identifier: ticketType.identifier,
29
+ name: ticketType.name,
30
+ ...((ticketType.description !== undefined) && { description: ticketType.description }),
31
+ ...((ticketType.additionalProperty !== undefined) && { additionalProperty: ticketType.additionalProperty }),
32
+ };
33
+ return {
34
+ ...reservedTicket4order,
35
+ ticketType: ticketTypeInOrder
36
+ };
37
+ }
38
+ /**
39
+ * 予約取引を注文のitemOfferedへ変換する
40
+ */
41
+ function reserveTransaction2itemOffered(params) {
42
+ const { object } = params;
43
+ // subReservationは配列のはず
44
+ if (!Array.isArray(object.subReservation)) {
45
+ return [];
46
+ }
47
+ // reservationForは存在するはず
48
+ if (object.reservationFor === undefined) {
49
+ return [];
50
+ }
51
+ const { reservationNumber, issuedThrough } = object;
52
+ // イベントを注文用に生成
53
+ const reservationFor = createReservationFor(object.reservationFor);
54
+ return object.subReservation.map((subReservationReserveTransaction) => {
55
+ const { additionalProperty, additionalTicketText, id, programMembershipUsed, typeOf, price } = subReservationReserveTransaction;
56
+ // チケットを注文用に生成
57
+ const reservedTicket = createReservedTicket(subReservationReserveTransaction.reservedTicket);
58
+ const reservationByReserveTransaction = {
59
+ additionalProperty,
60
+ id,
61
+ typeOf,
62
+ reservedTicket,
63
+ reservationNumber,
64
+ issuedThrough,
65
+ reservationFor,
66
+ ...((typeof additionalTicketText === 'string') && { additionalTicketText }),
67
+ ...((typeof programMembershipUsed?.identifier === 'string') && { programMembershipUsed }),
68
+ };
69
+ return {
70
+ itemOffered: reservationByReserveTransaction,
71
+ ...((price !== undefined) && { priceSpecification: price })
72
+ };
73
+ });
74
+ }
@@ -1,3 +1,3 @@
1
1
  import type { FilterQuery } from 'mongoose';
2
2
  import { factory } from '../../../factory';
3
- export declare function CREATE_MONGO_CONDITIONS(params: factory.reservation.eventReservation.ISearchConditions): FilterQuery<import("@chevre/factory/lib/chevre/reservation/event").IReservation>[];
3
+ export declare function createMongoConditions(params: factory.reservation.eventReservation.ISearchConditions): FilterQuery<import("@chevre/factory/lib/chevre/reservation/event").IReservation>[];