Skip to content

Commit 8feb909

Browse files
committed
feat(comms): expose the DFUCommand enum
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 0c1e3df commit 8feb909

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

packages/comms/src/services/fileSpray.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,32 @@ 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+
*/
43+
Monitor = "monitor",
44+
Copymerge = "copymerge",
45+
Supercopy = "supercopy",
46+
Publish = "publish",
47+
}
48+
2349
export interface UpdateDFUWorkunitEx extends UpdateDFUWorkunitMinusWU {
2450
wu?: Partial<UpdateDFUWorkunitWU>
2551
}

0 commit comments

Comments
 (0)