@hahnpro/hpc-api 2026.9.9 → 2026.9.10
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 +4 -0
- package/package.json +1 -1
- package/src/lib/interfaces/ai.interface.d.ts +25 -7
- package/src/lib/interfaces/ai.interface.js +6 -0
- package/src/lib/interfaces/authz/capability-bundle.interface.d.ts +8 -2
- package/src/lib/interfaces/authz/capability-bundle.interface.js +11 -1
- package/src/lib/interfaces/authz/capability.interface.d.ts +13 -11
- package/src/lib/interfaces/authz/capability.interface.js +19 -13
- package/src/lib/interfaces/authz/feature.interface.d.ts +6 -2
- package/src/lib/interfaces/authz/feature.interface.js +9 -2
- package/src/lib/interfaces/authz/plan.interface.d.ts +6 -2
- package/src/lib/interfaces/authz/plan.interface.js +5 -1
- package/src/lib/interfaces/index.d.ts +1 -1
- package/src/lib/interfaces/nats.interface.d.ts +10 -0
- package/src/lib/interfaces/nats.interface.js +10 -0
- package/src/lib/mock/authz/authorization.mock.service.d.ts +10 -0
- package/src/lib/mock/authz/authorization.mock.service.js +22 -0
- package/src/lib/mock/authz/authz.mock.service.d.ts +2 -6
- package/src/lib/mock/authz/authz.mock.service.js +2 -6
- package/src/lib/mock/authz/org-group-capability-bundle.mock.service.d.ts +4 -4
- package/src/lib/mock/authz/org-group-capability-bundle.mock.service.js +4 -4
- package/src/lib/mock/authz/org-group-capability.mock.service.d.ts +4 -4
- package/src/lib/mock/authz/org-group-capability.mock.service.js +4 -4
- package/src/lib/mock/authz/org-group-member.mock.service.d.ts +3 -3
- package/src/lib/mock/authz/org-group-member.mock.service.js +3 -3
- package/src/lib/mock/authz/org-group.mock.service.d.ts +5 -5
- package/src/lib/mock/authz/org-group.mock.service.js +5 -5
- package/src/lib/mock/authz/org-subscription.mock.service.d.ts +2 -5
- package/src/lib/mock/authz/org-subscription.mock.service.js +2 -11
- package/src/lib/mock/timeseries.mock.service.d.ts +1 -1
- package/src/lib/mock/timeseries.mock.service.js +4 -3
- package/src/lib/services/authz/authorization.service.d.ts +11 -0
- package/src/lib/services/authz/authorization.service.js +22 -0
- package/src/lib/services/authz/authz.service.d.ts +2 -6
- package/src/lib/services/authz/authz.service.js +2 -6
- package/src/lib/services/authz/org-group-capability-bundle.service.d.ts +5 -4
- package/src/lib/services/authz/org-group-capability-bundle.service.js +11 -8
- package/src/lib/services/authz/org-group-capability.service.d.ts +5 -4
- package/src/lib/services/authz/org-group-capability.service.js +11 -8
- package/src/lib/services/authz/org-group-member.service.d.ts +4 -3
- package/src/lib/services/authz/org-group-member.service.js +9 -6
- package/src/lib/services/authz/org-group.service.d.ts +6 -5
- package/src/lib/services/authz/org-group.service.js +10 -10
- package/src/lib/services/authz/org-subscription.service.d.ts +4 -6
- package/src/lib/services/authz/org-subscription.service.js +4 -13
- package/src/lib/services/timeseries.service.d.ts +1 -1
- package/src/lib/services/timeseries.service.js +2 -2
- package/src/lib/mock/authz/capability-bundle.mock.service.d.ts +0 -6
- package/src/lib/mock/authz/capability-bundle.mock.service.js +0 -13
- package/src/lib/mock/authz/capability.mock.service.d.ts +0 -6
- package/src/lib/mock/authz/capability.mock.service.js +0 -13
- package/src/lib/mock/authz/user-capabilities-and-permissions.mock.service.d.ts +0 -9
- package/src/lib/mock/authz/user-capabilities-and-permissions.mock.service.js +0 -16
- package/src/lib/services/authz/capability-bundle.service.d.ts +0 -7
- package/src/lib/services/authz/capability-bundle.service.js +0 -13
- package/src/lib/services/authz/capability.service.d.ts +0 -7
- package/src/lib/services/authz/capability.service.js +0 -13
- package/src/lib/services/authz/user-capabilities-and-permissions.service.d.ts +0 -9
- package/src/lib/services/authz/user-capabilities-and-permissions.service.js +0 -16
|
@@ -6,16 +6,16 @@ class OrgGroupCapabilityBundleMockService extends api_base_mock_1.APIBaseMock {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
super(null);
|
|
8
8
|
}
|
|
9
|
-
getOrgGroupCapabilityBundles() {
|
|
9
|
+
getOrgGroupCapabilityBundles(..._args) {
|
|
10
10
|
throw new Error('Method not implemented.');
|
|
11
11
|
}
|
|
12
|
-
getOrgGroupCapabilityBundle() {
|
|
12
|
+
getOrgGroupCapabilityBundle(..._args) {
|
|
13
13
|
throw new Error('Method not implemented.');
|
|
14
14
|
}
|
|
15
|
-
createOrgGroupCapabilityBundle() {
|
|
15
|
+
createOrgGroupCapabilityBundle(..._args) {
|
|
16
16
|
throw new Error('Method not implemented.');
|
|
17
17
|
}
|
|
18
|
-
deleteOrgGroupCapabilityBundle() {
|
|
18
|
+
deleteOrgGroupCapabilityBundle(..._args) {
|
|
19
19
|
throw new Error('Method not implemented.');
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -2,8 +2,8 @@ import { APIBaseMock } from '../../mock/api-base.mock';
|
|
|
2
2
|
import { OrgGroupCapabilityService } from '../../services/authz/org-group-capability.service';
|
|
3
3
|
export declare class OrgGroupCapabilityMockService extends APIBaseMock<never> implements OrgGroupCapabilityService {
|
|
4
4
|
constructor();
|
|
5
|
-
getOrgGroupCapabilities(): ReturnType<OrgGroupCapabilityService['getOrgGroupCapabilities']>;
|
|
6
|
-
getOrgGroupCapability(): ReturnType<OrgGroupCapabilityService['getOrgGroupCapability']>;
|
|
7
|
-
createOrgGroupCapability(): ReturnType<OrgGroupCapabilityService['createOrgGroupCapability']>;
|
|
8
|
-
deleteOrgGroupCapability(): ReturnType<OrgGroupCapabilityService['deleteOrgGroupCapability']>;
|
|
5
|
+
getOrgGroupCapabilities(..._args: Parameters<OrgGroupCapabilityService['getOrgGroupCapabilities']>): ReturnType<OrgGroupCapabilityService['getOrgGroupCapabilities']>;
|
|
6
|
+
getOrgGroupCapability(..._args: Parameters<OrgGroupCapabilityService['getOrgGroupCapability']>): ReturnType<OrgGroupCapabilityService['getOrgGroupCapability']>;
|
|
7
|
+
createOrgGroupCapability(..._args: Parameters<OrgGroupCapabilityService['createOrgGroupCapability']>): ReturnType<OrgGroupCapabilityService['createOrgGroupCapability']>;
|
|
8
|
+
deleteOrgGroupCapability(..._args: Parameters<OrgGroupCapabilityService['deleteOrgGroupCapability']>): ReturnType<OrgGroupCapabilityService['deleteOrgGroupCapability']>;
|
|
9
9
|
}
|
|
@@ -6,16 +6,16 @@ class OrgGroupCapabilityMockService extends api_base_mock_1.APIBaseMock {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
super(null);
|
|
8
8
|
}
|
|
9
|
-
getOrgGroupCapabilities() {
|
|
9
|
+
getOrgGroupCapabilities(..._args) {
|
|
10
10
|
throw new Error('Method not implemented.');
|
|
11
11
|
}
|
|
12
|
-
getOrgGroupCapability() {
|
|
12
|
+
getOrgGroupCapability(..._args) {
|
|
13
13
|
throw new Error('Method not implemented.');
|
|
14
14
|
}
|
|
15
|
-
createOrgGroupCapability() {
|
|
15
|
+
createOrgGroupCapability(..._args) {
|
|
16
16
|
throw new Error('Method not implemented.');
|
|
17
17
|
}
|
|
18
|
-
deleteOrgGroupCapability() {
|
|
18
|
+
deleteOrgGroupCapability(..._args) {
|
|
19
19
|
throw new Error('Method not implemented.');
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -2,7 +2,7 @@ import { APIBaseMock } from '../../mock/api-base.mock';
|
|
|
2
2
|
import { OrgGroupMemberService } from '../../services/authz/org-group-member.service';
|
|
3
3
|
export declare class OrgGroupMemberMockService extends APIBaseMock<never> implements OrgGroupMemberService {
|
|
4
4
|
constructor();
|
|
5
|
-
getOrgGroupMembers(): ReturnType<OrgGroupMemberService['getOrgGroupMembers']>;
|
|
6
|
-
addUserToOrgGroup(): ReturnType<OrgGroupMemberService['addUserToOrgGroup']>;
|
|
7
|
-
removeUserFromOrgGroup(): ReturnType<OrgGroupMemberService['removeUserFromOrgGroup']>;
|
|
5
|
+
getOrgGroupMembers(..._args: Parameters<OrgGroupMemberService['getOrgGroupMembers']>): ReturnType<OrgGroupMemberService['getOrgGroupMembers']>;
|
|
6
|
+
addUserToOrgGroup(..._args: Parameters<OrgGroupMemberService['addUserToOrgGroup']>): ReturnType<OrgGroupMemberService['addUserToOrgGroup']>;
|
|
7
|
+
removeUserFromOrgGroup(..._args: Parameters<OrgGroupMemberService['removeUserFromOrgGroup']>): ReturnType<OrgGroupMemberService['removeUserFromOrgGroup']>;
|
|
8
8
|
}
|
|
@@ -6,13 +6,13 @@ class OrgGroupMemberMockService extends api_base_mock_1.APIBaseMock {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
super(null);
|
|
8
8
|
}
|
|
9
|
-
getOrgGroupMembers() {
|
|
9
|
+
getOrgGroupMembers(..._args) {
|
|
10
10
|
throw new Error('Method not implemented.');
|
|
11
11
|
}
|
|
12
|
-
addUserToOrgGroup() {
|
|
12
|
+
addUserToOrgGroup(..._args) {
|
|
13
13
|
throw new Error('Method not implemented.');
|
|
14
14
|
}
|
|
15
|
-
removeUserFromOrgGroup() {
|
|
15
|
+
removeUserFromOrgGroup(..._args) {
|
|
16
16
|
throw new Error('Method not implemented.');
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -2,9 +2,9 @@ import { APIBaseMock } from '../../mock/api-base.mock';
|
|
|
2
2
|
import { OrgGroupService } from '../../services/authz/org-group.service';
|
|
3
3
|
export declare class OrgGroupMockService extends APIBaseMock<never> implements OrgGroupService {
|
|
4
4
|
constructor();
|
|
5
|
-
|
|
6
|
-
getOrgGroupById(): ReturnType<OrgGroupService['getOrgGroupById']>;
|
|
7
|
-
createOrgGroup(): ReturnType<OrgGroupService['createOrgGroup']>;
|
|
8
|
-
updateOrgGroup(): ReturnType<OrgGroupService['updateOrgGroup']>;
|
|
9
|
-
deleteOrgGroup(): ReturnType<OrgGroupService['deleteOrgGroup']>;
|
|
5
|
+
getOrgGroupsOfUsersActiveOrg(..._args: Parameters<OrgGroupService['getOrgGroupsOfUsersActiveOrg']>): ReturnType<OrgGroupService['getOrgGroupsOfUsersActiveOrg']>;
|
|
6
|
+
getOrgGroupById(..._args: Parameters<OrgGroupService['getOrgGroupById']>): ReturnType<OrgGroupService['getOrgGroupById']>;
|
|
7
|
+
createOrgGroup(..._args: Parameters<OrgGroupService['createOrgGroup']>): ReturnType<OrgGroupService['createOrgGroup']>;
|
|
8
|
+
updateOrgGroup(..._args: Parameters<OrgGroupService['updateOrgGroup']>): ReturnType<OrgGroupService['updateOrgGroup']>;
|
|
9
|
+
deleteOrgGroup(..._args: Parameters<OrgGroupService['deleteOrgGroup']>): ReturnType<OrgGroupService['deleteOrgGroup']>;
|
|
10
10
|
}
|
|
@@ -6,19 +6,19 @@ class OrgGroupMockService extends api_base_mock_1.APIBaseMock {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
super(null);
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
getOrgGroupsOfUsersActiveOrg(..._args) {
|
|
10
10
|
throw new Error('Method not implemented.');
|
|
11
11
|
}
|
|
12
|
-
getOrgGroupById() {
|
|
12
|
+
getOrgGroupById(..._args) {
|
|
13
13
|
throw new Error('Method not implemented.');
|
|
14
14
|
}
|
|
15
|
-
createOrgGroup() {
|
|
15
|
+
createOrgGroup(..._args) {
|
|
16
16
|
throw new Error('Method not implemented.');
|
|
17
17
|
}
|
|
18
|
-
updateOrgGroup() {
|
|
18
|
+
updateOrgGroup(..._args) {
|
|
19
19
|
throw new Error('Method not implemented.');
|
|
20
20
|
}
|
|
21
|
-
deleteOrgGroup() {
|
|
21
|
+
deleteOrgGroup(..._args) {
|
|
22
22
|
throw new Error('Method not implemented.');
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -2,9 +2,6 @@ import { APIBaseMock } from '../../mock/api-base.mock';
|
|
|
2
2
|
import { OrgSubscriptionService } from '../../services/authz/org-subscription.service';
|
|
3
3
|
export declare class OrgSubscriptionMockService extends APIBaseMock<never> implements OrgSubscriptionService {
|
|
4
4
|
constructor();
|
|
5
|
-
getOrgSubscriptionsByOrgId(): ReturnType<OrgSubscriptionService['getOrgSubscriptionsByOrgId']>;
|
|
6
|
-
getOrgSubscriptionById(): ReturnType<OrgSubscriptionService['getOrgSubscriptionById']>;
|
|
7
|
-
createOrgSubscription(): ReturnType<OrgSubscriptionService['createOrgSubscription']>;
|
|
8
|
-
updateOrgSubscription(): ReturnType<OrgSubscriptionService['updateOrgSubscription']>;
|
|
9
|
-
deleteOrgSubscription(): ReturnType<OrgSubscriptionService['deleteOrgSubscription']>;
|
|
5
|
+
getOrgSubscriptionsByOrgId(..._args: Parameters<OrgSubscriptionService['getOrgSubscriptionsByOrgId']>): ReturnType<OrgSubscriptionService['getOrgSubscriptionsByOrgId']>;
|
|
6
|
+
getOrgSubscriptionById(..._args: Parameters<OrgSubscriptionService['getOrgSubscriptionById']>): ReturnType<OrgSubscriptionService['getOrgSubscriptionById']>;
|
|
10
7
|
}
|
|
@@ -6,19 +6,10 @@ class OrgSubscriptionMockService extends api_base_mock_1.APIBaseMock {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
super(null);
|
|
8
8
|
}
|
|
9
|
-
getOrgSubscriptionsByOrgId() {
|
|
9
|
+
getOrgSubscriptionsByOrgId(..._args) {
|
|
10
10
|
throw new Error('Method not implemented.');
|
|
11
11
|
}
|
|
12
|
-
getOrgSubscriptionById() {
|
|
13
|
-
throw new Error('Method not implemented.');
|
|
14
|
-
}
|
|
15
|
-
createOrgSubscription() {
|
|
16
|
-
throw new Error('Method not implemented.');
|
|
17
|
-
}
|
|
18
|
-
updateOrgSubscription() {
|
|
19
|
-
throw new Error('Method not implemented.');
|
|
20
|
-
}
|
|
21
|
-
deleteOrgSubscription() {
|
|
12
|
+
getOrgSubscriptionById(..._args) {
|
|
22
13
|
throw new Error('Method not implemented.');
|
|
23
14
|
}
|
|
24
15
|
}
|
|
@@ -51,7 +51,7 @@ export declare class TimeseriesMockService extends BaseService implements TimeSe
|
|
|
51
51
|
getManyByAsset(assetId: string, names?: string[]): Promise<Paginated<TimeSeries>>;
|
|
52
52
|
getMostRecentValue(id: string, before: Date): Promise<TimeSeriesValue>;
|
|
53
53
|
getValues(id: string, from: number, limit?: number, group?: TS_GROUPS): Promise<TimeSeriesValue[]>;
|
|
54
|
-
getValuesOfPeriod(id: string, from: number, to: number, group?: TS_GROUPS): Promise<TimeSeriesValue[]>;
|
|
54
|
+
getValuesOfPeriod(id: string, from: number, to: number, group?: TS_GROUPS, _options?: {}, limit?: number): Promise<TimeSeriesValue[]>;
|
|
55
55
|
getMostRecentTimeSeriesValueByAssetAndTimeSeriesName(assetId: string, timeSeriesNames: string[]): Promise<Record<string, any>>;
|
|
56
56
|
}
|
|
57
57
|
export {};
|
|
@@ -126,15 +126,16 @@ class TimeseriesMockService extends BaseService {
|
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
128
|
async getValues(id, from, limit, group) {
|
|
129
|
-
let timeSeriesValues = await this.getValuesOfPeriod(id, from, new Date().valueOf(), group);
|
|
129
|
+
let timeSeriesValues = await this.getValuesOfPeriod(id, from, new Date().valueOf(), group, {}, limit);
|
|
130
130
|
if (limit) {
|
|
131
131
|
timeSeriesValues = timeSeriesValues.slice(0, limit);
|
|
132
132
|
}
|
|
133
133
|
return timeSeriesValues;
|
|
134
134
|
}
|
|
135
|
-
async getValuesOfPeriod(id, from, to, group) {
|
|
135
|
+
async getValuesOfPeriod(id, from, to, group, _options = {}, limit) {
|
|
136
136
|
const ts = await this.getOne(id, {});
|
|
137
|
-
|
|
137
|
+
const values = ts.data.filter((v) => v.timestamp < to && v.timestamp > from);
|
|
138
|
+
return limit ? values.slice(0, limit) : values;
|
|
138
139
|
}
|
|
139
140
|
getMostRecentTimeSeriesValueByAssetAndTimeSeriesName(assetId, timeSeriesNames) {
|
|
140
141
|
const result = Object.fromEntries(timeSeriesNames.map((name) => [name, '']));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { APIBase } from '../../api-base';
|
|
2
|
+
import { CapabilityId, Permission, TokenOption } from '../../interfaces';
|
|
3
|
+
import type { Capability, CapabilityBundle, SqlPagination } from '../../interfaces/authz';
|
|
4
|
+
import { HttpClientService } from '../http-client.service';
|
|
5
|
+
export declare class AuthorizationService extends APIBase {
|
|
6
|
+
constructor(httpClient: HttpClientService);
|
|
7
|
+
getOrgCapabilitiesForActiveSubscription(sqlPagination?: SqlPagination, options?: TokenOption): Promise<Capability[]>;
|
|
8
|
+
getOrgCapabilityBundlesForActiveSubscription(sqlPagination?: SqlPagination, options?: TokenOption): Promise<CapabilityBundle[]>;
|
|
9
|
+
getCapabilitiesForUsersActiveOrg(options?: TokenOption): Promise<CapabilityId[]>;
|
|
10
|
+
getPermissionsForUsersActiveOrg(options?: TokenOption): Promise<Permission[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthorizationService = void 0;
|
|
4
|
+
const api_base_1 = require("../../api-base");
|
|
5
|
+
class AuthorizationService extends api_base_1.APIBase {
|
|
6
|
+
constructor(httpClient) {
|
|
7
|
+
super(httpClient, '/authz/authorization');
|
|
8
|
+
}
|
|
9
|
+
getOrgCapabilitiesForActiveSubscription(sqlPagination = {}, options = {}) {
|
|
10
|
+
return this.httpClient.get(`${this.basePath}/org/capabilities`, { ...options, params: sqlPagination });
|
|
11
|
+
}
|
|
12
|
+
getOrgCapabilityBundlesForActiveSubscription(sqlPagination = {}, options = {}) {
|
|
13
|
+
return this.httpClient.get(`${this.basePath}/org/capability-bundles`, { ...options, params: sqlPagination });
|
|
14
|
+
}
|
|
15
|
+
getCapabilitiesForUsersActiveOrg(options = {}) {
|
|
16
|
+
return this.httpClient.get(`${this.basePath}/user/capabilities`, options);
|
|
17
|
+
}
|
|
18
|
+
getPermissionsForUsersActiveOrg(options = {}) {
|
|
19
|
+
return this.httpClient.get(`${this.basePath}/user/permissions`, options);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.AuthorizationService = AuthorizationService;
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import { APIBase } from '../../api-base';
|
|
2
2
|
import { HttpClientService } from '../http-client.service';
|
|
3
|
-
import {
|
|
4
|
-
import { CapabilityService } from './capability.service';
|
|
3
|
+
import { AuthorizationService } from './authorization.service';
|
|
5
4
|
import { OrgGroupCapabilityBundleService } from './org-group-capability-bundle.service';
|
|
6
5
|
import { OrgGroupCapabilityService } from './org-group-capability.service';
|
|
7
6
|
import { OrgGroupMemberService } from './org-group-member.service';
|
|
8
7
|
import { OrgGroupService } from './org-group.service';
|
|
9
8
|
import { OrgSubscriptionService } from './org-subscription.service';
|
|
10
|
-
import { UserCapabilitiesAndPermissionsService } from './user-capabilities-and-permissions.service';
|
|
11
9
|
export declare class AuthzService extends APIBase {
|
|
12
|
-
readonly
|
|
13
|
-
readonly capabilityBundles: CapabilityBundleService;
|
|
10
|
+
readonly authorization: AuthorizationService;
|
|
14
11
|
readonly orgGroups: OrgGroupService;
|
|
15
12
|
readonly orgGroupCapabilities: OrgGroupCapabilityService;
|
|
16
13
|
readonly orgGroupCapabilityBundles: OrgGroupCapabilityBundleService;
|
|
17
14
|
readonly orgGroupMembers: OrgGroupMemberService;
|
|
18
15
|
readonly orgSubscriptions: OrgSubscriptionService;
|
|
19
|
-
readonly userCapabilitiesAndPermissions: UserCapabilitiesAndPermissionsService;
|
|
20
16
|
constructor(httpClient: HttpClientService);
|
|
21
17
|
}
|
|
@@ -2,25 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AuthzService = void 0;
|
|
4
4
|
const api_base_1 = require("../../api-base");
|
|
5
|
-
const
|
|
6
|
-
const capability_service_1 = require("./capability.service");
|
|
5
|
+
const authorization_service_1 = require("./authorization.service");
|
|
7
6
|
const org_group_capability_bundle_service_1 = require("./org-group-capability-bundle.service");
|
|
8
7
|
const org_group_capability_service_1 = require("./org-group-capability.service");
|
|
9
8
|
const org_group_member_service_1 = require("./org-group-member.service");
|
|
10
9
|
const org_group_service_1 = require("./org-group.service");
|
|
11
10
|
const org_subscription_service_1 = require("./org-subscription.service");
|
|
12
|
-
const user_capabilities_and_permissions_service_1 = require("./user-capabilities-and-permissions.service");
|
|
13
11
|
class AuthzService extends api_base_1.APIBase {
|
|
14
12
|
constructor(httpClient) {
|
|
15
13
|
super(httpClient, '/authz');
|
|
16
|
-
this.
|
|
17
|
-
this.capabilityBundles = new capability_bundle_service_1.CapabilityBundleService(httpClient);
|
|
14
|
+
this.authorization = new authorization_service_1.AuthorizationService(httpClient);
|
|
18
15
|
this.orgGroups = new org_group_service_1.OrgGroupService(httpClient);
|
|
19
16
|
this.orgGroupCapabilities = new org_group_capability_service_1.OrgGroupCapabilityService(httpClient);
|
|
20
17
|
this.orgGroupCapabilityBundles = new org_group_capability_bundle_service_1.OrgGroupCapabilityBundleService(httpClient);
|
|
21
18
|
this.orgGroupMembers = new org_group_member_service_1.OrgGroupMemberService(httpClient);
|
|
22
19
|
this.orgSubscriptions = new org_subscription_service_1.OrgSubscriptionService(httpClient);
|
|
23
|
-
this.userCapabilitiesAndPermissions = new user_capabilities_and_permissions_service_1.UserCapabilitiesAndPermissionsService(httpClient);
|
|
24
20
|
}
|
|
25
21
|
}
|
|
26
22
|
exports.AuthzService = AuthzService;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { APIBase } from '../../api-base';
|
|
2
|
+
import type { TokenOption } from '../../interfaces';
|
|
2
3
|
import type { CapabilityBundleId, CreateOrgGroupCapabilityBundle, OrgGroupCapabilityBundle, SqlPagination } from '../../interfaces/authz';
|
|
3
4
|
import { HttpClientService } from '../http-client.service';
|
|
4
5
|
export declare class OrgGroupCapabilityBundleService extends APIBase {
|
|
5
6
|
constructor(httpClient: HttpClientService);
|
|
6
|
-
getOrgGroupCapabilityBundles(orgGroupId: string, sqlPagination?: SqlPagination): Promise<OrgGroupCapabilityBundle[]>;
|
|
7
|
-
getOrgGroupCapabilityBundle(orgGroupId: string, capabilityBundleId: CapabilityBundleId): Promise<OrgGroupCapabilityBundle>;
|
|
8
|
-
createOrgGroupCapabilityBundle(createOrgGroupCapabilityBundle: CreateOrgGroupCapabilityBundle): Promise<OrgGroupCapabilityBundle>;
|
|
9
|
-
deleteOrgGroupCapabilityBundle(orgGroupId: string, capabilityBundleId: CapabilityBundleId): Promise<void>;
|
|
7
|
+
getOrgGroupCapabilityBundles(orgGroupId: string, sqlPagination?: SqlPagination, options?: TokenOption): Promise<OrgGroupCapabilityBundle[]>;
|
|
8
|
+
getOrgGroupCapabilityBundle(orgGroupId: string, capabilityBundleId: CapabilityBundleId, options?: TokenOption): Promise<OrgGroupCapabilityBundle>;
|
|
9
|
+
createOrgGroupCapabilityBundle(createOrgGroupCapabilityBundle: CreateOrgGroupCapabilityBundle, options?: TokenOption): Promise<OrgGroupCapabilityBundle>;
|
|
10
|
+
deleteOrgGroupCapabilityBundle(orgGroupId: string, capabilityBundleId: CapabilityBundleId, options?: TokenOption): Promise<void>;
|
|
10
11
|
}
|
|
@@ -6,17 +6,20 @@ class OrgGroupCapabilityBundleService extends api_base_1.APIBase {
|
|
|
6
6
|
constructor(httpClient) {
|
|
7
7
|
super(httpClient, '/authz/org-group-capabilities-bundles');
|
|
8
8
|
}
|
|
9
|
-
getOrgGroupCapabilityBundles(orgGroupId, sqlPagination = {}) {
|
|
10
|
-
return this.httpClient.get(`${this.basePath}/${orgGroupId}`, {
|
|
9
|
+
getOrgGroupCapabilityBundles(orgGroupId, sqlPagination = {}, options = {}) {
|
|
10
|
+
return this.httpClient.get(`${this.basePath}/${orgGroupId}`, {
|
|
11
|
+
...options,
|
|
12
|
+
params: sqlPagination,
|
|
13
|
+
});
|
|
11
14
|
}
|
|
12
|
-
getOrgGroupCapabilityBundle(orgGroupId, capabilityBundleId) {
|
|
13
|
-
return this.httpClient.get(`${this.basePath}/${orgGroupId}/${capabilityBundleId}
|
|
15
|
+
getOrgGroupCapabilityBundle(orgGroupId, capabilityBundleId, options = {}) {
|
|
16
|
+
return this.httpClient.get(`${this.basePath}/${orgGroupId}/${capabilityBundleId}`, options);
|
|
14
17
|
}
|
|
15
|
-
createOrgGroupCapabilityBundle(createOrgGroupCapabilityBundle) {
|
|
16
|
-
return this.httpClient.post(this.basePath, createOrgGroupCapabilityBundle);
|
|
18
|
+
createOrgGroupCapabilityBundle(createOrgGroupCapabilityBundle, options = {}) {
|
|
19
|
+
return this.httpClient.post(this.basePath, createOrgGroupCapabilityBundle, options);
|
|
17
20
|
}
|
|
18
|
-
deleteOrgGroupCapabilityBundle(orgGroupId, capabilityBundleId) {
|
|
19
|
-
return this.httpClient.delete(`${this.basePath}/${orgGroupId}/${capabilityBundleId}
|
|
21
|
+
deleteOrgGroupCapabilityBundle(orgGroupId, capabilityBundleId, options = {}) {
|
|
22
|
+
return this.httpClient.delete(`${this.basePath}/${orgGroupId}/${capabilityBundleId}`, options);
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
25
|
exports.OrgGroupCapabilityBundleService = OrgGroupCapabilityBundleService;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { APIBase } from '../../api-base';
|
|
2
|
+
import type { TokenOption } from '../../interfaces';
|
|
2
3
|
import type { CapabilityId, CreateOrgGroupCapability, OrgGroupCapability, SqlPagination } from '../../interfaces/authz';
|
|
3
4
|
import { HttpClientService } from '../http-client.service';
|
|
4
5
|
export declare class OrgGroupCapabilityService extends APIBase {
|
|
5
6
|
constructor(httpClient: HttpClientService);
|
|
6
|
-
getOrgGroupCapabilities(orgGroupId: string, sqlPagination?: SqlPagination): Promise<OrgGroupCapability[]>;
|
|
7
|
-
getOrgGroupCapability(orgGroupId: string, capabilityId: CapabilityId): Promise<OrgGroupCapability>;
|
|
8
|
-
createOrgGroupCapability(createOrgGroupCapability: CreateOrgGroupCapability): Promise<OrgGroupCapability>;
|
|
9
|
-
deleteOrgGroupCapability(orgGroupId: string, capabilityId: CapabilityId): Promise<void>;
|
|
7
|
+
getOrgGroupCapabilities(orgGroupId: string, sqlPagination?: SqlPagination, options?: TokenOption): Promise<OrgGroupCapability[]>;
|
|
8
|
+
getOrgGroupCapability(orgGroupId: string, capabilityId: CapabilityId, options?: TokenOption): Promise<OrgGroupCapability>;
|
|
9
|
+
createOrgGroupCapability(createOrgGroupCapability: CreateOrgGroupCapability, options?: TokenOption): Promise<OrgGroupCapability>;
|
|
10
|
+
deleteOrgGroupCapability(orgGroupId: string, capabilityId: CapabilityId, options?: TokenOption): Promise<void>;
|
|
10
11
|
}
|
|
@@ -6,17 +6,20 @@ class OrgGroupCapabilityService extends api_base_1.APIBase {
|
|
|
6
6
|
constructor(httpClient) {
|
|
7
7
|
super(httpClient, '/authz/org-group-capabilities');
|
|
8
8
|
}
|
|
9
|
-
getOrgGroupCapabilities(orgGroupId, sqlPagination = {}) {
|
|
10
|
-
return this.httpClient.get(`${this.basePath}/${orgGroupId}`, {
|
|
9
|
+
getOrgGroupCapabilities(orgGroupId, sqlPagination = {}, options = {}) {
|
|
10
|
+
return this.httpClient.get(`${this.basePath}/${orgGroupId}`, {
|
|
11
|
+
...options,
|
|
12
|
+
params: sqlPagination,
|
|
13
|
+
});
|
|
11
14
|
}
|
|
12
|
-
getOrgGroupCapability(orgGroupId, capabilityId) {
|
|
13
|
-
return this.httpClient.get(`${this.basePath}/${orgGroupId}/${capabilityId}
|
|
15
|
+
getOrgGroupCapability(orgGroupId, capabilityId, options = {}) {
|
|
16
|
+
return this.httpClient.get(`${this.basePath}/${orgGroupId}/${capabilityId}`, options);
|
|
14
17
|
}
|
|
15
|
-
createOrgGroupCapability(createOrgGroupCapability) {
|
|
16
|
-
return this.httpClient.post(this.basePath, createOrgGroupCapability);
|
|
18
|
+
createOrgGroupCapability(createOrgGroupCapability, options = {}) {
|
|
19
|
+
return this.httpClient.post(this.basePath, createOrgGroupCapability, options);
|
|
17
20
|
}
|
|
18
|
-
deleteOrgGroupCapability(orgGroupId, capabilityId) {
|
|
19
|
-
return this.httpClient.delete(`${this.basePath}/${orgGroupId}/${capabilityId}
|
|
21
|
+
deleteOrgGroupCapability(orgGroupId, capabilityId, options = {}) {
|
|
22
|
+
return this.httpClient.delete(`${this.basePath}/${orgGroupId}/${capabilityId}`, options);
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
25
|
exports.OrgGroupCapabilityService = OrgGroupCapabilityService;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { APIBase } from '../../api-base';
|
|
2
|
+
import type { TokenOption } from '../../interfaces';
|
|
2
3
|
import type { CreateOrgGroupMember, SqlPagination, SqlPaginationResult } from '../../interfaces/authz';
|
|
3
4
|
import { HttpClientService } from '../http-client.service';
|
|
4
5
|
export declare class OrgGroupMemberService extends APIBase {
|
|
5
6
|
constructor(httpClient: HttpClientService);
|
|
6
|
-
getOrgGroupMembers(orgGroupId: string, sqlPagination?: SqlPagination): Promise<SqlPaginationResult<string>>;
|
|
7
|
-
addUserToOrgGroup(createOrgGroupMember: CreateOrgGroupMember): Promise<void>;
|
|
8
|
-
removeUserFromOrgGroup(orgGroupId: string, userId: string): Promise<void>;
|
|
7
|
+
getOrgGroupMembers(orgGroupId: string, sqlPagination?: SqlPagination, options?: TokenOption): Promise<SqlPaginationResult<string>>;
|
|
8
|
+
addUserToOrgGroup(createOrgGroupMember: CreateOrgGroupMember, options?: TokenOption): Promise<void>;
|
|
9
|
+
removeUserFromOrgGroup(orgGroupId: string, userId: string, options?: TokenOption): Promise<void>;
|
|
9
10
|
}
|
|
@@ -6,14 +6,17 @@ class OrgGroupMemberService extends api_base_1.APIBase {
|
|
|
6
6
|
constructor(httpClient) {
|
|
7
7
|
super(httpClient, '/authz/org-group-members');
|
|
8
8
|
}
|
|
9
|
-
getOrgGroupMembers(orgGroupId, sqlPagination = {}) {
|
|
10
|
-
return this.httpClient.get(`${this.basePath}/${orgGroupId}`, {
|
|
9
|
+
getOrgGroupMembers(orgGroupId, sqlPagination = {}, options = {}) {
|
|
10
|
+
return this.httpClient.get(`${this.basePath}/${orgGroupId}`, {
|
|
11
|
+
...options,
|
|
12
|
+
params: sqlPagination,
|
|
13
|
+
});
|
|
11
14
|
}
|
|
12
|
-
addUserToOrgGroup(createOrgGroupMember) {
|
|
13
|
-
return this.httpClient.post(this.basePath, createOrgGroupMember);
|
|
15
|
+
addUserToOrgGroup(createOrgGroupMember, options = {}) {
|
|
16
|
+
return this.httpClient.post(this.basePath, createOrgGroupMember, options);
|
|
14
17
|
}
|
|
15
|
-
removeUserFromOrgGroup(orgGroupId, userId) {
|
|
16
|
-
return this.httpClient.delete(`${this.basePath}/${orgGroupId}/${userId}
|
|
18
|
+
removeUserFromOrgGroup(orgGroupId, userId, options = {}) {
|
|
19
|
+
return this.httpClient.delete(`${this.basePath}/${orgGroupId}/${userId}`, options);
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
exports.OrgGroupMemberService = OrgGroupMemberService;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { APIBase } from '../../api-base';
|
|
2
|
+
import type { TokenOption } from '../../interfaces';
|
|
2
3
|
import type { CreateOrgGroup, OrgGroup, SqlPagination, SqlPaginationResult, UpdateOrgGroup } from '../../interfaces/authz';
|
|
3
4
|
import { HttpClientService } from '../http-client.service';
|
|
4
5
|
export declare class OrgGroupService extends APIBase {
|
|
5
6
|
constructor(httpClient: HttpClientService);
|
|
6
|
-
|
|
7
|
-
getOrgGroupById(orgGroupId: string): Promise<OrgGroup>;
|
|
8
|
-
createOrgGroup(createOrgGroup: CreateOrgGroup): Promise<OrgGroup>;
|
|
9
|
-
updateOrgGroup(orgGroupId: string, updateOrgGroup: UpdateOrgGroup): Promise<OrgGroup>;
|
|
10
|
-
deleteOrgGroup(orgGroupId: string): Promise<void>;
|
|
7
|
+
getOrgGroupsOfUsersActiveOrg(sqlPagination?: SqlPagination, options?: TokenOption): Promise<SqlPaginationResult<OrgGroup>>;
|
|
8
|
+
getOrgGroupById(orgGroupId: string, options?: TokenOption): Promise<OrgGroup>;
|
|
9
|
+
createOrgGroup(createOrgGroup: CreateOrgGroup, options?: TokenOption): Promise<OrgGroup>;
|
|
10
|
+
updateOrgGroup(orgGroupId: string, updateOrgGroup: UpdateOrgGroup, options?: TokenOption): Promise<OrgGroup>;
|
|
11
|
+
deleteOrgGroup(orgGroupId: string, options?: TokenOption): Promise<void>;
|
|
11
12
|
}
|
|
@@ -6,20 +6,20 @@ class OrgGroupService extends api_base_1.APIBase {
|
|
|
6
6
|
constructor(httpClient) {
|
|
7
7
|
super(httpClient, '/authz/org-groups');
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
return this.httpClient.get(
|
|
9
|
+
getOrgGroupsOfUsersActiveOrg(sqlPagination = {}, options = {}) {
|
|
10
|
+
return this.httpClient.get(this.basePath, { ...options, params: sqlPagination });
|
|
11
11
|
}
|
|
12
|
-
getOrgGroupById(orgGroupId) {
|
|
13
|
-
return this.httpClient.get(`${this.basePath}/${orgGroupId}
|
|
12
|
+
getOrgGroupById(orgGroupId, options = {}) {
|
|
13
|
+
return this.httpClient.get(`${this.basePath}/${orgGroupId}`, options);
|
|
14
14
|
}
|
|
15
|
-
createOrgGroup(createOrgGroup) {
|
|
16
|
-
return this.httpClient.post(this.basePath, createOrgGroup);
|
|
15
|
+
createOrgGroup(createOrgGroup, options = {}) {
|
|
16
|
+
return this.httpClient.post(this.basePath, createOrgGroup, options);
|
|
17
17
|
}
|
|
18
|
-
updateOrgGroup(orgGroupId, updateOrgGroup) {
|
|
19
|
-
return this.httpClient.patch(`${this.basePath}/${orgGroupId}`, updateOrgGroup);
|
|
18
|
+
updateOrgGroup(orgGroupId, updateOrgGroup, options = {}) {
|
|
19
|
+
return this.httpClient.patch(`${this.basePath}/${orgGroupId}`, updateOrgGroup, options);
|
|
20
20
|
}
|
|
21
|
-
deleteOrgGroup(orgGroupId) {
|
|
22
|
-
return this.httpClient.delete(`${this.basePath}/${orgGroupId}
|
|
21
|
+
deleteOrgGroup(orgGroupId, options = {}) {
|
|
22
|
+
return this.httpClient.delete(`${this.basePath}/${orgGroupId}`, options);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
exports.OrgGroupService = OrgGroupService;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { APIBase } from '../../api-base';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TokenOption } from '../../interfaces';
|
|
3
|
+
import type { OrgSubscription, SqlPagination } from '../../interfaces/authz';
|
|
3
4
|
import { HttpClientService } from '../http-client.service';
|
|
4
5
|
export declare class OrgSubscriptionService extends APIBase {
|
|
5
6
|
constructor(httpClient: HttpClientService);
|
|
6
|
-
getOrgSubscriptionsByOrgId(
|
|
7
|
-
getOrgSubscriptionById(orgSubscriptionId: string): Promise<OrgSubscription>;
|
|
8
|
-
createOrgSubscription(createOrgSubscription: CreateOrgSubscription): Promise<OrgSubscription>;
|
|
9
|
-
updateOrgSubscription(orgSubscriptionId: string, updateOrgSubscription: UpdateOrgSubscription): Promise<OrgSubscription>;
|
|
10
|
-
deleteOrgSubscription(orgSubscriptionId: string): Promise<void>;
|
|
7
|
+
getOrgSubscriptionsByOrgId(sqlPagination?: SqlPagination, options?: TokenOption): Promise<OrgSubscription[]>;
|
|
8
|
+
getOrgSubscriptionById(orgSubscriptionId: string, options?: TokenOption): Promise<OrgSubscription>;
|
|
11
9
|
}
|
|
@@ -6,20 +6,11 @@ class OrgSubscriptionService extends api_base_1.APIBase {
|
|
|
6
6
|
constructor(httpClient) {
|
|
7
7
|
super(httpClient, '/authz/org-subscriptions');
|
|
8
8
|
}
|
|
9
|
-
getOrgSubscriptionsByOrgId(
|
|
10
|
-
return this.httpClient.get(
|
|
9
|
+
getOrgSubscriptionsByOrgId(sqlPagination = {}, options = {}) {
|
|
10
|
+
return this.httpClient.get(this.basePath, { ...options, params: sqlPagination });
|
|
11
11
|
}
|
|
12
|
-
getOrgSubscriptionById(orgSubscriptionId) {
|
|
13
|
-
return this.httpClient.get(`${this.basePath}/${orgSubscriptionId}
|
|
14
|
-
}
|
|
15
|
-
createOrgSubscription(createOrgSubscription) {
|
|
16
|
-
return this.httpClient.post(this.basePath, createOrgSubscription);
|
|
17
|
-
}
|
|
18
|
-
updateOrgSubscription(orgSubscriptionId, updateOrgSubscription) {
|
|
19
|
-
return this.httpClient.patch(`${this.basePath}/${orgSubscriptionId}`, updateOrgSubscription);
|
|
20
|
-
}
|
|
21
|
-
deleteOrgSubscription(orgSubscriptionId) {
|
|
22
|
-
return this.httpClient.delete(`${this.basePath}/${orgSubscriptionId}`);
|
|
12
|
+
getOrgSubscriptionById(orgSubscriptionId, options = {}) {
|
|
13
|
+
return this.httpClient.get(`${this.basePath}/${orgSubscriptionId}`, options);
|
|
23
14
|
}
|
|
24
15
|
}
|
|
25
16
|
exports.OrgSubscriptionService = OrgSubscriptionService;
|
|
@@ -72,7 +72,7 @@ export declare class TimeSeriesService extends BaseService {
|
|
|
72
72
|
}, options?: TokenOption): Promise<PromiseSettledResult<TimeSeries>[]>;
|
|
73
73
|
getMostRecentValue(id: string, before?: Date, options?: TokenOption): Promise<TimeSeriesValue>;
|
|
74
74
|
getValues(id: string, from: number, limit?: number, group?: TS_GROUPS, options?: TokenOption): Promise<TimeSeriesValue[]>;
|
|
75
|
-
getValuesOfPeriod(id: string, from: number, to: number, group?: TS_GROUPS, options?: TokenOption): Promise<TimeSeriesValue[]>;
|
|
75
|
+
getValuesOfPeriod(id: string, from: number, to: number, group?: TS_GROUPS, options?: TokenOption, limit?: number): Promise<TimeSeriesValue[]>;
|
|
76
76
|
getManyByAsset(assetId: string, names?: string[], options?: TokenOption): Promise<Paginated<TimeSeries>>;
|
|
77
77
|
getMostRecentTimeSeriesValueByAssetAndTimeSeriesName(assetId: string, timeSeriesNames: string[], options?: TokenOption): Promise<Record<string, any>>;
|
|
78
78
|
}
|
|
@@ -86,8 +86,8 @@ class TimeSeriesService extends BaseService {
|
|
|
86
86
|
const params = { limit, group };
|
|
87
87
|
return this.httpClient.get(`${this.basePath}/${id}/${from}`, { params, ...options });
|
|
88
88
|
}
|
|
89
|
-
getValuesOfPeriod(id, from, to, group, options = {}) {
|
|
90
|
-
const params = { group };
|
|
89
|
+
getValuesOfPeriod(id, from, to, group, options = {}, limit) {
|
|
90
|
+
const params = { group, limit };
|
|
91
91
|
return this.httpClient.get(`${this.basePath}/${id}/${from}/${to}`, { params, ...options });
|
|
92
92
|
}
|
|
93
93
|
getManyByAsset(assetId, names, options = {}) {
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { APIBaseMock } from '../../mock/api-base.mock';
|
|
2
|
-
import { CapabilityBundleService } from '../../services/authz/capability-bundle.service';
|
|
3
|
-
export declare class CapabilityBundleMockService extends APIBaseMock<never> implements CapabilityBundleService {
|
|
4
|
-
constructor();
|
|
5
|
-
getCapabilityBundlesForOrg(): ReturnType<CapabilityBundleService['getCapabilityBundlesForOrg']>;
|
|
6
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CapabilityBundleMockService = void 0;
|
|
4
|
-
const api_base_mock_1 = require("../../mock/api-base.mock");
|
|
5
|
-
class CapabilityBundleMockService extends api_base_mock_1.APIBaseMock {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(null);
|
|
8
|
-
}
|
|
9
|
-
getCapabilityBundlesForOrg() {
|
|
10
|
-
throw new Error('Method not implemented.');
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.CapabilityBundleMockService = CapabilityBundleMockService;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { APIBaseMock } from '../../mock/api-base.mock';
|
|
2
|
-
import { CapabilityService } from '../../services/authz/capability.service';
|
|
3
|
-
export declare class CapabilityMockService extends APIBaseMock<never> implements CapabilityService {
|
|
4
|
-
constructor();
|
|
5
|
-
getCapabilitiesForOrg(): ReturnType<CapabilityService['getCapabilitiesForOrg']>;
|
|
6
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CapabilityMockService = void 0;
|
|
4
|
-
const api_base_mock_1 = require("../../mock/api-base.mock");
|
|
5
|
-
class CapabilityMockService extends api_base_mock_1.APIBaseMock {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(null);
|
|
8
|
-
}
|
|
9
|
-
getCapabilitiesForOrg() {
|
|
10
|
-
throw new Error('Method not implemented.');
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.CapabilityMockService = CapabilityMockService;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Permission } from '../../interfaces';
|
|
2
|
-
import { CapabilityId } from '../../interfaces/authz';
|
|
3
|
-
import { UserCapabilitiesAndPermissionsService } from '../../services/authz/user-capabilities-and-permissions.service';
|
|
4
|
-
import { APIBaseMock } from '../api-base.mock';
|
|
5
|
-
export declare class UserCapabilitiesAndPermissionsMockService extends APIBaseMock<never> implements UserCapabilitiesAndPermissionsService {
|
|
6
|
-
constructor();
|
|
7
|
-
getUserCapabilitiesAndPermissions(): Promise<CapabilityId[]>;
|
|
8
|
-
getUserPermissions(): Promise<Permission[]>;
|
|
9
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserCapabilitiesAndPermissionsMockService = void 0;
|
|
4
|
-
const api_base_mock_1 = require("../api-base.mock");
|
|
5
|
-
class UserCapabilitiesAndPermissionsMockService extends api_base_mock_1.APIBaseMock {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(null);
|
|
8
|
-
}
|
|
9
|
-
getUserCapabilitiesAndPermissions() {
|
|
10
|
-
throw new Error('Method not implemented.');
|
|
11
|
-
}
|
|
12
|
-
getUserPermissions() {
|
|
13
|
-
throw new Error('Method not implemented.');
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.UserCapabilitiesAndPermissionsMockService = UserCapabilitiesAndPermissionsMockService;
|