Skip to content
Snippets Groups Projects

Resolve "Add admin page for listing workflow executions"

9 files
+ 1543
320
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -41,11 +41,20 @@ export class WorkflowExecutionService {
@@ -41,11 +41,20 @@ export class WorkflowExecutionService {
* Get all workflow executions
* Get all workflow executions
* Get all workflow executions.
* Get all workflow executions.
*
*
* Permission `workflow_execution:list` required, if 'user_id' is the same as the current user,
* This endpoint enforces keyset pagination. To iterate over all workflow executions, follow the link provided in the
 
* `Link` header.
 
* A missing `Link` header indicates that you iterated over all workflow executions with the current filters.
 
*
 
* Permission `workflow_execution:list` required, if `executor_id` is the same as the current user,
* otherwise `workflow_execution:list_all` required.
* otherwise `workflow_execution:list_all` required.
* @param executorId Filter for workflow executions by a user. If none, Permission `workflow_execution:read_any` required.
* @param executorId Filter for workflow executions by a user. If none, Permission `workflow_execution:read_any` required.
* @param executionStatus Filter for status of workflow execution
* @param executionStatus Filter for status of workflow execution
* @param workflowVersionId Filter for workflow version
* @param workflowVersionId Filter for workflow version
 
* @param startAfter Filter for workflow executions that started after this UNIX timestamp
 
* @param startBefore Filter for workflow executions that started before this UNIX timestamp
 
* @param idAfter Id of the item to start the query from. DO NOT SET MANUALLY.
 
* @param perPage Number of items to list per page
 
* @param sort Sort order of items with creation time
* @returns WorkflowExecutionOut Successful Response
* @returns WorkflowExecutionOut Successful Response
* @throws ApiError
* @throws ApiError
*/
*/
@@ -53,6 +62,11 @@ export class WorkflowExecutionService {
@@ -53,6 +62,11 @@ export class WorkflowExecutionService {
executorId?: string,
executorId?: string,
executionStatus?: Array<WorkflowExecutionStatus>,
executionStatus?: Array<WorkflowExecutionStatus>,
workflowVersionId?: string,
workflowVersionId?: string,
 
startAfter?: number,
 
startBefore?: number,
 
idAfter?: string,
 
perPage: number = 20,
 
sort: 'asc' | 'desc' = 'desc',
): CancelablePromise<Array<WorkflowExecutionOut>> {
): CancelablePromise<Array<WorkflowExecutionOut>> {
return __request(OpenAPI, {
return __request(OpenAPI, {
method: 'GET',
method: 'GET',
@@ -61,6 +75,11 @@ export class WorkflowExecutionService {
@@ -61,6 +75,11 @@ export class WorkflowExecutionService {
'executor_id': executorId,
'executor_id': executorId,
'execution_status': executionStatus,
'execution_status': executionStatus,
'workflow_version_id': workflowVersionId,
'workflow_version_id': workflowVersionId,
 
'start_after': startAfter,
 
'start_before': startBefore,
 
'id_after': idAfter,
 
'per_page': perPage,
 
'sort': sort,
},
},
errors: {
errors: {
400: `Error decoding JWT Token`,
400: `Error decoding JWT Token`,
Loading