@chevre/domain 21.2.0-alpha.98 → 21.2.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/example/src/chevre/aggregateEventReservation.ts +1 -1
- package/example/src/chevre/aggregateSellerPaymentAccepted.ts +27 -0
- package/example/src/chevre/aggregation/aggregateSystem.ts +53 -22
- package/example/src/chevre/countDelayedTasks.ts +7 -2
- package/example/src/chevre/createManyEventsIfNotExist.ts +199 -46
- package/example/src/chevre/findScreeningRoomsByBranchCode.ts +4 -3
- package/example/src/chevre/giveUpStartDatePassedCertainPeriod.ts +56 -0
- package/example/src/chevre/lockStockHolder.ts +5 -2
- package/example/src/chevre/migrateCategoryCodeAdditionalProperties.ts +116 -0
- package/example/src/chevre/migrateScreeningEventSeriesVersion.ts +79 -0
- package/example/src/chevre/processPay.ts +5 -2
- package/example/src/chevre/processRegisterMembership.ts +8 -4
- package/example/src/chevre/processRegisterPaymentCard.ts +8 -4
- package/example/src/chevre/processReserve.ts +1 -1
- package/example/src/chevre/searchAbortedTasks.ts +4 -6
- package/example/src/chevre/searchActions.ts +33 -0
- package/example/src/chevre/searchEventSeats.ts +5 -2
- package/example/src/chevre/searchHoldReservations.ts +38 -0
- package/example/src/chevre/searchPermissions.ts +54 -0
- package/example/src/chevre/searchScreeningRooms.ts +35 -0
- package/example/src/chevre/sendEmailMessage.ts +1 -2
- package/example/src/chevre/syncScreeningRooms.ts +22 -0
- package/example/src/chevre/syncScreeningRoomsAll.ts +44 -0
- package/example/src/chevre/unsetContainsInPlaceFromMovieTheater.ts +41 -0
- package/lib/chevre/factory/order.d.ts +4 -1
- package/lib/chevre/factory/order.js +19 -6
- package/lib/chevre/repo/account.js +3 -2
- package/lib/chevre/repo/accountTransaction.js +2 -1
- package/lib/chevre/repo/accountingReport.d.ts +1 -3
- package/lib/chevre/repo/action.d.ts +50 -1
- package/lib/chevre/repo/action.js +103 -34
- package/lib/chevre/repo/additionalProperty.js +2 -1
- package/lib/chevre/repo/aggregation.d.ts +3 -0
- package/lib/chevre/repo/aggregation.js +3 -0
- package/lib/chevre/repo/assetTransaction.js +6 -5
- package/lib/chevre/repo/categoryCode.d.ts +1 -1
- package/lib/chevre/repo/categoryCode.js +37 -25
- package/lib/chevre/repo/code.js +3 -2
- package/lib/chevre/repo/comment.js +2 -1
- package/lib/chevre/repo/creativeWork.d.ts +1 -1
- package/lib/chevre/repo/creativeWork.js +35 -12
- package/lib/chevre/repo/customer.js +2 -1
- package/lib/chevre/repo/emailMessage.js +2 -1
- package/lib/chevre/repo/event.d.ts +30 -2
- package/lib/chevre/repo/event.js +87 -36
- package/lib/chevre/repo/member.d.ts +14 -0
- package/lib/chevre/repo/member.js +31 -3
- package/lib/chevre/repo/merchantReturnPolicy.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/action.js +12 -0
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +3 -3
- package/lib/chevre/repo/mongoose/schemas/holdReservation.d.ts +75 -0
- package/lib/chevre/repo/mongoose/schemas/holdReservation.js +93 -0
- package/lib/chevre/repo/mongoose/schemas/offer.d.ts +3 -3
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +21 -21
- package/lib/chevre/repo/mongoose/schemas/place.d.ts +6 -0
- package/lib/chevre/repo/mongoose/schemas/place.js +16 -1
- package/lib/chevre/repo/mongoose/schemas/product.js +6 -0
- package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +9 -9
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +3 -3
- package/lib/chevre/repo/offer.js +3 -2
- package/lib/chevre/repo/offerCatalog.js +0 -27
- package/lib/chevre/repo/offerItemCondition.js +2 -1
- package/lib/chevre/repo/order.js +8 -7
- package/lib/chevre/repo/ownershipInfo.js +2 -7
- package/lib/chevre/repo/paymentServiceProvider.d.ts +65 -0
- package/lib/chevre/repo/paymentServiceProvider.js +156 -0
- package/lib/chevre/repo/place.d.ts +203 -27
- package/lib/chevre/repo/place.js +1726 -694
- package/lib/chevre/repo/priceSpecification.js +3 -2
- package/lib/chevre/repo/product.d.ts +5 -3
- package/lib/chevre/repo/product.js +92 -5
- package/lib/chevre/repo/project.js +2 -1
- package/lib/chevre/repo/reservation.d.ts +9 -1
- package/lib/chevre/repo/reservation.js +29 -20
- package/lib/chevre/repo/role.d.ts +7 -0
- package/lib/chevre/repo/role.js +39 -2
- package/lib/chevre/repo/seller.d.ts +21 -1
- package/lib/chevre/repo/seller.js +59 -4
- package/lib/chevre/repo/serviceOutput.js +2 -1
- package/lib/chevre/repo/stockHolder.d.ts +143 -7
- package/lib/chevre/repo/stockHolder.js +622 -104
- package/lib/chevre/repo/task.d.ts +12 -1
- package/lib/chevre/repo/task.js +17 -7
- package/lib/chevre/repo/transaction.js +6 -5
- package/lib/chevre/repo/trip.js +2 -1
- package/lib/chevre/repository.d.ts +6 -0
- package/lib/chevre/repository.js +8 -1
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +18 -8
- package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.js +19 -8
- package/lib/chevre/service/aggregation/system.d.ts +43 -1
- package/lib/chevre/service/aggregation/system.js +112 -2
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
- package/lib/chevre/service/assetTransaction/pay/account/validation.js +1 -1
- package/lib/chevre/service/assetTransaction/pay.d.ts +5 -1
- package/lib/chevre/service/assetTransaction/pay.js +7 -7
- package/lib/chevre/service/assetTransaction/refund.js +1 -1
- package/lib/chevre/service/assetTransaction/reserve.js +10 -3
- package/lib/chevre/service/event.d.ts +3 -0
- package/lib/chevre/service/event.js +52 -21
- package/lib/chevre/service/iam.d.ts +6 -2
- package/lib/chevre/service/iam.js +23 -9
- package/lib/chevre/service/offer/event/factory.js +22 -13
- package/lib/chevre/service/offer/event/importFromCOA.js +2 -2
- package/lib/chevre/service/offer/eventServiceByCOA/factory.js +15 -8
- package/lib/chevre/service/offer/eventServiceByCOA.js +7 -9
- package/lib/chevre/service/offer/product/factory.js +13 -6
- package/lib/chevre/service/offer/product.js +2 -2
- package/lib/chevre/service/offer.d.ts +16 -8
- package/lib/chevre/service/offer.js +71 -8
- package/lib/chevre/service/order/createAccountingReportIfNotExist.js +31 -17
- package/lib/chevre/service/order/onOrderStatusChanged/factory.js +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged.js +2 -2
- package/lib/chevre/service/order/placeOrder.js +4 -4
- package/lib/chevre/service/order/returnOrder.js +1 -1
- package/lib/chevre/service/order/sendOrder.js +3 -3
- package/lib/chevre/service/payment/any/onPaymentStatusChanged.js +4 -6
- package/lib/chevre/service/payment/any/onRefund.js +46 -42
- package/lib/chevre/service/payment/any.d.ts +9 -6
- package/lib/chevre/service/payment/any.js +6 -2
- package/lib/chevre/service/payment/creditCard.js +2 -2
- package/lib/chevre/service/payment/movieTicket/checkByIdentifier.d.ts +8 -7
- package/lib/chevre/service/payment/movieTicket/factory.d.ts +1 -1
- package/lib/chevre/service/payment/movieTicket/getCredentials.d.ts +1 -1
- package/lib/chevre/service/payment/movieTicket/getCredentials.js +1 -1
- package/lib/chevre/service/payment/movieTicket/validation.d.ts +3 -4
- package/lib/chevre/service/payment/movieTicket/validation.js +53 -12
- package/lib/chevre/service/payment/movieTicket.d.ts +1 -1
- package/lib/chevre/service/payment/movieTicket.js +4 -4
- package/lib/chevre/service/reserve/cancelReservation.js +15 -3
- package/lib/chevre/service/reserve/confirmReservation.js +19 -11
- package/lib/chevre/service/task/aggregateScreeningEvent.js +1 -1
- package/lib/chevre/service/task/cancelPendingReservation.js +1 -1
- package/lib/chevre/service/task/cancelReservation.js +1 -1
- package/lib/chevre/service/task/deleteTransaction.js +2 -0
- package/lib/chevre/service/task/onEventChanged.d.ts +7 -0
- package/lib/chevre/service/task/onEventChanged.js +29 -0
- package/lib/chevre/service/task/onResourceUpdated.d.ts +7 -0
- package/lib/chevre/service/task/onResourceUpdated.js +396 -0
- package/lib/chevre/service/task/syncScreeningRooms.d.ts +7 -0
- package/lib/chevre/service/task/syncScreeningRooms.js +24 -0
- package/lib/chevre/service/task/voidReserveTransaction.js +1 -1
- package/lib/chevre/service/transaction/deleteTransaction.d.ts +2 -0
- package/lib/chevre/service/transaction/deleteTransaction.js +129 -1
- package/lib/chevre/service/transaction/moneyTransfer/exportTasks/factory.js +1 -0
- package/lib/chevre/service/transaction/moneyTransfer/factory.d.ts +1 -1
- package/lib/chevre/service/transaction/moneyTransfer.js +1 -1
- package/lib/chevre/service/transaction/orderProgramMembership/findCreditCard.js +1 -1
- package/lib/chevre/service/transaction/orderProgramMembership/findPaymentCardPermit.js +1 -1
- package/lib/chevre/service/transaction/orderProgramMembership.js +7 -4
- package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +1 -0
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/givePointAward.js +1 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.js +1 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/registerService.js +1 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/sendEmailMessage.js +4 -4
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions.js +3 -4
- package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.js +8 -12
- package/lib/chevre/service/transaction/placeOrderInProgress.js +6 -4
- package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +1 -0
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnMoneyTransfer.js +2 -2
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +5 -5
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPointAward.js +2 -2
- package/lib/chevre/service/transaction/returnOrder/potentialActions/sendEmailMessage.js +3 -3
- package/lib/chevre/service/transaction/returnOrder/potentialActions.js +1 -1
- package/lib/chevre/service/transaction/returnOrder.js +3 -1
- package/lib/chevre/settings.d.ts +11 -0
- package/lib/chevre/settings.js +44 -2
- package/package.json +3 -3
- package/example/src/chevre/eventCatalog2eventService.ts +0 -123
- package/example/src/chevre/migrateOrderAdditionalProperties.ts +0 -85
- package/example/src/chevre/migrateStockHolderKeys.ts +0 -89
- package/example/src/chevre/searchAssetTransactions.ts +0 -30
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MongoRepository = void 0;
|
|
13
|
+
const mongoose_1 = require("mongoose");
|
|
14
|
+
const product_1 = require("./mongoose/schemas/product");
|
|
15
|
+
const factory = require("../factory");
|
|
16
|
+
const settings_1 = require("../settings");
|
|
17
|
+
/**
|
|
18
|
+
* 決済サービスプロバイダーリポジトリ
|
|
19
|
+
*/
|
|
20
|
+
class MongoRepository {
|
|
21
|
+
constructor(connection) {
|
|
22
|
+
this.productModel = connection.model(product_1.modelName, product_1.schema);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 決済サービスプロバイダー検索
|
|
26
|
+
*/
|
|
27
|
+
search(params) {
|
|
28
|
+
var _a, _b, _c, _d, _e;
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
const matchStages = [];
|
|
31
|
+
const projectIdEq = (_b = (_a = params.project) === null || _a === void 0 ? void 0 : _a.id) === null || _b === void 0 ? void 0 : _b.$eq;
|
|
32
|
+
if (typeof projectIdEq === 'string') {
|
|
33
|
+
matchStages.push({ $match: { 'project.id': { $eq: projectIdEq } } });
|
|
34
|
+
}
|
|
35
|
+
const idEq = (_c = params.id) === null || _c === void 0 ? void 0 : _c.$eq;
|
|
36
|
+
if (typeof idEq === 'string') {
|
|
37
|
+
matchStages.push({ $match: { _id: { $eq: new mongoose_1.Types.ObjectId(idEq) } } });
|
|
38
|
+
}
|
|
39
|
+
const providerIdEq = (_e = (_d = params.provider) === null || _d === void 0 ? void 0 : _d.id) === null || _e === void 0 ? void 0 : _e.$eq;
|
|
40
|
+
if (typeof providerIdEq === 'string') {
|
|
41
|
+
matchStages.push({ $match: { 'provider.id': { $exists: true, $eq: providerIdEq } } });
|
|
42
|
+
}
|
|
43
|
+
const aggregate = this.productModel.aggregate([
|
|
44
|
+
{ $sort: { productID: factory.sortType.Ascending } },
|
|
45
|
+
{
|
|
46
|
+
$unwind: {
|
|
47
|
+
path: '$provider'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
...matchStages,
|
|
51
|
+
{
|
|
52
|
+
$project: {
|
|
53
|
+
_id: 0,
|
|
54
|
+
provider: {
|
|
55
|
+
id: '$provider.id',
|
|
56
|
+
name: '$provider.name',
|
|
57
|
+
credentials: '$provider.credentials'
|
|
58
|
+
},
|
|
59
|
+
id: { $toString: '$_id' },
|
|
60
|
+
name: '$name',
|
|
61
|
+
typeOf: '$typeOf'
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]);
|
|
65
|
+
if (typeof params.limit === 'number' && params.limit > 0) {
|
|
66
|
+
const page = (typeof params.page === 'number' && params.page > 0) ? params.page : 1;
|
|
67
|
+
aggregate.limit(params.limit * page)
|
|
68
|
+
.skip(params.limit * (page - 1));
|
|
69
|
+
}
|
|
70
|
+
return aggregate.option({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
71
|
+
.exec();
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
create(params) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
// 決済サービス存在確認
|
|
77
|
+
let doc = yield this.productModel.findOne({
|
|
78
|
+
typeOf: { $eq: params.providesPaymentService.typeOf },
|
|
79
|
+
'project.id': { $eq: params.project.id },
|
|
80
|
+
_id: { $eq: params.providesPaymentService.id }
|
|
81
|
+
}, { _id: 1, typeOf: 1 })
|
|
82
|
+
.exec();
|
|
83
|
+
if (doc === null) {
|
|
84
|
+
throw new factory.errors.NotFound(params.providesPaymentService.typeOf);
|
|
85
|
+
}
|
|
86
|
+
const creatingProvider = {
|
|
87
|
+
credentials: params.credentials,
|
|
88
|
+
id: params.id,
|
|
89
|
+
name: params.name,
|
|
90
|
+
typeOf: params.typeOf
|
|
91
|
+
};
|
|
92
|
+
doc = yield this.productModel.findOneAndUpdate({
|
|
93
|
+
typeOf: { $eq: params.providesPaymentService.typeOf },
|
|
94
|
+
'project.id': { $eq: params.project.id },
|
|
95
|
+
_id: { $eq: params.providesPaymentService.id },
|
|
96
|
+
'provider.id': { $ne: params.id }
|
|
97
|
+
}, {
|
|
98
|
+
$push: { provider: creatingProvider }
|
|
99
|
+
}, {
|
|
100
|
+
new: true,
|
|
101
|
+
projection: { _id: 1 }
|
|
102
|
+
})
|
|
103
|
+
.exec();
|
|
104
|
+
// 存在しなければプロバイダーID重複
|
|
105
|
+
if (doc === null) {
|
|
106
|
+
throw new factory.errors.AlreadyInUse('provider', ['id']);
|
|
107
|
+
}
|
|
108
|
+
return doc.toObject();
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
update(params) {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
const doc = yield this.productModel.findOneAndUpdate({
|
|
114
|
+
typeOf: { $eq: params.providesPaymentService.typeOf },
|
|
115
|
+
'project.id': { $eq: params.project.id },
|
|
116
|
+
_id: { $eq: params.providesPaymentService.id },
|
|
117
|
+
'provider.id': { $eq: params.id }
|
|
118
|
+
}, Object.assign(Object.assign({ 'provider.$[seller].id': params.id }, (params.name !== undefined && params.name !== null)
|
|
119
|
+
? { 'provider.$[seller].name': params.name }
|
|
120
|
+
: undefined), (params.credentials !== undefined && params.credentials !== null)
|
|
121
|
+
? { 'provider.$[seller].credentials': params.credentials }
|
|
122
|
+
: undefined), {
|
|
123
|
+
new: true,
|
|
124
|
+
arrayFilters: [
|
|
125
|
+
{ 'seller.id': { $eq: params.id } }
|
|
126
|
+
],
|
|
127
|
+
projection: { _id: 1 }
|
|
128
|
+
})
|
|
129
|
+
.exec();
|
|
130
|
+
if (doc === null) {
|
|
131
|
+
throw new factory.errors.NotFound(params.providesPaymentService.typeOf);
|
|
132
|
+
}
|
|
133
|
+
return doc.toObject();
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
deleteOne(params) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const doc = yield this.productModel.findOneAndUpdate({
|
|
139
|
+
typeOf: { $eq: params.providesPaymentService.typeOf },
|
|
140
|
+
'project.id': { $eq: params.project.id },
|
|
141
|
+
_id: { $eq: params.providesPaymentService.id },
|
|
142
|
+
'provider.id': { $eq: params.id }
|
|
143
|
+
}, {
|
|
144
|
+
$pull: { provider: { id: params.id } }
|
|
145
|
+
}, {
|
|
146
|
+
projection: { _id: 1 }
|
|
147
|
+
})
|
|
148
|
+
.exec();
|
|
149
|
+
if (doc === null) {
|
|
150
|
+
throw new factory.errors.NotFound(params.providesPaymentService.typeOf);
|
|
151
|
+
}
|
|
152
|
+
return doc.toObject();
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.MongoRepository = MongoRepository;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
import { Connection } from 'mongoose';
|
|
26
26
|
import * as factory from '../factory';
|
|
27
27
|
type IScreeningRoomSectionWithoutContainsPlace = Omit<factory.place.screeningRoomSection.IPlace, 'containsPlace'>;
|
|
28
|
-
export type IScreeningRoomFoundByBranchCode = Pick<factory.place.screeningRoom.IPlace, 'typeOf' | 'branchCode' | 'name' | 'containsPlace'>;
|
|
28
|
+
export type IScreeningRoomFoundByBranchCode = Pick<factory.place.screeningRoom.IPlace, 'typeOf' | 'branchCode' | 'name' | 'containsPlace' | 'seatCount'>;
|
|
29
29
|
/**
|
|
30
30
|
* 施設リポジトリ
|
|
31
31
|
*/
|
|
@@ -37,33 +37,63 @@ export declare class MongoRepository {
|
|
|
37
37
|
/**
|
|
38
38
|
* 施設を保管する
|
|
39
39
|
*/
|
|
40
|
-
saveMovieTheater(params: factory.place.movieTheater.
|
|
41
|
-
saveMovieTheaterByBranchCode4coa(params: factory.place.movieTheater.IPlace): Promise<
|
|
42
|
-
findMovieTheaterByBranchCode(params: {
|
|
43
|
-
project: {
|
|
44
|
-
id: string;
|
|
45
|
-
};
|
|
46
|
-
branchCode: string;
|
|
47
|
-
}): Promise<factory.place.movieTheater.IPlace>;
|
|
40
|
+
saveMovieTheater(params: factory.place.movieTheater.IPlaceWithoutScreeningRoom): Promise<factory.place.movieTheater.IPlaceWithoutScreeningRoom>;
|
|
41
|
+
saveMovieTheaterByBranchCode4coa(params: factory.place.movieTheater.IPlace): Promise<void>;
|
|
48
42
|
/**
|
|
49
43
|
* 施設検索
|
|
50
44
|
*/
|
|
51
|
-
searchMovieTheaters(params: factory.place.movieTheater.ISearchConditions & {
|
|
52
|
-
$projection?: {
|
|
53
|
-
[key: string]: 0;
|
|
54
|
-
};
|
|
55
|
-
}): Promise<factory.place.movieTheater.IPlaceWithoutScreeningRoom[]>;
|
|
45
|
+
searchMovieTheaters(params: factory.place.movieTheater.ISearchConditions & {}, inclusion: string[], exclusion: string[]): Promise<factory.place.movieTheater.IPlaceWithoutScreeningRoom[]>;
|
|
56
46
|
/**
|
|
57
47
|
* 施設取得
|
|
48
|
+
* 廃止(2023-06-22~)
|
|
58
49
|
*/
|
|
59
|
-
findById(params: {
|
|
60
|
-
id: string;
|
|
61
|
-
}, projection?: any): Promise<factory.place.movieTheater.IPlace>;
|
|
62
50
|
deleteMovieTheaterById(params: {
|
|
63
51
|
id: string;
|
|
64
52
|
}): Promise<void>;
|
|
65
|
-
createScreeningRoom(screeningRoom: factory.place.screeningRoom.IPlace
|
|
66
|
-
|
|
53
|
+
createScreeningRoom(screeningRoom: Omit<factory.place.screeningRoom.IPlace, 'containedInPlace' | 'containsPlace'> & {
|
|
54
|
+
containedInPlace: {
|
|
55
|
+
branchCode: string;
|
|
56
|
+
};
|
|
57
|
+
}, useScreeningRoomType: boolean): Promise<{
|
|
58
|
+
/**
|
|
59
|
+
* 施設ID
|
|
60
|
+
*/
|
|
61
|
+
id: string;
|
|
62
|
+
typeOf: factory.placeType.MovieTheater;
|
|
63
|
+
} | {
|
|
64
|
+
containedInPlace: {
|
|
65
|
+
/**
|
|
66
|
+
* 施設ID
|
|
67
|
+
*/
|
|
68
|
+
id: string;
|
|
69
|
+
};
|
|
70
|
+
typeOf: factory.placeType.ScreeningRoom;
|
|
71
|
+
}>;
|
|
72
|
+
updateScreeningRoom(screeningRoom: Omit<factory.place.screeningRoom.IPlace, 'containedInPlace' | 'containsPlace'> & {
|
|
73
|
+
containedInPlace: {
|
|
74
|
+
branchCode: string;
|
|
75
|
+
};
|
|
76
|
+
}, $unset: any, useScreeningRoomType: boolean): Promise<{
|
|
77
|
+
/**
|
|
78
|
+
* 施設ID
|
|
79
|
+
*/
|
|
80
|
+
id: string;
|
|
81
|
+
typeOf: factory.placeType.MovieTheater;
|
|
82
|
+
} | {
|
|
83
|
+
containedInPlace: {
|
|
84
|
+
/**
|
|
85
|
+
* 施設ID
|
|
86
|
+
*/
|
|
87
|
+
id: string;
|
|
88
|
+
};
|
|
89
|
+
typeOf: factory.placeType.ScreeningRoom;
|
|
90
|
+
}>;
|
|
91
|
+
updateScreeningRoomsByContainedInPlaceId(screeningRoom: {
|
|
92
|
+
project: {
|
|
93
|
+
id: string;
|
|
94
|
+
};
|
|
95
|
+
containedInPlace: Pick<factory.place.screeningRoom.IContainedInPlace, 'id' | 'name'>;
|
|
96
|
+
}): Promise<void>;
|
|
67
97
|
deleteScreeningRoom(screeningRoom: {
|
|
68
98
|
project: {
|
|
69
99
|
id: string;
|
|
@@ -78,14 +108,74 @@ export declare class MongoRepository {
|
|
|
78
108
|
*/
|
|
79
109
|
branchCode: string;
|
|
80
110
|
};
|
|
111
|
+
}, useScreeningRoomType: boolean): Promise<{
|
|
112
|
+
/**
|
|
113
|
+
* 施設ID
|
|
114
|
+
*/
|
|
115
|
+
id: string;
|
|
116
|
+
typeOf: factory.placeType.MovieTheater;
|
|
117
|
+
} | {
|
|
118
|
+
containedInPlace: {
|
|
119
|
+
/**
|
|
120
|
+
* 施設ID
|
|
121
|
+
*/
|
|
122
|
+
id: string;
|
|
123
|
+
};
|
|
124
|
+
typeOf: factory.placeType.ScreeningRoom;
|
|
125
|
+
}>;
|
|
126
|
+
deleteScreeningRoomsByMovieTheaterId(params: {
|
|
127
|
+
project: {
|
|
128
|
+
id: string;
|
|
129
|
+
};
|
|
130
|
+
containedInPlace: {
|
|
131
|
+
/**
|
|
132
|
+
* 施設ID
|
|
133
|
+
*/
|
|
134
|
+
id: string;
|
|
135
|
+
};
|
|
81
136
|
}): Promise<void>;
|
|
82
|
-
createScreeningRoomSection(screeningRoomSection: IScreeningRoomSectionWithoutContainsPlace): Promise<
|
|
83
|
-
|
|
137
|
+
createScreeningRoomSection(screeningRoomSection: IScreeningRoomSectionWithoutContainsPlace, useScreeningRoomType: boolean): Promise<{
|
|
138
|
+
/**
|
|
139
|
+
* 施設ID
|
|
140
|
+
*/
|
|
141
|
+
id: string;
|
|
142
|
+
typeOf: factory.placeType.MovieTheater;
|
|
143
|
+
} | {
|
|
144
|
+
containedInPlace: {
|
|
145
|
+
/**
|
|
146
|
+
* 施設ID
|
|
147
|
+
*/
|
|
148
|
+
id: string;
|
|
149
|
+
};
|
|
150
|
+
typeOf: factory.placeType.ScreeningRoom;
|
|
151
|
+
}>;
|
|
152
|
+
updateScreeningRoomSection(screeningRoomSection: Omit<factory.place.screeningRoomSection.IPlace, 'containedInPlace'> & {
|
|
153
|
+
containedInPlace: {
|
|
154
|
+
branchCode: string;
|
|
155
|
+
containedInPlace: {
|
|
156
|
+
branchCode: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
}, $unset: any, useScreeningRoomType: boolean): Promise<{
|
|
160
|
+
/**
|
|
161
|
+
* 施設ID
|
|
162
|
+
*/
|
|
163
|
+
id: string;
|
|
164
|
+
typeOf: factory.placeType.MovieTheater;
|
|
165
|
+
} | {
|
|
166
|
+
containedInPlace: {
|
|
167
|
+
/**
|
|
168
|
+
* 施設ID
|
|
169
|
+
*/
|
|
170
|
+
id: string;
|
|
171
|
+
};
|
|
172
|
+
typeOf: factory.placeType.ScreeningRoom;
|
|
173
|
+
}>;
|
|
84
174
|
searchScreeningRoomSections(searchConditions: factory.place.screeningRoomSection.ISearchConditions & {
|
|
85
175
|
$projection?: {
|
|
86
176
|
[key: string]: number;
|
|
87
177
|
};
|
|
88
|
-
}): Promise<IScreeningRoomSectionWithoutContainsPlace[]>;
|
|
178
|
+
}, useScreeningRoomType: boolean): Promise<IScreeningRoomSectionWithoutContainsPlace[]>;
|
|
89
179
|
deleteScreeningRoomSection(screeningRoomSection: {
|
|
90
180
|
project: {
|
|
91
181
|
id: string;
|
|
@@ -106,8 +196,22 @@ export declare class MongoRepository {
|
|
|
106
196
|
branchCode: string;
|
|
107
197
|
};
|
|
108
198
|
};
|
|
109
|
-
}): Promise<
|
|
110
|
-
|
|
199
|
+
}, useScreeningRoomType: boolean): Promise<{
|
|
200
|
+
/**
|
|
201
|
+
* 施設ID
|
|
202
|
+
*/
|
|
203
|
+
id: string;
|
|
204
|
+
typeOf: factory.placeType.MovieTheater;
|
|
205
|
+
} | {
|
|
206
|
+
containedInPlace: {
|
|
207
|
+
/**
|
|
208
|
+
* 施設ID
|
|
209
|
+
*/
|
|
210
|
+
id: string;
|
|
211
|
+
};
|
|
212
|
+
typeOf: factory.placeType.ScreeningRoom;
|
|
213
|
+
}>;
|
|
214
|
+
searchScreeningRooms(searchConditions: factory.place.screeningRoom.ISearchConditions, useScreeningRoomType: boolean): Promise<Omit<factory.place.screeningRoom.IPlace, 'containsPlace'>[]>;
|
|
111
215
|
findScreeningRoomsByBranchCode(params: {
|
|
112
216
|
branchCode: {
|
|
113
217
|
$eq: string;
|
|
@@ -117,10 +221,49 @@ export declare class MongoRepository {
|
|
|
117
221
|
$eq: string;
|
|
118
222
|
};
|
|
119
223
|
};
|
|
224
|
+
useScreeningRoomType: boolean;
|
|
120
225
|
}): Promise<IScreeningRoomFoundByBranchCode>;
|
|
121
|
-
createSeat(seat: factory.place.seat.IPlace): Promise<
|
|
122
|
-
|
|
123
|
-
|
|
226
|
+
createSeat(seat: factory.place.seat.IPlace, useScreeningRoomType: boolean): Promise<{
|
|
227
|
+
/**
|
|
228
|
+
* 施設ID
|
|
229
|
+
*/
|
|
230
|
+
id: string;
|
|
231
|
+
typeOf: factory.placeType.MovieTheater;
|
|
232
|
+
} | {
|
|
233
|
+
containedInPlace: {
|
|
234
|
+
/**
|
|
235
|
+
* 施設ID
|
|
236
|
+
*/
|
|
237
|
+
id: string;
|
|
238
|
+
};
|
|
239
|
+
typeOf: factory.placeType.ScreeningRoom;
|
|
240
|
+
}>;
|
|
241
|
+
updateSeat(seat: Omit<factory.place.seat.IPlace, 'containedInPlace'> & {
|
|
242
|
+
containedInPlace: {
|
|
243
|
+
branchCode: string;
|
|
244
|
+
containedInPlace: {
|
|
245
|
+
branchCode: string;
|
|
246
|
+
containedInPlace: {
|
|
247
|
+
branchCode: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
}, $unset: any, useScreeningRoomType: boolean): Promise<{
|
|
252
|
+
/**
|
|
253
|
+
* 施設ID
|
|
254
|
+
*/
|
|
255
|
+
id: string;
|
|
256
|
+
typeOf: factory.placeType.MovieTheater;
|
|
257
|
+
} | {
|
|
258
|
+
containedInPlace: {
|
|
259
|
+
/**
|
|
260
|
+
* 施設ID
|
|
261
|
+
*/
|
|
262
|
+
id: string;
|
|
263
|
+
};
|
|
264
|
+
typeOf: factory.placeType.ScreeningRoom;
|
|
265
|
+
}>;
|
|
266
|
+
searchSeats(params: factory.place.seat.ISearchConditions, useScreeningRoomType: boolean): Promise<factory.place.seat.IPlace[]>;
|
|
124
267
|
deleteSeat(seat: {
|
|
125
268
|
project: {
|
|
126
269
|
id: string;
|
|
@@ -147,7 +290,40 @@ export declare class MongoRepository {
|
|
|
147
290
|
};
|
|
148
291
|
};
|
|
149
292
|
};
|
|
293
|
+
}, useScreeningRoomType: boolean): Promise<{
|
|
294
|
+
/**
|
|
295
|
+
* 施設ID
|
|
296
|
+
*/
|
|
297
|
+
id: string;
|
|
298
|
+
typeOf: factory.placeType.MovieTheater;
|
|
299
|
+
} | {
|
|
300
|
+
containedInPlace: {
|
|
301
|
+
/**
|
|
302
|
+
* 施設ID
|
|
303
|
+
*/
|
|
304
|
+
id: string;
|
|
305
|
+
};
|
|
306
|
+
typeOf: factory.placeType.ScreeningRoom;
|
|
307
|
+
}>;
|
|
308
|
+
syncScreeningRooms(params: {
|
|
309
|
+
/**
|
|
310
|
+
* 施設ID
|
|
311
|
+
*/
|
|
312
|
+
id: string;
|
|
313
|
+
/**
|
|
314
|
+
* 特定のルームのみ同期する場合、ルームコードを指定する
|
|
315
|
+
*/
|
|
316
|
+
screeningRoomBranchCode?: string;
|
|
317
|
+
useScreeningRoomType: boolean;
|
|
150
318
|
}): Promise<void>;
|
|
319
|
+
unsetContainsPlaceFromMovieTheater(params: {
|
|
320
|
+
/**
|
|
321
|
+
* 施設ID
|
|
322
|
+
*/
|
|
323
|
+
id: string;
|
|
324
|
+
}): Promise<{
|
|
325
|
+
id: string;
|
|
326
|
+
} | undefined>;
|
|
151
327
|
deleteByProject(params: {
|
|
152
328
|
project: {
|
|
153
329
|
id: string;
|