@onecx/angular-integration-interface 7.0.0-rc.9 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/onecx-angular-integration-interface-mocks.mjs +21 -21
- package/fesm2022/onecx-angular-integration-interface-mocks.mjs.map +1 -1
- package/fesm2022/onecx-angular-integration-interface.mjs +157 -63
- package/fesm2022/onecx-angular-integration-interface.mjs.map +1 -1
- package/index.d.ts +238 -11
- package/mocks/index.d.ts +116 -7
- package/package.json +10 -8
- package/lib/api/constants.d.ts +0 -2
- package/lib/api/injection-tokens.d.ts +0 -16
- package/lib/model/config-key.model.d.ts +0 -34
- package/lib/services/app-config-service.d.ts +0 -16
- package/lib/services/app-state.service.d.ts +0 -22
- package/lib/services/configuration.service.d.ts +0 -18
- package/lib/services/portal-message.service.d.ts +0 -30
- package/lib/services/remote-components.service.d.ts +0 -9
- package/lib/services/shell-capability.service.d.ts +0 -17
- package/lib/services/theme.service.d.ts +0 -9
- package/lib/services/user.service.d.ts +0 -18
- package/lib/services/workspace.service.d.ts +0 -21
- package/mocks/app-config-service-mock.d.ts +0 -20
- package/mocks/app-state-service-mock.d.ts +0 -20
- package/mocks/configuration-service-mock.d.ts +0 -22
- package/mocks/portal-message-service-mock.d.ts +0 -18
- package/mocks/remote-components-service-mock.d.ts +0 -13
- package/mocks/shell-capability-service-mock.d.ts +0 -13
- package/mocks/user-service-mock.d.ts +0 -22
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare enum CONFIG_KEY {
|
|
2
|
-
TKIT_PORTAL_DEFAULT_THEME = "TKIT_PORTAL_DEFAULT_THEME",
|
|
3
|
-
TKIT_PORTAL_DISABLE_THEME_MANAGEMENT = "TKIT_PORTAL_DISABLE_THEME_MANAGEMENT",
|
|
4
|
-
TKIT_PORTAL_THEME_SERVER_URL = "TKIT_PORTAL_THEME_SERVER_URL",
|
|
5
|
-
TKIT_TOKEN_ROLE_CLAIM_NAME = "TKIT_TOKEN_ROLE_CLAIM_NAME",
|
|
6
|
-
TKIT_PORTAL_ID = "TKIT_PORTAL_ID",
|
|
7
|
-
TKIT_SUPPORTED_LANGUAGES = "TKIT_SUPPORTED_LANGUAGES",
|
|
8
|
-
TKIT_SEARCH_BASE_URL = "TKIT_SEARCH_BASE_URL",
|
|
9
|
-
APP_BASE_HREF = "APP_BASE_HREF",
|
|
10
|
-
KEYCLOAK_REALM = "KEYCLOAK_REALM",
|
|
11
|
-
KEYCLOAK_ENABLE_SILENT_SSO = "KEYCLOAK_ENABLE_SILENT_SSO",
|
|
12
|
-
KEYCLOAK_URL = "KEYCLOAK_URL",
|
|
13
|
-
KEYCLOAK_CLIENT_ID = "KEYCLOAK_CLIENT_ID",
|
|
14
|
-
ONECX_PORTAL_FAVORITES_DISABLED = "ONECX_PORTAL_FAVORITES_DISABLED",
|
|
15
|
-
ONECX_PORTAL_FEEDBACK_DISABLED = "ONECX_PORTAL_FEEDBACK_DISABLED",
|
|
16
|
-
ONECX_PORTAL_SEARCH_DISABLED = "ONECX_PORTAL_SEARCH_DISABLED",
|
|
17
|
-
ONECX_PORTAL_SUPPORT_TICKET_DISABLED = "ONECX_PORTAL_SUPPORT_TICKET_DISABLED",
|
|
18
|
-
ONECX_PORTAL_ANNOUNCEMENTS_DISABLED = "ONECX_PORTAL_ANNOUNCEMENTS_DISABLED",
|
|
19
|
-
ONECX_PORTAL_PASSWORD_CHANGE_DISABLED = "ONECX_PORTAL_PASSWORD_CHANGE_DISABLED",
|
|
20
|
-
ONECX_PORTAL_SETTINGS_DISABLED = "ONECX_PORTAL_SETTINGS_DISABLED",
|
|
21
|
-
ONECX_PORTAL_MY_ROLES_PERMISSIONS_DISABLED = "ONECX_PORTAL_MY_ROLES_PERMISSIONS_DISABLED",
|
|
22
|
-
ONECX_PORTAL_HELP_DISABLED = "ONECX_PORTAL_HELP_DISABLED",
|
|
23
|
-
ONECX_PORTAL_SEARCH_BUTTONS_REVERSED = "ONECX_PORTAL_SEARCH_BUTTONS_REVERSED",
|
|
24
|
-
APP_VERSION = "APP_VERSION",
|
|
25
|
-
IS_SHELL = "IS_SHELL",
|
|
26
|
-
AUTH_SERVICE = "AUTH_SERVICE",
|
|
27
|
-
AUTH_SERVICE_CUSTOM_URL = "AUTH_SERVICE_CUSTOM_URL",
|
|
28
|
-
AUTH_SERVICE_CUSTOM_MODULE_NAME = "AUTH_SERVICE_CUSTOM_MODULE_NAME",
|
|
29
|
-
POLYFILL_SCOPE_MODE = "POLYFILL_SCOPE_MODE"
|
|
30
|
-
}
|
|
31
|
-
export declare enum POLYFILL_SCOPE_MODE {
|
|
32
|
-
PERFORMANCE = "PERFORMANCE",
|
|
33
|
-
PRECISION = "PRECISION"
|
|
34
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class AppConfigService {
|
|
4
|
-
private http;
|
|
5
|
-
config$: BehaviorSubject<{
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
}>;
|
|
8
|
-
init(baseUrl: string): Promise<void>;
|
|
9
|
-
getProperty(key: string): string | undefined;
|
|
10
|
-
setProperty(key: string, val: string): void;
|
|
11
|
-
getConfig(): {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigService, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigService>;
|
|
16
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { GlobalErrorTopic, GlobalLoadingTopic, CurrentMfeTopic, CurrentPageTopic, CurrentWorkspaceTopic, IsAuthenticatedTopic, CurrentLocationTopic } from '@onecx/integration-interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AppStateService implements OnDestroy {
|
|
5
|
-
globalError$: GlobalErrorTopic;
|
|
6
|
-
globalLoading$: GlobalLoadingTopic;
|
|
7
|
-
currentMfe$: CurrentMfeTopic;
|
|
8
|
-
currentLocation$: CurrentLocationTopic;
|
|
9
|
-
/**
|
|
10
|
-
* This topic will only fire when pageInfo.path matches document.location.pathname,
|
|
11
|
-
* if not it will fire undefined.
|
|
12
|
-
*/
|
|
13
|
-
currentPage$: CurrentPageTopic;
|
|
14
|
-
currentWorkspace$: CurrentWorkspaceTopic;
|
|
15
|
-
/**
|
|
16
|
-
* This Topic is initialized as soon as the authentication is done
|
|
17
|
-
*/
|
|
18
|
-
isAuthenticated$: IsAuthenticatedTopic;
|
|
19
|
-
ngOnDestroy(): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppStateService, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AppStateService>;
|
|
22
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Config } from '@onecx/integration-interface';
|
|
3
|
-
import { CONFIG_KEY } from '../model/config-key.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ConfigurationService implements OnDestroy {
|
|
6
|
-
private http;
|
|
7
|
-
private defaultConfig;
|
|
8
|
-
private config$;
|
|
9
|
-
private semaphore;
|
|
10
|
-
ngOnDestroy(): void;
|
|
11
|
-
init(): Promise<boolean>;
|
|
12
|
-
get isInitialized(): Promise<void>;
|
|
13
|
-
getProperty(key: CONFIG_KEY): Promise<string | undefined>;
|
|
14
|
-
setProperty(key: string, val: string): Promise<void>;
|
|
15
|
-
getConfig(): Promise<Config | undefined>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
|
|
18
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { MessageTopic } from '@onecx/integration-interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export type Message = {
|
|
5
|
-
summaryKey?: string;
|
|
6
|
-
summaryParameters?: object;
|
|
7
|
-
detailKey?: string;
|
|
8
|
-
detailParameters?: object;
|
|
9
|
-
id?: any;
|
|
10
|
-
key?: string;
|
|
11
|
-
life?: number;
|
|
12
|
-
sticky?: boolean;
|
|
13
|
-
closable?: boolean;
|
|
14
|
-
data?: any;
|
|
15
|
-
icon?: string;
|
|
16
|
-
contentStyleClass?: string;
|
|
17
|
-
styleClass?: string;
|
|
18
|
-
};
|
|
19
|
-
export declare class PortalMessageService implements OnDestroy {
|
|
20
|
-
private translateService;
|
|
21
|
-
message$: MessageTopic;
|
|
22
|
-
success(msg: Message): void;
|
|
23
|
-
info(msg: Message): void;
|
|
24
|
-
error(msg: Message): void;
|
|
25
|
-
warning(msg: Message): void;
|
|
26
|
-
private addTranslated;
|
|
27
|
-
ngOnDestroy(): void;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PortalMessageService, never>;
|
|
29
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PortalMessageService>;
|
|
30
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { RemoteComponentsTopic } from '@onecx/integration-interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class RemoteComponentsService implements OnDestroy {
|
|
5
|
-
remoteComponents$: RemoteComponentsTopic;
|
|
6
|
-
ngOnDestroy(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RemoteComponentsService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RemoteComponentsService>;
|
|
9
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
declare global {
|
|
3
|
-
interface Window {
|
|
4
|
-
'onecx-shell-capabilities': Capability[];
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export declare enum Capability {
|
|
8
|
-
CURRENT_LOCATION_TOPIC = "currentLocationTopic",
|
|
9
|
-
PARAMETERS_TOPIC = "parametersTopic",
|
|
10
|
-
ACTIVENESS_AWARE_MENUS = "activenessAwareMenus"
|
|
11
|
-
}
|
|
12
|
-
export declare class ShellCapabilityService {
|
|
13
|
-
static setCapabilities(capabilities: Capability[]): void;
|
|
14
|
-
hasCapability(capability: Capability): boolean;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShellCapabilityService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShellCapabilityService>;
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { CurrentThemeTopic } from '@onecx/integration-interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ThemeService implements OnDestroy {
|
|
5
|
-
currentTheme$: CurrentThemeTopic;
|
|
6
|
-
ngOnDestroy(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
9
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { UserProfile, UserProfileTopic } from '@onecx/integration-interface';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class UserService implements OnDestroy {
|
|
6
|
-
profile$: UserProfileTopic;
|
|
7
|
-
lang$: BehaviorSubject<string>;
|
|
8
|
-
private permissionsTopic$;
|
|
9
|
-
constructor();
|
|
10
|
-
ngOnDestroy(): void;
|
|
11
|
-
useOldLangSetting(profile: UserProfile): string;
|
|
12
|
-
getPermissions(): import("rxjs").Observable<string[]>;
|
|
13
|
-
hasPermission(permissionKey: string | string[] | undefined): Promise<boolean>;
|
|
14
|
-
private determineLanguage;
|
|
15
|
-
get isInitialized(): Promise<void>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
|
|
18
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { AppStateService } from './app-state.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class WorkspaceService {
|
|
5
|
-
protected appStateService: AppStateService;
|
|
6
|
-
private aliasStart;
|
|
7
|
-
private aliasEnd;
|
|
8
|
-
private paramStart;
|
|
9
|
-
private paramEnd;
|
|
10
|
-
getUrl(productName: string, appId: string, endpointName?: string, endpointParameters?: Record<string, unknown>): Observable<string>;
|
|
11
|
-
doesUrlExistFor(productName: string, appId: string, endpointName?: string): Observable<boolean>;
|
|
12
|
-
private constructBaseUrlFromWorkspace;
|
|
13
|
-
private constructRouteUrl;
|
|
14
|
-
private constructEndpointUrl;
|
|
15
|
-
private filterRouteFromList;
|
|
16
|
-
private dissolveEndpoint;
|
|
17
|
-
private fillParamsForPath;
|
|
18
|
-
private getStringFromUnknown;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WorkspaceService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WorkspaceService>;
|
|
21
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
import { AppConfigService } from '@onecx/angular-integration-interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare function provideAppConfigServiceMock(): (typeof AppConfigServiceMock | {
|
|
5
|
-
provide: typeof AppConfigService;
|
|
6
|
-
useExisting: typeof AppConfigServiceMock;
|
|
7
|
-
})[];
|
|
8
|
-
export declare class AppConfigServiceMock {
|
|
9
|
-
config$: BehaviorSubject<{
|
|
10
|
-
[key: string]: string;
|
|
11
|
-
}>;
|
|
12
|
-
init(baseUrl: string): Promise<void>;
|
|
13
|
-
getProperty(key: string): string | undefined;
|
|
14
|
-
setProperty(key: string, val: string): void;
|
|
15
|
-
getConfig(): {
|
|
16
|
-
[key: string]: string;
|
|
17
|
-
};
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigServiceMock, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigServiceMock>;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CurrentLocationTopicPayload, MfeInfo, PageInfo, Workspace } from '@onecx/integration-interface';
|
|
2
|
-
import { AppStateService } from '@onecx/angular-integration-interface';
|
|
3
|
-
import { FakeTopic } from '@onecx/accelerator';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare function provideAppStateServiceMock(): (typeof AppStateServiceMock | {
|
|
6
|
-
provide: typeof AppStateService;
|
|
7
|
-
useExisting: typeof AppStateServiceMock;
|
|
8
|
-
})[];
|
|
9
|
-
export declare class AppStateServiceMock {
|
|
10
|
-
globalError$: FakeTopic<unknown>;
|
|
11
|
-
globalLoading$: FakeTopic<boolean>;
|
|
12
|
-
currentMfe$: FakeTopic<MfeInfo>;
|
|
13
|
-
currentPage$: FakeTopic<PageInfo | undefined>;
|
|
14
|
-
currentPortal$: FakeTopic<Workspace>;
|
|
15
|
-
currentWorkspace$: FakeTopic<Workspace>;
|
|
16
|
-
currentLocation$: FakeTopic<CurrentLocationTopicPayload>;
|
|
17
|
-
isAuthenticated$: FakeTopic<null>;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppStateServiceMock, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AppStateServiceMock>;
|
|
20
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Config } from '@onecx/integration-interface';
|
|
2
|
-
import { CONFIG_KEY } from '@onecx/angular-integration-interface';
|
|
3
|
-
import { ConfigurationService } from '@onecx/angular-integration-interface';
|
|
4
|
-
import { FakeTopic } from '@onecx/accelerator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare function provideConfigurationServiceMock(): (typeof ConfigurationServiceMock | {
|
|
7
|
-
provide: typeof ConfigurationService;
|
|
8
|
-
useExisting: typeof ConfigurationServiceMock;
|
|
9
|
-
})[];
|
|
10
|
-
export declare class ConfigurationServiceMock {
|
|
11
|
-
config$: FakeTopic<Config>;
|
|
12
|
-
private resolveInitPromise;
|
|
13
|
-
private isInitializedPromise;
|
|
14
|
-
constructor();
|
|
15
|
-
init(config?: Config): Promise<boolean>;
|
|
16
|
-
get isInitialized(): Promise<void>;
|
|
17
|
-
getProperty(key: CONFIG_KEY): Promise<string | undefined>;
|
|
18
|
-
setProperty(key: string, val: string): Promise<void>;
|
|
19
|
-
getConfig(): Promise<Config | undefined>;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationServiceMock, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationServiceMock>;
|
|
22
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FakeTopic } from '@onecx/accelerator';
|
|
2
|
-
import { Message as PortalMessage, PortalMessageService } from '@onecx/angular-integration-interface';
|
|
3
|
-
import { Message } from '@onecx/integration-interface';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare function providePortalMessageServiceMock(): (typeof PortalMessageServiceMock | {
|
|
6
|
-
provide: typeof PortalMessageService;
|
|
7
|
-
useExisting: typeof PortalMessageServiceMock;
|
|
8
|
-
})[];
|
|
9
|
-
export declare class PortalMessageServiceMock {
|
|
10
|
-
message$: FakeTopic<Message>;
|
|
11
|
-
success(msg: PortalMessage): void;
|
|
12
|
-
info(msg: PortalMessage): void;
|
|
13
|
-
error(msg: PortalMessage): void;
|
|
14
|
-
warning(msg: PortalMessage): void;
|
|
15
|
-
private addTranslated;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PortalMessageServiceMock, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PortalMessageServiceMock>;
|
|
18
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { RemoteComponentsInfo } from '@onecx/integration-interface';
|
|
2
|
-
import { RemoteComponentsService } from '@onecx/angular-integration-interface';
|
|
3
|
-
import { FakeTopic } from '@onecx/accelerator';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare function provideRemoteComponentsServiceMock(): (typeof RemoteComponentsServiceMock | {
|
|
6
|
-
provide: typeof RemoteComponentsService;
|
|
7
|
-
useExisting: typeof RemoteComponentsServiceMock;
|
|
8
|
-
})[];
|
|
9
|
-
export declare class RemoteComponentsServiceMock {
|
|
10
|
-
remoteComponents$: FakeTopic<RemoteComponentsInfo>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RemoteComponentsServiceMock, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RemoteComponentsServiceMock>;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Capability, ShellCapabilityService } from '@onecx/angular-integration-interface';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare function provideShellCapabilityServiceMock(): (typeof ShellCapabilityServiceMock | {
|
|
4
|
-
provide: typeof ShellCapabilityService;
|
|
5
|
-
useExisting: typeof ShellCapabilityServiceMock;
|
|
6
|
-
})[];
|
|
7
|
-
export declare class ShellCapabilityServiceMock {
|
|
8
|
-
static capabilities: Capability[];
|
|
9
|
-
static setCapabilities(capabilities: Capability[]): void;
|
|
10
|
-
hasCapability(capability: Capability): boolean;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShellCapabilityServiceMock, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShellCapabilityServiceMock>;
|
|
13
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
-
import { UserProfile } from '@onecx/integration-interface';
|
|
3
|
-
import { UserService } from '@onecx/angular-integration-interface';
|
|
4
|
-
import { FakeTopic } from '@onecx/accelerator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare function provideUserServiceMock(): (typeof UserServiceMock | {
|
|
7
|
-
provide: typeof UserService;
|
|
8
|
-
useExisting: typeof UserServiceMock;
|
|
9
|
-
})[];
|
|
10
|
-
export declare class UserServiceMock {
|
|
11
|
-
profile$: FakeTopic<UserProfile>;
|
|
12
|
-
permissionsTopic$: FakeTopic<string[]>;
|
|
13
|
-
lang$: BehaviorSubject<string>;
|
|
14
|
-
hasPermission(permissionKey: string | string[]): Promise<boolean>;
|
|
15
|
-
getPermissions(): Observable<string[]>;
|
|
16
|
-
determineLanguage(): string | undefined;
|
|
17
|
-
extractPermissions(userProfile: UserProfile): string[] | null;
|
|
18
|
-
get isInitialized(): Promise<void>;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserServiceMock, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserServiceMock>;
|
|
21
|
-
}
|
|
22
|
-
export type MockUserService = UserServiceMock;
|