attlaz-client 1.9.39 → 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 +2 -2
- package/dist/Client.js +5 -3
- package/dist/Model/Deployment/{CodeDeployStrategy.d.ts → CodeSourceBuildStrategy.d.ts} +2 -2
- package/dist/Model/Deployment/{CodeDeployStrategy.js → CodeSourceBuildStrategy.js} +4 -4
- package/dist/Service/CodeSourceBuildStrategyEndpoint.d.ts +6 -0
- package/dist/Service/CodeSourceBuildStrategyEndpoint.js +14 -0
- package/package.json +1 -1
- package/dist/Service/CodeSourceDeployStrategyEndpoint.d.ts +0 -6
- package/dist/Service/CodeSourceDeployStrategyEndpoint.js +0 -14
package/dist/Client.d.ts
CHANGED
|
@@ -25,7 +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 {
|
|
28
|
+
import { CodeSourceBuildStrategyEndpoint } from './Service/CodeSourceBuildStrategyEndpoint';
|
|
29
29
|
export declare class Client {
|
|
30
30
|
private readonly apiEndpoint;
|
|
31
31
|
private readonly clientId;
|
|
@@ -70,6 +70,6 @@ export declare class Client {
|
|
|
70
70
|
getWorkerConfigEndpoint(): WorkerConfigEndpoint;
|
|
71
71
|
getQueueEndpoint(): QueueEndpoint;
|
|
72
72
|
getHealthAlertEndpoint(): HealthAlertEndpoint;
|
|
73
|
-
|
|
73
|
+
getCodeSourceBuildStrategyEndpoint(): CodeSourceBuildStrategyEndpoint;
|
|
74
74
|
private getEndpoint;
|
|
75
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);
|
|
@@ -194,8 +196,8 @@ class Client {
|
|
|
194
196
|
getHealthAlertEndpoint() {
|
|
195
197
|
return this.getEndpoint('healt-alert', this.Store.HealthAlertEndpoint);
|
|
196
198
|
}
|
|
197
|
-
|
|
198
|
-
return this.getEndpoint('code-source-deploy-strategy', this.Store.
|
|
199
|
+
getCodeSourceBuildStrategyEndpoint() {
|
|
200
|
+
return this.getEndpoint('code-source-deploy-strategy', this.Store.CodeSourceBuildStrategyEndpoint);
|
|
199
201
|
}
|
|
200
202
|
getEndpoint(key, className) {
|
|
201
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
|
|
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):
|
|
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.
|
|
3
|
+
exports.CodeSourceBuildStrategy = void 0;
|
|
4
4
|
const State_1 = require("../State");
|
|
5
|
-
class
|
|
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
|
|
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.
|
|
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 +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;
|