@markwharton/eh-payroll 2.6.1 → 2.7.1
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/index.d.ts +1 -1
- package/dist/types.d.ts +8 -5
- package/dist/types.js +4 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
22
|
export { EHClient } from './client.js';
|
|
23
|
-
export type { EHConfig, EHCacheConfig, EHRetryConfig, EHLeaveRequest, EHLeaveRequestOptions, EHEmployeeLeaveRequestOptions, EHLeaveRequestStatus, EHEmployee, EHEmployeeOptions, EHStandardHours, EHLocation, EHEmployeeGroup, EHRosterShift, EHRosterShiftOptions, EHAttendanceStatus, EHKiosk, EHKioskEmployee, EHKioskStaffOptions, } from './types.js';
|
|
23
|
+
export type { EHConfig, EHCacheConfig, EHRetryConfig, EHLeaveRequest, EHEmployeeLeaveRequest, EHLeaveRequestOptions, EHEmployeeLeaveRequestOptions, EHLeaveRequestStatus, EHEmployee, EHEmployeeOptions, EHStandardHours, EHLocation, EHEmployeeGroup, EHRosterShift, EHRosterShiftOptions, EHAttendanceStatus, EHKiosk, EHKioskEmployee, EHKioskStaffOptions, } from './types.js';
|
|
24
24
|
export { AU_EMPLOYEE_FIELDS, LEAVE_REQUEST_FIELDS, LOCATION_FIELDS, EMPLOYEE_GROUP_FIELDS, ROSTER_SHIFT_FIELDS, KIOSK_FIELDS, KIOSK_EMPLOYEE_FIELDS, ENTITIES, } from './types.js';
|
|
25
25
|
export type { AccessTier } from './types.js';
|
|
26
26
|
export { METHOD_TIERS } from './types.js';
|
package/dist/types.d.ts
CHANGED
|
@@ -204,6 +204,9 @@ export interface EHLeaveRequest {
|
|
|
204
204
|
/** Status: Approved, Pending, Rejected, Cancelled */
|
|
205
205
|
status: string;
|
|
206
206
|
}
|
|
207
|
+
/** Employee-scoped leave request (same shape, different API operation). */
|
|
208
|
+
export interface EHEmployeeLeaveRequest extends EHLeaveRequest {
|
|
209
|
+
}
|
|
207
210
|
/** Leave request status values */
|
|
208
211
|
export type EHLeaveRequestStatus = 'Approved' | 'Pending' | 'Rejected' | 'Cancelled';
|
|
209
212
|
/**
|
|
@@ -417,11 +420,11 @@ export declare const AU_EMPLOYEE_FIELDS: {
|
|
|
417
420
|
readonly jobTitle: true;
|
|
418
421
|
readonly employmentAgreement: false;
|
|
419
422
|
readonly employmentAgreementId: false;
|
|
420
|
-
readonly paySchedule:
|
|
423
|
+
readonly paySchedule: true;
|
|
421
424
|
readonly payRateTemplate: false;
|
|
422
|
-
readonly rate:
|
|
423
|
-
readonly rateUnit:
|
|
424
|
-
readonly hoursPerWeek:
|
|
425
|
+
readonly rate: true;
|
|
426
|
+
readonly rateUnit: true;
|
|
427
|
+
readonly hoursPerWeek: true;
|
|
425
428
|
readonly hoursPerDay: false;
|
|
426
429
|
readonly primaryPayCategory: false;
|
|
427
430
|
readonly payConditionRuleSet: false;
|
|
@@ -429,7 +432,7 @@ export declare const AU_EMPLOYEE_FIELDS: {
|
|
|
429
432
|
readonly automaticallyPayEmployee: false;
|
|
430
433
|
readonly primaryLocation: true;
|
|
431
434
|
readonly locations: false;
|
|
432
|
-
readonly tags:
|
|
435
|
+
readonly tags: true;
|
|
433
436
|
readonly workTypes: false;
|
|
434
437
|
readonly reportingDimensionValues: false;
|
|
435
438
|
readonly leaveAccrualStartDateType: false;
|
package/dist/types.js
CHANGED
|
@@ -50,10 +50,10 @@ export const AU_EMPLOYEE_FIELDS = {
|
|
|
50
50
|
// Employment
|
|
51
51
|
employmentType: true, jobTitle: true, employmentAgreement: false, employmentAgreementId: false,
|
|
52
52
|
// Pay
|
|
53
|
-
paySchedule:
|
|
53
|
+
paySchedule: true, payRateTemplate: false, rate: true, rateUnit: true, hoursPerWeek: true, hoursPerDay: false,
|
|
54
54
|
primaryPayCategory: false, payConditionRuleSet: false, overrideTemplateRate: false, automaticallyPayEmployee: false,
|
|
55
55
|
// Location/org
|
|
56
|
-
primaryLocation: true, locations: false, tags:
|
|
56
|
+
primaryLocation: true, locations: false, tags: true, workTypes: false, reportingDimensionValues: false,
|
|
57
57
|
// Leave
|
|
58
58
|
leaveAccrualStartDateType: false, leaveTemplate: false, leaveYearStart: false,
|
|
59
59
|
// Flags
|
|
@@ -111,7 +111,7 @@ export const AU_EMPLOYEE_FIELDS = {
|
|
|
111
111
|
};
|
|
112
112
|
/** Entity registry — maps interface names to field specs and API path segments. */
|
|
113
113
|
export const ENTITIES = {
|
|
114
|
-
EHAuEmployee: { fields: AU_EMPLOYEE_FIELDS, path: 'employee/unstructured', apiRef: 'employee/au-employee--get-employees' },
|
|
114
|
+
EHAuEmployee: { fields: AU_EMPLOYEE_FIELDS, path: 'employee/unstructured', apiRef: 'employee/au-employee--get-employees', apiRefById: 'employee/au-employee--get-employee-by-id' },
|
|
115
115
|
EHLeaveRequest: { fields: LEAVE_REQUEST_FIELDS, path: 'leaverequest', apiRef: 'leave-requests/au-business-hours-leave-request--list-leave-requests' },
|
|
116
116
|
EHEmployeeLeaveRequest: { fields: LEAVE_REQUEST_FIELDS, path: 'employee/{employeeId}/leaverequest', apiRef: 'leave-requests/au-hours-leave-request--get-leave-requests' },
|
|
117
117
|
EHLocation: { fields: LOCATION_FIELDS, path: 'location', apiRef: 'location/au-location--get-locations' },
|
|
@@ -119,6 +119,7 @@ export const ENTITIES = {
|
|
|
119
119
|
EHKiosk: { fields: KIOSK_FIELDS, path: 'kiosk', apiRef: 'time-and-attendance/kiosk--get-all' },
|
|
120
120
|
EHKioskEmployee: { fields: KIOSK_EMPLOYEE_FIELDS, path: 'kiosk/{kioskId}/staff', apiRef: 'time-and-attendance/generic-time-and-attendance--get-staff' },
|
|
121
121
|
EHEmployeeGroup: { fields: EMPLOYEE_GROUP_FIELDS, path: 'employeegroup', apiRef: 'employee-groups/au-employee-group--get-groups' },
|
|
122
|
+
EHStandardHours: { path: 'employee/{employeeId}/standardhours', apiRef: 'employee/au-employee-standard-hours--get' },
|
|
122
123
|
};
|
|
123
124
|
/**
|
|
124
125
|
* Access tier for each data method.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markwharton/eh-payroll",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "Employment Hero Payroll API client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"clean": "rm -rf dist"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@markwharton/api-core": "^1.
|
|
19
|
+
"@markwharton/api-core": "^1.6.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/node": "^20.10.0",
|