attlaz-client 1.5.11 → 1.6.2
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 +4 -2
- package/dist/Client.js +9 -4
- package/dist/Model/Project/{Language.d.ts → PlatformLanguage.d.ts} +2 -2
- package/dist/Model/Project/{Language.js → PlatformLanguage.js} +5 -4
- package/dist/Model/Result/DataResult.d.ts +1 -1
- package/dist/Model/Result/DataResult.js +15 -5
- package/dist/Model/Result/DataResult.spec.d.ts +1 -0
- package/dist/Model/Result/DataResult.spec.js +6 -0
- package/dist/Model/Worker/Platform.d.ts +4 -5
- package/dist/Model/Worker/Platform.js +10 -10
- package/dist/Model/Worker/PlatformImage.d.ts +12 -0
- package/dist/Model/Worker/PlatformImage.js +22 -0
- package/dist/Service/PlatformEndpoint.d.ts +8 -0
- package/dist/Service/PlatformEndpoint.js +21 -0
- package/dist/Service/PlatformLanguageEndpoint.d.ts +6 -0
- package/dist/Service/PlatformLanguageEndpoint.js +14 -0
- package/dist/Service/WorkerEndpoint.d.ts +1 -3
- package/dist/Service/WorkerEndpoint.js +2 -12
- package/dist/Utils.d.ts +1 -0
- package/dist/Utils.js +7 -0
- package/dist/Utils.spec.js +13 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +13 -9
- package/package.json +1 -1
- package/dist/Service/LanguageEndpoint.d.ts +0 -5
- package/dist/Service/LanguageEndpoint.js +0 -15
package/dist/Client.d.ts
CHANGED
|
@@ -17,12 +17,13 @@ import { QueueEndpoint } from './Service/QueueEndpoint';
|
|
|
17
17
|
import { NotificationsEndpoint } from './Service/NotificationsEndpoint';
|
|
18
18
|
import { ProjectDeployEndpoint } from './Service/ProjectDeployEndpoint';
|
|
19
19
|
import { SourcesAccountEndpoint } from './Service/SourcesAccountEndpoint';
|
|
20
|
-
import {
|
|
20
|
+
import { PlatformLanguageEndpoint } from './Service/PlatformLanguageEndpoint';
|
|
21
21
|
import { ChannelEndpoint } from './Service/ChannelEndpoint';
|
|
22
22
|
import { HealthAlertEndpoint } from './Service/HealthAlertEndpoint';
|
|
23
23
|
import { TaskExecutionEndpoint } from './Service/TaskExecutionEndpoint';
|
|
24
24
|
import { LogEndpoint } from './Service/LogEndpoint';
|
|
25
25
|
import { TriggerEndpoint } from './Service/TriggerEndpoint';
|
|
26
|
+
import { PlatformEndpoint } from './Service/PlatformEndpoint';
|
|
26
27
|
export declare class Client {
|
|
27
28
|
private apiEndpoint;
|
|
28
29
|
private clientId;
|
|
@@ -48,6 +49,7 @@ export declare class Client {
|
|
|
48
49
|
getChannelEndpoint(): ChannelEndpoint;
|
|
49
50
|
getConfigEndpoint(): ConfigEndpoint;
|
|
50
51
|
getNotificationsEndpoint(): NotificationsEndpoint;
|
|
52
|
+
getPlatformEndpoint(): PlatformEndpoint;
|
|
51
53
|
getSubscriberEndpoint(): SubscriberEndpoint;
|
|
52
54
|
getLogEndPoint(): LogEndpoint;
|
|
53
55
|
getTaskEndpoint(): TaskEndpoint;
|
|
@@ -59,7 +61,7 @@ export declare class Client {
|
|
|
59
61
|
getMemberEndpoint(): TeamMemberEndpoint;
|
|
60
62
|
getWorkerEndpoint(): WorkerEndpoint;
|
|
61
63
|
getSourcesAccountEndpoint(): SourcesAccountEndpoint;
|
|
62
|
-
getLanguageEndpoint():
|
|
64
|
+
getLanguageEndpoint(): PlatformLanguageEndpoint;
|
|
63
65
|
getStorageEndpoint(): StorageEndpoint;
|
|
64
66
|
getWorkerConfigEndpoint(): WorkerConfigEndpoint;
|
|
65
67
|
getQueueEndpoint(): QueueEndpoint;
|
package/dist/Client.js
CHANGED
|
@@ -20,12 +20,13 @@ const NotificationsEndpoint_1 = require("./Service/NotificationsEndpoint");
|
|
|
20
20
|
const ProjectDeployEndpoint_1 = require("./Service/ProjectDeployEndpoint");
|
|
21
21
|
const SourcesAccountEndpoint_1 = require("./Service/SourcesAccountEndpoint");
|
|
22
22
|
const OAuthClientOptions_1 = require("./Http/OAuthClientOptions");
|
|
23
|
-
const
|
|
23
|
+
const PlatformLanguageEndpoint_1 = require("./Service/PlatformLanguageEndpoint");
|
|
24
24
|
const ChannelEndpoint_1 = require("./Service/ChannelEndpoint");
|
|
25
25
|
const HealthAlertEndpoint_1 = require("./Service/HealthAlertEndpoint");
|
|
26
26
|
const TaskExecutionEndpoint_1 = require("./Service/TaskExecutionEndpoint");
|
|
27
27
|
const LogEndpoint_1 = require("./Service/LogEndpoint");
|
|
28
28
|
const TriggerEndpoint_1 = require("./Service/TriggerEndpoint");
|
|
29
|
+
const PlatformEndpoint_1 = require("./Service/PlatformEndpoint");
|
|
29
30
|
class Client {
|
|
30
31
|
// private test: Map<string, any>;
|
|
31
32
|
// private socketService;
|
|
@@ -53,10 +54,11 @@ class Client {
|
|
|
53
54
|
UserEndpoint: UserEndpoint_1.UserEndpoint,
|
|
54
55
|
MemberEndpoint: TeamMemberEndpoint_1.TeamMemberEndpoint,
|
|
55
56
|
SourcesAccountEndpoint: SourcesAccountEndpoint_1.SourcesAccountEndpoint,
|
|
56
|
-
LanguageEndpoint:
|
|
57
|
+
LanguageEndpoint: PlatformLanguageEndpoint_1.PlatformLanguageEndpoint,
|
|
57
58
|
StorageEndpoint: StorageEndpoint_1.StorageEndpoint,
|
|
58
59
|
WorkerConfigEndpoint: WorkerConfigEndpoint_1.WorkerConfigEndpoint,
|
|
59
|
-
HealthAlertEndpoint: HealthAlertEndpoint_1.HealthAlertEndpoint
|
|
60
|
+
HealthAlertEndpoint: HealthAlertEndpoint_1.HealthAlertEndpoint,
|
|
61
|
+
PlatformEndpoint: PlatformEndpoint_1.PlatformEndpoint
|
|
60
62
|
};
|
|
61
63
|
const options = new OAuthClientOptions_1.OAuthClientOptions(apiEndpoint, clientId, clientSecret);
|
|
62
64
|
this.httpClient = new OAuthClient_1.OAuthClient(options);
|
|
@@ -123,7 +125,10 @@ class Client {
|
|
|
123
125
|
return this.getEndpoint('config', this.Store.ConfigEndpoint);
|
|
124
126
|
}
|
|
125
127
|
getNotificationsEndpoint() {
|
|
126
|
-
return this.getEndpoint('
|
|
128
|
+
return this.getEndpoint('notication', this.Store.NotificationsEndpoint);
|
|
129
|
+
}
|
|
130
|
+
getPlatformEndpoint() {
|
|
131
|
+
return this.getEndpoint('platform', this.Store.PlatformEndpoint);
|
|
127
132
|
}
|
|
128
133
|
getSubscriberEndpoint() {
|
|
129
134
|
return this.getEndpoint('subscriber', this.Store.SubscriberEndpoint);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { State } from '../State';
|
|
2
2
|
import { StateAware } from '../StateAware';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class PlatformLanguage implements StateAware {
|
|
4
4
|
id: number;
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
7
7
|
state: State;
|
|
8
8
|
constructor(id: number, name: string);
|
|
9
|
-
static parse(rawLanguage: any):
|
|
9
|
+
static parse(rawLanguage: any): PlatformLanguage;
|
|
10
10
|
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PlatformLanguage = void 0;
|
|
4
4
|
const State_1 = require("../State");
|
|
5
|
-
class
|
|
5
|
+
class PlatformLanguage {
|
|
6
6
|
constructor(id, name) {
|
|
7
|
+
this.description = '';
|
|
7
8
|
this.state = State_1.State.Active;
|
|
8
9
|
this.id = id;
|
|
9
10
|
this.name = name;
|
|
10
11
|
}
|
|
11
12
|
static parse(rawLanguage) {
|
|
12
|
-
let language = new
|
|
13
|
+
let language = new PlatformLanguage(rawLanguage.id, rawLanguage.name);
|
|
13
14
|
language.description = rawLanguage.description;
|
|
14
15
|
language.state = State_1.State.fromString(rawLanguage.state);
|
|
15
16
|
return language;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
|
-
exports.
|
|
19
|
+
exports.PlatformLanguage = PlatformLanguage;
|
|
@@ -2,15 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DataResult = void 0;
|
|
4
4
|
class DataResult {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.data =
|
|
5
|
+
constructor(data = null) {
|
|
6
|
+
this.data = data;
|
|
7
7
|
this.errors = [];
|
|
8
8
|
}
|
|
9
9
|
static parse(raw) {
|
|
10
10
|
const result = new DataResult();
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
if (raw === null || raw === undefined) {
|
|
12
|
+
throw new Error('Unable to parse DataResult: result: empty');
|
|
13
|
+
}
|
|
14
|
+
if (!raw.hasOwnProperty('data') || raw.data === undefined) {
|
|
15
|
+
throw new Error('Unable to parse DataResult: data is not defined');
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
result.setData(raw.data);
|
|
19
|
+
}
|
|
20
|
+
if (!raw.hasOwnProperty('errors') || raw.errors === undefined || raw.errors === null) {
|
|
21
|
+
console.error('Unable to parse DataResult (ignore for now, not setting any errors): errors is not defined');
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
14
24
|
const errors = raw.errors;
|
|
15
25
|
for (const error of errors) {
|
|
16
26
|
result.addError(error);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,11 +3,10 @@ import { StateAware } from '../StateAware';
|
|
|
3
3
|
export declare class Platform implements StateAware {
|
|
4
4
|
id: number;
|
|
5
5
|
name: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
buildDate: Date;
|
|
6
|
+
languageId: string;
|
|
7
|
+
released: Date;
|
|
8
|
+
endOfSupport: Date;
|
|
9
|
+
endOfLife: Date;
|
|
11
10
|
state: State;
|
|
12
11
|
static parse(raw: any): Platform;
|
|
13
12
|
}
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Platform = void 0;
|
|
4
4
|
const State_1 = require("../State");
|
|
5
|
+
const Utils_1 = require("../../Utils");
|
|
5
6
|
class Platform {
|
|
6
7
|
constructor() {
|
|
7
8
|
this.state = State_1.State.Active;
|
|
8
9
|
}
|
|
9
10
|
static parse(raw) {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return worker;
|
|
11
|
+
const platform = new Platform();
|
|
12
|
+
platform.id = raw.id;
|
|
13
|
+
platform.name = raw.name;
|
|
14
|
+
platform.languageId = raw.languageId;
|
|
15
|
+
platform.released = Utils_1.Utils.parseRawDate(raw.released);
|
|
16
|
+
platform.endOfSupport = Utils_1.Utils.parseRawDate(raw.endOfSupport);
|
|
17
|
+
platform.endOfLife = Utils_1.Utils.parseRawDate(raw.endOfLife);
|
|
18
|
+
platform.state = State_1.State.fromString(raw.state);
|
|
19
|
+
return platform;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
exports.Platform = Platform;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { State } from '../State';
|
|
2
|
+
import { StateAware } from '../StateAware';
|
|
3
|
+
export declare class PlatformImage implements StateAware {
|
|
4
|
+
id: number;
|
|
5
|
+
platformId: string;
|
|
6
|
+
image: string;
|
|
7
|
+
version: string;
|
|
8
|
+
languageVersion: string;
|
|
9
|
+
buildDate: Date;
|
|
10
|
+
state: State;
|
|
11
|
+
static parse(raw: any): PlatformImage;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformImage = void 0;
|
|
4
|
+
const State_1 = require("../State");
|
|
5
|
+
const Utils_1 = require("../../Utils");
|
|
6
|
+
class PlatformImage {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.state = State_1.State.Active;
|
|
9
|
+
}
|
|
10
|
+
static parse(raw) {
|
|
11
|
+
const platformImage = new PlatformImage();
|
|
12
|
+
platformImage.id = raw.id;
|
|
13
|
+
platformImage.platformId = raw.platformId;
|
|
14
|
+
platformImage.image = raw.image;
|
|
15
|
+
platformImage.version = raw.version;
|
|
16
|
+
platformImage.languageVersion = raw.languageVersion;
|
|
17
|
+
platformImage.buildDate = Utils_1.Utils.parseRawDate(raw.buildDate);
|
|
18
|
+
platformImage.state = State_1.State.fromString(raw.state);
|
|
19
|
+
return platformImage;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.PlatformImage = PlatformImage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Endpoint } from './Endpoint';
|
|
2
|
+
import { Platform } from '../Model/Worker/Platform';
|
|
3
|
+
import { PlatformImage } from '../Model/Worker/PlatformImage';
|
|
4
|
+
import { DataResult } from '../Model/Result/DataResult';
|
|
5
|
+
export declare class PlatformEndpoint extends Endpoint {
|
|
6
|
+
getAll(): Promise<DataResult<Platform[]>>;
|
|
7
|
+
getPlatformImages(platformId: string): Promise<DataResult<PlatformImage[]>>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformEndpoint = void 0;
|
|
4
|
+
const Endpoint_1 = require("./Endpoint");
|
|
5
|
+
const Platform_1 = require("../Model/Worker/Platform");
|
|
6
|
+
const PlatformImage_1 = require("../Model/Worker/PlatformImage");
|
|
7
|
+
class PlatformEndpoint extends Endpoint_1.Endpoint {
|
|
8
|
+
async getAll() {
|
|
9
|
+
let cmd = '/platforms';
|
|
10
|
+
const result = await this.request(cmd);
|
|
11
|
+
result.setData(this.parseCollection(result, Platform_1.Platform.parse));
|
|
12
|
+
return result;
|
|
13
|
+
}
|
|
14
|
+
async getPlatformImages(platformId) {
|
|
15
|
+
let cmd = '/platforms/' + platformId + '/images';
|
|
16
|
+
const result = await this.request(cmd);
|
|
17
|
+
result.setData(this.parseCollection(result, PlatformImage_1.PlatformImage.parse));
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.PlatformEndpoint = PlatformEndpoint;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Endpoint } from './Endpoint';
|
|
2
|
+
import { PlatformLanguage } from '../Model/Project/PlatformLanguage';
|
|
3
|
+
import { DataResult } from '../Model/Result/DataResult';
|
|
4
|
+
export declare class PlatformLanguageEndpoint extends Endpoint {
|
|
5
|
+
getAll(): Promise<DataResult<PlatformLanguage[]>>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformLanguageEndpoint = void 0;
|
|
4
|
+
const Endpoint_1 = require("./Endpoint");
|
|
5
|
+
const PlatformLanguage_1 = require("../Model/Project/PlatformLanguage");
|
|
6
|
+
class PlatformLanguageEndpoint extends Endpoint_1.Endpoint {
|
|
7
|
+
async getAll() {
|
|
8
|
+
let cmd = '/platformlanguages';
|
|
9
|
+
const result = await this.request(cmd);
|
|
10
|
+
result.setData(this.parseCollection(result, PlatformLanguage_1.PlatformLanguage.parse));
|
|
11
|
+
return result;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.PlatformLanguageEndpoint = PlatformLanguageEndpoint;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Endpoint } from './Endpoint';
|
|
2
2
|
import { Worker } from '../Model/Worker/Worker';
|
|
3
3
|
import { DataResult } from '../Model/Result/DataResult';
|
|
4
|
-
import { Platform } from '../Model/Worker/Platform';
|
|
5
4
|
export declare class WorkerEndpoint extends Endpoint {
|
|
6
|
-
getByProjectEnvironment(projectEnvironmentId: string): Promise<Worker
|
|
5
|
+
getByProjectEnvironment(projectEnvironmentId: string): Promise<DataResult<Worker>>;
|
|
7
6
|
update(projectEnvironmentId: string): Promise<DataResult<boolean>>;
|
|
8
|
-
getPlatforms(): Promise<Platform[]>;
|
|
9
7
|
}
|
|
@@ -4,8 +4,7 @@ exports.WorkerEndpoint = void 0;
|
|
|
4
4
|
const Endpoint_1 = require("./Endpoint");
|
|
5
5
|
const Utils_1 = require("../Utils");
|
|
6
6
|
const Worker_1 = require("../Model/Worker/Worker");
|
|
7
|
-
const
|
|
8
|
-
// import {DataResult, Worker, Platform} from '..';
|
|
7
|
+
const DataResult_1 = require("../Model/Result/DataResult");
|
|
9
8
|
class WorkerEndpoint extends Endpoint_1.Endpoint {
|
|
10
9
|
async getByProjectEnvironment(projectEnvironmentId) {
|
|
11
10
|
try {
|
|
@@ -14,7 +13,7 @@ class WorkerEndpoint extends Endpoint_1.Endpoint {
|
|
|
14
13
|
if (Utils_1.Utils.isNullOrUndefined(result)) {
|
|
15
14
|
throw new Error('Unable to find worker');
|
|
16
15
|
}
|
|
17
|
-
return Worker_1.Worker.parse(result);
|
|
16
|
+
return new DataResult_1.DataResult(Worker_1.Worker.parse(result));
|
|
18
17
|
}
|
|
19
18
|
catch (error) {
|
|
20
19
|
if (this.httpClient.isDebugEnabled()) {
|
|
@@ -36,14 +35,5 @@ class WorkerEndpoint extends Endpoint_1.Endpoint {
|
|
|
36
35
|
throw error;
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
|
-
async getPlatforms() {
|
|
40
|
-
let cmd = '/platforms';
|
|
41
|
-
const rawPlatforms = await this.httpClient.request(cmd);
|
|
42
|
-
const result = [];
|
|
43
|
-
for (let rawPlatform of rawPlatforms) {
|
|
44
|
-
result.push(Platform_1.Platform.parse(rawPlatform));
|
|
45
|
-
}
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
48
38
|
}
|
|
49
39
|
exports.WorkerEndpoint = WorkerEndpoint;
|
package/dist/Utils.d.ts
CHANGED
package/dist/Utils.js
CHANGED
|
@@ -50,5 +50,12 @@ class Utils {
|
|
|
50
50
|
}
|
|
51
51
|
return Buffer.from(encodedString, 'base64').toString();
|
|
52
52
|
}
|
|
53
|
+
static isIterable(variable) {
|
|
54
|
+
if (Utils.isNullOrUndefined(variable) || typeof variable === 'string') {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return Symbol.iterator in Object(variable);
|
|
58
|
+
// return typeof obj[Symbol.iterator] === 'function';
|
|
59
|
+
}
|
|
53
60
|
}
|
|
54
61
|
exports.Utils = Utils;
|
package/dist/Utils.spec.js
CHANGED
|
@@ -25,3 +25,16 @@ test('Test base64 encode/decode', () => {
|
|
|
25
25
|
expect(Utils_1.Utils.base64encode('Lorem ipsum')).toBe('TG9yZW0gaXBzdW0=');
|
|
26
26
|
expect(Utils_1.Utils.base64decode('TG9yZW0gaXBzdW0=')).toBe('Lorem ipsum');
|
|
27
27
|
});
|
|
28
|
+
test('Test if iterable', async () => {
|
|
29
|
+
expect(Utils_1.Utils.isIterable(null)).toBe(false);
|
|
30
|
+
expect(Utils_1.Utils.isIterable('')).toBe(false);
|
|
31
|
+
expect(Utils_1.Utils.isIterable('Lorem')).toBe(false);
|
|
32
|
+
expect(Utils_1.Utils.isIterable(false)).toBe(false);
|
|
33
|
+
expect(Utils_1.Utils.isIterable(true)).toBe(false);
|
|
34
|
+
expect(Utils_1.Utils.isIterable(undefined)).toBe(false);
|
|
35
|
+
expect(Utils_1.Utils.isIterable(12)).toBe(false);
|
|
36
|
+
expect(Utils_1.Utils.isIterable([])).toBe(true);
|
|
37
|
+
expect(Utils_1.Utils.isIterable(['L', 'O', 'R', 'E', 'M'])).toBe(true);
|
|
38
|
+
expect(Utils_1.Utils.isIterable({})).toBe(false);
|
|
39
|
+
expect(Utils_1.Utils.isIterable({ a: 'a', b: 'b' })).toBe(false);
|
|
40
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export { WebhookChannelData } from './Model/Messaging/Channel/WebhookChannelData
|
|
|
30
30
|
export { Subscriber } from './Model/Messaging/Subscriber';
|
|
31
31
|
export { ChannelHistory } from './Model/Messaging/ChannelHistory';
|
|
32
32
|
/** Project **/
|
|
33
|
-
export {
|
|
33
|
+
export { PlatformLanguage } from './Model/Project/PlatformLanguage';
|
|
34
34
|
export { Project } from './Model/Project/Project';
|
|
35
35
|
export { ProjectDeploy } from './Model/Project/ProjectDeploy';
|
|
36
36
|
export { ProjectDeployCommit } from './Model/Project/ProjectDeployCommit';
|
|
@@ -54,9 +54,10 @@ export { TriggerType } from './Model/Trigger/TriggerType';
|
|
|
54
54
|
export { WebhookTrigger } from './Model/Trigger/WebhookTrigger';
|
|
55
55
|
export { WebhookTriggerData } from './Model/Trigger/WebhookTriggerData';
|
|
56
56
|
/** Worker**/
|
|
57
|
+
export { Platform } from './Model/Worker/Platform';
|
|
58
|
+
export { PlatformImage } from './Model/Worker/PlatformImage';
|
|
57
59
|
export { Worker } from './Model/Worker/Worker';
|
|
58
60
|
export { WorkerConfig } from './Model/Worker/WorkerConfig';
|
|
59
|
-
export { Platform } from './Model/Worker/Platform';
|
|
60
61
|
export { WorkerInstance } from './Model/Worker/WorkerInstance';
|
|
61
62
|
export { WorkerInstanceState } from './Model/Worker/WorkerInstanceState';
|
|
62
63
|
export { WorkerState } from './Model/Worker/WorkerState';
|
|
@@ -91,10 +92,11 @@ export { AdapterEndpoint } from './Service/AdapterEndpoint';
|
|
|
91
92
|
export { ChannelEndpoint } from './Service/ChannelEndpoint';
|
|
92
93
|
export { ProjectEndpoint } from './Service/ProjectEndpoint';
|
|
93
94
|
export { ConfigEndpoint } from './Service/ConfigEndpoint';
|
|
94
|
-
export {
|
|
95
|
+
export { PlatformLanguageEndpoint } from './Service/PlatformLanguageEndpoint';
|
|
95
96
|
export { LogEndpoint } from './Service/LogEndpoint';
|
|
96
97
|
export { TeamMemberEndpoint } from './Service/TeamMemberEndpoint';
|
|
97
98
|
export { NotificationsEndpoint } from './Service/NotificationsEndpoint';
|
|
99
|
+
export { PlatformEndpoint } from './Service/PlatformEndpoint';
|
|
98
100
|
export { ProjectDeployEndpoint } from './Service/ProjectDeployEndpoint';
|
|
99
101
|
export { ProjectEnvironmentEndpoint } from './Service/ProjectEnvironmentEndpoint';
|
|
100
102
|
export { QueueEndpoint } from './Service/QueueEndpoint';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.Utils = void 0;
|
|
3
|
+
exports.WorkerInstance = exports.WorkerConfig = exports.Worker = exports.PlatformImage = exports.Platform = exports.WebhookTriggerData = exports.WebhookTrigger = exports.TriggerType = exports.TriggerData = exports.Trigger = exports.ScheduleTriggerData = exports.ScheduleTrigger = exports.ApiTriggerData = exports.ApiTrigger = exports.StorageType = exports.StorageInformation = exports.ResultError = exports.DataResult = exports.QueueStatus = exports.ProjectEnvironment = exports.ProjectDeployStatus = exports.ProjectDeployCommit = exports.ProjectDeploy = exports.Project = exports.PlatformLanguage = exports.ChannelHistory = exports.Subscriber = exports.WebhookChannelData = exports.SmsChannelData = exports.SlackChannelData = exports.PushChannelData = exports.EmailChannelData = exports.ChannelType = exports.ChannelData = exports.Channel = exports.LogStreamId = exports.LogStatus = exports.LogQuery = exports.LogLevel = exports.Log = exports.HealthTestType = exports.HealthAlertStatus = exports.HealthAlert = exports.EventType = exports.ClientError = exports.OAuthClientOptions = exports.OAuthClient = exports.HttpClientResponse = exports.HttpClientRequest = exports.HttpClient = void 0;
|
|
4
|
+
exports.WorkerEndpoint = exports.WorkerConfigEndpoint = exports.UserEndpoint = exports.TriggerEndpoint = exports.TeamsEndpoint = exports.TaskExecutionRequestEndpoint = exports.TaskExecutionEndpoint = exports.TaskEndpoint = exports.SubscriberEndpoint = exports.StorageEndpoint = exports.SourcesAccountEndpoint = exports.QueueEndpoint = exports.ProjectEnvironmentEndpoint = exports.ProjectDeployEndpoint = exports.PlatformEndpoint = exports.NotificationsEndpoint = exports.TeamMemberEndpoint = exports.LogEndpoint = exports.PlatformLanguageEndpoint = exports.ConfigEndpoint = exports.ProjectEndpoint = exports.ChannelEndpoint = exports.AdapterEndpoint = exports.Endpoint = exports.User = exports.TaskSummary = exports.TaskExecutionSummary = exports.TaskExecutionStatus = exports.TaskExecutionResponse = exports.TaskExecutionHistory = exports.TaskExecution = exports.Task = exports.State = exports.SourcesAccountRepository = exports.SourcesAccount = exports.PagedResult = exports.Notification = exports.DataValue = exports.Config = exports.AdapterConnection = exports.AdapterConfiguration = exports.Adapter = exports.TeamMemberRole = exports.TeamMemberInviteState = exports.TeamMemberInvite2 = exports.TeamMemberInvite = exports.TeamMember = exports.Team = exports.WorkerState = exports.WorkerInstanceState = void 0;
|
|
5
|
+
exports.Utils = exports.Client = exports.HealthAlertEndpoint = void 0;
|
|
6
6
|
/**
|
|
7
7
|
* @module
|
|
8
8
|
* @description
|
|
@@ -62,8 +62,8 @@ Object.defineProperty(exports, "Subscriber", { enumerable: true, get: function (
|
|
|
62
62
|
var ChannelHistory_1 = require("./Model/Messaging/ChannelHistory");
|
|
63
63
|
Object.defineProperty(exports, "ChannelHistory", { enumerable: true, get: function () { return ChannelHistory_1.ChannelHistory; } });
|
|
64
64
|
/** Project **/
|
|
65
|
-
var
|
|
66
|
-
Object.defineProperty(exports, "
|
|
65
|
+
var PlatformLanguage_1 = require("./Model/Project/PlatformLanguage");
|
|
66
|
+
Object.defineProperty(exports, "PlatformLanguage", { enumerable: true, get: function () { return PlatformLanguage_1.PlatformLanguage; } });
|
|
67
67
|
var Project_1 = require("./Model/Project/Project");
|
|
68
68
|
Object.defineProperty(exports, "Project", { enumerable: true, get: function () { return Project_1.Project; } });
|
|
69
69
|
var ProjectDeploy_1 = require("./Model/Project/ProjectDeploy");
|
|
@@ -106,12 +106,14 @@ Object.defineProperty(exports, "WebhookTrigger", { enumerable: true, get: functi
|
|
|
106
106
|
var WebhookTriggerData_1 = require("./Model/Trigger/WebhookTriggerData");
|
|
107
107
|
Object.defineProperty(exports, "WebhookTriggerData", { enumerable: true, get: function () { return WebhookTriggerData_1.WebhookTriggerData; } });
|
|
108
108
|
/** Worker**/
|
|
109
|
+
var Platform_1 = require("./Model/Worker/Platform");
|
|
110
|
+
Object.defineProperty(exports, "Platform", { enumerable: true, get: function () { return Platform_1.Platform; } });
|
|
111
|
+
var PlatformImage_1 = require("./Model/Worker/PlatformImage");
|
|
112
|
+
Object.defineProperty(exports, "PlatformImage", { enumerable: true, get: function () { return PlatformImage_1.PlatformImage; } });
|
|
109
113
|
var Worker_1 = require("./Model/Worker/Worker");
|
|
110
114
|
Object.defineProperty(exports, "Worker", { enumerable: true, get: function () { return Worker_1.Worker; } });
|
|
111
115
|
var WorkerConfig_1 = require("./Model/Worker/WorkerConfig");
|
|
112
116
|
Object.defineProperty(exports, "WorkerConfig", { enumerable: true, get: function () { return WorkerConfig_1.WorkerConfig; } });
|
|
113
|
-
var Platform_1 = require("./Model/Worker/Platform");
|
|
114
|
-
Object.defineProperty(exports, "Platform", { enumerable: true, get: function () { return Platform_1.Platform; } });
|
|
115
117
|
var WorkerInstance_1 = require("./Model/Worker/WorkerInstance");
|
|
116
118
|
Object.defineProperty(exports, "WorkerInstance", { enumerable: true, get: function () { return WorkerInstance_1.WorkerInstance; } });
|
|
117
119
|
var WorkerInstanceState_1 = require("./Model/Worker/WorkerInstanceState");
|
|
@@ -179,14 +181,16 @@ var ProjectEndpoint_1 = require("./Service/ProjectEndpoint");
|
|
|
179
181
|
Object.defineProperty(exports, "ProjectEndpoint", { enumerable: true, get: function () { return ProjectEndpoint_1.ProjectEndpoint; } });
|
|
180
182
|
var ConfigEndpoint_1 = require("./Service/ConfigEndpoint");
|
|
181
183
|
Object.defineProperty(exports, "ConfigEndpoint", { enumerable: true, get: function () { return ConfigEndpoint_1.ConfigEndpoint; } });
|
|
182
|
-
var
|
|
183
|
-
Object.defineProperty(exports, "
|
|
184
|
+
var PlatformLanguageEndpoint_1 = require("./Service/PlatformLanguageEndpoint");
|
|
185
|
+
Object.defineProperty(exports, "PlatformLanguageEndpoint", { enumerable: true, get: function () { return PlatformLanguageEndpoint_1.PlatformLanguageEndpoint; } });
|
|
184
186
|
var LogEndpoint_1 = require("./Service/LogEndpoint");
|
|
185
187
|
Object.defineProperty(exports, "LogEndpoint", { enumerable: true, get: function () { return LogEndpoint_1.LogEndpoint; } });
|
|
186
188
|
var TeamMemberEndpoint_1 = require("./Service/TeamMemberEndpoint");
|
|
187
189
|
Object.defineProperty(exports, "TeamMemberEndpoint", { enumerable: true, get: function () { return TeamMemberEndpoint_1.TeamMemberEndpoint; } });
|
|
188
190
|
var NotificationsEndpoint_1 = require("./Service/NotificationsEndpoint");
|
|
189
191
|
Object.defineProperty(exports, "NotificationsEndpoint", { enumerable: true, get: function () { return NotificationsEndpoint_1.NotificationsEndpoint; } });
|
|
192
|
+
var PlatformEndpoint_1 = require("./Service/PlatformEndpoint");
|
|
193
|
+
Object.defineProperty(exports, "PlatformEndpoint", { enumerable: true, get: function () { return PlatformEndpoint_1.PlatformEndpoint; } });
|
|
190
194
|
var ProjectDeployEndpoint_1 = require("./Service/ProjectDeployEndpoint");
|
|
191
195
|
Object.defineProperty(exports, "ProjectDeployEndpoint", { enumerable: true, get: function () { return ProjectDeployEndpoint_1.ProjectDeployEndpoint; } });
|
|
192
196
|
var ProjectEnvironmentEndpoint_1 = require("./Service/ProjectEnvironmentEndpoint");
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LanguageEndpoint = void 0;
|
|
4
|
-
const Endpoint_1 = require("./Endpoint");
|
|
5
|
-
const Language_1 = require("../Model/Project/Language");
|
|
6
|
-
class LanguageEndpoint extends Endpoint_1.Endpoint {
|
|
7
|
-
async getAll() {
|
|
8
|
-
const languages = [];
|
|
9
|
-
languages.push(new Language_1.Language(1, 'PHP'));
|
|
10
|
-
languages.push(new Language_1.Language(2, 'Node'));
|
|
11
|
-
languages.push(new Language_1.Language(3, 'Python'));
|
|
12
|
-
return languages;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.LanguageEndpoint = LanguageEndpoint;
|