@hahnpro/hpc-api 2025.12.0 → 2026.1.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/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/src/lib/api.d.ts +3 -0
- package/src/lib/api.js +2 -1
- package/src/lib/interfaces/index.d.ts +4 -2
- package/src/lib/interfaces/index.js +8 -1
- package/src/lib/interfaces/label.interface.d.ts +3 -1
- package/src/lib/interfaces/label.interface.js +2 -0
- package/src/lib/interfaces/resource.interface.d.ts +18 -0
- package/src/lib/interfaces/resource.interface.js +36 -1
- package/src/lib/interfaces/task.interface.d.ts +31 -12
- package/src/lib/interfaces/task.interface.js +21 -0
- package/src/lib/mock/alert.mock.service.d.ts +7 -1
- package/src/lib/mock/alert.mock.service.js +10 -1
- package/src/lib/mock/api.mock.js +3 -1
- package/src/lib/mock/asset.mock.service.d.ts +2 -2
- package/src/lib/mock/asset.mock.service.js +2 -1
- package/src/lib/mock/assetTypes.mock.service.d.ts +2 -2
- package/src/lib/mock/assetTypes.mock.service.js +2 -1
- package/src/lib/mock/content.mock.service.d.ts +2 -2
- package/src/lib/mock/content.mock.service.js +2 -1
- package/src/lib/mock/endpoint.mock.service.d.ts +8 -1
- package/src/lib/mock/endpoint.mock.service.js +11 -1
- package/src/lib/mock/event.mock.service.d.ts +8 -1
- package/src/lib/mock/event.mock.service.js +11 -1
- package/src/lib/mock/flow-deployment.mock.service.d.ts +2 -2
- package/src/lib/mock/flow-deployment.mock.service.js +2 -1
- package/src/lib/mock/flow-functions.mock.service.d.ts +7 -1
- package/src/lib/mock/flow-functions.mock.service.js +10 -1
- package/src/lib/mock/flow-modules.mock.service.d.ts +6 -2
- package/src/lib/mock/flow-modules.mock.service.js +10 -1
- package/src/lib/mock/flow.mock.service.d.ts +2 -2
- package/src/lib/mock/flow.mock.service.js +2 -1
- package/src/lib/mock/notification-rules.mock.service.d.ts +8 -1
- package/src/lib/mock/notification-rules.mock.service.js +11 -1
- package/src/lib/mock/organizations-administration.mock.service.d.ts +2 -2
- package/src/lib/mock/organizations-administration.mock.service.js +2 -2
- package/src/lib/mock/share.mock.service.d.ts +2 -2
- package/src/lib/mock/share.mock.service.js +1 -1
- package/src/lib/mock/task.mock.service.d.ts +2 -2
- package/src/lib/mock/task.mock.service.js +3 -2
- package/src/lib/mock/timeseries.mock.service.d.ts +4 -2
- package/src/lib/mock/timeseries.mock.service.js +1 -1
- package/src/lib/mock/trash.mock.service.d.ts +1 -0
- package/src/lib/mock/trash.mock.service.js +3 -3
- package/src/lib/services/alert.service.d.ts +8 -1
- package/src/lib/services/alert.service.js +11 -1
- package/src/lib/services/asset.service.d.ts +2 -2
- package/src/lib/services/asset.service.js +2 -1
- package/src/lib/services/assettypes.service.d.ts +2 -1
- package/src/lib/services/assettypes.service.js +3 -1
- package/src/lib/services/content.service.d.ts +2 -2
- package/src/lib/services/content.service.js +2 -1
- package/src/lib/services/endpoint.service.d.ts +8 -2
- package/src/lib/services/endpoint.service.js +11 -1
- package/src/lib/services/event.service.d.ts +8 -2
- package/src/lib/services/event.service.js +11 -1
- package/src/lib/services/flow-deployment.service.d.ts +2 -2
- package/src/lib/services/flow-deployment.service.js +2 -1
- package/src/lib/services/flow-function.service.d.ts +8 -2
- package/src/lib/services/flow-function.service.js +11 -1
- package/src/lib/services/flow-module.service.d.ts +8 -2
- package/src/lib/services/flow-module.service.js +11 -1
- package/src/lib/services/flow.service.d.ts +2 -2
- package/src/lib/services/flow.service.js +2 -1
- package/src/lib/services/http-client.service.d.ts +11 -2
- package/src/lib/services/http-client.service.js +33 -14
- package/src/lib/services/notification-rule.service.d.ts +8 -2
- package/src/lib/services/notification-rule.service.js +11 -1
- package/src/lib/services/organizations-administration.service.d.ts +4 -4
- package/src/lib/services/organizations-administration.service.js +5 -5
- package/src/lib/services/share.service.d.ts +2 -2
- package/src/lib/services/share.service.js +2 -2
- package/src/lib/services/task.service.d.ts +2 -2
- package/src/lib/services/task.service.js +2 -1
- package/src/lib/services/timeseries.service.d.ts +2 -2
- package/src/lib/services/timeseries.service.js +2 -1
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NotificationRuleService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ts_mixer_1 = require("ts-mixer");
|
|
6
|
+
const _1 = require(".");
|
|
7
|
+
const api_base_1 = require("../api-base");
|
|
4
8
|
const share_service_1 = require("./share.service");
|
|
5
|
-
class
|
|
9
|
+
let BaseService = class BaseService extends api_base_1.APIBase {
|
|
10
|
+
};
|
|
11
|
+
BaseService = tslib_1.__decorate([
|
|
12
|
+
(0, ts_mixer_1.mix)(_1.DataService, share_service_1.ShareService)
|
|
13
|
+
], BaseService);
|
|
14
|
+
/* eslint-enable @typescript-eslint/no-unsafe-declaration-merging */
|
|
15
|
+
class NotificationRuleService extends BaseService {
|
|
6
16
|
constructor(httpClient) {
|
|
7
17
|
super(httpClient, '/notification/rules');
|
|
8
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { APIBase } from '../api-base';
|
|
3
|
-
import { Filter, Organization, OrganizationCreateDto,
|
|
3
|
+
import { Filter, Organization, OrganizationCreateDto, OrganizationResourcesProgress, OrganizationSearchQuery, Paginated, RequestParameter, ServerSentEvent, SubscriptionType, UserWithOrgRoles } from '../interfaces';
|
|
4
4
|
import { HttpClientService } from './';
|
|
5
5
|
/**
|
|
6
6
|
* Service for managing organizations with administrative privileges (superuser role required).
|
|
@@ -42,12 +42,12 @@ export declare class OrganizationsAdministrationService extends APIBase {
|
|
|
42
42
|
* The owner of the organization can be either the user or the service account 'organization-client', depending on the 'createOrgAsOwner' flag in the OrganizationCreateFlowDto.
|
|
43
43
|
*
|
|
44
44
|
* @param {OrganizationCreateDto} organizationCreateDto - The data transfer object containing the organization details for creation
|
|
45
|
-
* @param {string}
|
|
46
|
-
* @param {
|
|
45
|
+
* @param {string[]} emailsToInvite - The email addresses of the users to be invited to the organization
|
|
46
|
+
* @param {string[]} emailsToAdd - The email addresses of the users to be added without an invitation to the organization
|
|
47
47
|
* @param {boolean} createOrgAsOwner - Whether to create the organization with the user as the owner
|
|
48
48
|
* @returns {Promise<Organization>} - An promise of the created organization
|
|
49
49
|
*/
|
|
50
|
-
createOrganization(organizationCreateDto: OrganizationCreateDto,
|
|
50
|
+
createOrganization(organizationCreateDto: OrganizationCreateDto, emailsToInvite: string[], emailsToAdd: string[], createOrgAsOwner?: boolean): Promise<Organization>;
|
|
51
51
|
addOrganizationMembers(id: string, usersWithOrgRoles: UserWithOrgRoles[]): Promise<void>;
|
|
52
52
|
addSubscriptionToOrganization(id: string, type: SubscriptionType): Promise<Organization>;
|
|
53
53
|
/**
|
|
@@ -57,16 +57,16 @@ class OrganizationsAdministrationService extends api_base_1.APIBase {
|
|
|
57
57
|
* The owner of the organization can be either the user or the service account 'organization-client', depending on the 'createOrgAsOwner' flag in the OrganizationCreateFlowDto.
|
|
58
58
|
*
|
|
59
59
|
* @param {OrganizationCreateDto} organizationCreateDto - The data transfer object containing the organization details for creation
|
|
60
|
-
* @param {string}
|
|
61
|
-
* @param {
|
|
60
|
+
* @param {string[]} emailsToInvite - The email addresses of the users to be invited to the organization
|
|
61
|
+
* @param {string[]} emailsToAdd - The email addresses of the users to be added without an invitation to the organization
|
|
62
62
|
* @param {boolean} createOrgAsOwner - Whether to create the organization with the user as the owner
|
|
63
63
|
* @returns {Promise<Organization>} - An promise of the created organization
|
|
64
64
|
*/
|
|
65
|
-
createOrganization(organizationCreateDto,
|
|
65
|
+
createOrganization(organizationCreateDto, emailsToInvite, emailsToAdd, createOrgAsOwner = false) {
|
|
66
66
|
return this.httpClient.post(`${this.basePath}/create-org`, {
|
|
67
67
|
organizationDto: organizationCreateDto,
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
emailsToInvite,
|
|
69
|
+
emailsToAdd,
|
|
70
70
|
createOrgAsOwner,
|
|
71
71
|
});
|
|
72
72
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { APIBase } from '../api-base';
|
|
1
2
|
import { OrgResourcePermission, SharedResources, TokenOption } from '../interfaces';
|
|
2
|
-
|
|
3
|
-
export declare class ShareService<T> extends DataService<T> {
|
|
3
|
+
export declare class ShareService extends APIBase {
|
|
4
4
|
getBasePath(): string;
|
|
5
5
|
cancelAccess(id: string, options?: TokenOption): Promise<void>;
|
|
6
6
|
share(ids: string[], orgResourcePermissions: OrgResourcePermission[], connectedResourcesToShare?: SharedResources, sourceIds?: string[], sourceType?: string, options?: TokenOption): Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ShareService = void 0;
|
|
4
|
-
const
|
|
5
|
-
class ShareService extends
|
|
4
|
+
const api_base_1 = require("../api-base");
|
|
5
|
+
class ShareService extends api_base_1.APIBase {
|
|
6
6
|
getBasePath() {
|
|
7
7
|
return this.basePath;
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HttpClientService, TrashService } from '.';
|
|
1
|
+
import { DataService, HttpClientService, TrashService } from '.';
|
|
2
2
|
import { APIBase } from '../api-base';
|
|
3
3
|
import { LogbookEntry, LogbookEntryDto, Paginated, Task, TokenOption } from '../interfaces';
|
|
4
4
|
import { ShareService } from './share.service';
|
|
5
|
-
interface BaseService extends
|
|
5
|
+
interface BaseService extends DataService<Task>, ShareService, TrashService<Task> {
|
|
6
6
|
}
|
|
7
7
|
declare class BaseService extends APIBase {
|
|
8
8
|
}
|
|
@@ -9,8 +9,9 @@ const share_service_1 = require("./share.service");
|
|
|
9
9
|
let BaseService = class BaseService extends api_base_1.APIBase {
|
|
10
10
|
};
|
|
11
11
|
BaseService = tslib_1.__decorate([
|
|
12
|
-
(0, ts_mixer_1.mix)(share_service_1.ShareService, _1.TrashService)
|
|
12
|
+
(0, ts_mixer_1.mix)(_1.DataService, share_service_1.ShareService, _1.TrashService)
|
|
13
13
|
], BaseService);
|
|
14
|
+
/* eslint-enable @typescript-eslint/no-unsafe-declaration-merging */
|
|
14
15
|
class TaskService extends BaseService {
|
|
15
16
|
constructor(httpClient) {
|
|
16
17
|
super(httpClient, '/tasks');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HttpClientService, TrashService } from '.';
|
|
1
|
+
import { DataService, HttpClientService, TrashService } from '.';
|
|
2
2
|
import { APIBase } from '../api-base';
|
|
3
3
|
import { Paginated, TimeSeries, TimeSeriesValue, TokenOption, TS_GROUPS } from '../interfaces';
|
|
4
4
|
import { ShareService } from './share.service';
|
|
5
|
-
interface BaseService extends
|
|
5
|
+
interface BaseService extends DataService<TimeSeries>, ShareService, TrashService<TimeSeries> {
|
|
6
6
|
}
|
|
7
7
|
declare class BaseService extends APIBase {
|
|
8
8
|
}
|
|
@@ -9,8 +9,9 @@ const share_service_1 = require("./share.service");
|
|
|
9
9
|
let BaseService = class BaseService extends api_base_1.APIBase {
|
|
10
10
|
};
|
|
11
11
|
BaseService = tslib_1.__decorate([
|
|
12
|
-
(0, ts_mixer_1.mix)(share_service_1.ShareService, _1.TrashService)
|
|
12
|
+
(0, ts_mixer_1.mix)(_1.DataService, share_service_1.ShareService, _1.TrashService)
|
|
13
13
|
], BaseService);
|
|
14
|
+
/* eslint-enable @typescript-eslint/no-unsafe-declaration-merging */
|
|
14
15
|
class TimeSeriesService extends BaseService {
|
|
15
16
|
constructor(httpClient) {
|
|
16
17
|
super(httpClient, '/tsm');
|