@chevre/domain 28.0.0-alpha.8 → 28.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/chevre/emailMessageBuilder.d.ts +9 -5
- package/lib/chevre/emailMessageBuilder.js +12 -11
- package/lib/chevre/factory/event.d.ts +1 -1
- package/lib/chevre/factory/event.js +1 -5
- package/lib/chevre/repo/acceptedOffer.d.ts +6 -5
- package/lib/chevre/repo/acceptedOffer.js +14 -9
- package/lib/chevre/repo/acceptedOfferInReserve.d.ts +6 -8
- package/lib/chevre/repo/acceptedOfferInReserve.js +13 -7
- package/lib/chevre/repo/action/unknown2actionError.d.ts +1 -0
- package/lib/chevre/repo/action/unknown2actionError.js +29 -1
- package/lib/chevre/repo/adminAcceptedOffer.d.ts +36 -12
- package/lib/chevre/repo/adminAcceptedOffer.js +40 -10
- package/lib/chevre/repo/adminAccountTitle.d.ts +49 -0
- package/lib/chevre/repo/adminAccountTitle.js +212 -0
- package/lib/chevre/repo/adminAccountTitleCategory.d.ts +37 -0
- package/lib/chevre/repo/adminAccountTitleCategory.js +127 -0
- package/lib/chevre/repo/adminAccountTitleSet.d.ts +42 -0
- package/lib/chevre/repo/adminAccountTitleSet.js +149 -0
- package/lib/chevre/repo/adminEvent.d.ts +1 -1
- package/lib/chevre/repo/adminEventSeries.d.ts +0 -22
- package/lib/chevre/repo/adminEventSeries.js +35 -31
- package/lib/chevre/repo/{paymentServiceChannel.d.ts → adminPaymentServiceChannel.d.ts} +13 -11
- package/lib/chevre/repo/{paymentServiceChannel.js → adminPaymentServiceChannel.js} +20 -19
- package/lib/chevre/repo/adminTask.d.ts +2 -2
- package/lib/chevre/repo/adminTransaction.d.ts +15 -15
- package/lib/chevre/repo/categoryCode.js +0 -21
- package/lib/chevre/repo/emailMessage.d.ts +3 -1
- package/lib/chevre/repo/emailMessage.js +20 -13
- package/lib/chevre/repo/eventSeries.d.ts +2 -2
- package/lib/chevre/repo/eventSeries.js +19 -12
- package/lib/chevre/repo/factory/acceptedOffer/reserveTransaction2itemOffered.d.ts +1 -1
- package/lib/chevre/repo/issuer.d.ts +2 -6
- package/lib/chevre/repo/memberProgram.d.ts +1 -38
- package/lib/chevre/repo/memberProgram.js +1 -62
- package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/accountTitle.js +22 -26
- package/lib/chevre/repo/mongoose/schemas/civicStructure.d.ts +1 -0
- package/lib/chevre/repo/mongoose/schemas/event.js +0 -13
- package/lib/chevre/repo/mongoose/schemas/eventSeries.js +1 -18
- package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +1 -3
- package/lib/chevre/repo/mongoose/schemas/issuer.js +0 -10
- package/lib/chevre/repo/mongoose/schemas/message.d.ts +5 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +0 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +3 -12
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +1 -2
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.js +6 -15
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +22 -1
- package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/place.js +0 -9
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +1 -2
- package/lib/chevre/repo/mongoose/schemas/project.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +3 -1
- package/lib/chevre/repo/mongoose/schemas/seller.js +0 -2
- package/lib/chevre/repo/offerCatalog.d.ts +0 -2
- package/lib/chevre/repo/offerCatalogItem.d.ts +13 -20
- package/lib/chevre/repo/offerCatalogItem.js +8 -86
- package/lib/chevre/repo/order.d.ts +2 -2
- package/lib/chevre/repo/order.js +0 -31
- package/lib/chevre/repo/orderInTransaction.d.ts +5 -25
- package/lib/chevre/repo/place/movieTheater.d.ts +3 -1
- package/lib/chevre/repo/place/movieTheater.js +3 -1
- package/lib/chevre/repo/place/{hasPOS.d.ts → pos.d.ts} +13 -20
- package/lib/chevre/repo/place/{hasPOS.js → pos.js} +66 -29
- package/lib/chevre/repo/place/screeningRoom.d.ts +7 -2
- package/lib/chevre/repo/place/screeningRoom.js +12 -7
- package/lib/chevre/repo/priceSpecification.d.ts +8 -8
- package/lib/chevre/repo/project.d.ts +14 -20
- package/lib/chevre/repo/project.js +28 -44
- package/lib/chevre/repo/projectMakesOffer.js +2 -2
- package/lib/chevre/repo/role.d.ts +1 -1
- package/lib/chevre/repo/role.js +1 -30
- package/lib/chevre/repo/seller.d.ts +11 -4
- package/lib/chevre/repo/seller.js +31 -58
- package/lib/chevre/repo/sellerPaymentAccepted.d.ts +14 -21
- package/lib/chevre/repo/sellerPaymentAccepted.js +65 -38
- package/lib/chevre/repo/task.d.ts +3 -3
- package/lib/chevre/repository.d.ts +25 -15
- package/lib/chevre/repository.js +52 -30
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +2 -1
- package/lib/chevre/service/aggregation.d.ts +0 -2
- package/lib/chevre/service/aggregation.js +1 -3
- package/lib/chevre/service/assetTransaction/pay/start/preStart/fixPaymentService.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/pay/start/preStart/fixPaymentService.js +1 -15
- package/lib/chevre/service/assetTransaction/pay/start/preStart/validateSeller.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/pay/start/preStart/validateSeller.js +9 -3
- package/lib/chevre/service/assetTransaction/pay/start.js +3 -3
- package/lib/chevre/service/assetTransaction/reserve/start.js +2 -1
- package/lib/chevre/service/delivery/reservation/factory.d.ts +1 -1
- package/lib/chevre/service/event/saveScreeningEventSeries.js +1 -2
- package/lib/chevre/service/event/saveScreeningEvents.js +4 -4
- package/lib/chevre/service/notification/sendEmailMessage.d.ts +2 -0
- package/lib/chevre/service/notification/sendEmailMessage.js +23 -6
- package/lib/chevre/service/offer/any.d.ts +1 -1
- package/lib/chevre/service/offer/event/authorize/factory.d.ts +3 -3
- package/lib/chevre/service/offer/event/authorize/factory.js +1 -8
- package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.d.ts +1 -1
- package/lib/chevre/service/offer/event/issueEventOfferTicket.js +0 -11
- package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +1 -4
- package/lib/chevre/service/offer/event/searchEventTicketOffers.js +9 -13
- package/lib/chevre/service/offer/event/searchOfferAppliesToMovieTicket.js +2 -8
- package/lib/chevre/service/offer/event/searchOfferCatalogItems.js +2 -2
- package/lib/chevre/service/offer/event/searchOffersByIds.js +3 -9
- package/lib/chevre/service/offer/eventServiceByCOA/authorize/factory.d.ts +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/authorize/factory.js +0 -7
- package/lib/chevre/service/offer/onEventChanged.js +9 -18
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.d.ts +4 -6
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.js +23 -4
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/createSendEmailMessageTaskIfNotExist.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/processOrder.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing.d.ts +1 -1
- package/lib/chevre/service/order/placeOrder/factory/orderedItem.d.ts +1 -1
- package/lib/chevre/service/order/placeOrder/factory.d.ts +1 -1
- package/lib/chevre/service/order/sendOrder.js +2 -14
- package/lib/chevre/service/payment/creditCard/getGMOInfoFromSeller.js +1 -1
- package/lib/chevre/service/payment/factory/createPayObjectServiceOutput.d.ts +3 -3
- package/lib/chevre/service/payment/movieTicket/checkMovieTicket.js +1 -1
- package/lib/chevre/service/payment/movieTicket/payMovieTicket/payActionParams2seatInfoSyncIn.js +1 -1
- package/lib/chevre/service/payment/movieTicket/validation.js +1 -1
- package/lib/chevre/service/project.d.ts +3 -3
- package/lib/chevre/service/project.js +1 -1
- package/lib/chevre/service/task/onResourceDeleted.js +8 -8
- package/lib/chevre/service/task/onResourceUpdated/onAggregateOfferUpdated.js +8 -8
- package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.d.ts +7 -3
- package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.js +51 -50
- package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.js +1 -1
- package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.js +1 -1
- package/lib/chevre/service/task/onResourceUpdated.js +10 -47
- package/lib/chevre/service/task/sendEmailMessage.js +3 -1
- package/lib/chevre/service/task/syncResourcesFromCOA.js +2 -2
- package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions/sendEmailMessage.d.ts +6 -3
- package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions/sendEmailMessage.js +2 -15
- package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions.d.ts +6 -4
- package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions.js +3 -7
- package/lib/chevre/service/transaction/placeOrder/confirm/prepareUnitPriceOfferConditions.d.ts +1 -1
- package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateInvoiceReferencesOrder.d.ts +1 -1
- package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateMovieTicket.d.ts +1 -1
- package/lib/chevre/service/transaction/placeOrder/confirm/validation.d.ts +2 -2
- package/lib/chevre/service/transaction/placeOrder/confirm.d.ts +0 -2
- package/lib/chevre/service/transaction/placeOrder/confirm.js +6 -11
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.d.ts +6 -3
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +8 -9
- package/lib/chevre/service/transaction/returnOrder/potentialActions/sendEmailMessage.d.ts +6 -3
- package/lib/chevre/service/transaction/returnOrder/potentialActions/sendEmailMessage.js +2 -7
- package/lib/chevre/service/transaction/returnOrder/potentialActions.d.ts +6 -3
- package/lib/chevre/service/transaction/returnOrder/potentialActions.js +4 -3
- package/lib/chevre/service/transaction/returnOrder/preStart/factory.d.ts +1 -1
- package/lib/chevre/service/transaction/returnOrder.d.ts +0 -2
- package/lib/chevre/service/transaction/returnOrder.js +6 -6
- package/package.json +2 -2
- package/lib/chevre/repo/accountTitle.d.ts +0 -28
- package/lib/chevre/repo/accountTitle.js +0 -30
- package/lib/chevre/service/aggregation/project.d.ts +0 -17
- package/lib/chevre/service/aggregation/project.js +0 -98
- package/lib/chevre/service/delivery/factory.d.ts +0 -16
- package/lib/chevre/service/delivery/factory.js +0 -124
|
@@ -130,37 +130,41 @@ class AdminEventSeriesRepo {
|
|
|
130
130
|
}, { projection: { _id: 1 } })
|
|
131
131
|
.exec();
|
|
132
132
|
}
|
|
133
|
-
/**
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
async aggregateMaxVersion(params
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
133
|
+
// /**
|
|
134
|
+
// * 既存施設コンテンツの最大バージョンを集計する
|
|
135
|
+
// */
|
|
136
|
+
// public async aggregateMaxVersion(params: {
|
|
137
|
+
// project: { id: { $eq: string } };
|
|
138
|
+
// workPerformed: { identifier: { $eq: string } };
|
|
139
|
+
// location: { branchCode: { $in: string[] } };
|
|
140
|
+
// }): Promise<{ maxVersion: string }> {
|
|
141
|
+
// const aggregations = await this.eventSeriesModel.aggregate<{ maxVersion: number }>([
|
|
142
|
+
// {
|
|
143
|
+
// $match: {
|
|
144
|
+
// 'project.id': { $eq: params.project.id.$eq },
|
|
145
|
+
// 'workPerformed.identifier': { $exists: true, $eq: params.workPerformed.identifier.$eq },
|
|
146
|
+
// 'workPerformed.version': { $exists: true },
|
|
147
|
+
// 'location.branchCode': { $exists: true, $in: params.location.branchCode.$in }
|
|
148
|
+
// }
|
|
149
|
+
// },
|
|
150
|
+
// {
|
|
151
|
+
// $project: {
|
|
152
|
+
// // workPerformed: '$workPerformed',
|
|
153
|
+
// version: { $toLong: '$workPerformed.version' } // support YYYYMMDDHHmmss
|
|
154
|
+
// }
|
|
155
|
+
// },
|
|
156
|
+
// {
|
|
157
|
+
// $group: {
|
|
158
|
+
// _id: null,
|
|
159
|
+
// maxVersion: { $max: '$version' }
|
|
160
|
+
// }
|
|
161
|
+
// }
|
|
162
|
+
// ])
|
|
163
|
+
// .exec();
|
|
164
|
+
// const firstMaxVersion = aggregations.at(0)?.maxVersion;
|
|
165
|
+
// const maxVersion: string = (typeof firstMaxVersion === 'number') ? String(firstMaxVersion) : '0';
|
|
166
|
+
// return { maxVersion };
|
|
167
|
+
// }
|
|
164
168
|
getCursor(conditions, projection) {
|
|
165
169
|
return this.eventSeriesModel.find(conditions, projection)
|
|
166
170
|
.sort({ startDate: factory_1.factory.sortType.Descending })
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import type { Connection, FilterQuery } from 'mongoose';
|
|
2
2
|
import { factory } from '../factory';
|
|
3
|
+
import { IDocType } from './mongoose/schemas/paymentServiceChannel';
|
|
3
4
|
export type ISavingChannel = Pick<factory.serviceChannel.IServiceChannel, 'credentials' | 'project' | 'providesService' | 'serviceUrl' | 'typeOf'> & {
|
|
4
5
|
id?: never;
|
|
5
6
|
};
|
|
6
|
-
interface IUnset {
|
|
7
|
-
$unset?: Record<string, 1>;
|
|
8
|
-
}
|
|
9
7
|
type IServiceChannelWithId = factory.serviceChannel.IServiceChannel & {
|
|
10
8
|
id: string;
|
|
11
9
|
};
|
|
12
|
-
type IKeyOfProjection = keyof
|
|
10
|
+
type IKeyOfProjection = keyof IDocType;
|
|
13
11
|
/**
|
|
14
|
-
*
|
|
12
|
+
* 決済サービスチャネル管理リポジトリ
|
|
15
13
|
*/
|
|
16
|
-
export declare class
|
|
14
|
+
export declare class AdminPaymentServiceChannelRepo {
|
|
17
15
|
private readonly paymentServiceChannelModel;
|
|
18
16
|
constructor(connection: Connection);
|
|
19
|
-
static CREATE_MONGO_CONDITIONS(params: factory.serviceChannel.ISearchConditions): FilterQuery<
|
|
20
|
-
|
|
17
|
+
static CREATE_MONGO_CONDITIONS(params: factory.serviceChannel.ISearchConditions): FilterQuery<IDocType>[];
|
|
18
|
+
/**
|
|
19
|
+
* 決済サービスチャネル保管
|
|
20
|
+
* 編集の場合、credentialsのみ変更可能
|
|
21
|
+
*/
|
|
22
|
+
savePaymentServiceChannel(params: {
|
|
21
23
|
id?: string;
|
|
22
|
-
attributes: ISavingChannel
|
|
24
|
+
attributes: ISavingChannel;
|
|
23
25
|
}): Promise<{
|
|
24
26
|
id: string;
|
|
25
27
|
}>;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
findPaymentServiceChannels(conditions: factory.serviceChannel.ISearchConditions, inclusion: IKeyOfProjection[]): Promise<IServiceChannelWithId[]>;
|
|
29
|
+
deletePaymentServiceChannelById(params: {
|
|
28
30
|
id: string;
|
|
29
31
|
project: {
|
|
30
32
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AdminPaymentServiceChannelRepo = void 0;
|
|
4
4
|
const factory_1 = require("../factory");
|
|
5
5
|
const settings_1 = require("../settings");
|
|
6
6
|
const paymentServiceChannel_1 = require("./mongoose/schemas/paymentServiceChannel");
|
|
@@ -10,12 +10,11 @@ const AVAILABLE_PROJECT_FIELDS = [
|
|
|
10
10
|
'credentials',
|
|
11
11
|
'providesService',
|
|
12
12
|
'serviceUrl',
|
|
13
|
-
'typeOf'
|
|
14
13
|
];
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
15
|
+
* 決済サービスチャネル管理リポジトリ
|
|
17
16
|
*/
|
|
18
|
-
class
|
|
17
|
+
class AdminPaymentServiceChannelRepo {
|
|
19
18
|
paymentServiceChannelModel;
|
|
20
19
|
constructor(connection) {
|
|
21
20
|
this.paymentServiceChannelModel = connection.model(paymentServiceChannel_1.modelName, (0, paymentServiceChannel_1.createSchema)());
|
|
@@ -44,29 +43,31 @@ class PaymentServiceChannelRepo {
|
|
|
44
43
|
}
|
|
45
44
|
return andConditions;
|
|
46
45
|
}
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
/**
|
|
47
|
+
* 決済サービスチャネル保管
|
|
48
|
+
* 編集の場合、credentialsのみ変更可能
|
|
49
|
+
*/
|
|
50
|
+
async savePaymentServiceChannel(params) {
|
|
49
51
|
let savedId;
|
|
50
52
|
const savingId = params.id;
|
|
51
53
|
if (typeof savingId === 'string') {
|
|
52
54
|
if (savingId === '') {
|
|
53
55
|
throw new factory_1.factory.errors.ArgumentNull('id');
|
|
54
56
|
}
|
|
55
|
-
const {
|
|
57
|
+
const { credentials, project } = params.attributes;
|
|
56
58
|
const filter = {
|
|
57
59
|
_id: { $eq: savingId },
|
|
58
60
|
'project.id': { $eq: project.id }
|
|
59
61
|
};
|
|
60
62
|
const update = {
|
|
61
|
-
$set:
|
|
62
|
-
...($unset !== undefined && $unset !== null) ? { $unset } : undefined
|
|
63
|
+
$set: { credentials },
|
|
63
64
|
};
|
|
64
65
|
const options = {
|
|
65
66
|
upsert: false,
|
|
66
67
|
new: true,
|
|
67
|
-
projection: { _id:
|
|
68
|
+
projection: { _id: 0, id: { $toString: '$_id' } }
|
|
68
69
|
};
|
|
69
|
-
doc = await this.paymentServiceChannelModel.findOneAndUpdate(filter, update, options)
|
|
70
|
+
const doc = await this.paymentServiceChannelModel.findOneAndUpdate(filter, update, options)
|
|
70
71
|
.lean()
|
|
71
72
|
.exec();
|
|
72
73
|
if (doc === null) {
|
|
@@ -75,8 +76,8 @@ class PaymentServiceChannelRepo {
|
|
|
75
76
|
savedId = savingId;
|
|
76
77
|
}
|
|
77
78
|
else {
|
|
78
|
-
const {
|
|
79
|
-
const result = await this.paymentServiceChannelModel.insertMany(
|
|
79
|
+
const { credentials, project, providesService, serviceUrl, typeOf } = params.attributes;
|
|
80
|
+
const result = await this.paymentServiceChannelModel.insertMany({ credentials, project, providesService, serviceUrl, typeOf }, { rawResult: true });
|
|
80
81
|
const insertedId = result.insertedIds?.[0]?.toHexString();
|
|
81
82
|
if (typeof insertedId !== 'string') {
|
|
82
83
|
throw new factory_1.factory.errors.Internal(`not saved unexpectedly. result:${JSON.stringify(result)}`);
|
|
@@ -85,8 +86,8 @@ class PaymentServiceChannelRepo {
|
|
|
85
86
|
}
|
|
86
87
|
return { id: savedId };
|
|
87
88
|
}
|
|
88
|
-
async
|
|
89
|
-
const andConditions =
|
|
89
|
+
async findPaymentServiceChannels(conditions, inclusion) {
|
|
90
|
+
const andConditions = AdminPaymentServiceChannelRepo.CREATE_MONGO_CONDITIONS(conditions);
|
|
90
91
|
let positiveProjectionFields = AVAILABLE_PROJECT_FIELDS;
|
|
91
92
|
if (Array.isArray(inclusion) && inclusion.length > 0) {
|
|
92
93
|
positiveProjectionFields = inclusion.filter((key) => AVAILABLE_PROJECT_FIELDS.includes(key));
|
|
@@ -109,11 +110,11 @@ class PaymentServiceChannelRepo {
|
|
|
109
110
|
.lean()
|
|
110
111
|
.exec();
|
|
111
112
|
}
|
|
112
|
-
async
|
|
113
|
-
await this.paymentServiceChannelModel.
|
|
113
|
+
async deletePaymentServiceChannelById(params) {
|
|
114
|
+
await this.paymentServiceChannelModel.deleteOne({
|
|
114
115
|
_id: { $eq: params.id },
|
|
115
116
|
'project.id': { $eq: params.project.id }
|
|
116
|
-
}
|
|
117
|
+
})
|
|
117
118
|
.exec();
|
|
118
119
|
}
|
|
119
120
|
async unsetUnnecessaryFields(params) {
|
|
@@ -121,4 +122,4 @@ class PaymentServiceChannelRepo {
|
|
|
121
122
|
.exec();
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
|
-
exports.
|
|
125
|
+
exports.AdminPaymentServiceChannelRepo = AdminPaymentServiceChannelRepo;
|
|
@@ -33,13 +33,13 @@ export declare class AdminTaskRepo {
|
|
|
33
33
|
}): Promise<{
|
|
34
34
|
count: number;
|
|
35
35
|
}>;
|
|
36
|
-
getCursor(conditions: FilterQuery<factory.task.ITask<factory.taskName>>, projection: ProjectionType<factory.task.ITask<factory.taskName>>): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask, "
|
|
36
|
+
getCursor(conditions: FilterQuery<factory.task.ITask<factory.taskName>>, projection: ProjectionType<factory.task.ITask<factory.taskName>>): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask, "identifier" | "name" | "description" | "project" | "data" | "status" | "runsAt" | "dateAborted" | "executionResults" | "executor" | "lastTriedAt" | "remainingNumberOfTries" | "numberOfTried"> & {
|
|
37
37
|
expires?: never;
|
|
38
38
|
} & {
|
|
39
39
|
_id: import("mongoose").Types.ObjectId;
|
|
40
40
|
} & {
|
|
41
41
|
__v: number;
|
|
42
|
-
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask, "
|
|
42
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask, "identifier" | "name" | "description" | "project" | "data" | "status" | "runsAt" | "dateAborted" | "executionResults" | "executor" | "lastTriedAt" | "remainingNumberOfTries" | "numberOfTried"> & {
|
|
43
43
|
expires?: never;
|
|
44
44
|
} & {
|
|
45
45
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -52,26 +52,26 @@ export declare class AdminTransactionRepo {
|
|
|
52
52
|
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
53
53
|
getCursor(conditions: any, projection: any, sort?: factory.sortType): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, {
|
|
54
54
|
object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
|
|
55
|
+
endDate?: Date | undefined;
|
|
56
|
+
startDate: Date;
|
|
57
|
+
typeOf: factory.transactionType.PlaceOrder;
|
|
55
58
|
project: import("@chevre/factory/lib/chevre/transaction").IProject;
|
|
56
59
|
seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
|
|
57
|
-
typeOf: factory.transactionType.PlaceOrder;
|
|
58
60
|
expires: Date;
|
|
59
61
|
result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
|
|
60
|
-
startDate: Date;
|
|
61
|
-
endDate?: Date | undefined;
|
|
62
62
|
instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
|
|
63
63
|
agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
|
|
64
64
|
status: factory.transactionStatusType;
|
|
65
65
|
tasksExportAction?: import("@chevre/factory/lib/chevre/transaction/placeOrder").ITasksExportAction | undefined;
|
|
66
66
|
}, import("./mongoose/virtuals").IVirtuals, {}> & {
|
|
67
67
|
object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
|
|
68
|
+
endDate?: Date | undefined;
|
|
69
|
+
startDate: Date;
|
|
70
|
+
typeOf: factory.transactionType.PlaceOrder;
|
|
68
71
|
project: import("@chevre/factory/lib/chevre/transaction").IProject;
|
|
69
72
|
seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
|
|
70
|
-
typeOf: factory.transactionType.PlaceOrder;
|
|
71
73
|
expires: Date;
|
|
72
74
|
result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
|
|
73
|
-
startDate: Date;
|
|
74
|
-
endDate?: Date | undefined;
|
|
75
75
|
instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
|
|
76
76
|
agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
|
|
77
77
|
status: factory.transactionStatusType;
|
|
@@ -82,39 +82,39 @@ export declare class AdminTransactionRepo {
|
|
|
82
82
|
__v: number;
|
|
83
83
|
}, import("mongoose").QueryOptions<{
|
|
84
84
|
object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
|
|
85
|
+
endDate?: Date | undefined;
|
|
86
|
+
startDate: Date;
|
|
87
|
+
typeOf: factory.transactionType.PlaceOrder;
|
|
85
88
|
project: import("@chevre/factory/lib/chevre/transaction").IProject;
|
|
86
89
|
seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
|
|
87
|
-
typeOf: factory.transactionType.PlaceOrder;
|
|
88
90
|
expires: Date;
|
|
89
91
|
result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
|
|
90
|
-
startDate: Date;
|
|
91
|
-
endDate?: Date | undefined;
|
|
92
92
|
instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
|
|
93
93
|
agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
|
|
94
94
|
status: factory.transactionStatusType;
|
|
95
95
|
tasksExportAction?: import("@chevre/factory/lib/chevre/transaction/placeOrder").ITasksExportAction | undefined;
|
|
96
96
|
}>, (import("mongoose").Document<unknown, Record<string, never>, {
|
|
97
97
|
object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
|
|
98
|
+
endDate?: Date | undefined;
|
|
99
|
+
startDate: Date;
|
|
100
|
+
typeOf: factory.transactionType.PlaceOrder;
|
|
98
101
|
project: import("@chevre/factory/lib/chevre/transaction").IProject;
|
|
99
102
|
seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
|
|
100
|
-
typeOf: factory.transactionType.PlaceOrder;
|
|
101
103
|
expires: Date;
|
|
102
104
|
result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
|
|
103
|
-
startDate: Date;
|
|
104
|
-
endDate?: Date | undefined;
|
|
105
105
|
instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
|
|
106
106
|
agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
|
|
107
107
|
status: factory.transactionStatusType;
|
|
108
108
|
tasksExportAction?: import("@chevre/factory/lib/chevre/transaction/placeOrder").ITasksExportAction | undefined;
|
|
109
109
|
}, import("./mongoose/virtuals").IVirtuals, {}> & {
|
|
110
110
|
object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
|
|
111
|
+
endDate?: Date | undefined;
|
|
112
|
+
startDate: Date;
|
|
113
|
+
typeOf: factory.transactionType.PlaceOrder;
|
|
111
114
|
project: import("@chevre/factory/lib/chevre/transaction").IProject;
|
|
112
115
|
seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
|
|
113
|
-
typeOf: factory.transactionType.PlaceOrder;
|
|
114
116
|
expires: Date;
|
|
115
117
|
result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
|
|
116
|
-
startDate: Date;
|
|
117
|
-
endDate?: Date | undefined;
|
|
118
118
|
instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
|
|
119
119
|
agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
|
|
120
120
|
status: factory.transactionStatusType;
|
|
@@ -17,28 +17,7 @@ class CategoryCodeRepo {
|
|
|
17
17
|
this.categoryCodeModel = connection.model(categoryCode_1.modelName, (0, categoryCode_1.createSchema)());
|
|
18
18
|
}
|
|
19
19
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
20
|
-
// const excludeMovieTicketType = true;
|
|
21
20
|
const andConditions = [];
|
|
22
|
-
// 決済カード区分をmovieTicketTypesへ移行済なので、excludeMovieTicketTypeオプションは不要(2025-11-07~)
|
|
23
|
-
// if (excludeMovieTicketType) {
|
|
24
|
-
// andConditions.push({
|
|
25
|
-
// 'inCodeSet.identifier': {
|
|
26
|
-
// $in: [
|
|
27
|
-
// factory.categoryCode.CategorySetIdentifier.ContentRatingType,
|
|
28
|
-
// factory.categoryCode.CategorySetIdentifier.CurrencyType,
|
|
29
|
-
// factory.categoryCode.CategorySetIdentifier.CustomerType,
|
|
30
|
-
// factory.categoryCode.CategorySetIdentifier.DistributorType,
|
|
31
|
-
// factory.categoryCode.CategorySetIdentifier.MembershipType,
|
|
32
|
-
// factory.categoryCode.CategorySetIdentifier.OfferCategoryType,
|
|
33
|
-
// factory.categoryCode.CategorySetIdentifier.PaymentMethodType,
|
|
34
|
-
// factory.categoryCode.CategorySetIdentifier.SeatingType,
|
|
35
|
-
// factory.categoryCode.CategorySetIdentifier.ServiceType,
|
|
36
|
-
// factory.categoryCode.CategorySetIdentifier.SoundFormatType,
|
|
37
|
-
// factory.categoryCode.CategorySetIdentifier.VideoFormatType
|
|
38
|
-
// ]
|
|
39
|
-
// }
|
|
40
|
-
// });
|
|
41
|
-
// }
|
|
42
21
|
/* istanbul ignore else */
|
|
43
22
|
if (params.project !== undefined && params.project !== null) {
|
|
44
23
|
if (params.project.id !== undefined && params.project.id !== null) {
|
|
@@ -31,6 +31,7 @@ export interface ISearchConditions {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
+
type IKeyOfProjection = keyof IDocType;
|
|
34
35
|
/**
|
|
35
36
|
* Eメールメッセージリポジトリ
|
|
36
37
|
*/
|
|
@@ -39,8 +40,9 @@ export declare class EmailMessageRepo {
|
|
|
39
40
|
constructor(connection: Connection);
|
|
40
41
|
static CREATE_MONGO_CONDITIONS(params: ISearchConditions): FilterQuery<IDocType>[];
|
|
41
42
|
save(params: IEmailMessage): Promise<any>;
|
|
42
|
-
findEmailMessages(params: ISearchConditions): Promise<IEmailMessage[]>;
|
|
43
|
+
findEmailMessages(params: ISearchConditions, inclusion: IKeyOfProjection[]): Promise<IEmailMessage[]>;
|
|
43
44
|
deleteById(params: {
|
|
44
45
|
id: string;
|
|
45
46
|
}): Promise<void>;
|
|
46
47
|
}
|
|
48
|
+
export {};
|
|
@@ -4,17 +4,15 @@ exports.EmailMessageRepo = void 0;
|
|
|
4
4
|
const emailMessages_1 = require("./mongoose/schemas/emailMessages");
|
|
5
5
|
const factory_1 = require("../factory");
|
|
6
6
|
const settings_1 = require("../settings");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
text: 1,
|
|
17
|
-
};
|
|
7
|
+
const AVAILABLE_PROJECT_FIELDS = [
|
|
8
|
+
'project',
|
|
9
|
+
'typeOf',
|
|
10
|
+
'identifier',
|
|
11
|
+
'name',
|
|
12
|
+
'about',
|
|
13
|
+
'sender',
|
|
14
|
+
'text',
|
|
15
|
+
];
|
|
18
16
|
/**
|
|
19
17
|
* Eメールメッセージリポジトリ
|
|
20
18
|
*/
|
|
@@ -61,9 +59,18 @@ class EmailMessageRepo {
|
|
|
61
59
|
}
|
|
62
60
|
return doc.toObject();
|
|
63
61
|
}
|
|
64
|
-
async findEmailMessages(params) {
|
|
62
|
+
async findEmailMessages(params, inclusion) {
|
|
65
63
|
const conditions = EmailMessageRepo.CREATE_MONGO_CONDITIONS(params);
|
|
66
|
-
|
|
64
|
+
let positiveProjectionFields = AVAILABLE_PROJECT_FIELDS;
|
|
65
|
+
if (Array.isArray(inclusion)) {
|
|
66
|
+
positiveProjectionFields = inclusion.filter((key) => AVAILABLE_PROJECT_FIELDS.includes(key));
|
|
67
|
+
}
|
|
68
|
+
const projection = {
|
|
69
|
+
_id: 0,
|
|
70
|
+
id: { $toString: '$_id' },
|
|
71
|
+
...Object.fromEntries(positiveProjectionFields.map((key) => ([key, 1])))
|
|
72
|
+
};
|
|
73
|
+
const query = this.emailMessageModel.find((conditions.length > 0) ? { $and: conditions } : {}, projection);
|
|
67
74
|
if (typeof params.limit === 'number' && params.limit > 0) {
|
|
68
75
|
const page = (typeof params.page === 'number' && params.page > 0) ? params.page : 1;
|
|
69
76
|
query.limit(params.limit)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Connection, FilterQuery } from 'mongoose';
|
|
2
2
|
import { factory } from '../factory';
|
|
3
|
-
type ISearchConditions = factory.eventSeries.ISearchConditions
|
|
3
|
+
type ISearchConditions = Pick<factory.eventSeries.ISearchConditions, 'limit' | 'page' | 'sort' | 'additionalProperty' | 'endFrom' | 'endThrough' | 'id' | 'inSessionFrom' | 'inSessionThrough' | 'location' | 'name' | 'organizer' | 'project' | 'startFrom' | 'startThrough' | 'videoFormat' | 'workPerformed' | 'movieIdentifier' | 'movieVersion'>;
|
|
4
4
|
type IKeyOfProjection = Exclude<keyof factory.eventSeries.IEvent, 'id' | 'videoFormat'>;
|
|
5
5
|
/**
|
|
6
6
|
* 施設コンテンツリポジトリ
|
|
@@ -12,7 +12,7 @@ export declare class EventSeriesRepo {
|
|
|
12
12
|
/**
|
|
13
13
|
* イベントを検索する(inclusion projection)
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
findEventSeries(params: ISearchConditions, inclusion: IKeyOfProjection[]): Promise<factory.eventSeries.IEvent[]>;
|
|
16
16
|
deleteManyByOrganizerId(params: {
|
|
17
17
|
project: {
|
|
18
18
|
id: string;
|
|
@@ -127,18 +127,25 @@ class EventSeriesRepo {
|
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
const workPerformedIdentifierIn = conditions.workPerformed?.identifiers;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
130
|
+
// const workPerformedIdentifierIn = conditions.workPerformed?.identifiers;
|
|
131
|
+
// if (Array.isArray(workPerformedIdentifierIn)) {
|
|
132
|
+
// andConditions.push({
|
|
133
|
+
// 'workPerformed.identifier': { $exists: true, $in: workPerformedIdentifierIn }
|
|
134
|
+
// });
|
|
135
|
+
// }
|
|
136
|
+
// const workPerformedVersionEq = conditions.workPerformed?.version?.$eq;
|
|
137
|
+
// if (typeof workPerformedVersionEq === 'string') {
|
|
138
|
+
// andConditions.push({
|
|
139
|
+
// 'workPerformed.version': { $exists: true, $eq: workPerformedVersionEq }
|
|
140
|
+
// });
|
|
141
|
+
// }
|
|
142
|
+
const workPerformedIdentifierEq = conditions.movieIdentifier;
|
|
143
|
+
if (typeof workPerformedIdentifierEq === 'string') {
|
|
144
|
+
andConditions.push({ 'workPerformed.identifier': { $exists: true, $eq: workPerformedIdentifierEq } });
|
|
145
|
+
}
|
|
146
|
+
const workPerformedVersionEq = conditions.movieVersion;
|
|
138
147
|
if (typeof workPerformedVersionEq === 'string') {
|
|
139
|
-
andConditions.push({
|
|
140
|
-
'workPerformed.version': { $exists: true, $eq: workPerformedVersionEq }
|
|
141
|
-
});
|
|
148
|
+
andConditions.push({ 'workPerformed.version': { $exists: true, $eq: workPerformedVersionEq } });
|
|
142
149
|
}
|
|
143
150
|
const videoFormatTypeOfEq = conditions.videoFormat?.typeOf?.$eq;
|
|
144
151
|
if (typeof videoFormatTypeOfEq === 'string') {
|
|
@@ -153,7 +160,7 @@ class EventSeriesRepo {
|
|
|
153
160
|
/**
|
|
154
161
|
* イベントを検索する(inclusion projection)
|
|
155
162
|
*/
|
|
156
|
-
async
|
|
163
|
+
async findEventSeries(params, inclusion) {
|
|
157
164
|
const conditions = EventSeriesRepo.CREATE_MONGO_CONDITIONS(params);
|
|
158
165
|
let projection;
|
|
159
166
|
const positiveProjectionFields = (Array.isArray(inclusion))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { factory } from '../../../factory';
|
|
2
|
-
type IAcceptedOfferByReserveTransaction = Pick<factory.
|
|
2
|
+
type IAcceptedOfferByReserveTransaction = Pick<factory.acceptedOffer.IOptimizedAcceptedOffer, 'itemOffered' | 'priceSpecification' | 'name'>;
|
|
3
3
|
/**
|
|
4
4
|
* 予約取引を注文のitemOfferedへ変換する
|
|
5
5
|
*/
|
|
@@ -36,17 +36,13 @@ export declare class IssuerRepo {
|
|
|
36
36
|
};
|
|
37
37
|
}): Promise<void>;
|
|
38
38
|
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<factory.issuer.IIssuer, "id"> & {
|
|
39
|
-
hasMemberProgram?:
|
|
40
|
-
hasTiers?: Pick<factory.issuer.IMemberProgramTier, "identifier" | "typeOf">[];
|
|
41
|
-
})[];
|
|
39
|
+
hasMemberProgram?: factory.issuer.IMemberProgram[];
|
|
42
40
|
} & {
|
|
43
41
|
_id: import("mongoose").Types.ObjectId;
|
|
44
42
|
} & {
|
|
45
43
|
__v: number;
|
|
46
44
|
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<factory.issuer.IIssuer, "id"> & {
|
|
47
|
-
hasMemberProgram?:
|
|
48
|
-
hasTiers?: Pick<factory.issuer.IMemberProgramTier, "identifier" | "typeOf">[];
|
|
49
|
-
})[];
|
|
45
|
+
hasMemberProgram?: factory.issuer.IMemberProgram[];
|
|
50
46
|
} & {
|
|
51
47
|
_id: import("mongoose").Types.ObjectId;
|
|
52
48
|
} & {
|
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
import { Connection } from 'mongoose';
|
|
2
2
|
import { factory } from '../factory';
|
|
3
|
-
type
|
|
4
|
-
type IMemberProgram = factory.issuer.IMemberProgram & {
|
|
5
|
-
hasTiers?: IMemberProgramTier[];
|
|
6
|
-
};
|
|
3
|
+
type IMemberProgram = factory.issuer.IMemberProgram;
|
|
7
4
|
type IMemberProgramAsSearchResult = IMemberProgram & {
|
|
8
5
|
hostingOrganization: {
|
|
9
6
|
identifier: string;
|
|
10
7
|
};
|
|
11
8
|
};
|
|
12
|
-
type IMemberProgramTierAsSearchResult = IMemberProgramTier & {
|
|
13
|
-
isTierOf: {
|
|
14
|
-
identifier: string;
|
|
15
|
-
hostingOrganization: {
|
|
16
|
-
identifier: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
9
|
/**
|
|
21
10
|
* メンバープログラムリポジトリ
|
|
22
11
|
*/
|
|
@@ -44,31 +33,6 @@ export declare class MemberProgramRepo {
|
|
|
44
33
|
$in?: string[];
|
|
45
34
|
};
|
|
46
35
|
}): Promise<IMemberProgramAsSearchResult[]>;
|
|
47
|
-
/**
|
|
48
|
-
* tierを検索する
|
|
49
|
-
*/
|
|
50
|
-
projectMemberProgramTiers(params: {
|
|
51
|
-
limit?: number;
|
|
52
|
-
page?: number;
|
|
53
|
-
project?: {
|
|
54
|
-
id?: {
|
|
55
|
-
$eq?: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
isTierOf?: {
|
|
59
|
-
hostingOrganization?: {
|
|
60
|
-
id?: {
|
|
61
|
-
$eq?: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
identifier?: {
|
|
65
|
-
$eq?: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
identifier?: {
|
|
69
|
-
$eq?: string;
|
|
70
|
-
};
|
|
71
|
-
}): Promise<IMemberProgramTierAsSearchResult[]>;
|
|
72
36
|
create(params: {
|
|
73
37
|
project: {
|
|
74
38
|
id: string;
|
|
@@ -83,7 +47,6 @@ export declare class MemberProgramRepo {
|
|
|
83
47
|
id: string;
|
|
84
48
|
};
|
|
85
49
|
identifier: string;
|
|
86
|
-
hasTiers?: Pick<factory.issuer.IMemberProgramTier, 'identifier'>[];
|
|
87
50
|
hostingOrganization: {
|
|
88
51
|
id: string;
|
|
89
52
|
};
|