intercom / intercom-node

Node.js bindings for the Intercom API
https://developers.intercom.com
Other
362 stars 116 forks source link

`listAttachedTags` Method has wrong return type #407

Open skamarnath-dh opened 1 month ago

skamarnath-dh commented 1 month ago

Please use the following template to submit your issue. Following this template will allow us to quickly investigate and help you with your issue. Please be aware that issues which do not conform to this template may be closed.

For feature requests please contact us at team@intercom.io

Version info

Expected behavior

Data type returned from the method client.contacts.listAttachedTags should be [API DOC]

{
  type: "list"
  data: TagObject[]
}

Actual behavior

It instead is

{
  type: "list"
  tags: TagObject[]
}

Steps to reproduce

  1. instantiate a intercome-client
  2. call method contacts.listAttachedTags with passing a valid contact who has some tags
  3. the result will have tags list in data not in tags

Logs

Eclairemoy commented 2 days ago

Hey @skamarnath-dh -

Thanks for submitting this issue. We're running a pilot with a new TypeScript SDK. We'd love for you to try it out and let us know what you think. Here are the details:

Please feel free to share any feedback that you have with us here or send me a message at liz.moy@intercom.io