@chevre/domain 23.1.0-alpha.9 → 23.2.0-alpha.0

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/{eventOffer/adminEventOffers.ts → acceptedPaymentMethodOffer/adminAcceptedPaymentMethodOffers.ts} +12 -11
  2. package/example/src/chevre/actions/checkAcceptPayActions.ts +60 -0
  3. package/example/src/chevre/assetTransaction/checkPayTransactionsTicketToken.ts +67 -0
  4. package/example/src/chevre/event/importEventSeriesFromCOAByTitle.ts +83 -0
  5. package/example/src/chevre/event/importEventsFromCOAByTitle.ts +148 -0
  6. package/example/src/chevre/eventSeries/migrateEventSeriesUnacceptedPaymentMethod.ts +93 -0
  7. package/example/src/chevre/importEventsFromCOA.ts +5 -5
  8. package/example/src/chevre/pendingReservation/findEventSeatOffersBySection.ts +46 -0
  9. package/example/src/chevre/place/checkSectionCount.ts +27 -0
  10. package/example/src/chevre/place/findSectionsByRoom.ts +50 -0
  11. package/example/src/chevre/project/unsetProjectSettings.ts +73 -0
  12. package/example/src/chevre/reIndex.ts +0 -1
  13. package/example/src/chevre/roles/{addAdminSellerEventIfNotExists.ts → addAdminSellerEventOfferIfNotExists.ts} +1 -1
  14. package/example/src/chevre/stockHolder/findSeatsBySection.ts +59 -0
  15. package/example/src/chevre/stockHolder/searchSeats.ts +2 -2
  16. package/lib/chevre/repo/acceptedPaymentMethod.d.ts +41 -0
  17. package/lib/chevre/repo/acceptedPaymentMethod.js +180 -0
  18. package/lib/chevre/repo/authorization.d.ts +3 -2
  19. package/lib/chevre/repo/authorization.js +13 -5
  20. package/lib/chevre/repo/event.d.ts +1 -35
  21. package/lib/chevre/repo/event.js +2 -102
  22. package/lib/chevre/repo/eventOffer.js +3 -3
  23. package/lib/chevre/repo/mongoose/schemas/acceptedPaymentMethod.d.ts +10 -0
  24. package/lib/chevre/repo/mongoose/schemas/acceptedPaymentMethod.js +97 -0
  25. package/lib/chevre/repo/mongoose/schemas/eventOffer.js +9 -0
  26. package/lib/chevre/repo/note.js +4 -2
  27. package/lib/chevre/repo/pendingReservation.js +28 -71
  28. package/lib/chevre/repo/place/seat.d.ts +24 -0
  29. package/lib/chevre/repo/place/seat.js +103 -21
  30. package/lib/chevre/repo/place/section.d.ts +20 -0
  31. package/lib/chevre/repo/place/section.js +47 -0
  32. package/lib/chevre/repo/ticket.d.ts +7 -1
  33. package/lib/chevre/repo/ticket.js +14 -1
  34. package/lib/chevre/repository.d.ts +5 -0
  35. package/lib/chevre/repository.js +15 -2
  36. package/lib/chevre/service/aggregation/event/importFromCOA.js +2 -2
  37. package/lib/chevre/service/assetTransaction/pay/factory.d.ts +1 -1
  38. package/lib/chevre/service/assetTransaction/pay/factory.js +8 -3
  39. package/lib/chevre/service/assetTransaction/pay/validateAcceptedPaymentMethodIfNeeded.d.ts +16 -0
  40. package/lib/chevre/service/assetTransaction/pay/validateAcceptedPaymentMethodIfNeeded.js +94 -0
  41. package/lib/chevre/service/assetTransaction/pay.d.ts +6 -1
  42. package/lib/chevre/service/assetTransaction/pay.js +6 -1
  43. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/fixExtendedEventOffer.d.ts +1 -2
  44. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/fixExtendedEventOffer.js +7 -7
  45. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/validateIssuedOfferIfExists.d.ts +6 -2
  46. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/validateIssuedOfferIfExists.js +30 -30
  47. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/validateMemberTierIfExists.d.ts +0 -1
  48. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/validateMemberTierIfExists.js +7 -51
  49. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/verifyTicketTokenAsNeeded.js +6 -8
  50. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest.d.ts +29 -1
  51. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest.js +9 -9
  52. package/lib/chevre/service/event/factory.d.ts +22 -0
  53. package/lib/chevre/service/event/factory.js +2 -0
  54. package/lib/chevre/service/event/processUpdateMovieTheater.d.ts +24 -0
  55. package/lib/chevre/service/event/processUpdateMovieTheater.js +190 -0
  56. package/lib/chevre/service/event/saveScreeningEventSeries.d.ts +63 -0
  57. package/lib/chevre/service/event/saveScreeningEventSeries.js +277 -0
  58. package/lib/chevre/service/event/saveScreeningEvents.d.ts +46 -0
  59. package/lib/chevre/service/event/saveScreeningEvents.js +321 -0
  60. package/lib/chevre/service/event.d.ts +4 -34
  61. package/lib/chevre/service/event.js +12 -698
  62. package/lib/chevre/service/eventOld.d.ts +60 -0
  63. package/lib/chevre/service/eventOld.js +864 -0
  64. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre/requestedProgramMembershipUsed2permit.js +1 -1
  65. package/lib/chevre/service/offer/event/issueEventOfferTicket.d.ts +48 -0
  66. package/lib/chevre/service/offer/event/issueEventOfferTicket.js +123 -0
  67. package/lib/chevre/service/offer/event.d.ts +2 -1
  68. package/lib/chevre/service/offer/event.js +3 -1
  69. package/lib/chevre/service/offer.d.ts +31 -1
  70. package/lib/chevre/service/offer.js +104 -34
  71. package/lib/chevre/service/payment/any/authorize/fixTransactionNumber.d.ts +9 -0
  72. package/lib/chevre/service/payment/any/authorize/fixTransactionNumber.js +22 -11
  73. package/lib/chevre/service/payment/any/authorize/handlePrePublishedPaymentMethodIdOnAuthorizing.d.ts +19 -2
  74. package/lib/chevre/service/payment/any/authorize/handlePrePublishedPaymentMethodIdOnAuthorizing.js +87 -9
  75. package/lib/chevre/service/payment/any/factory.d.ts +20 -3
  76. package/lib/chevre/service/payment/any/factory.js +26 -6
  77. package/lib/chevre/service/payment/any/publishPaymentUrl/fixTransactionNumberOnPublishPaymentUrl.d.ts +4 -0
  78. package/lib/chevre/service/payment/any/publishPaymentUrl/fixTransactionNumberOnPublishPaymentUrl.js +15 -11
  79. package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.d.ts +6 -3
  80. package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.js +8 -22
  81. package/lib/chevre/service/payment/any.d.ts +5 -1
  82. package/lib/chevre/service/payment/any.js +22 -13
  83. package/lib/chevre/service/payment/factory.js +0 -5
  84. package/lib/chevre/service/payment/movieTicket/authorize.js +0 -5
  85. package/lib/chevre/service/task/authorizePayment.js +2 -0
  86. package/lib/chevre/service/task/publishPaymentUrl.js +4 -0
  87. package/lib/chevre/service/transaction/placeOrder/confirm/publishCode.js +1 -1
  88. package/lib/chevre/service/transaction/placeOrder/confirm/validation/factory.d.ts +9 -0
  89. package/lib/chevre/service/transaction/placeOrder/confirm/validation/factory.js +2 -0
  90. package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateInvoiceReferencesOrder.d.ts +8 -0
  91. package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateInvoiceReferencesOrder.js +45 -0
  92. package/lib/chevre/service/transaction/placeOrder/confirm/validation/validatePrice.d.ts +3 -0
  93. package/lib/chevre/service/transaction/placeOrder/confirm/validation/validatePrice.js +38 -0
  94. package/lib/chevre/service/transaction/placeOrder/confirm/validation.d.ts +2 -8
  95. package/lib/chevre/service/transaction/placeOrder/confirm/validation.js +5 -35
  96. package/package.json +3 -3
  97. package/example/src/chevre/checkReplaceActions.ts +0 -65
  98. package/example/src/chevre/upsertManyEventsByAdditionalProperty.ts +0 -193
  99. package/lib/chevre/service/code.d.ts +0 -8
  100. package/lib/chevre/service/code.js +0 -7
@@ -0,0 +1,60 @@
1
+ /**
2
+ * マスターデータ同期サービス
3
+ */
4
+ import type * as COA from '@motionpicture/coa-service';
5
+ import type { ActionRepo } from '../repo/action';
6
+ import type { CategoryCodeRepo } from '../repo/categoryCode';
7
+ import type { CreativeWorkRepo } from '../repo/creativeWork';
8
+ import type { EventRepo } from '../repo/event';
9
+ import type { EventSeriesRepo } from '../repo/eventSeries';
10
+ import type { MovieTheaterRepo } from '../repo/place/movieTheater';
11
+ import type { ScreeningRoomRepo } from '../repo/place/screeningRoom';
12
+ import type { SellerRepo } from '../repo/seller';
13
+ import * as factory from '../factory';
14
+ interface IImportFromCOAParams {
15
+ project: {
16
+ id: string;
17
+ typeOf: factory.organizationType.Project;
18
+ };
19
+ /**
20
+ * 施設コード
21
+ */
22
+ locationBranchCode: string;
23
+ importFrom: Date;
24
+ importThrough: Date;
25
+ /**
26
+ * 施設を保管するかどうか
27
+ */
28
+ saveMovieTheater: boolean;
29
+ /**
30
+ * 施設コンテンツを保管するかどうか
31
+ */
32
+ saveScreeningEventSeries: boolean;
33
+ saveScreeningEventSeriesPeriodInMonth: number;
34
+ }
35
+ /**
36
+ * イベントをインポートする
37
+ */
38
+ declare function importFromCOA(params: IImportFromCOAParams): (repos: {
39
+ action: ActionRepo;
40
+ categoryCode: CategoryCodeRepo;
41
+ creativeWork: CreativeWorkRepo;
42
+ event: EventRepo;
43
+ eventSeries: EventSeriesRepo;
44
+ movieTheater: MovieTheaterRepo;
45
+ screeningRoom: ScreeningRoomRepo;
46
+ seller: SellerRepo;
47
+ masterService: COA.service.Master;
48
+ }) => Promise<void>;
49
+ /**
50
+ * COA情報からイベントIDを作成する
51
+ */
52
+ declare function createScreeningEventIdFromCOA(params: {
53
+ theaterCode: string;
54
+ titleCode: string;
55
+ titleBranchNum: string;
56
+ dateJouei: string;
57
+ screenCode: string;
58
+ timeBegin: string;
59
+ }): string;
60
+ export { importFromCOA, createScreeningEventIdFromCOA };