NTP-24367O | requestId uuid fix

This commit is contained in:
Mayank Singh
2025-01-02 17:36:08 +05:30
parent 78680648a0
commit 699f5f2f24
2 changed files with 9 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
import getResponseWithoutCors from "@universal-call-sdk/common/lib/utils/getResponseWithoutCors.ts";
import {CallTransferData, RequestKeys} from "./types";
import RequestType from "@universal-call-sdk/common/lib/types/RequestType.ts";
import {v4 as uuid} from 'uuid';
export const loginInAmeyo = (userId: string, password: string) => {
@@ -20,7 +21,7 @@ export const loginInAmeyo = (userId: string, password: string) => {
forceLogin: true,
properties: null,
captchaAuthenticationInputBean: null,
requestId: null
requestId: uuid(),
}
});
};
@@ -169,10 +170,10 @@ export const ameyoDisposeCall = (sessionId: string, campaignId: string, crtObjec
campaignId,
crtObjectId,
userCRTObjectId,
"dispositionCodeId": 21,
"requestId": "d0045ff7-8419-0860-8621-2c67ad4eb02f",
"dispositionParams": {},
"notes": ""
dispositionCodeId: 21,
requestId: uuid(),
dispositionParams: {},
notes: ""
},
headers: {
sessionId
@@ -219,7 +220,7 @@ export const transferCallToAgent = (data: CallTransferData, sessionId: string, c
targetCampaignId: data?.campaignId,
targetCRTObjectId: data?.targetCRTObjectId,
transferredCRTObjectIds: [crtObjectId],
"requestId": "48ae79ab-faad-21f5-b694-ad3d9e4e0690"
requestId: uuid()
},
headers: {
sessionId

View File

@@ -9,7 +9,8 @@
"preview": "vite preview"
},
"dependencies": {
"@universal-call-sdk/common": "^1.0.43"
"@universal-call-sdk/common": "^1.0.43",
"uuid": "^11.0.3"
},
"devDependencies": {
"@eslint/js": "^9.11.1",