hvp-shared 6.57.0 → 6.59.0
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/constants/index.d.ts +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/job-compensation.constants.d.ts +9 -0
- package/dist/constants/job-compensation.constants.js +12 -0
- package/dist/contracts/employment/responses.d.ts +2 -0
- package/dist/contracts/job/requests.d.ts +0 -2
- package/dist/contracts/job/responses.d.ts +0 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/job-snapshot.types.d.ts +19 -0
- package/dist/types/job-snapshot.types.js +2 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ export * from './qvet-warehouses';
|
|
|
11
11
|
export * from './qvet-inventory';
|
|
12
12
|
export * from './background-job.constants';
|
|
13
13
|
export * from './job-category.constants';
|
|
14
|
+
export * from './job-compensation.constants';
|
|
14
15
|
export * from './special-collaborators.constants';
|
|
15
16
|
export * from './commissions.constants';
|
|
16
17
|
export * from './hr.enums';
|
package/dist/constants/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./qvet-warehouses"), exports);
|
|
|
27
27
|
__exportStar(require("./qvet-inventory"), exports);
|
|
28
28
|
__exportStar(require("./background-job.constants"), exports);
|
|
29
29
|
__exportStar(require("./job-category.constants"), exports);
|
|
30
|
+
__exportStar(require("./job-compensation.constants"), exports);
|
|
30
31
|
__exportStar(require("./special-collaborators.constants"), exports);
|
|
31
32
|
__exportStar(require("./commissions.constants"), exports);
|
|
32
33
|
__exportStar(require("./hr.enums"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rate applied to the excess of guaranteedJobIncome over minimumWageHVP
|
|
3
|
+
* to compute jobFixedIncome.
|
|
4
|
+
*
|
|
5
|
+
* Formula:
|
|
6
|
+
* guaranteedJobIncome = minimumWageHVP * positionFactor
|
|
7
|
+
* jobFixedIncome = minimumWageHVP + (guaranteedJobIncome - minimumWageHVP) * FIXED_INCOME_EXCESS_RATE
|
|
8
|
+
*/
|
|
9
|
+
export declare const FIXED_INCOME_EXCESS_RATE = 0.5;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FIXED_INCOME_EXCESS_RATE = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Rate applied to the excess of guaranteedJobIncome over minimumWageHVP
|
|
6
|
+
* to compute jobFixedIncome.
|
|
7
|
+
*
|
|
8
|
+
* Formula:
|
|
9
|
+
* guaranteedJobIncome = minimumWageHVP * positionFactor
|
|
10
|
+
* jobFixedIncome = minimumWageHVP + (guaranteedJobIncome - minimumWageHVP) * FIXED_INCOME_EXCESS_RATE
|
|
11
|
+
*/
|
|
12
|
+
exports.FIXED_INCOME_EXCESS_RATE = 0.5;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EmploymentType, CompensationType, PayrollStampingMode, ScheduleType, AttendanceSource } from '../../constants/employment.enums';
|
|
2
|
+
import { JobSnapshot } from '../../types/job-snapshot.types';
|
|
2
3
|
/**
|
|
3
4
|
* Public Employment Response
|
|
4
5
|
*
|
|
@@ -36,6 +37,7 @@ export interface EmploymentViewResponse extends PublicEmploymentResponse {
|
|
|
36
37
|
weeklyHours?: number;
|
|
37
38
|
seniorityBonusPercentage?: number;
|
|
38
39
|
commissionBonusPercentage?: number;
|
|
40
|
+
jobSnapshot?: JobSnapshot;
|
|
39
41
|
createdAt?: string;
|
|
40
42
|
updatedAt?: string;
|
|
41
43
|
}
|
|
@@ -16,7 +16,6 @@ export interface CreateJobRequest {
|
|
|
16
16
|
positionFactor?: number;
|
|
17
17
|
guaranteedJobIncome?: number;
|
|
18
18
|
jobFixedIncome?: number;
|
|
19
|
-
fixedShareOfGuaranteedIncome?: number;
|
|
20
19
|
isCommissionAdjusted?: boolean;
|
|
21
20
|
commissionRateAdjustment?: number;
|
|
22
21
|
expressBranchCompensation?: number;
|
|
@@ -41,7 +40,6 @@ export interface UpdateJobRequest {
|
|
|
41
40
|
positionFactor?: number;
|
|
42
41
|
guaranteedJobIncome?: number;
|
|
43
42
|
jobFixedIncome?: number;
|
|
44
|
-
fixedShareOfGuaranteedIncome?: number;
|
|
45
43
|
isCommissionAdjusted?: boolean;
|
|
46
44
|
commissionRateAdjustment?: number;
|
|
47
45
|
expressBranchCompensation?: number;
|
|
@@ -21,7 +21,6 @@ export interface JobResponse {
|
|
|
21
21
|
positionFactor: number;
|
|
22
22
|
guaranteedJobIncome?: number;
|
|
23
23
|
jobFixedIncome?: number;
|
|
24
|
-
fixedShareOfGuaranteedIncome: number;
|
|
25
24
|
isCommissionAdjusted: boolean;
|
|
26
25
|
commissionRateAdjustment: number;
|
|
27
26
|
expressBranchCompensation: number;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -30,3 +30,4 @@ __exportStar(require("./payroll-v2.types"), exports);
|
|
|
30
30
|
__exportStar(require("./cash-reconciliation.types"), exports);
|
|
31
31
|
__exportStar(require("./coverage.types"), exports);
|
|
32
32
|
__exportStar(require("./job-promotion-stats.types"), exports);
|
|
33
|
+
__exportStar(require("./job-snapshot.types"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { JobCategory } from '../constants/job-category.constants';
|
|
2
|
+
/**
|
|
3
|
+
* Job Snapshot
|
|
4
|
+
*
|
|
5
|
+
* A point-in-time copy of job fields stored on employment records.
|
|
6
|
+
* Avoids always fetching the job entity when displaying employment data.
|
|
7
|
+
*
|
|
8
|
+
* Updated when employment is created, recalculated, or when the job changes.
|
|
9
|
+
*/
|
|
10
|
+
export interface JobSnapshot {
|
|
11
|
+
title: string;
|
|
12
|
+
category?: JobCategory;
|
|
13
|
+
positionFactor: number;
|
|
14
|
+
guaranteedJobIncome: number;
|
|
15
|
+
jobFixedIncome: number;
|
|
16
|
+
isCommissionAdjusted: boolean;
|
|
17
|
+
commissionRateAdjustment: number;
|
|
18
|
+
expressBranchCompensation: number;
|
|
19
|
+
}
|