-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathUserService.d.ts
More file actions
32 lines (23 loc) · 915 Bytes
/
UserService.d.ts
File metadata and controls
32 lines (23 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { ApplicationBase, ApplicationService } from '@themost/common';
import { DataContext } from './types';
import { BehaviorSubject, Observable } from 'rxjs';
export declare interface OnFinalizeService {
finalizeAsync(): Promise<void>;
}
export declare interface OnRemoveUser {
removeUser(name: string): Promise<void>;
}
export declare class UserService extends ApplicationService {
constructor(app:any);
getUser(context: DataContext, name: string): Promise<any>;
getAnonymousUser(context: DataContext): Promise<any>;
getGroup(context: DataContext, name: string): Promise<any>;
/**
* An observable that emits the anonymous user data.
* This can be used to track or handle the state of an anonymous user in the application.
*
* @type {Observable<any>}
*/
anonymousUser$: Observable<any>;
refreshAnonymousUser$: BehaviorSubject<any>;
}