@platform-modules/civil-aviation-authority 1.0.12 → 1.0.13
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/models/user.d.ts +31 -16
- package/dist/models/user.js +108 -38
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/models/user.ts +121 -56
package/dist/models/user.d.ts
CHANGED
|
@@ -1,19 +1,34 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare class User extends BaseModel {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
employee_id?: number;
|
|
4
|
+
civil_employee_id?: number;
|
|
5
|
+
employee_name?: string;
|
|
6
|
+
employee_arabic_name?: string;
|
|
7
|
+
person_type?: string;
|
|
8
|
+
date_of_birth?: string;
|
|
9
|
+
region_of_birth?: string;
|
|
10
|
+
country_of_birth?: string;
|
|
11
|
+
date_of_joining?: string;
|
|
12
|
+
last_promotion_date?: string;
|
|
13
|
+
gender?: string;
|
|
14
|
+
qualification?: string;
|
|
15
|
+
marital_status?: string;
|
|
16
|
+
nationality?: string;
|
|
17
|
+
email?: string;
|
|
18
|
+
blood_type?: string;
|
|
19
|
+
national_id?: number;
|
|
20
|
+
manpower_id?: number;
|
|
21
|
+
mobile?: string;
|
|
22
|
+
office_number?: string;
|
|
23
|
+
department?: string;
|
|
24
|
+
category?: string;
|
|
25
|
+
directorate?: string;
|
|
26
|
+
section?: string;
|
|
27
|
+
position?: string;
|
|
28
|
+
arabic_position?: string;
|
|
29
|
+
grade?: number;
|
|
30
|
+
location?: string;
|
|
31
|
+
supervisor_emp_id?: number;
|
|
32
|
+
supervisor_emp_name?: string;
|
|
33
|
+
constructor(employee_id?: number, civil_employee_id?: number, employee_name?: string, employee_arabic_name?: string, person_type?: string, date_of_birth?: string, region_of_birth?: string, country_of_birth?: string, date_of_joining?: string, last_promotion_date?: string, gender?: string, qualification?: string, marital_status?: string, nationality?: string, email?: string, blood_type?: string, national_id?: number, manpower_id?: number, mobile?: string, office_number?: string, department?: string, category?: string, directorate?: string, section?: string, position?: string, arabic_position?: string, grade?: number, location?: string, supervisor_emp_id?: number, supervisor_emp_name?: string);
|
|
19
34
|
}
|
package/dist/models/user.js
CHANGED
|
@@ -13,51 +13,97 @@ exports.User = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let User = class User extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(
|
|
17
|
-
// contract_start_date: string,
|
|
18
|
-
// contract_end_date: string,
|
|
19
|
-
company) {
|
|
16
|
+
constructor(employee_id, civil_employee_id, employee_name, employee_arabic_name, person_type, date_of_birth, region_of_birth, country_of_birth, date_of_joining, last_promotion_date, gender, qualification, marital_status, nationality, email, blood_type, national_id, manpower_id, mobile, office_number, department, category, directorate, section, position, arabic_position, grade, location, supervisor_emp_id, supervisor_emp_name) {
|
|
20
17
|
super();
|
|
21
|
-
this.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
18
|
+
this.employee_id = employee_id;
|
|
19
|
+
this.civil_employee_id = civil_employee_id;
|
|
20
|
+
this.employee_name = employee_name;
|
|
21
|
+
this.employee_arabic_name = employee_arabic_name;
|
|
22
|
+
this.person_type = person_type;
|
|
23
|
+
this.date_of_birth = date_of_birth;
|
|
24
|
+
this.region_of_birth = region_of_birth;
|
|
25
|
+
this.country_of_birth = country_of_birth;
|
|
26
|
+
this.date_of_joining = date_of_joining;
|
|
27
|
+
this.last_promotion_date = last_promotion_date;
|
|
28
|
+
this.gender = gender;
|
|
29
|
+
this.qualification = qualification;
|
|
30
|
+
this.marital_status = marital_status;
|
|
31
|
+
this.nationality = nationality;
|
|
32
|
+
this.email = email;
|
|
33
|
+
this.blood_type = blood_type;
|
|
34
|
+
this.national_id = national_id;
|
|
35
|
+
this.manpower_id = manpower_id;
|
|
36
|
+
this.mobile = mobile;
|
|
37
|
+
this.office_number = office_number;
|
|
38
|
+
this.department = department;
|
|
39
|
+
this.category = category;
|
|
40
|
+
this.directorate = directorate;
|
|
41
|
+
this.section = section;
|
|
42
|
+
this.position = position;
|
|
43
|
+
this.arabic_position = arabic_position;
|
|
44
|
+
this.grade = grade;
|
|
45
|
+
this.location = location;
|
|
46
|
+
this.supervisor_emp_id = supervisor_emp_id;
|
|
47
|
+
this.supervisor_emp_name = supervisor_emp_name;
|
|
38
48
|
}
|
|
39
49
|
};
|
|
40
50
|
exports.User = User;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], User.prototype, "employee_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], User.prototype, "civil_employee_id", void 0);
|
|
41
59
|
__decorate([
|
|
42
60
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
43
61
|
__metadata("design:type", String)
|
|
44
|
-
], User.prototype, "
|
|
62
|
+
], User.prototype, "employee_name", void 0);
|
|
45
63
|
__decorate([
|
|
46
64
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
47
65
|
__metadata("design:type", String)
|
|
48
|
-
], User.prototype, "
|
|
66
|
+
], User.prototype, "employee_arabic_name", void 0);
|
|
49
67
|
__decorate([
|
|
50
68
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
51
69
|
__metadata("design:type", String)
|
|
52
|
-
], User.prototype, "
|
|
70
|
+
], User.prototype, "person_type", void 0);
|
|
53
71
|
__decorate([
|
|
54
72
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
55
73
|
__metadata("design:type", String)
|
|
56
|
-
], User.prototype, "
|
|
74
|
+
], User.prototype, "date_of_birth", void 0);
|
|
57
75
|
__decorate([
|
|
58
76
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
59
77
|
__metadata("design:type", String)
|
|
60
|
-
], User.prototype, "
|
|
78
|
+
], User.prototype, "region_of_birth", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], User.prototype, "country_of_birth", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], User.prototype, "date_of_joining", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], User.prototype, "last_promotion_date", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], User.prototype, "gender", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], User.prototype, "qualification", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], User.prototype, "marital_status", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], User.prototype, "nationality", void 0);
|
|
61
107
|
__decorate([
|
|
62
108
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
63
109
|
__metadata("design:type", String)
|
|
@@ -65,40 +111,64 @@ __decorate([
|
|
|
65
111
|
__decorate([
|
|
66
112
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
67
113
|
__metadata("design:type", String)
|
|
68
|
-
], User.prototype, "
|
|
114
|
+
], User.prototype, "blood_type", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
117
|
+
__metadata("design:type", Number)
|
|
118
|
+
], User.prototype, "national_id", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
121
|
+
__metadata("design:type", Number)
|
|
122
|
+
], User.prototype, "manpower_id", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
125
|
+
__metadata("design:type", String)
|
|
126
|
+
], User.prototype, "mobile", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], User.prototype, "office_number", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
133
|
+
__metadata("design:type", String)
|
|
134
|
+
], User.prototype, "department", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
137
|
+
__metadata("design:type", String)
|
|
138
|
+
], User.prototype, "category", void 0);
|
|
69
139
|
__decorate([
|
|
70
140
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
71
141
|
__metadata("design:type", String)
|
|
72
|
-
], User.prototype, "
|
|
142
|
+
], User.prototype, "directorate", void 0);
|
|
73
143
|
__decorate([
|
|
74
144
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
75
145
|
__metadata("design:type", String)
|
|
76
|
-
], User.prototype, "
|
|
146
|
+
], User.prototype, "section", void 0);
|
|
77
147
|
__decorate([
|
|
78
148
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
79
149
|
__metadata("design:type", String)
|
|
80
|
-
], User.prototype, "
|
|
150
|
+
], User.prototype, "position", void 0);
|
|
81
151
|
__decorate([
|
|
82
152
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
83
153
|
__metadata("design:type", String)
|
|
84
|
-
], User.prototype, "
|
|
154
|
+
], User.prototype, "arabic_position", void 0);
|
|
85
155
|
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({ nullable: true
|
|
87
|
-
__metadata("design:type",
|
|
88
|
-
], User.prototype, "
|
|
156
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
157
|
+
__metadata("design:type", Number)
|
|
158
|
+
], User.prototype, "grade", void 0);
|
|
89
159
|
__decorate([
|
|
90
160
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
91
161
|
__metadata("design:type", String)
|
|
92
|
-
], User.prototype, "
|
|
162
|
+
], User.prototype, "location", void 0);
|
|
93
163
|
__decorate([
|
|
94
164
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
95
165
|
__metadata("design:type", Number)
|
|
96
|
-
], User.prototype, "
|
|
166
|
+
], User.prototype, "supervisor_emp_id", void 0);
|
|
97
167
|
__decorate([
|
|
98
168
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
99
169
|
__metadata("design:type", String)
|
|
100
|
-
], User.prototype, "
|
|
170
|
+
], User.prototype, "supervisor_emp_name", void 0);
|
|
101
171
|
exports.User = User = __decorate([
|
|
102
172
|
(0, typeorm_1.Entity)({ name: 'users' }),
|
|
103
|
-
__metadata("design:paramtypes", [String, String, String, String, String, String, String, String, String, String, String,
|
|
173
|
+
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, String, String, String, String, String, String, String, String, String, Number, Number, String, String, String, String, String, String, String, String, Number, String, Number, String])
|
|
104
174
|
], User);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/models/user.ts
CHANGED
|
@@ -1,99 +1,164 @@
|
|
|
1
1
|
|
|
2
|
-
import { Column, Entity
|
|
2
|
+
import { Column, Entity } from "typeorm";
|
|
3
3
|
import { BaseModel } from './BaseModel';
|
|
4
4
|
|
|
5
5
|
@Entity({ name: 'users' })
|
|
6
6
|
export class User extends BaseModel {
|
|
7
7
|
|
|
8
8
|
@Column({ nullable: true })
|
|
9
|
-
|
|
9
|
+
employee_id?: number;
|
|
10
10
|
|
|
11
11
|
@Column({ nullable: true })
|
|
12
|
-
|
|
12
|
+
civil_employee_id?: number;
|
|
13
13
|
|
|
14
14
|
@Column({ nullable: true })
|
|
15
|
-
|
|
15
|
+
employee_name?: string;
|
|
16
16
|
|
|
17
17
|
@Column({ nullable: true })
|
|
18
|
-
|
|
18
|
+
employee_arabic_name?: string;
|
|
19
19
|
|
|
20
20
|
@Column({ nullable: true })
|
|
21
|
-
|
|
21
|
+
person_type?: string;
|
|
22
22
|
|
|
23
23
|
@Column({ nullable: true })
|
|
24
|
-
|
|
24
|
+
date_of_birth?: string;
|
|
25
25
|
|
|
26
26
|
@Column({ nullable: true })
|
|
27
|
-
|
|
27
|
+
region_of_birth?: string;
|
|
28
28
|
|
|
29
29
|
@Column({ nullable: true })
|
|
30
|
-
|
|
30
|
+
country_of_birth?: string;
|
|
31
31
|
|
|
32
32
|
@Column({ nullable: true })
|
|
33
|
-
|
|
33
|
+
date_of_joining?: string;
|
|
34
34
|
|
|
35
35
|
@Column({ nullable: true })
|
|
36
|
-
|
|
36
|
+
last_promotion_date?: string;
|
|
37
37
|
|
|
38
38
|
@Column({ nullable: true })
|
|
39
|
-
|
|
39
|
+
gender?: string;
|
|
40
40
|
|
|
41
|
-
@Column({ nullable: true
|
|
42
|
-
|
|
41
|
+
@Column({ nullable: true })
|
|
42
|
+
qualification?: string;
|
|
43
43
|
|
|
44
44
|
@Column({ nullable: true })
|
|
45
|
-
|
|
45
|
+
marital_status?: string;
|
|
46
46
|
|
|
47
47
|
@Column({ nullable: true })
|
|
48
|
-
|
|
48
|
+
nationality?: string;
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
@Column({ nullable: true })
|
|
51
|
+
email?: string;
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
@Column({ nullable: true })
|
|
54
|
+
blood_type?: string;
|
|
55
55
|
|
|
56
56
|
@Column({ nullable: true })
|
|
57
|
-
|
|
57
|
+
national_id?: number;
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
company: string
|
|
59
|
+
@Column({ nullable: true })
|
|
60
|
+
manpower_id?: number;
|
|
61
|
+
|
|
62
|
+
@Column({ nullable: true })
|
|
63
|
+
mobile?: string;
|
|
64
|
+
|
|
65
|
+
@Column({ nullable: true })
|
|
66
|
+
office_number?: string;
|
|
67
|
+
|
|
68
|
+
@Column({ nullable: true })
|
|
69
|
+
department?: string;
|
|
70
|
+
|
|
71
|
+
@Column({ nullable: true })
|
|
72
|
+
category?: string;
|
|
73
|
+
|
|
74
|
+
@Column({ nullable: true })
|
|
75
|
+
directorate?: string;
|
|
77
76
|
|
|
77
|
+
@Column({ nullable: true })
|
|
78
|
+
section?: string;
|
|
79
|
+
|
|
80
|
+
@Column({ nullable: true })
|
|
81
|
+
position?: string;
|
|
82
|
+
|
|
83
|
+
@Column({ nullable: true })
|
|
84
|
+
arabic_position?: string;
|
|
85
|
+
|
|
86
|
+
@Column({ nullable: true })
|
|
87
|
+
grade?: number;
|
|
88
|
+
|
|
89
|
+
@Column({ nullable: true })
|
|
90
|
+
location?: string;
|
|
91
|
+
|
|
92
|
+
@Column({ nullable: true })
|
|
93
|
+
supervisor_emp_id?: number;
|
|
94
|
+
|
|
95
|
+
@Column({ nullable: true })
|
|
96
|
+
supervisor_emp_name?: string;
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
constructor(
|
|
100
|
+
employee_id?: number,
|
|
101
|
+
civil_employee_id?: number,
|
|
102
|
+
employee_name?: string,
|
|
103
|
+
employee_arabic_name?: string,
|
|
104
|
+
person_type?: string,
|
|
105
|
+
date_of_birth?: string,
|
|
106
|
+
region_of_birth?: string,
|
|
107
|
+
country_of_birth?: string,
|
|
108
|
+
date_of_joining?: string,
|
|
109
|
+
last_promotion_date?: string,
|
|
110
|
+
gender?: string,
|
|
111
|
+
qualification?: string,
|
|
112
|
+
marital_status?: string,
|
|
113
|
+
nationality?: string,
|
|
114
|
+
email?: string,
|
|
115
|
+
blood_type?: string,
|
|
116
|
+
national_id?: number,
|
|
117
|
+
manpower_id?: number,
|
|
118
|
+
mobile?: string,
|
|
119
|
+
office_number?: string,
|
|
120
|
+
department?: string,
|
|
121
|
+
category?: string,
|
|
122
|
+
directorate?: string,
|
|
123
|
+
section?: string,
|
|
124
|
+
position?: string,
|
|
125
|
+
arabic_position?: string,
|
|
126
|
+
grade?: number,
|
|
127
|
+
location?: string,
|
|
128
|
+
supervisor_emp_id?: number,
|
|
129
|
+
supervisor_emp_name?: string
|
|
78
130
|
) {
|
|
79
131
|
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.
|
|
132
|
+
this.employee_id = employee_id;
|
|
133
|
+
this.civil_employee_id = civil_employee_id;
|
|
134
|
+
this.employee_name = employee_name;
|
|
135
|
+
this.employee_arabic_name = employee_arabic_name;
|
|
136
|
+
this.person_type = person_type;
|
|
137
|
+
this.date_of_birth = date_of_birth;
|
|
138
|
+
this.region_of_birth = region_of_birth;
|
|
139
|
+
this.country_of_birth = country_of_birth;
|
|
140
|
+
this.date_of_joining = date_of_joining;
|
|
141
|
+
this.last_promotion_date = last_promotion_date;
|
|
142
|
+
this.gender = gender;
|
|
143
|
+
this.qualification = qualification;
|
|
144
|
+
this.marital_status = marital_status;
|
|
145
|
+
this.nationality = nationality;
|
|
146
|
+
this.email = email;
|
|
147
|
+
this.blood_type = blood_type;
|
|
148
|
+
this.national_id = national_id;
|
|
149
|
+
this.manpower_id = manpower_id;
|
|
150
|
+
this.mobile = mobile;
|
|
151
|
+
this.office_number = office_number;
|
|
152
|
+
this.department = department;
|
|
153
|
+
this.category = category;
|
|
154
|
+
this.directorate = directorate;
|
|
155
|
+
this.section = section;
|
|
156
|
+
this.position = position;
|
|
157
|
+
this.arabic_position = arabic_position;
|
|
158
|
+
this.grade = grade;
|
|
159
|
+
this.location = location;
|
|
160
|
+
this.supervisor_emp_id = supervisor_emp_id;
|
|
161
|
+
this.supervisor_emp_name = supervisor_emp_name;
|
|
97
162
|
}
|
|
98
163
|
}
|
|
99
164
|
|