@chevre/domain 21.0.0-alpha.1 → 21.0.0-alpha.11

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 (263) hide show
  1. package/lib/chevre/errorHandler.d.ts +1 -0
  2. package/lib/chevre/errorHandler.js +6 -2
  3. package/lib/chevre/factory/event.d.ts +1 -1
  4. package/lib/chevre/index.d.ts +1 -2
  5. package/lib/chevre/index.js +1 -3
  6. package/lib/chevre/repo/account.d.ts +0 -2
  7. package/lib/chevre/repo/account.js +10 -6
  8. package/lib/chevre/repo/accountTitle.js +6 -2
  9. package/lib/chevre/repo/accountTransaction.d.ts +0 -2
  10. package/lib/chevre/repo/accountTransaction.js +9 -6
  11. package/lib/chevre/repo/accountingReport.d.ts +1 -1
  12. package/lib/chevre/repo/accountingReport.js +7 -3
  13. package/lib/chevre/repo/action/registerServiceInProgress.js +1 -1
  14. package/lib/chevre/repo/action.d.ts +3 -4
  15. package/lib/chevre/repo/action.js +9 -6
  16. package/lib/chevre/repo/additionalProperty.js +8 -4
  17. package/lib/chevre/repo/aggregation.js +6 -2
  18. package/lib/chevre/repo/assetTransaction.d.ts +1 -2
  19. package/lib/chevre/repo/assetTransaction.js +9 -6
  20. package/lib/chevre/repo/categoryCode.js +8 -4
  21. package/lib/chevre/repo/code.d.ts +3 -3
  22. package/lib/chevre/repo/code.js +10 -5
  23. package/lib/chevre/repo/comment.js +8 -4
  24. package/lib/chevre/repo/confirmationNumber.js +1 -1
  25. package/lib/chevre/repo/creativeWork.d.ts +0 -2
  26. package/lib/chevre/repo/creativeWork.js +9 -6
  27. package/lib/chevre/repo/customer.js +8 -4
  28. package/lib/chevre/repo/emailMessage.d.ts +1 -1
  29. package/lib/chevre/repo/emailMessage.js +8 -4
  30. package/lib/chevre/repo/event.d.ts +1 -1
  31. package/lib/chevre/repo/event.js +8 -4
  32. package/lib/chevre/repo/itemAvailability/screeningEvent.js +1 -1
  33. package/lib/chevre/repo/member.js +16 -9
  34. package/lib/chevre/repo/merchantReturnPolicy.d.ts +0 -2
  35. package/lib/chevre/repo/merchantReturnPolicy.js +9 -6
  36. package/lib/chevre/repo/mongoose/onIndexCreated.d.ts +2 -0
  37. package/lib/chevre/repo/mongoose/onIndexCreated.js +11 -0
  38. package/lib/chevre/repo/mongoose/schemas/account.d.ts +54 -0
  39. package/lib/chevre/repo/mongoose/{model → schemas}/account.js +4 -14
  40. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +64 -0
  41. package/lib/chevre/repo/mongoose/{model → schemas}/accountTitle.js +10 -35
  42. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +67 -0
  43. package/lib/chevre/repo/mongoose/{model → schemas}/accountTransaction.js +9 -19
  44. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +58 -0
  45. package/lib/chevre/repo/mongoose/{model → schemas}/accountingReport.js +7 -17
  46. package/lib/chevre/repo/mongoose/schemas/action.d.ts +73 -0
  47. package/lib/chevre/repo/mongoose/{model → schemas}/action.js +17 -27
  48. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +60 -0
  49. package/lib/chevre/repo/mongoose/{model → schemas}/additionalProperty.js +7 -17
  50. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +54 -0
  51. package/lib/chevre/repo/mongoose/{model → schemas}/aggregation.js +4 -14
  52. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +72 -0
  53. package/lib/chevre/repo/mongoose/{model → schemas}/assetTransaction.js +13 -23
  54. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +61 -0
  55. package/lib/chevre/repo/mongoose/{model → schemas}/authorization.js +6 -16
  56. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +64 -0
  57. package/lib/chevre/repo/mongoose/{model → schemas}/categoryCode.js +9 -19
  58. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +65 -0
  59. package/lib/chevre/repo/mongoose/{model → schemas}/comments.js +9 -19
  60. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +73 -0
  61. package/lib/chevre/repo/mongoose/{model → schemas}/creativeWork.js +10 -20
  62. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +64 -0
  63. package/lib/chevre/repo/mongoose/{model → schemas}/customer.js +8 -18
  64. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +62 -0
  65. package/lib/chevre/repo/mongoose/{model → schemas}/emailMessages.js +8 -18
  66. package/lib/chevre/repo/mongoose/{model → schemas}/event.d.ts +26 -2
  67. package/lib/chevre/repo/mongoose/{model → schemas}/event.js +24 -34
  68. package/lib/chevre/repo/mongoose/schemas/member.d.ts +58 -0
  69. package/lib/chevre/repo/mongoose/{model → schemas}/member.js +6 -16
  70. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +62 -0
  71. package/lib/chevre/repo/mongoose/{model → schemas}/merchantReturnPolicy.js +7 -17
  72. package/lib/chevre/repo/mongoose/schemas/offer.d.ts +83 -0
  73. package/lib/chevre/repo/mongoose/{model → schemas}/offer.js +28 -38
  74. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +64 -0
  75. package/lib/chevre/repo/mongoose/{model → schemas}/offerCatalog.js +11 -21
  76. package/lib/chevre/repo/mongoose/schemas/order.d.ts +77 -0
  77. package/lib/chevre/repo/mongoose/{model → schemas}/order.js +15 -25
  78. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +64 -0
  79. package/lib/chevre/repo/mongoose/{model → schemas}/ownershipInfo.js +9 -19
  80. package/lib/chevre/repo/mongoose/schemas/place.d.ts +76 -0
  81. package/lib/chevre/repo/mongoose/{model → schemas}/place.js +17 -27
  82. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +66 -0
  83. package/lib/chevre/repo/mongoose/{model → schemas}/priceSpecification.js +9 -19
  84. package/lib/chevre/repo/mongoose/schemas/product.d.ts +67 -0
  85. package/lib/chevre/repo/mongoose/{model → schemas}/product.js +14 -24
  86. package/lib/chevre/repo/mongoose/schemas/project.d.ts +63 -0
  87. package/lib/chevre/repo/mongoose/{model → schemas}/project.js +7 -17
  88. package/lib/chevre/repo/mongoose/{model → schemas}/reservation.d.ts +26 -2
  89. package/lib/chevre/repo/mongoose/{model → schemas}/reservation.js +15 -25
  90. package/lib/chevre/repo/mongoose/schemas/role.d.ts +57 -0
  91. package/lib/chevre/repo/mongoose/{model → schemas}/role.js +4 -14
  92. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +67 -0
  93. package/lib/chevre/repo/mongoose/{model → schemas}/seller.js +12 -22
  94. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +57 -0
  95. package/lib/chevre/repo/mongoose/{model → schemas}/serviceOutput.js +5 -15
  96. package/lib/chevre/repo/mongoose/schemas/task.d.ts +65 -0
  97. package/lib/chevre/repo/mongoose/{model → schemas}/task.js +7 -17
  98. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +62 -0
  99. package/lib/chevre/repo/mongoose/{model → schemas}/telemetry.js +9 -19
  100. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +70 -0
  101. package/lib/chevre/repo/mongoose/{model → schemas}/transaction.js +12 -22
  102. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +57 -0
  103. package/lib/chevre/repo/mongoose/{model → schemas}/trip.js +5 -15
  104. package/lib/chevre/repo/mongoose/writeConcern.d.ts +3 -0
  105. package/lib/chevre/repo/mongoose/writeConcern.js +5 -0
  106. package/lib/chevre/repo/offer.js +11 -6
  107. package/lib/chevre/repo/offerCatalog.js +8 -4
  108. package/lib/chevre/repo/order.d.ts +0 -2
  109. package/lib/chevre/repo/order.js +12 -9
  110. package/lib/chevre/repo/orderNumber.js +1 -1
  111. package/lib/chevre/repo/ownershipInfo.d.ts +1 -3
  112. package/lib/chevre/repo/ownershipInfo.js +10 -7
  113. package/lib/chevre/repo/paymentMethod/creditCard.d.ts +3 -3
  114. package/lib/chevre/repo/permit.js +6 -2
  115. package/lib/chevre/repo/person.d.ts +2 -2
  116. package/lib/chevre/repo/place.d.ts +2 -2
  117. package/lib/chevre/repo/place.js +16 -12
  118. package/lib/chevre/repo/priceSpecification.js +8 -4
  119. package/lib/chevre/repo/product.d.ts +1 -1
  120. package/lib/chevre/repo/product.js +8 -4
  121. package/lib/chevre/repo/project.js +7 -3
  122. package/lib/chevre/repo/rateLimit/offer.js +1 -1
  123. package/lib/chevre/repo/reservation.d.ts +1 -1
  124. package/lib/chevre/repo/reservation.js +8 -21
  125. package/lib/chevre/repo/role.js +8 -4
  126. package/lib/chevre/repo/seller.d.ts +1 -1
  127. package/lib/chevre/repo/seller.js +8 -4
  128. package/lib/chevre/repo/serviceOutput.js +8 -4
  129. package/lib/chevre/repo/serviceOutputIdentifier.js +1 -1
  130. package/lib/chevre/repo/task.js +8 -4
  131. package/lib/chevre/repo/telemetry.js +6 -2
  132. package/lib/chevre/repo/transaction.d.ts +1 -2
  133. package/lib/chevre/repo/transaction.js +9 -6
  134. package/lib/chevre/repo/transactionNumber.js +1 -1
  135. package/lib/chevre/repo/trip.d.ts +1 -1
  136. package/lib/chevre/repo/trip.js +8 -4
  137. package/lib/chevre/service/account.d.ts +1 -1
  138. package/lib/chevre/service/accountTransaction/deposit.d.ts +1 -1
  139. package/lib/chevre/service/accountTransaction/deposit.js +0 -5
  140. package/lib/chevre/service/accountTransaction/transfer.d.ts +1 -1
  141. package/lib/chevre/service/accountTransaction/transfer.js +0 -5
  142. package/lib/chevre/service/accountTransaction/withdraw.d.ts +1 -1
  143. package/lib/chevre/service/accountTransaction/withdraw.js +0 -5
  144. package/lib/chevre/service/accountTransaction.d.ts +1 -1
  145. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +1 -1
  146. package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +1 -1
  147. package/lib/chevre/service/aggregation/project.d.ts +1 -1
  148. package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +3 -3
  149. package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
  150. package/lib/chevre/service/assetTransaction/moneyTransfer.js +0 -5
  151. package/lib/chevre/service/assetTransaction/pay/potentialActions.d.ts +1 -1
  152. package/lib/chevre/service/assetTransaction/pay.d.ts +7 -7
  153. package/lib/chevre/service/assetTransaction/refund.d.ts +4 -4
  154. package/lib/chevre/service/assetTransaction/refund.js +0 -5
  155. package/lib/chevre/service/assetTransaction/registerService/factory.d.ts +1 -1
  156. package/lib/chevre/service/assetTransaction/registerService.d.ts +4 -4
  157. package/lib/chevre/service/assetTransaction/registerService.js +0 -5
  158. package/lib/chevre/service/assetTransaction/reserve/factory/price.d.ts +1 -1
  159. package/lib/chevre/service/assetTransaction/reserve/factory.d.ts +2 -2
  160. package/lib/chevre/service/assetTransaction/reserve.d.ts +6 -6
  161. package/lib/chevre/service/assetTransaction/reserve.js +0 -10
  162. package/lib/chevre/service/code.d.ts +2 -2
  163. package/lib/chevre/service/code.js +6 -1
  164. package/lib/chevre/service/delivery/factory.d.ts +1 -1
  165. package/lib/chevre/service/delivery/product/factory.d.ts +1 -1
  166. package/lib/chevre/service/delivery/reservation/factory.d.ts +1 -1
  167. package/lib/chevre/service/iam.d.ts +1 -1
  168. package/lib/chevre/service/moneyTransfer.d.ts +1 -1
  169. package/lib/chevre/service/notification.d.ts +1 -1
  170. package/lib/chevre/service/offer/event/authorize.d.ts +2 -2
  171. package/lib/chevre/service/offer/event/factory.d.ts +5 -5
  172. package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +2 -2
  173. package/lib/chevre/service/offer/eventServiceByCOA/factory.d.ts +2 -2
  174. package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
  175. package/lib/chevre/service/offer/eventServiceByCOA.d.ts +2 -2
  176. package/lib/chevre/service/offer/factory.d.ts +2 -2
  177. package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +1 -1
  178. package/lib/chevre/service/offer/product.d.ts +2 -2
  179. package/lib/chevre/service/order/onOrderStatusChanged/factory.d.ts +1 -1
  180. package/lib/chevre/service/order/onOrderStatusChanged/factory.js +6 -1
  181. package/lib/chevre/service/order/onOrderStatusChanged.d.ts +2 -2
  182. package/lib/chevre/service/order/placeOrder.d.ts +1 -1
  183. package/lib/chevre/service/order/sendOrder.d.ts +1 -1
  184. package/lib/chevre/service/payment/any/factory.d.ts +1 -1
  185. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
  186. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
  187. package/lib/chevre/service/payment/any.d.ts +3 -3
  188. package/lib/chevre/service/payment/creditCard.js +5 -0
  189. package/lib/chevre/service/payment/movieTicket.d.ts +4 -4
  190. package/lib/chevre/service/payment/paymentCard.d.ts +1 -1
  191. package/lib/chevre/service/permit.d.ts +1 -1
  192. package/lib/chevre/service/report/ownershipInfo.js +4 -0
  193. package/lib/chevre/service/report/telemetry.d.ts +7 -7
  194. package/lib/chevre/service/reserve/cancelReservation.d.ts +1 -1
  195. package/lib/chevre/service/reserve/factory.d.ts +5 -5
  196. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
  197. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
  198. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +2 -2
  199. package/lib/chevre/service/task/aggregateScreeningEvent.d.ts +1 -1
  200. package/lib/chevre/service/task/aggregateUseActionsOnEvent.d.ts +1 -1
  201. package/lib/chevre/service/task/cancelMoneyTransfer.d.ts +1 -1
  202. package/lib/chevre/service/task/cancelPendingReservation.d.ts +1 -1
  203. package/lib/chevre/service/task/cancelReservation.d.ts +1 -1
  204. package/lib/chevre/service/task/importEventCapacitiesFromCOA.d.ts +1 -1
  205. package/lib/chevre/service/task/importEventsFromCOA.d.ts +1 -1
  206. package/lib/chevre/service/task/importOffersFromCOA.d.ts +1 -1
  207. package/lib/chevre/service/task/moneyTransfer.d.ts +1 -1
  208. package/lib/chevre/service/task/registerService.d.ts +1 -1
  209. package/lib/chevre/service/task/reserve.d.ts +1 -1
  210. package/lib/chevre/service/task.d.ts +2 -2
  211. package/lib/chevre/service/task.js +1 -1
  212. package/lib/chevre/service/transaction/moneyTransfer/potentialActions.d.ts +1 -1
  213. package/lib/chevre/service/transaction/moneyTransfer.d.ts +6 -6
  214. package/lib/chevre/service/transaction/moneyTransfer.js +0 -5
  215. package/lib/chevre/service/transaction/orderProgramMembership.d.ts +1 -1
  216. package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.d.ts +1 -1
  217. package/lib/chevre/service/transaction/placeOrder.d.ts +1 -1
  218. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.d.ts +1 -1
  219. package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.d.ts +2 -2
  220. package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +1 -1
  221. package/lib/chevre/service/transaction/placeOrderInProgress/validation.d.ts +8 -8
  222. package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +7 -7
  223. package/lib/chevre/service/transaction/placeOrderInProgress.js +2 -2
  224. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnMoneyTransfer.d.ts +1 -1
  225. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPointAward.d.ts +1 -1
  226. package/lib/chevre/service/transaction/returnOrder/potentialActions.d.ts +1 -1
  227. package/lib/chevre/service/transaction/returnOrder.d.ts +2 -2
  228. package/lib/chevre/service/transaction/returnOrder.js +1 -1
  229. package/lib/chevre/service/transaction/validation.d.ts +2 -2
  230. package/lib/chevre/service/transaction.d.ts +2 -2
  231. package/lib/chevre/settings.d.ts +1 -1
  232. package/package.json +11 -11
  233. package/lib/chevre/repo/mongoose/model/account.d.ts +0 -30
  234. package/lib/chevre/repo/mongoose/model/accountTitle.d.ts +0 -40
  235. package/lib/chevre/repo/mongoose/model/accountTransaction.d.ts +0 -43
  236. package/lib/chevre/repo/mongoose/model/accountingReport.d.ts +0 -34
  237. package/lib/chevre/repo/mongoose/model/action.d.ts +0 -49
  238. package/lib/chevre/repo/mongoose/model/additionalProperty.d.ts +0 -36
  239. package/lib/chevre/repo/mongoose/model/aggregation.d.ts +0 -30
  240. package/lib/chevre/repo/mongoose/model/assetTransaction.d.ts +0 -48
  241. package/lib/chevre/repo/mongoose/model/authorization.d.ts +0 -37
  242. package/lib/chevre/repo/mongoose/model/categoryCode.d.ts +0 -40
  243. package/lib/chevre/repo/mongoose/model/comments.d.ts +0 -41
  244. package/lib/chevre/repo/mongoose/model/creativeWork.d.ts +0 -49
  245. package/lib/chevre/repo/mongoose/model/customer.d.ts +0 -40
  246. package/lib/chevre/repo/mongoose/model/emailMessages.d.ts +0 -38
  247. package/lib/chevre/repo/mongoose/model/member.d.ts +0 -34
  248. package/lib/chevre/repo/mongoose/model/merchantReturnPolicy.d.ts +0 -38
  249. package/lib/chevre/repo/mongoose/model/offer.d.ts +0 -59
  250. package/lib/chevre/repo/mongoose/model/offerCatalog.d.ts +0 -40
  251. package/lib/chevre/repo/mongoose/model/order.d.ts +0 -53
  252. package/lib/chevre/repo/mongoose/model/ownershipInfo.d.ts +0 -40
  253. package/lib/chevre/repo/mongoose/model/place.d.ts +0 -52
  254. package/lib/chevre/repo/mongoose/model/priceSpecification.d.ts +0 -42
  255. package/lib/chevre/repo/mongoose/model/product.d.ts +0 -43
  256. package/lib/chevre/repo/mongoose/model/project.d.ts +0 -39
  257. package/lib/chevre/repo/mongoose/model/role.d.ts +0 -33
  258. package/lib/chevre/repo/mongoose/model/seller.d.ts +0 -43
  259. package/lib/chevre/repo/mongoose/model/serviceOutput.d.ts +0 -33
  260. package/lib/chevre/repo/mongoose/model/task.d.ts +0 -41
  261. package/lib/chevre/repo/mongoose/model/telemetry.d.ts +0 -38
  262. package/lib/chevre/repo/mongoose/model/transaction.d.ts +0 -46
  263. package/lib/chevre/repo/mongoose/model/trip.d.ts +0 -33
@@ -1,56 +1,56 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.schema = exports.modelName = void 0;
4
- const mongoose = require("mongoose");
4
+ const mongoose_1 = require("mongoose");
5
+ const writeConcern_1 = require("../writeConcern");
5
6
  const modelName = 'Event';
6
7
  exports.modelName = modelName;
7
- const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
8
8
  /**
9
9
  * イベント(公演など)スキーマ
10
10
  */
11
- const schema = new mongoose.Schema({
12
- project: mongoose.SchemaTypes.Mixed,
11
+ const schema = new mongoose_1.Schema({
12
+ project: mongoose_1.SchemaTypes.Mixed,
13
13
  _id: String,
14
14
  typeOf: {
15
15
  type: String,
16
16
  required: true
17
17
  },
18
18
  identifier: String,
19
- name: mongoose.SchemaTypes.Mixed,
20
- additionalProperty: mongoose.SchemaTypes.Mixed,
21
- alternateName: mongoose.SchemaTypes.Mixed,
22
- alternativeHeadline: mongoose.SchemaTypes.Mixed,
23
- description: mongoose.SchemaTypes.Mixed,
19
+ name: mongoose_1.SchemaTypes.Mixed,
20
+ additionalProperty: mongoose_1.SchemaTypes.Mixed,
21
+ alternateName: mongoose_1.SchemaTypes.Mixed,
22
+ alternativeHeadline: mongoose_1.SchemaTypes.Mixed,
23
+ description: mongoose_1.SchemaTypes.Mixed,
24
24
  doorTime: Date,
25
25
  duration: String,
26
26
  endDate: Date,
27
27
  eventStatus: String,
28
- headline: mongoose.SchemaTypes.Mixed,
29
- location: mongoose.SchemaTypes.Mixed,
28
+ headline: mongoose_1.SchemaTypes.Mixed,
29
+ location: mongoose_1.SchemaTypes.Mixed,
30
30
  startDate: Date,
31
- workPerformed: mongoose.SchemaTypes.Mixed,
32
- superEvent: mongoose.SchemaTypes.Mixed,
33
- videoFormat: mongoose.SchemaTypes.Mixed,
34
- soundFormat: mongoose.SchemaTypes.Mixed,
35
- subtitleLanguage: mongoose.SchemaTypes.Mixed,
36
- dubLanguage: mongoose.SchemaTypes.Mixed,
31
+ workPerformed: mongoose_1.SchemaTypes.Mixed,
32
+ superEvent: mongoose_1.SchemaTypes.Mixed,
33
+ videoFormat: mongoose_1.SchemaTypes.Mixed,
34
+ soundFormat: mongoose_1.SchemaTypes.Mixed,
35
+ subtitleLanguage: mongoose_1.SchemaTypes.Mixed,
36
+ dubLanguage: mongoose_1.SchemaTypes.Mixed,
37
37
  kanaName: String,
38
38
  // 不要なので廃止(2023-01-23~)
39
- // hasOfferCatalog: mongoose.SchemaTypes.Mixed,
40
- offers: mongoose.SchemaTypes.Mixed,
39
+ // hasOfferCatalog: SchemaTypes.Mixed,
40
+ offers: mongoose_1.SchemaTypes.Mixed,
41
41
  maximumAttendeeCapacity: { type: Number },
42
42
  remainingAttendeeCapacity: { type: Number },
43
43
  checkInCount: { type: Number, default: 0 },
44
44
  attendeeCount: { type: Number, default: 0 },
45
- aggregateEntranceGate: mongoose.SchemaTypes.Mixed,
46
- aggregateReservation: mongoose.SchemaTypes.Mixed,
47
- aggregateOffer: mongoose.SchemaTypes.Mixed,
48
- coaInfo: mongoose.SchemaTypes.Mixed
45
+ aggregateEntranceGate: mongoose_1.SchemaTypes.Mixed,
46
+ aggregateReservation: mongoose_1.SchemaTypes.Mixed,
47
+ aggregateOffer: mongoose_1.SchemaTypes.Mixed,
48
+ coaInfo: mongoose_1.SchemaTypes.Mixed
49
49
  }, {
50
50
  collection: 'events',
51
51
  id: true,
52
52
  read: 'primaryPreferred',
53
- writeConcern: writeConcern,
53
+ writeConcern: writeConcern_1.writeConcern,
54
54
  strict: true,
55
55
  useNestedStrict: true,
56
56
  timestamps: {
@@ -228,13 +228,3 @@ schema.index({ additionalProperty: 1, startDate: 1 }, {
228
228
  additionalProperty: { $exists: true }
229
229
  }
230
230
  });
231
- mongoose.model(modelName, schema)
232
- .on('index',
233
- // tslint:disable-next-line:no-single-line-block-comment
234
- /* istanbul ignore next */
235
- (error) => {
236
- if (error !== undefined) {
237
- // tslint:disable-next-line:no-console
238
- console.error(error);
239
- }
240
- });
@@ -0,0 +1,58 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import { Schema } from 'mongoose';
26
+ declare const modelName = "Member";
27
+ /**
28
+ * プロジェクトメンバースキーマ
29
+ */
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
31
+ collection: string;
32
+ id: true;
33
+ read: string;
34
+ writeConcern: import("mongodb").WriteConcern;
35
+ strict: true;
36
+ useNestedStrict: boolean;
37
+ timestamps: {
38
+ createdAt: string;
39
+ updatedAt: string;
40
+ };
41
+ toJSON: {
42
+ getters: false;
43
+ virtuals: false;
44
+ minimize: false;
45
+ versionKey: false;
46
+ };
47
+ toObject: {
48
+ getters: false;
49
+ virtuals: true;
50
+ minimize: false;
51
+ versionKey: false;
52
+ };
53
+ }>, {
54
+ typeOf: string;
55
+ project?: any;
56
+ member?: any;
57
+ }>;
58
+ export { modelName, schema };
@@ -1,25 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.schema = exports.modelName = void 0;
4
- const mongoose = require("mongoose");
4
+ const mongoose_1 = require("mongoose");
5
+ const writeConcern_1 = require("../writeConcern");
5
6
  const modelName = 'Member';
6
7
  exports.modelName = modelName;
7
- const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
8
8
  /**
9
9
  * プロジェクトメンバースキーマ
10
10
  */
11
- const schema = new mongoose.Schema({
12
- project: mongoose.SchemaTypes.Mixed,
11
+ const schema = new mongoose_1.Schema({
12
+ project: mongoose_1.SchemaTypes.Mixed,
13
13
  typeOf: {
14
14
  type: String,
15
15
  required: true
16
16
  },
17
- member: mongoose.SchemaTypes.Mixed
17
+ member: mongoose_1.SchemaTypes.Mixed
18
18
  }, {
19
19
  collection: 'members',
20
20
  id: true,
21
21
  read: 'primaryPreferred',
22
- writeConcern: writeConcern,
22
+ writeConcern: writeConcern_1.writeConcern,
23
23
  strict: true,
24
24
  useNestedStrict: true,
25
25
  timestamps: {
@@ -61,13 +61,3 @@ schema.index({ 'member.hasRole.roleName': 1, 'member.id': 1 }, {
61
61
  'member.hasRole.roleName': { $exists: true }
62
62
  }
63
63
  });
64
- mongoose.model(modelName, schema)
65
- .on('index',
66
- // tslint:disable-next-line:no-single-line-block-comment
67
- /* istanbul ignore next */
68
- (error) => {
69
- if (error !== undefined) {
70
- // tslint:disable-next-line:no-console
71
- console.error(error);
72
- }
73
- });
@@ -0,0 +1,62 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import { Schema } from 'mongoose';
26
+ declare const modelName = "MerchantReturnPolicy";
27
+ /**
28
+ * 返品ポリシースキーマ
29
+ */
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
31
+ collection: string;
32
+ id: true;
33
+ read: string;
34
+ writeConcern: import("mongodb").WriteConcern;
35
+ strict: true;
36
+ useNestedStrict: boolean;
37
+ timestamps: {
38
+ createdAt: string;
39
+ updatedAt: string;
40
+ };
41
+ toJSON: {
42
+ getters: false;
43
+ virtuals: false;
44
+ minimize: false;
45
+ versionKey: false;
46
+ };
47
+ toObject: {
48
+ getters: false;
49
+ virtuals: true;
50
+ minimize: false;
51
+ versionKey: false;
52
+ };
53
+ }>, {
54
+ typeOf: string;
55
+ name?: any;
56
+ project?: any;
57
+ additionalProperty?: any;
58
+ identifier?: string | undefined;
59
+ customerRemorseReturnFees?: string | undefined;
60
+ customerRemorseReturnFeesMovieTicket?: string | undefined;
61
+ }>;
62
+ export { modelName, schema };
@@ -1,29 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.schema = exports.modelName = void 0;
4
- const mongoose = require("mongoose");
4
+ const mongoose_1 = require("mongoose");
5
+ const writeConcern_1 = require("../writeConcern");
5
6
  const modelName = 'MerchantReturnPolicy';
6
7
  exports.modelName = modelName;
7
- const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
8
8
  /**
9
9
  * 返品ポリシースキーマ
10
10
  */
11
- const schema = new mongoose.Schema({
12
- project: mongoose.SchemaTypes.Mixed,
11
+ const schema = new mongoose_1.Schema({
12
+ project: mongoose_1.SchemaTypes.Mixed,
13
13
  typeOf: {
14
14
  type: String,
15
15
  required: true
16
16
  },
17
17
  identifier: String,
18
- name: mongoose.SchemaTypes.Mixed,
19
- additionalProperty: mongoose.SchemaTypes.Mixed,
18
+ name: mongoose_1.SchemaTypes.Mixed,
19
+ additionalProperty: mongoose_1.SchemaTypes.Mixed,
20
20
  customerRemorseReturnFees: String,
21
21
  customerRemorseReturnFeesMovieTicket: String
22
22
  }, {
23
23
  collection: 'merchantReturnPolicies',
24
24
  id: true,
25
25
  read: 'primaryPreferred',
26
- writeConcern: writeConcern,
26
+ writeConcern: writeConcern_1.writeConcern,
27
27
  strict: true,
28
28
  useNestedStrict: true,
29
29
  timestamps: {
@@ -46,13 +46,3 @@ const schema = new mongoose.Schema({
46
46
  exports.schema = schema;
47
47
  schema.index({ createdAt: 1 }, { name: 'searchByCreatedAt' });
48
48
  schema.index({ updatedAt: 1 }, { name: 'searchByUpdatedAt' });
49
- mongoose.model(modelName, schema)
50
- .on('index',
51
- // tslint:disable-next-line:no-single-line-block-comment
52
- /* istanbul ignore next */
53
- (error) => {
54
- if (error !== undefined) {
55
- // tslint:disable-next-line:no-console
56
- console.error(error);
57
- }
58
- });
@@ -0,0 +1,83 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import { Schema } from 'mongoose';
26
+ declare const modelName = "Offer";
27
+ /**
28
+ * オファースキーマ
29
+ */
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
31
+ collection: string;
32
+ id: true;
33
+ read: string;
34
+ writeConcern: import("mongodb").WriteConcern;
35
+ strict: true;
36
+ timestamps: {
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ };
40
+ toJSON: {
41
+ getters: false;
42
+ virtuals: false;
43
+ minimize: false;
44
+ versionKey: false;
45
+ };
46
+ toObject: {
47
+ getters: false;
48
+ virtuals: true;
49
+ minimize: false;
50
+ versionKey: false;
51
+ };
52
+ }>, {
53
+ additionalProperty: any[];
54
+ addOn: any[];
55
+ availableAtOrFrom: any[];
56
+ _id?: string | undefined;
57
+ name?: any;
58
+ typeOf?: string | undefined;
59
+ project?: any;
60
+ alternateName?: any;
61
+ description?: any;
62
+ identifier?: string | undefined;
63
+ itemOffered?: any;
64
+ eligibleQuantity?: any;
65
+ priceCurrency?: string | undefined;
66
+ color?: any;
67
+ validFrom?: Date | undefined;
68
+ category?: any;
69
+ availability?: string | undefined;
70
+ hasMerchantReturnPolicy?: any;
71
+ priceSpecification?: any;
72
+ eligibleCustomerType?: any;
73
+ eligibleDuration?: any;
74
+ eligibleMembershipType?: any;
75
+ eligibleMonetaryAmount?: any;
76
+ eligibleRegion?: any;
77
+ eligibleSeatingType?: any;
78
+ eligibleSubReservation?: any;
79
+ settings?: any;
80
+ validThrough?: Date | undefined;
81
+ validRateLimit?: any;
82
+ }>;
83
+ export { modelName, schema };
@@ -1,54 +1,54 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.schema = exports.modelName = void 0;
4
- const mongoose = require("mongoose");
4
+ const mongoose_1 = require("mongoose");
5
+ const writeConcern_1 = require("../writeConcern");
5
6
  const modelName = 'Offer';
6
7
  exports.modelName = modelName;
7
- const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
8
8
  /**
9
9
  * オファースキーマ
10
10
  */
11
- const schema = new mongoose.Schema({
12
- project: mongoose.SchemaTypes.Mixed,
11
+ const schema = new mongoose_1.Schema({
12
+ project: mongoose_1.SchemaTypes.Mixed,
13
13
  _id: String,
14
14
  identifier: String,
15
15
  typeOf: String,
16
- name: mongoose.SchemaTypes.Mixed,
17
- description: mongoose.SchemaTypes.Mixed,
18
- category: mongoose.SchemaTypes.Mixed,
19
- color: mongoose.SchemaTypes.Mixed,
20
- additionalProperty: [mongoose.SchemaTypes.Mixed],
21
- alternateName: mongoose.SchemaTypes.Mixed,
22
- // acceptedPaymentMethod: mongoose.SchemaTypes.Mixed, // 削除(2023-02-27~)
23
- addOn: [mongoose.SchemaTypes.Mixed],
24
- // availableAddOn: mongoose.SchemaTypes.Mixed, // 削除(2023-02-27~)
16
+ name: mongoose_1.SchemaTypes.Mixed,
17
+ description: mongoose_1.SchemaTypes.Mixed,
18
+ category: mongoose_1.SchemaTypes.Mixed,
19
+ color: mongoose_1.SchemaTypes.Mixed,
20
+ additionalProperty: [mongoose_1.SchemaTypes.Mixed],
21
+ alternateName: mongoose_1.SchemaTypes.Mixed,
22
+ // acceptedPaymentMethod: SchemaTypes.Mixed, // 削除(2023-02-27~)
23
+ addOn: [mongoose_1.SchemaTypes.Mixed],
24
+ // availableAddOn: SchemaTypes.Mixed, // 削除(2023-02-27~)
25
25
  availability: String,
26
26
  // availabilityEnds: Date, // 削除(2023-02-27~)
27
27
  // availabilityStarts: Date, // 削除(2023-02-27~)
28
- availableAtOrFrom: [mongoose.SchemaTypes.Mixed],
29
- hasMerchantReturnPolicy: mongoose.SchemaTypes.Mixed,
30
- itemOffered: mongoose.SchemaTypes.Mixed,
28
+ availableAtOrFrom: [mongoose_1.SchemaTypes.Mixed],
29
+ hasMerchantReturnPolicy: mongoose_1.SchemaTypes.Mixed,
30
+ itemOffered: mongoose_1.SchemaTypes.Mixed,
31
31
  // price: Number, // 削除(2023-02-27~)
32
32
  priceCurrency: String,
33
- priceSpecification: mongoose.SchemaTypes.Mixed,
34
- eligibleCustomerType: mongoose.SchemaTypes.Mixed,
35
- eligibleDuration: mongoose.SchemaTypes.Mixed,
36
- eligibleMembershipType: mongoose.SchemaTypes.Mixed,
37
- eligibleMonetaryAmount: mongoose.SchemaTypes.Mixed,
38
- eligibleQuantity: mongoose.SchemaTypes.Mixed,
39
- eligibleRegion: mongoose.SchemaTypes.Mixed,
40
- eligibleSeatingType: mongoose.SchemaTypes.Mixed,
41
- eligibleSubReservation: mongoose.SchemaTypes.Mixed,
33
+ priceSpecification: mongoose_1.SchemaTypes.Mixed,
34
+ eligibleCustomerType: mongoose_1.SchemaTypes.Mixed,
35
+ eligibleDuration: mongoose_1.SchemaTypes.Mixed,
36
+ eligibleMembershipType: mongoose_1.SchemaTypes.Mixed,
37
+ eligibleMonetaryAmount: mongoose_1.SchemaTypes.Mixed,
38
+ eligibleQuantity: mongoose_1.SchemaTypes.Mixed,
39
+ eligibleRegion: mongoose_1.SchemaTypes.Mixed,
40
+ eligibleSeatingType: mongoose_1.SchemaTypes.Mixed,
41
+ eligibleSubReservation: mongoose_1.SchemaTypes.Mixed,
42
42
  // settings追加(2023-01-26~)
43
- settings: mongoose.SchemaTypes.Mixed,
43
+ settings: mongoose_1.SchemaTypes.Mixed,
44
44
  validFrom: Date,
45
45
  validThrough: Date,
46
- validRateLimit: mongoose.SchemaTypes.Mixed
46
+ validRateLimit: mongoose_1.SchemaTypes.Mixed
47
47
  }, {
48
48
  collection: 'offers',
49
49
  id: true,
50
50
  read: 'primaryPreferred',
51
- writeConcern: writeConcern,
51
+ writeConcern: writeConcern_1.writeConcern,
52
52
  // trueに変更(2022-08-08~)
53
53
  strict: true,
54
54
  timestamps: {
@@ -206,13 +206,3 @@ schema.index({ validThrough: 1, 'priceSpecification.price': 1 }, {
206
206
  validThrough: { $exists: true }
207
207
  }
208
208
  });
209
- mongoose.model(modelName, schema)
210
- .on('index',
211
- // tslint:disable-next-line:no-single-line-block-comment
212
- /* istanbul ignore next */
213
- (error) => {
214
- if (error !== undefined) {
215
- // tslint:disable-next-line:no-console
216
- console.error(error);
217
- }
218
- });
@@ -0,0 +1,64 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import { Schema } from 'mongoose';
26
+ declare const modelName = "OfferCatalog";
27
+ /**
28
+ * オファーカタログスキーマ
29
+ */
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
31
+ collection: string;
32
+ id: true;
33
+ read: string;
34
+ writeConcern: import("mongodb").WriteConcern;
35
+ strict: true;
36
+ timestamps: {
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ };
40
+ toJSON: {
41
+ getters: false;
42
+ virtuals: false;
43
+ minimize: false;
44
+ versionKey: false;
45
+ };
46
+ toObject: {
47
+ getters: false;
48
+ virtuals: true;
49
+ minimize: false;
50
+ versionKey: false;
51
+ };
52
+ }>, {
53
+ typeOf: string;
54
+ additionalProperty: any[];
55
+ identifier: string;
56
+ itemListElement: any[];
57
+ _id?: string | undefined;
58
+ name?: any;
59
+ project?: any;
60
+ alternateName?: any;
61
+ description?: any;
62
+ itemOffered?: any;
63
+ }>;
64
+ export { modelName, schema };
@@ -1,35 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.schema = exports.modelName = void 0;
4
- const mongoose = require("mongoose");
4
+ const mongoose_1 = require("mongoose");
5
+ const writeConcern_1 = require("../writeConcern");
5
6
  const modelName = 'OfferCatalog';
6
7
  exports.modelName = modelName;
7
- const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
8
8
  /**
9
9
  * オファーカタログスキーマ
10
10
  */
11
- const schema = new mongoose.Schema({
12
- project: mongoose.SchemaTypes.Mixed,
11
+ const schema = new mongoose_1.Schema({
12
+ project: mongoose_1.SchemaTypes.Mixed,
13
13
  _id: String,
14
14
  identifier: {
15
15
  type: String,
16
16
  required: true
17
17
  },
18
- name: mongoose.SchemaTypes.Mixed,
19
- description: mongoose.SchemaTypes.Mixed,
20
- alternateName: mongoose.SchemaTypes.Mixed,
18
+ name: mongoose_1.SchemaTypes.Mixed,
19
+ description: mongoose_1.SchemaTypes.Mixed,
20
+ alternateName: mongoose_1.SchemaTypes.Mixed,
21
21
  typeOf: {
22
22
  type: String,
23
23
  required: true
24
24
  },
25
- itemListElement: [mongoose.SchemaTypes.Mixed],
26
- itemOffered: mongoose.SchemaTypes.Mixed,
27
- additionalProperty: [mongoose.SchemaTypes.Mixed]
25
+ itemListElement: [mongoose_1.SchemaTypes.Mixed],
26
+ itemOffered: mongoose_1.SchemaTypes.Mixed,
27
+ additionalProperty: [mongoose_1.SchemaTypes.Mixed]
28
28
  }, {
29
29
  collection: 'offerCatalogs',
30
30
  id: true,
31
31
  read: 'primaryPreferred',
32
- writeConcern: writeConcern,
32
+ writeConcern: writeConcern_1.writeConcern,
33
33
  strict: true,
34
34
  timestamps: {
35
35
  createdAt: 'createdAt',
@@ -81,13 +81,3 @@ schema.index({ additionalProperty: 1, identifier: 1 }, {
81
81
  additionalProperty: { $exists: true }
82
82
  }
83
83
  });
84
- mongoose.model(modelName, schema)
85
- .on('index',
86
- // tslint:disable-next-line:no-single-line-block-comment
87
- /* istanbul ignore next */
88
- (error) => {
89
- if (error !== undefined) {
90
- // tslint:disable-next-line:no-console
91
- console.error(error);
92
- }
93
- });