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

Abierto
#643 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
nodejs, typescript
Área
api

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
264
Forks
177
Merge medio
10 h 5 min
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de XeroAPI/xero-node

Todos los issues de XeroAPI/xero-node

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.