@hahnpro/hpc-api 2026.9.9 → 2026.9.11
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 +8 -0
- package/package.json +1 -1
- package/src/lib/api.d.ts +2 -1
- package/src/lib/api.js +1 -0
- 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 +2 -1
- package/src/lib/interfaces/index.js +1 -0
- package/src/lib/interfaces/knowledge.interface.d.ts +142 -0
- package/src/lib/interfaces/knowledge.interface.js +12 -0
- package/src/lib/interfaces/nats.interface.d.ts +10 -0
- package/src/lib/interfaces/nats.interface.js +10 -0
- package/src/lib/interfaces/resource.interface.d.ts +2 -0
- package/src/lib/interfaces/resource.interface.js +3 -0
- package/src/lib/mock/api.mock.d.ts +4 -1
- package/src/lib/mock/api.mock.js +2 -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/index.d.ts +1 -0
- package/src/lib/mock/index.js +1 -0
- package/src/lib/mock/knowledge.mock.service.d.ts +28 -0
- package/src/lib/mock/knowledge.mock.service.js +171 -0
- 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/index.d.ts +1 -0
- package/src/lib/services/index.js +1 -0
- package/src/lib/services/knowledge.service.d.ts +22 -0
- package/src/lib/services/knowledge.service.js +50 -0
- 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
|
@@ -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;
|
|
@@ -71,3 +71,4 @@ Object.defineProperty(exports, "UserService", { enumerable: true, get: function
|
|
|
71
71
|
var vault_service_1 = require("./vault.service");
|
|
72
72
|
Object.defineProperty(exports, "VaultService", { enumerable: true, get: function () { return vault_service_1.VaultService; } });
|
|
73
73
|
tslib_1.__exportStar(require("./authz"), exports);
|
|
74
|
+
tslib_1.__exportStar(require("./knowledge.service"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { APIBase } from '../api-base';
|
|
2
|
+
import type { Config, ConfirmKnowledge, CreateKnowledge, KnowledgeBacklinkQuery, KnowledgeBatch, KnowledgeHome, KnowledgeList, KnowledgePage, KnowledgeQuery, KnowledgeRevision, KnowledgeVersion, UpdateKnowledge } from '../interfaces';
|
|
3
|
+
import { HttpClientService } from './http-client.service';
|
|
4
|
+
export declare class KnowledgeService extends APIBase {
|
|
5
|
+
constructor(httpClient: HttpClientService);
|
|
6
|
+
addOne(dto: CreateKnowledge, options?: Config): Promise<KnowledgePage>;
|
|
7
|
+
getOne(id: string, options?: Config): Promise<KnowledgePage>;
|
|
8
|
+
getMany(query?: KnowledgeQuery, options?: Config): Promise<KnowledgeList>;
|
|
9
|
+
getHome(query?: KnowledgeQuery, options?: Config): Promise<KnowledgeHome>;
|
|
10
|
+
getBacklinks(query: KnowledgeBacklinkQuery, options?: Config): Promise<KnowledgeList>;
|
|
11
|
+
getRelated(id: string, query?: Pick<KnowledgeQuery, 'cursor' | 'limit'>, options?: Config): Promise<KnowledgeList>;
|
|
12
|
+
getRevision(id: string, revision: number, options?: Config): Promise<KnowledgeRevision>;
|
|
13
|
+
readBatch(ids: string[], options?: Config): Promise<KnowledgeBatch>;
|
|
14
|
+
updateOne(id: string, dto: UpdateKnowledge, options?: Config): Promise<KnowledgePage>;
|
|
15
|
+
confirm(id: string, dto: ConfirmKnowledge, options?: Config): Promise<KnowledgePage>;
|
|
16
|
+
withdraw(id: string, dto: KnowledgeVersion, options?: Config): Promise<KnowledgePage>;
|
|
17
|
+
restore(id: string, dto: KnowledgeVersion, options?: Config): Promise<KnowledgePage>;
|
|
18
|
+
/** Permanently deletes all pages and revisions of an organization; for organization deletion only. */
|
|
19
|
+
purgeOrganization(organizationId: string, options?: Config): Promise<{
|
|
20
|
+
deleted: number;
|
|
21
|
+
}>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KnowledgeService = void 0;
|
|
4
|
+
const api_base_1 = require("../api-base");
|
|
5
|
+
class KnowledgeService extends api_base_1.APIBase {
|
|
6
|
+
constructor(httpClient) {
|
|
7
|
+
super(httpClient, '/knowledge');
|
|
8
|
+
}
|
|
9
|
+
addOne(dto, options = {}) {
|
|
10
|
+
return this.httpClient.post(this.basePath, dto, options);
|
|
11
|
+
}
|
|
12
|
+
getOne(id, options = {}) {
|
|
13
|
+
return this.httpClient.get(`${this.basePath}/${encodeURIComponent(id)}`, options);
|
|
14
|
+
}
|
|
15
|
+
getMany(query = {}, options = {}) {
|
|
16
|
+
return this.httpClient.get(this.basePath, { ...options, params: query });
|
|
17
|
+
}
|
|
18
|
+
getHome(query = {}, options = {}) {
|
|
19
|
+
return this.httpClient.get(`${this.basePath}/home`, { ...options, params: query });
|
|
20
|
+
}
|
|
21
|
+
getBacklinks(query, options = {}) {
|
|
22
|
+
return this.httpClient.get(`${this.basePath}/backlinks`, { ...options, params: query });
|
|
23
|
+
}
|
|
24
|
+
getRelated(id, query = {}, options = {}) {
|
|
25
|
+
return this.httpClient.get(`${this.basePath}/${encodeURIComponent(id)}/related`, { ...options, params: query });
|
|
26
|
+
}
|
|
27
|
+
getRevision(id, revision, options = {}) {
|
|
28
|
+
return this.httpClient.get(`${this.basePath}/${encodeURIComponent(id)}/revisions/${revision}`, options);
|
|
29
|
+
}
|
|
30
|
+
readBatch(ids, options = {}) {
|
|
31
|
+
return this.httpClient.post(`${this.basePath}/read-batch`, { ids }, options);
|
|
32
|
+
}
|
|
33
|
+
updateOne(id, dto, options = {}) {
|
|
34
|
+
return this.httpClient.patch(`${this.basePath}/${encodeURIComponent(id)}`, dto, options);
|
|
35
|
+
}
|
|
36
|
+
confirm(id, dto, options = {}) {
|
|
37
|
+
return this.httpClient.post(`${this.basePath}/${encodeURIComponent(id)}/confirm`, dto, options);
|
|
38
|
+
}
|
|
39
|
+
withdraw(id, dto, options = {}) {
|
|
40
|
+
return this.httpClient.post(`${this.basePath}/${encodeURIComponent(id)}/withdraw`, dto, options);
|
|
41
|
+
}
|
|
42
|
+
restore(id, dto, options = {}) {
|
|
43
|
+
return this.httpClient.post(`${this.basePath}/${encodeURIComponent(id)}/restore`, dto, options);
|
|
44
|
+
}
|
|
45
|
+
/** Permanently deletes all pages and revisions of an organization; for organization deletion only. */
|
|
46
|
+
purgeOrganization(organizationId, options = {}) {
|
|
47
|
+
return this.httpClient.delete(`${this.basePath}/organizations/${encodeURIComponent(organizationId)}`, options);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.KnowledgeService = KnowledgeService;
|
|
@@ -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;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { APIBase } from '../../api-base';
|
|
2
|
-
import type { CapabilityBundle, SqlPagination } from '../../interfaces/authz';
|
|
3
|
-
import { HttpClientService } from '../http-client.service';
|
|
4
|
-
export declare class CapabilityBundleService extends APIBase {
|
|
5
|
-
constructor(httpClient: HttpClientService);
|
|
6
|
-
getCapabilityBundlesForOrg(orgId: string, sqlPagination?: SqlPagination): Promise<CapabilityBundle[]>;
|
|
7
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CapabilityBundleService = void 0;
|
|
4
|
-
const api_base_1 = require("../../api-base");
|
|
5
|
-
class CapabilityBundleService extends api_base_1.APIBase {
|
|
6
|
-
constructor(httpClient) {
|
|
7
|
-
super(httpClient, '/authz/capability-bundles');
|
|
8
|
-
}
|
|
9
|
-
getCapabilityBundlesForOrg(orgId, sqlPagination = {}) {
|
|
10
|
-
return this.httpClient.get(`${this.basePath}/${orgId}`, { params: sqlPagination });
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.CapabilityBundleService = CapabilityBundleService;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { APIBase } from '../../api-base';
|
|
2
|
-
import type { Capability, SqlPagination } from '../../interfaces/authz';
|
|
3
|
-
import { HttpClientService } from '../http-client.service';
|
|
4
|
-
export declare class CapabilityService extends APIBase {
|
|
5
|
-
constructor(httpClient: HttpClientService);
|
|
6
|
-
getCapabilitiesForOrg(orgId: string, sqlPagination?: SqlPagination): Promise<Capability[]>;
|
|
7
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CapabilityService = void 0;
|
|
4
|
-
const api_base_1 = require("../../api-base");
|
|
5
|
-
class CapabilityService extends api_base_1.APIBase {
|
|
6
|
-
constructor(httpClient) {
|
|
7
|
-
super(httpClient, '/authz/capabilities');
|
|
8
|
-
}
|
|
9
|
-
getCapabilitiesForOrg(orgId, sqlPagination = {}) {
|
|
10
|
-
return this.httpClient.get(`${this.basePath}/${orgId}`, { params: sqlPagination });
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.CapabilityService = CapabilityService;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { APIBase } from '../../api-base';
|
|
2
|
-
import { Permission } from '../../interfaces';
|
|
3
|
-
import { CapabilityId } from '../../interfaces/authz';
|
|
4
|
-
import { HttpClientService } from '../http-client.service';
|
|
5
|
-
export declare class UserCapabilitiesAndPermissionsService extends APIBase {
|
|
6
|
-
constructor(httpClient: HttpClientService);
|
|
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.UserCapabilitiesAndPermissionsService = void 0;
|
|
4
|
-
const api_base_1 = require("../../api-base");
|
|
5
|
-
class UserCapabilitiesAndPermissionsService extends api_base_1.APIBase {
|
|
6
|
-
constructor(httpClient) {
|
|
7
|
-
super(httpClient, '/authz/user');
|
|
8
|
-
}
|
|
9
|
-
getUserCapabilitiesAndPermissions() {
|
|
10
|
-
return this.httpClient.get(`${this.basePath}/capabilities`);
|
|
11
|
-
}
|
|
12
|
-
getUserPermissions() {
|
|
13
|
-
return this.httpClient.get(`${this.basePath}/permissions`);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.UserCapabilitiesAndPermissionsService = UserCapabilitiesAndPermissionsService;
|