@hahnpro/hpc-api 5.3.4 → 2024.4.0-0
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/package.json +8 -24
- package/src/index.d.ts +20 -0
- package/src/index.js +20 -0
- package/{dist → src/lib}/Queue.js +2 -7
- package/src/lib/api-base.js +6 -0
- package/src/lib/api.js +60 -0
- package/src/lib/asset.interface.js +1 -0
- package/src/lib/asset.service.d.ts +24 -0
- package/src/lib/asset.service.js +51 -0
- package/{dist → src/lib}/assettypes.service.d.ts +4 -4
- package/src/lib/assettypes.service.js +24 -0
- package/{dist → src/lib}/content.interface.js +2 -5
- package/src/lib/content.service.d.ts +23 -0
- package/src/lib/content.service.js +49 -0
- package/src/lib/data.interface.d.ts +38 -0
- package/src/lib/data.interface.js +3 -0
- package/src/lib/data.service.d.ts +27 -0
- package/src/lib/data.service.js +57 -0
- package/src/lib/endpoint.interface.js +1 -0
- package/src/lib/endpoint.service.d.ts +8 -0
- package/src/lib/endpoint.service.js +12 -0
- package/src/lib/events.interface.js +1 -0
- package/{dist → src/lib}/events.service.d.ts +2 -2
- package/src/lib/events.service.js +9 -0
- package/src/lib/flow-deployment.interface.js +1 -0
- package/{dist → src/lib}/flow-deployment.service.d.ts +15 -13
- package/src/lib/flow-deployment.service.js +68 -0
- package/src/lib/flow-function.interface.js +1 -0
- package/src/lib/flow-function.service.d.ts +11 -0
- package/src/lib/flow-function.service.js +20 -0
- package/src/lib/flow-module.interface.js +1 -0
- package/src/lib/flow-module.service.d.ts +11 -0
- package/{dist → src/lib}/flow-module.service.js +9 -12
- package/src/lib/flow.interface.js +1 -0
- package/src/lib/flow.service.d.ts +26 -0
- package/src/lib/flow.service.js +49 -0
- package/{dist → src/lib}/http.service.d.ts +12 -6
- package/src/lib/http.service.js +179 -0
- package/src/lib/label.interface.js +1 -0
- package/src/lib/label.service.d.ts +9 -0
- package/src/lib/label.service.js +15 -0
- package/src/lib/mock/api-base.mock.js +7 -0
- package/src/lib/mock/api.mock.js +199 -0
- package/{dist → src/lib}/mock/asset.mock.service.js +30 -41
- package/{dist → src/lib}/mock/assetTypes.mock.service.js +19 -27
- package/{dist → src/lib}/mock/content.mock.service.js +21 -24
- package/src/lib/mock/data.mock.service.js +93 -0
- package/{dist → src/lib}/mock/endpoint.mock.service.js +2 -6
- package/src/lib/mock/events.mock.service.js +10 -0
- package/src/lib/mock/flow-deployment.mock.service.js +118 -0
- package/{dist → src/lib}/mock/flow-functions.mock.service.js +12 -21
- package/src/lib/mock/flow-modules.mock.service.js +20 -0
- package/src/lib/mock/flow.mock.service.js +81 -0
- package/src/lib/mock/index.js +11 -0
- package/src/lib/mock/label.mock.service.js +13 -0
- package/src/lib/mock/notification.mock.service.js +7 -0
- package/src/lib/mock/secret.mock.service.js +28 -0
- package/src/lib/mock/task.mock.service.js +32 -0
- package/{dist → src/lib}/mock/timeseries.mock.service.js +40 -49
- package/{dist → src/lib}/mock/trash.mock.service.js +8 -15
- package/src/lib/mock/user.mock.service.js +10 -0
- package/{dist → src/lib}/mock/vault.mock.service.js +2 -6
- package/src/lib/notification.interface.js +1 -0
- package/src/lib/notification.service.js +6 -0
- package/src/lib/proxy.service.d.ts +11 -0
- package/{dist → src/lib}/proxy.service.js +1 -5
- package/src/lib/resource.interface.js +1 -0
- package/src/lib/schema.interface.js +1 -0
- package/src/lib/secret.interface.js +1 -0
- package/src/lib/secret.service.js +15 -0
- package/src/lib/storage.interface.js +1 -0
- package/src/lib/task.interface.js +1 -0
- package/{dist → src/lib}/task.service.d.ts +2 -2
- package/src/lib/task.service.js +19 -0
- package/src/lib/timeseries.interface.js +1 -0
- package/{dist → src/lib}/timeseries.service.d.ts +10 -8
- package/src/lib/timeseries.service.js +92 -0
- package/{dist → src/lib}/token-set.d.ts +3 -1
- package/src/lib/token-set.js +23 -0
- package/{dist → src/lib}/trash.service.js +2 -6
- package/src/lib/user-settings.interface.js +1 -0
- package/src/lib/user.service.d.ts +11 -0
- package/src/lib/user.service.js +26 -0
- package/src/lib/vault.interface.js +1 -0
- package/{dist → src/lib}/vault.service.d.ts +2 -2
- package/src/lib/vault.service.js +10 -0
- package/LICENSE +0 -21
- package/dist/api-base.js +0 -10
- package/dist/api.js +0 -62
- package/dist/asset.interface.js +0 -2
- package/dist/asset.service.d.ts +0 -24
- package/dist/asset.service.js +0 -53
- package/dist/assettypes.service.js +0 -28
- package/dist/content.service.d.ts +0 -23
- package/dist/content.service.js +0 -50
- package/dist/data.interface.d.ts +0 -31
- package/dist/data.interface.js +0 -6
- package/dist/data.service.d.ts +0 -21
- package/dist/data.service.js +0 -50
- package/dist/endpoint.interface.js +0 -2
- package/dist/endpoint.service.d.ts +0 -8
- package/dist/endpoint.service.js +0 -16
- package/dist/events.interface.js +0 -2
- package/dist/events.service.js +0 -13
- package/dist/flow-deployment.interface.js +0 -2
- package/dist/flow-deployment.service.js +0 -74
- package/dist/flow-function.interface.js +0 -2
- package/dist/flow-function.service.d.ts +0 -11
- package/dist/flow-function.service.js +0 -23
- package/dist/flow-module.interface.js +0 -2
- package/dist/flow-module.service.d.ts +0 -11
- package/dist/flow.interface.js +0 -2
- package/dist/flow.service.d.ts +0 -24
- package/dist/flow.service.js +0 -54
- package/dist/http.service.js +0 -161
- package/dist/index.d.ts +0 -20
- package/dist/index.js +0 -23
- package/dist/label.interface.js +0 -2
- package/dist/label.service.d.ts +0 -9
- package/dist/label.service.js +0 -19
- package/dist/mock/api-base.mock.js +0 -11
- package/dist/mock/api.mock.js +0 -128
- package/dist/mock/data.mock.service.js +0 -96
- package/dist/mock/events.mock.service.js +0 -14
- package/dist/mock/flow-deployment.mock.service.js +0 -142
- package/dist/mock/flow-modules.mock.service.js +0 -27
- package/dist/mock/flow.mock.service.js +0 -93
- package/dist/mock/index.js +0 -14
- package/dist/mock/label.mock.service.js +0 -17
- package/dist/mock/notification.mock.service.js +0 -11
- package/dist/mock/secret.mock.service.js +0 -31
- package/dist/mock/task.mock.service.js +0 -37
- package/dist/mock/user.mock.service.js +0 -14
- package/dist/notification.interface.js +0 -2
- package/dist/notification.service.js +0 -10
- package/dist/proxy.service.d.ts +0 -11
- package/dist/resource.interface.js +0 -2
- package/dist/schema.interface.js +0 -2
- package/dist/secret.interface.js +0 -2
- package/dist/secret.service.js +0 -19
- package/dist/storage.interface.js +0 -2
- package/dist/task.interface.js +0 -2
- package/dist/task.service.js +0 -22
- package/dist/timeseries.interface.js +0 -2
- package/dist/timeseries.service.js +0 -56
- package/dist/token-set.js +0 -23
- package/dist/user-settings.interface.js +0 -2
- package/dist/user.service.d.ts +0 -11
- package/dist/user.service.js +0 -33
- package/dist/vault.interface.js +0 -2
- package/dist/vault.service.js +0 -14
- package/{dist → src/lib}/Queue.d.ts +0 -0
- package/{dist → src/lib}/api-base.d.ts +0 -0
- package/{dist → src/lib}/api.d.ts +6 -6
- package/{dist → src/lib}/asset.interface.d.ts +0 -0
- package/{dist → src/lib}/content.interface.d.ts +0 -0
- package/{dist → src/lib}/endpoint.interface.d.ts +0 -0
- package/{dist → src/lib}/events.interface.d.ts +0 -0
- package/{dist → src/lib}/flow-deployment.interface.d.ts +1 -1
- package/{dist → src/lib}/flow-function.interface.d.ts +0 -0
- package/{dist → src/lib}/flow-module.interface.d.ts +0 -0
- package/{dist → src/lib}/flow.interface.d.ts +1 -1
- package/{dist → src/lib}/label.interface.d.ts +0 -0
- package/{dist → src/lib}/mock/api-base.mock.d.ts +0 -0
- package/{dist → src/lib}/mock/api.mock.d.ts +18 -18
- package/{dist → src/lib}/mock/asset.mock.service.d.ts +1 -1
- package/{dist → src/lib}/mock/assetTypes.mock.service.d.ts +0 -0
- package/{dist → src/lib}/mock/content.mock.service.d.ts +1 -1
- package/{dist → src/lib}/mock/data.mock.service.d.ts +0 -0
- package/{dist → src/lib}/mock/endpoint.mock.service.d.ts +0 -0
- package/{dist → src/lib}/mock/events.mock.service.d.ts +0 -0
- package/{dist → src/lib}/mock/flow-deployment.mock.service.d.ts +2 -2
- package/{dist → src/lib}/mock/flow-functions.mock.service.d.ts +1 -1
- package/{dist → src/lib}/mock/flow-modules.mock.service.d.ts +2 -2
- package/{dist → src/lib}/mock/flow.mock.service.d.ts +1 -1
- package/{dist → src/lib}/mock/index.d.ts +0 -0
- package/{dist → src/lib}/mock/label.mock.service.d.ts +1 -1
- package/{dist → src/lib}/mock/notification.mock.service.d.ts +1 -1
- package/{dist → src/lib}/mock/secret.mock.service.d.ts +1 -1
- package/{dist → src/lib}/mock/task.mock.service.d.ts +0 -0
- package/{dist → src/lib}/mock/timeseries.mock.service.d.ts +0 -0
- package/{dist → src/lib}/mock/trash.mock.service.d.ts +1 -1
- package/{dist → src/lib}/mock/user.mock.service.d.ts +0 -0
- package/{dist → src/lib}/mock/vault.mock.service.d.ts +1 -1
- package/{dist → src/lib}/notification.interface.d.ts +0 -0
- package/{dist → src/lib}/notification.service.d.ts +1 -1
- /package/{dist → src/lib}/resource.interface.d.ts +0 -0
- /package/{dist → src/lib}/schema.interface.d.ts +0 -0
- /package/{dist → src/lib}/secret.interface.d.ts +0 -0
- /package/{dist → src/lib}/secret.service.d.ts +0 -0
- /package/{dist → src/lib}/storage.interface.d.ts +0 -0
- /package/{dist → src/lib}/task.interface.d.ts +0 -0
- /package/{dist → src/lib}/timeseries.interface.d.ts +0 -0
- /package/{dist → src/lib}/trash.service.d.ts +0 -0
- /package/{dist → src/lib}/user-settings.interface.d.ts +0 -0
- /package/{dist → src/lib}/vault.interface.d.ts +0 -0
package/dist/proxy.service.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { HttpClient } from './http.service';
|
|
3
|
-
export declare class ProxyService {
|
|
4
|
-
private readonly httpClient;
|
|
5
|
-
constructor(httpClient: HttpClient);
|
|
6
|
-
delete: <T>(proxyId: string, path: string, config?: AxiosRequestConfig) => Promise<T>;
|
|
7
|
-
get: <T>(proxyId: string, path: string, config?: AxiosRequestConfig) => Promise<T>;
|
|
8
|
-
post: <T>(proxyId: string, path: string, data: any, config?: AxiosRequestConfig) => Promise<T>;
|
|
9
|
-
put: <T>(proxyId: string, path: string, data: any, config?: AxiosRequestConfig) => Promise<T>;
|
|
10
|
-
private url;
|
|
11
|
-
}
|
package/dist/schema.interface.js
DELETED
package/dist/secret.interface.js
DELETED
package/dist/secret.service.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SecretService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const ts_mixer_1 = require("ts-mixer");
|
|
6
|
-
const api_base_1 = require("./api-base");
|
|
7
|
-
const data_service_1 = require("./data.service");
|
|
8
|
-
const trash_service_1 = require("./trash.service");
|
|
9
|
-
let BaseService = class BaseService extends api_base_1.APIBase {
|
|
10
|
-
};
|
|
11
|
-
BaseService = tslib_1.__decorate([
|
|
12
|
-
(0, ts_mixer_1.mix)(data_service_1.DataService, trash_service_1.TrashService)
|
|
13
|
-
], BaseService);
|
|
14
|
-
class SecretService extends BaseService {
|
|
15
|
-
constructor(httpClient) {
|
|
16
|
-
super(httpClient, '/secrets');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.SecretService = SecretService;
|
package/dist/task.interface.js
DELETED
package/dist/task.service.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaskService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const ts_mixer_1 = require("ts-mixer");
|
|
6
|
-
const api_base_1 = require("./api-base");
|
|
7
|
-
const data_service_1 = require("./data.service");
|
|
8
|
-
const trash_service_1 = require("./trash.service");
|
|
9
|
-
let BaseService = class BaseService extends api_base_1.APIBase {
|
|
10
|
-
};
|
|
11
|
-
BaseService = tslib_1.__decorate([
|
|
12
|
-
(0, ts_mixer_1.mix)(data_service_1.DataService, trash_service_1.TrashService)
|
|
13
|
-
], BaseService);
|
|
14
|
-
class TaskService extends BaseService {
|
|
15
|
-
constructor(httpClient) {
|
|
16
|
-
super(httpClient, '/tasks');
|
|
17
|
-
}
|
|
18
|
-
createTaskAttachedToAsset(dto) {
|
|
19
|
-
return this.httpClient.post(this.basePath, dto);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.TaskService = TaskService;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TimeSeriesService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const ts_mixer_1 = require("ts-mixer");
|
|
6
|
-
const api_base_1 = require("./api-base");
|
|
7
|
-
const data_service_1 = require("./data.service");
|
|
8
|
-
const trash_service_1 = require("./trash.service");
|
|
9
|
-
let BaseService = class BaseService extends api_base_1.APIBase {
|
|
10
|
-
};
|
|
11
|
-
BaseService = tslib_1.__decorate([
|
|
12
|
-
(0, ts_mixer_1.mix)(data_service_1.DataService, trash_service_1.TrashService)
|
|
13
|
-
], BaseService);
|
|
14
|
-
class TimeSeriesService extends BaseService {
|
|
15
|
-
constructor(httpClient) {
|
|
16
|
-
super(httpClient, '/tsm');
|
|
17
|
-
}
|
|
18
|
-
addValue(id, value) {
|
|
19
|
-
return this.httpClient.post(`${this.basePath}/${id}`, value);
|
|
20
|
-
}
|
|
21
|
-
addAssetTimeSeriesValues(assetId, name, readPermissions, readWritePermissions, values) {
|
|
22
|
-
const dto = {
|
|
23
|
-
name,
|
|
24
|
-
readPermissions,
|
|
25
|
-
readWritePermissions,
|
|
26
|
-
values,
|
|
27
|
-
};
|
|
28
|
-
return this.httpClient.post(`${this.basePath}/assets/${assetId}`, dto);
|
|
29
|
-
}
|
|
30
|
-
addManyAssetTimeSeriesValues(assetId, readPermissions, readWritePermissions, timeSeries) {
|
|
31
|
-
const dtos = Object.entries(timeSeries).map(([name, values]) => ({
|
|
32
|
-
name,
|
|
33
|
-
readPermissions,
|
|
34
|
-
readWritePermissions,
|
|
35
|
-
values,
|
|
36
|
-
}));
|
|
37
|
-
return this.httpClient.post(`${this.basePath}/assets/${assetId}/bulk`, dtos);
|
|
38
|
-
}
|
|
39
|
-
getMostRecentValue(id, before) {
|
|
40
|
-
const params = before ? { before: before.toISOString() } : {};
|
|
41
|
-
return this.httpClient.get(`${this.basePath}/${id}/recent`, { params });
|
|
42
|
-
}
|
|
43
|
-
getValues(id, from, limit, group) {
|
|
44
|
-
const params = { limit, group };
|
|
45
|
-
return this.httpClient.get(`${this.basePath}/${id}/${from}`, { params });
|
|
46
|
-
}
|
|
47
|
-
getValuesOfPeriod(id, from, to, group) {
|
|
48
|
-
const params = { group };
|
|
49
|
-
return this.httpClient.get(`${this.basePath}/${id}/${from}/${to}`, { params });
|
|
50
|
-
}
|
|
51
|
-
getManyByAsset(assetId, names) {
|
|
52
|
-
const params = Array.isArray(names) ? { names: names.join() } : {};
|
|
53
|
-
return this.httpClient.get(`${this.basePath}/asset/${assetId}`, { params });
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.TimeSeriesService = TimeSeriesService;
|
package/dist/token-set.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TokenSet = void 0;
|
|
4
|
-
const TOKEN_EXPIRATION_BUFFER = 20;
|
|
5
|
-
class TokenSet {
|
|
6
|
-
constructor(access_token, expires_in) {
|
|
7
|
-
this._accessToken = access_token;
|
|
8
|
-
this._expiresAt = Math.floor(Date.now() / 1000) + Number(expires_in);
|
|
9
|
-
}
|
|
10
|
-
get accessToken() {
|
|
11
|
-
return this._accessToken;
|
|
12
|
-
}
|
|
13
|
-
get expiresAt() {
|
|
14
|
-
return this._expiresAt;
|
|
15
|
-
}
|
|
16
|
-
get expiresIn() {
|
|
17
|
-
return Math.max(this.expiresAt - Math.ceil(Date.now() / 1000), 0);
|
|
18
|
-
}
|
|
19
|
-
isExpired() {
|
|
20
|
-
return this.expiresIn <= TOKEN_EXPIRATION_BUFFER;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.TokenSet = TokenSet;
|
package/dist/user.service.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.service';
|
|
2
|
-
import { UserSettings } from './user-settings.interface';
|
|
3
|
-
export declare class UserService {
|
|
4
|
-
private httpClient;
|
|
5
|
-
private readonly basePath;
|
|
6
|
-
constructor(httpClient: HttpClient);
|
|
7
|
-
getCurrentUserRoles(): Promise<string[]>;
|
|
8
|
-
getUserSettings(): Promise<UserSettings>;
|
|
9
|
-
updateUserSettings(settings: UserSettings): Promise<UserSettings>;
|
|
10
|
-
deleteUserSettings(): Promise<UserSettings>;
|
|
11
|
-
}
|
package/dist/user.service.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const jwt_decode_1 = require("jwt-decode");
|
|
6
|
-
class UserService {
|
|
7
|
-
constructor(httpClient) {
|
|
8
|
-
this.httpClient = httpClient;
|
|
9
|
-
this.basePath = '/user';
|
|
10
|
-
}
|
|
11
|
-
getCurrentUserRoles() {
|
|
12
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13
|
-
try {
|
|
14
|
-
const token = yield this.httpClient.getAccessToken();
|
|
15
|
-
const decode = (0, jwt_decode_1.jwtDecode)(token);
|
|
16
|
-
return decode.realm_access.roles;
|
|
17
|
-
}
|
|
18
|
-
catch (err) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
getUserSettings() {
|
|
24
|
-
return this.httpClient.get(this.basePath);
|
|
25
|
-
}
|
|
26
|
-
updateUserSettings(settings) {
|
|
27
|
-
return this.httpClient.put(this.basePath, settings);
|
|
28
|
-
}
|
|
29
|
-
deleteUserSettings() {
|
|
30
|
-
return this.httpClient.delete(this.basePath);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.UserService = UserService;
|
package/dist/vault.interface.js
DELETED
package/dist/vault.service.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VaultService = void 0;
|
|
4
|
-
const data_service_1 = require("./data.service");
|
|
5
|
-
class VaultService extends data_service_1.DataService {
|
|
6
|
-
constructor(httpClient) {
|
|
7
|
-
super(httpClient, '/vault/secrets');
|
|
8
|
-
}
|
|
9
|
-
getSecret(name, version) {
|
|
10
|
-
const params = version ? { version } : {};
|
|
11
|
-
return this.httpClient.get(`${this.basePath}/${name}/secret`, { params });
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.VaultService = VaultService;
|
|
File without changes
|
|
File without changes
|
|
@@ -3,19 +3,19 @@ import { AssetTypesService } from './assettypes.service';
|
|
|
3
3
|
import { ContentService } from './content.service';
|
|
4
4
|
import { EndpointService } from './endpoint.service';
|
|
5
5
|
import { EventsService } from './events.service';
|
|
6
|
+
import { FlowDeploymentService } from './flow-deployment.service';
|
|
7
|
+
import { FlowFunctionService } from './flow-function.service';
|
|
8
|
+
import { FlowModuleService } from './flow-module.service';
|
|
9
|
+
import { FlowService } from './flow.service';
|
|
6
10
|
import { HttpClient } from './http.service';
|
|
11
|
+
import { LabelService } from './label.service';
|
|
12
|
+
import { NotificationService } from './notification.service';
|
|
7
13
|
import { ProxyService } from './proxy.service';
|
|
8
14
|
import { SecretService } from './secret.service';
|
|
9
15
|
import { TaskService } from './task.service';
|
|
10
16
|
import { TimeSeriesService } from './timeseries.service';
|
|
11
17
|
import { UserService } from './user.service';
|
|
12
|
-
import { FlowService } from './flow.service';
|
|
13
|
-
import { FlowFunctionService } from './flow-function.service';
|
|
14
|
-
import { FlowModuleService } from './flow-module.service';
|
|
15
|
-
import { FlowDeploymentService } from './flow-deployment.service';
|
|
16
|
-
import { LabelService } from './label.service';
|
|
17
18
|
import { VaultService } from './vault.service';
|
|
18
|
-
import { NotificationService } from './notification.service';
|
|
19
19
|
export declare class API {
|
|
20
20
|
readonly httpClient?: HttpClient;
|
|
21
21
|
assets: AssetService;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Resource } from './resource.interface';
|
|
2
1
|
import { FlowDiagram, FlowDto } from './flow.interface';
|
|
2
|
+
import { Resource } from './resource.interface';
|
|
3
3
|
import { Storage } from './storage.interface';
|
|
4
4
|
export interface FlowDeployment extends Resource {
|
|
5
5
|
flow: string | FlowDto;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { FlowDeployment } from './flow-deployment.interface';
|
|
1
2
|
import { Resource } from './resource.interface';
|
|
2
3
|
import { JsonSchemaForm } from './schema.interface';
|
|
3
|
-
import { FlowDeployment } from './flow-deployment.interface';
|
|
4
4
|
export interface FlowDto extends Resource {
|
|
5
5
|
diagram: string | FlowDiagram;
|
|
6
6
|
deployments?: string[] | FlowDeployment[];
|
|
File without changes
|
|
File without changes
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { API } from '../api';
|
|
2
2
|
import { Asset, AssetRevision, AssetType } from '../asset.interface';
|
|
3
3
|
import { Content } from '../content.interface';
|
|
4
|
+
import { Endpoint } from '../endpoint.interface';
|
|
5
|
+
import { Event } from '../events.interface';
|
|
6
|
+
import { FlowDeployment } from '../flow-deployment.interface';
|
|
7
|
+
import { FlowDeploymentService } from '../flow-deployment.service';
|
|
8
|
+
import { FlowFunctionDto, FlowFunctionRevision } from '../flow-function.interface';
|
|
9
|
+
import { FlowFunctionService } from '../flow-function.service';
|
|
10
|
+
import { FlowModule } from '../flow-module.interface';
|
|
11
|
+
import { FlowModuleService } from '../flow-module.service';
|
|
12
|
+
import { FlowDiagram, FlowDto, FlowRevision } from '../flow.interface';
|
|
13
|
+
import { FlowService } from '../flow.service';
|
|
14
|
+
import { Label } from '../label.interface';
|
|
15
|
+
import { Notification } from '../notification.interface';
|
|
4
16
|
import { Secret } from '../secret.interface';
|
|
17
|
+
import { Artifact } from '../storage.interface';
|
|
18
|
+
import { Task } from '../task.interface';
|
|
5
19
|
import { TimeSeries, TimeSeriesValue } from '../timeseries.interface';
|
|
20
|
+
import { VaultSecret } from '../vault.interface';
|
|
6
21
|
import { AssetMockService } from './asset.mock.service';
|
|
7
22
|
import { AssetTypesMockService } from './assetTypes.mock.service';
|
|
8
23
|
import { ContentMockService } from './content.mock.service';
|
|
9
|
-
import { Endpoint } from '../endpoint.interface';
|
|
10
24
|
import { EndpointMockService } from './endpoint.mock.service';
|
|
11
|
-
import { Event } from '../events.interface';
|
|
12
25
|
import { EventsMockService } from './events.mock.service';
|
|
26
|
+
import { LabelMockService } from './label.mock.service';
|
|
27
|
+
import { NotificationMockService } from './notification.mock.service';
|
|
13
28
|
import { SecretMockService } from './secret.mock.service';
|
|
14
|
-
import { Task } from '../task.interface';
|
|
15
|
-
import { TimeseriesMockService } from './timeseries.mock.service';
|
|
16
29
|
import { TaskMockService } from './task.mock.service';
|
|
30
|
+
import { TimeseriesMockService } from './timeseries.mock.service';
|
|
17
31
|
import { UserMockService } from './user.mock.service';
|
|
18
|
-
import { FlowDeploymentService } from '../flow-deployment.service';
|
|
19
|
-
import { FlowFunctionService } from '../flow-function.service';
|
|
20
|
-
import { FlowModuleService } from '../flow-module.service';
|
|
21
|
-
import { FlowService } from '../flow.service';
|
|
22
|
-
import { FlowDiagram, FlowDto, FlowRevision } from '../flow.interface';
|
|
23
|
-
import { FlowDeployment } from '../flow-deployment.interface';
|
|
24
|
-
import { FlowFunctionDto, FlowFunctionRevision } from '../flow-function.interface';
|
|
25
|
-
import { FlowModule } from '../flow-module.interface';
|
|
26
|
-
import { Artifact } from '../storage.interface';
|
|
27
|
-
import { LabelMockService } from './label.mock.service';
|
|
28
|
-
import { Label } from '../label.interface';
|
|
29
|
-
import { VaultSecret } from '../vault.interface';
|
|
30
32
|
import { VaultMockService } from './vault.mock.service';
|
|
31
|
-
import { Notification } from '../notification.interface';
|
|
32
|
-
import { NotificationMockService } from './notification.mock.service';
|
|
33
33
|
export declare class MockAPI implements API {
|
|
34
34
|
httpClient: any;
|
|
35
35
|
assets: AssetMockService;
|
|
@@ -2,8 +2,8 @@ import FormData from 'form-data';
|
|
|
2
2
|
import { Asset, AssetRevision, Attachment, EventCause, EventLevelOverride } from '../asset.interface';
|
|
3
3
|
import { AssetService } from '../asset.service';
|
|
4
4
|
import { Paginated, RequestParameter } from '../data.interface';
|
|
5
|
-
import { MockAPI } from './api.mock';
|
|
6
5
|
import { APIBaseMock } from './api-base.mock';
|
|
6
|
+
import { MockAPI } from './api.mock';
|
|
7
7
|
import { DataMockService } from './data.mock.service';
|
|
8
8
|
import { TrashMockService } from './trash.mock.service';
|
|
9
9
|
interface BaseService extends DataMockService<Asset>, TrashMockService<Asset> {
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import FormData from 'form-data';
|
|
2
1
|
import { Readable } from 'stream';
|
|
2
|
+
import FormData from 'form-data';
|
|
3
3
|
import { Content, ReturnType } from '../content.interface';
|
|
4
4
|
import { ContentService } from '../content.service';
|
|
5
5
|
import { Paginated, RequestParameter } from '../data.interface';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FlowDeploymentService } from '../flow-deployment.service';
|
|
2
1
|
import { FlowDeployment, FlowDeploymentMetrics, FlowDeploymentStatistic, FlowLog } from '../flow-deployment.interface';
|
|
2
|
+
import { FlowDeploymentService } from '../flow-deployment.service';
|
|
3
3
|
import { ResourceReference } from '../resource.interface';
|
|
4
|
-
import { MockAPI } from './api.mock';
|
|
5
4
|
import { APIBaseMock } from './api-base.mock';
|
|
5
|
+
import { MockAPI } from './api.mock';
|
|
6
6
|
import { DataMockService } from './data.mock.service';
|
|
7
7
|
import { TrashMockService } from './trash.mock.service';
|
|
8
8
|
interface BaseService extends DataMockService<FlowDeployment>, TrashMockService<FlowDeployment> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Paginated } from '../data.interface';
|
|
2
|
-
import { DataMockService } from './data.mock.service';
|
|
3
2
|
import { FlowFunctionDto, FlowFunctionRevision } from '../flow-function.interface';
|
|
4
3
|
import { FlowFunctionService } from '../flow-function.service';
|
|
4
|
+
import { DataMockService } from './data.mock.service';
|
|
5
5
|
export declare class FlowFunctionsMockService extends DataMockService<FlowFunctionDto> implements FlowFunctionService {
|
|
6
6
|
private revisions;
|
|
7
7
|
constructor(functions: FlowFunctionDto[], revisions: FlowFunctionRevision[]);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import FormData from 'form-data';
|
|
2
2
|
import { FlowModule } from '../flow-module.interface';
|
|
3
3
|
import { FlowModuleService } from '../flow-module.service';
|
|
4
4
|
import { Artifact } from '../storage.interface';
|
|
5
5
|
import { Replace } from './api.mock';
|
|
6
|
-
import
|
|
6
|
+
import { DataMockService } from './data.mock.service';
|
|
7
7
|
type ExtendedFlowModule = Replace<FlowModule, 'artifacts', Array<Artifact & {
|
|
8
8
|
path: string;
|
|
9
9
|
}>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Paginated, RequestParameter } from '../data.interface';
|
|
2
|
+
import { FlowDeployment } from '../flow-deployment.interface';
|
|
2
3
|
import { FlowDiagram, FlowDto, FlowRevision } from '../flow.interface';
|
|
3
4
|
import { FlowService } from '../flow.service';
|
|
4
|
-
import { FlowDeployment } from '../flow-deployment.interface';
|
|
5
5
|
import { APIBaseMock } from './api-base.mock';
|
|
6
6
|
import { DataMockService } from './data.mock.service';
|
|
7
7
|
import { TrashMockService } from './trash.mock.service';
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DataMockService } from './data.mock.service';
|
|
2
1
|
import { Label } from '../label.interface';
|
|
3
2
|
import { LabelService } from '../label.service';
|
|
3
|
+
import { DataMockService } from './data.mock.service';
|
|
4
4
|
export declare class LabelMockService extends DataMockService<Label> implements LabelService {
|
|
5
5
|
constructor(labels: Label[]);
|
|
6
6
|
count(): Promise<number>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DataMockService } from './data.mock.service';
|
|
2
1
|
import { Notification } from '../notification.interface';
|
|
3
2
|
import { NotificationService } from '../notification.service';
|
|
3
|
+
import { DataMockService } from './data.mock.service';
|
|
4
4
|
export declare class NotificationMockService extends DataMockService<Notification> implements NotificationService {
|
|
5
5
|
constructor(notifications: Notification[]);
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Paginated, RequestParameter } from '../data.interface';
|
|
1
2
|
import { Secret } from '../secret.interface';
|
|
2
3
|
import { SecretService } from '../secret.service';
|
|
3
|
-
import { Paginated, RequestParameter } from '../data.interface';
|
|
4
4
|
import { APIBaseMock } from './api-base.mock';
|
|
5
5
|
import { DataMockService } from './data.mock.service';
|
|
6
6
|
import { TrashMockService } from './trash.mock.service';
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TrashService } from '../trash.service';
|
|
2
1
|
import { Paginated, RequestParameter } from '../data.interface';
|
|
2
|
+
import { TrashService } from '../trash.service';
|
|
3
3
|
import { APIBaseMock } from './api-base.mock';
|
|
4
4
|
export declare class TrashMockService<T extends {
|
|
5
5
|
id?: string;
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DataMockService } from './data.mock.service';
|
|
2
1
|
import { VaultSecret } from '../vault.interface';
|
|
3
2
|
import { VaultService } from '../vault.service';
|
|
3
|
+
import { DataMockService } from './data.mock.service';
|
|
4
4
|
export declare class VaultMockService extends DataMockService<VaultSecret> implements VaultService {
|
|
5
5
|
constructor(secrets: VaultSecret[]);
|
|
6
6
|
getSecret(name: string, version?: number): Promise<string>;
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataService } from './data.service';
|
|
2
|
-
import { Notification } from './notification.interface';
|
|
3
2
|
import { HttpClient } from './http.service';
|
|
3
|
+
import { Notification } from './notification.interface';
|
|
4
4
|
export declare class NotificationService extends DataService<Notification> {
|
|
5
5
|
constructor(httpClient: HttpClient);
|
|
6
6
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|