@chevre/domain 21.4.0-alpha.3 → 21.4.0-alpha.31

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 (100) hide show
  1. package/example/src/chevre/cleanActions.ts +23 -0
  2. package/example/src/chevre/cleanEventsByMovieTheater.ts +32 -0
  3. package/example/src/chevre/createDeleteTransactionTasksOfDeletedPeople.ts +126 -0
  4. package/example/src/chevre/createManyEventsIfNotExist.ts +6 -0
  5. package/example/src/chevre/iam/searchMemberOfIdsByMemberId.ts +31 -0
  6. package/example/src/chevre/iam/searchProjectIdsByMemberId.ts +32 -0
  7. package/example/src/chevre/migrateEventOrganizer.ts +125 -0
  8. package/example/src/chevre/migrateIAMMemberMemberOf.ts +59 -0
  9. package/example/src/chevre/migrateReservationProvider.ts +119 -0
  10. package/example/src/chevre/migrateScreeningRoomOrganizer.ts +91 -0
  11. package/example/src/chevre/processReserve.ts +0 -1
  12. package/example/src/chevre/searchEvents.ts +1 -9
  13. package/example/src/chevre/searchPermissions.ts +7 -15
  14. package/lib/chevre/factory/event.d.ts +1 -1
  15. package/lib/chevre/repo/action.d.ts +6 -0
  16. package/lib/chevre/repo/action.js +13 -0
  17. package/lib/chevre/repo/assetTransaction.d.ts +4 -1
  18. package/lib/chevre/repo/assetTransaction.js +6 -12
  19. package/lib/chevre/repo/event.d.ts +25 -4
  20. package/lib/chevre/repo/event.js +122 -60
  21. package/lib/chevre/repo/member.d.ts +76 -1
  22. package/lib/chevre/repo/member.js +82 -20
  23. package/lib/chevre/repo/mongoose/schemas/event.d.ts +7 -4
  24. package/lib/chevre/repo/mongoose/schemas/event.js +15 -2
  25. package/lib/chevre/repo/mongoose/schemas/member.d.ts +7 -7
  26. package/lib/chevre/repo/mongoose/schemas/member.js +12 -6
  27. package/lib/chevre/repo/mongoose/schemas/place.d.ts +6 -6
  28. package/lib/chevre/repo/mongoose/schemas/place.js +9 -2
  29. package/lib/chevre/repo/mongoose/schemas/product.d.ts +3 -3
  30. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +6 -3
  31. package/lib/chevre/repo/mongoose/schemas/reservation.js +10 -4
  32. package/lib/chevre/repo/order.d.ts +21 -0
  33. package/lib/chevre/repo/order.js +54 -62
  34. package/lib/chevre/repo/place.d.ts +57 -16
  35. package/lib/chevre/repo/place.js +112 -167
  36. package/lib/chevre/repo/product.d.ts +2 -4
  37. package/lib/chevre/repo/product.js +52 -7
  38. package/lib/chevre/repo/reservation.d.ts +33 -21
  39. package/lib/chevre/repo/reservation.js +97 -79
  40. package/lib/chevre/repo/seller.d.ts +18 -5
  41. package/lib/chevre/repo/seller.js +53 -46
  42. package/lib/chevre/repo/stockHolder.d.ts +2 -77
  43. package/lib/chevre/repo/stockHolder.js +200 -476
  44. package/lib/chevre/repo/task.d.ts +1 -1
  45. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +2 -2
  46. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +3 -2
  47. package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.js +1 -1
  48. package/lib/chevre/service/assetTransaction/pay/account/validation.js +9 -1
  49. package/lib/chevre/service/assetTransaction/pay.js +9 -1
  50. package/lib/chevre/service/assetTransaction/registerService.js +2 -2
  51. package/lib/chevre/service/assetTransaction/reserve/factory.d.ts +10 -4
  52. package/lib/chevre/service/assetTransaction/reserve/factory.js +21 -40
  53. package/lib/chevre/service/assetTransaction/reserve.d.ts +0 -1
  54. package/lib/chevre/service/assetTransaction/reserve.js +7 -22
  55. package/lib/chevre/service/event/createEvent.d.ts +11 -0
  56. package/lib/chevre/service/event/createEvent.js +112 -0
  57. package/lib/chevre/service/event.d.ts +2 -0
  58. package/lib/chevre/service/event.js +26 -26
  59. package/lib/chevre/service/iam.d.ts +5 -0
  60. package/lib/chevre/service/iam.js +7 -19
  61. package/lib/chevre/service/moneyTransfer.js +1 -1
  62. package/lib/chevre/service/offer/event/authorize.d.ts +0 -1
  63. package/lib/chevre/service/offer/event/authorize.js +6 -2
  64. package/lib/chevre/service/offer/event/searchEventTicketOffers.js +16 -2
  65. package/lib/chevre/service/offer/eventServiceByCOA/factory.d.ts +1 -1
  66. package/lib/chevre/service/offer/product/searchProductOffers.js +1 -1
  67. package/lib/chevre/service/order/returnOrder.js +8 -1
  68. package/lib/chevre/service/order/sendOrder.js +8 -1
  69. package/lib/chevre/service/payment/creditCard.js +9 -1
  70. package/lib/chevre/service/payment/movieTicket/factory.d.ts +2 -1
  71. package/lib/chevre/service/payment/movieTicket/validation.js +9 -1
  72. package/lib/chevre/service/payment/movieTicket.js +19 -2
  73. package/lib/chevre/service/payment/paymentCard.js +1 -3
  74. package/lib/chevre/service/reserve/cancelReservation.js +15 -28
  75. package/lib/chevre/service/reserve/confirmReservation.js +14 -30
  76. package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +3 -0
  77. package/lib/chevre/service/reserve/verifyToken4reservation.js +3 -1
  78. package/lib/chevre/service/task/{syncScreeningRooms.d.ts → createEvent.d.ts} +1 -1
  79. package/lib/chevre/service/task/{syncScreeningRooms.js → createEvent.js} +11 -3
  80. package/lib/chevre/service/task/onAuthorizationCreated.js +1 -0
  81. package/lib/chevre/service/task/returnPayTransaction.js +1 -0
  82. package/lib/chevre/service/transaction/moneyTransfer.js +9 -1
  83. package/lib/chevre/service/transaction/orderProgramMembership/findCreditCard.js +1 -1
  84. package/lib/chevre/service/transaction/placeOrderInProgress.js +9 -6
  85. package/lib/chevre/service/transaction/returnOrder.js +9 -3
  86. package/lib/chevre/settings.d.ts +0 -2
  87. package/lib/chevre/settings.js +7 -7
  88. package/package.json +3 -3
  89. package/example/src/chevre/findByOrderNumberAndReservationId.ts +0 -20
  90. package/example/src/chevre/findScreeningRoomsByBranchCode.ts +0 -27
  91. package/example/src/chevre/migrateEventOffersItemOfferedAvailableChannel.ts +0 -90
  92. package/example/src/chevre/migrateEventOffersItemOfferedTypeOf.ts +0 -75
  93. package/example/src/chevre/migrateSSKTEventCOAEndpoint.ts +0 -64
  94. package/example/src/chevre/migrateScreeningEventSeriesVersion.ts +0 -79
  95. package/example/src/chevre/searchHoldReservations.ts +0 -38
  96. package/example/src/chevre/searchScreeningRooms.ts +0 -33
  97. package/example/src/chevre/syncScreeningRooms.ts +0 -21
  98. package/example/src/chevre/syncScreeningRoomsAll.ts +0 -41
  99. package/lib/chevre/repo/mongoose/schemas/holdReservation.d.ts +0 -75
  100. package/lib/chevre/repo/mongoose/schemas/holdReservation.js +0 -93
@@ -1,93 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.schema = exports.modelName = void 0;
4
- const mongoose_1 = require("mongoose");
5
- const writeConcern_1 = require("../writeConcern");
6
- const modelName = 'HoldReservation';
7
- exports.modelName = modelName;
8
- /**
9
- * 保留予約スキーマ
10
- */
11
- const schema = new mongoose_1.Schema({
12
- project: {
13
- type: mongoose_1.SchemaTypes.Mixed,
14
- required: true
15
- },
16
- typeOf: {
17
- type: String,
18
- required: true
19
- },
20
- reservationFor: {
21
- type: mongoose_1.SchemaTypes.Mixed,
22
- required: true
23
- },
24
- reservationCount: {
25
- type: Number,
26
- default: 0,
27
- required: true
28
- },
29
- reservations: [mongoose_1.SchemaTypes.Mixed]
30
- }, {
31
- collection: 'holdReservations',
32
- id: true,
33
- read: 'primary',
34
- writeConcern: writeConcern_1.writeConcern,
35
- strict: true,
36
- strictQuery: false,
37
- useNestedStrict: true,
38
- timestamps: {
39
- createdAt: 'createdAt',
40
- updatedAt: 'updatedAt'
41
- },
42
- toJSON: {
43
- getters: false,
44
- virtuals: false,
45
- minimize: false,
46
- versionKey: false
47
- },
48
- toObject: {
49
- getters: false,
50
- virtuals: true,
51
- minimize: false,
52
- versionKey: false
53
- }
54
- });
55
- exports.schema = schema;
56
- schema.index({ createdAt: 1 }, { name: 'searchByCreatedAt' });
57
- schema.index({ updatedAt: 1 }, { name: 'searchByUpdatedAt' });
58
- schema.index({ 'reservationFor.startDate': -1 }, { name: 'searchByReservationForStartDate' });
59
- // イベントIDでunique
60
- schema.index({ 'reservationFor.id': 1 }, { name: 'uniqueReservationForId', unique: true });
61
- schema.index({ 'reservationFor.id': 1, 'reservationFor.startDate': -1 }, { name: 'searchByReservationForId' });
62
- schema.index({ 'project.id': 1, 'reservationFor.startDate': -1 }, { name: 'searchByProjectId' });
63
- schema.index({ reservationCount: 1, 'reservationFor.startDate': -1 }, { name: 'searchByReservationCount' });
64
- schema.index({ 'reservations.reservationNumber': 1, 'reservationFor.startDate': -1 }, {
65
- name: 'searchByReservationNumber',
66
- partialFilterExpression: {
67
- 'reservations.reservationNumber': { $exists: true }
68
- }
69
- });
70
- schema.index({ 'reservations.subReservation.id': 1, 'reservationFor.startDate': -1 }, {
71
- name: 'searchBySubReservationId',
72
- partialFilterExpression: {
73
- 'reservations.subReservation.id': { $exists: true }
74
- }
75
- });
76
- schema.index({ 'reservations.subReservation.identifier': 1, 'reservationFor.startDate': -1 }, {
77
- name: 'searchBySubReservationIdentifier',
78
- partialFilterExpression: {
79
- 'reservations.subReservation.identifier': { $exists: true }
80
- }
81
- });
82
- schema.index({ 'reservations.subReservation.reservedTicket.ticketedSeat.seatNumber': 1, 'reservationFor.startDate': -1 }, {
83
- name: 'searchBySubReservationSeatNumber',
84
- partialFilterExpression: {
85
- 'reservations.subReservation.reservedTicket.ticketedSeat.seatNumber': { $exists: true }
86
- }
87
- });
88
- schema.index({ 'reservations.subReservation.reservedTicket.ticketedSeat.seatSection': 1, 'reservationFor.startDate': -1 }, {
89
- name: 'searchBySubReservationSeatSection',
90
- partialFilterExpression: {
91
- 'reservations.subReservation.reservedTicket.ticketedSeat.seatSection': { $exists: true }
92
- }
93
- });