@platform-modules/civil-aviation-authority 2.3.192 → 2.3.193
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 +0 -8
- package/dist/models/ScholarshipAttendeeModel.d.ts +1 -0
- package/dist/models/ScholarshipAttendeeModel.js +4 -0
- package/package.json +1 -1
- package/platform-modules-civil-aviation-authority-2.3.193.tgz +0 -0
- package/src/models/AccessCardRequestModel.ts +135 -135
- package/src/models/AirportEntryPermitModel.ts +276 -276
- package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/DocumentDriveModel.ts +28 -28
- package/src/models/DocumentFolderModel.ts +45 -45
- package/src/models/HousingContractCancelChatModel.ts +56 -56
- package/src/models/HousingContractRenewalChatModel.ts +59 -59
- package/src/models/ITRequestAttachmentModel.ts +73 -73
- package/src/models/ITRequestChatModel.ts +74 -74
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/ScholarshipAttendeeModel.ts +3 -0
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRequestModel.ts +164 -164
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/src/models/user.ts +233 -233
- package/dist/models/DocumentMetadataModel.d.ts +0 -45
- package/dist/models/DocumentMetadataModel.js +0 -171
- package/dist/models/DocumentationDepartmentsModel.d.ts +0 -13
- package/dist/models/DocumentationDepartmentsModel.js +0 -53
- package/dist/models/FolderModel.d.ts +0 -16
- package/dist/models/FolderModel.js +0 -85
- package/dist/models/PermissionModel.d.ts +0 -18
- package/dist/models/PermissionModel.js +0 -68
- package/dist/models/UUIDBaseModel.d.ts +0 -14
- package/dist/models/UUIDBaseModel.js +0 -66
package/.env
CHANGED
|
@@ -4,14 +4,6 @@ DB_USER=postgres_admin_user
|
|
|
4
4
|
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
5
|
DB_NAME=CAA
|
|
6
6
|
|
|
7
|
-
# DB_HOST=216.48.187.46
|
|
8
|
-
# DB_PORT=5432
|
|
9
|
-
# DB_USER=adminuser
|
|
10
|
-
# DB_PASS=postgres_caa_fm_qa_34567
|
|
11
|
-
# DB_NAME=CAA_QA
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
7
|
|
|
16
8
|
# DB_HOST=localhost
|
|
17
9
|
# DB_PORT=5432
|
|
@@ -27,6 +27,10 @@ __decorate([
|
|
|
27
27
|
(0, typeorm_1.Column)({ type: "varchar", length: 320, nullable: false }),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
29
|
], ScholarshipAttendee.prototype, "attendee_email", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], ScholarshipAttendee.prototype, "attendee_job_title", void 0);
|
|
30
34
|
exports.ScholarshipAttendee = ScholarshipAttendee = __decorate([
|
|
31
35
|
(0, typeorm_1.Entity)({ name: "scholarship_attendees" })
|
|
32
36
|
], ScholarshipAttendee);
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum AccessCardRequestFor {
|
|
5
|
-
SELF = "Self",
|
|
6
|
-
BEHALF = "Behalf"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export enum AccessCardRequestType {
|
|
10
|
-
NEW = "New",
|
|
11
|
-
RENEWAL = "Renewal"
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export enum AccessCardCategory {
|
|
15
|
-
TRAINEE = "Trainee",
|
|
16
|
-
WORKER = "Workers",
|
|
17
|
-
EMPLOYEE = "Employees",
|
|
18
|
-
CONTRACTOR = "Contractors"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export enum AccessCardRequestStatus {
|
|
22
|
-
PENDING = "Pending",
|
|
23
|
-
IN_PROGRESS = "In Progress",
|
|
24
|
-
APPROVED = "Approved",
|
|
25
|
-
REJECTED = "Rejected"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@Entity({ name: "access_card_requests" })
|
|
29
|
-
export class AccessCardRequest extends BaseModel {
|
|
30
|
-
@Column({ type: "int", nullable: true })
|
|
31
|
-
req_user_department_id: number | null;
|
|
32
|
-
|
|
33
|
-
@Column({ type: "int", nullable: true })
|
|
34
|
-
req_user_section_id: number | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: "int", nullable: true })
|
|
37
|
-
service_id: number | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: "int", nullable: true })
|
|
40
|
-
sub_service_id: number | null;
|
|
41
|
-
|
|
42
|
-
@Column({ type: "int", nullable: false })
|
|
43
|
-
user_id: number;
|
|
44
|
-
|
|
45
|
-
@Column({ type: "enum", enum: AccessCardRequestFor, nullable: false })
|
|
46
|
-
request_for: AccessCardRequestFor;
|
|
47
|
-
|
|
48
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
49
|
-
name: string;
|
|
50
|
-
|
|
51
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
52
|
-
id_number: string;
|
|
53
|
-
|
|
54
|
-
@Column({ type: "varchar", length: 50, nullable: false })
|
|
55
|
-
phone_number: string;
|
|
56
|
-
|
|
57
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
58
|
-
email_id: string;
|
|
59
|
-
|
|
60
|
-
@Column({ type: "enum", enum: AccessCardRequestType, nullable: false })
|
|
61
|
-
request_type: AccessCardRequestType;
|
|
62
|
-
|
|
63
|
-
@Column({ type: "enum", enum: AccessCardCategory, nullable: false })
|
|
64
|
-
category: AccessCardCategory;
|
|
65
|
-
|
|
66
|
-
@Column({ type: "varchar", length: 50, nullable: true })
|
|
67
|
-
approval_route: string | null;
|
|
68
|
-
|
|
69
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
70
|
-
organization: string | null;
|
|
71
|
-
|
|
72
|
-
@Column({ type: "varchar", length: 100, nullable: true })
|
|
73
|
-
access_card_no: string | null;
|
|
74
|
-
|
|
75
|
-
@Column({ type: "text", nullable: false })
|
|
76
|
-
reason: string;
|
|
77
|
-
|
|
78
|
-
@Column({ type: "date", nullable: true })
|
|
79
|
-
request_date: Date;
|
|
80
|
-
|
|
81
|
-
@Column({
|
|
82
|
-
type: "enum",
|
|
83
|
-
enum: AccessCardRequestStatus,
|
|
84
|
-
default: AccessCardRequestStatus.PENDING,
|
|
85
|
-
nullable: false
|
|
86
|
-
})
|
|
87
|
-
status: AccessCardRequestStatus;
|
|
88
|
-
|
|
89
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
90
|
-
workflow_execution_id: string | null;
|
|
91
|
-
|
|
92
|
-
constructor(
|
|
93
|
-
request_for: AccessCardRequestFor,
|
|
94
|
-
name: string,
|
|
95
|
-
id_number: string,
|
|
96
|
-
phone_number: string,
|
|
97
|
-
email_id: string,
|
|
98
|
-
request_type: AccessCardRequestType,
|
|
99
|
-
category: AccessCardCategory,
|
|
100
|
-
organization: string | null,
|
|
101
|
-
reason: string,
|
|
102
|
-
request_date: Date,
|
|
103
|
-
user_id: number,
|
|
104
|
-
status: AccessCardRequestStatus = AccessCardRequestStatus.PENDING,
|
|
105
|
-
approval_route?: string | null,
|
|
106
|
-
service_id?: number,
|
|
107
|
-
sub_service_id?: number,
|
|
108
|
-
req_user_department_id?: number,
|
|
109
|
-
req_user_section_id?: number,
|
|
110
|
-
access_card_no?: string | null,
|
|
111
|
-
workflow_execution_id?: string | null
|
|
112
|
-
) {
|
|
113
|
-
super();
|
|
114
|
-
this.request_for = request_for;
|
|
115
|
-
this.name = name;
|
|
116
|
-
this.id_number = id_number;
|
|
117
|
-
this.phone_number = phone_number;
|
|
118
|
-
this.email_id = email_id;
|
|
119
|
-
this.request_type = request_type;
|
|
120
|
-
this.category = category;
|
|
121
|
-
this.organization = organization ?? null;
|
|
122
|
-
this.reason = reason;
|
|
123
|
-
this.request_date = request_date;
|
|
124
|
-
this.user_id = user_id;
|
|
125
|
-
this.status = status;
|
|
126
|
-
this.approval_route = approval_route ?? null;
|
|
127
|
-
this.service_id = service_id ?? null;
|
|
128
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
129
|
-
this.req_user_department_id = req_user_department_id ?? null;
|
|
130
|
-
this.req_user_section_id = req_user_section_id ?? null;
|
|
131
|
-
this.access_card_no = access_card_no ?? null;
|
|
132
|
-
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum AccessCardRequestFor {
|
|
5
|
+
SELF = "Self",
|
|
6
|
+
BEHALF = "Behalf"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum AccessCardRequestType {
|
|
10
|
+
NEW = "New",
|
|
11
|
+
RENEWAL = "Renewal"
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export enum AccessCardCategory {
|
|
15
|
+
TRAINEE = "Trainee",
|
|
16
|
+
WORKER = "Workers",
|
|
17
|
+
EMPLOYEE = "Employees",
|
|
18
|
+
CONTRACTOR = "Contractors"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum AccessCardRequestStatus {
|
|
22
|
+
PENDING = "Pending",
|
|
23
|
+
IN_PROGRESS = "In Progress",
|
|
24
|
+
APPROVED = "Approved",
|
|
25
|
+
REJECTED = "Rejected"
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@Entity({ name: "access_card_requests" })
|
|
29
|
+
export class AccessCardRequest extends BaseModel {
|
|
30
|
+
@Column({ type: "int", nullable: true })
|
|
31
|
+
req_user_department_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "int", nullable: true })
|
|
34
|
+
req_user_section_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "int", nullable: true })
|
|
37
|
+
service_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "int", nullable: true })
|
|
40
|
+
sub_service_id: number | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "int", nullable: false })
|
|
43
|
+
user_id: number;
|
|
44
|
+
|
|
45
|
+
@Column({ type: "enum", enum: AccessCardRequestFor, nullable: false })
|
|
46
|
+
request_for: AccessCardRequestFor;
|
|
47
|
+
|
|
48
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
49
|
+
name: string;
|
|
50
|
+
|
|
51
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
52
|
+
id_number: string;
|
|
53
|
+
|
|
54
|
+
@Column({ type: "varchar", length: 50, nullable: false })
|
|
55
|
+
phone_number: string;
|
|
56
|
+
|
|
57
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
58
|
+
email_id: string;
|
|
59
|
+
|
|
60
|
+
@Column({ type: "enum", enum: AccessCardRequestType, nullable: false })
|
|
61
|
+
request_type: AccessCardRequestType;
|
|
62
|
+
|
|
63
|
+
@Column({ type: "enum", enum: AccessCardCategory, nullable: false })
|
|
64
|
+
category: AccessCardCategory;
|
|
65
|
+
|
|
66
|
+
@Column({ type: "varchar", length: 50, nullable: true })
|
|
67
|
+
approval_route: string | null;
|
|
68
|
+
|
|
69
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
70
|
+
organization: string | null;
|
|
71
|
+
|
|
72
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
73
|
+
access_card_no: string | null;
|
|
74
|
+
|
|
75
|
+
@Column({ type: "text", nullable: false })
|
|
76
|
+
reason: string;
|
|
77
|
+
|
|
78
|
+
@Column({ type: "date", nullable: true })
|
|
79
|
+
request_date: Date;
|
|
80
|
+
|
|
81
|
+
@Column({
|
|
82
|
+
type: "enum",
|
|
83
|
+
enum: AccessCardRequestStatus,
|
|
84
|
+
default: AccessCardRequestStatus.PENDING,
|
|
85
|
+
nullable: false
|
|
86
|
+
})
|
|
87
|
+
status: AccessCardRequestStatus;
|
|
88
|
+
|
|
89
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
90
|
+
workflow_execution_id: string | null;
|
|
91
|
+
|
|
92
|
+
constructor(
|
|
93
|
+
request_for: AccessCardRequestFor,
|
|
94
|
+
name: string,
|
|
95
|
+
id_number: string,
|
|
96
|
+
phone_number: string,
|
|
97
|
+
email_id: string,
|
|
98
|
+
request_type: AccessCardRequestType,
|
|
99
|
+
category: AccessCardCategory,
|
|
100
|
+
organization: string | null,
|
|
101
|
+
reason: string,
|
|
102
|
+
request_date: Date,
|
|
103
|
+
user_id: number,
|
|
104
|
+
status: AccessCardRequestStatus = AccessCardRequestStatus.PENDING,
|
|
105
|
+
approval_route?: string | null,
|
|
106
|
+
service_id?: number,
|
|
107
|
+
sub_service_id?: number,
|
|
108
|
+
req_user_department_id?: number,
|
|
109
|
+
req_user_section_id?: number,
|
|
110
|
+
access_card_no?: string | null,
|
|
111
|
+
workflow_execution_id?: string | null
|
|
112
|
+
) {
|
|
113
|
+
super();
|
|
114
|
+
this.request_for = request_for;
|
|
115
|
+
this.name = name;
|
|
116
|
+
this.id_number = id_number;
|
|
117
|
+
this.phone_number = phone_number;
|
|
118
|
+
this.email_id = email_id;
|
|
119
|
+
this.request_type = request_type;
|
|
120
|
+
this.category = category;
|
|
121
|
+
this.organization = organization ?? null;
|
|
122
|
+
this.reason = reason;
|
|
123
|
+
this.request_date = request_date;
|
|
124
|
+
this.user_id = user_id;
|
|
125
|
+
this.status = status;
|
|
126
|
+
this.approval_route = approval_route ?? null;
|
|
127
|
+
this.service_id = service_id ?? null;
|
|
128
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
129
|
+
this.req_user_department_id = req_user_department_id ?? null;
|
|
130
|
+
this.req_user_section_id = req_user_section_id ?? null;
|
|
131
|
+
this.access_card_no = access_card_no ?? null;
|
|
132
|
+
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|