@bluecopa/core 0.1.65 → 0.1.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function agentGetCallFromHold(token: string, sessionSid: string, holdType?: string): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function agentPutCallOnHold(token: string, sessionSid: string, holdType?: string): Promise<any>;
|
package/dist/api/tcn/index.d.ts
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -11840,12 +11840,44 @@ async function getCallData(token, callSid) {
|
|
|
11840
11840
|
throw { message, status };
|
|
11841
11841
|
}
|
|
11842
11842
|
}
|
|
11843
|
+
async function agentPutCallOnHold(token, sessionSid, holdType = "SIMPLE") {
|
|
11844
|
+
var _a, _b, _c;
|
|
11845
|
+
try {
|
|
11846
|
+
const response = await apiClient.post("/tcn/agent-put-call-on-hold", {
|
|
11847
|
+
token,
|
|
11848
|
+
sessionSid,
|
|
11849
|
+
holdType
|
|
11850
|
+
});
|
|
11851
|
+
return response.data;
|
|
11852
|
+
} catch (error) {
|
|
11853
|
+
const message = ((_b = (_a = error.response) == null ? void 0 : _a.data) == null ? void 0 : _b.message) || error.message || "Failed to put call on hold";
|
|
11854
|
+
const status = ((_c = error.response) == null ? void 0 : _c.status) || 500;
|
|
11855
|
+
throw { message, status };
|
|
11856
|
+
}
|
|
11857
|
+
}
|
|
11858
|
+
async function agentGetCallFromHold(token, sessionSid, holdType = "SIMPLE") {
|
|
11859
|
+
var _a, _b, _c;
|
|
11860
|
+
try {
|
|
11861
|
+
const response = await apiClient.post("/tcn/agent-get-call-from-hold", {
|
|
11862
|
+
token,
|
|
11863
|
+
sessionSid,
|
|
11864
|
+
holdType
|
|
11865
|
+
});
|
|
11866
|
+
return response.data;
|
|
11867
|
+
} catch (error) {
|
|
11868
|
+
const message = ((_b = (_a = error.response) == null ? void 0 : _a.data) == null ? void 0 : _b.message) || error.message || "Failed to get call from hold";
|
|
11869
|
+
const status = ((_c = error.response) == null ? void 0 : _c.status) || 500;
|
|
11870
|
+
throw { message, status };
|
|
11871
|
+
}
|
|
11872
|
+
}
|
|
11843
11873
|
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11844
11874
|
__proto__: null,
|
|
11845
11875
|
agentDisconnect,
|
|
11876
|
+
agentGetCallFromHold,
|
|
11846
11877
|
agentGetConnectedParty,
|
|
11847
11878
|
agentGetStatus,
|
|
11848
11879
|
agentPause,
|
|
11880
|
+
agentPutCallOnHold,
|
|
11849
11881
|
agentSetReady,
|
|
11850
11882
|
createSession,
|
|
11851
11883
|
dialManualPrepare,
|