I found the callId is optional.
But in types.d.ts , it is required.
export class ParticipantResult {
/**
* Create ParticipantResult
* @param {object} param
* @param {boolean} param.initialCallHasEnded
* @param {CallInfo} param.callInfo
* @param {string} param.phoneNumber
* @param {string} param.callId
*/
constructor({ initialCallHasEnded, callInfo, phoneNumber, callId }: {
initialCallHasEnded: boolean;
callInfo: CallInfo;
phoneNumber: string;
callId: string;
});
initialCallHasEnded: boolean;
callInfo: CallInfo;
phoneNumber: string;
callId: string;
}
From https://developer.salesforce.com/docs/atlas.en-us.voice_pt_developer_guide.meta/voice_pt_developer_guide/voice_pt_connector_objects_participantresult.htm
I found the callId is optional.
But in types.d.ts , it is required.