@tellescope/types-models 1.205.0 → 1.206.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
@@ -458,6 +458,7 @@ export type OrganizationTheme = {
458
458
  customPoliciesVersion?: string,
459
459
  requireCustomTermsOnMagicLink?: boolean,
460
460
  hasConnectedVital?: boolean,
461
+ brandId?: string,
461
462
  }
462
463
 
463
464
 
@@ -762,6 +763,13 @@ export type EnduserInsurance = {
762
763
  startDate?: string,
763
764
  }
764
765
 
766
+ export type EnduserDevice = {
767
+ title: string,
768
+ id: string,
769
+ gatewayId?: string,
770
+ disabled?: boolean,
771
+ }
772
+
765
773
  export type EnduserDiagnosis = {
766
774
  id?: string, // if created in Tellescope
767
775
  createdAt?: Date,
@@ -863,11 +871,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
863
871
  insurance?: EnduserInsurance,
864
872
  insuranceSecondary?: EnduserInsurance,
865
873
  bookingNotes?: { bookingPageId: string, note: string }[]
866
- devices?: {
867
- title: string,
868
- id: string,
869
- disabled?: boolean,
870
- }[],
874
+ devices?: EnduserDevice[],
871
875
  salesforceId?: string,
872
876
  athenaPracticeId?: string,
873
877
  athenaDepartmentId?: string,
@@ -1610,6 +1614,7 @@ export type FormFieldOptions = FormFieldValidation & {
1610
1614
  fieldId?: string,
1611
1615
  databaseLabel?: string,
1612
1616
  },
1617
+ allowAddToDatabase?: boolean,
1613
1618
  useDatePicker?: boolean,
1614
1619
  sharedIntakeFields?: string[],
1615
1620
  hiddenDefaultFields?: string[],
@@ -1674,6 +1679,7 @@ export interface FormField_required {
1674
1679
  }
1675
1680
  export interface FormField_updatesDisabled {}
1676
1681
  export interface FormField extends FormField_readonly, FormField_required, FormField_updatesDisabled {
1682
+ internalNote?: string,
1677
1683
  placeholder ?: string,
1678
1684
  isOptional ?: boolean,
1679
1685
  fullZIP ?: boolean,
@@ -2300,6 +2306,7 @@ export interface CalendarEvent_required {
2300
2306
  }
2301
2307
  export interface CalendarEvent_updatesDisabled {}
2302
2308
  export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_required, CalendarEvent_updatesDisabled {
2309
+ updateKey?: string,
2303
2310
  createAndBookAthenaSlot?: boolean,
2304
2311
  athenaDepartmentId?: string,
2305
2312
  generateAthenaTelehealthLink?: boolean,
@@ -2645,6 +2652,7 @@ export type AutomationEventType =
2645
2652
  | "formsUnsubmitted"
2646
2653
  | "ticketCompleted"
2647
2654
  | 'waitForTrigger'
2655
+ | "onCallOutcome"
2648
2656
 
2649
2657
  interface AutomationEventBuilder <T extends AutomationEventType, V extends object> {
2650
2658
  type: T,
@@ -2691,6 +2699,8 @@ export interface AutomationForWebhook {
2691
2699
  url?: string,
2692
2700
  secret?: string,
2693
2701
  fields?: LabeledField[],
2702
+ headers?: LabeledField[],
2703
+ method?: 'get' | 'patch' | 'post' | 'put' | 'delete',
2694
2704
  }
2695
2705
 
2696
2706
  export type FormResponseAutomationEvent = AutomationEventBuilder<'formResponse', {
@@ -2745,6 +2755,7 @@ export type FormsUnsubmittedEvent = AutomationEventBuilder<'formsUnsubmitted', F
2745
2755
  export type OnJourneyStartAutomationEvent = AutomationEventBuilder<'onJourneyStart', {}>
2746
2756
  export type TicketCompletedAutomationEvent = AutomationEventBuilder<'ticketCompleted', TicketCompletedEventInfo>
2747
2757
  export type WaitForTriggerAutomationEvent = AutomationEventBuilder<'waitForTrigger', { automationStepId: string, triggerId: string }>
2758
+ export type OnCallOutcomeAutomationEvent = AutomationEventBuilder<'onCallOutcome', { automationStepId: string, outcome: string }>
2748
2759
 
2749
2760
  export type AutomationEvent =
2750
2761
  FormResponseAutomationEvent
@@ -2755,6 +2766,7 @@ export type AutomationEvent =
2755
2766
  | FormsUnsubmittedEvent
2756
2767
  | TicketCompletedAutomationEvent
2757
2768
  | WaitForTriggerAutomationEvent
2769
+ | OnCallOutcomeAutomationEvent
2758
2770
 
2759
2771
  export type AutomationEventForType = {
2760
2772
  'onJourneyStart': OnJourneyStartAutomationEvent
@@ -2765,6 +2777,7 @@ export type AutomationEventForType = {
2765
2777
  'formsUnsubmitted': FormsUnsubmittedEvent
2766
2778
  'ticketCompleted': TicketCompletedAutomationEvent
2767
2779
  'waitForTrigger': WaitForTriggerAutomationEvent
2780
+ 'onCallOutcome': OnCallOutcomeAutomationEvent,
2768
2781
  }
2769
2782
 
2770
2783
  export type SetEnduserStatusInfo = { status: string }
@@ -2954,8 +2967,12 @@ export type AutomationConditionBuilder <T extends AutomationConditionType, V ext
2954
2967
  }
2955
2968
  export type AtJourneyStateAutomationCondition = AutomationConditionBuilder<'atJourneyState', AutomationForJourneyAndState>
2956
2969
  export type AutomationCondition = AtJourneyStateAutomationCondition
2970
+ export type OutboundCallAutomationAction = AutomationActionBuilder<'outboundCall', {
2971
+ treeId: string, // id of the call tree to use
2972
+ }>
2957
2973
 
2958
2974
  export type AutomationActionForType = {
2975
+ 'outboundCall': OutboundCallAutomationAction,
2959
2976
  "sendEmail" : SendEmailAutomationAction,
2960
2977
  "sendSMS": SendSMSAutomationAction,
2961
2978
  "sendChat": SendChatAutomationAction,
@@ -3210,6 +3227,7 @@ export interface PortalCustomization extends PortalCustomization_readonly, Porta
3210
3227
  hideReschedule?: boolean,
3211
3228
  hiddenEventTitles?: string[],
3212
3229
  hiddenFormIds?: string[],
3230
+ brandId?: string,
3213
3231
  }
3214
3232
  export const MOBILE_BOTTOM_NAVIGATION_DISABLED_POSITION = 1000
3215
3233
  export const DEFAULT_PATIENT_PORTAL_BOTTOM_NAVIGATION_POSITIONS: { [K in PortalPage]: number } = {
@@ -4118,7 +4136,7 @@ export type PhoneTreeActions = {
4118
4136
  // 'Play': PhoneTreeActionBuilder<"Play", { playback: PhonePlayback }>
4119
4137
  'Gather': PhoneTreeActionBuilder<"Gather", { digits: boolean, speech: boolean, playback: PhonePlayback, duration?: number }>
4120
4138
  'Voicemail': PhoneTreeActionBuilder<"Voicemail", { playback: PhonePlayback, journeyId?: string }>
4121
- 'Play Message': PhoneTreeActionBuilder<"Play Message", { playback: PhonePlayback, journeyId?: string }>
4139
+ 'Play Message': PhoneTreeActionBuilder<"Play Message", { playback: PhonePlayback, journeyId?: string, outcome?: string, cancelAppointment?: boolean, confirmAppointment?: boolean }>
4122
4140
  'Dial Users': PhoneTreeActionBuilder<"Dial Users", { userIds: string[], playback?: Partial<PhonePlayback>, duration?: number }>
4123
4141
  'Route Call': PhoneTreeActionBuilder<"Route Call", {
4124
4142
  prePlayback?: Partial<PhonePlayback>,
@@ -4164,7 +4182,7 @@ export type PhoneTreeEnduserCondition = (
4164
4182
  )
4165
4183
  export interface PhoneTree_readonly extends ClientRecord {}
4166
4184
  export interface PhoneTree_required {
4167
- number: string,
4185
+ number: string, // blank for outbound phone trees
4168
4186
  nodes: PhoneTreeNode[],
4169
4187
  isActive: boolean,
4170
4188
  }
@@ -4175,6 +4193,8 @@ export interface PhoneTree extends PhoneTree_readonly, PhoneTree_required, Phone
4175
4193
  bypassOOO?: boolean,
4176
4194
  defaultEntityType?: string,
4177
4195
  tags?: string[],
4196
+ title?: string, // set for outbound phone trees
4197
+ outboundNumber?: string, // set for outbound phone trees
4178
4198
  }
4179
4199
 
4180
4200
  export type TableViewColumn = {
@@ -4512,6 +4532,7 @@ export interface PortalBranding extends PortalBranding_readonly, PortalBranding_
4512
4532
  logoURL?: string,
4513
4533
  subdomain?: string,
4514
4534
  customPortalURL?: string,
4535
+ portalSettings?: PortalSettings,
4515
4536
  }
4516
4537
 
4517
4538
  export interface WebhookLog_readonly extends ClientRecord {