Bug in Presences API

Hello,

When trying to use the patchUserPresencesPurecloud method of the Presence API in typescript, we get the following error:

When inspecting the object, it appears that not all of the documented methods actually exist on it:
image

This is not a problem for us as we have simply switched to the patchUserPresence method, but I thought I should point out the issue.

Hello, please update to the latest version of the SDK and see if the error persists. The function exists in PresenceApi.js and in the typescript definition. That specific endpoint hasn't always existed though, so it's likely that your dependency is quite out of date; the latest version is 131.0.0.

That is the version we are using

Based on your screenshot, it appears you're using v87.0.0 or earlier. The methods in your screenshot match the methods in that version: https://github.com/MyPureCloud/platform-client-sdk-javascript/blob/b39f7ec9aa0a2a4c914c0832ab37b512ccb52dea/build/src/purecloud-platform-client-v2/api/PresenceApi.js. patchUserPresencesPurecloud was first added in v88.0.0.

Our package.json contains "purecloud-platform-client-v2": "^131.0.0"

I just entirely deleted the node_modules folder and redid the npm install and am still seeing the issue. The method exists in the typescript definition as I can use it in the code, but when I go to execute on the browser, I get the not a function error.

It sounds like there's likely some issue with your compilation or deployment process that's caching an old version somewhere. I have confirmed that the package served by npm for v131.0.0 does contain the function in question.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.