NTP-21033 | hotfix (#30)

* NTP-21033 | hotfix

* Publish

 - @universal-call-sdk/adapter-ameyo@1.0.99
 - @universal-call-sdk/common@1.0.50
 - @universal-call-sdk/core@1.0.54

* NTP-21033 | hotfix

* NTP-21033 | erorr logger

* NTP-21033 | fix beep sound

* Publish

 - @universal-call-sdk/adapter-ameyo@1.0.100
 - @universal-call-sdk/common@1.0.51
 - @universal-call-sdk/core@1.0.55

---------

Co-authored-by: varnit goyal <github.cicd@navi.com>
This commit is contained in:
Varnit Goyal
2025-01-06 14:20:17 +05:30
committed by GitHub
parent 711dc6910f
commit f11aa0efb0
8 changed files with 57 additions and 9 deletions

View File

@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## 1.0.100 (2025-01-06)
**Note:** Version bump only for package @universal-call-sdk/adapter-ameyo
## 1.0.99 (2025-01-06)
**Note:** Version bump only for package @universal-call-sdk/adapter-ameyo
## 1.0.98 (2025-01-03)
**Note:** Version bump only for package @universal-call-sdk/adapter-ameyo

View File

@@ -122,7 +122,7 @@ function extractUserCallModelUpdatedPush(rawResponse) {
window.postMessage({
type: MessagingType.ON_AMEYO_AGENT_ON_BREAK,
data: {
breakReason: 'ameyo is errorounous',
reason: payload,
}
});
}
@@ -149,7 +149,7 @@ const sendCallStatusMessage = (res) => {
* Since callId is essential and cannot be null,
* this retry mechanism ensures we wait until it becomes available. */
const data = getCustomerInfo();
if (data?.callId) {
if (data?.callId || data?.phoneNumber) {
const message = {
type: MessagingType.ON_AMEYO_CALL_ACCEPTED,
data,

View File

@@ -150,9 +150,8 @@ class AmeyoAdapter implements IAdapter {
}
if(payload?.data?.err) {
this.clickStreamProcessor?.sendClickStreamEvent({type: 'api-error', data: payload?.data?.err})
this.metricProcessor?.pushCounterMetric({metricName: `ameyo-api-err-count`, flow: 'api-error-count', subFlow: payload?.data?.requestKey})
this.clickStreamProcessor?.sendClickStreamEvent({type: 'api-error', err: payload?.data?.err})
this.clickStreamProcessor?.sendClickStreamEvent({type: 'api-error', err: payload});
}
if (payload?.data?.requestKey === RequestKeys.AMEYO_LOGIN) {
@@ -240,7 +239,8 @@ class AmeyoAdapter implements IAdapter {
this.currentCallState = CALL_STATES.CALL_DISCONNECTED;
ameyoHangupUser(this.sessionId, this.currentCallMetadata?.userCRTObjectId);
this.currentCallMetadata = {...this.currentCallMetadata, ...data?.data}
(this._getElementFromDomById("beep") as HTMLAudioElement)?.play();
const audioElement =this._getElementFromDomById("beep") as HTMLAudioElement
audioElement?.play();
}
if (data?.type === MessagingType.ON_AMEYO_AGENT_ON_BREAK) {

View File

@@ -1,6 +1,6 @@
{
"name": "@universal-call-sdk/adapter-ameyo",
"version": "1.0.98",
"version": "1.0.100",
"type": "module",
"scripts": {
"dev": "vite",
@@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@universal-call-sdk/common": "^1.0.49",
"@universal-call-sdk/common": "^1.0.51",
"uuid": "^11.0.3"
},
"devDependencies": {

View File

@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## 1.0.51 (2025-01-06)
**Note:** Version bump only for package @universal-call-sdk/common
## 1.0.50 (2025-01-06)
**Note:** Version bump only for package @universal-call-sdk/common
## 1.0.49 (2025-01-03)
**Note:** Version bump only for package @universal-call-sdk/common

View File

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

View File

@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## 1.0.55 (2025-01-06)
**Note:** Version bump only for package @universal-call-sdk/core
## 1.0.54 (2025-01-06)
**Note:** Version bump only for package @universal-call-sdk/core
## 1.0.53 (2025-01-03)
**Note:** Version bump only for package @universal-call-sdk/core

View File

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