feat(tasks): Enhance task management with identity handling and initial data loading
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import * as plugins from '../plugins.js';
|
||||
import * as data from '../data/index.js';
|
||||
import * as userInterfaces from '../data/user.js';
|
||||
|
||||
// Get all tasks
|
||||
export interface IRequest_Any_Cloudly_GetTasks
|
||||
@@ -8,7 +9,9 @@ export interface IRequest_Any_Cloudly_GetTasks
|
||||
IRequest_Any_Cloudly_GetTasks
|
||||
> {
|
||||
method: 'getTasks';
|
||||
request: {};
|
||||
request: {
|
||||
identity: userInterfaces.IIdentity;
|
||||
};
|
||||
response: {
|
||||
tasks: Array<{
|
||||
name: string;
|
||||
@@ -29,6 +32,7 @@ export interface IRequest_Any_Cloudly_GetTaskExecutions
|
||||
> {
|
||||
method: 'getTaskExecutions';
|
||||
request: {
|
||||
identity: userInterfaces.IIdentity;
|
||||
filter?: {
|
||||
taskName?: string;
|
||||
status?: string;
|
||||
@@ -49,6 +53,7 @@ export interface IRequest_Any_Cloudly_GetTaskExecutionById
|
||||
> {
|
||||
method: 'getTaskExecutionById';
|
||||
request: {
|
||||
identity: userInterfaces.IIdentity;
|
||||
executionId: string;
|
||||
};
|
||||
response: {
|
||||
@@ -64,6 +69,7 @@ export interface IRequest_Any_Cloudly_TriggerTask
|
||||
> {
|
||||
method: 'triggerTask';
|
||||
request: {
|
||||
identity: userInterfaces.IIdentity;
|
||||
taskName: string;
|
||||
userId?: string;
|
||||
};
|
||||
@@ -80,6 +86,7 @@ export interface IRequest_Any_Cloudly_CancelTask
|
||||
> {
|
||||
method: 'cancelTask';
|
||||
request: {
|
||||
identity: userInterfaces.IIdentity;
|
||||
executionId: string;
|
||||
};
|
||||
response: {
|
||||
|
Reference in New Issue
Block a user