@platform-modules/civil-aviation-authority 2.3.64 → 2.3.65

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.
@@ -210,7 +210,7 @@ __decorate([
210
210
  __metadata("design:type", Object)
211
211
  ], AirportEntryPermit.prototype, "temporary_duration", void 0);
212
212
  __decorate([
213
- (0, typeorm_1.Column)({ type: 'jsonb', nullable: false }),
213
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
214
214
  __metadata("design:type", Array)
215
215
  ], AirportEntryPermit.prototype, "permission_to_required_areas", void 0);
216
216
  __decorate([
@@ -32,6 +32,8 @@ export declare class ShiftAllowanceRequest extends BaseModel {
32
32
  allowance_value: ShiftAllowanceValue;
33
33
  shift_start_date: Date;
34
34
  shift_end_date: Date;
35
+ start_time: string | null;
36
+ end_time: string | null;
35
37
  reason_for_request: string | null;
36
- constructor(user_id: number, status?: ShiftAllowanceRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string, employee_id?: string, job_title?: string, financial_grade?: string, allowance_value?: ShiftAllowanceValue, shift_start_date?: Date, shift_end_date?: Date, reason_for_request?: string | null);
38
+ constructor(user_id: number, status?: ShiftAllowanceRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string, employee_id?: string, job_title?: string, financial_grade?: string, allowance_value?: ShiftAllowanceValue, shift_start_date?: Date, shift_end_date?: Date, start_time?: string | null, end_time?: string | null, reason_for_request?: string | null);
37
39
  }
@@ -28,7 +28,7 @@ var ShiftAllowanceValue;
28
28
  ShiftAllowanceValue["SEVENTY_PERCENT"] = "70%";
29
29
  })(ShiftAllowanceValue || (exports.ShiftAllowanceValue = ShiftAllowanceValue = {}));
30
30
  let ShiftAllowanceRequest = class ShiftAllowanceRequest extends BaseModel_1.BaseModel {
31
- constructor(user_id, status = ShiftAllowanceRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, job_title, financial_grade, allowance_value, shift_start_date, shift_end_date, reason_for_request) {
31
+ constructor(user_id, status = ShiftAllowanceRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, job_title, financial_grade, allowance_value, shift_start_date, shift_end_date, start_time, end_time, reason_for_request) {
32
32
  super();
33
33
  this.user_id = user_id;
34
34
  this.status = status;
@@ -49,6 +49,8 @@ let ShiftAllowanceRequest = class ShiftAllowanceRequest extends BaseModel_1.Base
49
49
  this.allowance_value = allowance_value || ShiftAllowanceValue.TWENTY_TWO_PERCENT;
50
50
  this.shift_start_date = shift_start_date || new Date();
51
51
  this.shift_end_date = shift_end_date || new Date();
52
+ this.start_time = start_time || null;
53
+ this.end_time = end_time || null;
52
54
  this.reason_for_request = reason_for_request || null;
53
55
  }
54
56
  };
@@ -129,6 +131,14 @@ __decorate([
129
131
  (0, typeorm_1.Column)({ type: "date", nullable: false }),
130
132
  __metadata("design:type", Date)
131
133
  ], ShiftAllowanceRequest.prototype, "shift_end_date", void 0);
134
+ __decorate([
135
+ (0, typeorm_1.Column)({ type: "time", nullable: true }),
136
+ __metadata("design:type", Object)
137
+ ], ShiftAllowanceRequest.prototype, "start_time", void 0);
138
+ __decorate([
139
+ (0, typeorm_1.Column)({ type: "time", nullable: true }),
140
+ __metadata("design:type", Object)
141
+ ], ShiftAllowanceRequest.prototype, "end_time", void 0);
132
142
  __decorate([
133
143
  (0, typeorm_1.Column)({ type: "text", nullable: true }),
134
144
  __metadata("design:type", Object)
@@ -136,5 +146,5 @@ __decorate([
136
146
  exports.ShiftAllowanceRequest = ShiftAllowanceRequest = __decorate([
137
147
  (0, typeorm_1.Entity)({ name: "shift_allowance_requests" }),
138
148
  __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, String, Date,
139
- Date, Object])
149
+ Date, Object, Object, Object])
140
150
  ], ShiftAllowanceRequest);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.64",
3
+ "version": "2.3.65",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -142,7 +142,7 @@ export class AirportEntryPermit extends BaseModel {
142
142
  @Column({ type: 'varchar', length: 100, nullable: true })
143
143
  temporary_duration: string | null;
144
144
 
145
- @Column({ type: 'jsonb', nullable: false })
145
+ @Column({ type: 'jsonb', nullable: true })
146
146
  permission_to_required_areas: Array<{ permit: string; text: string }>;
147
147
 
148
148
  @Column({ type: 'text', nullable: true })
@@ -76,6 +76,12 @@ export class ShiftAllowanceRequest extends BaseModel {
76
76
  @Column({ type: "date", nullable: false })
77
77
  shift_end_date: Date;
78
78
 
79
+ @Column({ type: "time", nullable: true })
80
+ start_time: string | null;
81
+
82
+ @Column({ type: "time", nullable: true })
83
+ end_time: string | null;
84
+
79
85
  @Column({ type: "text", nullable: true })
80
86
  reason_for_request: string | null;
81
87
 
@@ -99,6 +105,8 @@ export class ShiftAllowanceRequest extends BaseModel {
99
105
  allowance_value?: ShiftAllowanceValue,
100
106
  shift_start_date?: Date,
101
107
  shift_end_date?: Date,
108
+ start_time?: string | null,
109
+ end_time?: string | null,
102
110
  reason_for_request?: string | null
103
111
  ) {
104
112
  super();
@@ -121,6 +129,8 @@ export class ShiftAllowanceRequest extends BaseModel {
121
129
  this.allowance_value = allowance_value || ShiftAllowanceValue.TWENTY_TWO_PERCENT;
122
130
  this.shift_start_date = shift_start_date || new Date();
123
131
  this.shift_end_date = shift_end_date || new Date();
132
+ this.start_time = start_time || null;
133
+ this.end_time = end_time || null;
124
134
  this.reason_for_request = reason_for_request || null;
125
135
  }
126
136
  }