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

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.
@@ -39,8 +39,8 @@ export declare class HotelReservation extends BaseModel {
39
39
  attachment_url: string | null;
40
40
  requested_by: string;
41
41
  visitor_name: string;
42
- purpose_of_visit: string;
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, 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
  }
@@ -165,8 +165,8 @@ __decorate([
165
165
  __metadata("design:type", String)
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, String, 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.217",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -100,8 +100,8 @@ export class HotelReservation extends BaseModel {
100
100
  @Column({ type: 'varchar', length: 100, nullable: false })
101
101
  visitor_name: string;
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;
@@ -126,7 +126,7 @@ export class HotelReservation extends BaseModel {
126
126
  description: string,
127
127
  requested_by: string,
128
128
  visitor_name: string,
129
- purpose_of_visit: string,
129
+ purpose_of_visit: string | null,
130
130
  user_id: number,
131
131
  status: HotelReservationStatus = HotelReservationStatus.PENDING,
132
132
  hr_approval: boolean = false,