@platform-modules/civil-aviation-authority 2.0.0 → 2.0.1
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 +8 -4
- package/dist/models/WorkflowDefinitions.d.ts +3 -3
- package/dist/models/WorkflowDefinitions.js +7 -7
- package/dist/models/user.d.ts +2 -1
- package/dist/models/user.js +7 -2
- package/package.json +1 -1
- package/src/models/CAAServices.ts +0 -4
- package/src/models/WorkflowDefinitions.ts +8 -8
- package/src/models/user.ts +5 -1
package/.env
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
DB_HOST=
|
|
1
|
+
DB_HOST=164.52.222.169
|
|
2
2
|
DB_PORT=5432
|
|
3
|
-
DB_USER=
|
|
4
|
-
DB_PASS=
|
|
5
|
-
DB_NAME=CAA
|
|
3
|
+
DB_USER=postgres_admin_user
|
|
4
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
|
+
DB_NAME=CAA
|
|
6
|
+
|
|
7
|
+
# TYPEORM_HOST =164.52.222.169
|
|
8
|
+
# TYPEORM_USERNAME = postgres_admin_user
|
|
9
|
+
# TYPEORM_PASSWORD = pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
@@ -7,10 +7,10 @@ export declare class WorkflowDefinitions extends BaseModel {
|
|
|
7
7
|
version: number;
|
|
8
8
|
is_active: boolean;
|
|
9
9
|
service_type: 'internal' | 'external' | 'none';
|
|
10
|
-
service_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
11
|
service: CAAServices;
|
|
12
|
-
sub_service_id: number;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
13
|
sub_service: CAASubServices;
|
|
14
14
|
status: 'draft' | 'published';
|
|
15
|
-
constructor(name: string, description?: string, version?: number, is_active?: boolean, service_id?: number, sub_service_id?: number, status?: 'draft' | 'published', service_type?: 'internal' | 'external' | 'none');
|
|
15
|
+
constructor(name: string, description?: string, version?: number, is_active?: boolean, service_id?: number | null, sub_service_id?: number | null, status?: 'draft' | 'published', service_type?: 'internal' | 'external' | 'none');
|
|
16
16
|
}
|
|
@@ -21,8 +21,8 @@ let WorkflowDefinitions = class WorkflowDefinitions extends BaseModel_1.BaseMode
|
|
|
21
21
|
this.description = description || '';
|
|
22
22
|
this.version = version || 1;
|
|
23
23
|
this.is_active = is_active !== undefined ? is_active : true;
|
|
24
|
-
this.service_id = service_id ||
|
|
25
|
-
this.sub_service_id = sub_service_id ||
|
|
24
|
+
this.service_id = service_id || null;
|
|
25
|
+
this.sub_service_id = sub_service_id || null;
|
|
26
26
|
this.status = status || 'draft';
|
|
27
27
|
this.service_type = service_type || 'none';
|
|
28
28
|
}
|
|
@@ -54,8 +54,8 @@ __decorate([
|
|
|
54
54
|
__metadata("design:type", String)
|
|
55
55
|
], WorkflowDefinitions.prototype, "service_type", void 0);
|
|
56
56
|
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable:
|
|
58
|
-
__metadata("design:type",
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
59
|
], WorkflowDefinitions.prototype, "service_id", void 0);
|
|
60
60
|
__decorate([
|
|
61
61
|
(0, typeorm_1.ManyToOne)(() => CAAServices_1.CAAServices),
|
|
@@ -63,8 +63,8 @@ __decorate([
|
|
|
63
63
|
__metadata("design:type", CAAServices_1.CAAServices)
|
|
64
64
|
], WorkflowDefinitions.prototype, "service", void 0);
|
|
65
65
|
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable:
|
|
67
|
-
__metadata("design:type",
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
68
|
], WorkflowDefinitions.prototype, "sub_service_id", void 0);
|
|
69
69
|
__decorate([
|
|
70
70
|
(0, typeorm_1.ManyToOne)(() => CAASubServices_1.CAASubServices),
|
|
@@ -82,5 +82,5 @@ __decorate([
|
|
|
82
82
|
], WorkflowDefinitions.prototype, "status", void 0);
|
|
83
83
|
exports.WorkflowDefinitions = WorkflowDefinitions = __decorate([
|
|
84
84
|
(0, typeorm_1.Entity)({ name: 'workflow_definitions' }),
|
|
85
|
-
__metadata("design:paramtypes", [String, String, Number, Boolean,
|
|
85
|
+
__metadata("design:paramtypes", [String, String, Number, Boolean, Object, Object, String, String])
|
|
86
86
|
], WorkflowDefinitions);
|
package/dist/models/user.d.ts
CHANGED
|
@@ -40,5 +40,6 @@ export declare class User extends BaseModel {
|
|
|
40
40
|
spouse_name?: string;
|
|
41
41
|
children1_name?: string;
|
|
42
42
|
children2_name?: string;
|
|
43
|
-
|
|
43
|
+
address?: string;
|
|
44
|
+
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?: number, category?: string, directorate?: string, section?: number, position?: number, arabic_position?: string, grade?: number, location?: string, supervisor_emp_id?: number, supervisor_emp_name?: string, passport_number?: string, personal_email?: string, extension_number?: number, diplomatic_name?: string, avatar?: string, father_name?: string, spouse_name?: string, children1_name?: string, children2_name?: string, address?: string);
|
|
44
45
|
}
|
package/dist/models/user.js
CHANGED
|
@@ -13,7 +13,7 @@ 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(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, passport_number, personal_email, extension_number, diplomatic_name, avatar, father_name, spouse_name, children1_name, children2_name) {
|
|
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, passport_number, personal_email, extension_number, diplomatic_name, avatar, father_name, spouse_name, children1_name, children2_name, address) {
|
|
17
17
|
super();
|
|
18
18
|
this.employee_id = employee_id;
|
|
19
19
|
this.civil_employee_id = civil_employee_id;
|
|
@@ -54,6 +54,7 @@ let User = class User extends BaseModel_1.BaseModel {
|
|
|
54
54
|
this.spouse_name = spouse_name;
|
|
55
55
|
this.children1_name = children1_name;
|
|
56
56
|
this.children2_name = children2_name;
|
|
57
|
+
this.address = address;
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
60
|
exports.User = User;
|
|
@@ -217,7 +218,11 @@ __decorate([
|
|
|
217
218
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
218
219
|
__metadata("design:type", String)
|
|
219
220
|
], User.prototype, "children2_name", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
223
|
+
__metadata("design:type", String)
|
|
224
|
+
], User.prototype, "address", void 0);
|
|
220
225
|
exports.User = User = __decorate([
|
|
221
226
|
(0, typeorm_1.Entity)({ name: 'users' }),
|
|
222
|
-
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, String, String, String, String, String, String, String, String, String, Number, Number, String, String, Number, String, String, Number, Number, String, Number, String, Number, String, String, String, Number, String, String, String, String, String, String])
|
|
227
|
+
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, String, String, String, String, String, String, String, String, String, Number, Number, String, String, Number, String, String, Number, Number, String, Number, String, Number, String, String, String, Number, String, String, String, String, String, String, String])
|
|
223
228
|
], User);
|
package/package.json
CHANGED
|
@@ -14,19 +14,15 @@ export class CAAServices extends BaseModel {
|
|
|
14
14
|
@Column({ nullable: false })
|
|
15
15
|
description: string;
|
|
16
16
|
|
|
17
|
-
@Column({ nullable: false })
|
|
18
|
-
logo_url: string;
|
|
19
17
|
|
|
20
18
|
constructor(
|
|
21
19
|
name: string,
|
|
22
20
|
description: string,
|
|
23
|
-
logo_url: string,
|
|
24
21
|
code?: string
|
|
25
22
|
) {
|
|
26
23
|
super();
|
|
27
24
|
this.name = name;
|
|
28
25
|
this.description = description;
|
|
29
|
-
this.logo_url = logo_url;
|
|
30
26
|
this.code = code || '';
|
|
31
27
|
}
|
|
32
28
|
}
|
|
@@ -26,15 +26,15 @@ export class WorkflowDefinitions extends BaseModel {
|
|
|
26
26
|
})
|
|
27
27
|
service_type: 'internal' | 'external' | 'none';
|
|
28
28
|
|
|
29
|
-
@Column({ type: 'bigint', nullable:
|
|
30
|
-
service_id: number;
|
|
29
|
+
@Column({ type: 'bigint', nullable: true })
|
|
30
|
+
service_id: number | null;
|
|
31
31
|
|
|
32
32
|
@ManyToOne(() => CAAServices)
|
|
33
33
|
@JoinColumn({ name: 'service_id' })
|
|
34
34
|
service: CAAServices;
|
|
35
35
|
|
|
36
|
-
@Column({ type: 'bigint', nullable:
|
|
37
|
-
sub_service_id: number;
|
|
36
|
+
@Column({ type: 'bigint', nullable: true })
|
|
37
|
+
sub_service_id: number | null;
|
|
38
38
|
|
|
39
39
|
@ManyToOne(() => CAASubServices)
|
|
40
40
|
@JoinColumn({ name: 'sub_service_id' })
|
|
@@ -53,8 +53,8 @@ export class WorkflowDefinitions extends BaseModel {
|
|
|
53
53
|
description?: string,
|
|
54
54
|
version?: number,
|
|
55
55
|
is_active?: boolean,
|
|
56
|
-
service_id?: number,
|
|
57
|
-
sub_service_id?: number,
|
|
56
|
+
service_id?: number | null,
|
|
57
|
+
sub_service_id?: number | null,
|
|
58
58
|
status?: 'draft' | 'published',
|
|
59
59
|
service_type?: 'internal' | 'external' | 'none'
|
|
60
60
|
) {
|
|
@@ -63,8 +63,8 @@ export class WorkflowDefinitions extends BaseModel {
|
|
|
63
63
|
this.description = description || '';
|
|
64
64
|
this.version = version || 1;
|
|
65
65
|
this.is_active = is_active !== undefined ? is_active : true;
|
|
66
|
-
this.service_id = service_id ||
|
|
67
|
-
this.sub_service_id = sub_service_id ||
|
|
66
|
+
this.service_id = service_id || null;
|
|
67
|
+
this.sub_service_id = sub_service_id || null;
|
|
68
68
|
this.status = status || 'draft';
|
|
69
69
|
this.service_type = service_type || 'none';
|
|
70
70
|
}
|
package/src/models/user.ts
CHANGED
|
@@ -124,6 +124,8 @@ export class User extends BaseModel {
|
|
|
124
124
|
@Column({ nullable: true })
|
|
125
125
|
children2_name?: string;
|
|
126
126
|
|
|
127
|
+
@Column({ nullable: true })
|
|
128
|
+
address?: string;
|
|
127
129
|
|
|
128
130
|
constructor(
|
|
129
131
|
employee_id?: number,
|
|
@@ -164,7 +166,8 @@ export class User extends BaseModel {
|
|
|
164
166
|
father_name?: string,
|
|
165
167
|
spouse_name?: string,
|
|
166
168
|
children1_name?: string,
|
|
167
|
-
children2_name?: string
|
|
169
|
+
children2_name?: string,
|
|
170
|
+
address?: string
|
|
168
171
|
) {
|
|
169
172
|
super();
|
|
170
173
|
this.employee_id = employee_id;
|
|
@@ -206,5 +209,6 @@ export class User extends BaseModel {
|
|
|
206
209
|
this.spouse_name = spouse_name;
|
|
207
210
|
this.children1_name = children1_name;
|
|
208
211
|
this.children2_name = children2_name;
|
|
212
|
+
this.address = address;
|
|
209
213
|
}
|
|
210
214
|
}
|