Skip to content

Commit 4be0025

Browse files
authored
feat(comms): expose the DFUWUTypes enum (#4533)
export an enum for "types" of DFU WUs, which correspond to DFUcmdStruct in the HPCC codebase Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com>
1 parent 5160890 commit 4be0025

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

packages/comms/src/services/fileSpray.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,31 @@ export enum FileSprayStates {
2020
notfound = 999
2121
}
2222

23+
// defined in https://github.com/hpcc-systems/HPCC-Platform/blob/master/dali/dfu/dfuwu.cpp#L102-L121
24+
export enum DFUWUTypes {
25+
Copy = "copy",
26+
Remove = "remove",
27+
Move = "move",
28+
Rename = "rename",
29+
Replicate = "replicate",
30+
Import = "import",
31+
Export = "export",
32+
/*
33+
* These seem to not be valid with respect to filtering DFU WUs,
34+
* but leaving them here because they exist in the dfuwu.cpp struct
35+
*
36+
* Add = "add",
37+
* Transfer = "transfer",
38+
* Savemap = "savemap",
39+
* Addgroup = "addgroup",
40+
* Server = "server",
41+
*/
42+
Monitor = "monitor",
43+
Copymerge = "copymerge",
44+
Supercopy = "supercopy",
45+
Publish = "publish",
46+
}
47+
2348
export interface UpdateDFUWorkunitEx extends UpdateDFUWorkunitMinusWU {
2449
wu?: Partial<UpdateDFUWorkunitWU>
2550
}

0 commit comments

Comments
 (0)