@platform-modules/civil-aviation-authority 2.3.234 → 2.3.235

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.
@@ -50,9 +50,9 @@ export declare class LogisticsRequests extends BaseModel {
50
50
  purpose_of_travel: Purpose_of_Travel;
51
51
  type_of_vehicle_required: Type_of_Vehicle;
52
52
  type_of_request: Type_of_Request;
53
- travel_date_from: Date;
54
- travel_date_to: Date;
55
- duration: number;
53
+ travel_date_from: Date | null;
54
+ travel_date_to: Date | null;
55
+ duration: number | null;
56
56
  time_of_travel: string;
57
57
  description: string;
58
58
  status: Status;
@@ -66,5 +66,5 @@ export declare class LogisticsRequests extends BaseModel {
66
66
  vehicle_condition: string | null;
67
67
  reason: string | null;
68
68
  driver_name: string | null;
69
- constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, category: Request_Type, vehicle_required_for: Vehicle_Required_For, vehicle_required_location: Vehicle_Required_Location, title: string, purpose_of_travel: Purpose_of_Travel, type_of_vehicle_required: Type_of_Vehicle, type_of_request: Type_of_Request, travel_date_from: Date, travel_date_to: Date, duration: number, time_of_travel: string, description: string, status: Status, workflow_execution_id?: string | null, vehicle_number?: string | null, fuel_card?: string | null, expected_vehicle_return_time?: string | null, expected_return_date?: Date | null, actual_vehicle_return_time?: string | null, actual_return_date?: Date | null, vehicle_condition?: string | null, reason?: string | null, driver_name?: string | null);
69
+ constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, category: Request_Type, vehicle_required_for: Vehicle_Required_For, vehicle_required_location: Vehicle_Required_Location, title: string, purpose_of_travel: Purpose_of_Travel, type_of_vehicle_required: Type_of_Vehicle, type_of_request: Type_of_Request, travel_date_from: Date | null, travel_date_to: Date | null, duration: number | null, time_of_travel: string, description: string, status: Status, workflow_execution_id?: string | null, vehicle_number?: string | null, fuel_card?: string | null, expected_vehicle_return_time?: string | null, expected_return_date?: Date | null, actual_vehicle_return_time?: string | null, actual_return_date?: Date | null, vehicle_condition?: string | null, reason?: string | null, driver_name?: string | null);
70
70
  }
@@ -73,9 +73,9 @@ let LogisticsRequests = class LogisticsRequests extends BaseModel_1.BaseModel {
73
73
  this.purpose_of_travel = purpose_of_travel;
74
74
  this.type_of_vehicle_required = type_of_vehicle_required;
75
75
  this.type_of_request = type_of_request;
76
- this.travel_date_from = travel_date_from;
77
- this.travel_date_to = travel_date_to;
78
- this.duration = duration;
76
+ this.travel_date_from = travel_date_from ?? null;
77
+ this.travel_date_to = travel_date_to ?? null;
78
+ this.duration = duration ?? null;
79
79
  this.time_of_travel = time_of_travel;
80
80
  // this.exp_duration_of_use_hrs = exp_duration_of_use_hrs;
81
81
  // this.exp_duration_of_use_days = exp_duration_of_use_days;
@@ -177,16 +177,16 @@ __decorate([
177
177
  __metadata("design:type", String)
178
178
  ], LogisticsRequests.prototype, "type_of_request", void 0);
179
179
  __decorate([
180
- (0, typeorm_1.Column)({ type: "date", nullable: false }),
181
- __metadata("design:type", Date)
180
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
181
+ __metadata("design:type", Object)
182
182
  ], LogisticsRequests.prototype, "travel_date_from", void 0);
183
183
  __decorate([
184
- (0, typeorm_1.Column)({ type: "date", nullable: false }),
185
- __metadata("design:type", Date)
184
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
185
+ __metadata("design:type", Object)
186
186
  ], LogisticsRequests.prototype, "travel_date_to", void 0);
187
187
  __decorate([
188
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
189
- __metadata("design:type", Number)
188
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
189
+ __metadata("design:type", Object)
190
190
  ], LogisticsRequests.prototype, "duration", void 0);
191
191
  __decorate([
192
192
  (0, typeorm_1.Column)({ type: "time", nullable: true }),
@@ -247,6 +247,5 @@ __decorate([
247
247
  ], LogisticsRequests.prototype, "driver_name", void 0);
248
248
  exports.LogisticsRequests = LogisticsRequests = __decorate([
249
249
  (0, typeorm_1.Entity)({ name: 'logistics_requests' }),
250
- __metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, String, String, String, Date,
251
- Date, Number, String, String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
250
+ __metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, String, String, String, Object, Object, Object, String, String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
252
251
  ], LogisticsRequests);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.234",
3
+ "version": "2.3.235",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -117,14 +117,14 @@ export class LogisticsRequests extends BaseModel {
117
117
  })
118
118
  type_of_request: Type_of_Request;
119
119
 
120
- @Column({ type: "date", nullable: false })
121
- travel_date_from: Date;
120
+ @Column({ type: "date", nullable: true })
121
+ travel_date_from: Date | null;
122
122
 
123
- @Column({ type: "date", nullable: false })
124
- travel_date_to: Date;
123
+ @Column({ type: "date", nullable: true })
124
+ travel_date_to: Date | null;
125
125
 
126
- @Column({ type: 'int', nullable: false })
127
- duration: number;
126
+ @Column({ type: 'int', nullable: true })
127
+ duration: number | null;
128
128
 
129
129
  @Column({ type: "time", nullable: true })
130
130
  time_of_travel: string;
@@ -189,9 +189,9 @@ export class LogisticsRequests extends BaseModel {
189
189
  purpose_of_travel: Purpose_of_Travel,
190
190
  type_of_vehicle_required: Type_of_Vehicle,
191
191
  type_of_request: Type_of_Request,
192
- travel_date_from: Date,
193
- travel_date_to: Date,
194
- duration: number,
192
+ travel_date_from: Date | null,
193
+ travel_date_to: Date | null,
194
+ duration: number | null,
195
195
  time_of_travel: string,
196
196
  // exp_duration_of_use_hrs: number,
197
197
  // exp_duration_of_use_days: number,
@@ -221,9 +221,9 @@ export class LogisticsRequests extends BaseModel {
221
221
  this.purpose_of_travel = purpose_of_travel;
222
222
  this.type_of_vehicle_required = type_of_vehicle_required;
223
223
  this.type_of_request = type_of_request;
224
- this.travel_date_from = travel_date_from;
225
- this.travel_date_to = travel_date_to;
226
- this.duration = duration;
224
+ this.travel_date_from = travel_date_from ?? null;
225
+ this.travel_date_to = travel_date_to ?? null;
226
+ this.duration = duration ?? null;
227
227
  this.time_of_travel = time_of_travel;
228
228
  // this.exp_duration_of_use_hrs = exp_duration_of_use_hrs;
229
229
  // this.exp_duration_of_use_days = exp_duration_of_use_days;