diff --git a/packages/adapter-ameyo/CHANGELOG.md b/packages/adapter-ameyo/CHANGELOG.md index 43a37c7..7bce9aa 100644 --- a/packages/adapter-ameyo/CHANGELOG.md +++ b/packages/adapter-ameyo/CHANGELOG.md @@ -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 diff --git a/packages/adapter-ameyo/lib/main.ts b/packages/adapter-ameyo/lib/main.ts index 3f06190..99ce3a0 100644 --- a/packages/adapter-ameyo/lib/main.ts +++ b/packages/adapter-ameyo/lib/main.ts @@ -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; diff --git a/packages/adapter-ameyo/package.json b/packages/adapter-ameyo/package.json index 45007be..0c3b0d6 100644 --- a/packages/adapter-ameyo/package.json +++ b/packages/adapter-ameyo/package.json @@ -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", diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index 2cfd284..f546f31 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -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 diff --git a/packages/common/lib/Interfaces/IAdapter.ts b/packages/common/lib/Interfaces/IAdapter.ts index ca5dec9..f941592 100644 --- a/packages/common/lib/Interfaces/IAdapter.ts +++ b/packages/common/lib/Interfaces/IAdapter.ts @@ -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)} } diff --git a/packages/common/package.json b/packages/common/package.json index ce0c8c0..a48f646 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@universal-call-sdk/common", - "version": "1.0.39", + "version": "1.0.42", "type": "module", "scripts": { "dev": "vite", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 3ad5c92..fdfea52 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -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 diff --git a/packages/core/lib/useCallSdk.ts b/packages/core/lib/useCallSdk.ts index 4f4f777..ac6ec3e 100644 --- a/packages/core/lib/useCallSdk.ts +++ b/packages/core/lib/useCallSdk.ts @@ -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(); } diff --git a/packages/core/package.json b/packages/core/package.json index 82d2b8a..a48dbfb 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@universal-call-sdk/core", - "version": "1.0.44", + "version": "1.0.47", "type": "module", "scripts": { "dev": "vite",