import { BpmsEngine } from '../BpmsEngine'; import { IdentityUserRepository, IdentityUserModel } from './IdentityUserRepository'; import { IdentityGroupModel } from './IdentityGroupRepository'; import { IdentityUserGroupModel } from './IdentityUserGroupRepository'; import { IdentityUserClaimRepository, IdentityUserClaimModel } from './IdentityUserClaimRepository'; import { IdentityResourceRepository, IdentityResourceModel } from './IdentityResourceRepository'; import { IdExpression, FilterExpression } from '../data/Repository'; import { BpmsService } from '../BpmsService'; export interface BpmsIdentityUser { id: string; name: string; } export interface BpmsIdentityGroup { id: string; name: string; } export interface BpmsIdentityResource { id: string; name: string; } export interface BpmsIdentityUserGroup { userId: string; groupId: string; } export interface BpmsIdentityUserClaim extends Record { } export interface IdentityServiceOptions { identityUserRepository?: IdentityUserRepository; identityGroupRepository?: IdentityUserRepository; identityUserGroupRepository?: IdentityUserRepository; identityResourceRepository?: IdentityResourceRepository; identityUserClaimRepository?: IdentityUserClaimRepository; name: string; } export declare class IdentityService implements BpmsService { private bpmsEngine?; private identityUserRepository; private identityGroupRepository; private identityResourceRepository; private identityUserGroupRepository; private identityUserClaimRepository; private options; private id; constructor(bpmsEngine?: BpmsEngine | undefined, options?: IdentityServiceOptions); get Id(): string; get Name(): string; static createService(options?: IdentityServiceOptions): IdentityService; static createService(bpmsEngine?: BpmsEngine, options?: IdentityServiceOptions): IdentityService; get BpmsEngine(): BpmsEngine | undefined; getUserById(userId: IdExpression): Promise; getUserByUsername(username: string): Promise; getUsers(filter?: FilterExpression): Promise; getGroup(groupId: IdExpression): Promise; getGroup(filter: FilterExpression): Promise; getGroups(filter?: FilterExpression): Promise; getGroupUsers(groupId?: IdExpression): Promise; getUserGroups(userId?: IdExpression): Promise; getResources(filter?: FilterExpression): Promise; getResourceUsers(resourceId?: IdExpression): Promise; getUserResources(userId?: IdExpression): Promise; }