sera-ai 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -6,6 +6,7 @@ interface AudioRecorderProps {
6
6
  apiBaseUrl?: string;
7
7
  patientId?: number;
8
8
  patientName?: string;
9
+ patientHistory?: string;
9
10
  onTranscriptionUpdate?: (text: string, sessionId: string) => void;
10
11
  onTranscriptionComplete?: (text: string, classification: ClassificationInfoResponse, sessionId: string) => void;
11
12
  onSuccess?: (data: any) => void;
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ interface AudioRecorderProps {
6
6
  apiBaseUrl?: string;
7
7
  patientId?: number;
8
8
  patientName?: string;
9
+ patientHistory?: string;
9
10
  onTranscriptionUpdate?: (text: string, sessionId: string) => void;
10
11
  onTranscriptionComplete?: (text: string, classification: ClassificationInfoResponse, sessionId: string) => void;
11
12
  onSuccess?: (data: any) => void;
package/dist/index.js CHANGED
@@ -2852,6 +2852,7 @@ var useAudioRecorder = ({
2852
2852
  speciality,
2853
2853
  patientId,
2854
2854
  patientName,
2855
+ patientHistory,
2855
2856
  selectedFormat = "json",
2856
2857
  skipDiarization = true,
2857
2858
  silenceRemoval = true,
@@ -3233,6 +3234,7 @@ var useAudioRecorder = ({
3233
3234
  formData.append("model", selectedModelRef.current);
3234
3235
  formData.append("doctorName", doctorName);
3235
3236
  formData.append("patientName", patientName || "");
3237
+ if (patientHistory) formData.append("patientHistory", patientHistory);
3236
3238
  if (patientId) formData.append("patientId", patientId.toString());
3237
3239
  formData.append("removeSilence", removeSilenceRef.current.toString());
3238
3240
  formData.append("skipDiarization", skipDiarizationRef.current.toString());
@@ -3414,6 +3416,7 @@ var useAudioRecorder = ({
3414
3416
  skipDiarization,
3415
3417
  selectedFormat,
3416
3418
  patientName,
3419
+ patientHistory,
3417
3420
  onTranscriptionComplete,
3418
3421
  speciality,
3419
3422
  removeSilence,
@@ -3472,6 +3475,7 @@ var useAudioRecorder = ({
3472
3475
  await createSession(localSessionId, {
3473
3476
  patientId,
3474
3477
  patientName: patientName || void 0,
3478
+ patientHistory: patientHistory || void 0,
3475
3479
  speciality
3476
3480
  });
3477
3481
  }
@@ -3570,6 +3574,7 @@ var useAudioRecorder = ({
3570
3574
  createSession,
3571
3575
  patientId,
3572
3576
  patientName,
3577
+ patientHistory,
3573
3578
  speciality,
3574
3579
  currentDeviceId
3575
3580
  ]);
@@ -4360,6 +4365,7 @@ var AudioRecorder = ({
4360
4365
  speciality,
4361
4366
  patientId,
4362
4367
  patientName,
4368
+ patientHistory,
4363
4369
  onTranscriptionUpdate,
4364
4370
  onTranscriptionComplete,
4365
4371
  onSuccess,
@@ -4394,6 +4400,7 @@ var AudioRecorder = ({
4394
4400
  speciality,
4395
4401
  patientName,
4396
4402
  patientId,
4403
+ patientHistory,
4397
4404
  onTranscriptionUpdate: (text, sessionId) => {
4398
4405
  console.log("onTranscriptionUpdate called with text:", text, "sessionId:", sessionId);
4399
4406
  if (text.length > 0) {