attlaz-client 1.9.51 → 1.9.53

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,9 @@
1
1
  export declare class QueryString {
2
2
  private parameters;
3
3
  set(parameter: string, value: string | number | boolean | string[]): void;
4
+ getParameters(): {
5
+ parameter: string;
6
+ value: string | number | boolean | string[];
7
+ }[];
4
8
  build(): string;
5
9
  }
@@ -8,6 +8,9 @@ class QueryString {
8
8
  set(parameter, value) {
9
9
  this.parameters.push({ parameter, value });
10
10
  }
11
+ getParameters() {
12
+ return this.parameters;
13
+ }
11
14
  build() {
12
15
  const output = [];
13
16
  for (const parameter of this.parameters) {
@@ -3,10 +3,6 @@ export declare class CodeSourceAccount {
3
3
  key: string;
4
4
  name: string;
5
5
  userId: string;
6
- workspaceId: string;
7
6
  type: string;
8
- access_token: string;
9
- refresh_token: string;
10
- scopes: string;
11
7
  static parse(rawSourcesAccount: any): CodeSourceAccount;
12
8
  }
@@ -2,17 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CodeSourceAccount = void 0;
4
4
  class CodeSourceAccount {
5
+ // public access_token: string;
6
+ // public refresh_token: string;
7
+ // public scopes: string;
5
8
  static parse(rawSourcesAccount) {
6
9
  let sourcesAccount = new CodeSourceAccount();
7
10
  sourcesAccount.id = rawSourcesAccount.id;
8
11
  sourcesAccount.key = rawSourcesAccount.key;
9
12
  sourcesAccount.name = rawSourcesAccount.name;
10
13
  sourcesAccount.userId = rawSourcesAccount.user;
11
- sourcesAccount.workspaceId = rawSourcesAccount.workspace;
14
+ // sourcesAccount.workspaceId = rawSourcesAccount.workspace;
12
15
  sourcesAccount.type = rawSourcesAccount.type;
13
- sourcesAccount.access_token = rawSourcesAccount.access_token;
14
- sourcesAccount.refresh_token = rawSourcesAccount.refresh_token;
15
- sourcesAccount.scopes = rawSourcesAccount.scopes;
16
+ // sourcesAccount.access_token = rawSourcesAccount.access_token;
17
+ // sourcesAccount.refresh_token = rawSourcesAccount.refresh_token;
18
+ // sourcesAccount.scopes = rawSourcesAccount.scopes;
16
19
  return sourcesAccount;
17
20
  }
18
21
  }
@@ -9,7 +9,7 @@ class AdapterEndpoint extends Endpoint_1.Endpoint {
9
9
  async getAdapters() {
10
10
  try {
11
11
  let url = '/adapters';
12
- const result = await this.requestCollection(url, null, Adapter_1.Adapter.parse);
12
+ const result = await this.requestCollection(url, Adapter_1.Adapter.parse);
13
13
  return result;
14
14
  }
15
15
  catch (error) {
@@ -35,7 +35,7 @@ class AdapterEndpoint extends Endpoint_1.Endpoint {
35
35
  async getAdapterConfiguration(adapterId) {
36
36
  try {
37
37
  let url = '/adapters/' + adapterId + '/configuration';
38
- const result = await this.requestCollection(url, null, AdapterConfiguration_1.AdapterConfiguration.parse);
38
+ const result = await this.requestCollection(url, AdapterConfiguration_1.AdapterConfiguration.parse);
39
39
  return result;
40
40
  }
41
41
  catch (error) {
@@ -48,7 +48,7 @@ class AdapterEndpoint extends Endpoint_1.Endpoint {
48
48
  async getConnections(projectId) {
49
49
  try {
50
50
  let url = '/projects/' + projectId + '/connections';
51
- const result = await this.requestCollection(url, null, AdapterConnection_1.AdapterConnection.parse);
51
+ const result = await this.requestCollection(url, AdapterConnection_1.AdapterConnection.parse);
52
52
  return result;
53
53
  }
54
54
  catch (error) {
@@ -24,7 +24,7 @@ class ChannelEndpoint extends Endpoint_1.Endpoint {
24
24
  }
25
25
  async getByWorkspace(workspaceId) {
26
26
  try {
27
- const result = await this.requestCollection('/workspaces/' + workspaceId + '/channels', null, Channel_1.Channel.parse);
27
+ const result = await this.requestCollection('/workspaces/' + workspaceId + '/channels', Channel_1.Channel.parse);
28
28
  return result;
29
29
  }
30
30
  catch (ex) {
@@ -36,7 +36,7 @@ class ChannelEndpoint extends Endpoint_1.Endpoint {
36
36
  }
37
37
  async getByOwner() {
38
38
  try {
39
- const result = await this.requestCollection('/channels', null, Channel_1.Channel.parse);
39
+ const result = await this.requestCollection('/channels', Channel_1.Channel.parse);
40
40
  return result;
41
41
  }
42
42
  catch (ex) {
@@ -48,7 +48,7 @@ class ChannelEndpoint extends Endpoint_1.Endpoint {
48
48
  }
49
49
  async getMessages(channelId) {
50
50
  try {
51
- const result = await this.requestCollection('/channels/' + channelId + '/messages', null, ChannelHistory_1.ChannelHistory.parse);
51
+ const result = await this.requestCollection('/channels/' + channelId + '/messages', ChannelHistory_1.ChannelHistory.parse);
52
52
  return result;
53
53
  // const data: ChannelHistory[] = [];
54
54
  //
@@ -6,7 +6,7 @@ const CodeSourceBuildStrategy_1 = require("../Model/Deployment/CodeSourceBuildSt
6
6
  class CodeSourceBuildStrategyEndpoint extends Endpoint_1.Endpoint {
7
7
  async getAll(workspaceId) {
8
8
  let cmd = '/workspaces/' + workspaceId + '/codesourcedeploystrategies';
9
- const result = await this.requestCollection(cmd, null, CodeSourceBuildStrategy_1.CodeSourceBuildStrategy.parse);
9
+ const result = await this.requestCollection(cmd, CodeSourceBuildStrategy_1.CodeSourceBuildStrategy.parse);
10
10
  return result;
11
11
  return result;
12
12
  }
@@ -11,7 +11,7 @@ class ConfigEndpoint extends Endpoint_1.Endpoint {
11
11
  if (!Utils_1.Utils.isNullOrUndefined(projectEnvironmentId)) {
12
12
  parameters = { environment: projectEnvironmentId };
13
13
  }
14
- const result = await this.requestCollection('/flows/' + flowId + '/configvalues', parameters, Config_1.Config.parse);
14
+ const result = await this.requestCollection('/flows/' + flowId + '/configvalues', Config_1.Config.parse, parameters);
15
15
  return result;
16
16
  }
17
17
  catch (e) {
@@ -23,7 +23,7 @@ class ConfigEndpoint extends Endpoint_1.Endpoint {
23
23
  }
24
24
  async getByProjectEnvironment(projectEnvironmentId = null) {
25
25
  try {
26
- const result = await this.requestCollection('/projectenvironments/' + projectEnvironmentId + '/configvalues', null, Config_1.Config.parse);
26
+ const result = await this.requestCollection('/projectenvironments/' + projectEnvironmentId + '/configvalues', Config_1.Config.parse);
27
27
  return result;
28
28
  }
29
29
  catch (e) {
@@ -36,7 +36,7 @@ class ConfigEndpoint extends Endpoint_1.Endpoint {
36
36
  async saveConfigs(projectId, configs) {
37
37
  try {
38
38
  let url = '/configvalues';
39
- const result = await this.requestCollection(url, configs, Config_1.Config.parse, 'POST');
39
+ const result = await this.requestCollection(url, Config_1.Config.parse, configs, 'POST');
40
40
  return result;
41
41
  }
42
42
  catch (e) {
@@ -9,7 +9,7 @@ export declare abstract class Endpoint {
9
9
  constructor(httpClient: OAuthClient);
10
10
  private formatParameters;
11
11
  private formatKey;
12
- requestCollection<T>(action: string, parameters: Parameters | undefined, parser: (input: any) => T, method?: string, signWithOauthToken?: boolean): Promise<CollectionResult<T>>;
12
+ requestCollection<T>(action: string, parser: (input: any) => T, parameters?: Parameters, method?: string, signWithOauthToken?: boolean): Promise<CollectionResult<T>>;
13
13
  requestObject<T>(action: string, parameters: Parameters | undefined, parser: (input: any) => T, method?: string, signWithOauthToken?: boolean): Promise<ObjectResult<T>>;
14
14
  parseCollection<T>(rawData: object[], parser: (input: any) => T): T[];
15
15
  private parseObject;
@@ -47,6 +47,9 @@ class Endpoint {
47
47
  data instanceof LogStreamId_1.LogStreamId) {
48
48
  return this.formatParameters(data.jsonSerialize());
49
49
  }
50
+ if (data instanceof QueryString_1.QueryString) {
51
+ return data.build();
52
+ }
50
53
  const result = {};
51
54
  for (const [key, value] of Object.entries(data)) {
52
55
  const formattedKey = this.formatKey(key);
@@ -64,7 +67,7 @@ class Endpoint {
64
67
  }
65
68
  return formattedKey;
66
69
  }
67
- async requestCollection(action, parameters = null, parser, method = 'GET', signWithOauthToken = true) {
70
+ async requestCollection(action, parser, parameters = null, method = 'GET', signWithOauthToken = true) {
68
71
  parameters = this.formatParameters(parameters);
69
72
  const requestResponse = await this.httpClient.request(action, parameters, method, signWithOauthToken);
70
73
  const result = new CollectionResult_1.CollectionResult();
@@ -10,7 +10,7 @@ class FlowEndpoint extends Endpoint_1.Endpoint {
10
10
  async getByProject(projectId) {
11
11
  try {
12
12
  let url = '/projects/' + projectId + '/flows';
13
- const result = await this.requestCollection(url, null, Flow_1.Flow.parse);
13
+ const result = await this.requestCollection(url, Flow_1.Flow.parse);
14
14
  return result;
15
15
  }
16
16
  catch (error) {
@@ -40,7 +40,7 @@ class FlowEndpoint extends Endpoint_1.Endpoint {
40
40
  if (!Utils_1.Utils.isNullOrUndefined(projectEnvironmentId)) {
41
41
  parameters = { environment: projectEnvironmentId };
42
42
  }
43
- const result = await this.requestCollection('projects/' + projectId + '/flowsummaries', parameters, FlowSummary_1.FlowSummary.parse);
43
+ const result = await this.requestCollection('projects/' + projectId + '/flowsummaries', FlowSummary_1.FlowSummary.parse, parameters);
44
44
  return result;
45
45
  //
46
46
  // }).catch((reason: any) => {
@@ -10,7 +10,7 @@ const FlowRunHistory_1 = require("../Model/Flow/FlowRunHistory");
10
10
  const QueryString_1 = require("../Http/Data/QueryString");
11
11
  class FlowRunEndpoint extends Endpoint_1.Endpoint {
12
12
  async getFlowRuns(flowId) {
13
- const result = await this.requestCollection('/flows/' + flowId + '/runs', null, FlowRun_1.FlowRun.parse);
13
+ const result = await this.requestCollection('/flows/' + flowId + '/runs', FlowRun_1.FlowRun.parse);
14
14
  return result;
15
15
  }
16
16
  async getFlowRunSummaries(flowId, flowRunStatuses = null, pagination = null, projectEnvironmentId = null) {
@@ -41,7 +41,7 @@ class FlowRunEndpoint extends Endpoint_1.Endpoint {
41
41
  // params.statuses = flowRunStatuses;
42
42
  // }
43
43
  const params = queryString.build();
44
- const result = await this.requestCollection('/flows/' + flowId + '/runsummaries', queryString, FlowRunSummary_1.FlowRunSummary.parse);
44
+ const result = await this.requestCollection('/flows/' + flowId + '/runsummaries' + queryString.build(), FlowRunSummary_1.FlowRunSummary.parse);
45
45
  return result;
46
46
  }
47
47
  catch (error) {
@@ -67,7 +67,7 @@ class FlowRunEndpoint extends Endpoint_1.Endpoint {
67
67
  }
68
68
  }
69
69
  async getFlowRunHistory(flowRunId) {
70
- const result = await this.requestCollection('/flowruns/' + flowRunId + '/history', null, FlowRunHistory_1.FlowRunHistory.parse);
70
+ const result = await this.requestCollection('/flowruns/' + flowRunId + '/history', FlowRunHistory_1.FlowRunHistory.parse);
71
71
  return result;
72
72
  }
73
73
  async updateFlowRun(flowRunId, status, time = null) {
@@ -7,7 +7,7 @@ class HealthAlertEndpoint extends Endpoint_1.Endpoint {
7
7
  async getLatestByProjectEnvironment(projectEnvironmentId) {
8
8
  try {
9
9
  let url = '/projectenvironments/' + projectEnvironmentId + '/health';
10
- const result = await this.requestCollection(url, null, HealthAlert_1.HealthAlert.parse);
10
+ const result = await this.requestCollection(url, HealthAlert_1.HealthAlert.parse);
11
11
  return result;
12
12
  }
13
13
  catch (error) {
@@ -40,13 +40,13 @@ class LogEndpoint extends Endpoint_1.Endpoint {
40
40
  arrQuery.push('tags=' + strTags);
41
41
  }
42
42
  let cmd = '/logstreams/' + Utils_1.Utils.base64encode(logQuery.logStreamId.id) + '/logs/?' + arrQuery.join('&');
43
- const result = await this.requestCollection(cmd, null, Log_1.Log.parse);
43
+ const result = await this.requestCollection(cmd, Log_1.Log.parse);
44
44
  return result;
45
45
  }
46
46
  async getCursoredLogEntries(logStreamId, pagination) {
47
47
  const queryString = this.buildQuery(pagination);
48
48
  let cmd = '/logstreams/' + Utils_1.Utils.base64encode(logStreamId.id) + '/logs/?' + queryString.build();
49
- const result = await this.requestCollection(cmd, null, Log_1.Log.parse);
49
+ const result = await this.requestCollection(cmd, Log_1.Log.parse);
50
50
  return result;
51
51
  }
52
52
  async save(log) {
@@ -125,7 +125,7 @@ class LogEndpoint extends Endpoint_1.Endpoint {
125
125
  const parser = (raw) => {
126
126
  return new LogStream_1.LogStream(new LogStreamId_1.LogStreamId(raw['id']), raw['name']);
127
127
  };
128
- const result = await this.requestCollection('projects/' + projectId + '/logstreams', null, parser);
128
+ const result = await this.requestCollection('projects/' + projectId + '/logstreams', parser);
129
129
  return result;
130
130
  }
131
131
  }
@@ -5,7 +5,7 @@ const Endpoint_1 = require("./Endpoint");
5
5
  const Notification_1 = require("../Model/Notification");
6
6
  class NotificationsEndpoint extends Endpoint_1.Endpoint {
7
7
  async getAll(unacknowledgedOnly = false) {
8
- const result = await this.requestCollection('/notifications?unacknowledgedOnly=' + unacknowledgedOnly, null, Notification_1.Notification.parse);
8
+ const result = await this.requestCollection('/notifications?unacknowledgedOnly=' + unacknowledgedOnly, Notification_1.Notification.parse);
9
9
  return result;
10
10
  }
11
11
  async save(notification) {
@@ -7,12 +7,12 @@ const PlatformImage_1 = require("../Model/Worker/PlatformImage");
7
7
  class PlatformEndpoint extends Endpoint_1.Endpoint {
8
8
  async getAll(workspaceId) {
9
9
  let cmd = '/workspaces/' + workspaceId + '/platforms';
10
- const result = await this.requestCollection(cmd, null, Platform_1.Platform.parse);
10
+ const result = await this.requestCollection(cmd, Platform_1.Platform.parse);
11
11
  return result;
12
12
  }
13
13
  async getPlatformImages(workspaceId, platformId) {
14
14
  let cmd = '/workspaces/' + workspaceId + '/platforms/' + platformId + '/images';
15
- const result = await this.requestCollection(cmd, null, PlatformImage_1.PlatformImage.parse);
15
+ const result = await this.requestCollection(cmd, PlatformImage_1.PlatformImage.parse);
16
16
  return result;
17
17
  }
18
18
  }
@@ -5,7 +5,7 @@ const Endpoint_1 = require("./Endpoint");
5
5
  const PlatformLanguage_1 = require("../Model/Project/PlatformLanguage");
6
6
  class PlatformLanguageEndpoint extends Endpoint_1.Endpoint {
7
7
  async getAll() {
8
- const result = await this.requestCollection('/platformlanguages', null, PlatformLanguage_1.PlatformLanguage.parse);
8
+ const result = await this.requestCollection('/platformlanguages', PlatformLanguage_1.PlatformLanguage.parse);
9
9
  return result;
10
10
  }
11
11
  }
@@ -30,7 +30,7 @@ class ProjectDeployEndpoint extends Endpoint_1.Endpoint {
30
30
  }
31
31
  async getByCodeSource(codeSourceId) {
32
32
  try {
33
- const rawProjectDeploys = await this.requestCollection('/codesources/' + codeSourceId + '/deploys', null, ProjectDeploy_1.ProjectDeploy.parse);
33
+ const rawProjectDeploys = await this.requestCollection('/codesources/' + codeSourceId + '/deploys', ProjectDeploy_1.ProjectDeploy.parse);
34
34
  return rawProjectDeploys;
35
35
  }
36
36
  catch (error) {
@@ -6,7 +6,7 @@ const Project_1 = require("../Model/Project/Project");
6
6
  class ProjectEndpoint extends Endpoint_1.Endpoint {
7
7
  async getAll() {
8
8
  try {
9
- const result = await this.requestCollection('/projects', null, Project_1.Project.parse);
9
+ const result = await this.requestCollection('/projects', Project_1.Project.parse);
10
10
  return result;
11
11
  }
12
12
  catch (e) {
@@ -18,7 +18,7 @@ class ProjectEndpoint extends Endpoint_1.Endpoint {
18
18
  }
19
19
  async getByWorkspace(workspaceId) {
20
20
  try {
21
- const result = await this.requestCollection('workspaces/' + workspaceId + '/projects', null, Project_1.Project.parse);
21
+ const result = await this.requestCollection('workspaces/' + workspaceId + '/projects', Project_1.Project.parse);
22
22
  return result;
23
23
  }
24
24
  catch (e) {
@@ -7,7 +7,7 @@ const HttpClient_1 = require("../Http/HttpClient");
7
7
  class ProjectEnvironmentEndpoint extends Endpoint_1.Endpoint {
8
8
  async getByProject(id) {
9
9
  try {
10
- const result = await this.requestCollection('/projects/' + id + '/environments', null, ProjectEnvironment_1.ProjectEnvironment.parse);
10
+ const result = await this.requestCollection('/projects/' + id + '/environments', ProjectEnvironment_1.ProjectEnvironment.parse);
11
11
  return result;
12
12
  }
13
13
  catch (error) {
@@ -10,11 +10,11 @@ const SourcesAccountRepository_1 = require("../Model/Deployment/SourcesAccountRe
10
10
  const SourcesAccountRepositoryBranch_1 = require("../Model/Deployment/SourcesAccountRepositoryBranch");
11
11
  class SourcesAccountEndpoint extends Endpoint_1.Endpoint {
12
12
  async getAllCodeSources(workspaceId) {
13
- const result = await this.requestCollection('workspaces/' + workspaceId + '/codesources', null, CodeSource_1.CodeSource.parse);
13
+ const result = await this.requestCollection('workspaces/' + workspaceId + '/codesources', CodeSource_1.CodeSource.parse);
14
14
  return result;
15
15
  }
16
16
  async getAllCodeSourceAccounts(workspaceId) {
17
- const result = await this.requestCollection('workspaces/' + workspaceId + '/codesourceaccounts', null, CodeSourceAccount_1.CodeSourceAccount.parse);
17
+ const result = await this.requestCollection('workspaces/' + workspaceId + '/codesourceaccounts', CodeSourceAccount_1.CodeSourceAccount.parse);
18
18
  return result;
19
19
  }
20
20
  async getCodeSourceAccountById(id) {
@@ -53,12 +53,12 @@ class SourcesAccountEndpoint extends Endpoint_1.Endpoint {
53
53
  }
54
54
  }
55
55
  async getRepositories(codeSourceAccountId) {
56
- const rawSourcesAccountRepositories = await this.requestCollection('codesourceaccounts/' + codeSourceAccountId + '/repositories', null, SourcesAccountRepository_1.SourcesAccountRepository.parse);
56
+ const rawSourcesAccountRepositories = await this.requestCollection('codesourceaccounts/' + codeSourceAccountId + '/repositories', SourcesAccountRepository_1.SourcesAccountRepository.parse);
57
57
  return rawSourcesAccountRepositories;
58
58
  }
59
59
  async getRepositoryBranches(codeSourceAccountId, repositoryKey) {
60
60
  repositoryKey = Utils_1.Utils.base64encode(repositoryKey);
61
- const rawBranches = await this.requestCollection('codesourceaccounts/' + codeSourceAccountId + '/repositories/' + repositoryKey + '/branches', null, SourcesAccountRepositoryBranch_1.SourcesAccountRepositoryBranch.parse);
61
+ const rawBranches = await this.requestCollection('codesourceaccounts/' + codeSourceAccountId + '/repositories/' + repositoryKey + '/branches', SourcesAccountRepositoryBranch_1.SourcesAccountRepositoryBranch.parse);
62
62
  return rawBranches;
63
63
  }
64
64
  async saveCodeSource(codeSource) {
@@ -51,7 +51,7 @@ class StorageEndpoint extends Endpoint_1.Endpoint {
51
51
  async getPoolItemsInformation(projectEnvironmentId, storageType, poolKey) {
52
52
  let cmd = '/projectenvironments/' + projectEnvironmentId + '/storage/' + storageType + '/' + poolKey + '/items';
53
53
  try {
54
- const result = await this.requestCollection(cmd, null, StorageItemInformation_1.StorageItemInformation.parse, 'GET');
54
+ const result = await this.requestCollection(cmd, StorageItemInformation_1.StorageItemInformation.parse, null, 'GET');
55
55
  return result;
56
56
  }
57
57
  catch (ex) {
@@ -10,11 +10,11 @@ class SubscriberEndpoint extends Endpoint_1.Endpoint {
10
10
  if (!Utils_1.Utils.isNullOrUndefined(projectEnvironmentId)) {
11
11
  parameters = { environment: projectEnvironmentId };
12
12
  }
13
- const result = await this.requestCollection('/flows/' + flowId + '/subscribers', parameters, Subscriber_1.Subscriber.parseRaw);
13
+ const result = await this.requestCollection('/flows/' + flowId + '/subscribers', Subscriber_1.Subscriber.parseRaw, parameters);
14
14
  return result;
15
15
  }
16
16
  async getSubscribersByChannel(channelId) {
17
- const result = await this.requestCollection('/channels/' + channelId + '/subscribers', null, Subscriber_1.Subscriber.parseRaw);
17
+ const result = await this.requestCollection('/channels/' + channelId + '/subscribers', Subscriber_1.Subscriber.parseRaw);
18
18
  return result;
19
19
  }
20
20
  async save(subscriber) {
@@ -11,7 +11,7 @@ class TriggerEndpoint extends Endpoint_1.Endpoint {
11
11
  if (!Utils_1.Utils.isNullOrUndefined(projectEnvironmentId)) {
12
12
  parameters = { environment: projectEnvironmentId };
13
13
  }
14
- const rawTriggers = await this.requestCollection('/flows/' + flowId + '/triggers', parameters, Trigger_1.Trigger.parse);
14
+ const rawTriggers = await this.requestCollection('/flows/' + flowId + '/triggers', Trigger_1.Trigger.parse, parameters);
15
15
  return rawTriggers;
16
16
  }
17
17
  catch (error) {
@@ -76,7 +76,7 @@ class UserEndpoint extends Endpoint_1.Endpoint {
76
76
  }
77
77
  async getAuthProviders() {
78
78
  let cmd = '/users/auth/providers';
79
- const rawAuthProviders = await this.requestCollection(cmd, null, UserAuthProvider_1.UserAuthProvider.parse);
79
+ const rawAuthProviders = await this.requestCollection(cmd, UserAuthProvider_1.UserAuthProvider.parse);
80
80
  return rawAuthProviders;
81
81
  }
82
82
  async getPermissions() {
@@ -84,7 +84,7 @@ class UserEndpoint extends Endpoint_1.Endpoint {
84
84
  const parser = (raw) => {
85
85
  return { key: raw.key, allowed: raw.allowed };
86
86
  };
87
- const data = await this.requestCollection(cmd, null, parser);
87
+ const data = await this.requestCollection(cmd, parser);
88
88
  return data;
89
89
  }
90
90
  async update(user) {
@@ -7,7 +7,7 @@ class WorkerConfigEndpoint extends Endpoint_1.Endpoint {
7
7
  async getByProjectEnvironment(projectEnvironmentId) {
8
8
  try {
9
9
  let url = '/projectenvironments/' + projectEnvironmentId + '/workerconfiguration';
10
- const result = await this.requestCollection(url, null, WorkerConfig_1.WorkerConfig.parse);
10
+ const result = await this.requestCollection(url, WorkerConfig_1.WorkerConfig.parse);
11
11
  return result;
12
12
  }
13
13
  catch (error) {
@@ -6,7 +6,7 @@ const Workspace_1 = require("../Model/Workspace/Workspace");
6
6
  class WorkspaceEndpoint extends Endpoint_1.Endpoint {
7
7
  async getAll() {
8
8
  try {
9
- const result = await this.requestCollection('/workspaces', null, Workspace_1.Workspace.parse);
9
+ const result = await this.requestCollection('/workspaces', Workspace_1.Workspace.parse);
10
10
  return result;
11
11
  }
12
12
  catch (e) {
@@ -31,7 +31,7 @@ class WorkspaceMemberEndpoint extends Endpoint_1.Endpoint {
31
31
  }
32
32
  return member;
33
33
  };
34
- const result = await this.requestCollection(cmd, null, parser);
34
+ const result = await this.requestCollection(cmd, parser);
35
35
  return result;
36
36
  }
37
37
  async invite(workspaceId, invites) {
@@ -74,7 +74,7 @@ class WorkspaceMemberEndpoint extends Endpoint_1.Endpoint {
74
74
  async getWorkspaceMemberEvents(workspaceId, memberId) {
75
75
  try {
76
76
  const url = '/workspaces/' + workspaceId + '/members/' + memberId + '/events';
77
- const result = await this.requestCollection(url, null, WorkspaceMemberEndpoint.parse, 'GET');
77
+ const result = await this.requestCollection(url, WorkspaceMemberEndpoint.parse, null, 'GET');
78
78
  return result;
79
79
  }
80
80
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.9.51",
3
+ "version": "1.9.53",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",