@chevre/domain 28.0.0-alpha.4 → 28.0.0-alpha.40
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.js +1 -1
- 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/adminAcceptedOffer.d.ts +25 -12
- package/lib/chevre/repo/adminAcceptedOffer.js +20 -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 -7
- package/lib/chevre/repo/adminEvent.js +3 -9
- package/lib/chevre/repo/adminEventSeries.d.ts +67 -0
- package/lib/chevre/repo/adminEventSeries.js +178 -0
- 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 +20 -30
- package/lib/chevre/repo/aggregateEvent.js +0 -1
- package/lib/chevre/repo/categoryCode.js +0 -21
- package/lib/chevre/repo/event.d.ts +2 -2
- package/lib/chevre/repo/event.js +71 -110
- package/lib/chevre/repo/eventSeries.d.ts +5 -84
- package/lib/chevre/repo/eventSeries.js +21 -212
- 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 +21 -25
- 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/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/mongoose/schemas/transaction.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/transaction.js +51 -52
- 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 +24 -3
- package/lib/chevre/repo/place/screeningRoom.js +28 -17
- package/lib/chevre/repo/priceSpecification.d.ts +8 -8
- package/lib/chevre/repo/project.d.ts +2 -8
- package/lib/chevre/repo/project.js +0 -12
- 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/repo/transaction/placeOrder.d.ts +2 -3
- package/lib/chevre/repo/transaction/placeOrder.js +15 -36
- package/lib/chevre/repository.d.ts +30 -15
- package/lib/chevre/repository.js +63 -30
- package/lib/chevre/service/aggregation/event/aggregateOffers.js +1 -2
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +2 -2
- 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/validateAcceptedPaymentMethodIfNeeded.js +1 -2
- package/lib/chevre/service/assetTransaction/pay/start/preStart/validateSeller.js +2 -2
- 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.d.ts +2 -2
- package/lib/chevre/service/event/saveScreeningEventSeries.js +2 -3
- package/lib/chevre/service/event/saveScreeningEvents.d.ts +2 -0
- package/lib/chevre/service/event/saveScreeningEvents.js +4 -4
- package/lib/chevre/service/event.d.ts +2 -0
- package/lib/chevre/service/event.js +0 -1
- 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.js +4 -10
- 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/acceptOffer.js +0 -1
- 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 -21
- package/lib/chevre/service/offer.js +1 -2
- 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/importEventsFromCOA.js +2 -0
- package/lib/chevre/service/task/onResourceDeleted.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 +5 -3
- package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions.d.ts +1 -2
- package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions.js +0 -5
- 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.js +0 -5
- package/lib/chevre/service/transaction/returnOrder/preStart/factory.d.ts +1 -1
- package/lib/chevre/service/transaction/returnOrder/preStart.js +1 -2
- 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
|
@@ -39,13 +39,13 @@ export declare class TaskRepo {
|
|
|
39
39
|
id: string;
|
|
40
40
|
};
|
|
41
41
|
}): Promise<(import("mongoose").FlattenMaps<{
|
|
42
|
+
identifier?: string | undefined;
|
|
43
|
+
name: factory.taskName;
|
|
44
|
+
description?: string | undefined;
|
|
42
45
|
project: {
|
|
43
46
|
id: string;
|
|
44
47
|
typeOf: factory.organizationType.Project;
|
|
45
48
|
};
|
|
46
|
-
name: factory.taskName;
|
|
47
|
-
identifier?: string | undefined;
|
|
48
|
-
description?: string | undefined;
|
|
49
49
|
data: import("@chevre/factory/lib/chevre/task").IData;
|
|
50
50
|
status: factory.taskStatus;
|
|
51
51
|
runsAt: Date;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Connection, FilterQuery } from 'mongoose';
|
|
2
2
|
import { factory } from '../../factory';
|
|
3
|
-
type IKeyOfProjection = 'agent' | 'endDate' | 'expires' | 'project' | 'startDate' | 'status' | 'typeOf' | 'instrument' | 'object' | 'seller' | 'result' | '
|
|
3
|
+
type IKeyOfProjection = 'agent' | 'endDate' | 'expires' | 'project' | 'startDate' | 'status' | 'typeOf' | 'instrument' | 'object' | 'seller' | 'result' | 'tasksExportAction';
|
|
4
4
|
export type ITransactionInProgress = Pick<factory.transaction.placeOrder.ITransaction, IKeyOfProjection> & {
|
|
5
5
|
/**
|
|
6
6
|
* 取引ID
|
|
@@ -17,7 +17,7 @@ export type IPlaceOrder = Pick<factory.transaction.placeOrder.ITransaction, IKey
|
|
|
17
17
|
};
|
|
18
18
|
type IStartedPlaceOrderFields = 'expires' | 'id' | 'startDate' | 'status';
|
|
19
19
|
export type IStartedPlaceOrder = Pick<factory.transaction.placeOrder.ITransaction, IStartedPlaceOrderFields>;
|
|
20
|
-
type IFindParams = Pick<factory.transaction.placeOrder.ISearchConditions, 'agent' | 'ids' | 'limit' | 'object' | 'page' | 'project' | 'seller' | 'sort' | 'startFrom' | 'startThrough' | 'status' | 'statuses'
|
|
20
|
+
type IFindParams = Pick<factory.transaction.placeOrder.ISearchConditions, 'agent' | 'ids' | 'limit' | 'object' | 'page' | 'project' | 'seller' | 'sort' | 'startFrom' | 'startThrough' | 'status' | 'statuses'> & {};
|
|
21
21
|
/**
|
|
22
22
|
* 注文取引リポジトリ
|
|
23
23
|
*/
|
|
@@ -80,7 +80,6 @@ export declare class PlaceOrderRepo {
|
|
|
80
80
|
confirmationNumber: string;
|
|
81
81
|
};
|
|
82
82
|
result: factory.transaction.placeOrder.IResult;
|
|
83
|
-
potentialActions?: factory.transaction.placeOrder.IPotentialActions;
|
|
84
83
|
}): Promise<void>;
|
|
85
84
|
/**
|
|
86
85
|
* 取引を中止する
|
|
@@ -21,9 +21,9 @@ const AVAILABLE_PROJECT_FIELDS = [
|
|
|
21
21
|
'endDate',
|
|
22
22
|
'instrument',
|
|
23
23
|
'result',
|
|
24
|
-
'potentialActions',
|
|
24
|
+
// 'potentialActions', // discontinue(2026-09-14~)
|
|
25
25
|
// 'recipient',
|
|
26
|
-
'error',
|
|
26
|
+
// 'error', // discontinue(2026-09-14~)
|
|
27
27
|
'tasksExportAction',
|
|
28
28
|
];
|
|
29
29
|
/**
|
|
@@ -84,40 +84,19 @@ class PlaceOrderRepo {
|
|
|
84
84
|
if (Array.isArray(statusIn)) {
|
|
85
85
|
andConditions.push({ status: { $in: statusIn } });
|
|
86
86
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
'agent.typeOf': {
|
|
91
|
-
$exists: true,
|
|
92
|
-
$eq: params.agent.typeOf
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
if (Array.isArray(params.agent.ids)) {
|
|
97
|
-
andConditions.push({
|
|
98
|
-
'agent.id': {
|
|
99
|
-
$exists: true,
|
|
100
|
-
$in: params.agent.ids
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
if (Array.isArray(params.agent.identifiers)) {
|
|
105
|
-
andConditions.push({
|
|
106
|
-
'agent.identifier': {
|
|
107
|
-
$exists: true,
|
|
108
|
-
$in: params.agent.identifiers
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
const tasksExportActionStatusIn = params.tasksExportAction?.actionStatus?.$in;
|
|
114
|
-
if (Array.isArray(tasksExportActionStatusIn)) {
|
|
115
|
-
andConditions.push({ 'tasksExportAction.actionStatus': { $exists: true, $in: tasksExportActionStatusIn } });
|
|
116
|
-
}
|
|
117
|
-
const tasksExportActionStatusEq = params.tasksExportAction?.actionStatus?.$eq;
|
|
118
|
-
if (typeof tasksExportActionStatusEq === 'string') {
|
|
119
|
-
andConditions.push({ 'tasksExportAction.actionStatus': { $exists: true, $eq: tasksExportActionStatusEq } });
|
|
87
|
+
const agentIdentifierIn = params.agent?.identifiers;
|
|
88
|
+
if (Array.isArray(agentIdentifierIn)) {
|
|
89
|
+
andConditions.push({ 'agent.identifier': { $exists: true, $in: agentIdentifierIn } });
|
|
120
90
|
}
|
|
91
|
+
// discontinue(2026-09-11~)
|
|
92
|
+
// const tasksExportActionStatusIn = params.tasksExportAction?.actionStatus?.$in;
|
|
93
|
+
// if (Array.isArray(tasksExportActionStatusIn)) {
|
|
94
|
+
// andConditions.push({ 'tasksExportAction.actionStatus': { $exists: true, $in: tasksExportActionStatusIn } });
|
|
95
|
+
// }
|
|
96
|
+
// const tasksExportActionStatusEq = params.tasksExportAction?.actionStatus?.$eq;
|
|
97
|
+
// if (typeof tasksExportActionStatusEq === 'string') {
|
|
98
|
+
// andConditions.push({ 'tasksExportAction.actionStatus': { $exists: true, $eq: tasksExportActionStatusEq } });
|
|
99
|
+
// }
|
|
121
100
|
const sellerIdIn = params.seller?.ids;
|
|
122
101
|
if (Array.isArray(sellerIdIn)) {
|
|
123
102
|
andConditions.push({ 'seller.id': { $exists: true, $in: sellerIdIn } });
|
|
@@ -331,7 +310,7 @@ class PlaceOrderRepo {
|
|
|
331
310
|
'object.orderNumber': params.object.orderNumber, // add(2026-06-27~)
|
|
332
311
|
'object.confirmationNumber': params.object.confirmationNumber, // add(2026-07-08~)
|
|
333
312
|
result: params.result, // resultを更新
|
|
334
|
-
...((params.potentialActions !== undefined) && { potentialActions: params.potentialActions }) // support undefined(2026-07-17~)
|
|
313
|
+
// ...((params.potentialActions !== undefined) && { potentialActions: params.potentialActions }) // support undefined(2026-07-17~)
|
|
335
314
|
}, {
|
|
336
315
|
new: true,
|
|
337
316
|
projection: { _id: 1 }
|
|
@@ -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';
|
|
@@ -28,6 +30,8 @@ import type { AdminAssetTransactionRepo } from './repo/adminAssetTransaction';
|
|
|
28
30
|
import type { AdminCheckMovieTicketActionRepo } from './repo/adminCheckMovieTicketAction';
|
|
29
31
|
import type { AdminAsyncActionRepo } from './repo/adminAsyncAction';
|
|
30
32
|
import type { AdminEventRepo } from './repo/adminEvent';
|
|
33
|
+
import type { AdminEventSeriesRepo } from './repo/adminEventSeries';
|
|
34
|
+
import type { AdminPaymentServiceChannelRepo } from './repo/adminPaymentServiceChannel';
|
|
31
35
|
import type { AdminPendingReservationRepo } from './repo/adminPendingReservation';
|
|
32
36
|
import type { AdminScheduledTaskRepo } from './repo/adminScheduledTask';
|
|
33
37
|
import type { AdminTaskRepo } from './repo/adminTask';
|
|
@@ -75,11 +79,10 @@ import type { OrderRepo } from './repo/order';
|
|
|
75
79
|
import type { OrderInTransactionRepo } from './repo/orderInTransaction';
|
|
76
80
|
import type { PassportRepo } from './repo/passport';
|
|
77
81
|
import type { PaymentServiceRepo } from './repo/paymentService';
|
|
78
|
-
import type { PaymentServiceChannelRepo } from './repo/paymentServiceChannel';
|
|
79
82
|
import type { PaymentServiceProviderRepo } from './repo/paymentServiceProvider';
|
|
80
83
|
import type { PendingReservationRepo } from './repo/pendingReservation';
|
|
81
84
|
import type { EntranceGateRepo } from './repo/place/entranceGate';
|
|
82
|
-
import type {
|
|
85
|
+
import type { POSRepo } from './repo/place/pos';
|
|
83
86
|
import type { MovieTheaterRepo } from './repo/place/movieTheater';
|
|
84
87
|
import type { ScreeningRoomRepo } from './repo/place/screeningRoom';
|
|
85
88
|
import type { SeatRepo } from './repo/place/seat';
|
|
@@ -128,10 +131,6 @@ export type AccountingReport = AccountingReportRepo;
|
|
|
128
131
|
export declare namespace AccountingReport {
|
|
129
132
|
function createInstance(...params: ConstructorParameters<typeof AccountingReportRepo>): Promise<AccountingReportRepo>;
|
|
130
133
|
}
|
|
131
|
-
export type AccountTitle = AccountTitleRepo;
|
|
132
|
-
export declare namespace AccountTitle {
|
|
133
|
-
function createInstance(...params: ConstructorParameters<typeof AccountTitleRepo>): Promise<AccountTitleRepo>;
|
|
134
|
-
}
|
|
135
134
|
export declare namespace action {
|
|
136
135
|
type AcceptCOAOffer = AcceptCOAOfferActionRepo;
|
|
137
136
|
namespace AcceptCOAOffer {
|
|
@@ -198,6 +197,18 @@ export type AdditionalProperty = AdditionalPropertyRepo;
|
|
|
198
197
|
export declare namespace AdditionalProperty {
|
|
199
198
|
function createInstance(...params: ConstructorParameters<typeof AdditionalPropertyRepo>): Promise<AdditionalPropertyRepo>;
|
|
200
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
|
+
}
|
|
201
212
|
export type AdminAccountingReport = AdminAccountingReportRepo;
|
|
202
213
|
export declare namespace AdminAccountingReport {
|
|
203
214
|
function createInstance(...params: ConstructorParameters<typeof AdminAccountingReportRepo>): Promise<AdminAccountingReportRepo>;
|
|
@@ -226,6 +237,14 @@ export type AdminEvent = AdminEventRepo;
|
|
|
226
237
|
export declare namespace AdminEvent {
|
|
227
238
|
function createInstance(...params: ConstructorParameters<typeof AdminEventRepo>): Promise<AdminEventRepo>;
|
|
228
239
|
}
|
|
240
|
+
export type AdminEventSeries = AdminEventSeriesRepo;
|
|
241
|
+
export declare namespace AdminEventSeries {
|
|
242
|
+
function createInstance(...params: ConstructorParameters<typeof AdminEventSeriesRepo>): Promise<AdminEventSeriesRepo>;
|
|
243
|
+
}
|
|
244
|
+
export type AdminPaymentServiceChannel = AdminPaymentServiceChannelRepo;
|
|
245
|
+
export declare namespace AdminPaymentServiceChannel {
|
|
246
|
+
function createInstance(...params: ConstructorParameters<typeof AdminPaymentServiceChannelRepo>): Promise<AdminPaymentServiceChannelRepo>;
|
|
247
|
+
}
|
|
229
248
|
export type AdminPendingReservation = AdminPendingReservationRepo;
|
|
230
249
|
export declare namespace AdminPendingReservation {
|
|
231
250
|
function createInstance(...params: ConstructorParameters<typeof AdminPendingReservationRepo>): Promise<AdminPendingReservationRepo>;
|
|
@@ -424,10 +443,6 @@ export type PaymentService = PaymentServiceRepo;
|
|
|
424
443
|
export declare namespace PaymentService {
|
|
425
444
|
function createInstance(...params: ConstructorParameters<typeof PaymentServiceRepo>): Promise<PaymentServiceRepo>;
|
|
426
445
|
}
|
|
427
|
-
export type PaymentServiceChannel = PaymentServiceChannelRepo;
|
|
428
|
-
export declare namespace PaymentServiceChannel {
|
|
429
|
-
function createInstance(...params: ConstructorParameters<typeof PaymentServiceChannelRepo>): Promise<PaymentServiceChannelRepo>;
|
|
430
|
-
}
|
|
431
446
|
export type PaymentServiceProvider = PaymentServiceProviderRepo;
|
|
432
447
|
export declare namespace PaymentServiceProvider {
|
|
433
448
|
function createInstance(...params: ConstructorParameters<typeof PaymentServiceProviderRepo>): Promise<PaymentServiceProviderRepo>;
|
|
@@ -448,12 +463,12 @@ export declare namespace place {
|
|
|
448
463
|
namespace EntranceGate {
|
|
449
464
|
function createInstance(...params: ConstructorParameters<typeof EntranceGateRepo>): Promise<EntranceGateRepo>;
|
|
450
465
|
}
|
|
451
|
-
type
|
|
466
|
+
type POS = POSRepo;
|
|
452
467
|
/**
|
|
453
|
-
*
|
|
468
|
+
* 施設のPOSリポジトリ
|
|
454
469
|
*/
|
|
455
|
-
namespace
|
|
456
|
-
function createInstance(...params: ConstructorParameters<typeof
|
|
470
|
+
namespace POS {
|
|
471
|
+
function createInstance(...params: ConstructorParameters<typeof POSRepo>): Promise<POSRepo>;
|
|
457
472
|
}
|
|
458
473
|
type MovieTheater = MovieTheaterRepo;
|
|
459
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;
|
|
@@ -291,6 +313,28 @@ var AdminEvent;
|
|
|
291
313
|
}
|
|
292
314
|
AdminEvent.createInstance = createInstance;
|
|
293
315
|
})(AdminEvent || (exports.AdminEvent = AdminEvent = {}));
|
|
316
|
+
var AdminEventSeries;
|
|
317
|
+
(function (AdminEventSeries) {
|
|
318
|
+
let repo;
|
|
319
|
+
async function createInstance(...params) {
|
|
320
|
+
if (repo === undefined) {
|
|
321
|
+
repo = (await import('./repo/adminEventSeries.js')).AdminEventSeriesRepo;
|
|
322
|
+
}
|
|
323
|
+
return new repo(...params);
|
|
324
|
+
}
|
|
325
|
+
AdminEventSeries.createInstance = createInstance;
|
|
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 = {}));
|
|
294
338
|
var AdminPendingReservation;
|
|
295
339
|
(function (AdminPendingReservation) {
|
|
296
340
|
let repo;
|
|
@@ -833,17 +877,6 @@ var PaymentService;
|
|
|
833
877
|
}
|
|
834
878
|
PaymentService.createInstance = createInstance;
|
|
835
879
|
})(PaymentService || (exports.PaymentService = PaymentService = {}));
|
|
836
|
-
var PaymentServiceChannel;
|
|
837
|
-
(function (PaymentServiceChannel) {
|
|
838
|
-
let repo;
|
|
839
|
-
async function createInstance(...params) {
|
|
840
|
-
if (repo === undefined) {
|
|
841
|
-
repo = (await import('./repo/paymentServiceChannel.js')).PaymentServiceChannelRepo;
|
|
842
|
-
}
|
|
843
|
-
return new repo(...params);
|
|
844
|
-
}
|
|
845
|
-
PaymentServiceChannel.createInstance = createInstance;
|
|
846
|
-
})(PaymentServiceChannel || (exports.PaymentServiceChannel = PaymentServiceChannel = {}));
|
|
847
880
|
var PaymentServiceProvider;
|
|
848
881
|
(function (PaymentServiceProvider) {
|
|
849
882
|
let repo;
|
|
@@ -894,19 +927,19 @@ var place;
|
|
|
894
927
|
EntranceGate.createInstance = createInstance;
|
|
895
928
|
})(EntranceGate = place.EntranceGate || (place.EntranceGate = {}));
|
|
896
929
|
/**
|
|
897
|
-
*
|
|
930
|
+
* 施設のPOSリポジトリ
|
|
898
931
|
*/
|
|
899
|
-
let
|
|
900
|
-
(function (
|
|
932
|
+
let POS;
|
|
933
|
+
(function (POS) {
|
|
901
934
|
let repo;
|
|
902
935
|
async function createInstance(...params) {
|
|
903
936
|
if (repo === undefined) {
|
|
904
|
-
repo = (await import('./repo/place/
|
|
937
|
+
repo = (await import('./repo/place/pos.js')).POSRepo;
|
|
905
938
|
}
|
|
906
939
|
return new repo(...params);
|
|
907
940
|
}
|
|
908
|
-
|
|
909
|
-
})(
|
|
941
|
+
POS.createInstance = createInstance;
|
|
942
|
+
})(POS = place.POS || (place.POS = {}));
|
|
910
943
|
/**
|
|
911
944
|
* 施設リポジトリ
|
|
912
945
|
*/
|
|
@@ -22,8 +22,7 @@ function aggregateOffers(params) {
|
|
|
22
22
|
const eventCapacity = (await repos.event.projectEventFields({
|
|
23
23
|
limit: 1,
|
|
24
24
|
page: 1,
|
|
25
|
-
id: { $eq: params.id }
|
|
26
|
-
typeOf: params.typeOf
|
|
25
|
+
id: { $eq: params.id }
|
|
27
26
|
}, ['maximumAttendeeCapacity', 'remainingAttendeeCapacity'])).shift();
|
|
28
27
|
debug('processing aggregateOffersByEvent...', eventCapacity);
|
|
29
28
|
await aggregateOffersByEvent({
|
|
@@ -53,7 +53,6 @@ function aggregateScreeningEvent(params) {
|
|
|
53
53
|
limit: 100,
|
|
54
54
|
page: 1,
|
|
55
55
|
project: { id: { $eq: event.project.id } },
|
|
56
|
-
typeOf: event.typeOf,
|
|
57
56
|
eventStatuses: [factory_1.factory.eventStatusType.EventScheduled],
|
|
58
57
|
startFrom: startFrom,
|
|
59
58
|
startThrough: startThrough,
|
|
@@ -209,7 +208,8 @@ function aggregateReservationByEvent(params) {
|
|
|
209
208
|
reservationStatuses: [factory_1.factory.reservationStatusType.ReservationConfirmed]
|
|
210
209
|
});
|
|
211
210
|
// maximumAttendeeCapacityを決定
|
|
212
|
-
let eventLocationMaximumAttendeeCapacity
|
|
211
|
+
let eventLocationMaximumAttendeeCapacity;
|
|
212
|
+
// let eventLocationMaximumAttendeeCapacity: number | undefined = params.event.location.maximumAttendeeCapacity;
|
|
213
213
|
if (typeof params.event.maximumPhysicalAttendeeCapacity === 'number') {
|
|
214
214
|
eventLocationMaximumAttendeeCapacity = params.event.maximumPhysicalAttendeeCapacity;
|
|
215
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;
|
|
@@ -81,8 +81,7 @@ function validateAcceptedPaymentMethodIfNeeded(params
|
|
|
81
81
|
const eventSeriesIds = (await repos.event.projectEventFields({
|
|
82
82
|
limit: checkingEventIds.length,
|
|
83
83
|
page: 1,
|
|
84
|
-
id: { $in: checkingEventIds }
|
|
85
|
-
typeOf: factory_1.factory.eventType.ScreeningEvent
|
|
84
|
+
id: { $in: checkingEventIds }
|
|
86
85
|
}, ['superEvent'])).map((event) => event.superEvent.id);
|
|
87
86
|
if (eventSeriesIds.length !== checkingEventIds.length) {
|
|
88
87
|
throw new factory_1.factory.errors.NotFound(factory_1.factory.eventType.ScreeningEvent);
|
|
@@ -21,7 +21,7 @@ function validateSeller(params) {
|
|
|
21
21
|
// 販売者の対応決済方法かどうか確認
|
|
22
22
|
// const paymentAccepted = seller.paymentAccepted?.some((a) => a.paymentMethodType === paymentMethodType);
|
|
23
23
|
const paymentAccepted = await repos.paymentAccepted.isAcceptedBySeller({
|
|
24
|
-
|
|
24
|
+
sellerId,
|
|
25
25
|
codeValue: paymentMethodType
|
|
26
26
|
});
|
|
27
27
|
if (paymentAccepted !== true) {
|
|
@@ -33,7 +33,7 @@ function validateSeller(params) {
|
|
|
33
33
|
// 販売者の対応決済方法かどうか確認
|
|
34
34
|
// const paymentAccepted = seller.paymentAccepted?.some((a) => a.paymentMethodType === paymentMethodType);
|
|
35
35
|
const paymentAccepted = await repos.paymentAccepted.isAcceptedBySeller({
|
|
36
|
-
|
|
36
|
+
sellerId,
|
|
37
37
|
codeValue: paymentMethodType
|
|
38
38
|
});
|
|
39
39
|
if (paymentAccepted !== true) {
|
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { COA } from '@motionpicture/coa-service';
|
|
2
2
|
import type { CategoryCodeRepo } from '../../repo/categoryCode';
|
|
3
3
|
import type { CreativeWorkRepo } from '../../repo/creativeWork';
|
|
4
|
-
import type {
|
|
4
|
+
import type { AdminEventSeriesRepo } from '../../repo/adminEventSeries';
|
|
5
5
|
import { factory } from '../../factory';
|
|
6
6
|
type IMovieTheater = Pick<factory.place.movieTheater.IPlace, 'id' | 'typeOf' | 'branchCode' | 'name' | 'kanaName'>;
|
|
7
7
|
/**
|
|
@@ -46,7 +46,7 @@ declare function saveScreeningEventSeries(params: {
|
|
|
46
46
|
}): (repos: {
|
|
47
47
|
categoryCode: CategoryCodeRepo;
|
|
48
48
|
creativeWork: CreativeWorkRepo;
|
|
49
|
-
|
|
49
|
+
adminEventSeries: AdminEventSeriesRepo;
|
|
50
50
|
masterService: COA.service.Master;
|
|
51
51
|
}) => Promise<{
|
|
52
52
|
screeningEventSerieses: factory.eventSeries.IEvent[];
|
|
@@ -121,7 +121,7 @@ function saveScreeningEventSeries(params, options) {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
debug('saving', saveParams.length, 'ScreeningEventSeries...');
|
|
124
|
-
await repos.
|
|
124
|
+
await repos.adminEventSeries.upsertManyEventSeriesById4sskts(saveParams);
|
|
125
125
|
debug('saved', saveParams.length, 'ScreeningEventSeries');
|
|
126
126
|
savedEventsCount = saveParams.length;
|
|
127
127
|
// コンテンツ永続化(2023-10-23~)
|
|
@@ -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(),
|
|
@@ -2,6 +2,7 @@ import type { COA } from '@motionpicture/coa-service';
|
|
|
2
2
|
import type { CategoryCodeRepo } from '../../repo/categoryCode';
|
|
3
3
|
import type { CreativeWorkRepo } from '../../repo/creativeWork';
|
|
4
4
|
import type { AdminEventRepo } from '../../repo/adminEvent';
|
|
5
|
+
import type { AdminEventSeriesRepo } from '../../repo/adminEventSeries';
|
|
5
6
|
import type { EventSeriesRepo } from '../../repo/eventSeries';
|
|
6
7
|
import { factory } from '../../factory';
|
|
7
8
|
type IMovieTheater = Pick<factory.place.movieTheater.IPlace, 'id' | 'typeOf' | 'branchCode' | 'name' | 'kanaName'>;
|
|
@@ -29,6 +30,7 @@ declare function saveScreeningEvents(params: {
|
|
|
29
30
|
categoryCode: CategoryCodeRepo;
|
|
30
31
|
creativeWork: CreativeWorkRepo;
|
|
31
32
|
adminEvent: AdminEventRepo;
|
|
33
|
+
adminEventSeries: AdminEventSeriesRepo;
|
|
32
34
|
eventSeries: EventSeriesRepo;
|
|
33
35
|
masterService: COA.service.Master;
|
|
34
36
|
}) => Promise<factory.event.screeningEvent.IEvent[]>;
|
|
@@ -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
|
|
@@ -6,6 +6,7 @@ import type { UpdateActionRepo } from '../repo/action/update';
|
|
|
6
6
|
import type { CategoryCodeRepo } from '../repo/categoryCode';
|
|
7
7
|
import type { CreativeWorkRepo } from '../repo/creativeWork';
|
|
8
8
|
import type { AdminEventRepo } from '../repo/adminEvent';
|
|
9
|
+
import type { AdminEventSeriesRepo } from '../repo/adminEventSeries';
|
|
9
10
|
import type { EventRepo } from '../repo/event';
|
|
10
11
|
import type { EventSeriesRepo } from '../repo/eventSeries';
|
|
11
12
|
import type { MovieTheaterRepo } from '../repo/place/movieTheater';
|
|
@@ -24,6 +25,7 @@ declare function importFromCOA(params: IImportFromCOAParams): (repos: {
|
|
|
24
25
|
categoryCode: CategoryCodeRepo;
|
|
25
26
|
creativeWork: CreativeWorkRepo;
|
|
26
27
|
adminEvent: AdminEventRepo;
|
|
28
|
+
adminEventSeries: AdminEventSeriesRepo;
|
|
27
29
|
event: EventRepo;
|
|
28
30
|
eventSeries: EventSeriesRepo;
|
|
29
31
|
movieTheater: MovieTheaterRepo;
|
|
@@ -153,7 +153,6 @@ function cancelDeletedEvents(params) {
|
|
|
153
153
|
// COAから削除されたイベントをキャンセル済ステータスへ変更
|
|
154
154
|
const ids = await repos.event.searchEventIds({
|
|
155
155
|
project: { id: { $eq: params.project.id } },
|
|
156
|
-
typeOf: factory_1.factory.eventType.ScreeningEvent,
|
|
157
156
|
superEvent: {
|
|
158
157
|
locationBranchCodes: [params.locationBranchCode]
|
|
159
158
|
},
|
|
@@ -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 };
|