mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 05:25:41 +00:00
user management ui
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
@@ -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[];
|
||||
}
|
||||
@@ -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[];
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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[];
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user