@platform-modules/civil-aviation-authority 2.2.324 → 2.2.325
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.
|
@@ -23,8 +23,8 @@ export declare class SecondmentRequest extends BaseModel {
|
|
|
23
23
|
assigned_employee_name: string;
|
|
24
24
|
civil_id_card_number: string | null;
|
|
25
25
|
employee_id: string;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
original_department_id: number;
|
|
27
|
+
assigned_department_id: number;
|
|
28
28
|
start_date: Date;
|
|
29
29
|
end_date: Date;
|
|
30
30
|
phone_number: string;
|
|
@@ -36,5 +36,5 @@ export declare class SecondmentRequest extends BaseModel {
|
|
|
36
36
|
replacement_reason: string | null;
|
|
37
37
|
replaced_by_user_id: number | null;
|
|
38
38
|
replaced_at: Date | null;
|
|
39
|
-
constructor(user_id: number, status?: SecondmentRequestStatus, 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, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string,
|
|
39
|
+
constructor(user_id: number, status?: SecondmentRequestStatus, 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, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, original_department_id?: number, assigned_department_id?: number, start_date?: Date, end_date?: Date, phone_number?: string, reason_for_request?: string, is_replaced?: boolean, replacement_employee_name?: string | null, replacement_employee_id?: string | null, replacement_civil_id_card_number?: string | null, replacement_reason?: string | null, replaced_by_user_id?: number | null, replaced_at?: Date | null);
|
|
40
40
|
}
|
|
@@ -22,7 +22,7 @@ var SecondmentRequestStatus;
|
|
|
22
22
|
SecondmentRequestStatus["REJECTED"] = "Rejected";
|
|
23
23
|
})(SecondmentRequestStatus || (exports.SecondmentRequestStatus = SecondmentRequestStatus = {}));
|
|
24
24
|
let SecondmentRequest = class SecondmentRequest extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(user_id, status = SecondmentRequestStatus.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, assigned_employee_name, civil_id_card_number, employee_id,
|
|
25
|
+
constructor(user_id, status = SecondmentRequestStatus.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, assigned_employee_name, civil_id_card_number, employee_id, original_department_id, assigned_department_id, start_date, end_date, phone_number, reason_for_request, is_replaced, replacement_employee_name, replacement_employee_id, replacement_civil_id_card_number, replacement_reason, replaced_by_user_id, replaced_at) {
|
|
26
26
|
super();
|
|
27
27
|
this.user_id = user_id;
|
|
28
28
|
this.status = status;
|
|
@@ -39,8 +39,8 @@ let SecondmentRequest = class SecondmentRequest extends BaseModel_1.BaseModel {
|
|
|
39
39
|
this.assigned_employee_name = assigned_employee_name || "";
|
|
40
40
|
this.civil_id_card_number = civil_id_card_number || null;
|
|
41
41
|
this.employee_id = employee_id || "";
|
|
42
|
-
this.
|
|
43
|
-
this.
|
|
42
|
+
this.original_department_id = original_department_id || 0;
|
|
43
|
+
this.assigned_department_id = assigned_department_id || 0;
|
|
44
44
|
this.start_date = start_date || new Date();
|
|
45
45
|
this.end_date = end_date || new Date();
|
|
46
46
|
this.phone_number = phone_number || "";
|
|
@@ -116,13 +116,13 @@ __decorate([
|
|
|
116
116
|
__metadata("design:type", String)
|
|
117
117
|
], SecondmentRequest.prototype, "employee_id", void 0);
|
|
118
118
|
__decorate([
|
|
119
|
-
(0, typeorm_1.Column)({ type: "
|
|
120
|
-
__metadata("design:type",
|
|
121
|
-
], SecondmentRequest.prototype, "
|
|
119
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
120
|
+
__metadata("design:type", Number)
|
|
121
|
+
], SecondmentRequest.prototype, "original_department_id", void 0);
|
|
122
122
|
__decorate([
|
|
123
|
-
(0, typeorm_1.Column)({ type: "
|
|
124
|
-
__metadata("design:type",
|
|
125
|
-
], SecondmentRequest.prototype, "
|
|
123
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
124
|
+
__metadata("design:type", Number)
|
|
125
|
+
], SecondmentRequest.prototype, "assigned_department_id", void 0);
|
|
126
126
|
__decorate([
|
|
127
127
|
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
128
128
|
__metadata("design:type", Date)
|
|
@@ -169,6 +169,6 @@ __decorate([
|
|
|
169
169
|
], SecondmentRequest.prototype, "replaced_at", void 0);
|
|
170
170
|
exports.SecondmentRequest = SecondmentRequest = __decorate([
|
|
171
171
|
(0, typeorm_1.Entity)({ name: "secondment_requests" }),
|
|
172
|
-
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String,
|
|
172
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, Number, Number, Date,
|
|
173
173
|
Date, String, String, Boolean, Object, Object, Object, Object, Object, Object])
|
|
174
174
|
], SecondmentRequest);
|
package/package.json
CHANGED
|
@@ -58,11 +58,11 @@ export class SecondmentRequest extends BaseModel {
|
|
|
58
58
|
@Column({ type: "varchar", length: 100, nullable: false })
|
|
59
59
|
employee_id: string;
|
|
60
60
|
|
|
61
|
-
@Column({ type: "
|
|
62
|
-
|
|
61
|
+
@Column({ type: "integer", nullable: false })
|
|
62
|
+
original_department_id: number;
|
|
63
63
|
|
|
64
|
-
@Column({ type: "
|
|
65
|
-
|
|
64
|
+
@Column({ type: "integer", nullable: false })
|
|
65
|
+
assigned_department_id: number;
|
|
66
66
|
|
|
67
67
|
@Column({ type: "date", nullable: false })
|
|
68
68
|
start_date: Date;
|
|
@@ -114,8 +114,8 @@ export class SecondmentRequest extends BaseModel {
|
|
|
114
114
|
assigned_employee_name?: string,
|
|
115
115
|
civil_id_card_number?: string | null,
|
|
116
116
|
employee_id?: string,
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
original_department_id?: number,
|
|
118
|
+
assigned_department_id?: number,
|
|
119
119
|
start_date?: Date,
|
|
120
120
|
end_date?: Date,
|
|
121
121
|
phone_number?: string,
|
|
@@ -144,8 +144,8 @@ export class SecondmentRequest extends BaseModel {
|
|
|
144
144
|
this.assigned_employee_name = assigned_employee_name || "";
|
|
145
145
|
this.civil_id_card_number = civil_id_card_number || null;
|
|
146
146
|
this.employee_id = employee_id || "";
|
|
147
|
-
this.
|
|
148
|
-
this.
|
|
147
|
+
this.original_department_id = original_department_id || 0;
|
|
148
|
+
this.assigned_department_id = assigned_department_id || 0;
|
|
149
149
|
this.start_date = start_date || new Date();
|
|
150
150
|
this.end_date = end_date || new Date();
|
|
151
151
|
this.phone_number = phone_number || "";
|