sevago-sso-fe 1.0.47 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/constant/apps.data.d.ts +199 -37
- package/dist/common/index.d.ts +0 -1
- package/dist/common/interfaces/index.d.ts +0 -3
- package/dist/common/utils/index.d.ts +2 -3
- package/dist/common/utils/other/app.utils.d.ts +0 -3
- package/dist/components/app-grid/app-grid.component.d.ts +2 -3
- package/dist/components/elements/icon/icon-content.element.d.ts +1 -1
- package/dist/components/elements/image/image.element.d.ts +1 -1
- package/dist/components/elements/index.d.ts +0 -2
- package/dist/components/index.d.ts +1 -4
- package/dist/components/motion/motion-box.component.d.ts +2 -2
- package/dist/components/sidebar/apps-sidebar.component.d.ts +2 -0
- package/dist/components/styles/typography.style.d.ts +1 -1
- package/dist/{pages/dashboard/screen → components}/system-monitor/system-monitor.screen.d.ts +1 -1
- package/dist/index.cjs.js +0 -25326
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.esm.js +0 -25310
- package/dist/index.esm.js.map +1 -1
- package/package.json +7 -6
- package/dist/apis/auth/auth.api.d.ts +0 -7
- package/dist/apis/auth/auth.enum.d.ts +0 -16
- package/dist/apis/auth/auth.interface.d.ts +0 -44
- package/dist/apis/auth/index.d.ts +0 -5
- package/dist/apis/index.d.ts +0 -4
- package/dist/apis/notification/index.d.ts +0 -6
- package/dist/apis/notification/notification.api.d.ts +0 -12
- package/dist/apis/notification/notification.entities.d.ts +0 -17
- package/dist/apis/notification/notification.enum.d.ts +0 -26
- package/dist/apis/notification/notification.interface.d.ts +0 -33
- package/dist/apis/org-unit/index.d.ts +0 -2
- package/dist/apis/org-unit/org-unit.entities.d.ts +0 -41
- package/dist/apis/org-unit/org-unit.enum.d.ts +0 -11
- package/dist/apis/user/index.d.ts +0 -6
- package/dist/apis/user/user.api.d.ts +0 -17
- package/dist/apis/user/user.entities.d.ts +0 -161
- package/dist/apis/user/user.enum.d.ts +0 -304
- package/dist/apis/user/user.interface.d.ts +0 -81
- package/dist/common/config/axios.config.d.ts +0 -1
- package/dist/common/config/index.d.ts +0 -2
- package/dist/common/config/socket.config.d.ts +0 -19
- package/dist/common/interfaces/base-item.interface.d.ts +0 -8
- package/dist/common/interfaces/res-list.interface.d.ts +0 -7
- package/dist/common/interfaces/route.interface.d.ts +0 -12
- package/dist/common/utils/find-current-access.helper.d.ts +0 -1
- package/dist/components/avatar/avatar-enum.enum.d.ts +0 -10
- package/dist/components/elements/button/button.element.d.ts +0 -10
- package/dist/components/elements/button/index.d.ts +0 -1
- package/dist/components/elements/text-field/index.d.ts +0 -2
- package/dist/components/elements/text-field/text-field-label.element.d.ts +0 -9
- package/dist/components/elements/text-field/text-field.element.d.ts +0 -13
- package/dist/components/empty/empty.component.d.ts +0 -4
- package/dist/components/empty/index.d.ts +0 -1
- package/dist/components/loading/index.d.ts +0 -1
- package/dist/components/loading/loading.component.d.ts +0 -8
- package/dist/components/logo/index.d.ts +0 -1
- package/dist/components/logo/logo.component.d.ts +0 -10
- package/dist/components/time-ago/index.d.ts +0 -2
- package/dist/components/time-ago/time-ago-content.component.d.ts +0 -7
- package/dist/components/time-ago/time-ago.component.d.ts +0 -6
- package/dist/hooks/index.d.ts +0 -4
- package/dist/hooks/use-apps.hook.d.ts +0 -10
- package/dist/hooks/use-update-current-access.hook.d.ts +0 -1
- package/dist/hooks/use-version-check.hook.d.ts +0 -3
- package/dist/images/diamond.png +0 -0
- package/dist/images/login.jpg +0 -0
- package/dist/images/logo/logo-sub-3.svg +0 -9
- package/dist/images/logo/logo-sub-4.svg +0 -15
- package/dist/images/logo-192x192.png +0 -0
- package/dist/images/system/check-in.svg +0 -18
- package/dist/images/system/form.svg +0 -21
- package/dist/images/system/inside.svg +0 -21
- package/dist/images/system/logo-recruitment.svg +0 -27
- package/dist/images/system/payroll.svg +0 -16
- package/dist/images/system/process.svg +0 -24
- package/dist/images/system/project.svg +0 -16
- package/dist/images/system/request.svg +0 -16
- package/dist/images/system/sevago-chart.svg +0 -11
- package/dist/images/system/sevago-checkin.svg +0 -6
- package/dist/images/system/sevago-e-hiring.svg +0 -17
- package/dist/images/system/sevago-form.svg +0 -9
- package/dist/images/system/sevago-hrm.svg +0 -10
- package/dist/images/system/sevago-inside.svg +0 -11
- package/dist/images/system/sevago-message.svg +0 -26
- package/dist/images/system/sevago-payroll.svg +0 -4
- package/dist/images/system/sevago-project.svg +0 -4
- package/dist/images/system/sevago-request.svg +0 -4
- package/dist/images/system/sevago-training.svg +0 -5
- package/dist/images/system/sevago.svg +0 -14
- package/dist/images/system/training.svg +0 -17
- package/dist/images/system/user-hrm.svg +0 -20
- package/dist/layouts/auth.layout.d.ts +0 -5
- package/dist/layouts/default.layout.d.ts +0 -5
- package/dist/layouts/index.d.ts +0 -2
- package/dist/pages/auth/auth.constant.d.ts +0 -35
- package/dist/pages/auth/auth.enum.d.ts +0 -6
- package/dist/pages/auth/auth.interface.d.ts +0 -7
- package/dist/pages/auth/index.d.ts +0 -3
- package/dist/pages/dashboard/dashboard.page.d.ts +0 -5
- package/dist/pages/dashboard/index.d.ts +0 -2
- package/dist/pages/dashboard/screen/index.d.ts +0 -1
- package/dist/pages/error/error.page.d.ts +0 -4
- package/dist/pages/index.d.ts +0 -5
- package/dist/pages/not-found/not-found.page.d.ts +0 -4
- package/dist/redux/account/account.action.d.ts +0 -18
- package/dist/redux/account/account.interface.d.ts +0 -11
- package/dist/redux/account/account.slice.d.ts +0 -4
- package/dist/redux/account/index.d.ts +0 -5
- package/dist/redux/index.d.ts +0 -5
- package/dist/redux/slices/index.d.ts +0 -1
- package/dist/redux/slices/remaining-weight.slice.d.ts +0 -7
- package/dist/redux/store.interface.d.ts +0 -11
- package/dist/redux/store.redux.d.ts +0 -15
- package/dist/redux/system/index.d.ts +0 -2
- package/dist/redux/system/system.action.d.ts +0 -2
- package/dist/redux/system/system.interface.d.ts +0 -4
- package/dist/redux/system/system.slice.d.ts +0 -4
- package/dist/router/index.d.ts +0 -4
- package/dist/router/render.route.d.ts +0 -3
- package/dist/router/route.constant.d.ts +0 -334
- package/dist/router/route.enum.d.ts +0 -4
- package/dist/router/route.routes.d.ts +0 -2
- /package/dist/{pages/dashboard/screen → components}/system-monitor/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sevago-sso-fe",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
4
4
|
"description": "Sevago SSO Frontend Library - A comprehensive SSO solution with React components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -36,18 +36,19 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/dev1-gmail2025/sevago-sso-fe",
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"react": ">=17",
|
|
40
|
-
"react-dom": ">=17",
|
|
41
39
|
"@emotion/react": ">=11",
|
|
42
40
|
"@emotion/styled": ">=11",
|
|
43
41
|
"@mui/material": ">=5",
|
|
44
42
|
"@mui/system": ">=5",
|
|
45
43
|
"@reduxjs/toolkit": "^2.9.2",
|
|
44
|
+
"react": "^19.2.0",
|
|
45
|
+
"react-dom": "^19.2.0",
|
|
46
46
|
"react-redux": "^9.2.0",
|
|
47
|
-
"react-router-dom": "^7.9.
|
|
47
|
+
"react-router-dom": "^7.9.5",
|
|
48
48
|
"redux-persist": "^6.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
+
"@types/react-router-dom": "^5.3.3",
|
|
51
52
|
"axios": "^1.12.2",
|
|
52
53
|
"dayjs": "^1.11.18",
|
|
53
54
|
"formik": "^2.4.6",
|
|
@@ -58,8 +59,8 @@
|
|
|
58
59
|
"devDependencies": {
|
|
59
60
|
"@eslint/js": "^9.36.0",
|
|
60
61
|
"@types/node": "^24.7.0",
|
|
61
|
-
"@types/react": "^19.
|
|
62
|
-
"@types/react-dom": "^19.
|
|
62
|
+
"@types/react": "^19.2.2",
|
|
63
|
+
"@types/react-dom": "^19.2.2",
|
|
63
64
|
"@vitejs/plugin-react": "^5.0.4",
|
|
64
65
|
"eslint": "^9.36.0",
|
|
65
66
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ForgotPasswordDto, LoginDto, LogoutDto, RefreshTokenDto, ResetPasswordDto, ResponseAuth, TokenObject, VerifyOtpDto } from './auth.interface';
|
|
2
|
-
export declare const login: (body: LoginDto) => Promise<ResponseAuth>;
|
|
3
|
-
export declare const logout: (body: LogoutDto) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
4
|
-
export declare const forgotPassword: (body: ForgotPasswordDto) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
5
|
-
export declare const verifyOtp: (body: VerifyOtpDto) => Promise<TokenObject>;
|
|
6
|
-
export declare const resetPassword: (body: ResetPasswordDto) => Promise<ResponseAuth>;
|
|
7
|
-
export declare const refreshToken: (body: RefreshTokenDto) => Promise<Omit<ResponseAuth, "user">>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare enum LogoutType {
|
|
2
|
-
THIS_DEVICE = "Thi\u1EBFt b\u1ECB",
|
|
3
|
-
ALL_DEVICES = "T\u1EA5t c\u1EA3 thi\u1EBFt b\u1ECB"
|
|
4
|
-
}
|
|
5
|
-
export declare enum RefreshTokenStatus {
|
|
6
|
-
USED = "Used",
|
|
7
|
-
UNUSED = "Unused"
|
|
8
|
-
}
|
|
9
|
-
export declare enum ResetPasswordType {
|
|
10
|
-
OTP = "Otp",
|
|
11
|
-
EMAIL = "Email"
|
|
12
|
-
}
|
|
13
|
-
export declare enum ForgotPasswordType {
|
|
14
|
-
PHONE = "Phone",
|
|
15
|
-
EMAIL = "Email"
|
|
16
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { User } from '../user/user.entities';
|
|
2
|
-
import { LogoutType, ResetPasswordType, ForgotPasswordType } from './auth.enum';
|
|
3
|
-
export interface ForgotPasswordDto {
|
|
4
|
-
phone?: string;
|
|
5
|
-
email?: string;
|
|
6
|
-
type: ForgotPasswordType;
|
|
7
|
-
}
|
|
8
|
-
export interface GenerateTokenVerifyEmailDto {
|
|
9
|
-
email: string;
|
|
10
|
-
password: string;
|
|
11
|
-
}
|
|
12
|
-
export interface LoginDto {
|
|
13
|
-
emailOrPhone: string;
|
|
14
|
-
password: string;
|
|
15
|
-
}
|
|
16
|
-
export interface LogoutDto {
|
|
17
|
-
type: LogoutType;
|
|
18
|
-
refreshToken?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface RefreshTokenDto {
|
|
21
|
-
refreshToken: string;
|
|
22
|
-
}
|
|
23
|
-
export interface RegisterDto {
|
|
24
|
-
email: string;
|
|
25
|
-
password: string;
|
|
26
|
-
}
|
|
27
|
-
export interface ResetPasswordDto {
|
|
28
|
-
token: string;
|
|
29
|
-
password: string;
|
|
30
|
-
type: ResetPasswordType;
|
|
31
|
-
}
|
|
32
|
-
export interface VerifyOtpDto {
|
|
33
|
-
phone: string;
|
|
34
|
-
otp: string;
|
|
35
|
-
}
|
|
36
|
-
export interface ResponseAuth {
|
|
37
|
-
user: User;
|
|
38
|
-
accessToken: string;
|
|
39
|
-
refreshToken: string;
|
|
40
|
-
sidebarCountObj: Record<string, number>;
|
|
41
|
-
}
|
|
42
|
-
export interface TokenObject {
|
|
43
|
-
token: string;
|
|
44
|
-
}
|
package/dist/apis/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './notification.api';
|
|
2
|
-
export * from './notification.entities';
|
|
3
|
-
export * from './notification.enum';
|
|
4
|
-
export * from './notification.interface';
|
|
5
|
-
import * as notificationApiMethods from './notification.api';
|
|
6
|
-
export declare const notificationApi: typeof notificationApiMethods;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ResList } from '../../common/interfaces/res-list.interface';
|
|
2
|
-
import { Notification, NotificationSetting } from './notification.entities';
|
|
3
|
-
import { GetListNotificationDto, GetListNotificationSettingDto, UpdateNotificationDto, UpdateNotificationSettingDto } from './notification.interface';
|
|
4
|
-
export interface ResSubscribeTopic {
|
|
5
|
-
fcmToken: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const updateNotification: (body: UpdateNotificationDto) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
8
|
-
export declare const getListNotification: (params: GetListNotificationDto) => Promise<ResList<Notification>>;
|
|
9
|
-
export declare const updateNotificationSetting: (id: string, body: UpdateNotificationSettingDto) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
10
|
-
export declare const getListNotificationSetting: (params: GetListNotificationSettingDto) => Promise<ResList<NotificationSetting>>;
|
|
11
|
-
export declare const subscribeTopicByToken: (token: string) => Promise<ResSubscribeTopic>;
|
|
12
|
-
export declare const unSubscribeTopicByToken: (token: string) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from '../../common/interfaces/base-item.interface';
|
|
2
|
-
import { User } from '../user/user.entities';
|
|
3
|
-
import { NotificationType, NotificationStatus } from './notification.enum';
|
|
4
|
-
export interface NotificationSetting extends BaseEntity {
|
|
5
|
-
type: NotificationType;
|
|
6
|
-
isReceive: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface Notification extends BaseEntity {
|
|
9
|
-
title: string;
|
|
10
|
-
content: string;
|
|
11
|
-
createdById?: string;
|
|
12
|
-
status: NotificationStatus;
|
|
13
|
-
type: NotificationType;
|
|
14
|
-
path: string;
|
|
15
|
-
userId: string;
|
|
16
|
-
user: User;
|
|
17
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare enum NotificationType {
|
|
2
|
-
SYSTEM = "H\u1EC7 th\u1ED1ng",
|
|
3
|
-
APPLICATION = "\u1EE8ng tuy\u1EC3n",
|
|
4
|
-
INTERVIEW_BOOKING = "\u0110\u1EB7t l\u1ECBch ph\u1ECFng v\u1EA5n",
|
|
5
|
-
HIRED = "\u0110\u00E3 tuy\u1EC3n d\u1EE5ng",
|
|
6
|
-
RECRUITMENT_REQUEST = "Y\u00EAu c\u1EA7u tuy\u1EC3n d\u1EE5ng"
|
|
7
|
-
}
|
|
8
|
-
export declare enum UpdateNotificationAction {
|
|
9
|
-
VIEW_ONE = "View one",
|
|
10
|
-
VIEW_ALL = "View all",
|
|
11
|
-
DELETE_VIEWED = "Delete viewed",
|
|
12
|
-
DELETE_ALL = "Delete all",
|
|
13
|
-
DELETE_ONE = "Delete one"
|
|
14
|
-
}
|
|
15
|
-
export declare enum NotificationStatus {
|
|
16
|
-
VIEWED = "\u0110\u00E3 xem",
|
|
17
|
-
NOT_VIEWED = "Ch\u01B0a xem"
|
|
18
|
-
}
|
|
19
|
-
export declare enum keyNotification {
|
|
20
|
-
PROPOSAL_APPROVAL = "proposal_approval",// phê duyệt đề xuất
|
|
21
|
-
JOB_APPROVAL = "job_approval",// tuyển dụng
|
|
22
|
-
JOB = "job",// yêu cầu tuyển dụng
|
|
23
|
-
MOVEMENT = "movement",// di chuyển
|
|
24
|
-
PROJECT_TASK = "project_task",// nhiệm vụ dự án
|
|
25
|
-
RECRUITMENT = "recruitment"
|
|
26
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { PageOptionsDto } from '../../common/interfaces/page-options.interface';
|
|
2
|
-
import { NotificationType, UpdateNotificationAction, NotificationStatus } from './notification.enum';
|
|
3
|
-
export interface GetListNotificationSettingDto extends PageOptionsDto {
|
|
4
|
-
type?: NotificationType;
|
|
5
|
-
isReceive?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface GetListNotificationDto extends PageOptionsDto {
|
|
8
|
-
type?: NotificationType;
|
|
9
|
-
status?: NotificationStatus;
|
|
10
|
-
}
|
|
11
|
-
export interface UpdateNotificationSettingDto {
|
|
12
|
-
isReceive: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface UpdateNotificationDto {
|
|
15
|
-
updateNotificationAction: UpdateNotificationAction;
|
|
16
|
-
id?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface NotificationProposalValue {
|
|
19
|
-
total: number;
|
|
20
|
-
job: number;
|
|
21
|
-
movement: number;
|
|
22
|
-
project_task: number;
|
|
23
|
-
}
|
|
24
|
-
export interface JobApproval {
|
|
25
|
-
total: number;
|
|
26
|
-
recruitment: number;
|
|
27
|
-
}
|
|
28
|
-
export interface NotificationSummaryItem {
|
|
29
|
-
movement: number;
|
|
30
|
-
approve_list: number;
|
|
31
|
-
approve: number;
|
|
32
|
-
recruitment: number;
|
|
33
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from '../../common/interfaces/base-item.interface';
|
|
2
|
-
import { SubManager, User } from '../user/user.entities';
|
|
3
|
-
import { OrgUnitStatus, OrgUnitType } from './org-unit.enum';
|
|
4
|
-
export interface OrgUnit extends BaseEntity {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
type: OrgUnitType;
|
|
9
|
-
status: OrgUnitStatus;
|
|
10
|
-
totalMember: number;
|
|
11
|
-
parentId: string;
|
|
12
|
-
parent: OrgUnit;
|
|
13
|
-
children: OrgUnit[];
|
|
14
|
-
managerId: string;
|
|
15
|
-
manager: User;
|
|
16
|
-
permission: boolean;
|
|
17
|
-
projectTaskId?: string;
|
|
18
|
-
divisionId?: string;
|
|
19
|
-
subManagersParent: SubManagersParent[];
|
|
20
|
-
subManagers: SubManager[];
|
|
21
|
-
}
|
|
22
|
-
export interface SubManagersParent {
|
|
23
|
-
orgUnit: OrgUnit;
|
|
24
|
-
}
|
|
25
|
-
export interface OrgUnitIdDetail extends OrgUnit {
|
|
26
|
-
orgUnit: OrgUnit;
|
|
27
|
-
users: User[];
|
|
28
|
-
}
|
|
29
|
-
export interface GetOrgUnitIdDto extends OrgUnit {
|
|
30
|
-
userOrgUnitPositions: {
|
|
31
|
-
id: string;
|
|
32
|
-
user: {
|
|
33
|
-
id: string;
|
|
34
|
-
name: string;
|
|
35
|
-
};
|
|
36
|
-
position: {
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
|
-
};
|
|
40
|
-
}[];
|
|
41
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare enum OrgUnitType {
|
|
2
|
-
BOARD_OF_DIRECTORS = 1,// Ban Giám đốc
|
|
3
|
-
DIVISION = 3,// Khối
|
|
4
|
-
DEPARTMENT = 5,// Phòng ban
|
|
5
|
-
PART = 7,// Bộ phận
|
|
6
|
-
TEAM = 9
|
|
7
|
-
}
|
|
8
|
-
export declare enum OrgUnitStatus {
|
|
9
|
-
ACTIVE = "Ho\u1EA1t \u0111\u1ED9ng",
|
|
10
|
-
INACTIVE = "Kh\u00F4ng ho\u1EA1t \u0111\u1ED9ng"
|
|
11
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ResList } from '../../common/interfaces/res-list.interface';
|
|
2
|
-
import { User } from './user.entities';
|
|
3
|
-
import { CreateUserDto, GetListUserDto, UpdateAccountDto, UpdateUserDto } from './user.interface';
|
|
4
|
-
export declare const createUser: (body: CreateUserDto) => Promise<User>;
|
|
5
|
-
export declare const updateUser: (id: string, body: UpdateUserDto) => Promise<User>;
|
|
6
|
-
export declare const updateAccount: (body: UpdateAccountDto) => Promise<User>;
|
|
7
|
-
export declare const deleteUser: (id: string) => Promise<void>;
|
|
8
|
-
export declare const getListUser: (body: GetListUserDto) => Promise<ResList<User>>;
|
|
9
|
-
export declare const getListUserRelations: (body: GetListUserDto) => Promise<ResList<User>>;
|
|
10
|
-
export declare const getUser: (id: string) => Promise<User>;
|
|
11
|
-
export declare const getUserInformationHistory: (id: string) => Promise<User>;
|
|
12
|
-
export declare const getUserOrgUnitPositionById: (userId: string) => Promise<User>;
|
|
13
|
-
export declare const getUserGenerateNextUserCode: () => Promise<string>;
|
|
14
|
-
export declare const getUserNearestManagers: () => Promise<User[]>;
|
|
15
|
-
export declare const getUserByOrgUnit: (body: {
|
|
16
|
-
orgUnitIds: string[];
|
|
17
|
-
}) => Promise<User[]>;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from '../../common/interfaces/base-item.interface';
|
|
2
|
-
import { OrgUnit } from '../org-unit/org-unit.entities';
|
|
3
|
-
import { Gender, UserBankName, UserCitizenIdentificationPlace, UserCultureLevel, UserEducationLevel, UserEthnic, UserLevel, UserMaritalStatus, UserOfficialStatus, UserReligion, UserResignType, UserStatus, UserType } from './user.enum';
|
|
4
|
-
export interface UserOrgUnitPosition extends BaseEntity {
|
|
5
|
-
userId: string;
|
|
6
|
-
user: User;
|
|
7
|
-
positionId: string;
|
|
8
|
-
position: any;
|
|
9
|
-
orgUnitId: string;
|
|
10
|
-
orgUnit: any;
|
|
11
|
-
orgUnits: any[];
|
|
12
|
-
id: string;
|
|
13
|
-
subManagers: SubManager[];
|
|
14
|
-
positionType: any;
|
|
15
|
-
manager: string;
|
|
16
|
-
isOldData?: boolean;
|
|
17
|
-
orgUnitData?: any;
|
|
18
|
-
}
|
|
19
|
-
export interface avatarUser {
|
|
20
|
-
id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
url: string;
|
|
23
|
-
}
|
|
24
|
-
export interface User extends BaseEntity {
|
|
25
|
-
code: string;
|
|
26
|
-
name: string;
|
|
27
|
-
gender: Gender;
|
|
28
|
-
dateOnboard: Date;
|
|
29
|
-
email: string;
|
|
30
|
-
internalPhones: string[];
|
|
31
|
-
phone: string;
|
|
32
|
-
level: UserLevel;
|
|
33
|
-
birthday: Date;
|
|
34
|
-
address: string;
|
|
35
|
-
tempAddress: string;
|
|
36
|
-
educationLevel: UserEducationLevel;
|
|
37
|
-
major: string;
|
|
38
|
-
cultureLevel: UserCultureLevel;
|
|
39
|
-
dateWorkEnd: Date;
|
|
40
|
-
resignType: UserResignType;
|
|
41
|
-
resignReason: string;
|
|
42
|
-
cccd: string;
|
|
43
|
-
citizenIdentificationDate: Date;
|
|
44
|
-
citizenIdentificationPlace: UserCitizenIdentificationPlace;
|
|
45
|
-
passportNumber: string;
|
|
46
|
-
passportDate: Date;
|
|
47
|
-
passportPlace: string;
|
|
48
|
-
passportValidityDate: Date;
|
|
49
|
-
ethnicity: UserEthnic;
|
|
50
|
-
religion: UserReligion;
|
|
51
|
-
maritalStatus: UserMaritalStatus;
|
|
52
|
-
taxCode: string;
|
|
53
|
-
socialInsuranceNumber: string;
|
|
54
|
-
bankAccountNumber: string;
|
|
55
|
-
bankBranch: string;
|
|
56
|
-
bankName: UserBankName;
|
|
57
|
-
tenure: number;
|
|
58
|
-
relativeName: string;
|
|
59
|
-
relativePhone: string;
|
|
60
|
-
url: string;
|
|
61
|
-
type: UserType;
|
|
62
|
-
status: UserStatus;
|
|
63
|
-
password: string;
|
|
64
|
-
officialStatus: UserOfficialStatus;
|
|
65
|
-
userOrgUnitPositions: UserOrgUnitPosition[];
|
|
66
|
-
managedOrgUnits: OrgUnit[];
|
|
67
|
-
subManagers: SubManager[];
|
|
68
|
-
managers?: {
|
|
69
|
-
[key: string]: OrgUnitData;
|
|
70
|
-
};
|
|
71
|
-
orgUnits?: any[];
|
|
72
|
-
position?: any;
|
|
73
|
-
permission: boolean;
|
|
74
|
-
numberPermission?: number;
|
|
75
|
-
codeClock: string;
|
|
76
|
-
}
|
|
77
|
-
interface Manager {
|
|
78
|
-
orgUnitId: string;
|
|
79
|
-
orgUnitName: string;
|
|
80
|
-
managerId: string;
|
|
81
|
-
managerName: string;
|
|
82
|
-
managerEmail: string;
|
|
83
|
-
level: number;
|
|
84
|
-
url: string;
|
|
85
|
-
type: number;
|
|
86
|
-
}
|
|
87
|
-
interface OrgUnitData {
|
|
88
|
-
orgUnitName: string;
|
|
89
|
-
positionName: string;
|
|
90
|
-
nearestManagers: Manager[];
|
|
91
|
-
}
|
|
92
|
-
interface PositionValueDto {
|
|
93
|
-
id: string;
|
|
94
|
-
orgName: string;
|
|
95
|
-
positionName: string;
|
|
96
|
-
}
|
|
97
|
-
export interface OrgUnitValueDto {
|
|
98
|
-
id: string;
|
|
99
|
-
orgName: string;
|
|
100
|
-
positionName: string;
|
|
101
|
-
divisionName: string;
|
|
102
|
-
departmentName: string;
|
|
103
|
-
partName: string;
|
|
104
|
-
teamsName: string[];
|
|
105
|
-
}
|
|
106
|
-
export interface MovementValueDto {
|
|
107
|
-
position?: PositionValueDto;
|
|
108
|
-
orgUnit?: OrgUnitValueDto;
|
|
109
|
-
user?: User;
|
|
110
|
-
}
|
|
111
|
-
export interface UserMovementOrgUnitSimple {
|
|
112
|
-
id: string;
|
|
113
|
-
name: string;
|
|
114
|
-
type: number;
|
|
115
|
-
}
|
|
116
|
-
export interface UserMovementPositionSimple {
|
|
117
|
-
id: string;
|
|
118
|
-
name: string;
|
|
119
|
-
}
|
|
120
|
-
export interface SubManager {
|
|
121
|
-
id?: string;
|
|
122
|
-
name?: string;
|
|
123
|
-
type?: number;
|
|
124
|
-
orgUnitId?: string;
|
|
125
|
-
orgUnitParentId?: string;
|
|
126
|
-
orgUnit?: any;
|
|
127
|
-
user?: User;
|
|
128
|
-
}
|
|
129
|
-
export interface UserHistoryItem {
|
|
130
|
-
id: string;
|
|
131
|
-
updatedAt: string;
|
|
132
|
-
createdBy: {
|
|
133
|
-
id: string;
|
|
134
|
-
name: string;
|
|
135
|
-
url: string;
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
export interface UserMovementHistoryData {
|
|
139
|
-
userMovementHistory: UserHistoryItem;
|
|
140
|
-
changes: UserMovementHistoryChange[];
|
|
141
|
-
}
|
|
142
|
-
export interface UserMovementHistoryChange {
|
|
143
|
-
field: string;
|
|
144
|
-
label: string;
|
|
145
|
-
reasonOld: string;
|
|
146
|
-
reasonNew: string;
|
|
147
|
-
dateAppointmentOld: string;
|
|
148
|
-
dateAppointmentNew: string;
|
|
149
|
-
fileOld: string;
|
|
150
|
-
fileNew: string;
|
|
151
|
-
}
|
|
152
|
-
export interface UserInformationHistoryChange {
|
|
153
|
-
field: string;
|
|
154
|
-
old: string;
|
|
155
|
-
new: string;
|
|
156
|
-
}
|
|
157
|
-
export interface UserInformationHistoryData {
|
|
158
|
-
userHistory: UserHistoryItem;
|
|
159
|
-
changes: UserInformationHistoryChange[];
|
|
160
|
-
}
|
|
161
|
-
export {};
|