@platform-modules/civil-aviation-authority 2.2.217 → 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;
41
+ visitor_name: string | null;
42
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 | 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);
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,8 +161,8 @@ __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
168
  (0, typeorm_1.Column)({ type: 'text', nullable: true }),
@@ -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, Object, 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.217",
3
+ "version": "2.2.218",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -97,8 +97,8 @@ 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
103
  @Column({ type: 'text', nullable: true })
104
104
  purpose_of_visit: string | null;
@@ -125,7 +125,7 @@ export class HotelReservation extends BaseModel {
125
125
  number_of_guests: number,
126
126
  description: string,
127
127
  requested_by: string,
128
- visitor_name: string,
128
+ visitor_name: string | null,
129
129
  purpose_of_visit: string | null,
130
130
  user_id: number,
131
131
  status: HotelReservationStatus = HotelReservationStatus.PENDING,