The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { type GraphCallTranscript } from 'src/features/transcripts/logic-functions/types/graph-call-transcript.type';
import { fetchGraphJson } from 'src/features/transcripts/logic-functions/utils/fetch-graph-json';
export const getMeetingTranscript = ({
accessToken,
meetingId,
transcriptId,
}: {
accessToken: string;
meetingId: string;
transcriptId: string;
}): Promise<GraphCallTranscript> =>
fetchGraphJson<GraphCallTranscript>({
accessToken,
url: `me/onlineMeetings/${encodeURIComponent(meetingId)}/transcripts/${encodeURIComponent(transcriptId)}`,
});