@chevre/domain 28.0.0-alpha.4 → 28.0.0-alpha.41
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/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/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/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 +13 -19
- package/lib/chevre/repo/project.js +27 -43
- 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/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/preStart.js +1 -2
- 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
|
@@ -125,63 +125,38 @@ class SellerRepo {
|
|
|
125
125
|
'hasMerchantReturnPolicy.identifier': { $exists: true, $eq: hasMerchantReturnPolicyIdentifierEq }
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
// discontinue(2025-01-22~)
|
|
129
|
-
// const hasMerchantReturnApplicablePaymentMethodEq = params.hasMerchantReturnPolicy?.applicablePaymentMethod?.$eq;
|
|
130
|
-
// if (typeof hasMerchantReturnApplicablePaymentMethodEq === 'string') {
|
|
131
|
-
// andConditions.push({
|
|
132
|
-
// 'hasMerchantReturnPolicy.applicablePaymentMethod': { $exists: true, $eq: hasMerchantReturnApplicablePaymentMethodEq }
|
|
133
|
-
// });
|
|
134
|
-
// }
|
|
135
|
-
// discontinue(2025-01-22~)
|
|
136
|
-
// const hasMerchantReturnPolicyItemConditionIdEq = params.hasMerchantReturnPolicy?.itemCondition?.id?.$eq;
|
|
137
|
-
// if (typeof hasMerchantReturnPolicyItemConditionIdEq === 'string') {
|
|
138
|
-
// andConditions.push({
|
|
139
|
-
// 'hasMerchantReturnPolicy.itemCondition.id': {
|
|
140
|
-
// $exists: true,
|
|
141
|
-
// $eq: hasMerchantReturnPolicyItemConditionIdEq
|
|
142
|
-
// }
|
|
143
|
-
// });
|
|
144
|
-
// }
|
|
145
128
|
return andConditions;
|
|
146
129
|
}
|
|
147
|
-
static CREATE_AGGREGATE_SELLERS_PROJECTION(
|
|
130
|
+
static CREATE_AGGREGATE_SELLERS_PROJECTION(inclusions) {
|
|
131
|
+
const inclusionMap = new Map(inclusions.map(inclusion => [inclusion, 1]));
|
|
148
132
|
const projectStage = {
|
|
149
133
|
_id: 0,
|
|
150
134
|
id: { $toString: '$_id' },
|
|
151
|
-
additionalProperty: '$additionalProperty',
|
|
152
|
-
branchCode: '$branchCode',
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
135
|
+
...((inclusionMap.get('additionalProperty') === 1) && { additionalProperty: '$additionalProperty' }),
|
|
136
|
+
...((inclusionMap.get('branchCode') === 1) && { branchCode: '$branchCode' }),
|
|
137
|
+
...((inclusionMap.get('name') === 1) && { name: '$name' }),
|
|
138
|
+
...((inclusionMap.get('project') === 1) && { project: '$project' }),
|
|
139
|
+
...((inclusionMap.get('typeOf') === 1) && { typeOf: '$typeOf' }),
|
|
140
|
+
...((inclusionMap.get('url') === 1) && { url: '$url' }),
|
|
141
|
+
...((inclusionMap.get('telephone') === 1) && { telephone: '$telephone' }),
|
|
142
|
+
...((inclusionMap.get('hasMerchantReturnPolicy') === 1) && {
|
|
143
|
+
hasMerchantReturnPolicy: {
|
|
144
|
+
$cond: {
|
|
145
|
+
if: { $isArray: '$hasMerchantReturnPolicy' },
|
|
146
|
+
then: {
|
|
147
|
+
$cond: {
|
|
148
|
+
if: { $eq: [{ $size: '$hasMerchantReturnPolicy' }, 0] },
|
|
149
|
+
then: [],
|
|
150
|
+
else: [{
|
|
151
|
+
url: { $first: '$hasMerchantReturnPolicy.url' }
|
|
152
|
+
}]
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
else: []
|
|
156
|
+
}
|
|
167
157
|
}
|
|
168
|
-
},
|
|
169
|
-
name: '$name',
|
|
170
|
-
project: '$project',
|
|
171
|
-
typeOf: '$typeOf',
|
|
172
|
-
url: '$url',
|
|
173
|
-
telephone: '$telephone'
|
|
158
|
+
}),
|
|
174
159
|
};
|
|
175
|
-
// if (inclusion.length > 0) {
|
|
176
|
-
// // no op
|
|
177
|
-
// } else
|
|
178
|
-
if (exclusion.length > 0) {
|
|
179
|
-
exclusion.forEach((field) => {
|
|
180
|
-
if (typeof projectStage[field] === 'string' || typeof projectStage[field] === 'object') {
|
|
181
|
-
delete projectStage[field]; // eslint-disable-line @typescript-eslint/no-dynamic-delete
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
160
|
return projectStage;
|
|
186
161
|
}
|
|
187
162
|
/**
|
|
@@ -233,10 +208,10 @@ class SellerRepo {
|
|
|
233
208
|
/**
|
|
234
209
|
* 集計検索(publicな属性検索が目的)
|
|
235
210
|
*/
|
|
236
|
-
async
|
|
211
|
+
async findSellersPublicFields(conditions, inclusions) {
|
|
237
212
|
const matchStages = SellerRepo.CREATE_MONGO_CONDITIONS(conditions)
|
|
238
213
|
.map((c) => ({ $match: c }));
|
|
239
|
-
const projectStage = SellerRepo.CREATE_AGGREGATE_SELLERS_PROJECTION(
|
|
214
|
+
const projectStage = SellerRepo.CREATE_AGGREGATE_SELLERS_PROJECTION(inclusions);
|
|
240
215
|
const sortByBranchCode = conditions.sort?.branchCode;
|
|
241
216
|
const aggregate = this.sellerModel.aggregate([
|
|
242
217
|
...matchStages,
|
|
@@ -245,12 +220,10 @@ class SellerRepo {
|
|
|
245
220
|
: [],
|
|
246
221
|
{ $project: projectStage }
|
|
247
222
|
]);
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
.skip(conditions.limit * (page - 1));
|
|
253
|
-
}
|
|
223
|
+
const { limit, page } = conditions;
|
|
224
|
+
const pageMustBePositive = (typeof page === 'number' && page > 0) ? page : 1;
|
|
225
|
+
aggregate.skip(limit * (pageMustBePositive - 1))
|
|
226
|
+
.limit(limit);
|
|
254
227
|
return aggregate.exec();
|
|
255
228
|
}
|
|
256
229
|
/**
|
|
@@ -5,29 +5,19 @@ import { Connection } from 'mongoose';
|
|
|
5
5
|
export declare class SellerPaymentAcceptedRepo {
|
|
6
6
|
private readonly sellerModel;
|
|
7
7
|
constructor(connection: Connection);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
$eq?: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
project?: {
|
|
17
|
-
id?: {
|
|
18
|
-
$eq?: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
8
|
+
findSellerPaymentAccepted(params: {
|
|
9
|
+
sellerId: string;
|
|
10
|
+
projectId: string;
|
|
11
|
+
limit: number;
|
|
12
|
+
page: number;
|
|
21
13
|
codeValue?: {
|
|
22
14
|
$eq?: string;
|
|
23
15
|
};
|
|
24
16
|
}): Promise<{
|
|
25
17
|
codeValue: string;
|
|
26
|
-
seller: {
|
|
27
|
-
id: string;
|
|
28
|
-
};
|
|
29
18
|
}[]>;
|
|
30
|
-
|
|
19
|
+
private countSellerPaymentAccepted;
|
|
20
|
+
addSellerPaymentAccepted(params: {
|
|
31
21
|
codeValue: string;
|
|
32
22
|
project: {
|
|
33
23
|
id: string;
|
|
@@ -35,8 +25,10 @@ export declare class SellerPaymentAcceptedRepo {
|
|
|
35
25
|
seller: {
|
|
36
26
|
id: string;
|
|
37
27
|
};
|
|
28
|
+
}, options: {
|
|
29
|
+
maxNumSellerPaymentAccepted: number;
|
|
38
30
|
}): Promise<void>;
|
|
39
|
-
|
|
31
|
+
deleteSellerPaymentAccepted(params: {
|
|
40
32
|
codeValue: string;
|
|
41
33
|
project: {
|
|
42
34
|
id: string;
|
|
@@ -46,9 +38,10 @@ export declare class SellerPaymentAcceptedRepo {
|
|
|
46
38
|
};
|
|
47
39
|
}): Promise<void>;
|
|
48
40
|
isAcceptedBySeller(params: {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
sellerId: string;
|
|
42
|
+
/**
|
|
43
|
+
* 決済方法区分
|
|
44
|
+
*/
|
|
52
45
|
codeValue: string;
|
|
53
46
|
}): Promise<boolean>;
|
|
54
47
|
}
|
|
@@ -13,21 +13,21 @@ class SellerPaymentAcceptedRepo {
|
|
|
13
13
|
constructor(connection) {
|
|
14
14
|
this.sellerModel = connection.model(seller_1.modelName, (0, seller_1.createSchema)());
|
|
15
15
|
}
|
|
16
|
-
async
|
|
16
|
+
async findSellerPaymentAccepted(params) {
|
|
17
|
+
const { sellerId, projectId } = params;
|
|
17
18
|
const matchStages = [];
|
|
18
|
-
const projectIdEq = params.project?.id?.$eq;
|
|
19
|
-
if (typeof projectIdEq === 'string') {
|
|
20
|
-
matchStages.push({ $match: { 'project.id': { $eq: projectIdEq } } });
|
|
21
|
-
}
|
|
22
|
-
const sellerIdEq = params.seller?.id?.$eq;
|
|
23
|
-
if (typeof sellerIdEq === 'string') {
|
|
24
|
-
matchStages.push({ $match: { _id: { $eq: new mongoose_1.Types.ObjectId(sellerIdEq) } } });
|
|
25
|
-
}
|
|
26
19
|
const codeValueEq = params.codeValue?.$eq;
|
|
27
20
|
if (typeof codeValueEq === 'string') {
|
|
28
21
|
matchStages.push({ $match: { 'paymentAccepted.paymentMethodType': { $exists: true, $eq: codeValueEq } } });
|
|
29
22
|
}
|
|
30
23
|
const aggregate = this.sellerModel.aggregate([
|
|
24
|
+
// まず販売者ドキュメントで絞る
|
|
25
|
+
{
|
|
26
|
+
$match: {
|
|
27
|
+
_id: { $eq: new mongoose_1.Types.ObjectId(sellerId) },
|
|
28
|
+
'project.id': { $eq: projectId }
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
31
|
{
|
|
32
32
|
$unwind: {
|
|
33
33
|
path: '$paymentAccepted'
|
|
@@ -39,45 +39,81 @@ class SellerPaymentAcceptedRepo {
|
|
|
39
39
|
$project: {
|
|
40
40
|
_id: 0,
|
|
41
41
|
codeValue: '$paymentAccepted.paymentMethodType',
|
|
42
|
-
seller: { id: { $toString: '$_id' } }
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
]);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
45
|
+
const { limit, page } = params;
|
|
46
|
+
const pageMustBePositive = (typeof page === 'number' && page > 0) ? page : 1;
|
|
47
|
+
aggregate.skip(limit * (pageMustBePositive - 1))
|
|
48
|
+
.limit(limit);
|
|
51
49
|
return aggregate.option({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
52
50
|
.exec();
|
|
53
51
|
}
|
|
54
|
-
async
|
|
55
|
-
|
|
52
|
+
async countSellerPaymentAccepted(params) {
|
|
53
|
+
const paymentAcceptedCount = (await this.sellerModel.aggregate([
|
|
54
|
+
{
|
|
55
|
+
$match: {
|
|
56
|
+
_id: { $eq: new mongoose_1.Types.ObjectId(params.seller.id) },
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
$project: {
|
|
61
|
+
paymentAcceptedCount: {
|
|
62
|
+
$cond: {
|
|
63
|
+
if: { $isArray: '$paymentAccepted' },
|
|
64
|
+
then: { $size: '$paymentAccepted' },
|
|
65
|
+
else: 0
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]).option({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
71
|
+
.exec()).at(0)?.paymentAcceptedCount;
|
|
72
|
+
if (typeof paymentAcceptedCount !== 'number') {
|
|
73
|
+
throw new factory_1.factory.errors.NotFound(factory_1.factory.organizationType.Corporation);
|
|
74
|
+
}
|
|
75
|
+
return { paymentAcceptedCount };
|
|
76
|
+
}
|
|
77
|
+
async addSellerPaymentAccepted(params, options) {
|
|
78
|
+
const sellerDoc = await this.sellerModel.findOne({
|
|
56
79
|
'project.id': { $eq: params.project.id },
|
|
57
80
|
_id: { $eq: params.seller.id }
|
|
58
81
|
}, { _id: 1 })
|
|
82
|
+
.lean()
|
|
59
83
|
.exec();
|
|
60
|
-
if (
|
|
84
|
+
if (sellerDoc === null) {
|
|
61
85
|
throw new factory_1.factory.errors.NotFound(factory_1.factory.organizationType.Corporation);
|
|
62
86
|
}
|
|
87
|
+
// 最大数検証(2026-09-20~)
|
|
88
|
+
const { maxNumSellerPaymentAccepted } = options;
|
|
63
89
|
const creatingPaymentAccepted = {
|
|
64
90
|
paymentMethodType: params.codeValue
|
|
65
91
|
};
|
|
66
|
-
doc = await this.sellerModel.findOneAndUpdate({
|
|
92
|
+
const doc = await this.sellerModel.findOneAndUpdate({
|
|
67
93
|
'project.id': { $eq: params.project.id },
|
|
68
94
|
_id: { $eq: params.seller.id },
|
|
69
|
-
'paymentAccepted.paymentMethodType': { $ne: params.codeValue }
|
|
95
|
+
'paymentAccepted.paymentMethodType': { $ne: params.codeValue },
|
|
96
|
+
// 配列の長さが上限未満であることをアトミックに確認
|
|
97
|
+
$expr: {
|
|
98
|
+
$lt: [{ $size: { $ifNull: ['$paymentAccepted', []] } }, maxNumSellerPaymentAccepted] // 最大数担保(2026-09-22~)
|
|
99
|
+
}
|
|
70
100
|
}, {
|
|
71
101
|
$push: { paymentAccepted: creatingPaymentAccepted }
|
|
72
102
|
}, {
|
|
73
103
|
projection: { _id: 1 }
|
|
74
104
|
})
|
|
105
|
+
.lean()
|
|
75
106
|
.exec();
|
|
76
107
|
if (doc === null) {
|
|
108
|
+
const { paymentAcceptedCount } = await this.countSellerPaymentAccepted({ seller: params.seller });
|
|
109
|
+
if (paymentAcceptedCount >= maxNumSellerPaymentAccepted) {
|
|
110
|
+
throw new factory_1.factory.errors.Argument('seller.id', 'maxNumSellerPaymentAccepted exceeded');
|
|
111
|
+
}
|
|
112
|
+
// 上限以下で追加できない場合は「すでに登録済み」
|
|
77
113
|
throw new factory_1.factory.errors.AlreadyInUse('paymentAccepted', ['paymentMethodType']);
|
|
78
114
|
}
|
|
79
115
|
}
|
|
80
|
-
async
|
|
116
|
+
async deleteSellerPaymentAccepted(params) {
|
|
81
117
|
const doc = await this.sellerModel.findOneAndUpdate({
|
|
82
118
|
'project.id': { $eq: params.project.id },
|
|
83
119
|
_id: { $eq: params.seller.id },
|
|
@@ -87,29 +123,20 @@ class SellerPaymentAcceptedRepo {
|
|
|
87
123
|
}, {
|
|
88
124
|
projection: { _id: 1 }
|
|
89
125
|
})
|
|
126
|
+
.lean()
|
|
90
127
|
.exec();
|
|
91
128
|
if (doc === null) {
|
|
92
129
|
throw new factory_1.factory.errors.NotFound(factory_1.factory.organizationType.Corporation);
|
|
93
130
|
}
|
|
94
131
|
}
|
|
95
132
|
async isAcceptedBySeller(params) {
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
$project: {
|
|
104
|
-
_id: 0,
|
|
105
|
-
codeValue: '$paymentAccepted.paymentMethodType'
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
])
|
|
109
|
-
.limit(1)
|
|
110
|
-
.skip(0);
|
|
111
|
-
return (await aggregate.option({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
112
|
-
.exec()).length > 0;
|
|
133
|
+
const { sellerId, codeValue } = params;
|
|
134
|
+
const doc = await this.sellerModel.exists({
|
|
135
|
+
_id: { $eq: new mongoose_1.Types.ObjectId(sellerId) },
|
|
136
|
+
'paymentAccepted.paymentMethodType': { $exists: true, $eq: codeValue }
|
|
137
|
+
})
|
|
138
|
+
.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS });
|
|
139
|
+
return doc !== null;
|
|
113
140
|
}
|
|
114
141
|
}
|
|
115
142
|
exports.SellerPaymentAcceptedRepo = SellerPaymentAcceptedRepo;
|
|
@@ -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
|
/**
|