@tellescope/types-models 1.250.1 → 1.251.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.
@@ -534,6 +534,7 @@ export interface Organization extends Organization_readonly, Organization_requir
534
534
  }[];
535
535
  externalFormIdsToSync?: string[];
536
536
  enforceMFA?: boolean;
537
+ accountSwitchingEnabled?: boolean;
537
538
  analyticsIframes?: {
538
539
  title: string;
539
540
  iframeURL: string;
@@ -569,6 +570,7 @@ export interface Organization extends Organization_readonly, Organization_requir
569
570
  skipActivePatientBilling?: boolean;
570
571
  portalV2SchemaURL?: string;
571
572
  timeTrackingPrograms?: TimeTrackingProgram[];
573
+ belugaAutomationMappings?: BelugaAutomationMappingEntry[];
572
574
  }
573
575
  export type OrganizationTheme = {
574
576
  name: string;
@@ -664,6 +666,9 @@ export interface UserSession extends Session, OrganizationLimits {
664
666
  availablePhoneNumbers: string[];
665
667
  availableFromEmails: string[];
666
668
  isa?: boolean;
669
+ actorUserId?: string;
670
+ actorEmail?: string;
671
+ actorBusinessId?: string;
667
672
  }
668
673
  export type StateCredentialInfo = {
669
674
  state: string;
@@ -701,6 +706,25 @@ export type UserCallRoutingBehavior = ('' | 'Assigned' | 'Unassigned' | 'All');
701
706
  export type MFASettings = {
702
707
  email?: boolean;
703
708
  };
709
+ export interface LinkedAccount {
710
+ id: string;
711
+ email: string;
712
+ orgName: string;
713
+ fname?: string;
714
+ lname?: string;
715
+ requiresMFA: boolean;
716
+ }
717
+ export type LinkedAccountAccessStatus = 'pending' | 'accepted';
718
+ export interface LinkedAccountAccessEntry {
719
+ userId: string;
720
+ email: string;
721
+ fname?: string;
722
+ lname?: string;
723
+ orgName?: string;
724
+ status: LinkedAccountAccessStatus;
725
+ createdAt: Date;
726
+ requestExpiresAt: Date;
727
+ }
704
728
  export type LabeledField = {
705
729
  field: string;
706
730
  value: string;
@@ -791,6 +815,7 @@ export interface User extends User_required, User_readonly, User_updatesDisabled
791
815
  dashboardView?: CustomDashboardView;
792
816
  hideFromCalendarView?: boolean;
793
817
  requireSSO?: string[];
818
+ linkedAccountAccess?: LinkedAccountAccessEntry[];
794
819
  }
795
820
  export type Preference = 'email' | 'sms' | 'call' | 'chat';
796
821
  export type CustomField = string | number | object | {
@@ -1077,6 +1102,7 @@ export interface EnduserMedication extends EnduserMedication_readonly, EnduserMe
1077
1102
  allergyNote?: string;
1078
1103
  status?: string;
1079
1104
  protocol?: string;
1105
+ category?: string;
1080
1106
  scriptSureDraft?: {
1081
1107
  prescriptionRouteId?: string;
1082
1108
  drugId?: string;
@@ -3331,8 +3357,9 @@ export type BelugaAutoRxPatientPreferenceItem = {
3331
3357
  medId: string;
3332
3358
  };
3333
3359
  export type BelugaAutoRxAutomationAction = AutomationActionBuilder<'belugaAutoRx', {
3334
- patientPreference: BelugaAutoRxPatientPreferenceItem;
3335
- pharmacyId: string;
3360
+ patientPreference?: BelugaAutoRxPatientPreferenceItem;
3361
+ pharmacyId?: string;
3362
+ useOrganizationMapping?: boolean;
3336
3363
  }>;
3337
3364
  export type BelugaUpdateVisitPatientPreferenceItem = {
3338
3365
  name: string;
@@ -3343,9 +3370,15 @@ export type BelugaUpdateVisitPatientPreferenceItem = {
3343
3370
  medId: string;
3344
3371
  };
3345
3372
  export type BelugaUpdateVisitAutomationAction = AutomationActionBuilder<'belugaUpdateVisit', {
3373
+ patientPreferences?: BelugaUpdateVisitPatientPreferenceItem[];
3374
+ pharmacyId?: string;
3375
+ useOrganizationMapping?: boolean;
3376
+ }>;
3377
+ export type BelugaAutomationMappingEntry = {
3378
+ enduserCondition: Record<string, any>;
3346
3379
  patientPreferences: BelugaUpdateVisitPatientPreferenceItem[];
3347
3380
  pharmacyId: string;
3348
- }>;
3381
+ };
3349
3382
  export type SendChatAutomationAction = AutomationActionBuilder<'sendChat', {
3350
3383
  templateId: string;
3351
3384
  identifier: string;
@@ -3914,6 +3947,7 @@ export interface UserLog extends UserLog_readonly, UserLog_required, UserLog_upd
3914
3947
  info?: Indexable;
3915
3948
  enduserId?: string;
3916
3949
  note?: string;
3950
+ actorUserId?: string;
3917
3951
  }
3918
3952
  export interface EnduserTask_readonly extends ClientRecord {
3919
3953
  }
@@ -4721,6 +4755,7 @@ export type AutomationTriggerEvents = {
4721
4755
  'Medication Added': AutomationTriggerEventBuilder<"Medication Added", {
4722
4756
  titles: string[];
4723
4757
  protocols: string[];
4758
+ titleCondition?: CompoundFilter<'title'>;
4724
4759
  }, {}>;
4725
4760
  'No Recent Appointment': AutomationTriggerEventBuilder<"No Recent Appointment", {
4726
4761
  intervalInMS: number;
@@ -4781,6 +4816,7 @@ export type AutomationTriggerEvents = {
4781
4816
  channels?: string[];
4782
4817
  keywords?: string[];
4783
4818
  }, {}>;
4819
+ 'Outbound Chat Sent': AutomationTriggerEventBuilder<"Outbound Chat Sent", {}, {}>;
4784
4820
  'Pregnancy Ended': AutomationTriggerEventBuilder<"Pregnancy Ended", {
4785
4821
  reason?: string;
4786
4822
  }, {}>;
@@ -4821,6 +4857,9 @@ export type AutomationTriggerEvents = {
4821
4857
  'Incoming Fax': AutomationTriggerEventBuilder<"Incoming Fax", {
4822
4858
  senderFaxNumbers?: string[];
4823
4859
  }, {}>;
4860
+ 'Beluga Visit Sync Failed': AutomationTriggerEventBuilder<"Beluga Visit Sync Failed", {
4861
+ formIds?: string[];
4862
+ }, {}>;
4824
4863
  };
4825
4864
  export type AutomationTriggerEventType = keyof AutomationTriggerEvents;
4826
4865
  export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType];