attlaz-client 1.9.38 → 1.9.40

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/Client.d.ts CHANGED
@@ -25,6 +25,7 @@ import { LogEndpoint } from './Service/LogEndpoint';
25
25
  import { TriggerEndpoint } from './Service/TriggerEndpoint';
26
26
  import { PlatformEndpoint } from './Service/PlatformEndpoint';
27
27
  import { FlowRunStatsEndpoint } from './Service/FlowRunStatsEndpoint';
28
+ import { CodeSourceBuildStrategyEndpoint } from './Service/CodeSourceBuildStrategyEndpoint';
28
29
  export declare class Client {
29
30
  private readonly apiEndpoint;
30
31
  private readonly clientId;
@@ -69,5 +70,6 @@ export declare class Client {
69
70
  getWorkerConfigEndpoint(): WorkerConfigEndpoint;
70
71
  getQueueEndpoint(): QueueEndpoint;
71
72
  getHealthAlertEndpoint(): HealthAlertEndpoint;
73
+ getCodeSourceBuildStrategyEndpoint(): CodeSourceBuildStrategyEndpoint;
72
74
  private getEndpoint;
73
75
  }
package/dist/Client.js CHANGED
@@ -29,6 +29,7 @@ const TriggerEndpoint_1 = require("./Service/TriggerEndpoint");
29
29
  const PlatformEndpoint_1 = require("./Service/PlatformEndpoint");
30
30
  const FlowRunStatsEndpoint_1 = require("./Service/FlowRunStatsEndpoint");
31
31
  const version_1 = require("./version");
32
+ const CodeSourceBuildStrategyEndpoint_1 = require("./Service/CodeSourceBuildStrategyEndpoint");
32
33
  class Client {
33
34
  constructor(apiEndpoint, clientId, clientSecret) {
34
35
  this.apiEndpoint = apiEndpoint;
@@ -59,7 +60,8 @@ class Client {
59
60
  WorkerConfigEndpoint: WorkerConfigEndpoint_1.WorkerConfigEndpoint,
60
61
  HealthAlertEndpoint: HealthAlertEndpoint_1.HealthAlertEndpoint,
61
62
  PlatformEndpoint: PlatformEndpoint_1.PlatformEndpoint,
62
- FlowRunStatsEndpoint: FlowRunStatsEndpoint_1.FlowRunStatsEndpoint
63
+ FlowRunStatsEndpoint: FlowRunStatsEndpoint_1.FlowRunStatsEndpoint,
64
+ CodeSourceBuildStrategyEndpoint: CodeSourceBuildStrategyEndpoint_1.CodeSourceBuildStrategyEndpoint
63
65
  };
64
66
  const options = new OAuthClientOptions_1.OAuthClientOptions(apiEndpoint, clientId, clientSecret, this.getHeaders());
65
67
  this.httpClient = new OAuthClient_1.OAuthClient(options);
@@ -126,10 +128,10 @@ class Client {
126
128
  return this.getEndpoint('project', this.Store.ProjectEndpoint);
127
129
  }
128
130
  getProjectEnvironmentEndpoint() {
129
- return this.getEndpoint('projectenvironment', this.Store.ProjectEnvironmentEndpoint);
131
+ return this.getEndpoint('project-environment', this.Store.ProjectEnvironmentEndpoint);
130
132
  }
131
133
  getProjectDeployEndpoint() {
132
- return this.getEndpoint('projectdeploy', this.Store.ProjectDeployEndpoint);
134
+ return this.getEndpoint('project-deploy', this.Store.ProjectDeployEndpoint);
133
135
  }
134
136
  getChannelEndpoint() {
135
137
  return this.getEndpoint('channel', this.Store.ChannelEndpoint);
@@ -150,16 +152,16 @@ class Client {
150
152
  return this.getEndpoint('log', this.Store.LogEndpoint);
151
153
  }
152
154
  getFlowEndpoint() {
153
- return this.getEndpoint('task', this.Store.FlowEndpoint);
155
+ return this.getEndpoint('flow', this.Store.FlowEndpoint);
154
156
  }
155
157
  getFlowRunEndpoint() {
156
- return this.getEndpoint('flowrun', this.Store.FlowRunEndpoint);
158
+ return this.getEndpoint('flow-run', this.Store.FlowRunEndpoint);
157
159
  }
158
160
  getFlowRunRequestEndpoint() {
159
- return this.getEndpoint('flowrunrequest', this.Store.FlowRunRequestEndpoint);
161
+ return this.getEndpoint('flow-run-request', this.Store.FlowRunRequestEndpoint);
160
162
  }
161
163
  getTaskExecutionStatsEndpoint() {
162
- return this.getEndpoint('flowrunstats', this.Store.FlowRunStatsEndpoint);
164
+ return this.getEndpoint('flow-run-stats', this.Store.FlowRunStatsEndpoint);
163
165
  }
164
166
  getWorkspaceEndpoint() {
165
167
  return this.getEndpoint('workspaces', this.Store.WorkspaceEndpoint);
@@ -177,7 +179,7 @@ class Client {
177
179
  return this.getEndpoint('worker', this.Store.WorkerEndpoint);
178
180
  }
179
181
  getSourcesAccountEndpoint() {
180
- return this.getEndpoint('sourcesaccount', this.Store.SourcesAccountEndpoint);
182
+ return this.getEndpoint('sources-account', this.Store.SourcesAccountEndpoint);
181
183
  }
182
184
  getLanguageEndpoint() {
183
185
  return this.getEndpoint('language', this.Store.PlatformLanguageEndpoint);
@@ -186,13 +188,16 @@ class Client {
186
188
  return this.getEndpoint('storage', this.Store.StorageEndpoint);
187
189
  }
188
190
  getWorkerConfigEndpoint() {
189
- return this.getEndpoint('workerconfig', this.Store.WorkerConfigEndpoint);
191
+ return this.getEndpoint('worker-config', this.Store.WorkerConfigEndpoint);
190
192
  }
191
193
  getQueueEndpoint() {
192
194
  return this.getEndpoint('queue', this.Store.QueueEndpoint);
193
195
  }
194
196
  getHealthAlertEndpoint() {
195
- return this.getEndpoint('healtalert', this.Store.HealthAlertEndpoint);
197
+ return this.getEndpoint('healt-alert', this.Store.HealthAlertEndpoint);
198
+ }
199
+ getCodeSourceBuildStrategyEndpoint() {
200
+ return this.getEndpoint('code-source-deploy-strategy', this.Store.CodeSourceBuildStrategyEndpoint);
196
201
  }
197
202
  getEndpoint(key, className) {
198
203
  //const classNameString: string = className.name;
@@ -1,9 +1,9 @@
1
1
  import { StateAware } from '../StateAware';
2
2
  import { State } from '../State';
3
- export declare class CodeDeployStrategy implements StateAware {
3
+ export declare class CodeSourceBuildStrategy implements StateAware {
4
4
  id: string;
5
5
  name: string;
6
6
  description: string;
7
7
  state: State;
8
- static parse(raw: any): CodeDeployStrategy;
8
+ static parse(raw: any): CodeSourceBuildStrategy;
9
9
  }
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CodeDeployStrategy = void 0;
3
+ exports.CodeSourceBuildStrategy = void 0;
4
4
  const State_1 = require("../State");
5
- class CodeDeployStrategy {
5
+ class CodeSourceBuildStrategy {
6
6
  constructor() {
7
7
  this.state = State_1.State.Active;
8
8
  }
9
9
  static parse(raw) {
10
- let codeDeployStrategy = new CodeDeployStrategy();
10
+ let codeDeployStrategy = new CodeSourceBuildStrategy();
11
11
  codeDeployStrategy.id = raw.id;
12
12
  codeDeployStrategy.name = raw.name;
13
13
  codeDeployStrategy.description = raw.description;
@@ -15,4 +15,4 @@ class CodeDeployStrategy {
15
15
  return codeDeployStrategy;
16
16
  }
17
17
  }
18
- exports.CodeDeployStrategy = CodeDeployStrategy;
18
+ exports.CodeSourceBuildStrategy = CodeSourceBuildStrategy;
@@ -0,0 +1,6 @@
1
+ import { Endpoint } from './Endpoint';
2
+ import { CollectionResult } from '../Model/Result/CollectionResult';
3
+ import { CodeSourceBuildStrategy } from '../Model/Deployment/CodeSourceBuildStrategy';
4
+ export declare class CodeSourceBuildStrategyEndpoint extends Endpoint {
5
+ getAll(workspaceId: string): Promise<CollectionResult<CodeSourceBuildStrategy>>;
6
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeSourceBuildStrategyEndpoint = void 0;
4
+ const Endpoint_1 = require("./Endpoint");
5
+ const CodeSourceBuildStrategy_1 = require("../Model/Deployment/CodeSourceBuildStrategy");
6
+ class CodeSourceBuildStrategyEndpoint extends Endpoint_1.Endpoint {
7
+ async getAll(workspaceId) {
8
+ let cmd = '/workspaces/' + workspaceId + '/codesourcedeploystrategies';
9
+ const result = await this.requestCollection(cmd, null, CodeSourceBuildStrategy_1.CodeSourceBuildStrategy.parse);
10
+ return result;
11
+ return result;
12
+ }
13
+ }
14
+ exports.CodeSourceBuildStrategyEndpoint = CodeSourceBuildStrategyEndpoint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.9.38",
3
+ "version": "1.9.40",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -1,6 +0,0 @@
1
- import { Endpoint } from './Endpoint';
2
- import { CollectionResult } from '../Model/Result/CollectionResult';
3
- import { CodeDeployStrategy } from '../Model/Deployment/CodeDeployStrategy';
4
- export declare class CodeSourceDeployStrategyEndpoint extends Endpoint {
5
- getAll(workspaceId: string): Promise<CollectionResult<CodeDeployStrategy>>;
6
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CodeSourceDeployStrategyEndpoint = void 0;
4
- const Endpoint_1 = require("./Endpoint");
5
- const CodeDeployStrategy_1 = require("../Model/Deployment/CodeDeployStrategy");
6
- class CodeSourceDeployStrategyEndpoint extends Endpoint_1.Endpoint {
7
- async getAll(workspaceId) {
8
- let cmd = '/workspaces/' + workspaceId + '/codedeploystrategies';
9
- const result = await this.requestCollection(cmd, null, CodeDeployStrategy_1.CodeDeployStrategy.parse);
10
- return result;
11
- return result;
12
- }
13
- }
14
- exports.CodeSourceDeployStrategyEndpoint = CodeSourceDeployStrategyEndpoint;