user management ui

This commit is contained in:
yaschalew
2026-07-10 10:41:48 +03:00
parent dcb2d98503
commit 28a20923ff
595 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
export interface ApplicationName {
am: string;
en: string;
}
export interface ApplicationDto {
id: string;
key: string;
name: ApplicationName;
createdAt: string;
updatedAt: string;
}
export interface ApplicationListResponse {
count: number;
items: ApplicationDto[];
}

View File

@@ -0,0 +1,105 @@
export interface EmployeeWithUnitDto {
avatar: string | undefined;
id: string;
name: {
charAt(
arg0: number
): import("react").ReactNode | Iterable<import("react").ReactNode>;
am: string;
en: string;
};
user: {
id: string;
name: {
am: string;
en: string;
};
email: string;
phoneNumber?: string;
};
employeePositions: {
id: string;
employeeId: string;
position: {
id: string;
name: {
am: string;
en: string;
};
};
}[];
}
export interface EmployeeWithUnitListResponse {
count: number;
items: EmployeeWithUnitDto[];
}
export interface EmployeeByPositionDto {
employeePositions: any;
id: string;
isCurrent: boolean;
status: string;
name: {
am: string;
en: string;
};
organizationId: string;
user: {
id: string;
name: {
am: string;
en: string;
};
username: string;
email: string;
userType: string;
sharepointId: string | null;
status: string;
};
}
export interface EmployeePosition {
id: string;
position: {
id: string;
name: {
am: string;
en: string;
};
};
}
export interface Employee {
id: string;
name: {
am: string;
en: string;
};
employeePositions: EmployeePosition[];
}
export interface User {
id: string;
name: {
am: string;
en: string;
};
email: string;
employee: Employee[];
}
export interface UserDTO {
id: string;
name: {
am: string;
en: string;
};
email: string;
employee: Employee[];
}
export interface UserWithUnitListResponse {
count: number;
items: UserDTO[];
}

View File

@@ -0,0 +1,17 @@
export interface PermissionName {
am: string;
en: string;
}
export interface PermissionDto {
id: string;
key: string;
name: PermissionName;
createdAt: string;
updatedAt: string;
}
export interface PermissionListResponse {
count: number;
items: PermissionDto[];
}

View File

@@ -0,0 +1,16 @@
export interface PositionDto {
createdAt: string;
updatedAt: string;
id: string;
name: {
am: string;
en: string;
};
key: string;
parentPositionId: string | null;
unitId: string;
organizationId: string;
projectId: string | null;
subPositions: PositionDto[];
positionTypeId: string;
}

View File

@@ -0,0 +1,19 @@
export interface PositionTypeDto {
id: string;
name: {
am: string;
en: string;
};
key: string;
unitId: string;
canReceiveRecord: boolean;
canCreateBankRecord?: boolean;
canAssignRecord: boolean;
createdAt: string;
updatedAt: string;
}
export interface PositionTypesListResponse {
count: number;
items: PositionTypeDto[];
}

View File

@@ -0,0 +1,27 @@
export interface CreateRecordTagPayload {
name: {
am: string;
en: string;
};
key: string;
unitId: string;
}
export interface UpdateRecordTagPayload
extends Partial<CreateRecordTagPayload> {}
export interface RecordTag {
createdAt: string;
updatedAt: string;
id: string;
name: {
am: string;
en: string;
};
key: string;
unitId: string;
}
export interface RecordTagResponse {
items: RecordTag[];
count: number;
}

View File

@@ -0,0 +1,32 @@
export interface TeamMemberDto {
status: string;
organizationId: string;
id: string;
isCurrent: boolean;
name: string | null;
employeePositions?: Array<{
id: string;
employeeId: string;
position: {
id: string;
name: {
am: string;
en: string;
};
};
}>;
user: {
id: string;
name: {
am: string;
en: string;
};
username: string;
email: string;
userType: "employee" | string;
sharepointId: string | null;
status: "accepted" | string;
phoneNumber: string;
hasSetPassword: boolean
};
}

View File

@@ -0,0 +1,14 @@
export interface UnitDto {
id: string;
name: UnitName;
key: string;
organizationId: string;
parentUnitId: string | null;
createdAt: string;
updatedAt: string;
}
export interface UnitName {
am: string;
en: string;
}