@platform-modules/civil-aviation-authority 2.3.156 → 2.3.157
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.
|
@@ -99,11 +99,11 @@ __decorate([
|
|
|
99
99
|
__metadata("design:type", Date)
|
|
100
100
|
], AccommodationRequest.prototype, "start_date_of_stay", void 0);
|
|
101
101
|
__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({ type: 'date', nullable:
|
|
102
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
103
103
|
__metadata("design:type", Date)
|
|
104
104
|
], AccommodationRequest.prototype, "end_date_of_stay", void 0);
|
|
105
105
|
__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({ type: 'time', nullable:
|
|
106
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
107
107
|
__metadata("design:type", String)
|
|
108
108
|
], AccommodationRequest.prototype, "departure_time", void 0);
|
|
109
109
|
__decorate([
|
package/package.json
CHANGED
|
@@ -18,12 +18,12 @@ export enum OfficialPurposeOfTravel {
|
|
|
18
18
|
Other = 'Other'
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export enum AccommodationType {
|
|
22
|
-
Studio = 'Studio',
|
|
23
|
-
OneRoom = '1 Room',
|
|
24
|
-
TwoRooms = '2 Rooms',
|
|
25
|
-
ThreeRooms = '3 Rooms'
|
|
26
|
-
}
|
|
21
|
+
export enum AccommodationType {
|
|
22
|
+
Studio = 'Studio',
|
|
23
|
+
OneRoom = '1 Room',
|
|
24
|
+
TwoRooms = '2 Rooms',
|
|
25
|
+
ThreeRooms = '3 Rooms'
|
|
26
|
+
}
|
|
27
27
|
|
|
28
28
|
@Entity({ name: 'accommodation_requests' })
|
|
29
29
|
export class AccommodationRequest extends BaseModel {
|
|
@@ -65,58 +65,58 @@ export class AccommodationRequest extends BaseModel {
|
|
|
65
65
|
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
66
66
|
other_purpose_specification: string | null; // If Other is selected
|
|
67
67
|
|
|
68
|
-
// 3. Accommodation Type Requested (Studio / 1 Room / 2 Rooms / 3 Rooms)
|
|
69
|
-
@Column({
|
|
70
|
-
type: 'enum',
|
|
71
|
-
enum: AccommodationType,
|
|
72
|
-
nullable: false
|
|
73
|
-
})
|
|
74
|
-
accommodation_type_requested: AccommodationType;
|
|
75
|
-
|
|
76
|
-
// 4. Start Date of Stay (M)
|
|
77
|
-
@Column({ type: 'date', nullable: false })
|
|
78
|
-
start_date_of_stay: Date;
|
|
79
|
-
|
|
80
|
-
// 5. End Date of Stay (M)
|
|
81
|
-
@Column({ type: 'date', nullable:
|
|
82
|
-
end_date_of_stay: Date;
|
|
83
|
-
|
|
84
|
-
// 6. Departure Time (M)
|
|
85
|
-
@Column({ type: 'time', nullable:
|
|
86
|
-
departure_time: string;
|
|
87
|
-
|
|
88
|
-
// 7. Duration of Days (M)
|
|
89
|
-
@Column({ type: 'int', nullable: false })
|
|
90
|
-
duration_of_days: number;
|
|
91
|
-
|
|
92
|
-
// 8. Travel Details (From – To)
|
|
93
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
94
|
-
travel_from: string;
|
|
68
|
+
// 3. Accommodation Type Requested (Studio / 1 Room / 2 Rooms / 3 Rooms)
|
|
69
|
+
@Column({
|
|
70
|
+
type: 'enum',
|
|
71
|
+
enum: AccommodationType,
|
|
72
|
+
nullable: false
|
|
73
|
+
})
|
|
74
|
+
accommodation_type_requested: AccommodationType;
|
|
75
|
+
|
|
76
|
+
// 4. Start Date of Stay (M)
|
|
77
|
+
@Column({ type: 'date', nullable: false })
|
|
78
|
+
start_date_of_stay: Date;
|
|
79
|
+
|
|
80
|
+
// 5. End Date of Stay (M)
|
|
81
|
+
@Column({ type: 'date', nullable: true })
|
|
82
|
+
end_date_of_stay: Date;
|
|
83
|
+
|
|
84
|
+
// 6. Departure Time (M)
|
|
85
|
+
@Column({ type: 'time', nullable: true })
|
|
86
|
+
departure_time: string;
|
|
87
|
+
|
|
88
|
+
// 7. Duration of Days (M)
|
|
89
|
+
@Column({ type: 'int', nullable: false })
|
|
90
|
+
duration_of_days: number;
|
|
91
|
+
|
|
92
|
+
// 8. Travel Details (From – To)
|
|
93
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
94
|
+
travel_from: string;
|
|
95
95
|
|
|
96
96
|
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
97
97
|
travel_to: string;
|
|
98
98
|
|
|
99
|
-
// 9. Time of arrival (M)
|
|
100
|
-
@Column({ type: 'time', nullable: false })
|
|
101
|
-
time_of_arrival: string; // Format: HH:MM
|
|
102
|
-
|
|
103
|
-
// 10. Travelling from which region (M)
|
|
104
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
105
|
-
travelling_from_region: string;
|
|
106
|
-
|
|
107
|
-
// 11. No. of employees travelling (M)
|
|
108
|
-
@Column({ type: 'int', nullable: false })
|
|
109
|
-
number_of_employees_travelling: number;
|
|
110
|
-
|
|
111
|
-
// 12. Details of employee Emp id / Name / Designation / Grade / Contact Number
|
|
112
|
-
@Column({ type: 'json', nullable: false })
|
|
113
|
-
employee_details: Array<{
|
|
114
|
-
employee_id: string;
|
|
115
|
-
employee_name: string;
|
|
116
|
-
designation: string;
|
|
117
|
-
grade?: string | null;
|
|
118
|
-
contact_number: string;
|
|
119
|
-
}>;
|
|
99
|
+
// 9. Time of arrival (M)
|
|
100
|
+
@Column({ type: 'time', nullable: false })
|
|
101
|
+
time_of_arrival: string; // Format: HH:MM
|
|
102
|
+
|
|
103
|
+
// 10. Travelling from which region (M)
|
|
104
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
105
|
+
travelling_from_region: string;
|
|
106
|
+
|
|
107
|
+
// 11. No. of employees travelling (M)
|
|
108
|
+
@Column({ type: 'int', nullable: false })
|
|
109
|
+
number_of_employees_travelling: number;
|
|
110
|
+
|
|
111
|
+
// 12. Details of employee Emp id / Name / Designation / Grade / Contact Number
|
|
112
|
+
@Column({ type: 'json', nullable: false })
|
|
113
|
+
employee_details: Array<{
|
|
114
|
+
employee_id: string;
|
|
115
|
+
employee_name: string;
|
|
116
|
+
designation: string;
|
|
117
|
+
grade?: string | null;
|
|
118
|
+
contact_number: string;
|
|
119
|
+
}>;
|
|
120
120
|
|
|
121
121
|
// Status
|
|
122
122
|
@Column({
|