hvp-shared 6.54.0 → 6.56.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/contracts/index.d.ts +1 -0
- package/dist/contracts/index.js +1 -0
- package/dist/contracts/job/index.d.ts +6 -0
- package/dist/contracts/job/index.js +22 -0
- package/dist/contracts/job/requests.d.ts +51 -0
- package/dist/contracts/job/requests.js +2 -0
- package/dist/contracts/job/responses.d.ts +35 -0
- package/dist/contracts/job/responses.js +2 -0
- package/dist/types/coverage.types.d.ts +4 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/job-promotion-stats.types.d.ts +24 -0
- package/dist/types/job-promotion-stats.types.js +2 -0
- package/package.json +1 -1
package/dist/contracts/index.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Job API Contracts
|
|
4
|
+
* Request and Response types for Job endpoints
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
__exportStar(require("./responses"), exports);
|
|
22
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { JobCategory } from '../../constants/job-category.constants';
|
|
2
|
+
import { JobPromotionStats } from '../../types/job-promotion-stats.types';
|
|
3
|
+
/**
|
|
4
|
+
* Create Job Request
|
|
5
|
+
*
|
|
6
|
+
* Data required to create a new job position.
|
|
7
|
+
*
|
|
8
|
+
* @example POST /api/jobs
|
|
9
|
+
*/
|
|
10
|
+
export interface CreateJobRequest {
|
|
11
|
+
title: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
category?: JobCategory;
|
|
14
|
+
sortingOrder?: number;
|
|
15
|
+
active: boolean;
|
|
16
|
+
positionFactor?: number;
|
|
17
|
+
guaranteedJobIncome?: number;
|
|
18
|
+
jobFixedIncome?: number;
|
|
19
|
+
fixedShareOfGuaranteedIncome?: number;
|
|
20
|
+
isCommissionAdjusted?: boolean;
|
|
21
|
+
commissionRateAdjustment?: number;
|
|
22
|
+
expressBranchCompensation?: number;
|
|
23
|
+
promotionJobId?: string;
|
|
24
|
+
quarterPromotionRequirements?: JobPromotionStats;
|
|
25
|
+
historicalPromotionRequirements?: JobPromotionStats;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Update Job Request
|
|
29
|
+
*
|
|
30
|
+
* Partial data to update an existing job.
|
|
31
|
+
* All fields optional — only provided fields are updated.
|
|
32
|
+
*
|
|
33
|
+
* @example PATCH /api/jobs/:id
|
|
34
|
+
*/
|
|
35
|
+
export interface UpdateJobRequest {
|
|
36
|
+
title?: string;
|
|
37
|
+
description?: string;
|
|
38
|
+
category?: JobCategory;
|
|
39
|
+
sortingOrder?: number;
|
|
40
|
+
active?: boolean;
|
|
41
|
+
positionFactor?: number;
|
|
42
|
+
guaranteedJobIncome?: number;
|
|
43
|
+
jobFixedIncome?: number;
|
|
44
|
+
fixedShareOfGuaranteedIncome?: number;
|
|
45
|
+
isCommissionAdjusted?: boolean;
|
|
46
|
+
commissionRateAdjustment?: number;
|
|
47
|
+
expressBranchCompensation?: number;
|
|
48
|
+
promotionJobId?: string;
|
|
49
|
+
quarterPromotionRequirements?: JobPromotionStats;
|
|
50
|
+
historicalPromotionRequirements?: JobPromotionStats;
|
|
51
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { JobCategory } from '../../constants/job-category.constants';
|
|
2
|
+
import { JobPromotionStats } from '../../types/job-promotion-stats.types';
|
|
3
|
+
/**
|
|
4
|
+
* Job Response
|
|
5
|
+
*
|
|
6
|
+
* Complete job data returned by the API.
|
|
7
|
+
* Jobs don't have a permission hierarchy (no sensitive data),
|
|
8
|
+
* so a single response type is sufficient.
|
|
9
|
+
*
|
|
10
|
+
* Used for: Job list, job detail view, job form pre-fill.
|
|
11
|
+
*
|
|
12
|
+
* @example GET /api/jobs/:id
|
|
13
|
+
*/
|
|
14
|
+
export interface JobResponse {
|
|
15
|
+
id: string;
|
|
16
|
+
title: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
category?: JobCategory;
|
|
19
|
+
sortingOrder: number;
|
|
20
|
+
active: boolean;
|
|
21
|
+
positionFactor: number;
|
|
22
|
+
guaranteedJobIncome?: number;
|
|
23
|
+
jobFixedIncome?: number;
|
|
24
|
+
fixedShareOfGuaranteedIncome: number;
|
|
25
|
+
isCommissionAdjusted: boolean;
|
|
26
|
+
commissionRateAdjustment: number;
|
|
27
|
+
expressBranchCompensation: number;
|
|
28
|
+
promotionJobId?: string;
|
|
29
|
+
quarterPromotionRequirements?: JobPromotionStats;
|
|
30
|
+
historicalPromotionRequirements?: JobPromotionStats;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
createdBy: string;
|
|
33
|
+
updatedAt: string;
|
|
34
|
+
updatedBy: string;
|
|
35
|
+
}
|
|
@@ -31,6 +31,10 @@ export interface CoveragePeriod {
|
|
|
31
31
|
durationDays: number;
|
|
32
32
|
/** Employment ID — only present for employment periods */
|
|
33
33
|
employmentId?: string;
|
|
34
|
+
/** Job ID — only present for employment periods */
|
|
35
|
+
jobId?: string;
|
|
36
|
+
/** Guaranteed income — only present for employment periods */
|
|
37
|
+
guaranteedIncome?: number;
|
|
34
38
|
}
|
|
35
39
|
/**
|
|
36
40
|
* Coverage summary for a single collaborator.
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -29,3 +29,4 @@ __exportStar(require("./background-job.types"), exports);
|
|
|
29
29
|
__exportStar(require("./payroll-v2.types"), exports);
|
|
30
30
|
__exportStar(require("./cash-reconciliation.types"), exports);
|
|
31
31
|
__exportStar(require("./coverage.types"), exports);
|
|
32
|
+
__exportStar(require("./job-promotion-stats.types"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Job Promotion Stats
|
|
3
|
+
*
|
|
4
|
+
* Performance thresholds required for promotion eligibility.
|
|
5
|
+
* Used in Job entity for both quarterly and historical requirements.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* const requirements: JobPromotionStats = {
|
|
9
|
+
* complexSurgeries: 5,
|
|
10
|
+
* surgeries: 20,
|
|
11
|
+
* surgeryAssistances: 10,
|
|
12
|
+
* consultations: 50,
|
|
13
|
+
* vaccines: 30,
|
|
14
|
+
* totalServices: 115,
|
|
15
|
+
* };
|
|
16
|
+
*/
|
|
17
|
+
export interface JobPromotionStats {
|
|
18
|
+
complexSurgeries: number;
|
|
19
|
+
surgeries: number;
|
|
20
|
+
surgeryAssistances: number;
|
|
21
|
+
consultations: number;
|
|
22
|
+
vaccines: number;
|
|
23
|
+
totalServices: number;
|
|
24
|
+
}
|