@platform-modules/civil-aviation-authority 2.3.130 → 2.3.132

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.
@@ -38,6 +38,9 @@ export class AccommodationApproval extends BaseModel {
38
38
  @Column({ type: 'int', nullable: true })
39
39
  section_id: number;
40
40
 
41
+ @Column({ type: 'boolean', nullable: false, default: true })
42
+ is_allowed: boolean;
43
+
41
44
  @Column({ type: 'int', nullable: false })
42
45
  level: number;
43
46
 
@@ -1,29 +1,29 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- @Entity({ name: "asset_apartment_types" })
5
- export class AssetApartmentType extends BaseModel {
6
- @Column({ type: "varchar", length: 100, nullable: false })
7
- apartment_type_name: string;
8
-
9
- @Column({ type: "float", nullable: false, default: 0 })
10
- cost_per_type: number;
11
-
12
- @Column({ type: "text", nullable: true })
13
- description: string | null;
14
-
15
- @Column({ type: "boolean", default: true })
16
- is_active: boolean;
17
-
18
- @Column({ type: "int", default: 0 })
19
- display_order: number;
20
-
21
- constructor(apartmentTypeName: string) {
22
- super();
23
- this.apartment_type_name = apartmentTypeName;
24
- this.cost_per_type = 0;
25
- this.description = null;
26
- this.is_active = true;
27
- this.display_order = 0;
28
- }
29
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ @Entity({ name: "asset_apartment_types" })
5
+ export class AssetApartmentType extends BaseModel {
6
+ @Column({ type: "varchar", length: 100, nullable: false })
7
+ apartment_type_name: string;
8
+
9
+ @Column({ type: "float", nullable: false, default: 0 })
10
+ cost_per_type: number;
11
+
12
+ @Column({ type: "text", nullable: true })
13
+ description: string | null;
14
+
15
+ @Column({ type: "boolean", default: true })
16
+ is_active: boolean;
17
+
18
+ @Column({ type: "int", default: 0 })
19
+ display_order: number;
20
+
21
+ constructor(apartmentTypeName: string) {
22
+ super();
23
+ this.apartment_type_name = apartmentTypeName;
24
+ this.cost_per_type = 0;
25
+ this.description = null;
26
+ this.is_active = true;
27
+ this.display_order = 0;
28
+ }
29
+ }
@@ -1,25 +1,25 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- @Entity({ name: "asset_unit_locations" })
5
- export class AssetUnitLocation extends BaseModel {
6
- @Column({ type: "varchar", length: 255, nullable: false })
7
- location_name: string;
8
-
9
- @Column({ type: "text", nullable: true })
10
- description: string | null;
11
-
12
- @Column({ type: "boolean", default: true })
13
- is_active: boolean;
14
-
15
- @Column({ type: "int", default: 0 })
16
- display_order: number;
17
-
18
- constructor(locationName: string) {
19
- super();
20
- this.location_name = locationName;
21
- this.description = null;
22
- this.is_active = true;
23
- this.display_order = 0;
24
- }
25
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ @Entity({ name: "asset_unit_locations" })
5
+ export class AssetUnitLocation extends BaseModel {
6
+ @Column({ type: "varchar", length: 255, nullable: false })
7
+ location_name: string;
8
+
9
+ @Column({ type: "text", nullable: true })
10
+ description: string | null;
11
+
12
+ @Column({ type: "boolean", default: true })
13
+ is_active: boolean;
14
+
15
+ @Column({ type: "int", default: 0 })
16
+ display_order: number;
17
+
18
+ constructor(locationName: string) {
19
+ super();
20
+ this.location_name = locationName;
21
+ this.description = null;
22
+ this.is_active = true;
23
+ this.display_order = 0;
24
+ }
25
+ }
@@ -30,6 +30,12 @@ export class CyberSecurityAuditRequest extends BaseModel {
30
30
  @Column({ type: "integer", nullable: true })
31
31
  req_user_section_id: number | null;
32
32
 
33
+ @Column({ type: "integer", nullable: true })
34
+ requesting_to_department_id: number | null;
35
+
36
+ @Column({ type: "integer", nullable: true })
37
+ requesting_to_section_id: number | null;
38
+
33
39
  @Column({ type: "integer", nullable: true })
34
40
  req_user_position_id: number | null;
35
41
 
@@ -85,6 +91,8 @@ export class CyberSecurityAuditRequest extends BaseModel {
85
91
  sub_service_id?: number | null,
86
92
  req_user_department_id?: number | null,
87
93
  req_user_section_id?: number | null,
94
+ requesting_to_department_id?: number | null,
95
+ requesting_to_section_id?: number | null,
88
96
  req_user_position_id?: number | null,
89
97
  description?: string | null,
90
98
  reviewer_user_id?: number | null,
@@ -104,6 +112,8 @@ export class CyberSecurityAuditRequest extends BaseModel {
104
112
  this.sub_service_id = sub_service_id || null;
105
113
  this.req_user_department_id = req_user_department_id || null;
106
114
  this.req_user_section_id = req_user_section_id || null;
115
+ this.requesting_to_department_id = requesting_to_department_id || null;
116
+ this.requesting_to_section_id = requesting_to_section_id || null;
107
117
  this.req_user_position_id = req_user_position_id || null;
108
118
  this.description = description || null;
109
119
  this.reviewer_user_id = reviewer_user_id || null;
@@ -1,229 +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
- /** BRD: Apartment options with OMR rates - Studio 100, 1BHK 150, 2BHK 200, 3BHK 250 */
59
-
60
- @Column({ type: 'json', nullable: true })
61
-
62
- apartment_type: {
63
-
64
- studio?: boolean;
65
-
66
- one_bhk?: boolean;
67
-
68
- two_bhk?: boolean;
69
-
70
- three_bhk?: boolean;
71
-
72
- };
73
-
74
-
75
-
76
-
77
- /** BRD: Villa options with OMR rates - 1 ROOM 201, 2 ROOM 350, 3 ROOM 400 */
78
-
79
- @Column({ type: 'json', nullable: true })
80
-
81
- villa_type: {
82
-
83
- one_room?: boolean;
84
-
85
- two_room?: boolean;
86
-
87
- three_room?: boolean;
88
-
89
- };
90
-
91
-
92
-
93
-
94
- @Column({ type: 'varchar', length: 20, nullable: true })
95
-
96
- extension_number: string;
97
-
98
-
99
-
100
-
101
- @Column({ type: 'date', nullable: false })
102
-
103
- preferred_start_date: Date;
104
-
105
-
106
-
107
-
108
- @Column({ type: 'int', nullable: false })
109
-
110
- family_size: number;
111
-
112
-
113
-
114
-
115
- @Column({ type: 'varchar', length: 50, nullable: false })
116
-
117
- duration_of_stay: string; // Months/Years
118
-
119
-
120
-
121
-
122
- @Column({ type: 'varchar', length: 255, nullable: true })
123
-
124
- location_of_unit: string;
125
-
126
-
127
-
128
-
129
- @Column({ type: 'text', nullable: true })
130
-
131
- comment: string;
132
-
133
-
134
-
135
-
136
- @Column({ type: 'varchar', length: 20, nullable: false, default: 'Pending' })
137
-
138
- status: string;
139
-
140
-
141
-
142
-
143
- @Column({ type: 'int', nullable: true })
144
-
145
- user_id: number;
146
-
147
-
148
-
149
-
150
- @Column({ type: 'varchar', length: 255, nullable: true })
151
-
152
- workflow_execution_id: string;
153
-
154
-
155
-
156
-
157
- @Column({ type: 'int', nullable: false })
158
-
159
- created_by: number;
160
-
161
-
162
-
163
-
164
- @Column({ type: 'int', nullable: true })
165
-
166
- approved_by: number;
167
-
168
-
169
-
170
-
171
- @Column({ type: 'date', nullable: true })
172
-
173
- approved_at: Date;
174
-
175
-
176
-
177
-
178
- @Column({ type: 'text', nullable: true })
179
-
180
- approver_comment: string;
181
-
182
-
183
-
184
-
185
- @Column({ type: 'json', nullable: true })
186
-
187
- unit_details: {
188
-
189
- type: string;
190
-
191
- specifications: any;
192
-
193
- rate: number;
194
-
195
- };
196
-
197
-
198
-
199
-
200
- @Column({ type: 'date', nullable: true })
201
-
202
- rental_start_date: Date;
203
-
204
-
205
-
206
-
207
- @Column({ type: 'date', nullable: true })
208
-
209
- rental_end_date: Date;
210
-
211
-
212
-
213
-
214
- @Column({ type: 'text', nullable: true })
215
-
216
- rental_agreement_url: string;
217
-
218
-
219
-
220
-
221
- constructor() {
222
-
223
- super();
224
-
225
- }
226
-
227
- }
228
-
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
+ duration_of_stay: string; // Months/Years
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
+
229
219