attlaz-client 1.8.22 → 1.8.23
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/Model/Project/ProjectDeploy.d.ts +5 -1
- package/dist/Model/Project/ProjectDeploy.js +3 -1
- package/dist/Model/TaskExecution.d.ts +1 -1
- package/dist/Service/ProjectDeployEndpoint.d.ts +2 -2
- package/dist/Service/ProjectDeployEndpoint.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { ProjectDeployStatus } from './ProjectDeployStatus';
|
|
|
2
2
|
import { ProjectDeployCommit } from './ProjectDeployCommit';
|
|
3
3
|
export declare class ProjectDeploy {
|
|
4
4
|
id: string;
|
|
5
|
+
/** @deprecated **/
|
|
5
6
|
projectEnvironmentId: string;
|
|
6
7
|
userId: string;
|
|
7
8
|
requested: Date;
|
|
@@ -9,7 +10,10 @@ export declare class ProjectDeploy {
|
|
|
9
10
|
finished: Date;
|
|
10
11
|
status: ProjectDeployStatus;
|
|
11
12
|
bytes: number;
|
|
12
|
-
commit_hash: string;
|
|
13
13
|
commits: ProjectDeployCommit[];
|
|
14
|
+
commitHash: string;
|
|
15
|
+
errors: {
|
|
16
|
+
message: string;
|
|
17
|
+
}[] | null;
|
|
14
18
|
static parse(rawProjectDeploy: any): ProjectDeploy;
|
|
15
19
|
}
|
|
@@ -8,6 +8,7 @@ class ProjectDeploy {
|
|
|
8
8
|
constructor() {
|
|
9
9
|
this.status = ProjectDeployStatus_1.ProjectDeployStatus.Unknown;
|
|
10
10
|
this.commits = [];
|
|
11
|
+
this.errors = null;
|
|
11
12
|
}
|
|
12
13
|
static parse(rawProjectDeploy) {
|
|
13
14
|
const projectDeploy = new ProjectDeploy();
|
|
@@ -21,7 +22,7 @@ class ProjectDeploy {
|
|
|
21
22
|
if (!Utils_1.Utils.isNullOrUndefined(rawProjectDeploy.bytes)) {
|
|
22
23
|
projectDeploy.bytes = parseInt(rawProjectDeploy.bytes);
|
|
23
24
|
}
|
|
24
|
-
projectDeploy.
|
|
25
|
+
projectDeploy.commitHash = rawProjectDeploy.commit_hash;
|
|
25
26
|
const rawProjectDeployCommits = rawProjectDeploy.commits;
|
|
26
27
|
for (let rawProjectDeployCommit of rawProjectDeployCommits) {
|
|
27
28
|
let projectDeployCommit = new ProjectDeployCommit_1.ProjectDeployCommit();
|
|
@@ -32,6 +33,7 @@ class ProjectDeploy {
|
|
|
32
33
|
projectDeployCommit.commit_author_email = rawProjectDeployCommit.commit_author_email;
|
|
33
34
|
projectDeploy.commits.push(projectDeployCommit);
|
|
34
35
|
}
|
|
36
|
+
projectDeploy.errors = rawProjectDeploy.errors;
|
|
35
37
|
return projectDeploy;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
@@ -7,7 +7,7 @@ export declare class TaskExecution {
|
|
|
7
7
|
arguments: any;
|
|
8
8
|
projectEnvironmentId: string;
|
|
9
9
|
triggerId: string;
|
|
10
|
-
deployId:
|
|
10
|
+
deployId: string;
|
|
11
11
|
logLevelCount: Map<LogLevel, number>;
|
|
12
12
|
logsPurged: boolean;
|
|
13
13
|
static parse(rawTaskExecution: any): TaskExecution;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Endpoint } from './Endpoint';
|
|
2
2
|
import { ProjectDeploy } from '../Model/Project/ProjectDeploy';
|
|
3
3
|
export declare class ProjectDeployEndpoint extends Endpoint {
|
|
4
|
-
getById(deployId:
|
|
5
|
-
|
|
4
|
+
getById(deployId: string): Promise<ProjectDeploy>;
|
|
5
|
+
getByCodeSource(codeSourceId: string): Promise<ProjectDeploy[]>;
|
|
6
6
|
requestDeploy(codeSourceId: string): Promise<any>;
|
|
7
7
|
}
|
|
@@ -20,7 +20,7 @@ class ProjectDeployEndpoint extends Endpoint_1.Endpoint {
|
|
|
20
20
|
throw error;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
async
|
|
23
|
+
async getByCodeSource(codeSourceId) {
|
|
24
24
|
try {
|
|
25
25
|
const rawProjectDeploys = await this.httpClient.request('/codesources/' + codeSourceId + '/deploys');
|
|
26
26
|
let projectDeploys = [];
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.8.
|
|
1
|
+
export declare const VERSION = "1.8.23";
|
package/dist/version.js
CHANGED