attlaz-client 1.8.20 → 1.8.21

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.
@@ -5,7 +5,7 @@ import { CodeSource } from '../Model/Deployment/CodeSource';
5
5
  export declare class SourcesAccountEndpoint extends Endpoint {
6
6
  getAllCodeSourceAccounts(): Promise<CodeSourceAccount[]>;
7
7
  getCodeSourceAccountById(id: string): Promise<CodeSourceAccount>;
8
- getCodeSourceById(id: string): Promise<CodeSource[]>;
8
+ getCodeSourceById(id: string): Promise<CodeSource>;
9
9
  getRepositories(codeSourceAccountId: string): Promise<SourcesAccountRepository[]>;
10
10
  getRepositoryBranches(codeSourceAccountId: string, repositoryKey: string): Promise<string[]>;
11
11
  }
@@ -25,12 +25,8 @@ class SourcesAccountEndpoint extends Endpoint_1.Endpoint {
25
25
  // return sourcesAccounts;
26
26
  }
27
27
  async getCodeSourceById(id) {
28
- const rawCodeSources = await this.httpClient.request('codesources/' + id);
29
- let codeSources = [];
30
- for (let rawCodeSource of rawCodeSources) {
31
- codeSources.push(CodeSource_1.CodeSource.parse(rawCodeSource));
32
- }
33
- return codeSources;
28
+ const rawCodeSource = await this.httpClient.request('codesources/' + id);
29
+ return CodeSource_1.CodeSource.parse(rawCodeSource);
34
30
  }
35
31
  async getRepositories(codeSourceAccountId) {
36
32
  const rawSourcesAccountRepositories = await this.httpClient.request('codesourceaccounts/' + codeSourceAccountId + '/repositories');
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.8.20";
1
+ export declare const VERSION = "1.8.21";
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.20";
4
+ exports.VERSION = "1.8.21";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.8.20",
3
+ "version": "1.8.21",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",