@chevre/domain 21.13.0 → 21.15.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example/src/chevre/aggregateAllEvents.ts +2 -2
- package/example/src/chevre/aggregateAllEvents2.ts +1 -1
- package/example/src/chevre/aggregateEventReservation.ts +11 -11
- package/example/src/chevre/aggregateSellerPaymentAccepted.ts +1 -1
- package/example/src/chevre/aggregation/aggregateSystem.ts +20 -20
- package/example/src/chevre/attendIfNotAttended.ts +1 -1
- package/example/src/chevre/checkEventDuration.ts +59 -0
- package/example/src/chevre/cleanAccountingReports.ts +1 -1
- package/example/src/chevre/cleanActions.ts +1 -1
- package/example/src/chevre/deleteRunsAtPassedCertainPeriod.ts +1 -1
- package/example/src/chevre/deleteTasksByName.ts +1 -1
- package/example/src/chevre/findItemListElementByCatalogId.ts +1 -1
- package/example/src/chevre/giveUpStartDatePassedCertainPeriod.ts +1 -1
- package/example/src/chevre/importCategoryCodesFromCOA.ts +5 -4
- package/example/src/chevre/importOffersFromCOA.ts +7 -6
- package/example/src/chevre/lockStockHolder.ts +1 -1
- package/example/src/chevre/migrateCategoryCodeAdditionalProperties.ts +2 -2
- package/example/src/chevre/migrateIAMMemberMemberOf.ts +1 -1
- package/example/src/chevre/migrateMovieAvailabilityStarts.ts +1 -1
- package/example/src/chevre/migrateOrderPaymentMethodIdentifier.ts +3 -3
- package/example/src/chevre/migratePayTransactionPaymentMethodId.ts +1 -1
- package/example/src/chevre/migratePayTransactionPaymentMethodIdentifier.ts +1 -1
- package/example/src/chevre/optimizeCatalogs.ts +1 -1
- package/example/src/chevre/place/adminHasPOS.ts +1 -1
- package/example/src/chevre/pullAddOnsFromOffer.ts +1 -1
- package/example/src/chevre/pushIncludedInDataCatalog.ts +1 -1
- package/example/src/chevre/searchActions.ts +1 -1
- package/example/src/chevre/searchAggregateOffers.ts +1 -1
- package/example/src/chevre/searchAvaialbleAppliesToMovieTicketByOfferCatalogId.ts +5 -5
- package/example/src/chevre/searchEventIds.ts +1 -1
- package/example/src/chevre/searchEventSeats.ts +1 -1
- package/example/src/chevre/searchOfferCatalogItemAvailability.ts +5 -5
- package/example/src/chevre/searchOfferCatalogItems.ts +5 -5
- package/example/src/chevre/searchOffers.ts +2 -2
- package/example/src/chevre/searchPermissions.ts +3 -3
- package/example/src/chevre/searchProductOffers.ts +1 -1
- package/example/src/chevre/searchSellers.ts +2 -2
- package/lib/chevre/factory/event.d.ts +1 -1
- package/lib/chevre/factory/event.js +2 -8
- package/lib/chevre/repo/event.d.ts +5 -20
- package/lib/chevre/repo/event.js +47 -56
- package/lib/chevre/repo/priceSpecification.d.ts +0 -5
- package/lib/chevre/repo/priceSpecification.js +0 -9
- package/lib/chevre/repo/stockHolder.d.ts +0 -11
- package/lib/chevre/repo/stockHolder.js +11 -284
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +28 -13
- package/lib/chevre/service/offer/event/searchEventTicketOffers.js +6 -8
- package/lib/chevre/service/offer.js +25 -7
- package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.js +3 -1
- package/lib/chevre/service/transaction/returnOrder.js +5 -3
- package/package.json +1 -1
- package/example/src/chevre/deleteMovieTicketCategoryChargePriceSpecs.ts +0 -21
- package/example/src/chevre/place/migrateHasPOS.ts +0 -76
|
@@ -11,12 +11,12 @@ mongoose.Model.on('index', (...args) => {
|
|
|
11
11
|
async function main() {
|
|
12
12
|
await mongoose.connect(<string>process.env.MONGOLAB_URI, { autoIndex: false });
|
|
13
13
|
|
|
14
|
-
const eventRepo =
|
|
15
|
-
const offerCatalogRepo =
|
|
16
|
-
const offerCatalogItemRepo =
|
|
17
|
-
const productRepo =
|
|
14
|
+
const eventRepo = await chevre.repository.Event.createInstance(mongoose.connection);
|
|
15
|
+
const offerCatalogRepo = await chevre.repository.OfferCatalog.createInstance(mongoose.connection);
|
|
16
|
+
const offerCatalogItemRepo = await chevre.repository.OfferCatalogItem.createInstance(mongoose.connection);
|
|
17
|
+
const productRepo = await chevre.repository.Product.createInstance(mongoose.connection);
|
|
18
18
|
|
|
19
|
-
const result = await chevre.service.offer.event.searchOfferCatalogItems({
|
|
19
|
+
const result = await (await chevre.service.offer.createService()).event.searchOfferCatalogItems({
|
|
20
20
|
event: {
|
|
21
21
|
id: 'cllkq475u'
|
|
22
22
|
},
|
|
@@ -8,7 +8,7 @@ mongoose.Model.on('index', (...args) => {
|
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
async function main() {
|
|
11
|
-
await mongoose.connect(<string>process.env.MONGOLAB_URI
|
|
11
|
+
await mongoose.connect(<string>process.env.MONGOLAB_URI);
|
|
12
12
|
|
|
13
13
|
const indexes = await mongoose.connection.db.collection('aggregateOffers')
|
|
14
14
|
.indexes();
|
|
@@ -18,7 +18,7 @@ async function main() {
|
|
|
18
18
|
// .dropIndexes();
|
|
19
19
|
// console.log('indexes droped');
|
|
20
20
|
|
|
21
|
-
const offerRepo =
|
|
21
|
+
const offerRepo = await chevre.repository.Offer.createInstance(mongoose.connection);
|
|
22
22
|
|
|
23
23
|
const offers = await offerRepo.search({
|
|
24
24
|
limit: 100,
|
|
@@ -10,13 +10,13 @@ const memberId = 'xxx';
|
|
|
10
10
|
async function main() {
|
|
11
11
|
await mongoose.connect(<string>process.env.MONGOLAB_URI);
|
|
12
12
|
|
|
13
|
-
const memberRepo =
|
|
14
|
-
const roleRepo =
|
|
13
|
+
const memberRepo = await chevre.repository.Member.createInstance(mongoose.connection);
|
|
14
|
+
const roleRepo = await chevre.repository.Role.createInstance(mongoose.connection);
|
|
15
15
|
|
|
16
16
|
let now: Date;
|
|
17
17
|
|
|
18
18
|
now = new Date();
|
|
19
|
-
const searchPermissionsResult = await chevre.service.iam.searchPermissions({
|
|
19
|
+
const searchPermissionsResult = await (await chevre.service.iam.createService()).searchPermissions({
|
|
20
20
|
project: { id: PROJECT_ID },
|
|
21
21
|
member: {
|
|
22
22
|
id: memberId,
|
|
@@ -8,7 +8,7 @@ const PROJECT_ID = String(process.env.PROJECT_ID);
|
|
|
8
8
|
async function main() {
|
|
9
9
|
await mongoose.connect(<string>process.env.MONGOLAB_URI);
|
|
10
10
|
|
|
11
|
-
const productOfferRepo =
|
|
11
|
+
const productOfferRepo = await chevre.repository.ProductOffer.createInstance(mongoose.connection);
|
|
12
12
|
|
|
13
13
|
const offers = await productOfferRepo.search({
|
|
14
14
|
project: { id: { $eq: PROJECT_ID } }
|
|
@@ -6,9 +6,9 @@ import { chevre } from '../../../lib/index';
|
|
|
6
6
|
const project = { id: String(process.env.PROJECT_ID) };
|
|
7
7
|
|
|
8
8
|
async function main() {
|
|
9
|
-
await mongoose.connect(<string>process.env.MONGOLAB_URI
|
|
9
|
+
await mongoose.connect(<string>process.env.MONGOLAB_URI);
|
|
10
10
|
|
|
11
|
-
const sellerRepo =
|
|
11
|
+
const sellerRepo = await chevre.repository.Seller.createInstance(mongoose.connection);
|
|
12
12
|
|
|
13
13
|
const sellers = await sellerRepo.search(
|
|
14
14
|
{
|
|
@@ -4,5 +4,5 @@ export type IMinimizedIndividualEvent<T extends factory.eventType.ScreeningEvent
|
|
|
4
4
|
* 興行イベントのsuperEventを作成する
|
|
5
5
|
*/
|
|
6
6
|
export declare function minimizeSuperEvent(params: {
|
|
7
|
-
superEventFromDB: factory.event.screeningEventSeries.IEvent
|
|
7
|
+
superEventFromDB: Omit<factory.event.screeningEventSeries.IEvent, 'offers'>;
|
|
8
8
|
}): factory.event.screeningEvent.ISuperEvent;
|
|
@@ -6,10 +6,7 @@ const factory = require("../factory");
|
|
|
6
6
|
* 興行イベントのsuperEventを作成する
|
|
7
7
|
*/
|
|
8
8
|
function minimizeSuperEvent(params) {
|
|
9
|
-
const workPerformed = Object.assign(Object.assign(Object.assign(Object.assign({
|
|
10
|
-
// 不要なので廃止(2022-12-19~)
|
|
11
|
-
// project: { typeOf: chevre.factory.organizationType.Project, id: params.project.id },
|
|
12
|
-
typeOf: factory.creativeWorkType.Movie, identifier: String(params.superEventFromDB.workPerformed.identifier) }, (typeof params.superEventFromDB.workPerformed.id === 'string')
|
|
9
|
+
const workPerformed = Object.assign(Object.assign(Object.assign(Object.assign({ typeOf: factory.creativeWorkType.Movie, identifier: String(params.superEventFromDB.workPerformed.identifier) }, (typeof params.superEventFromDB.workPerformed.id === 'string')
|
|
13
10
|
? { id: params.superEventFromDB.workPerformed.id }
|
|
14
11
|
: undefined), (params.superEventFromDB.workPerformed.name !== undefined)
|
|
15
12
|
? { name: params.superEventFromDB.workPerformed.name }
|
|
@@ -18,10 +15,7 @@ function minimizeSuperEvent(params) {
|
|
|
18
15
|
: undefined), (typeof params.superEventFromDB.workPerformed.contentRating === 'string')
|
|
19
16
|
? { contentRating: params.superEventFromDB.workPerformed.contentRating }
|
|
20
17
|
: undefined);
|
|
21
|
-
const location = Object.assign(Object.assign({
|
|
22
|
-
// 不要なので廃止(2022-12-19~)
|
|
23
|
-
// project: { typeOf: chevre.factory.organizationType.Project, id: params.project.id },
|
|
24
|
-
typeOf: factory.placeType.MovieTheater, id: params.superEventFromDB.location.id, branchCode: params.superEventFromDB.location.branchCode }, (params.superEventFromDB.location.name !== undefined)
|
|
18
|
+
const location = Object.assign(Object.assign({ typeOf: factory.placeType.MovieTheater, id: params.superEventFromDB.location.id, branchCode: params.superEventFromDB.location.branchCode }, (params.superEventFromDB.location.name !== undefined)
|
|
25
19
|
? { name: params.superEventFromDB.location.name }
|
|
26
20
|
: undefined), (typeof params.superEventFromDB.location.kanaName === 'string')
|
|
27
21
|
? { kanaName: params.superEventFromDB.location.kanaName }
|
|
@@ -74,31 +74,16 @@ interface IStatus {
|
|
|
74
74
|
status: factory.eventStatusType;
|
|
75
75
|
aggregation: IAggregationByStatus;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
interface IAggregateEvent {
|
|
78
78
|
statuses: IStatus[];
|
|
79
79
|
}
|
|
80
|
-
type IKeyOfProjection<T extends factory.eventType> = keyof factory.event.IEvent<T>
|
|
80
|
+
type IKeyOfProjection<T extends factory.eventType> = keyof factory.event.IEvent<T> | '_id' | '__v' | 'createdAt' | 'updatedAt';
|
|
81
81
|
type IProjection<T extends factory.eventType> = {
|
|
82
82
|
[key in IKeyOfProjection<T>]?: 0 | 1;
|
|
83
83
|
};
|
|
84
84
|
export import IMinimizedIndividualEvent = EventFactory.IMinimizedIndividualEvent;
|
|
85
|
-
export declare const
|
|
86
|
-
|
|
87
|
-
organizer: number;
|
|
88
|
-
_id: number;
|
|
89
|
-
typeOf: number;
|
|
90
|
-
additionalProperty: number;
|
|
91
|
-
name: number;
|
|
92
|
-
doorTime: number;
|
|
93
|
-
endDate: number;
|
|
94
|
-
eventStatus: number;
|
|
95
|
-
location: number;
|
|
96
|
-
startDate: number;
|
|
97
|
-
superEvent: number;
|
|
98
|
-
offers: number;
|
|
99
|
-
coaInfo: number;
|
|
100
|
-
identifier: number;
|
|
101
|
-
};
|
|
85
|
+
export declare const keyOfMinimizedScreeningEvent: IKeyOfProjection<factory.eventType.ScreeningEvent>[];
|
|
86
|
+
export declare const keyOfMinimizedEvent: IKeyOfProjection<factory.eventType.Event>[];
|
|
102
87
|
/**
|
|
103
88
|
* イベントリポジトリ
|
|
104
89
|
*/
|
|
@@ -166,7 +151,7 @@ export declare class MongoRepository {
|
|
|
166
151
|
/**
|
|
167
152
|
* イベントを検索する
|
|
168
153
|
*/
|
|
169
|
-
search<T extends factory.eventType>(params: ISearchConditions<T>,
|
|
154
|
+
search<T extends factory.eventType>(params: ISearchConditions<T>, inclusion: IKeyOfProjection<T>[], exclusion: IKeyOfProjection<T>[]): Promise<factory.event.IEvent<T>[]>;
|
|
170
155
|
searchIds<T extends factory.eventType>(params: ISearchConditions<T>): Promise<string[]>;
|
|
171
156
|
findMinimizedIndividualEventById<T extends factory.eventType.ScreeningEvent | factory.eventType.Event>(params: {
|
|
172
157
|
id: string;
|
package/lib/chevre/repo/event.js
CHANGED
|
@@ -20,13 +20,21 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.MongoRepository = exports.
|
|
23
|
+
exports.MongoRepository = exports.keyOfMinimizedEvent = exports.keyOfMinimizedScreeningEvent = void 0;
|
|
24
24
|
const factory = require("../factory");
|
|
25
25
|
const EventFactory = require("../factory/event");
|
|
26
26
|
const event_1 = require("./mongoose/schemas/event");
|
|
27
27
|
const errorHandler_1 = require("../errorHandler");
|
|
28
28
|
const settings_1 = require("../settings");
|
|
29
|
-
exports.
|
|
29
|
+
exports.keyOfMinimizedScreeningEvent = [
|
|
30
|
+
'project', 'organizer', '_id', 'typeOf', 'additionalProperty', 'name',
|
|
31
|
+
'doorTime', 'endDate', 'eventStatus', 'location', 'startDate', 'superEvent', 'offers', 'coaInfo', 'identifier'
|
|
32
|
+
];
|
|
33
|
+
exports.keyOfMinimizedEvent = [
|
|
34
|
+
'project', 'organizer', '_id', 'typeOf', 'additionalProperty', 'name',
|
|
35
|
+
'doorTime', 'endDate', 'eventStatus', 'location', 'startDate', 'offers', 'identifier'
|
|
36
|
+
];
|
|
37
|
+
const PROJECTION_MINIMIZED_EVENT = {
|
|
30
38
|
project: 1,
|
|
31
39
|
organizer: 1,
|
|
32
40
|
_id: 1,
|
|
@@ -735,32 +743,48 @@ class MongoRepository {
|
|
|
735
743
|
return doc.toObject();
|
|
736
744
|
});
|
|
737
745
|
}
|
|
738
|
-
// public async count<T extends factory.eventType>(
|
|
739
|
-
// params: ISearchConditions<T>
|
|
740
|
-
// ): Promise<number> {
|
|
741
|
-
// const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
|
|
742
|
-
// return this.eventModel.countDocuments(
|
|
743
|
-
// { $and: conditions }
|
|
744
|
-
// )
|
|
745
|
-
// .setOptions({ maxTimeMS: MONGO_MAX_TIME_MS })
|
|
746
|
-
// .exec();
|
|
747
|
-
// }
|
|
748
746
|
/**
|
|
749
747
|
* イベントを検索する
|
|
750
748
|
*/
|
|
751
|
-
search(params,
|
|
749
|
+
search(params,
|
|
750
|
+
// projection?: IProjection<T>
|
|
751
|
+
inclusion, exclusion) {
|
|
752
752
|
var _a;
|
|
753
753
|
return __awaiter(this, void 0, void 0, function* () {
|
|
754
754
|
const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
755
|
+
let projection = {};
|
|
756
|
+
if (Array.isArray(inclusion) && inclusion.length > 0) {
|
|
757
|
+
inclusion.forEach((field) => {
|
|
758
|
+
projection[field] = 1;
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
else {
|
|
762
|
+
projection = {
|
|
763
|
+
__v: 0,
|
|
764
|
+
createdAt: 0,
|
|
765
|
+
updatedAt: 0
|
|
766
|
+
};
|
|
767
|
+
if (Array.isArray(exclusion) && exclusion.length > 0) {
|
|
768
|
+
exclusion.forEach((field) => {
|
|
769
|
+
projection[field] = 0;
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
// const positiveProjectionExists: boolean = (projection !== undefined && projection !== null)
|
|
774
|
+
// ? Object.values(projection)
|
|
775
|
+
// .some((value) => value !== 0)
|
|
776
|
+
// : false;
|
|
777
|
+
const query = this.eventModel.find({ $and: conditions }, projection
|
|
760
778
|
// :1対応(2023-01-25~)
|
|
761
|
-
(positiveProjectionExists)
|
|
762
|
-
|
|
763
|
-
|
|
779
|
+
// (positiveProjectionExists)
|
|
780
|
+
// ? projection
|
|
781
|
+
// : {
|
|
782
|
+
// ...projection,
|
|
783
|
+
// __v: 0,
|
|
784
|
+
// createdAt: 0,
|
|
785
|
+
// updatedAt: 0
|
|
786
|
+
// }
|
|
787
|
+
);
|
|
764
788
|
if (typeof params.limit === 'number' && params.limit > 0) {
|
|
765
789
|
const page = (typeof params.page === 'number' && params.page > 0) ? params.page : 1;
|
|
766
790
|
query.limit(params.limit)
|
|
@@ -792,42 +816,9 @@ class MongoRepository {
|
|
|
792
816
|
.exec();
|
|
793
817
|
});
|
|
794
818
|
}
|
|
795
|
-
// searchに置き換え(2023-07-13~)
|
|
796
|
-
// public async findById<T extends factory.eventType>(
|
|
797
|
-
// params: {
|
|
798
|
-
// project: { id: string };
|
|
799
|
-
// id: string;
|
|
800
|
-
// },
|
|
801
|
-
// projection?: IProjection
|
|
802
|
-
// ): Promise<factory.event.IEvent<T>> {
|
|
803
|
-
// const positiveProjectionExists: boolean = (projection !== undefined && projection !== null)
|
|
804
|
-
// ? Object.values(projection)
|
|
805
|
-
// .some((value) => value !== 0)
|
|
806
|
-
// : false;
|
|
807
|
-
// const doc = await this.eventModel.findOne(
|
|
808
|
-
// {
|
|
809
|
-
// _id: params.id,
|
|
810
|
-
// 'project.id': { $eq: params.project.id }
|
|
811
|
-
// },
|
|
812
|
-
// // :1対応(2023-01-25~)
|
|
813
|
-
// (positiveProjectionExists)
|
|
814
|
-
// ? projection
|
|
815
|
-
// : {
|
|
816
|
-
// ...projection,
|
|
817
|
-
// __v: 0,
|
|
818
|
-
// createdAt: 0,
|
|
819
|
-
// updatedAt: 0
|
|
820
|
-
// }
|
|
821
|
-
// )
|
|
822
|
-
// .exec();
|
|
823
|
-
// if (doc === null) {
|
|
824
|
-
// throw new factory.errors.NotFound(this.eventModel.modelName);
|
|
825
|
-
// }
|
|
826
|
-
// return doc.toObject();
|
|
827
|
-
// }
|
|
828
819
|
findMinimizedIndividualEventById(params) {
|
|
829
820
|
return __awaiter(this, void 0, void 0, function* () {
|
|
830
|
-
const doc = yield this.eventModel.findOne({ _id: params.id },
|
|
821
|
+
const doc = yield this.eventModel.findOne({ _id: params.id }, PROJECTION_MINIMIZED_EVENT)
|
|
831
822
|
.exec();
|
|
832
823
|
if (doc === null) {
|
|
833
824
|
throw new factory.errors.NotFound(this.eventModel.modelName);
|
|
@@ -858,7 +849,7 @@ class MongoRepository {
|
|
|
858
849
|
typeOf: factory.eventType.ScreeningEventSeries,
|
|
859
850
|
id: { $eq: params.superEvent.id },
|
|
860
851
|
project: { id: { $eq: params.project.id } }
|
|
861
|
-
});
|
|
852
|
+
}, [], ['offers']);
|
|
862
853
|
const superEventFromDB = superEvents.shift();
|
|
863
854
|
if (superEventFromDB === undefined) {
|
|
864
855
|
throw new factory.errors.NotFound(factory.eventType.ScreeningEventSeries);
|
|
@@ -54,11 +54,6 @@ export declare class MongoRepository {
|
|
|
54
54
|
id: string;
|
|
55
55
|
};
|
|
56
56
|
}): Promise<void>;
|
|
57
|
-
deleteUnnecessaryMovieTicketTypeChargePriceSpecs(params: {
|
|
58
|
-
project?: {
|
|
59
|
-
id?: string;
|
|
60
|
-
};
|
|
61
|
-
}): Promise<import("mongodb").DeleteResult>;
|
|
62
57
|
getCursor(conditions: any, projection: any): import("mongoose").Cursor<any, import("mongoose").QueryOptions<any>>;
|
|
63
58
|
reIndex(): Promise<import("bson").Document>;
|
|
64
59
|
}
|
|
@@ -240,15 +240,6 @@ class MongoRepository {
|
|
|
240
240
|
.exec();
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
deleteUnnecessaryMovieTicketTypeChargePriceSpecs(params) {
|
|
244
|
-
var _a;
|
|
245
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
-
return this.priceSpecificationModel.deleteMany(Object.assign({ typeOf: { $eq: factory.priceSpecificationType.MovieTicketTypeChargeSpecification }, price: { $eq: 0 } }, (typeof ((_a = params.project) === null || _a === void 0 ? void 0 : _a.id) === 'string')
|
|
247
|
-
? { 'project.id': { $eq: params.project.id } }
|
|
248
|
-
: undefined))
|
|
249
|
-
.exec();
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
243
|
getCursor(conditions, projection) {
|
|
253
244
|
return this.priceSpecificationModel.find(conditions, projection)
|
|
254
245
|
.sort({ price: factory.sortType.Ascending })
|
|
@@ -83,7 +83,6 @@ export interface ISearchResult {
|
|
|
83
83
|
*/
|
|
84
84
|
export declare class StockHolderRepository {
|
|
85
85
|
static KEY_PREFIX_NEW: string;
|
|
86
|
-
static KEY_PREFIX: string;
|
|
87
86
|
private readonly redisClient;
|
|
88
87
|
constructor(redisClient: RedisClientType, __: Connection);
|
|
89
88
|
private static offer2field;
|
|
@@ -104,9 +103,6 @@ export declare class StockHolderRepository {
|
|
|
104
103
|
* 座席ロックを解除する
|
|
105
104
|
*/
|
|
106
105
|
unlock(params: IUnlockKey): Promise<void>;
|
|
107
|
-
/**
|
|
108
|
-
* 空席でない座席を検索する
|
|
109
|
-
*/
|
|
110
106
|
/**
|
|
111
107
|
* 空席でない座席をカウントする
|
|
112
108
|
*/
|
|
@@ -130,11 +126,4 @@ export declare class StockHolderRepository {
|
|
|
130
126
|
hasTicketedSeat: boolean;
|
|
131
127
|
offers: IOffer[];
|
|
132
128
|
}): Promise<IGetHolderResult[]>;
|
|
133
|
-
/**
|
|
134
|
-
* 汎用的な検索(mongooseのみ対応)
|
|
135
|
-
*/
|
|
136
|
-
/**
|
|
137
|
-
* 汎用的な集計(mongooseのみ対応)
|
|
138
|
-
*/
|
|
139
|
-
private checkIfConflicted;
|
|
140
129
|
}
|