@chevre/domain 28.0.0-alpha.9 → 28.0.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.
- package/lib/chevre/emailMessageBuilder.d.ts +9 -5
- package/lib/chevre/emailMessageBuilder.js +12 -11
- package/lib/chevre/factory/event.d.ts +1 -1
- package/lib/chevre/factory/event.js +1 -5
- package/lib/chevre/repo/acceptedOffer.d.ts +6 -5
- package/lib/chevre/repo/acceptedOffer.js +14 -9
- package/lib/chevre/repo/acceptedOfferInReserve.d.ts +6 -8
- package/lib/chevre/repo/acceptedOfferInReserve.js +13 -7
- package/lib/chevre/repo/action/unknown2actionError.d.ts +1 -0
- package/lib/chevre/repo/action/unknown2actionError.js +29 -1
- package/lib/chevre/repo/adminAcceptedOffer.d.ts +36 -12
- package/lib/chevre/repo/adminAcceptedOffer.js +40 -10
- package/lib/chevre/repo/adminAccountTitle.d.ts +49 -0
- package/lib/chevre/repo/adminAccountTitle.js +212 -0
- package/lib/chevre/repo/adminAccountTitleCategory.d.ts +37 -0
- package/lib/chevre/repo/adminAccountTitleCategory.js +127 -0
- package/lib/chevre/repo/adminAccountTitleSet.d.ts +42 -0
- package/lib/chevre/repo/adminAccountTitleSet.js +149 -0
- package/lib/chevre/repo/adminEvent.d.ts +1 -1
- package/lib/chevre/repo/adminEventSeries.d.ts +0 -22
- package/lib/chevre/repo/adminEventSeries.js +35 -31
- package/lib/chevre/repo/{paymentServiceChannel.d.ts → adminPaymentServiceChannel.d.ts} +13 -11
- package/lib/chevre/repo/{paymentServiceChannel.js → adminPaymentServiceChannel.js} +20 -19
- package/lib/chevre/repo/adminTask.d.ts +2 -2
- package/lib/chevre/repo/adminTransaction.d.ts +15 -15
- package/lib/chevre/repo/categoryCode.js +0 -21
- package/lib/chevre/repo/emailMessage.d.ts +3 -1
- package/lib/chevre/repo/emailMessage.js +20 -13
- package/lib/chevre/repo/eventSeries.d.ts +2 -2
- package/lib/chevre/repo/eventSeries.js +19 -12
- package/lib/chevre/repo/factory/acceptedOffer/reserveTransaction2itemOffered.d.ts +1 -1
- package/lib/chevre/repo/issuer.d.ts +2 -6
- package/lib/chevre/repo/memberProgram.d.ts +1 -38
- package/lib/chevre/repo/memberProgram.js +1 -62
- package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/accountTitle.js +22 -26
- package/lib/chevre/repo/mongoose/schemas/civicStructure.d.ts +1 -0
- package/lib/chevre/repo/mongoose/schemas/event.js +0 -13
- package/lib/chevre/repo/mongoose/schemas/eventSeries.js +1 -18
- package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +1 -3
- package/lib/chevre/repo/mongoose/schemas/issuer.js +0 -10
- package/lib/chevre/repo/mongoose/schemas/message.d.ts +5 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +0 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +3 -12
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +1 -2
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.js +6 -15
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +22 -1
- package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/place.js +0 -9
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +1 -2
- package/lib/chevre/repo/mongoose/schemas/project.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +3 -1
- package/lib/chevre/repo/mongoose/schemas/seller.js +0 -2
- package/lib/chevre/repo/offerCatalog.d.ts +0 -2
- package/lib/chevre/repo/offerCatalogItem.d.ts +13 -20
- package/lib/chevre/repo/offerCatalogItem.js +8 -86
- package/lib/chevre/repo/order.d.ts +2 -2
- package/lib/chevre/repo/order.js +0 -31
- package/lib/chevre/repo/orderInTransaction.d.ts +5 -25
- package/lib/chevre/repo/place/movieTheater.d.ts +3 -1
- package/lib/chevre/repo/place/movieTheater.js +3 -1
- package/lib/chevre/repo/place/{hasPOS.d.ts → pos.d.ts} +13 -20
- package/lib/chevre/repo/place/{hasPOS.js → pos.js} +66 -29
- package/lib/chevre/repo/place/screeningRoom.d.ts +2 -2
- package/lib/chevre/repo/priceSpecification.d.ts +8 -8
- package/lib/chevre/repo/project.d.ts +14 -20
- package/lib/chevre/repo/project.js +28 -44
- package/lib/chevre/repo/projectMakesOffer.js +2 -2
- package/lib/chevre/repo/role.d.ts +1 -1
- package/lib/chevre/repo/role.js +1 -30
- package/lib/chevre/repo/seller.d.ts +11 -4
- package/lib/chevre/repo/seller.js +31 -58
- package/lib/chevre/repo/sellerPaymentAccepted.d.ts +14 -21
- package/lib/chevre/repo/sellerPaymentAccepted.js +65 -38
- package/lib/chevre/repo/task.d.ts +3 -3
- package/lib/chevre/repository.d.ts +25 -15
- package/lib/chevre/repository.js +52 -30
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +2 -1
- package/lib/chevre/service/aggregation.d.ts +0 -2
- package/lib/chevre/service/aggregation.js +1 -3
- package/lib/chevre/service/assetTransaction/pay/start/preStart/fixPaymentService.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/pay/start/preStart/fixPaymentService.js +1 -15
- package/lib/chevre/service/assetTransaction/pay/start/preStart/validateSeller.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/pay/start/preStart/validateSeller.js +9 -3
- package/lib/chevre/service/assetTransaction/pay/start.js +3 -3
- package/lib/chevre/service/assetTransaction/reserve/start.js +2 -1
- package/lib/chevre/service/delivery/reservation/factory.d.ts +1 -1
- package/lib/chevre/service/event/saveScreeningEventSeries.js +1 -2
- package/lib/chevre/service/event/saveScreeningEvents.js +4 -4
- package/lib/chevre/service/notification/sendEmailMessage.d.ts +2 -0
- package/lib/chevre/service/notification/sendEmailMessage.js +23 -6
- package/lib/chevre/service/offer/any.d.ts +1 -1
- package/lib/chevre/service/offer/event/authorize/factory.d.ts +3 -3
- package/lib/chevre/service/offer/event/authorize/factory.js +1 -8
- package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.d.ts +1 -1
- package/lib/chevre/service/offer/event/issueEventOfferTicket.js +0 -11
- package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +1 -4
- package/lib/chevre/service/offer/event/searchEventTicketOffers.js +9 -13
- package/lib/chevre/service/offer/event/searchOfferAppliesToMovieTicket.js +2 -8
- package/lib/chevre/service/offer/event/searchOfferCatalogItems.js +2 -2
- package/lib/chevre/service/offer/event/searchOffersByIds.js +3 -9
- package/lib/chevre/service/offer/eventServiceByCOA/authorize/factory.d.ts +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/authorize/factory.js +0 -7
- package/lib/chevre/service/offer/onEventChanged.js +9 -18
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.d.ts +4 -6
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.js +23 -4
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/createSendEmailMessageTaskIfNotExist.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/processOrder.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing.d.ts +1 -1
- package/lib/chevre/service/order/placeOrder/factory/orderedItem.d.ts +1 -1
- package/lib/chevre/service/order/placeOrder/factory.d.ts +1 -1
- package/lib/chevre/service/order/sendOrder.js +2 -14
- package/lib/chevre/service/payment/creditCard/getGMOInfoFromSeller.js +1 -1
- package/lib/chevre/service/payment/factory/createPayObjectServiceOutput.d.ts +3 -3
- package/lib/chevre/service/payment/movieTicket/checkMovieTicket.js +1 -1
- package/lib/chevre/service/payment/movieTicket/payMovieTicket/payActionParams2seatInfoSyncIn.js +1 -1
- package/lib/chevre/service/payment/movieTicket/validation.js +1 -1
- package/lib/chevre/service/project.d.ts +3 -3
- package/lib/chevre/service/project.js +1 -1
- package/lib/chevre/service/task/onResourceDeleted.js +8 -8
- package/lib/chevre/service/task/onResourceUpdated/onAggregateOfferUpdated.js +8 -8
- package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.d.ts +7 -3
- package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.js +51 -50
- package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.js +1 -1
- package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.js +1 -1
- package/lib/chevre/service/task/onResourceUpdated.js +10 -47
- package/lib/chevre/service/task/sendEmailMessage.js +3 -1
- package/lib/chevre/service/task/syncResourcesFromCOA.js +2 -2
- package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions/sendEmailMessage.d.ts +6 -3
- package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions/sendEmailMessage.js +2 -15
- package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions.d.ts +6 -4
- package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions.js +3 -7
- package/lib/chevre/service/transaction/placeOrder/confirm/prepareUnitPriceOfferConditions.d.ts +1 -1
- package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateInvoiceReferencesOrder.d.ts +1 -1
- package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateMovieTicket.d.ts +1 -1
- package/lib/chevre/service/transaction/placeOrder/confirm/validation.d.ts +2 -2
- package/lib/chevre/service/transaction/placeOrder/confirm.d.ts +0 -2
- package/lib/chevre/service/transaction/placeOrder/confirm.js +6 -11
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.d.ts +6 -3
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +8 -9
- package/lib/chevre/service/transaction/returnOrder/potentialActions/sendEmailMessage.d.ts +6 -3
- package/lib/chevre/service/transaction/returnOrder/potentialActions/sendEmailMessage.js +2 -7
- package/lib/chevre/service/transaction/returnOrder/potentialActions.d.ts +6 -3
- package/lib/chevre/service/transaction/returnOrder/potentialActions.js +4 -3
- package/lib/chevre/service/transaction/returnOrder/preStart/factory.d.ts +1 -1
- package/lib/chevre/service/transaction/returnOrder.d.ts +0 -2
- package/lib/chevre/service/transaction/returnOrder.js +6 -6
- package/package.json +2 -2
- package/lib/chevre/repo/accountTitle.d.ts +0 -28
- package/lib/chevre/repo/accountTitle.js +0 -30
- package/lib/chevre/service/aggregation/project.d.ts +0 -17
- package/lib/chevre/service/aggregation/project.js +0 -98
- package/lib/chevre/service/delivery/factory.d.ts +0 -16
- package/lib/chevre/service/delivery/factory.js +0 -124
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { AcceptedOfferRepo } from './repo/acceptedOffer';
|
|
5
5
|
import type { AccountingReportRepo } from './repo/accountingReport';
|
|
6
|
-
import type { AccountTitleRepo } from './repo/accountTitle';
|
|
7
6
|
import type { AcceptCOAOfferActionRepo } from './repo/action/acceptCOAOffer';
|
|
8
7
|
import type { AcceptPayActionRepo } from './repo/action/acceptPay';
|
|
9
8
|
import type { AuthorizeInvoiceActionRepo } from './repo/action/authorizeInvoice';
|
|
@@ -21,6 +20,9 @@ import type { OrderActionRepo } from './repo/action/order';
|
|
|
21
20
|
import type { ConfirmActionRepo } from './repo/action/confirm';
|
|
22
21
|
import type { AsyncActionRepo } from './repo/asyncAction';
|
|
23
22
|
import type { AdditionalPropertyRepo } from './repo/additionalProperty';
|
|
23
|
+
import type { AdminAccountTitleRepo } from './repo/adminAccountTitle';
|
|
24
|
+
import type { AdminAccountTitleCategoryRepo } from './repo/adminAccountTitleCategory';
|
|
25
|
+
import type { AdminAccountTitleSetRepo } from './repo/adminAccountTitleSet';
|
|
24
26
|
import type { AdminAccountingReportRepo } from './repo/adminAccountingReport';
|
|
25
27
|
import type { AdminAcceptedOfferRepo } from './repo/adminAcceptedOffer';
|
|
26
28
|
import type { AdminActionRepo } from './repo/adminAction';
|
|
@@ -29,6 +31,7 @@ import type { AdminCheckMovieTicketActionRepo } from './repo/adminCheckMovieTick
|
|
|
29
31
|
import type { AdminAsyncActionRepo } from './repo/adminAsyncAction';
|
|
30
32
|
import type { AdminEventRepo } from './repo/adminEvent';
|
|
31
33
|
import type { AdminEventSeriesRepo } from './repo/adminEventSeries';
|
|
34
|
+
import type { AdminPaymentServiceChannelRepo } from './repo/adminPaymentServiceChannel';
|
|
32
35
|
import type { AdminPendingReservationRepo } from './repo/adminPendingReservation';
|
|
33
36
|
import type { AdminScheduledTaskRepo } from './repo/adminScheduledTask';
|
|
34
37
|
import type { AdminTaskRepo } from './repo/adminTask';
|
|
@@ -76,11 +79,10 @@ import type { OrderRepo } from './repo/order';
|
|
|
76
79
|
import type { OrderInTransactionRepo } from './repo/orderInTransaction';
|
|
77
80
|
import type { PassportRepo } from './repo/passport';
|
|
78
81
|
import type { PaymentServiceRepo } from './repo/paymentService';
|
|
79
|
-
import type { PaymentServiceChannelRepo } from './repo/paymentServiceChannel';
|
|
80
82
|
import type { PaymentServiceProviderRepo } from './repo/paymentServiceProvider';
|
|
81
83
|
import type { PendingReservationRepo } from './repo/pendingReservation';
|
|
82
84
|
import type { EntranceGateRepo } from './repo/place/entranceGate';
|
|
83
|
-
import type {
|
|
85
|
+
import type { POSRepo } from './repo/place/pos';
|
|
84
86
|
import type { MovieTheaterRepo } from './repo/place/movieTheater';
|
|
85
87
|
import type { ScreeningRoomRepo } from './repo/place/screeningRoom';
|
|
86
88
|
import type { SeatRepo } from './repo/place/seat';
|
|
@@ -129,10 +131,6 @@ export type AccountingReport = AccountingReportRepo;
|
|
|
129
131
|
export declare namespace AccountingReport {
|
|
130
132
|
function createInstance(...params: ConstructorParameters<typeof AccountingReportRepo>): Promise<AccountingReportRepo>;
|
|
131
133
|
}
|
|
132
|
-
export type AccountTitle = AccountTitleRepo;
|
|
133
|
-
export declare namespace AccountTitle {
|
|
134
|
-
function createInstance(...params: ConstructorParameters<typeof AccountTitleRepo>): Promise<AccountTitleRepo>;
|
|
135
|
-
}
|
|
136
134
|
export declare namespace action {
|
|
137
135
|
type AcceptCOAOffer = AcceptCOAOfferActionRepo;
|
|
138
136
|
namespace AcceptCOAOffer {
|
|
@@ -199,6 +197,18 @@ export type AdditionalProperty = AdditionalPropertyRepo;
|
|
|
199
197
|
export declare namespace AdditionalProperty {
|
|
200
198
|
function createInstance(...params: ConstructorParameters<typeof AdditionalPropertyRepo>): Promise<AdditionalPropertyRepo>;
|
|
201
199
|
}
|
|
200
|
+
export type AdminAccountTitle = AdminAccountTitleRepo;
|
|
201
|
+
export declare namespace AdminAccountTitle {
|
|
202
|
+
function createInstance(...params: ConstructorParameters<typeof AdminAccountTitleRepo>): Promise<AdminAccountTitleRepo>;
|
|
203
|
+
}
|
|
204
|
+
export type AdminAccountTitleCategory = AdminAccountTitleCategoryRepo;
|
|
205
|
+
export declare namespace AdminAccountTitleCategory {
|
|
206
|
+
function createInstance(...params: ConstructorParameters<typeof AdminAccountTitleCategoryRepo>): Promise<AdminAccountTitleCategoryRepo>;
|
|
207
|
+
}
|
|
208
|
+
export type AdminAccountTitleSet = AdminAccountTitleSetRepo;
|
|
209
|
+
export declare namespace AdminAccountTitleSet {
|
|
210
|
+
function createInstance(...params: ConstructorParameters<typeof AdminAccountTitleSetRepo>): Promise<AdminAccountTitleSetRepo>;
|
|
211
|
+
}
|
|
202
212
|
export type AdminAccountingReport = AdminAccountingReportRepo;
|
|
203
213
|
export declare namespace AdminAccountingReport {
|
|
204
214
|
function createInstance(...params: ConstructorParameters<typeof AdminAccountingReportRepo>): Promise<AdminAccountingReportRepo>;
|
|
@@ -231,6 +241,10 @@ export type AdminEventSeries = AdminEventSeriesRepo;
|
|
|
231
241
|
export declare namespace AdminEventSeries {
|
|
232
242
|
function createInstance(...params: ConstructorParameters<typeof AdminEventSeriesRepo>): Promise<AdminEventSeriesRepo>;
|
|
233
243
|
}
|
|
244
|
+
export type AdminPaymentServiceChannel = AdminPaymentServiceChannelRepo;
|
|
245
|
+
export declare namespace AdminPaymentServiceChannel {
|
|
246
|
+
function createInstance(...params: ConstructorParameters<typeof AdminPaymentServiceChannelRepo>): Promise<AdminPaymentServiceChannelRepo>;
|
|
247
|
+
}
|
|
234
248
|
export type AdminPendingReservation = AdminPendingReservationRepo;
|
|
235
249
|
export declare namespace AdminPendingReservation {
|
|
236
250
|
function createInstance(...params: ConstructorParameters<typeof AdminPendingReservationRepo>): Promise<AdminPendingReservationRepo>;
|
|
@@ -429,10 +443,6 @@ export type PaymentService = PaymentServiceRepo;
|
|
|
429
443
|
export declare namespace PaymentService {
|
|
430
444
|
function createInstance(...params: ConstructorParameters<typeof PaymentServiceRepo>): Promise<PaymentServiceRepo>;
|
|
431
445
|
}
|
|
432
|
-
export type PaymentServiceChannel = PaymentServiceChannelRepo;
|
|
433
|
-
export declare namespace PaymentServiceChannel {
|
|
434
|
-
function createInstance(...params: ConstructorParameters<typeof PaymentServiceChannelRepo>): Promise<PaymentServiceChannelRepo>;
|
|
435
|
-
}
|
|
436
446
|
export type PaymentServiceProvider = PaymentServiceProviderRepo;
|
|
437
447
|
export declare namespace PaymentServiceProvider {
|
|
438
448
|
function createInstance(...params: ConstructorParameters<typeof PaymentServiceProviderRepo>): Promise<PaymentServiceProviderRepo>;
|
|
@@ -453,12 +463,12 @@ export declare namespace place {
|
|
|
453
463
|
namespace EntranceGate {
|
|
454
464
|
function createInstance(...params: ConstructorParameters<typeof EntranceGateRepo>): Promise<EntranceGateRepo>;
|
|
455
465
|
}
|
|
456
|
-
type
|
|
466
|
+
type POS = POSRepo;
|
|
457
467
|
/**
|
|
458
|
-
*
|
|
468
|
+
* 施設のPOSリポジトリ
|
|
459
469
|
*/
|
|
460
|
-
namespace
|
|
461
|
-
function createInstance(...params: ConstructorParameters<typeof
|
|
470
|
+
namespace POS {
|
|
471
|
+
function createInstance(...params: ConstructorParameters<typeof POSRepo>): Promise<POSRepo>;
|
|
462
472
|
}
|
|
463
473
|
type MovieTheater = MovieTheaterRepo;
|
|
464
474
|
/**
|
package/lib/chevre/repository.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.WebSite = exports.rateLimit = exports.TransactionProcess = exports.TransactionNumber = exports.transaction = exports.Transaction = exports.Ticket = exports.AsyncAction = exports.TaskDelayed = exports.Task = exports.ScheduledTask = exports.StockHolder = exports.setting = exports.Setting = exports.ServiceAvailableHour = exports.SellerReturnPolicy = exports.SellerPaymentAccepted = exports.SellerMakesOffer = exports.Seller = exports.Schedule = exports.Role = exports.ReserveInterface = exports.Reservation = exports.ProjectMakesOffer = exports.Project = exports.ProductHasOfferCatalog = exports.Product = exports.PriceSpecification = exports.PotentialAction = exports.place = exports.Person = exports.PendingReservation = exports.PaymentServiceProvider = exports.
|
|
3
|
+
exports.Member = exports.Issuer = exports.IdentityProvider = exports.Identity = exports.EventSeries = exports.EventSellerMakesOffer = exports.EventOffer = exports.Event = exports.EmailMessage = exports.CustomerType = exports.Customer = exports.Credentials = exports.CreativeWork = exports.ConfirmationNumber = exports.Authorization = exports.CategoryCode = exports.assetTransaction = exports.AssetTransaction = exports.Aggregation = exports.AggregateReservation = exports.AggregateOrder = exports.AggregateOffer = exports.AggregateEvent = exports.AggregateAssetTransaction = exports.AggregateTransaction = exports.AggregateTask = exports.AggregateScheduledTask = exports.AggregateUseAction = exports.AggregateCheckMovieTicketAction = exports.AggregateAction = exports.AdminTransaction = exports.AdminTask = exports.AdminScheduledTask = exports.AdminPendingReservation = exports.AdminPaymentServiceChannel = exports.AdminEventSeries = exports.AdminEvent = exports.AdminAsyncAction = exports.AdminAssetTransaction = exports.AdminCheckMovieTicketAction = exports.AdminAction = exports.AdminAcceptedOffer = exports.AdminAccountingReport = exports.AdminAccountTitleSet = exports.AdminAccountTitleCategory = exports.AdminAccountTitle = exports.AdditionalProperty = exports.action = exports.AccountingReport = exports.AcceptedOffer = void 0;
|
|
4
|
+
exports.WebSite = exports.rateLimit = exports.TransactionProcess = exports.TransactionNumber = exports.transaction = exports.Transaction = exports.Ticket = exports.AsyncAction = exports.TaskDelayed = exports.Task = exports.ScheduledTask = exports.StockHolder = exports.setting = exports.Setting = exports.ServiceAvailableHour = exports.SellerReturnPolicy = exports.SellerPaymentAccepted = exports.SellerMakesOffer = exports.Seller = exports.Schedule = exports.Role = exports.ReserveInterface = exports.Reservation = exports.ProjectMakesOffer = exports.Project = exports.ProductHasOfferCatalog = exports.Product = exports.PriceSpecification = exports.PotentialAction = exports.place = exports.Person = exports.PendingReservation = exports.PaymentServiceProvider = exports.PaymentService = exports.Passport = exports.OrderNumber = exports.OrderInTransaction = exports.Order = exports.Offer = exports.OfferItemCondition = exports.OfferCatalogItem = exports.OfferCatalog = exports.NoteAboutOrder = exports.Note = exports.MovieTicketType = exports.Message = exports.MerchantReturnPolicy = exports.MemberProgram = void 0;
|
|
5
5
|
var AcceptedOffer;
|
|
6
6
|
(function (AcceptedOffer) {
|
|
7
7
|
let repo;
|
|
@@ -24,17 +24,6 @@ var AccountingReport;
|
|
|
24
24
|
}
|
|
25
25
|
AccountingReport.createInstance = createInstance;
|
|
26
26
|
})(AccountingReport || (exports.AccountingReport = AccountingReport = {}));
|
|
27
|
-
var AccountTitle;
|
|
28
|
-
(function (AccountTitle) {
|
|
29
|
-
let repo;
|
|
30
|
-
async function createInstance(...params) {
|
|
31
|
-
if (repo === undefined) {
|
|
32
|
-
repo = (await import('./repo/accountTitle.js')).AccountTitleRepo;
|
|
33
|
-
}
|
|
34
|
-
return new repo(...params);
|
|
35
|
-
}
|
|
36
|
-
AccountTitle.createInstance = createInstance;
|
|
37
|
-
})(AccountTitle || (exports.AccountTitle = AccountTitle = {}));
|
|
38
27
|
var action;
|
|
39
28
|
(function (action) {
|
|
40
29
|
let AcceptCOAOffer;
|
|
@@ -214,6 +203,39 @@ var AdditionalProperty;
|
|
|
214
203
|
}
|
|
215
204
|
AdditionalProperty.createInstance = createInstance;
|
|
216
205
|
})(AdditionalProperty || (exports.AdditionalProperty = AdditionalProperty = {}));
|
|
206
|
+
var AdminAccountTitle;
|
|
207
|
+
(function (AdminAccountTitle) {
|
|
208
|
+
let repo;
|
|
209
|
+
async function createInstance(...params) {
|
|
210
|
+
if (repo === undefined) {
|
|
211
|
+
repo = (await import('./repo/adminAccountTitle.js')).AdminAccountTitleRepo;
|
|
212
|
+
}
|
|
213
|
+
return new repo(...params);
|
|
214
|
+
}
|
|
215
|
+
AdminAccountTitle.createInstance = createInstance;
|
|
216
|
+
})(AdminAccountTitle || (exports.AdminAccountTitle = AdminAccountTitle = {}));
|
|
217
|
+
var AdminAccountTitleCategory;
|
|
218
|
+
(function (AdminAccountTitleCategory) {
|
|
219
|
+
let repo;
|
|
220
|
+
async function createInstance(...params) {
|
|
221
|
+
if (repo === undefined) {
|
|
222
|
+
repo = (await import('./repo/adminAccountTitleCategory.js')).AdminAccountTitleCategoryRepo;
|
|
223
|
+
}
|
|
224
|
+
return new repo(...params);
|
|
225
|
+
}
|
|
226
|
+
AdminAccountTitleCategory.createInstance = createInstance;
|
|
227
|
+
})(AdminAccountTitleCategory || (exports.AdminAccountTitleCategory = AdminAccountTitleCategory = {}));
|
|
228
|
+
var AdminAccountTitleSet;
|
|
229
|
+
(function (AdminAccountTitleSet) {
|
|
230
|
+
let repo;
|
|
231
|
+
async function createInstance(...params) {
|
|
232
|
+
if (repo === undefined) {
|
|
233
|
+
repo = (await import('./repo/adminAccountTitleSet.js')).AdminAccountTitleSetRepo;
|
|
234
|
+
}
|
|
235
|
+
return new repo(...params);
|
|
236
|
+
}
|
|
237
|
+
AdminAccountTitleSet.createInstance = createInstance;
|
|
238
|
+
})(AdminAccountTitleSet || (exports.AdminAccountTitleSet = AdminAccountTitleSet = {}));
|
|
217
239
|
var AdminAccountingReport;
|
|
218
240
|
(function (AdminAccountingReport) {
|
|
219
241
|
let repo;
|
|
@@ -302,6 +324,17 @@ var AdminEventSeries;
|
|
|
302
324
|
}
|
|
303
325
|
AdminEventSeries.createInstance = createInstance;
|
|
304
326
|
})(AdminEventSeries || (exports.AdminEventSeries = AdminEventSeries = {}));
|
|
327
|
+
var AdminPaymentServiceChannel;
|
|
328
|
+
(function (AdminPaymentServiceChannel) {
|
|
329
|
+
let repo;
|
|
330
|
+
async function createInstance(...params) {
|
|
331
|
+
if (repo === undefined) {
|
|
332
|
+
repo = (await import('./repo/adminPaymentServiceChannel.js')).AdminPaymentServiceChannelRepo;
|
|
333
|
+
}
|
|
334
|
+
return new repo(...params);
|
|
335
|
+
}
|
|
336
|
+
AdminPaymentServiceChannel.createInstance = createInstance;
|
|
337
|
+
})(AdminPaymentServiceChannel || (exports.AdminPaymentServiceChannel = AdminPaymentServiceChannel = {}));
|
|
305
338
|
var AdminPendingReservation;
|
|
306
339
|
(function (AdminPendingReservation) {
|
|
307
340
|
let repo;
|
|
@@ -844,17 +877,6 @@ var PaymentService;
|
|
|
844
877
|
}
|
|
845
878
|
PaymentService.createInstance = createInstance;
|
|
846
879
|
})(PaymentService || (exports.PaymentService = PaymentService = {}));
|
|
847
|
-
var PaymentServiceChannel;
|
|
848
|
-
(function (PaymentServiceChannel) {
|
|
849
|
-
let repo;
|
|
850
|
-
async function createInstance(...params) {
|
|
851
|
-
if (repo === undefined) {
|
|
852
|
-
repo = (await import('./repo/paymentServiceChannel.js')).PaymentServiceChannelRepo;
|
|
853
|
-
}
|
|
854
|
-
return new repo(...params);
|
|
855
|
-
}
|
|
856
|
-
PaymentServiceChannel.createInstance = createInstance;
|
|
857
|
-
})(PaymentServiceChannel || (exports.PaymentServiceChannel = PaymentServiceChannel = {}));
|
|
858
880
|
var PaymentServiceProvider;
|
|
859
881
|
(function (PaymentServiceProvider) {
|
|
860
882
|
let repo;
|
|
@@ -905,19 +927,19 @@ var place;
|
|
|
905
927
|
EntranceGate.createInstance = createInstance;
|
|
906
928
|
})(EntranceGate = place.EntranceGate || (place.EntranceGate = {}));
|
|
907
929
|
/**
|
|
908
|
-
*
|
|
930
|
+
* 施設のPOSリポジトリ
|
|
909
931
|
*/
|
|
910
|
-
let
|
|
911
|
-
(function (
|
|
932
|
+
let POS;
|
|
933
|
+
(function (POS) {
|
|
912
934
|
let repo;
|
|
913
935
|
async function createInstance(...params) {
|
|
914
936
|
if (repo === undefined) {
|
|
915
|
-
repo = (await import('./repo/place/
|
|
937
|
+
repo = (await import('./repo/place/pos.js')).POSRepo;
|
|
916
938
|
}
|
|
917
939
|
return new repo(...params);
|
|
918
940
|
}
|
|
919
|
-
|
|
920
|
-
})(
|
|
941
|
+
POS.createInstance = createInstance;
|
|
942
|
+
})(POS = place.POS || (place.POS = {}));
|
|
921
943
|
/**
|
|
922
944
|
* 施設リポジトリ
|
|
923
945
|
*/
|
|
@@ -208,7 +208,8 @@ function aggregateReservationByEvent(params) {
|
|
|
208
208
|
reservationStatuses: [factory_1.factory.reservationStatusType.ReservationConfirmed]
|
|
209
209
|
});
|
|
210
210
|
// maximumAttendeeCapacityを決定
|
|
211
|
-
let eventLocationMaximumAttendeeCapacity
|
|
211
|
+
let eventLocationMaximumAttendeeCapacity;
|
|
212
|
+
// let eventLocationMaximumAttendeeCapacity: number | undefined = params.event.location.maximumAttendeeCapacity;
|
|
212
213
|
if (typeof params.event.maximumPhysicalAttendeeCapacity === 'number') {
|
|
213
214
|
eventLocationMaximumAttendeeCapacity = params.event.maximumPhysicalAttendeeCapacity;
|
|
214
215
|
}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
* 集計サービス
|
|
3
3
|
*/
|
|
4
4
|
import * as EventAggregation from './aggregation/event';
|
|
5
|
-
import * as ProjectAggregation from './aggregation/project';
|
|
6
5
|
import * as SystemAggregation from './aggregation/system';
|
|
7
6
|
export import event = EventAggregation;
|
|
8
|
-
export import project = ProjectAggregation;
|
|
9
7
|
export import system = SystemAggregation;
|
|
@@ -33,13 +33,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.system = exports.
|
|
36
|
+
exports.system = exports.event = void 0;
|
|
37
37
|
/**
|
|
38
38
|
* 集計サービス
|
|
39
39
|
*/
|
|
40
40
|
const EventAggregation = __importStar(require("./aggregation/event"));
|
|
41
|
-
const ProjectAggregation = __importStar(require("./aggregation/project"));
|
|
42
41
|
const SystemAggregation = __importStar(require("./aggregation/system"));
|
|
43
42
|
exports.event = EventAggregation;
|
|
44
|
-
exports.project = ProjectAggregation;
|
|
45
43
|
exports.system = SystemAggregation;
|
|
@@ -6,5 +6,5 @@ export declare function fixPaymentService(params: factory.assetTransaction.pay.I
|
|
|
6
6
|
product: ProductRepo;
|
|
7
7
|
}) => Promise<{
|
|
8
8
|
paymentServiceType: factory.service.paymentService.PaymentServiceType;
|
|
9
|
-
paymentService?: Pick<factory.
|
|
9
|
+
paymentService?: Pick<factory.service.paymentService.IService, "availableChannel" | "id" | "serviceOutput" | "serviceType" | "potentialAction"> | undefined;
|
|
10
10
|
}>;
|
|
@@ -33,22 +33,8 @@ function fixPaymentService(params) {
|
|
|
33
33
|
// no op
|
|
34
34
|
// FaceToFaceの場合プロダクトは存在しない
|
|
35
35
|
break;
|
|
36
|
-
//
|
|
36
|
+
// PaymentCardは廃止済
|
|
37
37
|
// case factory.service.paymentService.PaymentServiceType.PaymentCard:
|
|
38
|
-
// paymentService = (await repos.product.projectFields(
|
|
39
|
-
// {
|
|
40
|
-
// limit: 1,
|
|
41
|
-
// page: 1,
|
|
42
|
-
// project: { id: { $eq: params.project.id } },
|
|
43
|
-
// typeOf: { $eq: factory.product.ProductType.PaymentCard },
|
|
44
|
-
// id: { $eq: getPaymentServiceId(params) }
|
|
45
|
-
// },
|
|
46
|
-
// ['availableChannel', 'serviceOutput', 'serviceType', 'potentialAction']
|
|
47
|
-
// // []
|
|
48
|
-
// ) as Pick<factory.product.IProduct, 'availableChannel' | 'id' | 'serviceOutput' | 'serviceType' | 'potentialAction'>[]).shift();
|
|
49
|
-
// if (paymentService === undefined) {
|
|
50
|
-
// throw new factory.errors.NotFound('PaymentService');
|
|
51
|
-
// }
|
|
52
38
|
// break;
|
|
53
39
|
default:
|
|
54
40
|
paymentService = (await repos.paymentService.projectFields({
|
|
@@ -3,6 +3,6 @@ import type { SellerPaymentAcceptedRepo } from '../../../../../repo/sellerPaymen
|
|
|
3
3
|
/**
|
|
4
4
|
* 販売者の対応決済方法検証
|
|
5
5
|
*/
|
|
6
|
-
export declare function validateSeller(params: Pick<factory.assetTransaction.pay.IStartParamsWithoutDetail, 'object' | 'recipient'>): (repos: {
|
|
6
|
+
export declare function validateSeller(params: Pick<factory.assetTransaction.pay.IStartParamsWithoutDetail, 'object' | 'recipient'>, paymentService?: Pick<factory.service.paymentService.IService, 'availableChannel' | 'id' | 'serviceOutput' | 'serviceType' | 'potentialAction'>): (repos: {
|
|
7
7
|
paymentAccepted: SellerPaymentAcceptedRepo;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -5,7 +5,7 @@ const factory_1 = require("../../../../../factory");
|
|
|
5
5
|
/**
|
|
6
6
|
* 販売者の対応決済方法検証
|
|
7
7
|
*/
|
|
8
|
-
function validateSeller(params) {
|
|
8
|
+
function validateSeller(params, paymentService) {
|
|
9
9
|
return async (repos) => {
|
|
10
10
|
const sellerId = params.recipient?.id;
|
|
11
11
|
if (typeof sellerId !== 'string') {
|
|
@@ -15,13 +15,19 @@ function validateSeller(params) {
|
|
|
15
15
|
if (typeof paymentMethodType !== 'string') {
|
|
16
16
|
throw new factory_1.factory.errors.ArgumentNull('object.paymentMethod.identifier');
|
|
17
17
|
}
|
|
18
|
+
// 決済方法管理がある場合、決済方法区分の一致検証(2026-10-23~)
|
|
19
|
+
if (paymentService !== undefined) {
|
|
20
|
+
if (paymentMethodType !== paymentService.serviceType.codeValue) {
|
|
21
|
+
throw new factory_1.factory.errors.Argument('object.paymentMethod.identifier', 'paymentMethodType not matched');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
18
24
|
// FaceToFaceの場合、決済方法区分未指定に対応(2023-08-29~)
|
|
19
25
|
if (params.object.typeOf === factory_1.factory.service.paymentService.PaymentServiceType.FaceToFace) {
|
|
20
26
|
if (paymentMethodType.length > 0) {
|
|
21
27
|
// 販売者の対応決済方法かどうか確認
|
|
22
28
|
// const paymentAccepted = seller.paymentAccepted?.some((a) => a.paymentMethodType === paymentMethodType);
|
|
23
29
|
const paymentAccepted = await repos.paymentAccepted.isAcceptedBySeller({
|
|
24
|
-
|
|
30
|
+
sellerId,
|
|
25
31
|
codeValue: paymentMethodType
|
|
26
32
|
});
|
|
27
33
|
if (paymentAccepted !== true) {
|
|
@@ -33,7 +39,7 @@ function validateSeller(params) {
|
|
|
33
39
|
// 販売者の対応決済方法かどうか確認
|
|
34
40
|
// const paymentAccepted = seller.paymentAccepted?.some((a) => a.paymentMethodType === paymentMethodType);
|
|
35
41
|
const paymentAccepted = await repos.paymentAccepted.isAcceptedBySeller({
|
|
36
|
-
|
|
42
|
+
sellerId,
|
|
37
43
|
codeValue: paymentMethodType
|
|
38
44
|
});
|
|
39
45
|
if (paymentAccepted !== true) {
|
|
@@ -12,15 +12,15 @@ const processAuthorize_1 = require("./start/processAuthorize");
|
|
|
12
12
|
*/
|
|
13
13
|
function start(params, options) {
|
|
14
14
|
return async (repos, settings) => {
|
|
15
|
-
await (0, validateSeller_1.validateSeller)(params)(repos);
|
|
16
|
-
// リソースの対応決済方法検証(2025-12-02~)
|
|
17
|
-
await (0, validateAcceptedPaymentMethodIfNeeded_1.validateAcceptedPaymentMethodIfNeeded)(params)(repos);
|
|
18
15
|
// 決済サービス確認
|
|
19
16
|
const { paymentServiceType, paymentService } = await (0, fixPaymentService_1.fixPaymentService)(params)(repos);
|
|
20
17
|
const informActions = await (0, fixInformAction_1.fixInformAction)({
|
|
21
18
|
paymentService,
|
|
22
19
|
project: { id: params.project.id }
|
|
23
20
|
})(repos);
|
|
21
|
+
await (0, validateSeller_1.validateSeller)(params, paymentService)(repos);
|
|
22
|
+
// リソースの対応決済方法検証(2025-12-02~)
|
|
23
|
+
await (0, validateAcceptedPaymentMethodIfNeeded_1.validateAcceptedPaymentMethodIfNeeded)(params)(repos);
|
|
24
24
|
// 取引開始
|
|
25
25
|
const startParams = (0, factory_1.createStartParams)({
|
|
26
26
|
...params,
|
|
@@ -509,7 +509,8 @@ function processLockSeats(params) {
|
|
|
509
509
|
const holder = params.transaction.transactionNumber; // fix as transactionNumber(2024-07-02~)
|
|
510
510
|
const bookingTime = params.transaction.startDate; // fix as transactionNumber(2024-07-02~)
|
|
511
511
|
const hasTicketedSeat = params.event.offers.itemOffered.serviceOutput?.reservedTicket?.ticketedSeat?.typeOf === factory_1.factory.placeType.Seat;
|
|
512
|
-
let maximumAttendeeCapacity4event
|
|
512
|
+
let maximumAttendeeCapacity4event;
|
|
513
|
+
// let maximumAttendeeCapacity4event: number | undefined = params.event.location?.maximumAttendeeCapacity;
|
|
513
514
|
if (typeof params.event.maximumPhysicalAttendeeCapacity === 'number') {
|
|
514
515
|
maximumAttendeeCapacity4event = params.event.maximumPhysicalAttendeeCapacity;
|
|
515
516
|
}
|
|
@@ -6,7 +6,7 @@ export declare function createReservationOwnershipInfo(params: {
|
|
|
6
6
|
id: string;
|
|
7
7
|
};
|
|
8
8
|
ownedBy: factory.ownershipInfo.IOwner[];
|
|
9
|
-
acceptedOffer: Pick<factory.
|
|
9
|
+
acceptedOffer: Pick<factory.acceptedOffer.IAcceptedOffer, 'itemOffered'>;
|
|
10
10
|
ownedFrom: Date;
|
|
11
11
|
identifier: string;
|
|
12
12
|
acquiredFrom: factory.ownershipInfo.IAcquiredFrom;
|
|
@@ -217,8 +217,7 @@ function createScreeningEventSeriesFromCOA(params) {
|
|
|
217
217
|
},
|
|
218
218
|
// 必須化(2023-07-12~)
|
|
219
219
|
organizer: { id: params.seller.id },
|
|
220
|
-
//
|
|
221
|
-
soundFormat: [],
|
|
220
|
+
// soundFormat: [], // discontinue(2026-10-05~)
|
|
222
221
|
workPerformed,
|
|
223
222
|
duration: moment_timezone_1.default.duration(params.filmFromCOA.showTime, 'm')
|
|
224
223
|
.toISOString(),
|
|
@@ -89,7 +89,7 @@ function createScreeningEvents(params, options) {
|
|
|
89
89
|
}))];
|
|
90
90
|
debug('searching eventSeries... importingEventSeriesIds:', importingEventSeriesIds);
|
|
91
91
|
if (importingEventSeriesIds.length > 0) {
|
|
92
|
-
screeningEventSerieses = await repos.eventSeries.
|
|
92
|
+
screeningEventSerieses = await repos.eventSeries.findEventSeries({
|
|
93
93
|
id: { $in: importingEventSeriesIds },
|
|
94
94
|
project: { id: { $eq: params.project.id } }
|
|
95
95
|
}, [
|
|
@@ -97,7 +97,7 @@ function createScreeningEvents(params, options) {
|
|
|
97
97
|
'name', 'kanaName', 'alternativeHeadline', 'location',
|
|
98
98
|
'organizer',
|
|
99
99
|
// 'videoFormat', // 参照廃止(2026-02-10~)
|
|
100
|
-
'
|
|
100
|
+
'workPerformed',
|
|
101
101
|
'duration', 'endDate', 'startDate', 'coaInfo',
|
|
102
102
|
'offers', 'additionalProperty'
|
|
103
103
|
]);
|
|
@@ -166,9 +166,9 @@ function createScreeningEvents(params, options) {
|
|
|
166
166
|
function minimizeSuperEvent(params) {
|
|
167
167
|
const { workPerformed,
|
|
168
168
|
// videoFormat,
|
|
169
|
-
startDate,
|
|
169
|
+
startDate, name, location, kanaName, identifier, endDate, duration, coaInfo, alternativeHeadline, typeOf, id } = params.superEvent;
|
|
170
170
|
return {
|
|
171
|
-
workPerformed, startDate,
|
|
171
|
+
workPerformed, startDate,
|
|
172
172
|
name, location, kanaName, identifier,
|
|
173
173
|
endDate, duration, coaInfo, alternativeHeadline,
|
|
174
174
|
typeOf, id
|
|
@@ -3,6 +3,7 @@ import type { SendEmailMessageActionRepo } from '../../repo/action/sendEmailMess
|
|
|
3
3
|
import type { MessageRepo } from '../../repo/message';
|
|
4
4
|
import type { ProjectRepo } from '../../repo/project';
|
|
5
5
|
import type { IntegrationSettingRepo } from '../../repo/setting/integration';
|
|
6
|
+
import type { SettingRepo } from '../../repo/setting';
|
|
6
7
|
/**
|
|
7
8
|
* https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html
|
|
8
9
|
*/
|
|
@@ -17,5 +18,6 @@ declare function sendEmailMessage(params: factory.task.sendEmailMessage.IActionA
|
|
|
17
18
|
message: MessageRepo;
|
|
18
19
|
project: ProjectRepo;
|
|
19
20
|
integrationSetting: IntegrationSettingRepo;
|
|
21
|
+
setting: SettingRepo;
|
|
20
22
|
}) => Promise<void>;
|
|
21
23
|
export { sendEmailMessage };
|
|
@@ -14,6 +14,28 @@ function createSendEmailMessageActionAttributes(params) {
|
|
|
14
14
|
...(typeof params.sameAs?.id === 'string') ? { sameAs: { id: params.sameAs.id, typeOf: 'Task' } } : undefined
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* 送信元アドレスを決定する
|
|
19
|
+
*/
|
|
20
|
+
function fixSenderEmail(project, emailMessage) {
|
|
21
|
+
return async (repos) => {
|
|
22
|
+
let serderEmail = emailMessage.sender.email;
|
|
23
|
+
if (typeof serderEmail !== 'string' || serderEmail === '') {
|
|
24
|
+
// 指定がなければ、強制的にグローバル設定を適用(2026-10-19~)
|
|
25
|
+
const setting = await repos.setting.findOne({ project: { id: { $eq: '*' } } }, ['defaultSenderEmail']);
|
|
26
|
+
if (typeof setting?.defaultSenderEmail !== 'string') {
|
|
27
|
+
throw new factory_1.factory.errors.NotFound('setting.defaultSenderEmail');
|
|
28
|
+
}
|
|
29
|
+
serderEmail = setting.defaultSenderEmail;
|
|
30
|
+
}
|
|
31
|
+
// プロジェクト設定対応(2023-08-21~)
|
|
32
|
+
const senderEmailByProjectSettings = project.settings?.sendEmailMessage?.sender?.email;
|
|
33
|
+
if (typeof senderEmailByProjectSettings === 'string' && senderEmailByProjectSettings !== '') {
|
|
34
|
+
serderEmail = senderEmailByProjectSettings;
|
|
35
|
+
}
|
|
36
|
+
return serderEmail;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
17
39
|
function createMailData(params) {
|
|
18
40
|
return async (repos) => {
|
|
19
41
|
const project = await repos.project.findById({
|
|
@@ -43,13 +65,8 @@ function createMailData(params) {
|
|
|
43
65
|
}
|
|
44
66
|
const emailMessageFrom = {
|
|
45
67
|
name: emailMessage.sender.name,
|
|
46
|
-
email: emailMessage
|
|
68
|
+
email: await fixSenderEmail(project, emailMessage)(repos)
|
|
47
69
|
};
|
|
48
|
-
// プロジェクト設定対応(2023-08-21~)
|
|
49
|
-
const senderEmailByProjectSettings = project.settings?.sendEmailMessage?.sender?.email;
|
|
50
|
-
if (typeof senderEmailByProjectSettings === 'string' && senderEmailByProjectSettings.length > 0) {
|
|
51
|
-
emailMessageFrom.email = senderEmailByProjectSettings;
|
|
52
|
-
}
|
|
53
70
|
const subject = emailMessage.about.name;
|
|
54
71
|
const emailDatas = (Array.isArray(emailMessage.toRecipient))
|
|
55
72
|
? emailMessage.toRecipient.map((toRecipient) => {
|
|
@@ -10,7 +10,7 @@ export declare function acceptOffer(params: {
|
|
|
10
10
|
id: string;
|
|
11
11
|
};
|
|
12
12
|
placeOrderId: string;
|
|
13
|
-
acceptedOffers: IMinimizedAcceptedOffer[] | factory.
|
|
13
|
+
acceptedOffers: IMinimizedAcceptedOffer[] | factory.acceptedOffer.ICOAAcceptedOffer[];
|
|
14
14
|
}): IAcceptOfferOperation<void>;
|
|
15
15
|
export declare function voidAcceptedOffer(params: {
|
|
16
16
|
/**
|
|
@@ -31,11 +31,11 @@ declare function acceptedOffers2authorizeResult(params: {
|
|
|
31
31
|
onlyPrice?: boolean;
|
|
32
32
|
};
|
|
33
33
|
type IObjectSubReservation = factory.assetTransaction.reserve.IObjectSubReservation;
|
|
34
|
-
export type IResultAcceptedOffer = Omit<factory.
|
|
35
|
-
itemOffered: factory.
|
|
34
|
+
export type IResultAcceptedOffer = Omit<factory.acceptedOffer.IOptimizedAcceptedOffer, 'priceSpecification'> & {
|
|
35
|
+
itemOffered: factory.acceptedOffer.IEventReservation;
|
|
36
36
|
offeredThrough: factory.offer.IOfferedThrough;
|
|
37
37
|
serialNumber: string;
|
|
38
|
-
priceSpecification?: factory.
|
|
38
|
+
priceSpecification?: factory.acceptedOffer.ITicketPriceSpecification;
|
|
39
39
|
};
|
|
40
40
|
declare function responseBody2acceptedOffers4result(params: {
|
|
41
41
|
issuedThrough: factory.assetTransaction.reserve.IIssuedThrough;
|
|
@@ -346,17 +346,10 @@ function createReservation(params) {
|
|
|
346
346
|
id: event.superEvent.id,
|
|
347
347
|
location: event.superEvent.location,
|
|
348
348
|
name: event.superEvent.name,
|
|
349
|
-
soundFormat: event.superEvent.soundFormat,
|
|
349
|
+
// soundFormat: event.superEvent.soundFormat, // discontinue(2026-10-05~)
|
|
350
350
|
workPerformed,
|
|
351
351
|
...(typeof event.superEvent.duration === 'string') ? { duration: event.superEvent.duration } : undefined,
|
|
352
352
|
...(event.superEvent.headline !== undefined) ? { headline: event.superEvent.headline } : undefined
|
|
353
|
-
// videoFormatをデータとしても廃止(万が一に備えてUSE_DEPRECATED_VIDEO_FORMATで再設定可能)(2026-02-03~)
|
|
354
|
-
// ...(USE_DEPRECATED_VIDEO_FORMAT)
|
|
355
|
-
// ? {
|
|
356
|
-
// // 現時点で型廃止済だがデータとしては互換性維持(2026-01-15~)
|
|
357
|
-
// videoFormat: (<any>event.superEvent).videoFormat
|
|
358
|
-
// }
|
|
359
|
-
// : undefined
|
|
360
353
|
};
|
|
361
354
|
const reservationFor = {
|
|
362
355
|
typeOf: event.typeOf,
|
|
@@ -25,7 +25,7 @@ declare function processStartReserve4chevre(params: {
|
|
|
25
25
|
acceptedOffers: factory.assetTransaction.reserve.IAcceptedTicketOfferWithoutDetail[];
|
|
26
26
|
event: Pick<IMinimizedIndividualEvent, 'id'> & {
|
|
27
27
|
offers?: {
|
|
28
|
-
validForMemberTier?:
|
|
28
|
+
validForMemberTier?: never;
|
|
29
29
|
identifier?: string;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
@@ -73,8 +73,6 @@ function issueEventOfferTicket(params) {
|
|
|
73
73
|
typeOf: seller.typeOf,
|
|
74
74
|
...(typeof seller.name.ja === 'string') ? { name: seller.name.ja } : undefined
|
|
75
75
|
};
|
|
76
|
-
// const validForMemberTierToken = ticketedOffer?.validForMemberTier?.token;
|
|
77
|
-
// const validForMemberProgramIdentifier = ticketedOffer?.validForMemberTier?.isTierOf.identifier;
|
|
78
76
|
const authorizationObject = {
|
|
79
77
|
typeOf: factory_1.factory.offerType.Offer,
|
|
80
78
|
itemOffered: {
|
|
@@ -88,15 +86,6 @@ function issueEventOfferTicket(params) {
|
|
|
88
86
|
...(typeof ticketedOffer?.token === 'string' && ticketedOffer.token !== '')
|
|
89
87
|
? { token: ticketedOffer.token }
|
|
90
88
|
: undefined,
|
|
91
|
-
// ...(typeof validForMemberTierToken === 'string' && validForMemberTierToken !== ''
|
|
92
|
-
// && typeof validForMemberProgramIdentifier === 'string' && validForMemberProgramIdentifier !== '')
|
|
93
|
-
// ? {
|
|
94
|
-
// validForMemberTier: {
|
|
95
|
-
// token: validForMemberTierToken,
|
|
96
|
-
// isTierOf: { identifier: validForMemberProgramIdentifier }
|
|
97
|
-
// }
|
|
98
|
-
// }
|
|
99
|
-
// : undefined
|
|
100
89
|
};
|
|
101
90
|
// validations(eventId,eventOfferIdentifier,offerToken...)
|
|
102
91
|
await (0, validateStartRequest_1.validEventOfferByApplicationExists)({
|
|
@@ -21,11 +21,9 @@ type ISearchEventTicketOffersOperation<T> = (repos: ISearchEventTicketOffersRepo
|
|
|
21
21
|
type ITicketOfferWithSortIndex = factory.product.ITicketOffer;
|
|
22
22
|
/**
|
|
23
23
|
* 興行オファー検索
|
|
24
|
+
* 常に、単価オファーのincludeInDataCatalog属性を使用し、カタログIDでフィルターして検索する
|
|
24
25
|
*/
|
|
25
26
|
declare function searchEventTicketOffers(params: {
|
|
26
|
-
/**
|
|
27
|
-
* 指定したIDのオファーだけ取得する場合
|
|
28
|
-
*/
|
|
29
27
|
/**
|
|
30
28
|
* どのイベントに対して
|
|
31
29
|
*/
|
|
@@ -50,7 +48,6 @@ declare function searchEventTicketOffers(params: {
|
|
|
50
48
|
limit: number;
|
|
51
49
|
page: number;
|
|
52
50
|
validateOfferRateLimit: boolean;
|
|
53
|
-
useIncludeInDataCatalog: boolean;
|
|
54
51
|
includePotentialPriceComponent: boolean;
|
|
55
52
|
}): ISearchEventTicketOffersOperation<{
|
|
56
53
|
ticketOffers: ITicketOfferWithSortIndex[];
|