hvp-shared 6.58.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.
@@ -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
  }
@@ -14,3 +14,4 @@ export * from './payroll-v2.types';
14
14
  export * from './cash-reconciliation.types';
15
15
  export * from './coverage.types';
16
16
  export * from './job-promotion-stats.types';
17
+ export * from './job-snapshot.types';
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvp-shared",
3
- "version": "6.58.0",
3
+ "version": "6.59.0",
4
4
  "description": "Shared types and utilities for HVP backend and frontend",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",