import { Observable } from 'rxjs'; import { AppStateService, ICdResponse, EnvConfig, CdFilter, ServerService, ICdPushEnvelop, EnvelopFValItem } from '../base'; import { User, UserData, IAuthData } from './user-model'; import { SocketIoService } from '../cd-push'; import { SioClientService } from './sio-client.service'; import * as i0 from "@angular/core"; export declare class UserService { private svAppState; private svServer; svSocket: SocketIoService; svSio: SioClientService; private env; private postData; cd_token: string | undefined; userData: User[]; cuid: string; userName: string; fullName: string; contacts: any[]; allUsers: any[]; cuidAvatar: string; currentUser: any; currentProfile: any; pals: any; usersData$: Observable; userDataResp$: Observable; isInvalidSelUsers: boolean; selectedUsers: User[]; constructor(svAppState: AppStateService, svServer: ServerService, svSocket: SocketIoService, svSio: SioClientService, env: EnvConfig); setEnv(env: EnvConfig): void; userDataResp(resp: ICdResponse): void; auth$(authData: IAuthData): Observable; setEnvelopeAuth(authData: IAuthData): void; configPushPayload(triggerEvent: string, emittEvent: string, cuid: number | string): ICdPushEnvelop; setUserData(loginResp: any): void; setEnvelopUserDataPost(loginResp: ICdResponse): void; getUsersObsv(f: CdFilter[] | null): Observable; setEnvelopeUsers(f: CdFilter[] | null): void; registerUser(data: any): void; /** * * @param data * { "ctx": "Sys", "m": "Moduleman", "c": "ModulesController", "a": "actionRegisterModule", "dat": { "f_vals": [ { "data": { "module_name": "FooModule", "is_sys_module": false, "module_type_id": 1 } } ], "token": "mT6blaIfqWhzNXQLG8ksVbc1VodSxRZ8lu5cMgda" }, "args": null } */ setEnvelopeRegUser(regData: any): void; activateUser$(activationData: any): Observable; /** * * @param data * { "ctx": "Sys", "m": "User", "c": "User", "a": "ActivateUser", "dat": { "f_vals": [ { "data": { "activationKey": "459bc3d0-c10e-4264-9e37-5175c379b620" "userId": 13, "sid": 23 } } ], "token": "mT6blaIfqWhzNXQLG8ksVbc1VodSxRZ8lu5cMgda" }, "args": null } */ setEnvelopeActivateUser(activationData: any): void; setRespRegUser(data: any): void; getAllUsers(): void; /** * { "ctx": "Sys", "m": "User", "c": "UserController", "a": "actionJoinGroup", "dat": { "f_vals": [ { "data": { "user_id": 1010, "group_guid_parent": "25E5D480-1F1E-166B-F1CD-0BA2BD86DC22" } } ], "token": "mT6blaIfqWhzNXQLG8ksVbc1VodSxRZ8lu5cMgda" }, "args": null } */ setEnvelopeAllUsers(): void; getUser$(reqQuery: EnvelopFValItem, sid: string): Observable; /** * ToDo: sort the token riddle...when being fetched for veryfying the user the 1st time * During registration, the sid retrieved should be able to allow verification of user. * At the moment a static one is used below. Not secure or tanable. * * { "ctx": "Sys", "m": "User", "c": "UserController", "a": "actionJoinGroup", "dat": { "f_vals": [ { "data": { "user_id": 1010, "group_guid_parent": "25E5D480-1F1E-166B-F1CD-0BA2BD86DC22" } } ], "token": "mT6blaIfqWhzNXQLG8ksVbc1VodSxRZ8lu5cMgda" }, "args": null } */ setEnvelopeGetUser(reqQuery: EnvelopFValItem, sid: string): void; /** * In the future, userId will be depricated. * At the backend, userId will be derived from cdToken * @param cdToken * @param userId * @returns */ getUserProfile$(cdToken: string, userId?: number): Observable; /** * ToDo: sort the token riddle...when being fetched for veryfying the user the 1st time * During registration, the sid retrieved should be able to allow verification of user. * At the moment a static one is used below. Not secure or tanable. * * { "ctx": "Sys", "m": "User", "c": "User", "a": "GetUserProfile", "dat": { "f_vals": [ { "data": { "userId": 1010 } } ], "token": "mT6blaIfqWhzNXQLG8ksVbc1VodSxRZ8lu5cMgda" }, "args": null } */ setEnvelopeGetUserProfile(cdToken: string, userId?: number): void; setRespAllUsers(res: any): void; emitLogin(cdEnvelop: ICdPushEnvelop): void; /** * The above is to effect switching to default image when user has not * set avatar. * Desired method is to use a directive. * Attempted sample: /src/app/pages/cd-palette/directives/default-image.directive.ts */ getAvatar(User: any): any; /** * get users registered under a given consumer * For demo purpose, we are just pulling all the users * However, yet to be implemented is registration of * -users where all the registered users will be kept. */ getConsumerUsersObsv(): Observable; getGroupUsersObsv(groupGuidParent: any): Observable; /** * { "ctx": "Sys", "m": "User", "c": "GroupMemberController", "a": "actionGetGroupUsers", "dat": { "f_vals": [ { "data": { "group_guid_parent": "08E30801-A7C0-E6A0-3FB1-394E7A71B456" } } ], "token": "15910E2B-5491-679D-3028-C99CE64CAC53" }, "args": null } */ setEnvelopeGetGroupUsers(groupGuidParent: any): void; list(): void; joinGroup(user: any): void; getUserGroups(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }