@chevre/domain 21.12.0 → 21.13.0-alpha.1
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/searchEvents.ts +1 -1
- package/example/src/chevre/searchOrders.ts +1 -1
- package/example/src/chevre/transaction/processReturnOrder.ts +8 -8
- package/example/src/chevre/transaction/startExportTasks.ts +1 -1
- package/example/src/chevre/unsetContainsInPlaceFromMovieTheater.ts +1 -1
- package/example/src/chevre/unsetUnnecessaryFields.ts +1 -1
- package/example/src/chevre/updateOfferCatalogs.ts +1 -1
- package/example/src/chevre/updateTransaction.ts +1 -1
- package/lib/chevre/index.d.ts +1 -2
- package/lib/chevre/index.js +2 -3
- package/lib/chevre/repo/account.js +1 -1
- package/lib/chevre/repo/accountTitle.js +1 -1
- package/lib/chevre/repo/accountTransaction.js +1 -1
- package/lib/chevre/repo/accountingReport.js +1 -1
- package/lib/chevre/repo/action.js +1 -1
- package/lib/chevre/repo/additionalProperty.js +1 -1
- package/lib/chevre/repo/aggregateOffer.js +1 -1
- package/lib/chevre/repo/aggregation.js +1 -1
- package/lib/chevre/repo/assetTransaction.js +1 -1
- package/lib/chevre/repo/categoryCode.js +1 -1
- package/lib/chevre/repo/code.js +1 -1
- package/lib/chevre/repo/comment.js +1 -1
- package/lib/chevre/repo/creativeWork.js +1 -1
- package/lib/chevre/repo/customer.js +1 -1
- package/lib/chevre/repo/emailMessage.js +1 -1
- package/lib/chevre/repo/event.d.ts +2 -2
- package/lib/chevre/repo/event.js +6 -2
- package/lib/chevre/repo/member.js +1 -1
- package/lib/chevre/repo/merchantReturnPolicy.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/account.d.ts +4 -56
- package/lib/chevre/repo/mongoose/schemas/account.js +80 -32
- package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +4 -90
- package/lib/chevre/repo/mongoose/schemas/accountTitle.js +81 -44
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +4 -95
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +129 -62
- package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +4 -68
- package/lib/chevre/repo/mongoose/schemas/accountingReport.js +108 -63
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +4 -113
- package/lib/chevre/repo/mongoose/schemas/action.js +345 -215
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +4 -74
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.js +65 -32
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +4 -73
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.js +258 -155
- package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +4 -56
- package/lib/chevre/repo/mongoose/schemas/aggregation.js +28 -10
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +4 -113
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +258 -146
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +4 -77
- package/lib/chevre/repo/mongoose/schemas/authorization.js +110 -61
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +4 -86
- package/lib/chevre/repo/mongoose/schemas/categoryCode.js +85 -46
- package/lib/chevre/repo/mongoose/schemas/comments.d.ts +4 -89
- package/lib/chevre/repo/mongoose/schemas/comments.js +59 -28
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +4 -104
- package/lib/chevre/repo/mongoose/schemas/creativeWork.js +121 -70
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +4 -86
- package/lib/chevre/repo/mongoose/schemas/customer.js +56 -26
- package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +4 -80
- package/lib/chevre/repo/mongoose/schemas/emailMessages.js +41 -17
- package/lib/chevre/repo/mongoose/schemas/event.d.ts +4 -158
- package/lib/chevre/repo/mongoose/schemas/event.js +307 -193
- package/lib/chevre/repo/mongoose/schemas/member.d.ts +4 -68
- package/lib/chevre/repo/mongoose/schemas/member.js +65 -37
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +4 -80
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.js +29 -11
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +4 -91
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +85 -45
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +4 -91
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.js +29 -10
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +4 -73
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.js +37 -12
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +4 -128
- package/lib/chevre/repo/mongoose/schemas/order.js +407 -259
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +4 -86
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +187 -111
- package/lib/chevre/repo/mongoose/schemas/place.d.ts +4 -128
- package/lib/chevre/repo/mongoose/schemas/place.js +159 -93
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +4 -92
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.js +94 -49
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +4 -95
- package/lib/chevre/repo/mongoose/schemas/product.js +109 -61
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +4 -83
- package/lib/chevre/repo/mongoose/schemas/project.js +20 -9
- package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +4 -143
- package/lib/chevre/repo/mongoose/schemas/reservation.js +377 -229
- package/lib/chevre/repo/mongoose/schemas/role.d.ts +4 -65
- package/lib/chevre/repo/mongoose/schemas/role.js +43 -19
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +4 -95
- package/lib/chevre/repo/mongoose/schemas/seller.js +96 -51
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +4 -65
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +112 -63
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +4 -95
- package/lib/chevre/repo/mongoose/schemas/task.js +214 -126
- package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +4 -80
- package/lib/chevre/repo/mongoose/schemas/telemetry.js +44 -24
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +4 -107
- package/lib/chevre/repo/mongoose/schemas/transaction.js +291 -176
- package/lib/chevre/repo/mongoose/schemas/trip.d.ts +4 -65
- package/lib/chevre/repo/mongoose/schemas/trip.js +20 -9
- package/lib/chevre/repo/offer.js +5 -4
- package/lib/chevre/repo/offerCatalog.d.ts +1 -1
- package/lib/chevre/repo/offerCatalog.js +2 -2
- package/lib/chevre/repo/offerCatalogItem.js +1 -1
- package/lib/chevre/repo/offerItemCondition.js +1 -1
- package/lib/chevre/repo/order.js +1 -1
- package/lib/chevre/repo/ownershipInfo.js +1 -1
- package/lib/chevre/repo/paymentServiceProvider.js +1 -1
- package/lib/chevre/repo/permit.js +1 -1
- package/lib/chevre/repo/place/hasPOS.js +1 -1
- package/lib/chevre/repo/place.js +1 -1
- package/lib/chevre/repo/priceSpecification.js +1 -1
- package/lib/chevre/repo/product.js +1 -1
- package/lib/chevre/repo/productOffer.js +1 -1
- package/lib/chevre/repo/project.js +1 -1
- package/lib/chevre/repo/reservation.js +1 -1
- package/lib/chevre/repo/role.js +1 -1
- package/lib/chevre/repo/seller.js +1 -1
- package/lib/chevre/repo/serviceOutput.js +1 -1
- package/lib/chevre/repo/task.js +1 -1
- package/lib/chevre/repo/telemetry.js +1 -1
- package/lib/chevre/repo/transaction.js +1 -1
- package/lib/chevre/repo/trip.js +1 -1
- package/lib/chevre/repository.d.ts +160 -137
- package/lib/chevre/repository.js +531 -223
- package/lib/chevre/service/account.d.ts +2 -2
- package/lib/chevre/service/accountTransaction/deposit.d.ts +2 -2
- package/lib/chevre/service/accountTransaction/transfer.d.ts +2 -2
- package/lib/chevre/service/accountTransaction/withdraw.d.ts +2 -2
- package/lib/chevre/service/accountTransaction.d.ts +1 -1
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +7 -7
- package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +6 -6
- package/lib/chevre/service/aggregation/event/findEventOffers.d.ts +4 -4
- package/lib/chevre/service/aggregation/event/importFromCOA.d.ts +1 -1
- package/lib/chevre/service/aggregation/project.d.ts +3 -3
- package/lib/chevre/service/aggregation/system.d.ts +5 -5
- package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +4 -4
- package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
- package/lib/chevre/service/assetTransaction/pay/account/validation.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/pay.d.ts +10 -10
- package/lib/chevre/service/assetTransaction/refund.d.ts +4 -4
- package/lib/chevre/service/assetTransaction/registerService.d.ts +8 -8
- package/lib/chevre/service/assetTransaction/reserve.d.ts +14 -14
- package/lib/chevre/service/assetTransaction.d.ts +2 -2
- package/lib/chevre/service/code.d.ts +2 -2
- package/lib/chevre/service/code.js +1 -2
- package/lib/chevre/service/delivery.d.ts +5 -5
- package/lib/chevre/service/event/createEvent.d.ts +4 -4
- package/lib/chevre/service/event.d.ts +7 -7
- package/lib/chevre/service/iam.d.ts +2 -2
- package/lib/chevre/service/moneyTransfer.d.ts +5 -5
- package/lib/chevre/service/notification.d.ts +2 -2
- package/lib/chevre/service/offer/event/authorize.d.ts +15 -15
- package/lib/chevre/service/offer/event/cancel.d.ts +7 -7
- package/lib/chevre/service/offer/event/importFromCOA.d.ts +3 -3
- package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +7 -7
- package/lib/chevre/service/offer/event/voidTransaction.d.ts +7 -7
- package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA.d.ts +5 -5
- package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +6 -6
- package/lib/chevre/service/offer/moneyTransfer/returnMoneyTransfer.d.ts +5 -5
- package/lib/chevre/service/offer/moneyTransfer/settleTransaction.d.ts +2 -2
- package/lib/chevre/service/offer/moneyTransfer/voidTransaction.d.ts +3 -3
- package/lib/chevre/service/offer/product/searchProductOffers.d.ts +3 -3
- package/lib/chevre/service/offer/product.d.ts +14 -14
- package/lib/chevre/service/offer.d.ts +6 -6
- package/lib/chevre/service/order/confirmPayTransaction.d.ts +10 -10
- package/lib/chevre/service/order/deleteOrder.d.ts +5 -5
- package/lib/chevre/service/order/findPlaceOrderTransaction.d.ts +1 -1
- package/lib/chevre/service/order/onAssetTransactionStatusChanged.d.ts +5 -5
- package/lib/chevre/service/order/onOrderStatusChanged.d.ts +2 -2
- package/lib/chevre/service/order/onOrderUpdated.d.ts +1 -1
- package/lib/chevre/service/order/payOrder.d.ts +4 -4
- package/lib/chevre/service/order/placeOrder.d.ts +6 -6
- package/lib/chevre/service/order/returnOrder.d.ts +6 -6
- package/lib/chevre/service/order/sendOrder.d.ts +6 -6
- package/lib/chevre/service/payment/any/onPaid.d.ts +3 -3
- package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
- package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
- package/lib/chevre/service/payment/any/onPaymentStatusChanged.d.ts +2 -2
- package/lib/chevre/service/payment/any/onRefund.d.ts +3 -3
- package/lib/chevre/service/payment/any.d.ts +10 -10
- package/lib/chevre/service/payment/creditCard.d.ts +6 -6
- package/lib/chevre/service/payment/faceToFace.d.ts +6 -6
- package/lib/chevre/service/payment/movieTicket/checkByIdentifier.d.ts +2 -2
- package/lib/chevre/service/payment/movieTicket/getCredentials.d.ts +1 -1
- package/lib/chevre/service/payment/movieTicket/validation.d.ts +5 -5
- package/lib/chevre/service/payment/movieTicket.d.ts +6 -6
- package/lib/chevre/service/payment/paymentCard.d.ts +7 -7
- package/lib/chevre/service/payment.d.ts +9 -9
- package/lib/chevre/service/permit.d.ts +2 -2
- package/lib/chevre/service/product.d.ts +3 -3
- package/lib/chevre/service/project.d.ts +16 -16
- package/lib/chevre/service/report/telemetry.d.ts +19 -16
- package/lib/chevre/service/reserve/cancelReservation.d.ts +3 -3
- package/lib/chevre/service/reserve/checkInReservation.d.ts +5 -5
- package/lib/chevre/service/reserve/confirmReservation.d.ts +4 -4
- package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
- package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.d.ts +2 -2
- package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
- package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +1 -1
- package/lib/chevre/service/reserve/useReservation.d.ts +5 -5
- package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +1 -1
- package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.d.ts +2 -2
- package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.d.ts +3 -3
- package/lib/chevre/service/task/onResourceUpdated/onResourceDeleted.d.ts +15 -15
- package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.d.ts +2 -2
- package/lib/chevre/service/task.d.ts +1 -1
- package/lib/chevre/service/task.js +3 -4
- package/lib/chevre/service/transaction/deleteTransaction.d.ts +9 -9
- package/lib/chevre/service/transaction/moneyTransfer.d.ts +9 -9
- package/lib/chevre/service/transaction/orderProgramMembership/findPaymentCardPermit.d.ts +2 -2
- package/lib/chevre/service/transaction/placeOrder.d.ts +2 -2
- package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +7 -7
- package/lib/chevre/service/transaction/returnOrder.d.ts +10 -10
- package/lib/chevre/service/transaction.d.ts +2 -2
- package/lib/chevre/settings.d.ts +1 -0
- package/lib/chevre/settings.js +2 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import { MongoRepository as ActionRepo } from '../../repo/action';
|
|
3
|
-
import { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
2
|
+
import type { MongoRepository as ActionRepo } from '../../repo/action';
|
|
3
|
+
import type { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
4
4
|
import { RedisRepository as OfferRateLimitRepo } from '../../repo/rateLimit/offer';
|
|
5
5
|
import { MongoRepository as ReservationRepo } from '../../repo/reservation';
|
|
6
6
|
import { StockHolderRepository as StockHolderRepo } from '../../repo/stockHolder';
|
|
7
|
-
import { MongoRepository as TaskRepo } from '../../repo/task';
|
|
7
|
+
import type { MongoRepository as TaskRepo } from '../../repo/task';
|
|
8
8
|
/**
|
|
9
9
|
* 進行中の予約をキャンセルする
|
|
10
10
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MongoRepository as ActionRepo } from '../../repo/action';
|
|
2
|
-
import { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
3
|
-
import { MongoRepository as EventRepo } from '../../repo/event';
|
|
4
|
-
import { MongoRepository as ReservationRepo } from '../../repo/reservation';
|
|
5
|
-
import { MongoRepository as TaskRepo } from '../../repo/task';
|
|
1
|
+
import type { MongoRepository as ActionRepo } from '../../repo/action';
|
|
2
|
+
import type { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
3
|
+
import type { MongoRepository as EventRepo } from '../../repo/event';
|
|
4
|
+
import type { MongoRepository as ReservationRepo } from '../../repo/reservation';
|
|
5
|
+
import type { MongoRepository as TaskRepo } from '../../repo/task';
|
|
6
6
|
interface ICheckInReservationParams {
|
|
7
7
|
project: {
|
|
8
8
|
id: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import { MongoRepository as ActionRepo } from '../../repo/action';
|
|
3
|
-
import { MongoRepository as AssetTrasactionRepo } from '../../repo/assetTransaction';
|
|
4
|
-
import { MongoRepository as ReservationRepo } from '../../repo/reservation';
|
|
5
|
-
import { MongoRepository as TaskRepo } from '../../repo/task';
|
|
2
|
+
import type { MongoRepository as ActionRepo } from '../../repo/action';
|
|
3
|
+
import type { MongoRepository as AssetTrasactionRepo } from '../../repo/assetTransaction';
|
|
4
|
+
import type { MongoRepository as ReservationRepo } from '../../repo/reservation';
|
|
5
|
+
import type { MongoRepository as TaskRepo } from '../../repo/task';
|
|
6
6
|
/**
|
|
7
7
|
* 予約を確定する
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 予約取消時アクション
|
|
3
3
|
*/
|
|
4
4
|
import * as factory from '../../../factory';
|
|
5
|
-
import { MongoRepository as TaskRepo } from '../../../repo/task';
|
|
5
|
+
import type { MongoRepository as TaskRepo } from '../../../repo/task';
|
|
6
6
|
type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
|
|
7
7
|
type IBusReservation = factory.reservation.IReservation<factory.reservationType.BusReservation>;
|
|
8
8
|
export declare function onReservationCanceled(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MongoRepository as EventRepo } from '../../../repo/event';
|
|
2
|
-
import { MongoRepository as TaskRepo } from '../../../repo/task';
|
|
1
|
+
import type { MongoRepository as EventRepo } from '../../../repo/event';
|
|
2
|
+
import type { MongoRepository as TaskRepo } from '../../../repo/task';
|
|
3
3
|
export declare function onReservationCheckedIn(params: {
|
|
4
4
|
project: {
|
|
5
5
|
id: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 予約確定時アクション
|
|
3
3
|
*/
|
|
4
4
|
import * as factory from '../../../factory';
|
|
5
|
-
import { MongoRepository as TaskRepo } from '../../../repo/task';
|
|
5
|
+
import type { MongoRepository as TaskRepo } from '../../../repo/task';
|
|
6
6
|
type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
|
|
7
7
|
/**
|
|
8
8
|
* 予約確定後のアクション
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 予約使用時アクション
|
|
3
3
|
*/
|
|
4
4
|
import * as factory from '../../../factory';
|
|
5
|
-
import { MongoRepository as TaskRepo } from '../../../repo/task';
|
|
5
|
+
import type { MongoRepository as TaskRepo } from '../../../repo/task';
|
|
6
6
|
type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
|
|
7
7
|
export type IUseReservationAction = factory.action.consume.use.reservation.IAction;
|
|
8
8
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import { MongoRepository as ActionRepo } from '../../repo/action';
|
|
3
|
-
import { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
4
|
-
import { MongoRepository as OrderRepo } from '../../repo/order';
|
|
5
|
-
import { MongoRepository as ReservationRepo } from '../../repo/reservation';
|
|
6
|
-
import { MongoRepository as TaskRepo } from '../../repo/task';
|
|
2
|
+
import type { MongoRepository as ActionRepo } from '../../repo/action';
|
|
3
|
+
import type { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
4
|
+
import type { MongoRepository as OrderRepo } from '../../repo/order';
|
|
5
|
+
import type { MongoRepository as ReservationRepo } from '../../repo/reservation';
|
|
6
|
+
import type { MongoRepository as TaskRepo } from '../../repo/task';
|
|
7
7
|
import { IUseReservationAction } from './potentialActions/onReservationUsed';
|
|
8
8
|
/**
|
|
9
9
|
* 予約使用
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as factory from '../../../factory';
|
|
2
|
-
import { MongoRepository as PlaceRepo } from '../../../repo/place';
|
|
3
|
-
import { MongoRepository as TaskRepo } from '../../../repo/task';
|
|
2
|
+
import type { MongoRepository as PlaceRepo } from '../../../repo/place';
|
|
3
|
+
import type { MongoRepository as TaskRepo } from '../../../repo/task';
|
|
4
4
|
export declare function createInformHasPOSTasks(params: {
|
|
5
5
|
project: {
|
|
6
6
|
id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as factory from '../../../factory';
|
|
2
|
-
import { MongoRepository as AggregateOfferRepo } from '../../../repo/aggregateOffer';
|
|
3
|
-
import { MongoRepository as OfferCatalogRepo } from '../../../repo/offerCatalog';
|
|
4
|
-
import { MongoRepository as OfferCatalogItemRepo } from '../../../repo/offerCatalogItem';
|
|
2
|
+
import type { MongoRepository as AggregateOfferRepo } from '../../../repo/aggregateOffer';
|
|
3
|
+
import type { MongoRepository as OfferCatalogRepo } from '../../../repo/offerCatalog';
|
|
4
|
+
import type { MongoRepository as OfferCatalogItemRepo } from '../../../repo/offerCatalogItem';
|
|
5
5
|
/**
|
|
6
6
|
* オファーカタログ変更時処理
|
|
7
7
|
*/
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as factory from '../../../factory';
|
|
2
|
-
import { MongoRepository as AccountTitleRepo } from '../../../repo/accountTitle';
|
|
3
|
-
import { MongoRepository as ActionRepo } from '../../../repo/action';
|
|
4
|
-
import { MongoRepository as AggregateOfferRepo } from '../../../repo/aggregateOffer';
|
|
5
|
-
import { MongoRepository as CategoryCodeRepo } from '../../../repo/categoryCode';
|
|
6
|
-
import { MongoRepository as CreativeWorkRepo } from '../../../repo/creativeWork';
|
|
7
|
-
import { MongoRepository as EventRepo } from '../../../repo/event';
|
|
8
|
-
import { MongoRepository as MemberRepo } from '../../../repo/member';
|
|
9
|
-
import { MongoRepository as OfferRepo } from '../../../repo/offer';
|
|
10
|
-
import { MongoRepository as OfferCatalogRepo } from '../../../repo/offerCatalog';
|
|
11
|
-
import { MongoRepository as OfferCatalogItemRepo } from '../../../repo/offerCatalogItem';
|
|
12
|
-
import { MongoRepository as PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
13
|
-
import { MongoRepository as PlaceRepo } from '../../../repo/place';
|
|
14
|
-
import { MongoRepository as ProductRepo } from '../../../repo/product';
|
|
15
|
-
import { MongoRepository as ProductOfferRepo } from '../../../repo/productOffer';
|
|
16
|
-
import { MongoRepository as TaskRepo } from '../../../repo/task';
|
|
2
|
+
import type { MongoRepository as AccountTitleRepo } from '../../../repo/accountTitle';
|
|
3
|
+
import type { MongoRepository as ActionRepo } from '../../../repo/action';
|
|
4
|
+
import type { MongoRepository as AggregateOfferRepo } from '../../../repo/aggregateOffer';
|
|
5
|
+
import type { MongoRepository as CategoryCodeRepo } from '../../../repo/categoryCode';
|
|
6
|
+
import type { MongoRepository as CreativeWorkRepo } from '../../../repo/creativeWork';
|
|
7
|
+
import type { MongoRepository as EventRepo } from '../../../repo/event';
|
|
8
|
+
import type { MongoRepository as MemberRepo } from '../../../repo/member';
|
|
9
|
+
import type { MongoRepository as OfferRepo } from '../../../repo/offer';
|
|
10
|
+
import type { MongoRepository as OfferCatalogRepo } from '../../../repo/offerCatalog';
|
|
11
|
+
import type { MongoRepository as OfferCatalogItemRepo } from '../../../repo/offerCatalogItem';
|
|
12
|
+
import type { MongoRepository as PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider';
|
|
13
|
+
import type { MongoRepository as PlaceRepo } from '../../../repo/place';
|
|
14
|
+
import type { MongoRepository as ProductRepo } from '../../../repo/product';
|
|
15
|
+
import type { MongoRepository as ProductOfferRepo } from '../../../repo/productOffer';
|
|
16
|
+
import type { MongoRepository as TaskRepo } from '../../../repo/task';
|
|
17
17
|
export declare function onResourceDeleted(params: factory.task.onResourceUpdated.IData): (repos: {
|
|
18
18
|
accountTitle: AccountTitleRepo;
|
|
19
19
|
action: ActionRepo;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as factory from '../../../factory';
|
|
2
|
-
import { MongoRepository as AggregateOfferRepo } from '../../../repo/aggregateOffer';
|
|
2
|
+
import type { MongoRepository as AggregateOfferRepo } from '../../../repo/aggregateOffer';
|
|
3
3
|
import { MongoRepository as OfferCatalogRepo } from '../../../repo/offerCatalog';
|
|
4
|
-
import { MongoRepository as OfferCatalogItemRepo } from '../../../repo/offerCatalogItem';
|
|
4
|
+
import type { MongoRepository as OfferCatalogItemRepo } from '../../../repo/offerCatalogItem';
|
|
5
5
|
/**
|
|
6
6
|
* カタログのitemListElementを集計オファーへ同期する
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Connection } from 'mongoose';
|
|
2
2
|
import { RedisClientType } from 'redis';
|
|
3
3
|
import * as factory from '../factory';
|
|
4
|
-
import { MongoRepository as TaskRepo } from '../repo/task';
|
|
4
|
+
import type { MongoRepository as TaskRepo } from '../repo/task';
|
|
5
5
|
export interface IConnectionSettings {
|
|
6
6
|
/**
|
|
7
7
|
* MongoDBコネクション
|
|
@@ -15,7 +15,6 @@ exports.notifyAbortedTasks = exports.abort = exports.retry = exports.execute = e
|
|
|
15
15
|
*/
|
|
16
16
|
const createDebug = require("debug");
|
|
17
17
|
const factory = require("../factory");
|
|
18
|
-
const task_1 = require("../repo/task");
|
|
19
18
|
const NotificationService = require("./notification");
|
|
20
19
|
const factory_1 = require("./notification/factory");
|
|
21
20
|
const credentials_1 = require("../credentials");
|
|
@@ -25,7 +24,7 @@ const DEFAULT_EXECUTOR_NAME = `${process.env.GAE_APPLICATION}:${process.env.GAE_
|
|
|
25
24
|
function executeById(params) {
|
|
26
25
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
27
26
|
var _a;
|
|
28
|
-
const taskRepo = new
|
|
27
|
+
const taskRepo = new (yield Promise.resolve().then(() => require('../repo/task'))).MongoRepository(settings.connection);
|
|
29
28
|
// 未実行のタスクを取得
|
|
30
29
|
// tslint:disable-next-line:no-null-keyword
|
|
31
30
|
let task = null;
|
|
@@ -55,7 +54,7 @@ exports.executeById = executeById;
|
|
|
55
54
|
function executeByName(params) {
|
|
56
55
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
57
56
|
var _a;
|
|
58
|
-
const taskRepo = new
|
|
57
|
+
const taskRepo = new (yield Promise.resolve().then(() => require('../repo/task'))).MongoRepository(settings.connection);
|
|
59
58
|
// 未実行のタスクを取得
|
|
60
59
|
// tslint:disable-next-line:no-null-keyword
|
|
61
60
|
let task = null;
|
|
@@ -85,7 +84,7 @@ exports.executeByName = executeByName;
|
|
|
85
84
|
function execute(task) {
|
|
86
85
|
const now = new Date();
|
|
87
86
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
const taskRepo = new
|
|
87
|
+
const taskRepo = new (yield Promise.resolve().then(() => require('../repo/task'))).MongoRepository(settings.connection);
|
|
89
88
|
try {
|
|
90
89
|
// タスク名の関数が定義されていなければ、TypeErrorとなる
|
|
91
90
|
const { call } = yield Promise.resolve(`${`./task/${task.name}`}`).then(s => require(s));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import { MongoRepository as AccountingReportRepo } from '../../repo/accountingReport';
|
|
3
|
-
import { MongoRepository as ActionRepo } from '../../repo/action';
|
|
4
|
-
import { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
5
|
-
import { MongoRepository as EventRepo } from '../../repo/event';
|
|
6
|
-
import { MongoRepository as OrderRepo } from '../../repo/order';
|
|
7
|
-
import { MongoRepository as OwnershipInfoRepo } from '../../repo/ownershipInfo';
|
|
8
|
-
import { MongoRepository as ReservationRepo } from '../../repo/reservation';
|
|
9
|
-
import { MongoRepository as TaskRepo } from '../../repo/task';
|
|
10
|
-
import { MongoRepository as TransactionRepo } from '../../repo/transaction';
|
|
2
|
+
import type { MongoRepository as AccountingReportRepo } from '../../repo/accountingReport';
|
|
3
|
+
import type { MongoRepository as ActionRepo } from '../../repo/action';
|
|
4
|
+
import type { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
5
|
+
import type { MongoRepository as EventRepo } from '../../repo/event';
|
|
6
|
+
import type { MongoRepository as OrderRepo } from '../../repo/order';
|
|
7
|
+
import type { MongoRepository as OwnershipInfoRepo } from '../../repo/ownershipInfo';
|
|
8
|
+
import type { MongoRepository as ReservationRepo } from '../../repo/reservation';
|
|
9
|
+
import type { MongoRepository as TaskRepo } from '../../repo/task';
|
|
10
|
+
import type { MongoRepository as TransactionRepo } from '../../repo/transaction';
|
|
11
11
|
/**
|
|
12
12
|
* 取引に関わるリソースを削除する
|
|
13
13
|
* 冪等性を確保すること
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import { MongoRepository as ActionRepo } from '../../repo/action';
|
|
3
|
-
import { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
4
|
-
import { MongoRepository as OrderRepo } from '../../repo/order';
|
|
5
|
-
import { MongoRepository as ProductRepo } from '../../repo/product';
|
|
6
|
-
import { MongoRepository as ProjectRepo } from '../../repo/project';
|
|
7
|
-
import { MongoRepository as SellerRepo } from '../../repo/seller';
|
|
8
|
-
import { MongoRepository as TaskRepo } from '../../repo/task';
|
|
9
|
-
import { MongoRepository as TransactionRepo } from '../../repo/transaction';
|
|
10
|
-
import { RedisRepository as TransactionNumberRepo } from '../../repo/transactionNumber';
|
|
2
|
+
import type { MongoRepository as ActionRepo } from '../../repo/action';
|
|
3
|
+
import type { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
|
|
4
|
+
import type { MongoRepository as OrderRepo } from '../../repo/order';
|
|
5
|
+
import type { MongoRepository as ProductRepo } from '../../repo/product';
|
|
6
|
+
import type { MongoRepository as ProjectRepo } from '../../repo/project';
|
|
7
|
+
import type { MongoRepository as SellerRepo } from '../../repo/seller';
|
|
8
|
+
import type { MongoRepository as TaskRepo } from '../../repo/task';
|
|
9
|
+
import type { MongoRepository as TransactionRepo } from '../../repo/transaction';
|
|
10
|
+
import type { RedisRepository as TransactionNumberRepo } from '../../repo/transactionNumber';
|
|
11
11
|
import { IPassportValidator as IWaiterPassportValidator } from './validation';
|
|
12
12
|
export interface IStartOperationRepos {
|
|
13
13
|
action: ActionRepo;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* findPaymentCardPermit
|
|
3
3
|
*/
|
|
4
|
-
import { MongoRepository as OwnershipInfoRepo } from '../../../repo/ownershipInfo';
|
|
5
|
-
import { MongoRepository as ProductRepo } from '../../../repo/product';
|
|
4
|
+
import type { MongoRepository as OwnershipInfoRepo } from '../../../repo/ownershipInfo';
|
|
5
|
+
import type { MongoRepository as ProductRepo } from '../../../repo/product';
|
|
6
6
|
import * as factory from '../../../factory';
|
|
7
7
|
/**
|
|
8
8
|
* 所有ペイメントカードを検索
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MongoRepository as TaskRepo } from '../../repo/task';
|
|
2
|
-
import { MongoRepository as TransactionRepo } from '../../repo/transaction';
|
|
1
|
+
import type { MongoRepository as TaskRepo } from '../../repo/task';
|
|
2
|
+
import type { MongoRepository as TransactionRepo } from '../../repo/transaction';
|
|
3
3
|
export type ITaskAndTransactionOperation<T> = (repos: {
|
|
4
4
|
task: TaskRepo;
|
|
5
5
|
transaction: TransactionRepo;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import { MongoRepository as ActionRepo } from '../../repo/action';
|
|
3
|
-
import { RedisRepository as ConfirmationNumberRepo } from '../../repo/confirmationNumber';
|
|
4
|
-
import { MongoRepository as EmailMessageRepo } from '../../repo/emailMessage';
|
|
5
|
-
import { RedisRepository as OrderNumberRepo } from '../../repo/orderNumber';
|
|
6
|
-
import { MongoRepository as ProjectRepo } from '../../repo/project';
|
|
7
|
-
import { MongoRepository as SellerRepo } from '../../repo/seller';
|
|
8
|
-
import { MongoRepository as TransactionRepo } from '../../repo/transaction';
|
|
2
|
+
import type { MongoRepository as ActionRepo } from '../../repo/action';
|
|
3
|
+
import type { RedisRepository as ConfirmationNumberRepo } from '../../repo/confirmationNumber';
|
|
4
|
+
import type { MongoRepository as EmailMessageRepo } from '../../repo/emailMessage';
|
|
5
|
+
import type { RedisRepository as OrderNumberRepo } from '../../repo/orderNumber';
|
|
6
|
+
import type { MongoRepository as ProjectRepo } from '../../repo/project';
|
|
7
|
+
import type { MongoRepository as SellerRepo } from '../../repo/seller';
|
|
8
|
+
import type { MongoRepository as TransactionRepo } from '../../repo/transaction';
|
|
9
9
|
import { IPassportValidator as IWaiterPassportValidator } from './validation';
|
|
10
10
|
export declare const POINT_AWARD_IDENTIFIER_NAME = "pointAwardIdentifiers";
|
|
11
11
|
export interface IStartOperationRepos {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as factory from '../../factory';
|
|
2
|
-
import { MongoRepository as EmailMessageRepo } from '../../repo/emailMessage';
|
|
3
|
-
import { MongoRepository as EventRepo } from '../../repo/event';
|
|
4
|
-
import { MongoRepository as MerchantReturnPolicyRepo } from '../../repo/merchantReturnPolicy';
|
|
5
|
-
import { MongoRepository as OfferRepo } from '../../repo/offer';
|
|
6
|
-
import { MongoRepository as OfferItemConditionRepo } from '../../repo/offerItemCondition';
|
|
7
|
-
import { MongoRepository as OrderRepo } from '../../repo/order';
|
|
8
|
-
import { MongoRepository as ReservationRepo } from '../../repo/reservation';
|
|
9
|
-
import { MongoRepository as SellerRepo } from '../../repo/seller';
|
|
10
|
-
import { MongoRepository as TaskRepo } from '../../repo/task';
|
|
11
|
-
import { MongoRepository as TransactionRepo } from '../../repo/transaction';
|
|
2
|
+
import type { MongoRepository as EmailMessageRepo } from '../../repo/emailMessage';
|
|
3
|
+
import type { MongoRepository as EventRepo } from '../../repo/event';
|
|
4
|
+
import type { MongoRepository as MerchantReturnPolicyRepo } from '../../repo/merchantReturnPolicy';
|
|
5
|
+
import type { MongoRepository as OfferRepo } from '../../repo/offer';
|
|
6
|
+
import type { MongoRepository as OfferItemConditionRepo } from '../../repo/offerItemCondition';
|
|
7
|
+
import type { MongoRepository as OrderRepo } from '../../repo/order';
|
|
8
|
+
import type { MongoRepository as ReservationRepo } from '../../repo/reservation';
|
|
9
|
+
import type { MongoRepository as SellerRepo } from '../../repo/seller';
|
|
10
|
+
import type { MongoRepository as TaskRepo } from '../../repo/task';
|
|
11
|
+
import type { MongoRepository as TransactionRepo } from '../../repo/transaction';
|
|
12
12
|
export interface IStartOperationRepos {
|
|
13
13
|
event: EventRepo;
|
|
14
14
|
merchantReturnPolicy: MerchantReturnPolicyRepo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
|
-
import { MongoRepository as TaskRepo } from '../repo/task';
|
|
3
|
-
import { MongoRepository as TransactionRepo } from '../repo/transaction';
|
|
2
|
+
import type { MongoRepository as TaskRepo } from '../repo/task';
|
|
3
|
+
import type { MongoRepository as TransactionRepo } from '../repo/transaction';
|
|
4
4
|
import { deleteTransaction } from './transaction/deleteTransaction';
|
|
5
5
|
import * as MoneyTransferTransactionService from './transaction/moneyTransfer';
|
|
6
6
|
import * as PlaceOrderTransactionService from './transaction/placeOrder';
|
package/lib/chevre/settings.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare const USE_AUTHORIZE_PAYMENT_RESULT_AS_ARRAY: boolean;
|
|
|
44
44
|
export declare const USE_OPTIMIZE_TICKET_OFFER: boolean;
|
|
45
45
|
export declare const MONGO_MAX_TIME_MS: number;
|
|
46
46
|
export declare const MONGO_READ_PREFERENCE: string;
|
|
47
|
+
export declare const MONGO_AUTO_INDEX: boolean;
|
|
47
48
|
/**
|
|
48
49
|
* グローバル設定
|
|
49
50
|
*/
|
package/lib/chevre/settings.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.settings = exports.MONGO_READ_PREFERENCE = exports.MONGO_MAX_TIME_MS = exports.USE_OPTIMIZE_TICKET_OFFER = exports.USE_AUTHORIZE_PAYMENT_RESULT_AS_ARRAY = exports.USE_ORDER_PAYMENT_DUE_ON_PLACED = exports.USE_DELETE_EVENT_BY_ORDER = exports.USE_OBJECT_AS_PAY_TRANSACTION_AMOUNT = exports.USE_NEW_EVENT_AVAILABILITY_KEY_FROM = exports.USE_ASSET_TRANSACTION_SYNC_PROCESSING = exports.DEFAULT_TASKS_EXPORT_AGENT_NAME = exports.DEFAULT_SENDER_EMAIL = exports.TRANSACTION_CANCELED_STORAGE_PERIOD_IN_DAYS = exports.TRANSACTION_CONFIRMED_STORAGE_PERIOD_IN_DAYS = exports.ASSET_TRANSACTION_STORAGE_PERIOD_IN_DAYS = exports.ABORTED_TASKS_WITHOUT_REPORT = exports.TRIGGER_WEBHOOK_RETRY_INTERVAL_IN_MS = exports.TRIGGER_WEBHOOK_MAX_RETRY_COUNT = void 0;
|
|
3
|
+
exports.settings = exports.MONGO_AUTO_INDEX = exports.MONGO_READ_PREFERENCE = exports.MONGO_MAX_TIME_MS = exports.USE_OPTIMIZE_TICKET_OFFER = exports.USE_AUTHORIZE_PAYMENT_RESULT_AS_ARRAY = exports.USE_ORDER_PAYMENT_DUE_ON_PLACED = exports.USE_DELETE_EVENT_BY_ORDER = exports.USE_OBJECT_AS_PAY_TRANSACTION_AMOUNT = exports.USE_NEW_EVENT_AVAILABILITY_KEY_FROM = exports.USE_ASSET_TRANSACTION_SYNC_PROCESSING = exports.DEFAULT_TASKS_EXPORT_AGENT_NAME = exports.DEFAULT_SENDER_EMAIL = exports.TRANSACTION_CANCELED_STORAGE_PERIOD_IN_DAYS = exports.TRANSACTION_CONFIRMED_STORAGE_PERIOD_IN_DAYS = exports.ASSET_TRANSACTION_STORAGE_PERIOD_IN_DAYS = exports.ABORTED_TASKS_WITHOUT_REPORT = exports.TRIGGER_WEBHOOK_RETRY_INTERVAL_IN_MS = exports.TRIGGER_WEBHOOK_MAX_RETRY_COUNT = void 0;
|
|
4
4
|
const moment = require("moment");
|
|
5
5
|
const factory = require("./factory");
|
|
6
6
|
const transactionWebhookUrls = (typeof process.env.INFORM_TRANSACTION_URL === 'string')
|
|
@@ -75,6 +75,7 @@ exports.MONGO_MAX_TIME_MS = (typeof process.env.MONGO_MAX_TIME_MS === 'string')
|
|
|
75
75
|
exports.MONGO_READ_PREFERENCE = (typeof process.env.MONGO_READ_PREFERENCE === 'string')
|
|
76
76
|
? process.env.MONGO_READ_PREFERENCE
|
|
77
77
|
: 'primaryPreferred';
|
|
78
|
+
exports.MONGO_AUTO_INDEX = process.env.MONGO_AUTO_INDEX === '1';
|
|
78
79
|
/**
|
|
79
80
|
* グローバル設定
|
|
80
81
|
*/
|
package/package.json
CHANGED