@knowledge-stack/ksapi 1.52.1 → 1.52.2
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/README.md +2 -2
- package/dist/esm/models/PipelineState.d.ts +8 -2
- package/dist/esm/models/PipelineState.js +4 -4
- package/dist/esm/models/WorkflowDetailResponse.d.ts +6 -0
- package/dist/esm/models/WorkflowDetailResponse.js +2 -0
- package/dist/esm/models/WorkflowSummaryResponse.d.ts +6 -0
- package/dist/esm/models/WorkflowSummaryResponse.js +2 -0
- package/dist/models/PipelineState.d.ts +8 -2
- package/dist/models/PipelineState.js +4 -4
- package/dist/models/WorkflowDetailResponse.d.ts +6 -0
- package/dist/models/WorkflowDetailResponse.js +2 -0
- package/dist/models/WorkflowSummaryResponse.d.ts +6 -0
- package/dist/models/WorkflowSummaryResponse.js +2 -0
- package/docs/PipelineState.md +2 -0
- package/docs/WorkflowDetailResponse.md +2 -0
- package/docs/WorkflowSummaryResponse.md +2 -0
- package/package.json +1 -1
- package/src/models/PipelineState.ts +12 -5
- package/src/models/WorkflowDetailResponse.ts +8 -0
- package/src/models/WorkflowSummaryResponse.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.52.
|
|
1
|
+
# @knowledge-stack/ksapi@1.52.2
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -298,7 +298,7 @@ and is automatically generated by the
|
|
|
298
298
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
299
299
|
|
|
300
300
|
- API version: `0.1.0`
|
|
301
|
-
- Package version: `1.52.
|
|
301
|
+
- Package version: `1.52.2`
|
|
302
302
|
- Generator version: `7.20.0`
|
|
303
303
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
304
304
|
|
|
@@ -25,11 +25,17 @@ export interface PipelineState {
|
|
|
25
25
|
*/
|
|
26
26
|
status: PipelineStatus;
|
|
27
27
|
/**
|
|
28
|
-
* Timestamp of the last pipeline execution attempt
|
|
28
|
+
* Timestamp of the last pipeline execution attempt (set once when a run starts)
|
|
29
29
|
* @type {Date}
|
|
30
30
|
* @memberof PipelineState
|
|
31
31
|
*/
|
|
32
|
-
lastRunTimestamp
|
|
32
|
+
lastRunTimestamp?: Date | null;
|
|
33
|
+
/**
|
|
34
|
+
* Timestamp of the last pipeline state change (set by activities)
|
|
35
|
+
* @type {Date}
|
|
36
|
+
* @memberof PipelineState
|
|
37
|
+
*/
|
|
38
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
33
39
|
/**
|
|
34
40
|
* Name of the last activity that executed (e.g., 'docling_conversion')
|
|
35
41
|
* @type {string}
|
|
@@ -20,8 +20,6 @@ import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
|
|
|
20
20
|
export function instanceOfPipelineState(value) {
|
|
21
21
|
if (!('status' in value) || value['status'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
-
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined)
|
|
24
|
-
return false;
|
|
25
23
|
return true;
|
|
26
24
|
}
|
|
27
25
|
export function PipelineStateFromJSON(json) {
|
|
@@ -33,7 +31,8 @@ export function PipelineStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
33
|
'status': PipelineStatusFromJSON(json['status']),
|
|
36
|
-
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
34
|
+
'lastRunTimestamp': json['last_run_timestamp'] == null ? undefined : (new Date(json['last_run_timestamp'])),
|
|
35
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
37
36
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
38
37
|
'error': json['error'] == null ? undefined : json['error'],
|
|
39
38
|
'temporalWorkflowId': json['temporal_workflow_id'] == null ? undefined : json['temporal_workflow_id'],
|
|
@@ -52,7 +51,8 @@ export function PipelineStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
51
|
}
|
|
53
52
|
return {
|
|
54
53
|
'status': PipelineStatusToJSON(value['status']),
|
|
55
|
-
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
54
|
+
'last_run_timestamp': value['lastRunTimestamp'] == null ? value['lastRunTimestamp'] : value['lastRunTimestamp'].toISOString(),
|
|
55
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
56
56
|
'last_activity': value['lastActivity'],
|
|
57
57
|
'error': value['error'],
|
|
58
58
|
'temporal_workflow_id': value['temporalWorkflowId'],
|
|
@@ -58,6 +58,12 @@ export interface WorkflowDetailResponse {
|
|
|
58
58
|
* @memberof WorkflowDetailResponse
|
|
59
59
|
*/
|
|
60
60
|
lastRunTimestamp: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof WorkflowDetailResponse
|
|
65
|
+
*/
|
|
66
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {Date}
|
|
@@ -55,6 +55,7 @@ export function WorkflowDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
56
56
|
'error': json['error'] == null ? undefined : json['error'],
|
|
57
57
|
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
58
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
58
59
|
'createdAt': (new Date(json['created_at'])),
|
|
59
60
|
'temporalStatus': json['temporal_status'],
|
|
60
61
|
'startTime': (new Date(json['start_time'])),
|
|
@@ -80,6 +81,7 @@ export function WorkflowDetailResponseToJSONTyped(value, ignoreDiscriminator = f
|
|
|
80
81
|
'last_activity': value['lastActivity'],
|
|
81
82
|
'error': value['error'],
|
|
82
83
|
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
84
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
83
85
|
'created_at': value['createdAt'].toISOString(),
|
|
84
86
|
'temporal_status': value['temporalStatus'],
|
|
85
87
|
'start_time': value['startTime'].toISOString(),
|
|
@@ -58,6 +58,12 @@ export interface WorkflowSummaryResponse {
|
|
|
58
58
|
* @memberof WorkflowSummaryResponse
|
|
59
59
|
*/
|
|
60
60
|
lastRunTimestamp: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof WorkflowSummaryResponse
|
|
65
|
+
*/
|
|
66
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {Date}
|
|
@@ -45,6 +45,7 @@ export function WorkflowSummaryResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
45
45
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
46
46
|
'error': json['error'] == null ? undefined : json['error'],
|
|
47
47
|
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
48
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
48
49
|
'createdAt': (new Date(json['created_at'])),
|
|
49
50
|
};
|
|
50
51
|
}
|
|
@@ -63,6 +64,7 @@ export function WorkflowSummaryResponseToJSONTyped(value, ignoreDiscriminator =
|
|
|
63
64
|
'last_activity': value['lastActivity'],
|
|
64
65
|
'error': value['error'],
|
|
65
66
|
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
67
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
66
68
|
'created_at': value['createdAt'].toISOString(),
|
|
67
69
|
};
|
|
68
70
|
}
|
|
@@ -25,11 +25,17 @@ export interface PipelineState {
|
|
|
25
25
|
*/
|
|
26
26
|
status: PipelineStatus;
|
|
27
27
|
/**
|
|
28
|
-
* Timestamp of the last pipeline execution attempt
|
|
28
|
+
* Timestamp of the last pipeline execution attempt (set once when a run starts)
|
|
29
29
|
* @type {Date}
|
|
30
30
|
* @memberof PipelineState
|
|
31
31
|
*/
|
|
32
|
-
lastRunTimestamp
|
|
32
|
+
lastRunTimestamp?: Date | null;
|
|
33
|
+
/**
|
|
34
|
+
* Timestamp of the last pipeline state change (set by activities)
|
|
35
|
+
* @type {Date}
|
|
36
|
+
* @memberof PipelineState
|
|
37
|
+
*/
|
|
38
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
33
39
|
/**
|
|
34
40
|
* Name of the last activity that executed (e.g., 'docling_conversion')
|
|
35
41
|
* @type {string}
|
|
@@ -28,8 +28,6 @@ const ChunkType_1 = require("./ChunkType");
|
|
|
28
28
|
function instanceOfPipelineState(value) {
|
|
29
29
|
if (!('status' in value) || value['status'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
return true;
|
|
34
32
|
}
|
|
35
33
|
function PipelineStateFromJSON(json) {
|
|
@@ -41,7 +39,8 @@ function PipelineStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
39
|
}
|
|
42
40
|
return {
|
|
43
41
|
'status': (0, PipelineStatus_1.PipelineStatusFromJSON)(json['status']),
|
|
44
|
-
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
42
|
+
'lastRunTimestamp': json['last_run_timestamp'] == null ? undefined : (new Date(json['last_run_timestamp'])),
|
|
43
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
45
44
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
46
45
|
'error': json['error'] == null ? undefined : json['error'],
|
|
47
46
|
'temporalWorkflowId': json['temporal_workflow_id'] == null ? undefined : json['temporal_workflow_id'],
|
|
@@ -60,7 +59,8 @@ function PipelineStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
59
|
}
|
|
61
60
|
return {
|
|
62
61
|
'status': (0, PipelineStatus_1.PipelineStatusToJSON)(value['status']),
|
|
63
|
-
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
62
|
+
'last_run_timestamp': value['lastRunTimestamp'] == null ? value['lastRunTimestamp'] : value['lastRunTimestamp'].toISOString(),
|
|
63
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
64
64
|
'last_activity': value['lastActivity'],
|
|
65
65
|
'error': value['error'],
|
|
66
66
|
'temporal_workflow_id': value['temporalWorkflowId'],
|
|
@@ -58,6 +58,12 @@ export interface WorkflowDetailResponse {
|
|
|
58
58
|
* @memberof WorkflowDetailResponse
|
|
59
59
|
*/
|
|
60
60
|
lastRunTimestamp: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof WorkflowDetailResponse
|
|
65
|
+
*/
|
|
66
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {Date}
|
|
@@ -63,6 +63,7 @@ function WorkflowDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
64
64
|
'error': json['error'] == null ? undefined : json['error'],
|
|
65
65
|
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
66
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
66
67
|
'createdAt': (new Date(json['created_at'])),
|
|
67
68
|
'temporalStatus': json['temporal_status'],
|
|
68
69
|
'startTime': (new Date(json['start_time'])),
|
|
@@ -88,6 +89,7 @@ function WorkflowDetailResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
88
89
|
'last_activity': value['lastActivity'],
|
|
89
90
|
'error': value['error'],
|
|
90
91
|
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
92
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
91
93
|
'created_at': value['createdAt'].toISOString(),
|
|
92
94
|
'temporal_status': value['temporalStatus'],
|
|
93
95
|
'start_time': value['startTime'].toISOString(),
|
|
@@ -58,6 +58,12 @@ export interface WorkflowSummaryResponse {
|
|
|
58
58
|
* @memberof WorkflowSummaryResponse
|
|
59
59
|
*/
|
|
60
60
|
lastRunTimestamp: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof WorkflowSummaryResponse
|
|
65
|
+
*/
|
|
66
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {Date}
|
|
@@ -53,6 +53,7 @@ function WorkflowSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
54
54
|
'error': json['error'] == null ? undefined : json['error'],
|
|
55
55
|
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
56
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
56
57
|
'createdAt': (new Date(json['created_at'])),
|
|
57
58
|
};
|
|
58
59
|
}
|
|
@@ -71,6 +72,7 @@ function WorkflowSummaryResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
71
72
|
'last_activity': value['lastActivity'],
|
|
72
73
|
'error': value['error'],
|
|
73
74
|
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
75
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
74
76
|
'created_at': value['createdAt'].toISOString(),
|
|
75
77
|
};
|
|
76
78
|
}
|
package/docs/PipelineState.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`status` | [PipelineStatus](PipelineStatus.md)
|
|
11
11
|
`lastRunTimestamp` | Date
|
|
12
|
+
`lastStateUpdateTimestamp` | Date
|
|
12
13
|
`lastActivity` | string
|
|
13
14
|
`error` | string
|
|
14
15
|
`temporalWorkflowId` | string
|
|
@@ -26,6 +27,7 @@ import type { PipelineState } from '@knowledge-stack/ksapi'
|
|
|
26
27
|
const example = {
|
|
27
28
|
"status": null,
|
|
28
29
|
"lastRunTimestamp": null,
|
|
30
|
+
"lastStateUpdateTimestamp": null,
|
|
29
31
|
"lastActivity": null,
|
|
30
32
|
"error": null,
|
|
31
33
|
"temporalWorkflowId": null,
|
|
@@ -14,6 +14,7 @@ Name | Type
|
|
|
14
14
|
`lastActivity` | string
|
|
15
15
|
`error` | string
|
|
16
16
|
`lastRunTimestamp` | Date
|
|
17
|
+
`lastStateUpdateTimestamp` | Date
|
|
17
18
|
`createdAt` | Date
|
|
18
19
|
`temporalStatus` | string
|
|
19
20
|
`startTime` | Date
|
|
@@ -37,6 +38,7 @@ const example = {
|
|
|
37
38
|
"lastActivity": null,
|
|
38
39
|
"error": null,
|
|
39
40
|
"lastRunTimestamp": null,
|
|
41
|
+
"lastStateUpdateTimestamp": null,
|
|
40
42
|
"createdAt": null,
|
|
41
43
|
"temporalStatus": null,
|
|
42
44
|
"startTime": null,
|
|
@@ -14,6 +14,7 @@ Name | Type
|
|
|
14
14
|
`lastActivity` | string
|
|
15
15
|
`error` | string
|
|
16
16
|
`lastRunTimestamp` | Date
|
|
17
|
+
`lastStateUpdateTimestamp` | Date
|
|
17
18
|
`createdAt` | Date
|
|
18
19
|
|
|
19
20
|
## Example
|
|
@@ -30,6 +31,7 @@ const example = {
|
|
|
30
31
|
"lastActivity": null,
|
|
31
32
|
"error": null,
|
|
32
33
|
"lastRunTimestamp": null,
|
|
34
|
+
"lastStateUpdateTimestamp": null,
|
|
33
35
|
"createdAt": null,
|
|
34
36
|
} satisfies WorkflowSummaryResponse
|
|
35
37
|
|
package/package.json
CHANGED
|
@@ -48,11 +48,17 @@ export interface PipelineState {
|
|
|
48
48
|
*/
|
|
49
49
|
status: PipelineStatus;
|
|
50
50
|
/**
|
|
51
|
-
* Timestamp of the last pipeline execution attempt
|
|
51
|
+
* Timestamp of the last pipeline execution attempt (set once when a run starts)
|
|
52
52
|
* @type {Date}
|
|
53
53
|
* @memberof PipelineState
|
|
54
54
|
*/
|
|
55
|
-
lastRunTimestamp
|
|
55
|
+
lastRunTimestamp?: Date | null;
|
|
56
|
+
/**
|
|
57
|
+
* Timestamp of the last pipeline state change (set by activities)
|
|
58
|
+
* @type {Date}
|
|
59
|
+
* @memberof PipelineState
|
|
60
|
+
*/
|
|
61
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
56
62
|
/**
|
|
57
63
|
* Name of the last activity that executed (e.g., 'docling_conversion')
|
|
58
64
|
* @type {string}
|
|
@@ -104,7 +110,6 @@ export interface PipelineState {
|
|
|
104
110
|
*/
|
|
105
111
|
export function instanceOfPipelineState(value: object): value is PipelineState {
|
|
106
112
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
107
|
-
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined) return false;
|
|
108
113
|
return true;
|
|
109
114
|
}
|
|
110
115
|
|
|
@@ -119,7 +124,8 @@ export function PipelineStateFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
119
124
|
return {
|
|
120
125
|
|
|
121
126
|
'status': PipelineStatusFromJSON(json['status']),
|
|
122
|
-
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
127
|
+
'lastRunTimestamp': json['last_run_timestamp'] == null ? undefined : (new Date(json['last_run_timestamp'])),
|
|
128
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
123
129
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
124
130
|
'error': json['error'] == null ? undefined : json['error'],
|
|
125
131
|
'temporalWorkflowId': json['temporal_workflow_id'] == null ? undefined : json['temporal_workflow_id'],
|
|
@@ -142,7 +148,8 @@ export function PipelineStateToJSONTyped(value?: PipelineState | null, ignoreDis
|
|
|
142
148
|
return {
|
|
143
149
|
|
|
144
150
|
'status': PipelineStatusToJSON(value['status']),
|
|
145
|
-
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
151
|
+
'last_run_timestamp': value['lastRunTimestamp'] == null ? value['lastRunTimestamp'] : value['lastRunTimestamp'].toISOString(),
|
|
152
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
146
153
|
'last_activity': value['lastActivity'],
|
|
147
154
|
'error': value['error'],
|
|
148
155
|
'temporal_workflow_id': value['temporalWorkflowId'],
|
|
@@ -69,6 +69,12 @@ export interface WorkflowDetailResponse {
|
|
|
69
69
|
* @memberof WorkflowDetailResponse
|
|
70
70
|
*/
|
|
71
71
|
lastRunTimestamp: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof WorkflowDetailResponse
|
|
76
|
+
*/
|
|
77
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {Date}
|
|
@@ -156,6 +162,7 @@ export function WorkflowDetailResponseFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
156
162
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
157
163
|
'error': json['error'] == null ? undefined : json['error'],
|
|
158
164
|
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
165
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
159
166
|
'createdAt': (new Date(json['created_at'])),
|
|
160
167
|
'temporalStatus': json['temporal_status'],
|
|
161
168
|
'startTime': (new Date(json['start_time'])),
|
|
@@ -185,6 +192,7 @@ export function WorkflowDetailResponseToJSONTyped(value?: WorkflowDetailResponse
|
|
|
185
192
|
'last_activity': value['lastActivity'],
|
|
186
193
|
'error': value['error'],
|
|
187
194
|
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
195
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
188
196
|
'created_at': value['createdAt'].toISOString(),
|
|
189
197
|
'temporal_status': value['temporalStatus'],
|
|
190
198
|
'start_time': value['startTime'].toISOString(),
|
|
@@ -69,6 +69,12 @@ export interface WorkflowSummaryResponse {
|
|
|
69
69
|
* @memberof WorkflowSummaryResponse
|
|
70
70
|
*/
|
|
71
71
|
lastRunTimestamp: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof WorkflowSummaryResponse
|
|
76
|
+
*/
|
|
77
|
+
lastStateUpdateTimestamp?: Date | null;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {Date}
|
|
@@ -109,6 +115,7 @@ export function WorkflowSummaryResponseFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
109
115
|
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
110
116
|
'error': json['error'] == null ? undefined : json['error'],
|
|
111
117
|
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
118
|
+
'lastStateUpdateTimestamp': json['last_state_update_timestamp'] == null ? undefined : (new Date(json['last_state_update_timestamp'])),
|
|
112
119
|
'createdAt': (new Date(json['created_at'])),
|
|
113
120
|
};
|
|
114
121
|
}
|
|
@@ -131,6 +138,7 @@ export function WorkflowSummaryResponseToJSONTyped(value?: WorkflowSummaryRespon
|
|
|
131
138
|
'last_activity': value['lastActivity'],
|
|
132
139
|
'error': value['error'],
|
|
133
140
|
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
141
|
+
'last_state_update_timestamp': value['lastStateUpdateTimestamp'] == null ? value['lastStateUpdateTimestamp'] : value['lastStateUpdateTimestamp'].toISOString(),
|
|
134
142
|
'created_at': value['createdAt'].toISOString(),
|
|
135
143
|
};
|
|
136
144
|
}
|