@chevre/factory 4.393.0-alpha.34 → 4.393.0-alpha.36
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IAttributes as ICancelCOAReserveActionAttributes } from '../action/cancel/coaReserve';
|
|
1
2
|
import { IPurpose } from '../action/cancel/reservation';
|
|
2
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
3
4
|
import { IExtendId } from '../autoGenerated';
|
|
@@ -6,14 +7,23 @@ import { TaskName } from '../taskName';
|
|
|
6
7
|
export interface ICancelPurpose extends IPurpose {
|
|
7
8
|
typeOf: AssetTransactionType.Reserve;
|
|
8
9
|
}
|
|
9
|
-
export interface
|
|
10
|
+
export interface IPotentialCancelAction {
|
|
10
11
|
purpose: ICancelPurpose;
|
|
12
|
+
object?: never;
|
|
13
|
+
instrument?: never;
|
|
11
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* support COAReserve(2025-03-01~)
|
|
17
|
+
*/
|
|
18
|
+
export type IPotentialCancelCOAReserveAction = Pick<ICancelCOAReserveActionAttributes, 'instrument' | 'object'> & {
|
|
19
|
+
purpose?: never;
|
|
20
|
+
};
|
|
21
|
+
export type IData = IPotentialCancelAction | IPotentialCancelCOAReserveAction;
|
|
12
22
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
13
23
|
name: TaskName.CancelPendingReservation;
|
|
14
24
|
data: IData;
|
|
15
25
|
}
|
|
16
26
|
/**
|
|
17
|
-
*
|
|
27
|
+
* cancel pending reservations task
|
|
18
28
|
*/
|
|
19
29
|
export type ITask = IExtendId<IAttributes>;
|
package/lib/taskStatus.d.ts
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* task statuses
|
|
3
3
|
*/
|
|
4
4
|
export declare enum TaskStatus {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* wait for run
|
|
7
7
|
*/
|
|
8
8
|
Ready = "Ready",
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* running
|
|
11
11
|
*/
|
|
12
12
|
Running = "Running",
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* successfully run
|
|
15
15
|
*/
|
|
16
16
|
Executed = "Executed",
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* aborted
|
|
19
19
|
*/
|
|
20
|
-
Aborted = "Aborted"
|
|
20
|
+
Aborted = "Aborted",
|
|
21
|
+
/**
|
|
22
|
+
* exipred
|
|
23
|
+
* 2025-03-01~
|
|
24
|
+
*/
|
|
25
|
+
Expired = "Expired"
|
|
21
26
|
}
|
package/lib/taskStatus.js
CHANGED
|
@@ -2,24 +2,29 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TaskStatus = void 0;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* task statuses
|
|
6
6
|
*/
|
|
7
7
|
var TaskStatus;
|
|
8
8
|
(function (TaskStatus) {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* wait for run
|
|
11
11
|
*/
|
|
12
12
|
TaskStatus["Ready"] = "Ready";
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* running
|
|
15
15
|
*/
|
|
16
16
|
TaskStatus["Running"] = "Running";
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* successfully run
|
|
19
19
|
*/
|
|
20
20
|
TaskStatus["Executed"] = "Executed";
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* aborted
|
|
23
23
|
*/
|
|
24
24
|
TaskStatus["Aborted"] = "Aborted";
|
|
25
|
+
/**
|
|
26
|
+
* exipred
|
|
27
|
+
* 2025-03-01~
|
|
28
|
+
*/
|
|
29
|
+
TaskStatus["Expired"] = "Expired";
|
|
25
30
|
})(TaskStatus = exports.TaskStatus || (exports.TaskStatus = {}));
|