Release v0.14.0
Release Notes - PIOPIY Client JS SDK v0.14.0
We are excited to announce the release of v0.14.0 of the PIOPIY Client JS SDK. This version introduces important new features for team call management and improves the robustness of the API's core identifiers.
🚀 What's New
Team Transfer Functionality
We've added a new teamTransfer(to, callback) method to the main PIOPIY class. This allows agents to seamlessly transfer active calls to specific teams or groups within the TeleCMI platform.
piopiy.teamTransfer("Support_Team", (response) => {
if (response.error) {
console.error("Transfer failed:", response.error);
} else {
console.log("Transfer initiated successfully");
}
});🛠️ Enhancements & Bug Fixes
Call ID Normalization
- Strict Return Types:
getCallId()andgetCallID()have been updated to strictly returnfalse(instead ofundefined) when there is no active call or the SDK is not yet initialized. This ensures more predictable logic in your application. - Improved Error Feedback: Both
transfer()andteamTransfer()now provide immediate feedback via the callback if they are invoked without an active call session, returning{ error: "No active call found" }.
📦 Upgrade Guide
To upgrade to the latest version, run:
npm install piopiyjs@latestFor full details on the API and configuration, refer to the README.md or visit our Documentation Portal.