@tellescope/types-models 1.225.0 → 1.227.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
@@ -105,6 +105,7 @@ export type PortalSettings = {
105
105
  loginTitle?: string,
106
106
  loginDescription?: string,
107
107
  loginGraphic?: string,
108
+ loginBottomHTML?: string,
108
109
  registerTitle?: string,
109
110
  registerDescription?: string,
110
111
  registerGraphic?: string,
@@ -132,13 +133,14 @@ export type PortalSettings = {
132
133
 
133
134
  export type WithLinkOpenTrackingIds = { linkOpenTrackingIds: string[] }
134
135
 
135
- type BuildCustomEnduserField <T, I> = {
136
+ type BuildCustomEnduserField <T, I> = {
136
137
  type: T,
137
138
  info: I,
138
139
  field: string,
139
140
  required?: boolean,
140
141
  hiddenFromProfile?: boolean,
141
142
  requireConfirmation?: boolean,
143
+ tags?: string[],
142
144
  }
143
145
  export type CustomEnduserFields = {
144
146
  "Select": BuildCustomEnduserField<'Select', { options: string[], other?: boolean }>,
@@ -403,6 +405,7 @@ export interface Organization extends Organization_readonly, Organization_requir
403
405
  hasConnectedSuperDial?: boolean,
404
406
  hasConnectedBeluga?: boolean,
405
407
  hasConnectedMetriport?: boolean,
408
+ hasConnectedPaubox?: boolean,
406
409
  hasConfiguredZoom?: boolean,
407
410
  hasTicketQueues?: boolean,
408
411
  vitalTeamId?: string,
@@ -467,6 +470,7 @@ export interface Organization extends Organization_readonly, Organization_requir
467
470
  hasIntegrations?: string[],
468
471
  outOfOfficeHours?: OutOfOfficeBlock[],
469
472
  // _AIEnabled?: boolean,
473
+ skipActivePatientBilling?: boolean,
470
474
  }
471
475
  export type OrganizationTheme = {
472
476
  name: string,
@@ -574,6 +578,12 @@ export type StateCredentialInfo = {
574
578
  expiresAt?: Date,
575
579
  }
576
580
 
581
+ export type MonthlyRestriction = {
582
+ // Which occurrences of this day within the month (1st, 2nd, 3rd, 4th, 5th)
583
+ // For example: [1, 3] means "only on the 1st and 3rd occurrence of this day in the month"
584
+ occurrences: (1 | 2 | 3 | 4 | 5)[]
585
+ }
586
+
577
587
  export type WeeklyAvailability = {
578
588
  dayOfWeekStartingSundayIndexedByZero: number,
579
589
  startTimeInMinutes: number,
@@ -585,6 +595,7 @@ export type WeeklyAvailability = {
585
595
  locationIds?: string[],
586
596
  validTemplateIds?: string[],
587
597
  priority?: number,
598
+ monthlyRestriction?: MonthlyRestriction,
588
599
  }
589
600
  export type NotificationPreference = {
590
601
  email?: boolean
@@ -606,6 +617,7 @@ export interface User_readonly extends ClientRecord {
606
617
  organization?: string
607
618
  username?: string;
608
619
  orgEmail?: string;
620
+ pauboxEmail?: string;
609
621
  lastActive?: Date;
610
622
  lastLogout?: Date;
611
623
  isa?: boolean,
@@ -899,6 +911,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
899
911
  markedReadAt?: Date | '',
900
912
  markedUnreadAt?: Date | '',
901
913
  note?: string,
914
+ noteIsFlagged?: boolean,
902
915
  mfa?: MFASettings,
903
916
  lastZendeskSyncAt?: Date,
904
917
  accessTags?: string[],
@@ -1628,11 +1641,16 @@ export type FormFieldFeedback = {
1628
1641
  ifEquals: string,
1629
1642
  display: string,
1630
1643
  }
1644
+ export type FormFieldOptionDetails = {
1645
+ option: string,
1646
+ description?: string,
1647
+ }
1631
1648
  export interface CanvasConsentCategory extends CanvasCoding {}
1632
1649
  export type FormFieldOptions = FormFieldValidation & {
1633
1650
  default?: string,
1634
- tableChoices?: TableInputChoice[],
1651
+ tableChoices?: TableInputChoice[],
1635
1652
  choices?: string[];
1653
+ optionDetails?: FormFieldOptionDetails[];
1636
1654
  canvasCodings?: CanvasCoding[],
1637
1655
  from?: number,
1638
1656
  to?: number,
@@ -1650,6 +1668,7 @@ export type FormFieldOptions = FormFieldValidation & {
1650
1668
  databaseId?: string,
1651
1669
  databaseLabel?: string,
1652
1670
  databaseLabels?: string[],
1671
+ filterByEnduserState?: boolean,
1653
1672
  databaseFilter?: {
1654
1673
  fieldId?: string,
1655
1674
  databaseLabel?: string,
@@ -1682,6 +1701,7 @@ export type FormFieldOptions = FormFieldValidation & {
1682
1701
  groupPadding?: number,
1683
1702
  saveIntakeOnPartial?: boolean,
1684
1703
  stripeKey?: string, // publishable key of custom stripe API keys
1704
+ stripeProductSelectionMode?: boolean, // enable product selection step for Stripe questions
1685
1705
  dataSource?: string, // e.g. Canvas for Allergies
1686
1706
  canvasDocumentCoding?: Pick<CanvasCoding, 'system' | 'code'> // for category
1687
1707
  canvasDocumentType?: CanvasCoding, // for type
@@ -1702,7 +1722,7 @@ export type FormFieldOptions = FormFieldValidation & {
1702
1722
  elationAppendToNote?: boolean,
1703
1723
  elationAppendToNotePrefix?: string,
1704
1724
  }
1705
- export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>
1725
+ export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other' | 'optionDetails' | 'radioChoices'>
1706
1726
 
1707
1727
  export type FormFieldCalloutConditionComparison = 'Equals'
1708
1728
  export type FormFieldCalloutCondition = {
@@ -1985,6 +2005,7 @@ export interface Database_updatesDisabled {}
1985
2005
  export interface Database extends Database_readonly, Database_required, Database_updatesDisabled {
1986
2006
  // organizationRead?: boolean,
1987
2007
  visibleForRoles?: string[],
2008
+ isReferralDatabase?: boolean,
1988
2009
  }
1989
2010
 
1990
2011
  export interface DatabaseRecord_readonly extends ClientRecord {}
@@ -2212,6 +2233,7 @@ export interface FormResponse_required {
2212
2233
  publicSubmit?: boolean,
2213
2234
  submittedBy?: string,
2214
2235
  submittedByIsPlaceholder?: boolean,
2236
+ markedAsSubmitted?: boolean,
2215
2237
  submittedAt?: Date,
2216
2238
  accessCode?: string,
2217
2239
  userEmail?: string,
@@ -2428,6 +2450,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
2428
2450
  canvasReasonCoding?: CanvasCoding,
2429
2451
  canvasLocationId?: string,
2430
2452
  completedAt?: Date | '',
2453
+ completedBy?: string, // user ID when manually completed, or integration title when completed via integration
2431
2454
  holdUntil?: Date,
2432
2455
  holdFormResponseId?: string,
2433
2456
  tags?: string[],
@@ -2457,6 +2480,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
2457
2480
  preventRescheduleMinutesInAdvance?: number,
2458
2481
  preventCancelMinutesInAdvance?: number,
2459
2482
  sendIcsEmail?: boolean,
2483
+ healthieInsuranceBillingEnabled?: boolean,
2460
2484
  // isAllDay?: boolean,
2461
2485
  }
2462
2486
 
@@ -2589,6 +2613,7 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
2589
2613
  generateAthenaTelehealthLink?: boolean,
2590
2614
  athenaTypeId?: string, // for searching slots (default booking type)
2591
2615
  athenaBookingTypeId?: string, // for booking a different type than the slot
2616
+ healthieInsuranceBillingEnabled?: boolean,
2592
2617
  }
2593
2618
 
2594
2619
  export interface AppointmentLocation_readonly extends ClientRecord {}
@@ -2817,6 +2842,11 @@ export type AfterActionAutomationEvent = AutomationEventBuilder<'afterAction', A
2817
2842
  eventCondition?: {
2818
2843
  before?: boolean,
2819
2844
  },
2845
+ dayOfMonthCondition?: {
2846
+ dayOfMonth: number, // 1-31
2847
+ hour?: number, // 0-23, defaults to 9 AM
2848
+ minute?: number, // 0-59, defaults to 0
2849
+ },
2820
2850
  skipIfDelayPassed?: boolean,
2821
2851
  }>
2822
2852
  export type FormUnsubmittedEvent = AutomationEventBuilder<'formUnsubmitted', FormUnsubmittedEventInfo>
@@ -3322,6 +3352,7 @@ export type PortalBlockForType = {
3322
3352
  title: string,
3323
3353
  roles?: string[],
3324
3354
  showAll?: boolean,
3355
+ hideContactButton?: boolean,
3325
3356
  // members: CareTeamMemberPortalCustomizationInfo[],
3326
3357
  }>,
3327
3358
  carePlan: BuildPortalBlockInfo<'carePlan', {}>,
@@ -3549,6 +3580,7 @@ export type UserUIRestrictions = {
3549
3580
  hideMergeEndusers?: boolean,
3550
3581
  hideQueuedTicketsViewer?: boolean,
3551
3582
  hideIncomingFaxesIcon?: boolean,
3583
+ hideNotificationsIcon?: boolean,
3552
3584
  hideBulkEnduserActions?: boolean,
3553
3585
  visibleIntegrations?: string[],
3554
3586
  }
@@ -3647,6 +3679,8 @@ export type AnalyticsQueryInfoForType = {
3647
3679
  },
3648
3680
  "Journey Logs": { Total: AnalyticsQueryInfoBuilder<'Total', undefined> },
3649
3681
  "Orders": { Total: AnalyticsQueryInfoBuilder<'Total', undefined> },
3682
+ "Chat Rooms": { Total: AnalyticsQueryInfoBuilder<'Total', undefined> },
3683
+ "Chats": { Total: AnalyticsQueryInfoBuilder<'Total', undefined> },
3650
3684
  }
3651
3685
  export type AnalyticsQueryInfoType = keyof AnalyticsQueryInfoForType
3652
3686
  export type AnalyticsQueryInfo = AnalyticsQueryInfoForType[AnalyticsQueryInfoType]
@@ -3718,10 +3752,12 @@ export type AnalyticsQueryFilterForType = {
3718
3752
  Files: {
3719
3753
  names?: string[],
3720
3754
  },
3721
- "Journey Logs": {
3755
+ "Journey Logs": {
3722
3756
  automationStepIds?: string[],
3723
3757
  },
3724
3758
  Orders: { },
3759
+ "Chat Rooms": { },
3760
+ "Chats": { },
3725
3761
  }
3726
3762
 
3727
3763
  export type EnduserGrouping = {
@@ -3739,6 +3775,7 @@ export type AnalyticsQueryGroupingForType = {
3739
3775
  "Calendar Events": {
3740
3776
  Type: boolean,
3741
3777
  "Scheduled By"?: boolean,
3778
+ "Completed By"?: boolean,
3742
3779
  alsoGroupByHost?: boolean, // for further breaking down a grouping by host
3743
3780
  "Cancel Reason"?: boolean,
3744
3781
  } & EnduserGrouping & { Enduser: string },
@@ -3768,8 +3805,10 @@ export type AnalyticsQueryGroupingForType = {
3768
3805
  "Medications": {} & EnduserGrouping & { Enduser: string },
3769
3806
  "Files": {} & EnduserGrouping & { Enduser: string },
3770
3807
  "Journey Logs": {} & EnduserGrouping & { Enduser: string },
3771
- "Meetings": { Host?: boolean },
3808
+ "Meetings": { Host?: boolean },
3772
3809
  "Orders": {} & EnduserGrouping & { Enduser: string },
3810
+ "Chat Rooms": {} & EnduserGrouping & { Enduser: string },
3811
+ "Chats": {} & EnduserGrouping & { Enduser: string },
3773
3812
  }
3774
3813
 
3775
3814
  type DefaultRangeKey = 'Created At' | 'Updated At'
@@ -3788,6 +3827,8 @@ export type AnalyticsQueryRangeKeyForType = {
3788
3827
  "Meetings": DefaultRangeKey,
3789
3828
  "Journey Logs": DefaultRangeKey,
3790
3829
  "Orders": DefaultRangeKey,
3830
+ "Chat Rooms": DefaultRangeKey,
3831
+ "Chats": DefaultRangeKey,
3791
3832
  }
3792
3833
  export type RangeKey = DefaultRangeKey | 'Submitted At' | "Closed At"
3793
3834
 
@@ -3897,12 +3938,26 @@ export type AnalyticsQueryForType = {
3897
3938
  AnalyticsQueryRangeKeyForType['Journey Logs']
3898
3939
  >,
3899
3940
  "Orders": AnalyticsQueryBuilder<
3900
- "Orders",
3941
+ "Orders",
3901
3942
  AnalyticsQueryInfoForType['Orders'][keyof AnalyticsQueryInfoForType['Orders']],
3902
3943
  AnalyticsQueryFilterForType['Orders'],
3903
3944
  AnalyticsQueryGroupingForType['Orders'],
3904
3945
  AnalyticsQueryRangeKeyForType['Orders']
3905
3946
  >,
3947
+ "Chat Rooms": AnalyticsQueryBuilder<
3948
+ "Chat Rooms",
3949
+ AnalyticsQueryInfoForType['Chat Rooms'][keyof AnalyticsQueryInfoForType['Chat Rooms']],
3950
+ AnalyticsQueryFilterForType['Chat Rooms'],
3951
+ AnalyticsQueryGroupingForType['Chat Rooms'],
3952
+ AnalyticsQueryRangeKeyForType['Chat Rooms']
3953
+ >,
3954
+ "Chats": AnalyticsQueryBuilder<
3955
+ "Chats",
3956
+ AnalyticsQueryInfoForType['Chats'][keyof AnalyticsQueryInfoForType['Chats']],
3957
+ AnalyticsQueryFilterForType['Chats'],
3958
+ AnalyticsQueryGroupingForType['Chats'],
3959
+ AnalyticsQueryRangeKeyForType['Chats']
3960
+ >,
3906
3961
  }
3907
3962
  export type AnalyticsQueryType = keyof AnalyticsQueryForType
3908
3963
  export type AnalyticsQuery = AnalyticsQueryForType[AnalyticsQueryType]
@@ -3922,6 +3977,8 @@ export const resource_to_modelName: { [K in AnalyticsQueryType] : ModelName } =
3922
3977
  Meetings: "meetings",
3923
3978
  "Journey Logs": "automated_actions",
3924
3979
  Orders: "enduser_orders",
3980
+ "Chat Rooms": "chat_rooms",
3981
+ "Chats": "chats",
3925
3982
  }
3926
3983
 
3927
3984
  export type AnalyticsQueryOptions = {
@@ -3950,8 +4007,8 @@ export interface AnalyticsFrame_required {
3950
4007
  groupByCareTeam?: boolean, // supports multi-grouping for both care team and a normal field
3951
4008
  }
3952
4009
  export interface AnalyticsFrame_updatesDisabled {}
3953
- export interface AnalyticsFrame extends
3954
- AnalyticsFrame_readonly, AnalyticsFrame_required, AnalyticsFrame_updatesDisabled, AnalyticsQueryOptions
4010
+ export interface AnalyticsFrame extends
4011
+ AnalyticsFrame_readonly, AnalyticsFrame_required, AnalyticsFrame_updatesDisabled, AnalyticsQueryOptions
3955
4012
  {
3956
4013
  parentFrame?: string,
3957
4014
  type?: AnalyticsFrameType,
@@ -3965,6 +4022,7 @@ export interface AnalyticsFrame extends
3965
4022
  visibleForRoles?: string[],
3966
4023
  visibleForUserIds?: string[],
3967
4024
  index?: number,
4025
+ tags?: string[],
3968
4026
  }
3969
4027
 
3970
4028
 
@@ -4117,7 +4175,7 @@ export type AutomationTriggerEvents = {
4117
4175
  hasExpiredEvent?: boolean,
4118
4176
  }, {}>,
4119
4177
  'Form Unsubmitted': AutomationTriggerEventBuilder<"Form Unsubmitted", { formId: string, intervalInMS: number }, {}>,
4120
- 'Purchase Made': AutomationTriggerEventBuilder<"Purchase Made", { titles?: string[], productIds?: string[] }, {}>,
4178
+ 'Purchase Made': AutomationTriggerEventBuilder<"Purchase Made", { titles?: string[], productIds?: string[], titlePartialMatches?: string[] }, {}>,
4121
4179
  'Refund Issued': AutomationTriggerEventBuilder<"Refund Issued", { }, {}>,
4122
4180
  'Subscription Ended': AutomationTriggerEventBuilder<"Subscription Ended", { productIds?: string[] }, {}>,
4123
4181
  'Subscription Payment Failed': AutomationTriggerEventBuilder<"Subscription Payment Failed", { }, {}>,
@@ -4135,7 +4193,7 @@ export type AutomationTriggerEvents = {
4135
4193
  excludeCancelUpcomingEventsJourney?: boolean, // if true, will not trigger from cancelUpcomingEvents Journey action
4136
4194
  by?: '' | 'enduser' | 'user', // only implemented for enduser for now
4137
4195
  }, {}>,
4138
- 'Appointment Rescheduled': AutomationTriggerEventBuilder<"Appointment Rescheduled", { titles?: string[] }, {}>,
4196
+ 'Appointment Rescheduled': AutomationTriggerEventBuilder<"Appointment Rescheduled", { titles?: string[], detectManualReschedules?: boolean }, {}>,
4139
4197
  'Medication Added': AutomationTriggerEventBuilder<"Medication Added", { titles: string[] }, {}>,
4140
4198
  'No Recent Appointment': AutomationTriggerEventBuilder<"No Recent Appointment", {
4141
4199
  intervalInMS: number,