attlaz-client 1.9.34 → 1.9.35

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,6 +5,7 @@ import { CollectionResult } from '../Model/Result/CollectionResult';
5
5
  import { SourcesAccountRepository } from '../Model/Deployment/SourcesAccountRepository';
6
6
  import { SourcesAccountRepositoryBranch } from '../Model/Deployment/SourcesAccountRepositoryBranch';
7
7
  export declare class SourcesAccountEndpoint extends Endpoint {
8
+ getAllCodeSources(): Promise<CollectionResult<CodeSource>>;
8
9
  getAllCodeSourceAccounts(): Promise<CollectionResult<CodeSourceAccount>>;
9
10
  getCodeSourceAccountById(id: string): Promise<CodeSourceAccount | null>;
10
11
  getCodeSourceById(codeSourceId: string): Promise<CodeSource | null>;
@@ -9,6 +9,10 @@ const HttpClient_1 = require("../Http/HttpClient");
9
9
  const SourcesAccountRepository_1 = require("../Model/Deployment/SourcesAccountRepository");
10
10
  const SourcesAccountRepositoryBranch_1 = require("../Model/Deployment/SourcesAccountRepositoryBranch");
11
11
  class SourcesAccountEndpoint extends Endpoint_1.Endpoint {
12
+ async getAllCodeSources() {
13
+ const result = await this.requestCollection('codesources', null, CodeSource_1.CodeSource.parse);
14
+ return result;
15
+ }
12
16
  async getAllCodeSourceAccounts() {
13
17
  const result = await this.requestCollection('codesourceaccounts', null, CodeSourceAccount_1.CodeSourceAccount.parse);
14
18
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.9.34",
3
+ "version": "1.9.35",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",