NTP-24367O | requestId uuid fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user