Better documentation for the getEmployees API

Ouverte
#576 1 commentaire 1 réaction 1 personne assignée Voir sur GitHub

@Eteroa123 y travaille déjà.

Depuis le 30/11/2022.

Évaluation

Cette issue n'a pas encore été évaluée.

Description

SDK you're using (please complete the following information):

  • Version 4.18.0

Is your feature request related to a problem? Please describe.

The AU payroll getEmployees() method (and presumably the underlying /Employees API endpoint) does not return all the nested fields. Things like taxDeclaration and homeAddress are undefined in the response. This is not documented clearly.

Describe the solution you'd like

A stricter type for the getEmployees() return value, an explanation in the JSDoc summary that the nested details won't be included and/or an explanation in the API docs that all the employee details won't be returned.

Describe alternatives you've considered

N/A

Additional context

A bit of a side note: The fact that the list API doesn't return all the employees details is a pretty frustrating design. If you want to get all the details for all employees in an organisation (e.g. when you're importing them all into another system) you have to make a separate requests for each and every employee. And because of the 60 requests per minute rate limit, that means it's going to take you about as many seconds as you have employees to do the import. More than 2 minutes to fully load just 120 employees!

Langage dominant
TypeScript
Étoiles
264
Forks
177
Merge moyen
10 h 5 min
PR mergées (30 j)
5

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de XeroAPI/xero-node

Toutes les issues de XeroAPI/xero-node

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.