Skip to content

Commit

Permalink
feat: Add Protect and Unprotect functions to Visualization Workunit C…
Browse files Browse the repository at this point in the history
…lass

Signed-off-by: David de Hilster <[email protected]>
  • Loading branch information
dehilsterlexis committed Dec 15, 2023
1 parent e61ff70 commit 520e1a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/comms/src/ecl/workunit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,14 @@ export class Workunit extends StateObject<UWorkunitState, IWorkunitState> implem
abort() {
return this.WUAction("Abort");
}

protect() {
return this.WUAction("Protect");
}

unprotect() {
return this.WUAction("Unprotect");
}

delete() {
return this.WUAction("Delete");
Expand Down
2 changes: 1 addition & 1 deletion packages/comms/src/services/wsWorkunits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,7 @@ export namespace WUQueryDetails {
}

export namespace WUAction {
export type Type = "SetToFailed" | "Pause" | "PauseNow" | "Resume" | "Abort" | "Delete" | "Restore" | "Deschedule" | "Reschedule";
export type Type = "SetToFailed" | "Pause" | "PauseNow" | "Resume" | "Abort" | "Delete" | "Restore" | "Deschedule" | "Reschedule" | "Protect" | "Unprotect";
export interface Request {
Wuids: string[];
WUActionType: Type;
Expand Down

0 comments on commit 520e1a1

Please sign in to comment.