This repository has been archived by the owner on Dec 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcloud-service.d.ts
80 lines (71 loc) · 1.86 KB
/
cloud-service.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
69
70
71
72
73
74
75
76
77
78
79
80
/**
* Describes the result of a server operation.
*/
interface IServerResultData extends ICloudOperationId {
/**
* All data printed to the stderr during server operation.
*/
stderr: string;
/**
* All data printed to the stdout during server operation.
*/
stdout: string;
}
/**
* Describes the status of the server operation.
*/
interface IServerStatus {
/**
* The status of the server operation.
*/
status: string;
}
/**
* Describes the result from server operation.
*/
interface IServerResult {
errors: string;
code: number;
stdout: string;
stderr: string;
data: any;
}
/**
* Describes the result from build server operation.
*/
interface ICloudOperationResult extends IServerResult {
/**
* Items produced after execution of server command. Could be empty.
* Naming is due to initial implementation that is related to other repos.
*/
buildItems: IServerItem[];
}
interface IServerItemBase {
disposition: string;
filename: string;
fullPath: string;
}
interface IServerItem extends IServerItemBase, IPlatform {
extension: string;
}
/**
* Defines common operations for server operation in the cloud.
*/
interface ICloudService extends NodeJS.EventEmitter {
/**
* Returns the path to the directory where the server request output may be found.
* @param {IOutputDirectoryOptions} options Options that are used to determine the build output directory.
* @returns {string} The build output directory.
*/
getServerOperationOutputDirectory(options: IOutputDirectoryOptions): string;
/**
* Sends message to the provided cloud operation.
* @param {ICloudOperationMessage} message The message which will be sent to the cloud operation.
*/
sendCloudMessage(message: ICloudOperationMessage<any>): Promise<void>;
}
interface ICloudOperationExecutionOptions {
silent: boolean;
parentCloudOperationId?: string;
hideBuildMachineMetadata?: boolean;
}