attlaz-client 1.9.70 → 1.9.71
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 +4 -4
- package/dist/Model/Deployment/CodeSourceRunStrategy.d.ts +9 -0
- package/dist/Model/Deployment/CodeSourceRunStrategy.js +18 -0
- package/dist/Service/CodeSourceStrategiesEndpoint.d.ts +8 -0
- package/dist/Service/CodeSourceStrategiesEndpoint.js +21 -0
- package/package.json +1 -1
- package/dist/Service/CodeSourceBuildStrategyEndpoint.d.ts +0 -6
- package/dist/Service/CodeSourceBuildStrategyEndpoint.js +0 -14
package/dist/Client.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ import { TriggerEndpoint } from './Service/TriggerEndpoint';
|
|
|
26
26
|
import { PlatformEndpoint } from './Service/PlatformEndpoint';
|
|
27
27
|
import { FlowRunStatsEndpoint } from './Service/FlowRunStatsEndpoint';
|
|
28
28
|
import { FirewallEndpoint } from './Service/FirewallEndpoint';
|
|
29
|
-
import {
|
|
29
|
+
import { CodeSourceStrategiesEndpoint } from './Service/CodeSourceStrategiesEndpoint';
|
|
30
30
|
import { SearchEndpoint } from './Service/SearchEndpoint';
|
|
31
31
|
export declare class Client {
|
|
32
32
|
private readonly apiEndpoint;
|
|
@@ -72,7 +72,7 @@ export declare class Client {
|
|
|
72
72
|
getWorkerConfigEndpoint(): WorkerConfigEndpoint;
|
|
73
73
|
getQueueEndpoint(): QueueEndpoint;
|
|
74
74
|
getHealthAlertEndpoint(): HealthAlertEndpoint;
|
|
75
|
-
|
|
75
|
+
getCodeSourceStrategiesEndpoint(): CodeSourceStrategiesEndpoint;
|
|
76
76
|
getSearchEndpoint(): SearchEndpoint;
|
|
77
77
|
getFirewallEndpoint(): FirewallEndpoint;
|
|
78
78
|
private getEndpoint;
|
package/dist/Client.js
CHANGED
|
@@ -30,7 +30,7 @@ const PlatformEndpoint_1 = require("./Service/PlatformEndpoint");
|
|
|
30
30
|
const FlowRunStatsEndpoint_1 = require("./Service/FlowRunStatsEndpoint");
|
|
31
31
|
const FirewallEndpoint_1 = require("./Service/FirewallEndpoint");
|
|
32
32
|
const version_1 = require("./version");
|
|
33
|
-
const
|
|
33
|
+
const CodeSourceStrategiesEndpoint_1 = require("./Service/CodeSourceStrategiesEndpoint");
|
|
34
34
|
const SearchEndpoint_1 = require("./Service/SearchEndpoint");
|
|
35
35
|
class Client {
|
|
36
36
|
constructor(apiEndpoint, clientId, clientSecret) {
|
|
@@ -63,7 +63,7 @@ class Client {
|
|
|
63
63
|
HealthAlertEndpoint: HealthAlertEndpoint_1.HealthAlertEndpoint,
|
|
64
64
|
PlatformEndpoint: PlatformEndpoint_1.PlatformEndpoint,
|
|
65
65
|
FlowRunStatsEndpoint: FlowRunStatsEndpoint_1.FlowRunStatsEndpoint,
|
|
66
|
-
|
|
66
|
+
CodeSourceStrategiesEndpoint: CodeSourceStrategiesEndpoint_1.CodeSourceStrategiesEndpoint,
|
|
67
67
|
FirewallEndpoint: FirewallEndpoint_1.FirewallEndpoint,
|
|
68
68
|
SearchEndpoint: SearchEndpoint_1.SearchEndpoint
|
|
69
69
|
};
|
|
@@ -200,8 +200,8 @@ class Client {
|
|
|
200
200
|
getHealthAlertEndpoint() {
|
|
201
201
|
return this.getEndpoint('healt-alert', this.Store.HealthAlertEndpoint);
|
|
202
202
|
}
|
|
203
|
-
|
|
204
|
-
return this.getEndpoint('code-source-
|
|
203
|
+
getCodeSourceStrategiesEndpoint() {
|
|
204
|
+
return this.getEndpoint('code-source-strategies', this.Store.CodeSourceStrategiesEndpoint);
|
|
205
205
|
}
|
|
206
206
|
getSearchEndpoint() {
|
|
207
207
|
return this.getEndpoint('search', this.Store.SearchEndpoint);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StateAware } from '../StateAware';
|
|
2
|
+
import { State } from '../State';
|
|
3
|
+
export declare class CodeSourceRunStrategy implements StateAware {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
state: State;
|
|
8
|
+
static parse(raw: any): CodeSourceRunStrategy;
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CodeSourceRunStrategy = void 0;
|
|
4
|
+
const State_1 = require("../State");
|
|
5
|
+
class CodeSourceRunStrategy {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.state = State_1.State.Active;
|
|
8
|
+
}
|
|
9
|
+
static parse(raw) {
|
|
10
|
+
let codeDeployStrategy = new CodeSourceRunStrategy();
|
|
11
|
+
codeDeployStrategy.id = raw.id;
|
|
12
|
+
codeDeployStrategy.name = raw.name;
|
|
13
|
+
codeDeployStrategy.description = raw.description;
|
|
14
|
+
codeDeployStrategy.state = State_1.State.fromString(raw.state);
|
|
15
|
+
return codeDeployStrategy;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.CodeSourceRunStrategy = CodeSourceRunStrategy;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Endpoint } from './Endpoint';
|
|
2
|
+
import { CollectionResult } from '../Model/Result/CollectionResult';
|
|
3
|
+
import { CodeSourceBuildStrategy } from '../Model/Deployment/CodeSourceBuildStrategy';
|
|
4
|
+
import { CodeSourceRunStrategy } from '../Model/Deployment/CodeSourceRunStrategy';
|
|
5
|
+
export declare class CodeSourceStrategiesEndpoint extends Endpoint {
|
|
6
|
+
getAllDeployStrategies(workspaceId: string): Promise<CollectionResult<CodeSourceBuildStrategy>>;
|
|
7
|
+
getAllRunStrategies(workspaceId: string): Promise<CollectionResult<CodeSourceRunStrategy>>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CodeSourceStrategiesEndpoint = void 0;
|
|
4
|
+
const Endpoint_1 = require("./Endpoint");
|
|
5
|
+
const CodeSourceBuildStrategy_1 = require("../Model/Deployment/CodeSourceBuildStrategy");
|
|
6
|
+
const CodeSourceRunStrategy_1 = require("../Model/Deployment/CodeSourceRunStrategy");
|
|
7
|
+
class CodeSourceStrategiesEndpoint extends Endpoint_1.Endpoint {
|
|
8
|
+
async getAllDeployStrategies(workspaceId) {
|
|
9
|
+
let cmd = '/workspaces/' + workspaceId + '/codesources/deploystrategies';
|
|
10
|
+
const result = await this.requestCollection(cmd, CodeSourceBuildStrategy_1.CodeSourceBuildStrategy.parse);
|
|
11
|
+
return result;
|
|
12
|
+
return result;
|
|
13
|
+
}
|
|
14
|
+
async getAllRunStrategies(workspaceId) {
|
|
15
|
+
let cmd = '/workspaces/' + workspaceId + '/codesources/runstrategies';
|
|
16
|
+
const result = await this.requestCollection(cmd, CodeSourceRunStrategy_1.CodeSourceRunStrategy.parse);
|
|
17
|
+
return result;
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.CodeSourceStrategiesEndpoint = CodeSourceStrategiesEndpoint;
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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, CodeSourceBuildStrategy_1.CodeSourceBuildStrategy.parse);
|
|
10
|
-
return result;
|
|
11
|
-
return result;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.CodeSourceBuildStrategyEndpoint = CodeSourceBuildStrategyEndpoint;
|