hvp-shared 12.1.0 → 13.1.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.
@@ -15,7 +15,6 @@ export interface CreateCollaboratorRequest {
15
15
  role: WebAppRole;
16
16
  isActive: boolean;
17
17
  isDisplayedWeb: boolean;
18
- isRegistered: boolean;
19
18
  second_last_name?: string;
20
19
  email?: string;
21
20
  phone?: string;
@@ -42,7 +41,6 @@ export interface CreateCollaboratorRequest {
42
41
  bankAccount?: string;
43
42
  baseSalary?: number;
44
43
  dailySalary?: number;
45
- accessCode?: string;
46
44
  password?: string;
47
45
  qvetAliases?: string[];
48
46
  }
@@ -65,7 +63,6 @@ export interface UpdateCollaboratorRequest {
65
63
  role?: WebAppRole;
66
64
  isActive?: boolean;
67
65
  isDisplayedWeb?: boolean;
68
- isRegistered?: boolean;
69
66
  job?: string;
70
67
  branch?: string;
71
68
  startDate?: string;
@@ -87,24 +84,9 @@ export interface UpdateCollaboratorRequest {
87
84
  bankAccount?: string;
88
85
  baseSalary?: number;
89
86
  dailySalary?: number;
90
- accessCode?: string;
91
87
  password?: string;
92
88
  qvetAliases?: string[];
93
89
  }
94
- /**
95
- * Register Collaborator Request
96
- *
97
- * Public registration flow for collaborators.
98
- * Collaborator provides col_code, accessCode, email and password to register.
99
- *
100
- * @example PATCH /api/collaborators/register
101
- */
102
- export interface RegisterCollaboratorRequest {
103
- col_code: string;
104
- accessCode: string;
105
- email: string;
106
- password: string;
107
- }
108
90
  /**
109
91
  * Update Many Collaborators Request
110
92
  *
@@ -129,6 +111,5 @@ export interface CollaboratorQueryFilters {
129
111
  isActive?: boolean;
130
112
  role?: WebAppRole;
131
113
  branch?: string;
132
- isRegistered?: boolean;
133
114
  isDisplayedWeb?: boolean;
134
115
  }
@@ -32,7 +32,6 @@ export interface CollaboratorViewResponse extends PublicCollaboratorResponse {
32
32
  phone?: string;
33
33
  birthDate?: string;
34
34
  isDisplayedWeb: boolean;
35
- isRegistered: boolean;
36
35
  job?: string;
37
36
  branch?: string;
38
37
  startDate?: string;
@@ -56,7 +55,6 @@ export interface CollaboratorViewResponse extends PublicCollaboratorResponse {
56
55
  */
57
56
  export interface AdminCollaboratorResponse extends CollaboratorViewResponse {
58
57
  second_last_name?: string;
59
- registeredDate?: string;
60
58
  rfcCode?: string;
61
59
  curp?: string;
62
60
  imssNumber?: string;
@@ -70,7 +68,6 @@ export interface AdminCollaboratorResponse extends CollaboratorViewResponse {
70
68
  bankAccount?: string;
71
69
  baseSalary?: number;
72
70
  dailySalary?: number;
73
- accessCode?: string;
74
71
  qvetAliases: string[];
75
72
  createdBy?: string;
76
73
  updatedBy?: string;
@@ -215,6 +215,13 @@ export interface ListDocumentsQuery {
215
215
  search?: string;
216
216
  requiredForOnboarding?: boolean;
217
217
  requiresAcknowledgment?: boolean;
218
+ /**
219
+ * If true, the response is restricted to documents that the current user
220
+ * (1) can see per audience, (2) require an acknowledgment, and (3) the
221
+ * user has NOT yet acknowledged for the doc's current version. Combinable
222
+ * with the other filters. Implicit user resolution server-side.
223
+ */
224
+ pendingForCurrentUser?: boolean;
218
225
  /**
219
226
  * If true, the response includes `withdrawn` documents. Default: false
220
227
  * (server hides them unless explicitly requested). Ignored when `status`
@@ -71,11 +71,23 @@ export interface PayrollCalculationContext {
71
71
  export interface PayrollEmployeeSnapshot {
72
72
  readonly fullName: string;
73
73
  readonly collaboratorCode: string;
74
+ /**
75
+ * @deprecated Legacy avatar URL captured in older payroll snapshots.
76
+ * No longer populated for new payrolls — UI should derive the avatar from
77
+ * the live Collaborator's `images[]` array. Kept on the type for backward
78
+ * compatibility with historical payroll documents.
79
+ */
74
80
  readonly imgUrl?: string;
75
81
  readonly curp?: string;
76
82
  readonly rfc?: string;
77
83
  readonly socialSecurityNumber?: string;
78
84
  readonly jobTitle: string;
85
+ /**
86
+ * @deprecated Captured at snapshot time when paymentType was a Collaborator
87
+ * field. New payrolls derive paymentType from the active Employment;
88
+ * the snapshot field remains for backward compatibility with historical
89
+ * documents.
90
+ */
79
91
  readonly paymentType: string;
80
92
  readonly contributionBaseSalary: number;
81
93
  readonly fiscalRegime?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvp-shared",
3
- "version": "12.1.0",
3
+ "version": "13.1.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",