@chevre/domain 22.2.0-alpha.9 → 22.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example/src/chevre/createProject.ts +19 -0
- package/example/src/chevre/findValidAuthorization.ts +1 -2
- package/example/src/chevre/migrateDeleteTransactionTasks.ts +1 -1
- package/example/src/chevre/{migrateMovieTheaterAdditionalProperties.ts → migrateRoomAdditionalProperties.ts} +17 -17
- package/example/src/chevre/migrateRoomSectionAdditionalProperties.ts +119 -0
- package/example/src/chevre/playAroundTicket.ts +3 -2
- package/example/src/chevre/processAction.ts +3 -1
- package/example/src/chevre/projectFields.ts +42 -0
- package/example/src/chevre/{projectEventFieldsById.ts → projectFieldsById.ts} +7 -12
- package/example/src/chevre/searchActionsByPurpose.ts +38 -0
- package/example/src/chevre/searchProjects.ts +9 -4
- package/example/src/chevre/searchSellersByAggregate.ts +3 -3
- package/example/src/chevre/searchTransactions.ts +1 -1
- package/example/src/chevre/unsetUnnecessaryFields.ts +2 -41
- package/lib/chevre/repo/accountTitle.d.ts +9 -3
- package/lib/chevre/repo/accountingReport.d.ts +2 -15
- package/lib/chevre/repo/action.d.ts +110 -47
- package/lib/chevre/repo/action.js +170 -133
- package/lib/chevre/repo/aggregateReservation.d.ts +1 -14
- package/lib/chevre/repo/assetTransaction.d.ts +134 -7
- package/lib/chevre/repo/assetTransaction.js +2 -2
- package/lib/chevre/repo/categoryCode.d.ts +14 -2
- package/lib/chevre/repo/categoryCode.js +47 -19
- package/lib/chevre/repo/comment.d.ts +5 -1
- package/lib/chevre/repo/creativeWork.d.ts +14 -2
- package/lib/chevre/repo/customer.d.ts +5 -1
- package/lib/chevre/repo/customerType.d.ts +1 -1
- package/lib/chevre/repo/event.d.ts +49 -2
- package/lib/chevre/repo/member.d.ts +5 -1
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +22 -2
- package/lib/chevre/repo/message.d.ts +1 -15
- package/lib/chevre/repo/mongoose/schemas/account.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/account.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/accountTitle.js +2 -2
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +22 -3
- package/lib/chevre/repo/mongoose/schemas/accountingReport.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/action.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/actionRecipe.d.ts +14 -3
- package/lib/chevre/repo/mongoose/schemas/actionRecipe.js +2 -5
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.js +12 -12
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +11 -3
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/aggregateReservation.d.ts +22 -3
- package/lib/chevre/repo/mongoose/schemas/aggregateReservation.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +7 -3
- package/lib/chevre/repo/mongoose/schemas/aggregation.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +10 -3
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/authorization.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/categoryCode.js +22 -24
- package/lib/chevre/repo/mongoose/schemas/comments.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/comments.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +10 -3
- package/lib/chevre/repo/mongoose/schemas/creativeWork.js +2 -2
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/customer.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +9 -3
- package/lib/chevre/repo/mongoose/schemas/customerType.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/emailMessages.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/event.d.ts +19 -3
- package/lib/chevre/repo/mongoose/schemas/event.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/member.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/member.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/message.d.ts +23 -3
- package/lib/chevre/repo/mongoose/schemas/message.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/note.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/note.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +10 -3
- package/lib/chevre/repo/mongoose/schemas/order.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +10 -3
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +10 -3
- package/lib/chevre/repo/mongoose/schemas/paymentService.js +13 -4
- package/lib/chevre/repo/mongoose/schemas/place.d.ts +16 -3
- package/lib/chevre/repo/mongoose/schemas/place.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +11 -3
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/product.js +6 -13
- package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +30 -3
- package/lib/chevre/repo/mongoose/schemas/productModel.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/project.js +3 -3
- package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/reservation.js +5 -5
- package/lib/chevre/repo/mongoose/schemas/role.d.ts +9 -3
- package/lib/chevre/repo/mongoose/schemas/role.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/seller.js +22 -24
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/task.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +7 -3
- package/lib/chevre/repo/mongoose/schemas/telemetry.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +26 -3
- package/lib/chevre/repo/mongoose/schemas/ticket.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/transaction.js +2 -2
- package/lib/chevre/repo/mongoose/schemas/trip.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/trip.js +3 -3
- package/lib/chevre/repo/offer.d.ts +13 -4
- package/lib/chevre/repo/offerCatalog.d.ts +15 -2
- package/lib/chevre/repo/order.d.ts +13 -1
- package/lib/chevre/repo/ownershipInfo.d.ts +15 -3
- package/lib/chevre/repo/ownershipInfo.js +40 -11
- package/lib/chevre/repo/paymentService.d.ts +2 -2
- package/lib/chevre/repo/paymentService.js +108 -58
- package/lib/chevre/repo/paymentServiceProvider.d.ts +1 -10
- package/lib/chevre/repo/place/movieTheater.d.ts +54 -2
- package/lib/chevre/repo/priceSpecification.d.ts +42 -1
- package/lib/chevre/repo/product.d.ts +8 -3
- package/lib/chevre/repo/product.js +67 -33
- package/lib/chevre/repo/productModel.d.ts +1 -22
- package/lib/chevre/repo/project.d.ts +25 -5
- package/lib/chevre/repo/project.js +69 -28
- package/lib/chevre/repo/reservation.d.ts +35 -3
- package/lib/chevre/repo/reservation.js +1 -1
- package/lib/chevre/repo/role.d.ts +2 -9
- package/lib/chevre/repo/role.js +20 -10
- package/lib/chevre/repo/seller.d.ts +64 -14
- package/lib/chevre/repo/seller.js +61 -27
- package/lib/chevre/repo/task.d.ts +64 -3
- package/lib/chevre/repo/telemetry.d.ts +3 -2
- package/lib/chevre/repo/ticket.d.ts +4 -20
- package/lib/chevre/repo/ticket.js +23 -10
- package/lib/chevre/repo/transaction.d.ts +30 -14
- package/lib/chevre/repo/transaction.js +106 -77
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +1 -1
- package/lib/chevre/service/aggregation/event/findEventOffers.js +1 -1
- package/lib/chevre/service/aggregation/project.js +1 -1
- package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/cancelReservation.js +2 -2
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
- package/lib/chevre/service/assetTransaction/pay/factory.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/pay.js +3 -3
- package/lib/chevre/service/assetTransaction/refund/factory.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/refund.js +3 -3
- package/lib/chevre/service/assetTransaction/registerService.js +4 -6
- package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.js +9 -11
- package/lib/chevre/service/assetTransaction/reserve/start/factory/createReservation.js +1 -1
- package/lib/chevre/service/assetTransaction/reserve/start.js +1 -3
- package/lib/chevre/service/code.d.ts +0 -4
- package/lib/chevre/service/code.js +22 -18
- package/lib/chevre/service/event.js +4 -4
- package/lib/chevre/service/moneyTransfer.js +3 -5
- package/lib/chevre/service/notification.js +2 -2
- package/lib/chevre/service/offer/event/authorize/factory.d.ts +3 -3
- package/lib/chevre/service/offer/event/authorize/factory.js +16 -2
- package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre/requestedProgramMembershipUsed2permit.js +2 -2
- package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.d.ts +3 -2
- package/lib/chevre/service/offer/event/authorize.d.ts +4 -2
- package/lib/chevre/service/offer/event/authorize.js +3 -2
- package/lib/chevre/service/offer/event/importFromCOA.js +2 -2
- package/lib/chevre/service/offer/event/searchEventTicketOffers.js +4 -12
- package/lib/chevre/service/offer/event/voidTransaction.js +2 -2
- package/lib/chevre/service/offer/event/voidTransactionByActionId.js +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.d.ts +2 -2
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.js +45 -5
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/factory.d.ts +3 -3
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.js +3 -3
- package/lib/chevre/service/offer/eventServiceByCOA/authorize.d.ts +7 -3
- package/lib/chevre/service/offer/eventServiceByCOA/authorize.js +10 -5
- package/lib/chevre/service/offer/eventServiceByCOA/authorizeByAcceptAction.d.ts +3 -1
- package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.d.ts +3 -1
- package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.js +14 -6
- package/lib/chevre/service/offer/eventServiceByCOA/factory.d.ts +8 -5
- package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.js +38 -17
- package/lib/chevre/service/offer/moneyTransfer/authorize.js +1 -1
- package/lib/chevre/service/offer/moneyTransfer/voidTransaction.js +1 -1
- package/lib/chevre/service/offer/product/searchProductOffers.js +1 -3
- package/lib/chevre/service/offer/product.d.ts +4 -2
- package/lib/chevre/service/offer/product.js +12 -12
- package/lib/chevre/service/order/findPlaceOrderTransaction.js +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled/factory.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.js +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned/factory.d.ts +1 -1
- package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.js +3 -3
- package/lib/chevre/service/order/placeOrder.js +1 -1
- package/lib/chevre/service/order/returnOrder.js +1 -1
- package/lib/chevre/service/payment/any/factory.d.ts +1 -1
- package/lib/chevre/service/payment/any/onPaid.d.ts +1 -1
- package/lib/chevre/service/payment/any/onRefund.d.ts +1 -1
- package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.d.ts +1 -4
- package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.js +21 -26
- package/lib/chevre/service/payment/any.d.ts +3 -1
- package/lib/chevre/service/payment/any.js +21 -13
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.js +1 -1
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3ds.js +1 -1
- package/lib/chevre/service/payment/creditCard/payCreditCard.d.ts +1 -2
- package/lib/chevre/service/payment/creditCard/payCreditCard.js +12 -5
- package/lib/chevre/service/payment/creditCard/refundCreditCard.js +13 -3
- package/lib/chevre/service/payment/creditCard/voidTransaction.js +1 -1
- package/lib/chevre/service/payment/faceToFace.d.ts +2 -2
- package/lib/chevre/service/payment/faceToFace.js +28 -10
- package/lib/chevre/service/payment/movieTicket/authorize.d.ts +0 -1
- package/lib/chevre/service/payment/movieTicket/authorize.js +8 -3
- package/lib/chevre/service/payment/movieTicket/payMovieTicket.d.ts +1 -2
- package/lib/chevre/service/payment/movieTicket/payMovieTicket.js +12 -4
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket.js +15 -4
- package/lib/chevre/service/payment/movieTicket/validation.js +1 -1
- package/lib/chevre/service/payment/paymentCard.d.ts +2 -2
- package/lib/chevre/service/payment/paymentCard.js +29 -16
- package/lib/chevre/service/payment.d.ts +1 -1
- package/lib/chevre/service/report/telemetry.js +2 -2
- package/lib/chevre/service/reserve/cancelReservation.js +1 -1
- package/lib/chevre/service/reserve/confirmReservation.js +1 -1
- package/lib/chevre/service/task/onAuthorizationCreated.js +20 -16
- package/lib/chevre/service/task/onResourceUpdated/onResourceDeleted.js +2 -2
- package/lib/chevre/service/task/onResourceUpdated/syncCategoryCode.js +1 -1
- package/lib/chevre/service/task/onResourceUpdated.js +16 -4
- package/lib/chevre/service/task/publishPaymentUrl.js +4 -0
- package/lib/chevre/service/task/returnPayTransaction.js +1 -1
- package/lib/chevre/service/transaction/deleteTransaction.js +2 -2
- package/lib/chevre/service/transaction/moneyTransfer.js +4 -4
- package/lib/chevre/service/transaction/placeOrder/confirm.js +1 -1
- package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +1 -1
- package/lib/chevre/service/transaction/placeOrder/start/validateStartRequest.d.ts +2 -2
- package/lib/chevre/service/transaction/placeOrder/start/validateStartRequest.js +1 -1
- package/lib/chevre/service/transaction/placeOrder/start.js +1 -1
- package/lib/chevre/service/transaction/returnOrder/preStart.d.ts +2 -2
- package/lib/chevre/service/transaction/returnOrder/preStart.js +1 -1
- package/lib/chevre/service/transaction/returnOrder.js +2 -2
- package/lib/chevre/service/transaction.js +1 -1
- package/package.json +4 -4
- package/example/src/chevre/findTransactionById.ts +0 -23
- package/example/src/chevre/findTransactionInProgressById.ts +0 -23
- package/example/src/chevre/migrateTransactionObjectPaymentMethods.ts +0 -154
- package/example/src/chevre/projectReservationFields.ts +0 -31
- package/example/src/chevre/searchActions.ts +0 -40
- package/example/src/chevre/searchProducts.ts +0 -28
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
import { factory as surfrockFactory } from '@surfrock/sdk';
|
|
26
26
|
import { Connection, FilterQuery, QueryOptions, UpdateQuery } from 'mongoose';
|
|
27
27
|
import * as factory from '../factory';
|
|
28
|
-
export type
|
|
28
|
+
export type IAction4transaction<T extends factory.actionType.AcceptAction | factory.actionType.AuthorizeAction> = T extends factory.actionType.AcceptAction ? factory.action.accept.coaOffer.IAction | factory.action.accept.pay.IAction : T extends factory.actionType.AuthorizeAction ? (factory.action.authorize.offer.eventService.IAction<factory.service.webAPI.Identifier> | factory.action.authorize.offer.moneyTransfer.IAction | factory.action.authorize.offer.product.IAction | factory.action.authorize.paymentMethod.any.IAction) : never;
|
|
29
|
+
export type IAction<T extends factory.actionType> = T extends factory.actionType.OrderAction ? factory.action.trade.order.IAction : T extends factory.actionType.AcceptAction ? IAction4transaction<factory.actionType.AcceptAction> : T extends factory.actionType.AuthorizeAction ? factory.action.authorize.IAction<factory.action.authorize.IAttributes<any, any>> : T extends factory.actionType.CheckAction ? (factory.action.check.paymentMethod.movieTicket.IAction | factory.action.check.token.IAction) : T extends factory.actionType.MoneyTransfer ? factory.action.transfer.moneyTransfer.IAction : T extends factory.actionType.ReplaceAction ? factory.action.update.replace.IAction<factory.action.update.replace.IAttributes<any, any>> : factory.action.IAction<factory.action.IAttributes<T, any, any>>;
|
|
29
30
|
export type IPayAction = factory.action.trade.pay.IAction;
|
|
30
31
|
export interface IUseActionCountByOffer {
|
|
31
32
|
_id: string[];
|
|
32
33
|
useActionCount?: number;
|
|
33
34
|
}
|
|
34
|
-
type KeyOfAction = keyof factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>> | '_id';
|
|
35
35
|
interface IAggregationByStatus {
|
|
36
36
|
actionCount: number;
|
|
37
37
|
avgDuration: number;
|
|
@@ -72,6 +72,7 @@ export type IRecipeAsActionAttributes = Pick<factory.recipe.IRecipe, 'project' |
|
|
|
72
72
|
export type IMinimizedPurchaseNumberAuthResult = Pick<factory.action.check.paymentMethod.movieTicket.IPurchaseNumberAuthResult, 'mkknmiNumSum' | 'resultInfo' | 'ykknmiNumSum'> & {
|
|
73
73
|
knyknrNoInfoOut: Omit<factory.action.check.paymentMethod.movieTicket.IPurchaseNumberInfo, 'ykknInfo' | 'mkknInfo'>[] | null;
|
|
74
74
|
};
|
|
75
|
+
type IKeyOfProjection = keyof IAction<factory.actionType> | keyof IAction<factory.actionType.AuthorizeAction> | keyof IAction<factory.actionType.MoneyTransfer> | keyof IAction<factory.actionType.ReplaceAction>;
|
|
75
76
|
/**
|
|
76
77
|
* アクションリポジトリ
|
|
77
78
|
*/
|
|
@@ -83,22 +84,13 @@ export declare class ActionRepo {
|
|
|
83
84
|
/**
|
|
84
85
|
* アクション検索
|
|
85
86
|
*/
|
|
86
|
-
search<T extends factory.actionType>(params: factory.action.ISearchConditions, inclusion:
|
|
87
|
+
search<T extends factory.actionType>(params: factory.action.ISearchConditions, inclusion: IKeyOfProjection[], exclusion: IKeyOfProjection[]): Promise<IAction<T>[]>;
|
|
87
88
|
/**
|
|
88
89
|
* アクション開始
|
|
89
90
|
*/
|
|
90
91
|
start<T extends factory.actionType>(attributes: factory.action.IAttributes<T, any, any>, options?: {
|
|
91
92
|
recipe?: IRecipeAsActionAttributes;
|
|
92
|
-
}): Promise<IAction<T>>;
|
|
93
|
-
/**
|
|
94
|
-
* アクション完了
|
|
95
|
-
*/
|
|
96
|
-
complete<T extends factory.actionType>(params: {
|
|
97
|
-
typeOf: T;
|
|
98
|
-
id: string;
|
|
99
|
-
result: any;
|
|
100
|
-
recipe?: IRecipeAsActionAttributes;
|
|
101
|
-
}): Promise<IAction<T>>;
|
|
93
|
+
}): Promise<Pick<IAction<T>, 'id' | 'typeOf' | 'startDate'>>;
|
|
102
94
|
completeWithVoid(params: {
|
|
103
95
|
typeOf: factory.actionType;
|
|
104
96
|
id: string;
|
|
@@ -113,14 +105,6 @@ export declare class ActionRepo {
|
|
|
113
105
|
id: string;
|
|
114
106
|
cancelAction?: Pick<ICancelActionAction, 'agent' | 'sameAs' | 'startTime'>;
|
|
115
107
|
}): Promise<void>;
|
|
116
|
-
/**
|
|
117
|
-
* アクション失敗
|
|
118
|
-
*/
|
|
119
|
-
giveUpWithObject(params: {
|
|
120
|
-
typeOf: factory.actionType;
|
|
121
|
-
id: string;
|
|
122
|
-
error: Error | Error[];
|
|
123
|
-
}): Promise<IAction<factory.actionType>>;
|
|
124
108
|
/**
|
|
125
109
|
* アクション失敗
|
|
126
110
|
*/
|
|
@@ -153,7 +137,7 @@ export declare class ActionRepo {
|
|
|
153
137
|
findById<T extends factory.actionType>(params: {
|
|
154
138
|
typeOf: T;
|
|
155
139
|
id: string;
|
|
156
|
-
}, inclusion?:
|
|
140
|
+
}, inclusion?: IKeyOfProjection[], exclusion?: IKeyOfProjection[]): Promise<IAction<T>>;
|
|
157
141
|
findPayAction(params: {
|
|
158
142
|
project: {
|
|
159
143
|
id: string;
|
|
@@ -181,13 +165,10 @@ export declare class ActionRepo {
|
|
|
181
165
|
};
|
|
182
166
|
};
|
|
183
167
|
actionStatus?: {
|
|
184
|
-
$eq?: factory.actionStatusType;
|
|
185
|
-
};
|
|
186
|
-
id?: {
|
|
187
|
-
$nin?: string[];
|
|
168
|
+
$eq?: factory.actionStatusType.CompletedActionStatus;
|
|
188
169
|
};
|
|
189
170
|
sort?: factory.action.ISortOrder;
|
|
190
|
-
}): Promise<
|
|
171
|
+
}): Promise<IAction4transaction<T>[]>;
|
|
191
172
|
/**
|
|
192
173
|
* 注文番号から、注文に対するアクションを検索する
|
|
193
174
|
*/
|
|
@@ -195,7 +176,7 @@ export declare class ActionRepo {
|
|
|
195
176
|
orderNumber: string;
|
|
196
177
|
sort?: factory.action.ISortOrder;
|
|
197
178
|
}): Promise<IAction<factory.actionType>[]>;
|
|
198
|
-
searchBySameAs(params: {
|
|
179
|
+
searchBySameAs<T extends factory.actionType>(params: {
|
|
199
180
|
sameAs: {
|
|
200
181
|
id: {
|
|
201
182
|
$eq: string;
|
|
@@ -210,19 +191,19 @@ export declare class ActionRepo {
|
|
|
210
191
|
* 1taskから複数actionが発生する可能性があるので、typeOf指定が必須
|
|
211
192
|
*/
|
|
212
193
|
typeOf: {
|
|
213
|
-
$eq:
|
|
194
|
+
$eq: T;
|
|
214
195
|
};
|
|
215
|
-
}): Promise<Pick<IAction<
|
|
196
|
+
}): Promise<Pick<IAction<T>, 'id' | 'actionStatus' | 'error' | 'purpose'>[]>;
|
|
216
197
|
deleteByProject(params: {
|
|
217
198
|
project: {
|
|
218
199
|
id: string;
|
|
219
200
|
};
|
|
220
201
|
}): Promise<void>;
|
|
221
|
-
|
|
202
|
+
reCompleteAuthorizeEventOfferAction(params: {
|
|
222
203
|
id: string;
|
|
223
204
|
object: factory.action.authorize.offer.eventService.IObject;
|
|
224
205
|
result: factory.action.authorize.offer.eventService.IResult;
|
|
225
|
-
}): Promise<
|
|
206
|
+
}): Promise<void>;
|
|
226
207
|
updateById(params: {
|
|
227
208
|
id: string;
|
|
228
209
|
update: any;
|
|
@@ -391,25 +372,107 @@ export declare class ActionRepo {
|
|
|
391
372
|
startFrom: Date;
|
|
392
373
|
startThrough: Date;
|
|
393
374
|
}): Promise<IAggregateAction>;
|
|
394
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<
|
|
375
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, {
|
|
376
|
+
object: any;
|
|
377
|
+
error?: any;
|
|
378
|
+
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
379
|
+
typeOf: factory.actionType;
|
|
380
|
+
amount?: any;
|
|
381
|
+
location?: any;
|
|
382
|
+
description?: string | undefined;
|
|
383
|
+
result?: any;
|
|
384
|
+
actionStatus: factory.actionStatusType;
|
|
385
|
+
endDate?: Date | undefined;
|
|
386
|
+
purpose?: import("@chevre/factory/lib/action").IPurpose | undefined;
|
|
387
|
+
startDate: Date;
|
|
388
|
+
agent: import("@chevre/factory/lib/action").IParticipant;
|
|
389
|
+
instrument?: any;
|
|
390
|
+
potentialActions?: any;
|
|
391
|
+
recipient?: import("@chevre/factory/lib/action").IParticipant | undefined;
|
|
392
|
+
sameAs?: import("@chevre/factory/lib/action").ISameAs | undefined;
|
|
393
|
+
fromLocation?: any;
|
|
394
|
+
toLocation?: any;
|
|
395
|
+
replacer?: any;
|
|
396
|
+
targetCollection?: any;
|
|
397
|
+
cancelAction?: any;
|
|
398
|
+
}> & Omit<{
|
|
399
|
+
object: any;
|
|
400
|
+
error?: any;
|
|
401
|
+
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
402
|
+
typeOf: factory.actionType;
|
|
403
|
+
amount?: any;
|
|
404
|
+
location?: any;
|
|
405
|
+
description?: string | undefined;
|
|
406
|
+
result?: any;
|
|
407
|
+
actionStatus: factory.actionStatusType;
|
|
408
|
+
endDate?: Date | undefined;
|
|
409
|
+
purpose?: import("@chevre/factory/lib/action").IPurpose | undefined;
|
|
410
|
+
startDate: Date;
|
|
411
|
+
agent: import("@chevre/factory/lib/action").IParticipant;
|
|
412
|
+
instrument?: any;
|
|
413
|
+
potentialActions?: any;
|
|
414
|
+
recipient?: import("@chevre/factory/lib/action").IParticipant | undefined;
|
|
415
|
+
sameAs?: import("@chevre/factory/lib/action").ISameAs | undefined;
|
|
416
|
+
fromLocation?: any;
|
|
417
|
+
toLocation?: any;
|
|
418
|
+
replacer?: any;
|
|
419
|
+
targetCollection?: any;
|
|
420
|
+
cancelAction?: any;
|
|
421
|
+
} & {
|
|
422
|
+
_id: import("mongoose").Types.ObjectId;
|
|
423
|
+
}, never>, QueryOptions<import("mongoose").Document<unknown, {}, {
|
|
424
|
+
object: any;
|
|
425
|
+
error?: any;
|
|
426
|
+
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
427
|
+
typeOf: factory.actionType;
|
|
428
|
+
amount?: any;
|
|
429
|
+
location?: any;
|
|
430
|
+
description?: string | undefined;
|
|
431
|
+
result?: any;
|
|
432
|
+
actionStatus: factory.actionStatusType;
|
|
433
|
+
endDate?: Date | undefined;
|
|
434
|
+
purpose?: import("@chevre/factory/lib/action").IPurpose | undefined;
|
|
435
|
+
startDate: Date;
|
|
436
|
+
agent: import("@chevre/factory/lib/action").IParticipant;
|
|
437
|
+
instrument?: any;
|
|
438
|
+
potentialActions?: any;
|
|
439
|
+
recipient?: import("@chevre/factory/lib/action").IParticipant | undefined;
|
|
440
|
+
sameAs?: import("@chevre/factory/lib/action").ISameAs | undefined;
|
|
441
|
+
fromLocation?: any;
|
|
442
|
+
toLocation?: any;
|
|
443
|
+
replacer?: any;
|
|
444
|
+
targetCollection?: any;
|
|
445
|
+
cancelAction?: any;
|
|
446
|
+
}> & Omit<{
|
|
447
|
+
object: any;
|
|
448
|
+
error?: any;
|
|
449
|
+
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
450
|
+
typeOf: factory.actionType;
|
|
451
|
+
amount?: any;
|
|
452
|
+
location?: any;
|
|
453
|
+
description?: string | undefined;
|
|
454
|
+
result?: any;
|
|
455
|
+
actionStatus: factory.actionStatusType;
|
|
456
|
+
endDate?: Date | undefined;
|
|
457
|
+
purpose?: import("@chevre/factory/lib/action").IPurpose | undefined;
|
|
458
|
+
startDate: Date;
|
|
459
|
+
agent: import("@chevre/factory/lib/action").IParticipant;
|
|
460
|
+
instrument?: any;
|
|
461
|
+
potentialActions?: any;
|
|
462
|
+
recipient?: import("@chevre/factory/lib/action").IParticipant | undefined;
|
|
463
|
+
sameAs?: import("@chevre/factory/lib/action").ISameAs | undefined;
|
|
464
|
+
fromLocation?: any;
|
|
465
|
+
toLocation?: any;
|
|
466
|
+
replacer?: any;
|
|
467
|
+
targetCollection?: any;
|
|
468
|
+
cancelAction?: any;
|
|
469
|
+
} & {
|
|
470
|
+
_id: import("mongoose").Types.ObjectId;
|
|
471
|
+
}, never>>>;
|
|
395
472
|
unsetUnnecessaryFields(params: {
|
|
396
473
|
filter: FilterQuery<factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>>;
|
|
397
474
|
$unset: any;
|
|
398
475
|
}): Promise<import("mongodb").UpdateResult>;
|
|
399
|
-
/**
|
|
400
|
-
* 互換性維持対応専用
|
|
401
|
-
*/
|
|
402
|
-
fixInstrumentTransactionNumber(params: {
|
|
403
|
-
id: string;
|
|
404
|
-
instrument: {
|
|
405
|
-
transactionNumber: string;
|
|
406
|
-
};
|
|
407
|
-
object?: {
|
|
408
|
-
pendingTransaction?: {
|
|
409
|
-
transactionNumber?: string;
|
|
410
|
-
};
|
|
411
|
-
};
|
|
412
|
-
}): Promise<void>;
|
|
413
476
|
private agggregateByStatus;
|
|
414
477
|
private upsertRecipe;
|
|
415
478
|
}
|