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:
Podili Varshitha
2024-12-23 12:02:18 +05:30
committed by GitHub
9 changed files with 33 additions and 7 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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",

View File

@@ -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

View File

@@ -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)}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@universal-call-sdk/common",
"version": "1.0.39",
"version": "1.0.42",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -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

View File

@@ -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();
}

View File

@@ -1,6 +1,6 @@
{
"name": "@universal-call-sdk/core",
"version": "1.0.44",
"version": "1.0.47",
"type": "module",
"scripts": {
"dev": "vite",