@platform-modules/civil-aviation-authority 2.3.94 → 2.3.96

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.
package/.env ADDED
@@ -0,0 +1,14 @@
1
+ # DB_HOST=164.52.222.169
2
+ # DB_PORT=5432
3
+ # DB_USER=postgres_admin_user
4
+ # DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
5
+ # DB_NAME=CAA
6
+
7
+
8
+ DB_HOST=localhost
9
+ DB_PORT=5432
10
+ DB_USER=postgres
11
+ DB_PASS=admin123
12
+ DB_NAME=CAA
13
+
14
+ TYPEORM_DATABASE_SYNC=true
@@ -54,8 +54,8 @@ export declare class DutyMissionRequests extends BaseModel {
54
54
  from_country: string;
55
55
  to_country: string;
56
56
  travel_place: string;
57
- travel_start_date: Date;
58
- travel_return_date: Date;
57
+ travel_start_date: Date | null;
58
+ travel_return_date: Date | null;
59
59
  allowance_percentage: string | null;
60
60
  sponsored_company_allowance_amount: string | null;
61
61
  sponsored_total_company_amount: number | null;
@@ -64,5 +64,5 @@ export declare class DutyMissionRequests extends BaseModel {
64
64
  remarks: string | null;
65
65
  decision_number: string | null;
66
66
  decision_date: Date | null;
67
- constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, trip_type: TripType, choose_type: ChooseType, mission_sponsored_by: MissionSponsoredBy, mission_purpose: string, mission_number: string, mission_start_date: Date, mission_end_date: Date, travelling_area_from: string, travelling_area_to: string, from_country: string, to_country: string, travel_place: string, travel_start_date: Date, travel_return_date: Date, status: DutyMissionStatus, request_id?: string | null, mission_id?: string | null, mission_days?: number | null, distance?: string | null, if_sponsored?: string | null, allowance_percentage?: string | null, air_ticket_required?: AirTicketRequired | null, vehicle_required?: VehicleRequired | null, remarks?: string | null, decision_number?: string | null, decision_date?: Date | null, workflow_execution_id?: string | null, sponsored_company_allowance_amount?: string | null, sponsored_total_company_amount?: number | null);
67
+ constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, trip_type: TripType, choose_type: ChooseType, mission_sponsored_by: MissionSponsoredBy, mission_purpose: string, mission_number: string, mission_start_date: Date, mission_end_date: Date, travelling_area_from: string, travelling_area_to: string, from_country: string, to_country: string, travel_place: string, travel_start_date: Date | null, travel_return_date: Date | null, status: DutyMissionStatus, request_id?: string | null, mission_id?: string | null, mission_days?: number | null, distance?: string | null, if_sponsored?: string | null, allowance_percentage?: string | null, air_ticket_required?: AirTicketRequired | null, vehicle_required?: VehicleRequired | null, remarks?: string | null, decision_number?: string | null, decision_date?: Date | null, workflow_execution_id?: string | null, sponsored_company_allowance_amount?: string | null, sponsored_total_company_amount?: number | null);
68
68
  }
@@ -203,11 +203,11 @@ __decorate([
203
203
  ], DutyMissionRequests.prototype, "travel_place", void 0);
204
204
  __decorate([
205
205
  (0, typeorm_1.Column)({ type: "date", nullable: true }),
206
- __metadata("design:type", Date)
206
+ __metadata("design:type", Object)
207
207
  ], DutyMissionRequests.prototype, "travel_start_date", void 0);
208
208
  __decorate([
209
209
  (0, typeorm_1.Column)({ type: "date", nullable: true }),
210
- __metadata("design:type", Date)
210
+ __metadata("design:type", Object)
211
211
  ], DutyMissionRequests.prototype, "travel_return_date", void 0);
212
212
  __decorate([
213
213
  (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
@@ -252,6 +252,5 @@ __decorate([
252
252
  exports.DutyMissionRequests = DutyMissionRequests = __decorate([
253
253
  (0, typeorm_1.Entity)({ name: 'duty_mission_requests' }),
254
254
  __metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, String, Date,
255
- Date, String, String, String, String, String, Date,
256
- Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
255
+ Date, String, String, String, String, String, Object, Object, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
257
256
  ], DutyMissionRequests);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.94",
3
+ "version": "2.3.96",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -11,7 +11,6 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@platform-modules/civil-aviation-authority": "^2.3.94",
15
14
  "moment-timezone": "^0.6.0",
16
15
  "pg": "^8.16.0",
17
16
  "typeorm": "^0.3.17"
@@ -132,10 +132,10 @@ export class DutyMissionRequests extends BaseModel {
132
132
  travel_place: string;
133
133
 
134
134
  @Column({ type: "date", nullable: true })
135
- travel_start_date: Date;
135
+ travel_start_date: Date | null;
136
136
 
137
137
  @Column({ type: "date", nullable: true })
138
- travel_return_date: Date;
138
+ travel_return_date: Date | null;
139
139
 
140
140
  @Column({ type: 'varchar', length: 50, nullable: true })
141
141
  allowance_percentage: string | null; // Inside: 0%, 50%, 100%; Outside: 0%, 75%, 100%
@@ -187,8 +187,8 @@ export class DutyMissionRequests extends BaseModel {
187
187
  from_country: string,
188
188
  to_country: string,
189
189
  travel_place: string,
190
- travel_start_date: Date,
191
- travel_return_date: Date,
190
+ travel_start_date: Date | null,
191
+ travel_return_date: Date | null,
192
192
  status: DutyMissionStatus,
193
193
  request_id?: string | null,
194
194
  mission_id?: string | null,