@chevre/factory 4.396.0-alpha.2 → 4.396.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/notification/task.d.ts +10 -5
- package/package.json +1 -1
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { ITask } from '../task';
|
|
2
2
|
import { TaskStatus } from '../taskStatus';
|
|
3
|
+
/**
|
|
4
|
+
* 実行済タスク
|
|
5
|
+
* debug段階で通知されうるが、本番環境では通知されない
|
|
6
|
+
*/
|
|
7
|
+
export type IExecutedTask = Pick<ITask, 'data' | 'id' | 'project' | 'runsAt' | 'name'> & {
|
|
8
|
+
status: TaskStatus.Executed;
|
|
9
|
+
typeOf: 'Task';
|
|
10
|
+
};
|
|
3
11
|
/**
|
|
4
12
|
* 実行試行回数超過で中止されるタスク
|
|
5
13
|
*/
|
|
6
14
|
export type IAbortingTask = Pick<ITask, 'data' | 'id' | 'project' | 'runsAt' | 'name'> & {
|
|
7
15
|
status: TaskStatus.Aborted;
|
|
8
|
-
|
|
9
|
-
* 通知タスクにはtypeOfが特になし
|
|
10
|
-
*/
|
|
11
|
-
typeOf?: never;
|
|
16
|
+
typeOf: 'Task';
|
|
12
17
|
};
|
|
13
|
-
export type ITask4inform = IAbortingTask;
|
|
18
|
+
export type ITask4inform = IExecutedTask | IAbortingTask;
|