@platform-modules/civil-aviation-authority 2.3.1 → 2.3.2
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.
|
@@ -27,6 +27,7 @@ export declare class SecondmentRequest extends BaseModel {
|
|
|
27
27
|
assigned_job_position: string;
|
|
28
28
|
original_department_id: number;
|
|
29
29
|
assigned_department_id: number;
|
|
30
|
+
entity: string | null;
|
|
30
31
|
start_date: Date;
|
|
31
32
|
end_date: Date;
|
|
32
33
|
phone_number: string;
|
|
@@ -38,5 +39,5 @@ export declare class SecondmentRequest extends BaseModel {
|
|
|
38
39
|
replacement_reason: string | null;
|
|
39
40
|
replaced_by_user_id: number | null;
|
|
40
41
|
replaced_at: Date | null;
|
|
41
|
-
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, current_job_position?: string, assigned_job_position?: 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);
|
|
42
|
+
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, current_job_position?: string, assigned_job_position?: string, original_department_id?: number, assigned_department_id?: number, entity?: string | null, 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);
|
|
42
43
|
}
|
|
@@ -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, current_job_position, assigned_job_position, 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) {
|
|
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, current_job_position, assigned_job_position, original_department_id, assigned_department_id, entity, 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;
|
|
@@ -43,6 +43,7 @@ let SecondmentRequest = class SecondmentRequest extends BaseModel_1.BaseModel {
|
|
|
43
43
|
this.assigned_job_position = assigned_job_position || "";
|
|
44
44
|
this.original_department_id = original_department_id || 0;
|
|
45
45
|
this.assigned_department_id = assigned_department_id || 0;
|
|
46
|
+
this.entity = entity || null;
|
|
46
47
|
this.start_date = start_date || new Date();
|
|
47
48
|
this.end_date = end_date || new Date();
|
|
48
49
|
this.phone_number = phone_number || "";
|
|
@@ -133,6 +134,10 @@ __decorate([
|
|
|
133
134
|
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
134
135
|
__metadata("design:type", Number)
|
|
135
136
|
], SecondmentRequest.prototype, "assigned_department_id", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
139
|
+
__metadata("design:type", Object)
|
|
140
|
+
], SecondmentRequest.prototype, "entity", void 0);
|
|
136
141
|
__decorate([
|
|
137
142
|
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
138
143
|
__metadata("design:type", Date)
|
|
@@ -179,6 +184,6 @@ __decorate([
|
|
|
179
184
|
], SecondmentRequest.prototype, "replaced_at", void 0);
|
|
180
185
|
exports.SecondmentRequest = SecondmentRequest = __decorate([
|
|
181
186
|
(0, typeorm_1.Entity)({ name: "secondment_requests" }),
|
|
182
|
-
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, Number, Number, Date,
|
|
187
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, Number, Number, Object, Date,
|
|
183
188
|
Date, String, String, Boolean, Object, Object, Object, Object, Object, Object])
|
|
184
189
|
], SecondmentRequest);
|
package/package.json
CHANGED
|
@@ -70,6 +70,9 @@ export class SecondmentRequest extends BaseModel {
|
|
|
70
70
|
@Column({ type: "integer", nullable: false })
|
|
71
71
|
assigned_department_id: number;
|
|
72
72
|
|
|
73
|
+
@Column({ type: "varchar", length: 500, nullable: true })
|
|
74
|
+
entity: string | null;
|
|
75
|
+
|
|
73
76
|
@Column({ type: "date", nullable: false })
|
|
74
77
|
start_date: Date;
|
|
75
78
|
|
|
@@ -124,6 +127,7 @@ export class SecondmentRequest extends BaseModel {
|
|
|
124
127
|
assigned_job_position?: string,
|
|
125
128
|
original_department_id?: number,
|
|
126
129
|
assigned_department_id?: number,
|
|
130
|
+
entity?: string | null,
|
|
127
131
|
start_date?: Date,
|
|
128
132
|
end_date?: Date,
|
|
129
133
|
phone_number?: string,
|
|
@@ -156,6 +160,7 @@ export class SecondmentRequest extends BaseModel {
|
|
|
156
160
|
this.assigned_job_position = assigned_job_position || "";
|
|
157
161
|
this.original_department_id = original_department_id || 0;
|
|
158
162
|
this.assigned_department_id = assigned_department_id || 0;
|
|
163
|
+
this.entity = entity || null;
|
|
159
164
|
this.start_date = start_date || new Date();
|
|
160
165
|
this.end_date = end_date || new Date();
|
|
161
166
|
this.phone_number = phone_number || "";
|