-
-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathcleanup-process-definitions.d.ts
68 lines (57 loc) · 1.19 KB
/
cleanup-process-definitions.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
interface ITimeout {
/**
* Timeout to execute the action.
*/
timeout?: number;
}
interface IFilePath {
/**
* Path to file/directory to be deleted or required
*/
filePath: string;
}
interface ISpawnCommandInfo extends ITimeout {
/**
* Executable to be started.
*/
command: string;
/**
* Arguments that will be passed to the child process
*/
args: string[];
/**
* Options to be passed to the child process
*/
options?: any;
}
interface IRequestInfo extends ITimeout {
url: string,
method: string,
body: any,
headers: any
}
interface ICleanupMessageBase {
/**
* Type of the message
*/
messageType: CleanupProcessMessage;
}
interface ISpawnCommandCleanupMessage extends ICleanupMessageBase {
/**
* Describes the command that must be executed
*/
commandInfo: ISpawnCommandInfo;
}
interface IRequestCleanupMessage extends ICleanupMessageBase {
/**
* Describes the request that must be executed
*/
requestInfo: IRequestInfo;
}
interface IFileCleanupMessage extends ICleanupMessageBase, IFilePath { }
interface IJSCommand extends ITimeout, IFilePath {
data: IDictionary<any>;
}
interface IJSCleanupMessage extends ICleanupMessageBase {
jsCommand: IJSCommand;
}