@platform-modules/foreign-ministry 1.0.28 → 1.0.29
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/.env +2 -2
- package/dist/data-source.js +42 -3
- package/dist/index.d.ts +14 -2
- package/dist/index.js +14 -2
- package/dist/models/ConversationModel.d.ts +16 -0
- package/dist/models/ConversationModel.js +64 -0
- package/dist/models/ConversationParticipantModel.d.ts +14 -0
- package/dist/models/ConversationParticipantModel.js +68 -0
- package/dist/models/DepartmentsModel.d.ts +7 -0
- package/dist/models/DepartmentsModel.js +39 -0
- package/dist/models/DesignationModel.d.ts +6 -0
- package/dist/models/DesignationModel.js +34 -0
- package/dist/models/DivisionModel.d.ts +6 -0
- package/dist/models/DivisionModel.js +34 -0
- package/dist/models/LeaveApprovalsModel.d.ts +15 -0
- package/dist/models/{LeaveApprovalDetailsModel.js → LeaveApprovalsModel.js} +23 -7
- package/dist/models/LeaveAttachmentsModel.d.ts +7 -0
- package/dist/models/LeaveAttachmentsModel.js +40 -0
- package/dist/models/LeaveChatModel.d.ts +7 -0
- package/dist/models/LeaveChatModel.js +40 -0
- package/dist/models/LeaveSettingsModel.d.ts +7 -0
- package/dist/models/{LeaveApprovalMatrixModel.js → LeaveSettingsModel.js} +14 -14
- package/dist/models/LeaveWorkFlowModel.d.ts +13 -0
- package/dist/models/LeaveWorkFlowModel.js +51 -0
- package/dist/models/MessageModel.d.ts +27 -0
- package/dist/models/MessageModel.js +108 -0
- package/dist/models/SectionModel.d.ts +8 -0
- package/dist/models/SectionModel.js +44 -0
- package/dist/models/faqsModel.d.ts +11 -0
- package/dist/models/faqsModel.js +57 -0
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/dist/models/user.d.ts +29 -16
- package/dist/models/user.js +99 -39
- package/package.json +1 -1
- package/src/data-source.ts +44 -3
- package/src/index.ts +15 -3
- package/src/models/ConversationModel.ts +48 -0
- package/src/models/ConversationParticipantModel.ts +51 -0
- package/src/models/DepartmentsModel.ts +26 -0
- package/src/models/DesignationModel.ts +19 -0
- package/src/models/DivisionModel.ts +19 -0
- package/src/models/LeaveApprovalsModel.ts +41 -0
- package/src/models/LeaveAttachmentsModel.ts +21 -0
- package/src/models/LeaveChatModel.ts +21 -0
- package/src/models/{LeaveApprovalMatrixModel.ts → LeaveSettingsModel.ts} +6 -6
- package/src/models/LeaveWorkFlowModel.ts +32 -0
- package/src/models/MessageModel.ts +93 -0
- package/src/models/SectionModel.ts +31 -0
- package/src/models/faqsModel.ts +43 -0
- package/src/models/questionTagsModel.ts +22 -0
- package/src/models/user.ts +111 -60
- package/dist/models/LeaveApprovalDetailsModel.d.ts +0 -8
- package/dist/models/LeaveApprovalMatrixModel.d.ts +0 -7
- package/src/models/LeaveApprovalDetailsModel.ts +0 -25
package/src/models/user.ts
CHANGED
|
@@ -1,100 +1,151 @@
|
|
|
1
|
-
|
|
2
|
-
import { Column, Entity ,BeforeInsert,BeforeUpdate } from "typeorm";
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
3
2
|
import { BaseModel } from './BaseModel';
|
|
4
3
|
|
|
5
4
|
@Entity({ name: 'users' })
|
|
6
5
|
export class User extends BaseModel {
|
|
7
6
|
|
|
7
|
+
@Column({ type: 'bigint', nullable: true })
|
|
8
|
+
employee_id?: number;
|
|
9
|
+
|
|
10
|
+
@Column({ nullable: true })
|
|
11
|
+
employee_name?: string;
|
|
12
|
+
|
|
8
13
|
@Column({ nullable: true })
|
|
9
|
-
|
|
14
|
+
employee_arabic_name?: string;
|
|
15
|
+
|
|
16
|
+
@Column({ nullable: true, type: 'date' })
|
|
17
|
+
date_of_birth?: string;
|
|
10
18
|
|
|
11
19
|
@Column({ nullable: true })
|
|
12
|
-
|
|
20
|
+
region_of_birth?: string;
|
|
13
21
|
|
|
14
22
|
@Column({ nullable: true })
|
|
15
|
-
|
|
23
|
+
country_of_birth?: string;
|
|
24
|
+
|
|
25
|
+
@Column({ nullable: true, type: 'date' })
|
|
26
|
+
date_of_joining?: string;
|
|
27
|
+
|
|
28
|
+
@Column({ nullable: true ,type: 'date'})
|
|
29
|
+
last_promotion_date?: string;
|
|
16
30
|
|
|
17
31
|
@Column({ nullable: true })
|
|
18
|
-
|
|
32
|
+
gender?: string;
|
|
19
33
|
|
|
20
34
|
@Column({ nullable: true })
|
|
21
|
-
|
|
35
|
+
marital_status?: string;
|
|
22
36
|
|
|
23
37
|
@Column({ nullable: true })
|
|
24
|
-
|
|
38
|
+
nationality?: string;
|
|
25
39
|
|
|
26
40
|
@Column({ nullable: true })
|
|
27
|
-
|
|
41
|
+
email?: string;
|
|
28
42
|
|
|
29
43
|
@Column({ nullable: true })
|
|
30
|
-
|
|
44
|
+
blood_group?: string;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'bigint', nullable: true })
|
|
47
|
+
national_id?: number;
|
|
31
48
|
|
|
32
49
|
@Column({ nullable: true })
|
|
33
|
-
|
|
50
|
+
mobile?: string;
|
|
34
51
|
|
|
35
52
|
@Column({ nullable: true })
|
|
36
|
-
|
|
53
|
+
department?: number;
|
|
37
54
|
|
|
38
55
|
@Column({ nullable: true })
|
|
39
|
-
|
|
56
|
+
section?: number;
|
|
40
57
|
|
|
41
|
-
@Column({ nullable: true
|
|
42
|
-
|
|
58
|
+
@Column({ nullable: true })
|
|
59
|
+
designation?: number;
|
|
43
60
|
|
|
44
61
|
@Column({ nullable: true })
|
|
45
|
-
|
|
62
|
+
grade?: number;
|
|
46
63
|
|
|
47
64
|
@Column({ nullable: true })
|
|
48
|
-
|
|
65
|
+
location?: string;
|
|
49
66
|
|
|
50
|
-
|
|
51
|
-
|
|
67
|
+
@Column({ nullable: true })
|
|
68
|
+
country?: string;
|
|
52
69
|
|
|
53
|
-
|
|
54
|
-
|
|
70
|
+
@Column({ nullable: true , default: false})
|
|
71
|
+
is_admin?: boolean;
|
|
55
72
|
|
|
56
73
|
@Column({ nullable: true })
|
|
57
|
-
|
|
74
|
+
division?: number;
|
|
58
75
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
last_name: string,
|
|
62
|
-
full_name: string,
|
|
63
|
-
password: string,
|
|
64
|
-
mobile: string,
|
|
65
|
-
email: string,
|
|
66
|
-
address: string,
|
|
67
|
-
city: string,
|
|
68
|
-
state: string,
|
|
69
|
-
country: string,
|
|
70
|
-
pincode: string,
|
|
71
|
-
is_active: boolean,
|
|
72
|
-
EncryptPassword: string,
|
|
73
|
-
roleId: number,
|
|
74
|
-
// contract_start_date: string,
|
|
75
|
-
// contract_end_date: string,
|
|
76
|
-
company: string
|
|
76
|
+
@Column({ nullable: true })
|
|
77
|
+
reporting_to?: number;
|
|
77
78
|
|
|
79
|
+
@Column({ nullable: true })
|
|
80
|
+
address?: string;
|
|
81
|
+
|
|
82
|
+
@Column({ nullable: true })
|
|
83
|
+
residential_status?: string;
|
|
84
|
+
|
|
85
|
+
@Column({ nullable: true })
|
|
86
|
+
religion?: string;
|
|
87
|
+
|
|
88
|
+
@Column({ nullable: true })
|
|
89
|
+
avatar?: string;
|
|
90
|
+
|
|
91
|
+
constructor(
|
|
92
|
+
employee_id?: number,
|
|
93
|
+
employee_name?: string,
|
|
94
|
+
employee_arabic_name?: string,
|
|
95
|
+
date_of_birth?: string,
|
|
96
|
+
region_of_birth?: string,
|
|
97
|
+
country_of_birth?: string,
|
|
98
|
+
date_of_joining?: string,
|
|
99
|
+
last_promotion_date?: string,
|
|
100
|
+
gender?: string,
|
|
101
|
+
marital_status?: string,
|
|
102
|
+
nationality?: string,
|
|
103
|
+
email?: string,
|
|
104
|
+
blood_group?: string,
|
|
105
|
+
national_id?: number,
|
|
106
|
+
mobile?: string,
|
|
107
|
+
department?: number,
|
|
108
|
+
section?: number,
|
|
109
|
+
grade?: number,
|
|
110
|
+
location?: string,
|
|
111
|
+
country?: string,
|
|
112
|
+
is_admin?: boolean,
|
|
113
|
+
division?: number,
|
|
114
|
+
reporting_to?: number,
|
|
115
|
+
address?: string,
|
|
116
|
+
residential_status?: string,
|
|
117
|
+
religion?: string,
|
|
118
|
+
designation?: number,
|
|
119
|
+
avatar?: string,
|
|
78
120
|
) {
|
|
79
121
|
super();
|
|
80
|
-
this.
|
|
81
|
-
this.
|
|
82
|
-
this.
|
|
83
|
-
this.
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
88
|
-
this.
|
|
89
|
-
this.
|
|
90
|
-
this.
|
|
91
|
-
this.
|
|
92
|
-
this.
|
|
93
|
-
this.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
this.
|
|
122
|
+
this.employee_id = employee_id;
|
|
123
|
+
this.employee_name = employee_name;
|
|
124
|
+
this.employee_arabic_name = employee_arabic_name;
|
|
125
|
+
this.date_of_birth = date_of_birth;
|
|
126
|
+
this.region_of_birth = region_of_birth;
|
|
127
|
+
this.country_of_birth = country_of_birth;
|
|
128
|
+
this.date_of_joining = date_of_joining;
|
|
129
|
+
this.last_promotion_date = last_promotion_date;
|
|
130
|
+
this.gender = gender;
|
|
131
|
+
this.marital_status = marital_status;
|
|
132
|
+
this.nationality = nationality;
|
|
133
|
+
this.email = email;
|
|
134
|
+
this.blood_group = blood_group;
|
|
135
|
+
this.national_id = national_id;
|
|
136
|
+
this.mobile = mobile;
|
|
137
|
+
this.department = department;
|
|
138
|
+
this.section = section;
|
|
139
|
+
this.grade = grade;
|
|
140
|
+
this.location = location;
|
|
141
|
+
this.country = country;
|
|
142
|
+
this.is_admin = is_admin;
|
|
143
|
+
this.division = division;
|
|
144
|
+
this.reporting_to = reporting_to;
|
|
145
|
+
this.address = address;
|
|
146
|
+
this.residential_status = residential_status;
|
|
147
|
+
this.religion = religion;
|
|
148
|
+
this.designation = designation;
|
|
149
|
+
this.avatar = avatar;
|
|
97
150
|
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
151
|
+
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class LeaveApprovalDetails extends BaseModel {
|
|
3
|
-
leave_request_id: number;
|
|
4
|
-
level: number;
|
|
5
|
-
approver_id: number;
|
|
6
|
-
approval_status: number;
|
|
7
|
-
constructor(leave_request_id: number, approver_id: number, approval_status: number, level: number);
|
|
8
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
//This model is used to store the store the leave apporval details of the user for the leave request
|
|
4
|
-
@Entity({ name: 'leave_approval_details' })
|
|
5
|
-
export class LeaveApprovalDetails extends BaseModel {
|
|
6
|
-
@Column({ type: 'int', nullable: false })
|
|
7
|
-
leave_request_id: number;
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'int', nullable: false })
|
|
10
|
-
level: number;
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'int', nullable: false })
|
|
13
|
-
approver_id: number;
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'int', nullable: false })
|
|
16
|
-
approval_status: number;
|
|
17
|
-
|
|
18
|
-
constructor(leave_request_id: number, approver_id: number, approval_status: number, level: number) {
|
|
19
|
-
super();
|
|
20
|
-
this.leave_request_id = leave_request_id;
|
|
21
|
-
this.approver_id = approver_id;
|
|
22
|
-
this.approval_status = approval_status;
|
|
23
|
-
this.level = level;
|
|
24
|
-
}
|
|
25
|
-
}
|