@platform-modules/civil-aviation-authority 2.2.216 → 2.2.218

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,9 +38,9 @@ export declare class HotelReservation extends BaseModel {
38
38
  description: string;
39
39
  attachment_url: string | null;
40
40
  requested_by: string;
41
- visitor_name: string;
42
- purpose_of_visit: string;
41
+ visitor_name: string | null;
42
+ purpose_of_visit: string | null;
43
43
  hr_approval: boolean;
44
44
  pr_approval: boolean;
45
- constructor(type_of_accommodation: string, price: number, meal: MealType[], service: ServiceTypes[], date_of_request: Date, hotel_name: string, check_in_date: Date, booking_date: Date | null, check_in_time: string, check_out_date: Date, check_out_time: string, number_of_guests: number, description: string, requested_by: string, visitor_name: string, purpose_of_visit: string, user_id: number, status?: HotelReservationStatus, hr_approval?: boolean, pr_approval?: boolean, service_id?: number | null, sub_service_id?: number | null, service_type?: string | null, workflow_execution_id?: string | null, req_user_department_id?: number | null, req_user_section_id?: number | null, attachment_url?: string | null);
45
+ constructor(type_of_accommodation: string, price: number, meal: MealType[], service: ServiceTypes[], date_of_request: Date, hotel_name: string, check_in_date: Date, booking_date: Date | null, check_in_time: string, check_out_date: Date, check_out_time: string, number_of_guests: number, description: string, requested_by: string, visitor_name: string | null, purpose_of_visit: string | null, user_id: number, status?: HotelReservationStatus, hr_approval?: boolean, pr_approval?: boolean, service_id?: number | null, sub_service_id?: number | null, service_type?: string | null, workflow_execution_id?: string | null, req_user_department_id?: number | null, req_user_section_id?: number | null, attachment_url?: string | null);
46
46
  }
@@ -161,12 +161,12 @@ __decorate([
161
161
  __metadata("design:type", String)
162
162
  ], HotelReservation.prototype, "requested_by", void 0);
163
163
  __decorate([
164
- (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
165
- __metadata("design:type", String)
164
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
165
+ __metadata("design:type", Object)
166
166
  ], HotelReservation.prototype, "visitor_name", void 0);
167
167
  __decorate([
168
- (0, typeorm_1.Column)({ type: 'text', nullable: false }),
169
- __metadata("design:type", String)
168
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
169
+ __metadata("design:type", Object)
170
170
  ], HotelReservation.prototype, "purpose_of_visit", void 0);
171
171
  __decorate([
172
172
  (0, typeorm_1.Column)({ type: 'boolean', default: false }),
@@ -178,5 +178,5 @@ __decorate([
178
178
  ], HotelReservation.prototype, "pr_approval", void 0);
179
179
  exports.HotelReservation = HotelReservation = __decorate([
180
180
  (0, typeorm_1.Entity)({ name: 'hotelreservations' }),
181
- __metadata("design:paramtypes", [String, Number, Array, Array, Date, String, Date, Object, String, Date, String, Number, String, String, String, String, Number, String, Boolean, Boolean, Object, Object, Object, Object, Object, Object, Object])
181
+ __metadata("design:paramtypes", [String, Number, Array, Array, Date, String, Date, Object, String, Date, String, Number, String, String, Object, Object, Number, String, Boolean, Boolean, Object, Object, Object, Object, Object, Object, Object])
182
182
  ], HotelReservation);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.2.216",
3
+ "version": "2.2.218",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -97,11 +97,11 @@ export class HotelReservation extends BaseModel {
97
97
  @Column({ type: 'varchar', length: 100, nullable: false })
98
98
  requested_by: string;
99
99
 
100
- @Column({ type: 'varchar', length: 100, nullable: false })
101
- visitor_name: string;
100
+ @Column({ type: 'varchar', length: 100, nullable: true })
101
+ visitor_name: string | null;
102
102
 
103
- @Column({ type: 'text', nullable: false })
104
- purpose_of_visit: string;
103
+ @Column({ type: 'text', nullable: true })
104
+ purpose_of_visit: string | null;
105
105
 
106
106
  @Column({ type: 'boolean', default: false })
107
107
  hr_approval: boolean;
@@ -125,8 +125,8 @@ export class HotelReservation extends BaseModel {
125
125
  number_of_guests: number,
126
126
  description: string,
127
127
  requested_by: string,
128
- visitor_name: string,
129
- purpose_of_visit: string,
128
+ visitor_name: string | null,
129
+ purpose_of_visit: string | null,
130
130
  user_id: number,
131
131
  status: HotelReservationStatus = HotelReservationStatus.PENDING,
132
132
  hr_approval: boolean = false,