@platform-modules/civil-aviation-authority 2.3.180 → 2.3.183
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 -0
- package/dist/models/AccessCardRequestModel.d.ts +2 -2
- package/dist/models/AccessCardRequestModel.js +4 -4
- package/dist/models/AnnualTrainingPlanRequestModel.d.ts +3 -3
- package/dist/models/AnnualTrainingPlanRequestModel.js +5 -5
- package/dist/models/DocumentMetadataModel.d.ts +45 -0
- package/dist/models/DocumentMetadataModel.js +171 -0
- package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
- package/dist/models/DocumentationDepartmentsModel.js +53 -0
- package/dist/models/FolderModel.d.ts +16 -0
- package/dist/models/FolderModel.js +85 -0
- package/dist/models/PermissionModel.d.ts +18 -0
- package/dist/models/PermissionModel.js +68 -0
- package/dist/models/TrainingRequestModel.d.ts +13 -3
- package/dist/models/TrainingRequestModel.js +21 -6
- package/dist/models/UUIDBaseModel.d.ts +14 -0
- package/dist/models/UUIDBaseModel.js +66 -0
- package/package.json +24 -24
- package/src/data-source.ts +385 -385
- package/src/models/AccessCardRequestModel.ts +4 -4
- 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/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRequestModel.ts +164 -148
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/platform-modules-civil-aviation-authority-2.3.179.tgz +0 -0
|
@@ -1,219 +1,219 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
|
|
3
|
-
import { BaseModel } from "./BaseModel";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export enum ResidentialUnitRentalRequestStatus {
|
|
9
|
-
|
|
10
|
-
Pending = 'Pending',
|
|
11
|
-
|
|
12
|
-
Approved = 'Approved',
|
|
13
|
-
|
|
14
|
-
Rejected = 'Rejected',
|
|
15
|
-
|
|
16
|
-
RFC = 'RFC'
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
@Entity({ name: 'residential_unit_rental_requests' })
|
|
24
|
-
|
|
25
|
-
export class ResidentialUnitRentalRequest extends BaseModel {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
31
|
-
|
|
32
|
-
request_id: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'int', nullable: false })
|
|
38
|
-
|
|
39
|
-
service_id: number;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
@Column({ type: 'int', nullable: false })
|
|
45
|
-
|
|
46
|
-
sub_service_id: number;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
52
|
-
|
|
53
|
-
requested_unit_type: string; // Apartment, Villa
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
/** UI sends apartment type as a plain string value */
|
|
59
|
-
|
|
60
|
-
@Column({ type: 'json', nullable: true })
|
|
61
|
-
|
|
62
|
-
apartment_type: string | null;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
/** BRD: Villa options with OMR rates - 1 ROOM 201, 2 ROOM 350, 3 ROOM 400 */
|
|
68
|
-
|
|
69
|
-
@Column({ type: 'json', nullable: true })
|
|
70
|
-
|
|
71
|
-
villa_type: {
|
|
72
|
-
|
|
73
|
-
one_room?: boolean;
|
|
74
|
-
|
|
75
|
-
two_room?: boolean;
|
|
76
|
-
|
|
77
|
-
three_room?: boolean;
|
|
78
|
-
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
@Column({ type: 'varchar', length: 20, nullable: true })
|
|
85
|
-
|
|
86
|
-
extension_number: string;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
@Column({ type: 'date', nullable: false })
|
|
92
|
-
|
|
93
|
-
preferred_start_date: Date;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
@Column({ type: 'int', nullable: false })
|
|
99
|
-
|
|
100
|
-
family_size: number;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
106
|
-
|
|
107
|
-
phone_number: string;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
113
|
-
|
|
114
|
-
location_of_unit: string;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
@Column({ type: 'text', nullable: true })
|
|
120
|
-
|
|
121
|
-
comment: string;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
@Column({ type: 'varchar', length: 20, nullable: false, default: 'Pending' })
|
|
127
|
-
|
|
128
|
-
status: string;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
@Column({ type: 'int', nullable: true })
|
|
134
|
-
|
|
135
|
-
user_id: number;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
141
|
-
|
|
142
|
-
workflow_execution_id: string;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
@Column({ type: 'int', nullable: false })
|
|
148
|
-
|
|
149
|
-
created_by: number;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
@Column({ type: 'int', nullable: true })
|
|
155
|
-
|
|
156
|
-
approved_by: number;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
@Column({ type: 'date', nullable: true })
|
|
162
|
-
|
|
163
|
-
approved_at: Date;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
@Column({ type: 'text', nullable: true })
|
|
169
|
-
|
|
170
|
-
approver_comment: string;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
@Column({ type: 'json', nullable: true })
|
|
176
|
-
|
|
177
|
-
unit_details: {
|
|
178
|
-
|
|
179
|
-
type: string;
|
|
180
|
-
|
|
181
|
-
specifications: any;
|
|
182
|
-
|
|
183
|
-
rate: number;
|
|
184
|
-
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
@Column({ type: 'date', nullable: true })
|
|
191
|
-
|
|
192
|
-
rental_start_date: Date;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
@Column({ type: 'date', nullable: true })
|
|
198
|
-
|
|
199
|
-
rental_end_date: Date;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
@Column({ type: 'text', nullable: true })
|
|
205
|
-
|
|
206
|
-
rental_agreement_url: string;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
constructor() {
|
|
212
|
-
|
|
213
|
-
super();
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
|
|
3
|
+
import { BaseModel } from "./BaseModel";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export enum ResidentialUnitRentalRequestStatus {
|
|
9
|
+
|
|
10
|
+
Pending = 'Pending',
|
|
11
|
+
|
|
12
|
+
Approved = 'Approved',
|
|
13
|
+
|
|
14
|
+
Rejected = 'Rejected',
|
|
15
|
+
|
|
16
|
+
RFC = 'RFC'
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@Entity({ name: 'residential_unit_rental_requests' })
|
|
24
|
+
|
|
25
|
+
export class ResidentialUnitRentalRequest extends BaseModel {
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
31
|
+
|
|
32
|
+
request_id: string;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'int', nullable: false })
|
|
38
|
+
|
|
39
|
+
service_id: number;
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'int', nullable: false })
|
|
45
|
+
|
|
46
|
+
sub_service_id: number;
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
52
|
+
|
|
53
|
+
requested_unit_type: string; // Apartment, Villa
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/** UI sends apartment type as a plain string value */
|
|
59
|
+
|
|
60
|
+
@Column({ type: 'json', nullable: true })
|
|
61
|
+
|
|
62
|
+
apartment_type: string | null;
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/** BRD: Villa options with OMR rates - 1 ROOM 201, 2 ROOM 350, 3 ROOM 400 */
|
|
68
|
+
|
|
69
|
+
@Column({ type: 'json', nullable: true })
|
|
70
|
+
|
|
71
|
+
villa_type: {
|
|
72
|
+
|
|
73
|
+
one_room?: boolean;
|
|
74
|
+
|
|
75
|
+
two_room?: boolean;
|
|
76
|
+
|
|
77
|
+
three_room?: boolean;
|
|
78
|
+
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
@Column({ type: 'varchar', length: 20, nullable: true })
|
|
85
|
+
|
|
86
|
+
extension_number: string;
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@Column({ type: 'date', nullable: false })
|
|
92
|
+
|
|
93
|
+
preferred_start_date: Date;
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
@Column({ type: 'int', nullable: false })
|
|
99
|
+
|
|
100
|
+
family_size: number;
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
106
|
+
|
|
107
|
+
phone_number: string;
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
113
|
+
|
|
114
|
+
location_of_unit: string;
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@Column({ type: 'text', nullable: true })
|
|
120
|
+
|
|
121
|
+
comment: string;
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
@Column({ type: 'varchar', length: 20, nullable: false, default: 'Pending' })
|
|
127
|
+
|
|
128
|
+
status: string;
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
@Column({ type: 'int', nullable: true })
|
|
134
|
+
|
|
135
|
+
user_id: number;
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
141
|
+
|
|
142
|
+
workflow_execution_id: string;
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
@Column({ type: 'int', nullable: false })
|
|
148
|
+
|
|
149
|
+
created_by: number;
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
@Column({ type: 'int', nullable: true })
|
|
155
|
+
|
|
156
|
+
approved_by: number;
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
@Column({ type: 'date', nullable: true })
|
|
162
|
+
|
|
163
|
+
approved_at: Date;
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
@Column({ type: 'text', nullable: true })
|
|
169
|
+
|
|
170
|
+
approver_comment: string;
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
@Column({ type: 'json', nullable: true })
|
|
176
|
+
|
|
177
|
+
unit_details: {
|
|
178
|
+
|
|
179
|
+
type: string;
|
|
180
|
+
|
|
181
|
+
specifications: any;
|
|
182
|
+
|
|
183
|
+
rate: number;
|
|
184
|
+
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
@Column({ type: 'date', nullable: true })
|
|
191
|
+
|
|
192
|
+
rental_start_date: Date;
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
@Column({ type: 'date', nullable: true })
|
|
198
|
+
|
|
199
|
+
rental_end_date: Date;
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
@Column({ type: 'text', nullable: true })
|
|
205
|
+
|
|
206
|
+
rental_agreement_url: string;
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
constructor() {
|
|
212
|
+
|
|
213
|
+
super();
|
|
214
|
+
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
}
|
|
218
|
+
|
|
219
219
|
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum ServicesNotificationTriggerType {
|
|
5
|
-
FINAL_APPROVAL = "final_approval",
|
|
6
|
-
EVERY_APPROVAL = "every_approval"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@Entity({ name: "services_notification_configs" })
|
|
10
|
-
export class ServicesNotificationConfigs extends BaseModel {
|
|
11
|
-
@Column({ type: "integer", nullable: false })
|
|
12
|
-
service_id: number;
|
|
13
|
-
|
|
14
|
-
@Column({ type: "integer", nullable: false })
|
|
15
|
-
sub_service_id: number;
|
|
16
|
-
|
|
17
|
-
@Column({ type: "integer", nullable: false })
|
|
18
|
-
department_id: number;
|
|
19
|
-
|
|
20
|
-
@Column({ type: "integer", nullable: true })
|
|
21
|
-
section_id: number | null;
|
|
22
|
-
|
|
23
|
-
@Column({ type: "integer", nullable: true })
|
|
24
|
-
role_id: number | null;
|
|
25
|
-
|
|
26
|
-
@Column({
|
|
27
|
-
type: "enum",
|
|
28
|
-
enum: ServicesNotificationTriggerType,
|
|
29
|
-
nullable: false,
|
|
30
|
-
default: ServicesNotificationTriggerType.FINAL_APPROVAL
|
|
31
|
-
})
|
|
32
|
-
trigger: ServicesNotificationTriggerType;
|
|
33
|
-
|
|
34
|
-
@Column({ type: "boolean", nullable: false, default: true })
|
|
35
|
-
is_active: boolean;
|
|
36
|
-
|
|
37
|
-
constructor(
|
|
38
|
-
service_id: number,
|
|
39
|
-
sub_service_id: number,
|
|
40
|
-
department_id: number,
|
|
41
|
-
section_id: number | null = null,
|
|
42
|
-
role_id: number | null = null,
|
|
43
|
-
trigger: ServicesNotificationTriggerType = ServicesNotificationTriggerType.FINAL_APPROVAL,
|
|
44
|
-
is_active: boolean = true
|
|
45
|
-
) {
|
|
46
|
-
super();
|
|
47
|
-
this.service_id = service_id;
|
|
48
|
-
this.sub_service_id = sub_service_id;
|
|
49
|
-
this.department_id = department_id;
|
|
50
|
-
this.section_id = section_id;
|
|
51
|
-
this.role_id = role_id;
|
|
52
|
-
this.trigger = trigger;
|
|
53
|
-
this.is_active = is_active;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum ServicesNotificationTriggerType {
|
|
5
|
+
FINAL_APPROVAL = "final_approval",
|
|
6
|
+
EVERY_APPROVAL = "every_approval"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@Entity({ name: "services_notification_configs" })
|
|
10
|
+
export class ServicesNotificationConfigs extends BaseModel {
|
|
11
|
+
@Column({ type: "integer", nullable: false })
|
|
12
|
+
service_id: number;
|
|
13
|
+
|
|
14
|
+
@Column({ type: "integer", nullable: false })
|
|
15
|
+
sub_service_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: "integer", nullable: false })
|
|
18
|
+
department_id: number;
|
|
19
|
+
|
|
20
|
+
@Column({ type: "integer", nullable: true })
|
|
21
|
+
section_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: "integer", nullable: true })
|
|
24
|
+
role_id: number | null;
|
|
25
|
+
|
|
26
|
+
@Column({
|
|
27
|
+
type: "enum",
|
|
28
|
+
enum: ServicesNotificationTriggerType,
|
|
29
|
+
nullable: false,
|
|
30
|
+
default: ServicesNotificationTriggerType.FINAL_APPROVAL
|
|
31
|
+
})
|
|
32
|
+
trigger: ServicesNotificationTriggerType;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "boolean", nullable: false, default: true })
|
|
35
|
+
is_active: boolean;
|
|
36
|
+
|
|
37
|
+
constructor(
|
|
38
|
+
service_id: number,
|
|
39
|
+
sub_service_id: number,
|
|
40
|
+
department_id: number,
|
|
41
|
+
section_id: number | null = null,
|
|
42
|
+
role_id: number | null = null,
|
|
43
|
+
trigger: ServicesNotificationTriggerType = ServicesNotificationTriggerType.FINAL_APPROVAL,
|
|
44
|
+
is_active: boolean = true
|
|
45
|
+
) {
|
|
46
|
+
super();
|
|
47
|
+
this.service_id = service_id;
|
|
48
|
+
this.sub_service_id = sub_service_id;
|
|
49
|
+
this.department_id = department_id;
|
|
50
|
+
this.section_id = section_id;
|
|
51
|
+
this.role_id = role_id;
|
|
52
|
+
this.trigger = trigger;
|
|
53
|
+
this.is_active = is_active;
|
|
54
|
+
}
|
|
55
|
+
}
|