@knowledge-stack/ksapi 1.159.1 → 1.160.1
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/.openapi-generator/FILES +2 -0
- package/README.md +3 -2
- package/dist/apis/WorkflowDefinitionsApi.d.ts +9 -0
- package/dist/apis/WorkflowDefinitionsApi.js +9 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +9 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.js +9 -0
- package/dist/esm/models/LastRunSummary.d.ts +89 -0
- package/dist/esm/models/LastRunSummary.js +64 -0
- package/dist/esm/models/UploadConstraints.d.ts +0 -6
- package/dist/esm/models/UploadConstraints.js +0 -4
- package/dist/esm/models/WorkflowDefinitionOrder.d.ts +2 -1
- package/dist/esm/models/WorkflowDefinitionOrder.js +3 -2
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +13 -0
- package/dist/esm/models/WorkflowDefinitionResponse.js +5 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/LastRunSummary.d.ts +89 -0
- package/dist/models/LastRunSummary.js +72 -0
- package/dist/models/UploadConstraints.d.ts +0 -6
- package/dist/models/UploadConstraints.js +0 -4
- package/dist/models/WorkflowDefinitionOrder.d.ts +2 -1
- package/dist/models/WorkflowDefinitionOrder.js +3 -2
- package/dist/models/WorkflowDefinitionResponse.d.ts +13 -0
- package/dist/models/WorkflowDefinitionResponse.js +5 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.md +4 -0
- package/docs/LastRunSummary.md +47 -0
- package/docs/UploadConstraints.md +0 -2
- package/docs/WorkflowDefinitionOrder.md +1 -1
- package/docs/WorkflowDefinitionResponse.md +4 -0
- package/docs/WorkflowDefinitionsApi.md +11 -2
- package/package.json +1 -1
- package/src/apis/WorkflowDefinitionsApi.ts +21 -0
- package/src/models/LastRunSummary.ts +155 -0
- package/src/models/UploadConstraints.ts +0 -9
- package/src/models/WorkflowDefinitionOrder.ts +3 -2
- package/src/models/WorkflowDefinitionResponse.ts +23 -0
- package/src/models/index.ts +1 -0
|
@@ -14,12 +14,13 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Sortable fields for workflow-definition listings
|
|
17
|
+
* Sortable fields for workflow-definition listings.
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
export const WorkflowDefinitionOrder = {
|
|
21
21
|
CreatedAt: 'CREATED_AT',
|
|
22
|
-
UpdatedAt: 'UPDATED_AT'
|
|
22
|
+
UpdatedAt: 'UPDATED_AT',
|
|
23
|
+
Name: 'NAME'
|
|
23
24
|
} as const;
|
|
24
25
|
export type WorkflowDefinitionOrder = typeof WorkflowDefinitionOrder[keyof typeof WorkflowDefinitionOrder];
|
|
25
26
|
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
ItemPermissionsToJSON,
|
|
21
21
|
ItemPermissionsToJSONTyped,
|
|
22
22
|
} from './ItemPermissions';
|
|
23
|
+
import type { LastRunSummary } from './LastRunSummary';
|
|
24
|
+
import {
|
|
25
|
+
LastRunSummaryFromJSON,
|
|
26
|
+
LastRunSummaryFromJSONTyped,
|
|
27
|
+
LastRunSummaryToJSON,
|
|
28
|
+
LastRunSummaryToJSONTyped,
|
|
29
|
+
} from './LastRunSummary';
|
|
23
30
|
import type { PathPartApprovalState } from './PathPartApprovalState';
|
|
24
31
|
import {
|
|
25
32
|
PathPartApprovalStateFromJSON,
|
|
@@ -149,6 +156,18 @@ export interface WorkflowDefinitionResponse {
|
|
|
149
156
|
* @memberof WorkflowDefinitionResponse
|
|
150
157
|
*/
|
|
151
158
|
copyCount?: number;
|
|
159
|
+
/**
|
|
160
|
+
* The definition's most recent run, or null if never run.
|
|
161
|
+
* @type {LastRunSummary}
|
|
162
|
+
* @memberof WorkflowDefinitionResponse
|
|
163
|
+
*/
|
|
164
|
+
lastRun?: LastRunSummary | null;
|
|
165
|
+
/**
|
|
166
|
+
* Number of this definition's runs awaiting approval.
|
|
167
|
+
* @type {number}
|
|
168
|
+
* @memberof WorkflowDefinitionResponse
|
|
169
|
+
*/
|
|
170
|
+
pendingApprovalCount?: number;
|
|
152
171
|
/**
|
|
153
172
|
*
|
|
154
173
|
* @type {PathPartApprovalState}
|
|
@@ -258,6 +277,8 @@ export function WorkflowDefinitionResponseFromJSONTyped(json: any, ignoreDiscrim
|
|
|
258
277
|
'commonFilePathPartIds': json['common_file_path_part_ids'] == null ? undefined : json['common_file_path_part_ids'],
|
|
259
278
|
'createdFromId': json['created_from_id'],
|
|
260
279
|
'copyCount': json['copy_count'] == null ? undefined : json['copy_count'],
|
|
280
|
+
'lastRun': json['last_run'] == null ? undefined : LastRunSummaryFromJSON(json['last_run']),
|
|
281
|
+
'pendingApprovalCount': json['pending_approval_count'] == null ? undefined : json['pending_approval_count'],
|
|
261
282
|
'approvalState': PathPartApprovalStateFromJSON(json['approval_state']),
|
|
262
283
|
'owner': json['owner'] == null ? undefined : UserInfoFromJSON(json['owner']),
|
|
263
284
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -294,6 +315,8 @@ export function WorkflowDefinitionResponseToJSONTyped(value?: WorkflowDefinition
|
|
|
294
315
|
'common_file_path_part_ids': value['commonFilePathPartIds'],
|
|
295
316
|
'created_from_id': value['createdFromId'],
|
|
296
317
|
'copy_count': value['copyCount'],
|
|
318
|
+
'last_run': LastRunSummaryToJSON(value['lastRun']),
|
|
319
|
+
'pending_approval_count': value['pendingApprovalCount'],
|
|
297
320
|
'approval_state': PathPartApprovalStateToJSON(value['approvalState']),
|
|
298
321
|
'owner': UserInfoToJSON(value['owner']),
|
|
299
322
|
'created_at': value['createdAt'].toISOString(),
|
package/src/models/index.ts
CHANGED
|
@@ -174,6 +174,7 @@ export * from './KbMetric';
|
|
|
174
174
|
export * from './KbSummaryResponse';
|
|
175
175
|
export * from './KbTimeseriesResponse';
|
|
176
176
|
export * from './LabeledSeries';
|
|
177
|
+
export * from './LastRunSummary';
|
|
177
178
|
export * from './LeaderboardEntry';
|
|
178
179
|
export * from './LineageEdgeResponse';
|
|
179
180
|
export * from './LineageGraphResponse';
|