2026-02-24 20:44:16 +00:00
|
|
|
import { ExtensibleEntityDto, ExtensibleObject } from '..'
|
|
|
|
|
|
|
|
|
|
export interface IdentityRoleDto extends ExtensibleEntityDto<string> {
|
|
|
|
|
name?: string
|
|
|
|
|
isDefault: boolean
|
|
|
|
|
isStatic: boolean
|
|
|
|
|
isPublic: boolean
|
|
|
|
|
concurrencyStamp?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PermissionDefinitionRecord {
|
|
|
|
|
groupName: string
|
|
|
|
|
name: string
|
|
|
|
|
parentName: string
|
|
|
|
|
displayName: string
|
|
|
|
|
isEnabled: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PermissionGroupDto {
|
|
|
|
|
name?: string
|
|
|
|
|
displayName?: string
|
|
|
|
|
permissions: PermissionGrantInfoDto[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface GetPermissionListResultDto {
|
|
|
|
|
entityDisplayName?: string
|
|
|
|
|
groups: PermissionGroupDto[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PermissionGrantInfoDto {
|
|
|
|
|
name?: string
|
|
|
|
|
displayName?: string
|
|
|
|
|
parentName?: string
|
|
|
|
|
isGranted: boolean
|
|
|
|
|
allowedProviders: string[]
|
|
|
|
|
grantedProviders: ProviderInfoDto[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionWithGroupName = PermissionGrantInfoDto & {
|
|
|
|
|
groupName: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PermissionWithStyle = PermissionGrantInfoDto & {
|
|
|
|
|
class: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ProviderInfoDto {
|
|
|
|
|
providerName?: string
|
|
|
|
|
providerKey?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface UpdatePermissionDto {
|
|
|
|
|
name?: string
|
|
|
|
|
isGranted: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface UpdatePermissionsDto {
|
|
|
|
|
permissions: UpdatePermissionDto[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IdentityUserDto extends ExtensibleFullAuditedEntityDto<string> {
|
|
|
|
|
tenantId?: string
|
|
|
|
|
userName?: string
|
|
|
|
|
name?: string
|
|
|
|
|
surname?: string
|
|
|
|
|
email?: string
|
|
|
|
|
emailConfirmed: boolean
|
|
|
|
|
phoneNumber?: string
|
|
|
|
|
phoneNumberConfirmed: boolean
|
|
|
|
|
isActive: boolean
|
|
|
|
|
lockoutEnabled: boolean
|
|
|
|
|
lockoutEnd?: string
|
|
|
|
|
concurrencyStamp?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class ExtensibleCreationAuditedEntityDto<
|
|
|
|
|
TPrimaryKey = string,
|
|
|
|
|
> extends ExtensibleEntityDto<TPrimaryKey> {
|
|
|
|
|
creationTime?: Date | string
|
|
|
|
|
creatorId?: string
|
|
|
|
|
|
|
|
|
|
constructor(initialValues: Partial<ExtensibleCreationAuditedEntityDto<TPrimaryKey>> = {}) {
|
|
|
|
|
super(initialValues)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class ExtensibleAuditedEntityDto<
|
|
|
|
|
TPrimaryKey = string,
|
|
|
|
|
> extends ExtensibleCreationAuditedEntityDto<TPrimaryKey> {
|
|
|
|
|
lastModificationTime?: Date | string
|
|
|
|
|
lastModifierId?: string
|
|
|
|
|
|
|
|
|
|
constructor(initialValues: Partial<ExtensibleAuditedEntityDto<TPrimaryKey>> = {}) {
|
|
|
|
|
super(initialValues)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class ExtensibleFullAuditedEntityDto<
|
|
|
|
|
TPrimaryKey = string,
|
|
|
|
|
> extends ExtensibleAuditedEntityDto<TPrimaryKey> {
|
|
|
|
|
isDeleted?: boolean
|
|
|
|
|
deleterId?: string
|
|
|
|
|
deletionTime?: Date | string
|
|
|
|
|
|
|
|
|
|
constructor(initialValues: Partial<ExtensibleFullAuditedEntityDto<TPrimaryKey>> = {}) {
|
|
|
|
|
super(initialValues)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface UserInfoViewModel extends ExtensibleObject {
|
|
|
|
|
id?: string
|
|
|
|
|
concurrencyStamp?: string
|
|
|
|
|
userName?: string
|
|
|
|
|
name?: string
|
|
|
|
|
surname?: string
|
|
|
|
|
email?: string
|
|
|
|
|
phoneNumber?: string
|
|
|
|
|
isActive: boolean
|
|
|
|
|
lockoutEnabled: boolean
|
|
|
|
|
lockoutEnd?: string
|
|
|
|
|
loginEndDate?: Date | string
|
|
|
|
|
isVerified: boolean
|
|
|
|
|
userRoleNames: string[]
|
|
|
|
|
roles: AssignedRoleViewModel[]
|
|
|
|
|
branches: AssignedRoleViewModel[]
|
|
|
|
|
claims: AssignedClaimViewModel[]
|
2026-04-26 19:05:19 +00:00
|
|
|
workHours: AssignedWorkHourViewModel[]
|
2026-02-24 20:44:16 +00:00
|
|
|
lockUser: boolean
|
|
|
|
|
lastPasswordChangeTime?: Date | string
|
|
|
|
|
|
|
|
|
|
emailConfirmed: boolean
|
|
|
|
|
phoneNumberConfirmed: boolean
|
|
|
|
|
accessFailedCount: number
|
|
|
|
|
shouldChangePasswordOnNextLogin: boolean
|
|
|
|
|
rocketUsername?: string
|
|
|
|
|
creationTime: Date | string
|
|
|
|
|
lastModificationTime: Date | string
|
2026-04-26 19:05:19 +00:00
|
|
|
workHour?: string
|
2026-02-24 20:44:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface AssignedRoleViewModel {
|
|
|
|
|
name?: string
|
|
|
|
|
isAssigned: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface AssignedBranchViewModel {
|
|
|
|
|
name?: string
|
|
|
|
|
isAssigned: boolean
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-26 19:05:19 +00:00
|
|
|
export interface AssignedClaimViewModel {
|
|
|
|
|
id: string
|
|
|
|
|
claimType: string
|
|
|
|
|
claimValue: string
|
|
|
|
|
isAssigned: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface AssignedWorkHourViewModel {
|
|
|
|
|
id: string
|
|
|
|
|
name?: string
|
|
|
|
|
isAssigned: boolean
|
2026-02-24 20:44:16 +00:00
|
|
|
}
|
|
|
|
|
|
2026-04-26 19:05:19 +00:00
|
|
|
export interface UserClaimModel {
|
|
|
|
|
id?: string
|
|
|
|
|
userId?: string
|
|
|
|
|
claimType: string
|
|
|
|
|
claimValue: string
|
2026-02-24 20:44:16 +00:00
|
|
|
}
|