@platform-modules/foreign-ministry 1.3.361 → 1.3.363
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/dist/models/EmployeeOfMonthNominationRequestModel.d.ts +2 -1
- package/dist/models/EmployeeOfMonthNominationRequestModel.js +3 -3
- package/dist/models/EmployeeOfMonthSupportNominationRequestModel.d.ts +2 -1
- package/dist/models/EmployeeOfMonthSupportNominationRequestModel.js +3 -3
- package/dist/models/InitiatorEmployeeNominationRequestModel.js +1 -1
- package/package.json +1 -1
- package/sql/employee_of_month_support_nomination_nominated_support_user_id.sql +12 -0
- package/src/models/EmployeeOfMonthSupportNominationRequestModel.ts +3 -2
|
@@ -23,7 +23,8 @@ export declare class EmployeeOfMonthNominationRequests extends BaseModel {
|
|
|
23
23
|
service_id: number | null;
|
|
24
24
|
sub_service_id: number | null;
|
|
25
25
|
user_id: number;
|
|
26
|
-
|
|
26
|
+
/** Nominated employee (users.id). */
|
|
27
|
+
nominated_user_id: number;
|
|
27
28
|
last_annual_assessment: string;
|
|
28
29
|
rating_scores: EomNominationRatingScores;
|
|
29
30
|
status: EmployeeOfMonthNominationRequestStatus;
|
|
@@ -43,9 +43,9 @@ __decorate([
|
|
|
43
43
|
__metadata("design:type", Number)
|
|
44
44
|
], EmployeeOfMonthNominationRequests.prototype, "user_id", void 0);
|
|
45
45
|
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: '
|
|
47
|
-
__metadata("design:type",
|
|
48
|
-
], EmployeeOfMonthNominationRequests.prototype, "
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], EmployeeOfMonthNominationRequests.prototype, "nominated_user_id", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
51
51
|
__metadata("design:type", String)
|
|
@@ -19,7 +19,8 @@ export declare class EmployeeOfMonthSupportNominationRequests extends BaseModel
|
|
|
19
19
|
service_id: number | null;
|
|
20
20
|
sub_service_id: number | null;
|
|
21
21
|
user_id: number;
|
|
22
|
-
|
|
22
|
+
/** Nominated support employee (users.id). */
|
|
23
|
+
nominated_support_user_id: number;
|
|
23
24
|
last_annual_assessment: string;
|
|
24
25
|
rating_scores: EomSupportNominationRatingScores;
|
|
25
26
|
status: string;
|
|
@@ -42,9 +42,9 @@ __decorate([
|
|
|
42
42
|
__metadata("design:type", Number)
|
|
43
43
|
], EmployeeOfMonthSupportNominationRequests.prototype, "user_id", void 0);
|
|
44
44
|
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: '
|
|
46
|
-
__metadata("design:type",
|
|
47
|
-
], EmployeeOfMonthSupportNominationRequests.prototype, "
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], EmployeeOfMonthSupportNominationRequests.prototype, "nominated_support_user_id", void 0);
|
|
48
48
|
__decorate([
|
|
49
49
|
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
50
50
|
__metadata("design:type", String)
|
|
@@ -50,7 +50,7 @@ __decorate([
|
|
|
50
50
|
__metadata("design:type", Number)
|
|
51
51
|
], InitiatorEmployeeNominationRequests.prototype, "user_id", void 0);
|
|
52
52
|
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'int', nullable:
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
54
54
|
__metadata("design:type", Number)
|
|
55
55
|
], InitiatorEmployeeNominationRequests.prototype, "initiator_id", void 0);
|
|
56
56
|
__decorate([
|
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
-- Replace job_number with nominated_support_user_id (users.id) on support nomination requests.
|
|
2
|
+
ALTER TABLE employee_of_month_support_nomination_requests
|
|
3
|
+
ADD COLUMN IF NOT EXISTS nominated_support_user_id INT;
|
|
4
|
+
|
|
5
|
+
UPDATE employee_of_month_support_nomination_requests
|
|
6
|
+
SET nominated_support_user_id = NULLIF(regexp_replace(COALESCE(job_number, ''), '\D', '', 'g'), '')::INT
|
|
7
|
+
WHERE nominated_support_user_id IS NULL
|
|
8
|
+
AND job_number IS NOT NULL
|
|
9
|
+
AND job_number ~ '^\d+$';
|
|
10
|
+
|
|
11
|
+
ALTER TABLE employee_of_month_support_nomination_requests
|
|
12
|
+
DROP COLUMN IF EXISTS job_number;
|
|
@@ -36,8 +36,9 @@ export class EmployeeOfMonthSupportNominationRequests extends BaseModel {
|
|
|
36
36
|
@Column({ type: 'int', nullable: false })
|
|
37
37
|
user_id: number;
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
/** Nominated support employee (users.id). */
|
|
40
|
+
@Column({ type: 'int', nullable: true })
|
|
41
|
+
nominated_support_user_id: number;
|
|
41
42
|
|
|
42
43
|
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
43
44
|
last_annual_assessment: string;
|