@tellescope/types-models 1.244.3 → 1.245.0

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/src/index.ts CHANGED
@@ -225,6 +225,9 @@ export type OrganizationSettings = {
225
225
  recordCallAudioPlayback?: string,
226
226
  dontRecordCallsToPhone?: string[],
227
227
  transcribeCalls?: boolean,
228
+ summarizeCallRecordings?: boolean,
229
+ summarizeCallRecordingsPrompt?: string,
230
+ summarizeCallRecordingsMaxTokens?: number,
228
231
  transcribeCallInboundPlayback?: string, // should be 'recordCall' but too late
229
232
  showDeleteCallRecordingOnTimeline?: boolean,
230
233
  defaultPhoneNumber?: string,
@@ -305,6 +308,7 @@ export type OrganizationSettings = {
305
308
  },
306
309
  integrations?: {
307
310
  vitalLabOrderPhysicianOptional?: boolean,
311
+ syncLabResultObservations?: boolean,
308
312
  athenaAppointmentSyncJITSeconds?: number,
309
313
  },
310
314
  interface?: {
@@ -508,6 +512,7 @@ export interface Organization extends Organization_readonly, Organization_requir
508
512
  enduserProfileWebhooks?: BasicWebhook[],
509
513
  showCommunity?: boolean,
510
514
  phoneLabels?: { number: string, label: string }[];
515
+ faxDestinations?: { label: string, number: string }[],
511
516
  mfaxAccountId?: string,
512
517
  athenaFieldsSync?: AthenaFieldSync[]
513
518
  athenaSubscriptions?: AthenaSubscription[],
@@ -1114,6 +1119,7 @@ export interface EnduserMedication extends EnduserMedication_readonly, EnduserMe
1114
1119
 
1115
1120
  // Medication status (e.g., 'draft', 'pending', 'active', 'Prescribed')
1116
1121
  status?: string,
1122
+ protocol?: string,
1117
1123
  scriptSureDraft?: {
1118
1124
  prescriptionRouteId?: string, // Optional reference to PrescriptionRoute used
1119
1125
  drugId?: string, // ScriptSure drug ID
@@ -1217,7 +1223,7 @@ export type FormResponsesReport = Report
1217
1223
 
1218
1224
  export type PhoneCallsReportQuery = ReportQuery & {}
1219
1225
  export type PhoneCallsReportQueries = Record<string, PhoneCallsReportQuery>
1220
- export type PhoneCallsReport = Record<string, { count: number, callDurationInSeconds: number, _id: null | string | string[] }[]>
1226
+ export type PhoneCallsReport = Record<string, { count: number, callDurationInSeconds: number, waitTimeInSeconds: number, _id: null | string | string[] }[]>
1221
1227
 
1222
1228
  export type EnduserReportQuery = ReportQuery & {
1223
1229
  activeSince?: Date,
@@ -3418,6 +3424,9 @@ export type AssignInboxItemAutomationAction = AutomationActionBuilder<'assignInb
3418
3424
  tags: ListOfStringsWithQualifier,
3419
3425
  limit: number,
3420
3426
  }>
3427
+ export type CreateScriptSureDraftAutomationAction = AutomationActionBuilder<'createScriptSureDraft', {
3428
+ prescriptionRouteId: string,
3429
+ }>
3421
3430
 
3422
3431
  export type AutomationActionForType = {
3423
3432
  'aiDecision': AIDecisionAutomationAction,
@@ -3480,6 +3489,7 @@ export type AutomationActionForType = {
3480
3489
  removeCareTeam: RemoveCareTeamAutomationAction,
3481
3490
  assignCareTeam: AssignCareTeamAutomationAction,
3482
3491
  callUser: CallUserAutomationAction,
3492
+ createScriptSureDraft: CreateScriptSureDraftAutomationAction,
3483
3493
  }
3484
3494
  export type AutomationActionType = keyof AutomationActionForType
3485
3495
  export type AutomationAction = AutomationActionForType[AutomationActionType]
@@ -3528,7 +3538,7 @@ export type ObservationStatusCode = (
3528
3538
  | 'entered-in-error'
3529
3539
  | 'unknown'
3530
3540
  )
3531
- export type ObservationCategory = 'vital-signs'
3541
+ export type ObservationCategory = 'vital-signs' | 'laboratory'
3532
3542
 
3533
3543
  export interface EnduserObservation_readonly extends ClientRecord {}
3534
3544
  export interface EnduserObservation_required {
@@ -3946,6 +3956,7 @@ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, Phone
3946
3956
  unread?: boolean,
3947
3957
  transcription?: string, // Twilio voicemail transcription
3948
3958
  recordingTranscriptionData?: string, // Full AWS Transcribe JSON response (stringified) with metadata
3959
+ aiSummary?: string,
3949
3960
  note?: string,
3950
3961
  userId?: string,
3951
3962
  pinnedAt?: Date | '',
@@ -4061,9 +4072,10 @@ export type AnalyticsQueryInfoForType = {
4061
4072
  "Files": { Total: AnalyticsQueryInfoBuilder<'Total', undefined> },
4062
4073
  "SMS Messages": { Total: AnalyticsQueryInfoBuilder<'Total', undefined> },
4063
4074
  "Medications": { Total: AnalyticsQueryInfoBuilder<'Total', undefined> },
4064
- "Phone Calls": {
4075
+ "Phone Calls": {
4065
4076
  Total: AnalyticsQueryInfoBuilder<'Total', undefined>,
4066
4077
  Duration: AnalyticsQueryInfoBuilder<'Duration', undefined>,
4078
+ "Wait Time": AnalyticsQueryInfoBuilder<'Wait Time', undefined>,
4067
4079
  },
4068
4080
  "Meetings": {
4069
4081
  Total: AnalyticsQueryInfoBuilder<'Total', undefined>,
@@ -4610,7 +4622,7 @@ export type AutomationTriggerEvents = {
4610
4622
  cancelReasons?: string[], // filter by specific cancel reasons
4611
4623
  }, {}>,
4612
4624
  'Appointment Rescheduled': AutomationTriggerEventBuilder<"Appointment Rescheduled", { titles?: string[], detectManualReschedules?: boolean }, {}>,
4613
- 'Medication Added': AutomationTriggerEventBuilder<"Medication Added", { titles: string[] }, {}>,
4625
+ 'Medication Added': AutomationTriggerEventBuilder<"Medication Added", { titles: string[], protocols: string[] }, {}>,
4614
4626
  'No Recent Appointment': AutomationTriggerEventBuilder<"No Recent Appointment", {
4615
4627
  intervalInMS: number,
4616
4628
  templateIds?: string[],
@@ -5015,6 +5027,12 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
5015
5027
  fill?: string,
5016
5028
  sku?: string,
5017
5029
  bookingLink?: string,
5030
+ pharmacy?: string,
5031
+ pharmacyOrderId?: string,
5032
+ cancelledDate?: string,
5033
+ cancellationReason?: string,
5034
+ medication?: string,
5035
+ medicationSku?: string,
5018
5036
  }
5019
5037
 
5020
5038
  export interface EnduserProblem_readonly extends ClientRecord {}
@@ -5271,9 +5289,10 @@ export interface IntegrationLog_readonly extends ClientRecord {
5271
5289
  integration: string,
5272
5290
  status: "Success" | "Error",
5273
5291
  type: string, // e.g. Create Patient
5274
- url?: string, // for logging endpoint
5292
+ url?: string, // for logging endpoint
5275
5293
  payload?: string, // for logging payload sent (if not too space-intensive)
5276
5294
  response?: string, // for logging response (particularly for errors)
5295
+ enduserId?: string,
5277
5296
  }
5278
5297
  export interface IntegrationLog_required {}
5279
5298
  export interface IntegrationLog_updatesDisabled {}
@@ -5929,6 +5948,7 @@ export type JourneyContext = {
5929
5948
  twilioNumber?: string,
5930
5949
  ticketThreadId?: string,
5931
5950
  ticketThreadCommentId?: string,
5951
+ medicationId?: string,
5932
5952
  }
5933
5953
 
5934
5954
  // https://gist.github.com/aviflax/a4093965be1cd008f172/