attlaz-client 1.4.29 → 1.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Client.d.ts
CHANGED
|
@@ -38,6 +38,9 @@ export declare class Client {
|
|
|
38
38
|
getToken(): OAuthClientToken;
|
|
39
39
|
setToken(token: OAuthClientToken): void;
|
|
40
40
|
unsetAccessToken(): void;
|
|
41
|
+
getApiInformation(): Promise<{
|
|
42
|
+
version: string;
|
|
43
|
+
}>;
|
|
41
44
|
getAdapterEndpoint(): AdapterEndpoint;
|
|
42
45
|
getProjectEndpoint(): ProjectEndpoint;
|
|
43
46
|
getProjectEnvironmentEndpoint(): ProjectEnvironmentEndpoint;
|
package/dist/Client.js
CHANGED
|
@@ -96,6 +96,10 @@ class Client {
|
|
|
96
96
|
unsetAccessToken() {
|
|
97
97
|
this.httpClient.unsetToken();
|
|
98
98
|
}
|
|
99
|
+
async getApiInformation() {
|
|
100
|
+
const result = await this.httpClient.request('/system/health', null, 'GET', false);
|
|
101
|
+
return { version: result.version };
|
|
102
|
+
}
|
|
99
103
|
/* Endpoints */
|
|
100
104
|
getAdapterEndpoint() {
|
|
101
105
|
return this.getEndpoint('adapter', this.Store.AdapterEndpoint);
|
|
@@ -21,7 +21,7 @@ class StorageEndpoint extends Endpoint_1.Endpoint {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
async clearPool(projectEnvironmentId, storageType, poolKey) {
|
|
24
|
-
let cmd = '/projectenvironments/' + projectEnvironmentId + '/storage/' + storageType + '/
|
|
24
|
+
let cmd = '/projectenvironments/' + projectEnvironmentId + '/storage/' + storageType + '/' + poolKey;
|
|
25
25
|
try {
|
|
26
26
|
const result = await this.request(cmd, null, 'DELETE');
|
|
27
27
|
if (Utils_1.Utils.isNullOrUndefined(result)) {
|
|
@@ -6,7 +6,7 @@ import { TaskExecutionStatus } from '../Model/TaskExecutionStatus';
|
|
|
6
6
|
export declare class TaskExecutionEndpoint extends Endpoint {
|
|
7
7
|
getTaskExecutions(taskId: string): Promise<TaskExecution[]>;
|
|
8
8
|
getTaskExecutionSummaries(taskId: string, from?: Date, to?: Date, projectEnvironmentId?: string): Promise<TaskExecutionSummary[]>;
|
|
9
|
-
getTaskExecutionSummary(
|
|
9
|
+
getTaskExecutionSummary(taskExecutionId: string): Promise<TaskExecutionSummary>;
|
|
10
10
|
getTaskExecutionHistory(taskExecutionId: string): Promise<TaskExecutionHistory[]>;
|
|
11
11
|
updateTaskExecution(taskExecutionId: string, status: TaskExecutionStatus, time?: Date): Promise<TaskExecution>;
|
|
12
12
|
}
|
|
@@ -58,7 +58,7 @@ class TaskExecutionEndpoint extends Endpoint_1.Endpoint {
|
|
|
58
58
|
throw error;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
async getTaskExecutionSummary(
|
|
61
|
+
async getTaskExecutionSummary(taskExecutionId) {
|
|
62
62
|
try {
|
|
63
63
|
const rawTaskExecution = await this.httpClient.request('/taskexecutions/' + taskExecutionId + '/summaries');
|
|
64
64
|
if (Utils_1.Utils.isNullOrUndefined(rawTaskExecution)) {
|