attlaz-client 1.65.0 → 1.66.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/dist/Model/Event/EventType.d.ts +10 -10
- package/dist/Model/Event/EventType.js +10 -10
- package/dist/Model/Flow/FlowRunHistory.d.ts +4 -3
- package/dist/Model/Flow/FlowRunHistory.js +2 -2
- package/dist/Model/Flow/FlowRunHistoryStatus.d.ts +16 -0
- package/dist/Model/Flow/FlowRunHistoryStatus.js +24 -0
- package/dist/Model/Flow/FlowRunLifecycle.d.ts +2 -1
- package/dist/Model/Flow/FlowRunStatus.d.ts +7 -7
- package/dist/Model/Flow/FlowRunStatus.js +7 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export declare enum EventType {
|
|
2
2
|
/** @deprecated * */
|
|
3
|
-
TaskExecutionRequested,
|
|
3
|
+
TaskExecutionRequested = "TaskExecutionRequested",
|
|
4
4
|
/** @deprecated * */
|
|
5
|
-
TaskExecutionStarted,
|
|
5
|
+
TaskExecutionStarted = "TaskExecutionStarted",
|
|
6
6
|
/** @deprecated * */
|
|
7
|
-
TaskExecutionFailed,
|
|
7
|
+
TaskExecutionFailed = "TaskExecutionFailed",
|
|
8
8
|
/** @deprecated * */
|
|
9
|
-
TaskExecutionComplete,
|
|
9
|
+
TaskExecutionComplete = "TaskExecutionComplete",
|
|
10
10
|
/** @deprecated * */
|
|
11
|
-
TaskExecutionRetry,
|
|
12
|
-
FlowRunRequested,
|
|
13
|
-
FlowRunStarted,
|
|
14
|
-
FlowRunFailed,
|
|
15
|
-
FlowRunComplete,
|
|
16
|
-
FlowRunRetry
|
|
11
|
+
TaskExecutionRetry = "TaskExecutionRetry",
|
|
12
|
+
FlowRunRequested = "FlowRunRequested",
|
|
13
|
+
FlowRunStarted = "FlowRunStarted",
|
|
14
|
+
FlowRunFailed = "FlowRunFailed",
|
|
15
|
+
FlowRunComplete = "FlowRunComplete",
|
|
16
|
+
FlowRunRetry = "FlowRunRetry"
|
|
17
17
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export var EventType;
|
|
2
2
|
(function (EventType) {
|
|
3
3
|
/** @deprecated * */
|
|
4
|
-
EventType[
|
|
4
|
+
EventType["TaskExecutionRequested"] = "TaskExecutionRequested";
|
|
5
5
|
/** @deprecated * */
|
|
6
|
-
EventType[
|
|
6
|
+
EventType["TaskExecutionStarted"] = "TaskExecutionStarted";
|
|
7
7
|
/** @deprecated * */
|
|
8
|
-
EventType[
|
|
8
|
+
EventType["TaskExecutionFailed"] = "TaskExecutionFailed";
|
|
9
9
|
/** @deprecated * */
|
|
10
|
-
EventType[
|
|
10
|
+
EventType["TaskExecutionComplete"] = "TaskExecutionComplete";
|
|
11
11
|
/** @deprecated * */
|
|
12
|
-
EventType[
|
|
13
|
-
EventType[
|
|
14
|
-
EventType[
|
|
15
|
-
EventType[
|
|
16
|
-
EventType[
|
|
17
|
-
EventType[
|
|
12
|
+
EventType["TaskExecutionRetry"] = "TaskExecutionRetry";
|
|
13
|
+
EventType["FlowRunRequested"] = "FlowRunRequested";
|
|
14
|
+
EventType["FlowRunStarted"] = "FlowRunStarted";
|
|
15
|
+
EventType["FlowRunFailed"] = "FlowRunFailed";
|
|
16
|
+
EventType["FlowRunComplete"] = "FlowRunComplete";
|
|
17
|
+
EventType["FlowRunRetry"] = "FlowRunRetry";
|
|
18
18
|
})(EventType || (EventType = {}));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApiRecord } from '../ApiRecord.js';
|
|
2
|
+
import { FlowRunHistoryStatus } from './FlowRunHistoryStatus.js';
|
|
2
3
|
export declare class FlowRunHistory {
|
|
3
4
|
id: string;
|
|
4
5
|
time: Date;
|
|
5
|
-
status:
|
|
6
|
-
static parse(rawFlowRunHistory:
|
|
6
|
+
status: FlowRunHistoryStatus;
|
|
7
|
+
static parse(rawFlowRunHistory: ApiRecord): FlowRunHistory;
|
|
7
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Utils } from '../../Utils.js';
|
|
2
|
-
import {
|
|
2
|
+
import { FlowRunHistoryStatus } from './FlowRunHistoryStatus.js';
|
|
3
3
|
export class FlowRunHistory {
|
|
4
4
|
id;
|
|
5
5
|
time;
|
|
@@ -8,7 +8,7 @@ export class FlowRunHistory {
|
|
|
8
8
|
const flowRunHistory = new FlowRunHistory();
|
|
9
9
|
flowRunHistory.id = rawFlowRunHistory.id;
|
|
10
10
|
flowRunHistory.time = Utils.parseRawDate(rawFlowRunHistory.time);
|
|
11
|
-
flowRunHistory.status =
|
|
11
|
+
flowRunHistory.status = FlowRunHistoryStatus.fromString(rawFlowRunHistory.status);
|
|
12
12
|
return flowRunHistory;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status values as stored in flow_run_history (distinct from FlowRunStatus, the derived run state).
|
|
3
|
+
* Notably `started`/`success` here vs `running`/`complete` on FlowRunStatus — reusing FlowRunStatus
|
|
4
|
+
* to parse history rows would throw on those two values and silently drop them.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum FlowRunHistoryStatus {
|
|
7
|
+
Pending = "pending",
|
|
8
|
+
Started = "started",
|
|
9
|
+
Success = "success",
|
|
10
|
+
Failed = "failed",
|
|
11
|
+
Stopped = "stopped",
|
|
12
|
+
Canceled = "canceled"
|
|
13
|
+
}
|
|
14
|
+
export declare namespace FlowRunHistoryStatus {
|
|
15
|
+
const fromString: (input: string) => FlowRunHistoryStatus;
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
/**
|
|
3
|
+
* Status values as stored in flow_run_history (distinct from FlowRunStatus, the derived run state).
|
|
4
|
+
* Notably `started`/`success` here vs `running`/`complete` on FlowRunStatus — reusing FlowRunStatus
|
|
5
|
+
* to parse history rows would throw on those two values and silently drop them.
|
|
6
|
+
*/
|
|
7
|
+
export var FlowRunHistoryStatus;
|
|
8
|
+
(function (FlowRunHistoryStatus) {
|
|
9
|
+
FlowRunHistoryStatus["Pending"] = "pending";
|
|
10
|
+
FlowRunHistoryStatus["Started"] = "started";
|
|
11
|
+
FlowRunHistoryStatus["Success"] = "success";
|
|
12
|
+
FlowRunHistoryStatus["Failed"] = "failed";
|
|
13
|
+
FlowRunHistoryStatus["Stopped"] = "stopped";
|
|
14
|
+
FlowRunHistoryStatus["Canceled"] = "canceled";
|
|
15
|
+
})(FlowRunHistoryStatus || (FlowRunHistoryStatus = {}));
|
|
16
|
+
(function (FlowRunHistoryStatus) {
|
|
17
|
+
FlowRunHistoryStatus.fromString = (input) => {
|
|
18
|
+
const result = Utils.parseEnum(input, FlowRunHistoryStatus);
|
|
19
|
+
if (result === null) {
|
|
20
|
+
throw new Error('Unable to parse FlowRunHistoryStatus from string: Unknown FlowRunHistoryStatus "' + input + '"');
|
|
21
|
+
}
|
|
22
|
+
return result;
|
|
23
|
+
};
|
|
24
|
+
})(FlowRunHistoryStatus || (FlowRunHistoryStatus = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ApiRecord } from '../ApiRecord.js';
|
|
1
2
|
import { FlowRunStatus } from './FlowRunStatus.js';
|
|
2
3
|
/**
|
|
3
4
|
* The authoritative lifecycle of a flow run, as derived server-side from its event history
|
|
@@ -11,5 +12,5 @@ export declare class FlowRunLifecycle {
|
|
|
11
12
|
requested: Date | null;
|
|
12
13
|
started: Date | null;
|
|
13
14
|
ended: Date | null;
|
|
14
|
-
static parse(rawFlowRunLifecycle:
|
|
15
|
+
static parse(rawFlowRunLifecycle: ApiRecord): FlowRunLifecycle;
|
|
15
16
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare enum FlowRunStatus {
|
|
2
|
-
Unknown,
|
|
3
|
-
Pending,
|
|
4
|
-
Canceled,
|
|
5
|
-
Running,
|
|
6
|
-
Failed,
|
|
7
|
-
Stopped,
|
|
8
|
-
Complete
|
|
2
|
+
Unknown = "unknown",
|
|
3
|
+
Pending = "pending",
|
|
4
|
+
Canceled = "canceled",
|
|
5
|
+
Running = "running",
|
|
6
|
+
Failed = "failed",
|
|
7
|
+
Stopped = "stopped",
|
|
8
|
+
Complete = "complete"
|
|
9
9
|
}
|
|
10
10
|
export declare namespace FlowRunStatus {
|
|
11
11
|
const fromString: (input: string) => FlowRunStatus;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Utils } from '../../Utils.js';
|
|
2
2
|
export var FlowRunStatus;
|
|
3
3
|
(function (FlowRunStatus) {
|
|
4
|
-
FlowRunStatus[
|
|
5
|
-
FlowRunStatus[
|
|
6
|
-
FlowRunStatus[
|
|
7
|
-
FlowRunStatus[
|
|
8
|
-
FlowRunStatus[
|
|
9
|
-
FlowRunStatus[
|
|
10
|
-
FlowRunStatus[
|
|
4
|
+
FlowRunStatus["Unknown"] = "unknown";
|
|
5
|
+
FlowRunStatus["Pending"] = "pending";
|
|
6
|
+
FlowRunStatus["Canceled"] = "canceled";
|
|
7
|
+
FlowRunStatus["Running"] = "running";
|
|
8
|
+
FlowRunStatus["Failed"] = "failed";
|
|
9
|
+
FlowRunStatus["Stopped"] = "stopped";
|
|
10
|
+
FlowRunStatus["Complete"] = "complete";
|
|
11
11
|
})(FlowRunStatus || (FlowRunStatus = {}));
|
|
12
12
|
(function (FlowRunStatus) {
|
|
13
13
|
FlowRunStatus.fromString = (input) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export { StateAware } from './Model/StateAware.js';
|
|
|
118
118
|
export { Flow } from './Model/Flow/Flow.js';
|
|
119
119
|
export { FlowRun } from './Model/Flow/FlowRun.js';
|
|
120
120
|
export { FlowRunHistory } from './Model/Flow/FlowRunHistory.js';
|
|
121
|
+
export { FlowRunHistoryStatus } from './Model/Flow/FlowRunHistoryStatus.js';
|
|
121
122
|
export { FlowRunLifecycle } from './Model/Flow/FlowRunLifecycle.js';
|
|
122
123
|
export { FlowRunResponse } from './Model/Flow/FlowRunResponse.js';
|
|
123
124
|
export { FlowRunStatus } from './Model/Flow/FlowRunStatus.js';
|
package/dist/index.js
CHANGED
|
@@ -106,6 +106,7 @@ export { State } from './Model/State.js';
|
|
|
106
106
|
export { Flow } from './Model/Flow/Flow.js';
|
|
107
107
|
export { FlowRun } from './Model/Flow/FlowRun.js';
|
|
108
108
|
export { FlowRunHistory } from './Model/Flow/FlowRunHistory.js';
|
|
109
|
+
export { FlowRunHistoryStatus } from './Model/Flow/FlowRunHistoryStatus.js';
|
|
109
110
|
export { FlowRunLifecycle } from './Model/Flow/FlowRunLifecycle.js';
|
|
110
111
|
export { FlowRunResponse } from './Model/Flow/FlowRunResponse.js';
|
|
111
112
|
export { FlowRunStatus } from './Model/Flow/FlowRunStatus.js';
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.66.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.66.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "attlaz-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.66.0",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/jest": "^30.0.0",
|
|
53
|
-
"@types/node": "^25.9.
|
|
53
|
+
"@types/node": "^25.9.2",
|
|
54
54
|
"@typescript-eslint/eslint-plugin": "^8.59.3",
|
|
55
55
|
"@typescript-eslint/parser": "^8.59.3",
|
|
56
56
|
"eslint": "^9.39.4",
|