Merge pull request #23 from navi-commons/NTP-19782/call-state-return-type-fix
Ntp 19782/call state return type fix
This commit is contained in:
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## 1.0.91 (2024-12-23)
|
||||
|
||||
**Note:** Version bump only for package @universal-call-sdk/adapter-ameyo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 1.0.86 (2024-12-18)
|
||||
|
||||
**Note:** Version bump only for package @universal-call-sdk/adapter-ameyo
|
||||
|
||||
@@ -45,7 +45,7 @@ class AmeyoAdapter implements IAdapter {
|
||||
onAgentsForCallTransfer: (data: GenericObject) => void
|
||||
onCallTransferStatus: (data: GenericObject) => void;
|
||||
};
|
||||
private currentCallState: string;
|
||||
private currentCallState: CALL_STATES;
|
||||
private eventListenerUrl: string;
|
||||
private baseUrl: string;
|
||||
private sessionId: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@universal-call-sdk/adapter-ameyo",
|
||||
"version": "1.0.86",
|
||||
"version": "1.0.91",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@@ -9,7 +9,7 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@universal-call-sdk/common": "^1.0.39"
|
||||
"@universal-call-sdk/common": "^1.0.42"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.11.1",
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## 1.0.42 (2024-12-23)
|
||||
|
||||
**Note:** Version bump only for package @universal-call-sdk/common
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 1.0.39 (2024-12-18)
|
||||
|
||||
**Note:** Version bump only for package @universal-call-sdk/common
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import GenericObject from "../types/GenericObject.ts";
|
||||
import MetricsProcessor from "../utils/metricsProcessor.ts";
|
||||
import ClickStreamProcessor from "../utils/clickStreamProcessor.ts";
|
||||
import {CALL_STATES} from "@universal-call-sdk/adapter-ameyo/lib/types.ts";
|
||||
|
||||
class IAdapter {
|
||||
registerOnCallIncoming(callback: (callState: GenericObject)=>void) {callback({})}
|
||||
@@ -27,7 +28,7 @@ class IAdapter {
|
||||
|
||||
getAgentAvailability(): boolean {return false}
|
||||
|
||||
getLatestCallState() {return {}}
|
||||
getLatestCallState(): CALL_STATES {return CALL_STATES.IDLE}
|
||||
getAvailableAgentsForCallTransfer() {}
|
||||
transferCallToAgent(data: GenericObject) {console.log("transfer call", data)}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@universal-call-sdk/common",
|
||||
"version": "1.0.39",
|
||||
"version": "1.0.42",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## 1.0.47 (2024-12-23)
|
||||
|
||||
**Note:** Version bump only for package @universal-call-sdk/core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 1.0.44 (2024-12-18)
|
||||
|
||||
**Note:** Version bump only for package @universal-call-sdk/core
|
||||
|
||||
@@ -4,6 +4,7 @@ import IAdapter from "@universal-call-sdk/common/lib/Interfaces/IAdapter.ts";
|
||||
import MetricsProcessor from "@universal-call-sdk/common/lib/utils/metricsProcessor.ts";
|
||||
import ClickStreamProcessor from "@universal-call-sdk/common/lib/utils/clickStreamProcessor.ts";
|
||||
import noop from "@universal-call-sdk/common/lib/utils/noop.ts";
|
||||
import {CALL_STATES} from "@universal-call-sdk/adapter-ameyo/lib/types.ts";
|
||||
|
||||
|
||||
enum actionTypes {
|
||||
@@ -178,7 +179,7 @@ function UseCallSdk({AdapterClass, adapterOptions, metricsConfig, clickStreamCon
|
||||
return adapter.getAgentAvailability();
|
||||
}
|
||||
|
||||
function getLatestCallState(): GenericObject {
|
||||
function getLatestCallState(): CALL_STATES {
|
||||
return adapter.getLatestCallState();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@universal-call-sdk/core",
|
||||
"version": "1.0.44",
|
||||
"version": "1.0.47",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
Reference in New Issue
Block a user