@tellescope/types-models 1.250.2 → 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 | {
@@ -3332,8 +3357,9 @@ export type BelugaAutoRxPatientPreferenceItem = {
3332
3357
  medId: string;
3333
3358
  };
3334
3359
  export type BelugaAutoRxAutomationAction = AutomationActionBuilder<'belugaAutoRx', {
3335
- patientPreference: BelugaAutoRxPatientPreferenceItem;
3336
- pharmacyId: string;
3360
+ patientPreference?: BelugaAutoRxPatientPreferenceItem;
3361
+ pharmacyId?: string;
3362
+ useOrganizationMapping?: boolean;
3337
3363
  }>;
3338
3364
  export type BelugaUpdateVisitPatientPreferenceItem = {
3339
3365
  name: string;
@@ -3344,9 +3370,15 @@ export type BelugaUpdateVisitPatientPreferenceItem = {
3344
3370
  medId: string;
3345
3371
  };
3346
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>;
3347
3379
  patientPreferences: BelugaUpdateVisitPatientPreferenceItem[];
3348
3380
  pharmacyId: string;
3349
- }>;
3381
+ };
3350
3382
  export type SendChatAutomationAction = AutomationActionBuilder<'sendChat', {
3351
3383
  templateId: string;
3352
3384
  identifier: string;
@@ -3915,6 +3947,7 @@ export interface UserLog extends UserLog_readonly, UserLog_required, UserLog_upd
3915
3947
  info?: Indexable;
3916
3948
  enduserId?: string;
3917
3949
  note?: string;
3950
+ actorUserId?: string;
3918
3951
  }
3919
3952
  export interface EnduserTask_readonly extends ClientRecord {
3920
3953
  }
@@ -4824,6 +4857,9 @@ export type AutomationTriggerEvents = {
4824
4857
  'Incoming Fax': AutomationTriggerEventBuilder<"Incoming Fax", {
4825
4858
  senderFaxNumbers?: string[];
4826
4859
  }, {}>;
4860
+ 'Beluga Visit Sync Failed': AutomationTriggerEventBuilder<"Beluga Visit Sync Failed", {
4861
+ formIds?: string[];
4862
+ }, {}>;
4827
4863
  };
4828
4864
  export type AutomationTriggerEventType = keyof AutomationTriggerEvents;
4829
4865
  export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType];