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

Đang mở
#643 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
nodejs, typescript
Lĩnh vực
api

Hướng nghiên cứu

Start with the LeavePeriodStatus enum in the generated payrollAU model files under the xero-node source, and check whether the repository header says these files come from XeroAPI/Xero-OpenAPI. If they do, the fix probably belongs in the spec, so look for the upstream leave period status enum before editing generated code. Done means the enum includes REQUESTED and REJECTED and the project still compiles.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
264
Fork
177
Merge trung bình
10 giờ 5 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của XeroAPI/xero-node

Tất cả issue của XeroAPI/xero-node

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.