@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.
Files changed (249) hide show
  1. package/example/src/chevre/createProject.ts +19 -0
  2. package/example/src/chevre/findValidAuthorization.ts +1 -2
  3. package/example/src/chevre/migrateDeleteTransactionTasks.ts +1 -1
  4. package/example/src/chevre/{migrateMovieTheaterAdditionalProperties.ts → migrateRoomAdditionalProperties.ts} +17 -17
  5. package/example/src/chevre/migrateRoomSectionAdditionalProperties.ts +119 -0
  6. package/example/src/chevre/playAroundTicket.ts +3 -2
  7. package/example/src/chevre/processAction.ts +3 -1
  8. package/example/src/chevre/projectFields.ts +42 -0
  9. package/example/src/chevre/{projectEventFieldsById.ts → projectFieldsById.ts} +7 -12
  10. package/example/src/chevre/searchActionsByPurpose.ts +38 -0
  11. package/example/src/chevre/searchProjects.ts +9 -4
  12. package/example/src/chevre/searchSellersByAggregate.ts +3 -3
  13. package/example/src/chevre/searchTransactions.ts +1 -1
  14. package/example/src/chevre/unsetUnnecessaryFields.ts +2 -41
  15. package/lib/chevre/repo/accountTitle.d.ts +9 -3
  16. package/lib/chevre/repo/accountingReport.d.ts +2 -15
  17. package/lib/chevre/repo/action.d.ts +110 -47
  18. package/lib/chevre/repo/action.js +170 -133
  19. package/lib/chevre/repo/aggregateReservation.d.ts +1 -14
  20. package/lib/chevre/repo/assetTransaction.d.ts +134 -7
  21. package/lib/chevre/repo/assetTransaction.js +2 -2
  22. package/lib/chevre/repo/categoryCode.d.ts +14 -2
  23. package/lib/chevre/repo/categoryCode.js +47 -19
  24. package/lib/chevre/repo/comment.d.ts +5 -1
  25. package/lib/chevre/repo/creativeWork.d.ts +14 -2
  26. package/lib/chevre/repo/customer.d.ts +5 -1
  27. package/lib/chevre/repo/customerType.d.ts +1 -1
  28. package/lib/chevre/repo/event.d.ts +49 -2
  29. package/lib/chevre/repo/member.d.ts +5 -1
  30. package/lib/chevre/repo/merchantReturnPolicy.d.ts +22 -2
  31. package/lib/chevre/repo/message.d.ts +1 -15
  32. package/lib/chevre/repo/mongoose/schemas/account.d.ts +8 -3
  33. package/lib/chevre/repo/mongoose/schemas/account.js +1 -1
  34. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +8 -3
  35. package/lib/chevre/repo/mongoose/schemas/accountTitle.js +2 -2
  36. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +8 -3
  37. package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +1 -1
  38. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +22 -3
  39. package/lib/chevre/repo/mongoose/schemas/accountingReport.js +1 -1
  40. package/lib/chevre/repo/mongoose/schemas/action.d.ts +8 -3
  41. package/lib/chevre/repo/mongoose/schemas/action.js +1 -1
  42. package/lib/chevre/repo/mongoose/schemas/actionRecipe.d.ts +14 -3
  43. package/lib/chevre/repo/mongoose/schemas/actionRecipe.js +2 -5
  44. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +8 -3
  45. package/lib/chevre/repo/mongoose/schemas/additionalProperty.js +12 -12
  46. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +11 -3
  47. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.js +1 -1
  48. package/lib/chevre/repo/mongoose/schemas/aggregateReservation.d.ts +22 -3
  49. package/lib/chevre/repo/mongoose/schemas/aggregateReservation.js +1 -1
  50. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +7 -3
  51. package/lib/chevre/repo/mongoose/schemas/aggregation.js +2 -1
  52. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +10 -3
  53. package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +1 -1
  54. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +8 -3
  55. package/lib/chevre/repo/mongoose/schemas/authorization.js +1 -1
  56. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +8 -3
  57. package/lib/chevre/repo/mongoose/schemas/categoryCode.js +22 -24
  58. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +8 -3
  59. package/lib/chevre/repo/mongoose/schemas/comments.js +1 -1
  60. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +10 -3
  61. package/lib/chevre/repo/mongoose/schemas/creativeWork.js +2 -2
  62. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +8 -3
  63. package/lib/chevre/repo/mongoose/schemas/customer.js +1 -1
  64. package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +9 -3
  65. package/lib/chevre/repo/mongoose/schemas/customerType.js +1 -1
  66. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +8 -3
  67. package/lib/chevre/repo/mongoose/schemas/emailMessages.js +1 -1
  68. package/lib/chevre/repo/mongoose/schemas/event.d.ts +19 -3
  69. package/lib/chevre/repo/mongoose/schemas/event.js +1 -1
  70. package/lib/chevre/repo/mongoose/schemas/member.d.ts +8 -3
  71. package/lib/chevre/repo/mongoose/schemas/member.js +1 -1
  72. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +8 -3
  73. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.js +1 -1
  74. package/lib/chevre/repo/mongoose/schemas/message.d.ts +23 -3
  75. package/lib/chevre/repo/mongoose/schemas/message.js +1 -1
  76. package/lib/chevre/repo/mongoose/schemas/note.d.ts +8 -3
  77. package/lib/chevre/repo/mongoose/schemas/note.js +1 -1
  78. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +12 -3
  79. package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +1 -1
  80. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +12 -3
  81. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.js +1 -1
  82. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +8 -3
  83. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.js +1 -1
  84. package/lib/chevre/repo/mongoose/schemas/order.d.ts +10 -3
  85. package/lib/chevre/repo/mongoose/schemas/order.js +1 -1
  86. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +10 -3
  87. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +1 -1
  88. package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +10 -3
  89. package/lib/chevre/repo/mongoose/schemas/paymentService.js +13 -4
  90. package/lib/chevre/repo/mongoose/schemas/place.d.ts +16 -3
  91. package/lib/chevre/repo/mongoose/schemas/place.js +1 -1
  92. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +11 -3
  93. package/lib/chevre/repo/mongoose/schemas/priceSpecification.js +1 -1
  94. package/lib/chevre/repo/mongoose/schemas/product.d.ts +12 -3
  95. package/lib/chevre/repo/mongoose/schemas/product.js +6 -13
  96. package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +30 -3
  97. package/lib/chevre/repo/mongoose/schemas/productModel.js +1 -1
  98. package/lib/chevre/repo/mongoose/schemas/project.d.ts +12 -3
  99. package/lib/chevre/repo/mongoose/schemas/project.js +3 -3
  100. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +12 -3
  101. package/lib/chevre/repo/mongoose/schemas/reservation.js +5 -5
  102. package/lib/chevre/repo/mongoose/schemas/role.d.ts +9 -3
  103. package/lib/chevre/repo/mongoose/schemas/role.js +1 -1
  104. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +8 -3
  105. package/lib/chevre/repo/mongoose/schemas/seller.js +22 -24
  106. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +8 -3
  107. package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +1 -1
  108. package/lib/chevre/repo/mongoose/schemas/task.d.ts +8 -3
  109. package/lib/chevre/repo/mongoose/schemas/task.js +1 -1
  110. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +7 -3
  111. package/lib/chevre/repo/mongoose/schemas/telemetry.js +2 -1
  112. package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +26 -3
  113. package/lib/chevre/repo/mongoose/schemas/ticket.js +1 -1
  114. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +8 -3
  115. package/lib/chevre/repo/mongoose/schemas/transaction.js +2 -2
  116. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +8 -3
  117. package/lib/chevre/repo/mongoose/schemas/trip.js +3 -3
  118. package/lib/chevre/repo/offer.d.ts +13 -4
  119. package/lib/chevre/repo/offerCatalog.d.ts +15 -2
  120. package/lib/chevre/repo/order.d.ts +13 -1
  121. package/lib/chevre/repo/ownershipInfo.d.ts +15 -3
  122. package/lib/chevre/repo/ownershipInfo.js +40 -11
  123. package/lib/chevre/repo/paymentService.d.ts +2 -2
  124. package/lib/chevre/repo/paymentService.js +108 -58
  125. package/lib/chevre/repo/paymentServiceProvider.d.ts +1 -10
  126. package/lib/chevre/repo/place/movieTheater.d.ts +54 -2
  127. package/lib/chevre/repo/priceSpecification.d.ts +42 -1
  128. package/lib/chevre/repo/product.d.ts +8 -3
  129. package/lib/chevre/repo/product.js +67 -33
  130. package/lib/chevre/repo/productModel.d.ts +1 -22
  131. package/lib/chevre/repo/project.d.ts +25 -5
  132. package/lib/chevre/repo/project.js +69 -28
  133. package/lib/chevre/repo/reservation.d.ts +35 -3
  134. package/lib/chevre/repo/reservation.js +1 -1
  135. package/lib/chevre/repo/role.d.ts +2 -9
  136. package/lib/chevre/repo/role.js +20 -10
  137. package/lib/chevre/repo/seller.d.ts +64 -14
  138. package/lib/chevre/repo/seller.js +61 -27
  139. package/lib/chevre/repo/task.d.ts +64 -3
  140. package/lib/chevre/repo/telemetry.d.ts +3 -2
  141. package/lib/chevre/repo/ticket.d.ts +4 -20
  142. package/lib/chevre/repo/ticket.js +23 -10
  143. package/lib/chevre/repo/transaction.d.ts +30 -14
  144. package/lib/chevre/repo/transaction.js +106 -77
  145. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +1 -1
  146. package/lib/chevre/service/aggregation/event/findEventOffers.js +1 -1
  147. package/lib/chevre/service/aggregation/project.js +1 -1
  148. package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +1 -1
  149. package/lib/chevre/service/assetTransaction/cancelReservation.js +2 -2
  150. package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
  151. package/lib/chevre/service/assetTransaction/pay/factory.d.ts +1 -1
  152. package/lib/chevre/service/assetTransaction/pay.js +3 -3
  153. package/lib/chevre/service/assetTransaction/refund/factory.d.ts +1 -1
  154. package/lib/chevre/service/assetTransaction/refund.js +3 -3
  155. package/lib/chevre/service/assetTransaction/registerService.js +4 -6
  156. package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.js +9 -11
  157. package/lib/chevre/service/assetTransaction/reserve/start/factory/createReservation.js +1 -1
  158. package/lib/chevre/service/assetTransaction/reserve/start.js +1 -3
  159. package/lib/chevre/service/code.d.ts +0 -4
  160. package/lib/chevre/service/code.js +22 -18
  161. package/lib/chevre/service/event.js +4 -4
  162. package/lib/chevre/service/moneyTransfer.js +3 -5
  163. package/lib/chevre/service/notification.js +2 -2
  164. package/lib/chevre/service/offer/event/authorize/factory.d.ts +3 -3
  165. package/lib/chevre/service/offer/event/authorize/factory.js +16 -2
  166. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre/requestedProgramMembershipUsed2permit.js +2 -2
  167. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.d.ts +3 -2
  168. package/lib/chevre/service/offer/event/authorize.d.ts +4 -2
  169. package/lib/chevre/service/offer/event/authorize.js +3 -2
  170. package/lib/chevre/service/offer/event/importFromCOA.js +2 -2
  171. package/lib/chevre/service/offer/event/searchEventTicketOffers.js +4 -12
  172. package/lib/chevre/service/offer/event/voidTransaction.js +2 -2
  173. package/lib/chevre/service/offer/event/voidTransactionByActionId.js +1 -1
  174. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.d.ts +2 -2
  175. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.js +45 -5
  176. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/factory.d.ts +3 -3
  177. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.js +3 -3
  178. package/lib/chevre/service/offer/eventServiceByCOA/authorize.d.ts +7 -3
  179. package/lib/chevre/service/offer/eventServiceByCOA/authorize.js +10 -5
  180. package/lib/chevre/service/offer/eventServiceByCOA/authorizeByAcceptAction.d.ts +3 -1
  181. package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.d.ts +3 -1
  182. package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.js +14 -6
  183. package/lib/chevre/service/offer/eventServiceByCOA/factory.d.ts +8 -5
  184. package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
  185. package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.js +38 -17
  186. package/lib/chevre/service/offer/moneyTransfer/authorize.js +1 -1
  187. package/lib/chevre/service/offer/moneyTransfer/voidTransaction.js +1 -1
  188. package/lib/chevre/service/offer/product/searchProductOffers.js +1 -3
  189. package/lib/chevre/service/offer/product.d.ts +4 -2
  190. package/lib/chevre/service/offer/product.js +12 -12
  191. package/lib/chevre/service/order/findPlaceOrderTransaction.js +1 -1
  192. package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled/factory.d.ts +1 -1
  193. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.d.ts +1 -1
  194. package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.js +1 -1
  195. package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned/factory.d.ts +1 -1
  196. package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.js +3 -3
  197. package/lib/chevre/service/order/placeOrder.js +1 -1
  198. package/lib/chevre/service/order/returnOrder.js +1 -1
  199. package/lib/chevre/service/payment/any/factory.d.ts +1 -1
  200. package/lib/chevre/service/payment/any/onPaid.d.ts +1 -1
  201. package/lib/chevre/service/payment/any/onRefund.d.ts +1 -1
  202. package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.d.ts +1 -4
  203. package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.js +21 -26
  204. package/lib/chevre/service/payment/any.d.ts +3 -1
  205. package/lib/chevre/service/payment/any.js +21 -13
  206. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.js +1 -1
  207. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3ds.js +1 -1
  208. package/lib/chevre/service/payment/creditCard/payCreditCard.d.ts +1 -2
  209. package/lib/chevre/service/payment/creditCard/payCreditCard.js +12 -5
  210. package/lib/chevre/service/payment/creditCard/refundCreditCard.js +13 -3
  211. package/lib/chevre/service/payment/creditCard/voidTransaction.js +1 -1
  212. package/lib/chevre/service/payment/faceToFace.d.ts +2 -2
  213. package/lib/chevre/service/payment/faceToFace.js +28 -10
  214. package/lib/chevre/service/payment/movieTicket/authorize.d.ts +0 -1
  215. package/lib/chevre/service/payment/movieTicket/authorize.js +8 -3
  216. package/lib/chevre/service/payment/movieTicket/payMovieTicket.d.ts +1 -2
  217. package/lib/chevre/service/payment/movieTicket/payMovieTicket.js +12 -4
  218. package/lib/chevre/service/payment/movieTicket/refundMovieTicket.js +15 -4
  219. package/lib/chevre/service/payment/movieTicket/validation.js +1 -1
  220. package/lib/chevre/service/payment/paymentCard.d.ts +2 -2
  221. package/lib/chevre/service/payment/paymentCard.js +29 -16
  222. package/lib/chevre/service/payment.d.ts +1 -1
  223. package/lib/chevre/service/report/telemetry.js +2 -2
  224. package/lib/chevre/service/reserve/cancelReservation.js +1 -1
  225. package/lib/chevre/service/reserve/confirmReservation.js +1 -1
  226. package/lib/chevre/service/task/onAuthorizationCreated.js +20 -16
  227. package/lib/chevre/service/task/onResourceUpdated/onResourceDeleted.js +2 -2
  228. package/lib/chevre/service/task/onResourceUpdated/syncCategoryCode.js +1 -1
  229. package/lib/chevre/service/task/onResourceUpdated.js +16 -4
  230. package/lib/chevre/service/task/publishPaymentUrl.js +4 -0
  231. package/lib/chevre/service/task/returnPayTransaction.js +1 -1
  232. package/lib/chevre/service/transaction/deleteTransaction.js +2 -2
  233. package/lib/chevre/service/transaction/moneyTransfer.js +4 -4
  234. package/lib/chevre/service/transaction/placeOrder/confirm.js +1 -1
  235. package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +1 -1
  236. package/lib/chevre/service/transaction/placeOrder/start/validateStartRequest.d.ts +2 -2
  237. package/lib/chevre/service/transaction/placeOrder/start/validateStartRequest.js +1 -1
  238. package/lib/chevre/service/transaction/placeOrder/start.js +1 -1
  239. package/lib/chevre/service/transaction/returnOrder/preStart.d.ts +2 -2
  240. package/lib/chevre/service/transaction/returnOrder/preStart.js +1 -1
  241. package/lib/chevre/service/transaction/returnOrder.js +2 -2
  242. package/lib/chevre/service/transaction.js +1 -1
  243. package/package.json +4 -4
  244. package/example/src/chevre/findTransactionById.ts +0 -23
  245. package/example/src/chevre/findTransactionInProgressById.ts +0 -23
  246. package/example/src/chevre/migrateTransactionObjectPaymentMethods.ts +0 -154
  247. package/example/src/chevre/projectReservationFields.ts +0 -31
  248. package/example/src/chevre/searchActions.ts +0 -40
  249. 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 IAction<T extends factory.actionType> = T extends factory.actionType.OrderAction ? factory.action.trade.order.IAction : T extends factory.actionType.AuthorizeAction ? factory.action.authorize.IAction<factory.action.authorize.IAttributes<any, any>> : factory.action.IAction<factory.action.IAttributes<T, any, any>>;
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: KeyOfAction[], exclusion: KeyOfAction[]): Promise<IAction<T>[]>;
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?: KeyOfAction[], exclusion?: KeyOfAction[]): Promise<IAction<T>>;
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<IAction<T>[]>;
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: factory.actionType;
194
+ $eq: T;
214
195
  };
215
- }): Promise<Pick<IAction<factory.actionType>, 'id' | 'actionStatus' | 'error' | 'purpose'>[]>;
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
- updateAuthorizeEventOfferAction(params: {
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<factory.action.authorize.offer.eventService.IAction<factory.service.webAPI.Identifier.COA>>;
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<any, QueryOptions<any>>;
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
  }