xero-node icon indicating copy to clipboard operation
xero-node copied to clipboard

AU Payroll: New 'REQUESTED' and 'REJECTED' values are missing from the LeavePeriodStatus type

Open haydn opened this issue 1 year ago • 2 comments

SDK:

  • Version 4.35.0

Describe the bug

Looks like the provided type for the LeavePeriodStatus status is missing the recently added REQUESTED and REJECTED values:

export declare enum LeavePeriodStatus {
    SCHEDULED,
    PROCESSED
}

To Reproduce

The body of the response from xero.payrollAUApi.getLeaveApplicationsV2() is typed as LeaveApplications, which contains LeaveApplication, which have LeavePeriod with a leavePeriodStatus field that's typed as LeavePeriodStatus.

Expected behavior

Should be this:

export declare enum LeavePeriodStatus {
    REQUESTED,
    REJECTED,
    SCHEDULED,
    PROCESSED
}

Screenshots

N/A

Additional context

N/A

haydn avatar Jul 05 '23 05:07 haydn