intercom-node icon indicating copy to clipboard operation
intercom-node copied to clipboard

`listAttachedTags` Method has wrong return type

Open skamarnath-dh opened this issue 1 year ago • 1 comments

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 [email protected]

Version info

  • intercom-node version: 5.0.0
  • Node version: 20.11.1

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

skamarnath-dh avatar Jun 04 '24 13:06 skamarnath-dh

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 [email protected]

Eclairemoy avatar Jul 19 '24 11:07 Eclairemoy

@skamarnath-dh Here's a link to the updated interface in v6 of the SDK https://github.com/intercom/intercom-node/blob/master/src/api/types/TagList.ts. We'll close the issue for now, but let us know if the problem still persists.

fern-support avatar Dec 26 '24 15:12 fern-support