merge-api / merge-node-client

The Node SDK for accessing various Merge Unified APIs
Other
10 stars 6 forks source link

More comprehensive types for postMetaRetrieve methods #34

Open minirobotdan opened 6 months ago

minirobotdan commented 6 months ago

Hi Merge team, i'm working with the NodeJS API to prototype some functionality which would allow our platform to make ATS /applications POST requests based on the assembled metadata fetched from your API. There's a few tricky steps here as I have to find out whether I can POST at all depending on the capability of the linked account (or fallback on a link instead of a form from the user CTA), and then work out what fields are required from the user to assemble any prerequisite associated records such as candidates and attachments.

Currently the MetaResponse type is just Record<string, unknown> which makes wrangling the sub-structures quite a painful exercise. At least typing out the model property would be a start, although having a variable type for the possible structures under model.properties would be much more useful.

Many thanks!