attlaz-client 1.8.21 → 1.8.22

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.
@@ -1,5 +1,5 @@
1
1
  export declare class CodeSource {
2
- id: number;
2
+ id: string;
3
3
  codeSourceAccountId: string;
4
4
  repository: string;
5
5
  branch: string;
@@ -1,5 +1,5 @@
1
1
  export declare class CodeSourceAccount {
2
- id: number;
2
+ id: string;
3
3
  key: string;
4
4
  name: string;
5
5
  user: string;
@@ -2,6 +2,6 @@ import { Endpoint } from './Endpoint';
2
2
  import { ProjectDeploy } from '../Model/Project/ProjectDeploy';
3
3
  export declare class ProjectDeployEndpoint extends Endpoint {
4
4
  getById(deployId: number): Promise<ProjectDeploy>;
5
- getByProjectEnvironment(projectEnvironmentId: string): Promise<ProjectDeploy[]>;
6
- requestDeploy(projectEnvironmentId: string): Promise<any>;
5
+ getByProjectEnvironment(codeSourceId: string): Promise<ProjectDeploy[]>;
6
+ requestDeploy(codeSourceId: string): Promise<any>;
7
7
  }
@@ -20,9 +20,9 @@ class ProjectDeployEndpoint extends Endpoint_1.Endpoint {
20
20
  throw error;
21
21
  }
22
22
  }
23
- async getByProjectEnvironment(projectEnvironmentId) {
23
+ async getByProjectEnvironment(codeSourceId) {
24
24
  try {
25
- const rawProjectDeploys = await this.httpClient.request('/projectenvironments/' + projectEnvironmentId + '/deploys');
25
+ const rawProjectDeploys = await this.httpClient.request('/codesources/' + codeSourceId + '/deploys');
26
26
  let projectDeploys = [];
27
27
  for (let rawProjectDeploy of rawProjectDeploys) {
28
28
  projectDeploys.push(ProjectDeploy_1.ProjectDeploy.parse(rawProjectDeploy));
@@ -36,9 +36,9 @@ class ProjectDeployEndpoint extends Endpoint_1.Endpoint {
36
36
  throw error;
37
37
  }
38
38
  }
39
- async requestDeploy(projectEnvironmentId) {
39
+ async requestDeploy(codeSourceId) {
40
40
  try {
41
- const projectDeploy = await this.httpClient.request('/projectenvironments/' + projectEnvironmentId + '/deploys', {}, 'POST');
41
+ const projectDeploy = await this.httpClient.request('/codesources/' + codeSourceId + '/deploys', {}, 'POST');
42
42
  // TODO: parse deploy
43
43
  return projectDeploy;
44
44
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.8.21";
1
+ export declare const VERSION = "1.8.22";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "1.8.21";
4
+ exports.VERSION = "1.8.22";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.8.21",
3
+ "version": "1.8.22",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",