UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

42 lines (41 loc) 839 B
import * as factory from '../../../factory'; import type { ActionRepo } from '../../../repo/action'; import type { TaskRepo } from '../../../repo/task'; interface IFindAcceptActionResult { /** * アクションID */ id?: string; /** * アクションスタータス */ actionStatus: factory.actionStatusType; /** * エラー */ error?: { name?: string; message?: string; }; } declare function findAcceptAction(params: { project: { id: string; }; sameAs: { /** * task ID */ id: string; }; purpose: { /** * transaction ID */ id: string; }; }): (repos: { action: ActionRepo; task: TaskRepo; }) => Promise<IFindAcceptActionResult>; export { findAcceptAction };