@tellescope/types-models 1.224.0 → 1.225.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
@@ -380,6 +380,7 @@ export interface Organization extends Organization_readonly, Organization_requir
380
380
  externalCalendarEventPlaceholderDescription?: string,
381
381
  customZoomEmailTemplate?: string,
382
382
  customZoomEmailSubject?: string,
383
+ customZoomSMSTemplate?: string,
383
384
  customVoicemailText?: string,
384
385
  hasConnectedOpenAI?: boolean,
385
386
  hasConnectedHealthie?: boolean,
@@ -1642,6 +1643,7 @@ export type FormFieldOptions = FormFieldValidation & {
1642
1643
  subFields?: FormSubField[],
1643
1644
  validFileTypes?: string[], // should be human readable files where the lower-case version is included in a filetype, e.g. Image, Video, PDF
1644
1645
  maxFileSize?: number, // in bytes
1646
+ hideFromPortal?: boolean, // hide uploaded files from patient portal
1645
1647
  signatureUrl?: string,
1646
1648
  productIds?: string[],
1647
1649
  chargeImmediately?: boolean,
@@ -1804,6 +1806,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
1804
1806
  htmlThanksMessage?: string,
1805
1807
  type?: FormType,
1806
1808
  scoring?: FormScoring[]
1809
+ realTimeScoring?: boolean,
1807
1810
  externalId?: string,
1808
1811
  ga4measurementId?: string,
1809
1812
  backgroundColor?: string,
@@ -2667,6 +2670,8 @@ export interface AppointmentBookingPage extends AppointmentBookingPage_readonly,
2667
2670
  archivedAt?: Date | '',
2668
2671
  gtmTag?: string,
2669
2672
  dontRestrictRescheduleToOriginalHost?: boolean,
2673
+ calendarTitleText?: string, // Custom text for "Pick a date and time for your visit" - can be empty to hide
2674
+ emailFieldBehavior?: "required" | "optional" | "hidden",
2670
2675
  // productIds?: string[], // defer to specific template
2671
2676
  }
2672
2677
 
@@ -2704,7 +2709,7 @@ export interface WebhookCall {
2704
2709
  description?: string,
2705
2710
  }
2706
2711
 
2707
- export type AutomationEventType =
2712
+ export type AutomationEventType =
2708
2713
  'onJourneyStart'
2709
2714
  | 'afterAction'
2710
2715
  | "formResponse"
@@ -2715,6 +2720,7 @@ export type AutomationEventType =
2715
2720
  | 'waitForTrigger'
2716
2721
  | "onCallOutcome"
2717
2722
  | "onAIDecision"
2723
+ | "onError"
2718
2724
 
2719
2725
  interface AutomationEventBuilder <T extends AutomationEventType, V extends object> {
2720
2726
  type: T,
@@ -2819,11 +2825,16 @@ export type OnJourneyStartAutomationEvent = AutomationEventBuilder<'onJourneySta
2819
2825
  export type TicketCompletedAutomationEvent = AutomationEventBuilder<'ticketCompleted', TicketCompletedEventInfo>
2820
2826
  export type WaitForTriggerAutomationEvent = AutomationEventBuilder<'waitForTrigger', { automationStepId: string, triggerId: string }>
2821
2827
  export type OnCallOutcomeAutomationEvent = AutomationEventBuilder<'onCallOutcome', { automationStepId: string, outcome: string }>
2822
- export type OnAIDecisionAutomationEvent = AutomationEventBuilder<'onAIDecision', { automationStepId: string, outcomes: string[] }>
2828
+ export type OnAIDecisionAutomationEvent = AutomationEventBuilder<'onAIDecision', { automationStepId: string, outcomes: string[] }>
2829
+
2830
+ export type OnErrorEventInfo = {
2831
+ automationStepId: string,
2832
+ }
2833
+ export type OnErrorAutomationEvent = AutomationEventBuilder<'onError', OnErrorEventInfo>
2823
2834
 
2824
2835
  export type AutomationEventForType = {
2825
2836
  'onJourneyStart': OnJourneyStartAutomationEvent
2826
- 'afterAction': AfterActionAutomationEvent
2837
+ 'afterAction': AfterActionAutomationEvent
2827
2838
  "formResponse": FormResponseAutomationEvent
2828
2839
  "formResponses": FormResponsesAutomationEvent
2829
2840
  'formUnsubmitted': FormUnsubmittedEvent
@@ -2832,6 +2843,7 @@ export type AutomationEventForType = {
2832
2843
  'waitForTrigger': WaitForTriggerAutomationEvent
2833
2844
  'onCallOutcome': OnCallOutcomeAutomationEvent,
2834
2845
  'onAIDecision': OnAIDecisionAutomationEvent
2846
+ 'onError': OnErrorAutomationEvent
2835
2847
  }
2836
2848
  export type AutomationEvent = AutomationEventForType[keyof AutomationEventForType]
2837
2849
 
@@ -3046,6 +3058,7 @@ export type CallUserAutomationAction = AutomationActionBuilder<
3046
3058
  export type StripeChargeCardOnFileAutomationAction = AutomationActionBuilder<'stripeChargeCardOnFile', {
3047
3059
  stripeKey?: string, // indicating custom vs. stripe connect
3048
3060
  priceIds: string[], // Stripe price ids to charge
3061
+ productIds?: string[], // Tellescope product IDs to extract price IDs from
3049
3062
  subscriptionPriceId?: string
3050
3063
  }>
3051
3064
 
@@ -3200,15 +3213,27 @@ export interface EnduserObservation extends EnduserObservation_readonly, Enduser
3200
3213
  }
3201
3214
 
3202
3215
  export type BlockType = 'h1' | 'h2' | 'html' | 'image' | 'youtube' | 'pdf' | 'iframe' | 'content-link'
3216
+
3217
+ export type BlockStyle = {
3218
+ width?: number,
3219
+ height?: number,
3220
+ backgroundColor?: string,
3221
+ borderColor?: string,
3222
+ borderWidth?: number,
3223
+ textColor?: string,
3224
+ }
3225
+
3203
3226
  export type ContentBlockBuilder <BLOCK extends BlockType, INFO extends object> = {
3204
3227
  type: BLOCK,
3205
3228
  info: INFO,
3229
+ style?: BlockStyle,
3206
3230
  }
3207
3231
 
3208
3232
  export type BlockContentText = { text: string }
3209
3233
  export type BlockContentMedia = {
3210
3234
  link: string,
3211
3235
  name?: string,
3236
+ alt?: string,
3212
3237
  height?: number,
3213
3238
  maxHeight?: number,
3214
3239
  width?: number,
@@ -3293,7 +3318,7 @@ export type CareTeamMemberPortalCustomizationInfo = {
3293
3318
  role?: string, // for matching to care team role for a specific team member
3294
3319
  }
3295
3320
  export type PortalBlockForType = {
3296
- careTeam: BuildPortalBlockInfo<'careTeam', {
3321
+ careTeam: BuildPortalBlockInfo<'careTeam', {
3297
3322
  title: string,
3298
3323
  roles?: string[],
3299
3324
  showAll?: boolean,
@@ -3307,6 +3332,10 @@ export type PortalBlockForType = {
3307
3332
  "Orders": BuildPortalBlockInfo<'Orders', { }>
3308
3333
  "Manage Subscription Button": BuildPortalBlockInfo<'Manage Subscription Button', { }>
3309
3334
  HTML: BuildPortalBlockInfo<'HTML', { html: string }>
3335
+ pinnedForms: BuildPortalBlockInfo<'pinnedForms', {
3336
+ title?: string,
3337
+ formIds?: string[],
3338
+ }>
3310
3339
  }
3311
3340
  export type PortalBlockType = keyof PortalBlockForType
3312
3341
  export type PortalBlock = PortalBlockForType[PortalBlockType]
@@ -3555,7 +3584,8 @@ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, Phone
3555
3584
  externalConferenceId?: string,
3556
3585
  conferenceAttendees?: (string[]) | (string[][]), // old code caused multiple lists to be pushed by mistake
3557
3586
  unread?: boolean,
3558
- transcription?: string,
3587
+ transcription?: string, // Twilio voicemail transcription
3588
+ recordingTranscriptionData?: string, // Full AWS Transcribe JSON response (stringified) with metadata
3559
3589
  note?: string,
3560
3590
  userId?: string,
3561
3591
  pinnedAt?: Date | '',
@@ -4070,6 +4100,8 @@ export type AutomationTriggerActions = {
4070
4100
  tags?: ListOfStringsWithQualifier,
4071
4101
  maxUsers?: number,
4072
4102
  }>,
4103
+ "Zendesk: Update Ticket Assignee": AutomationTriggerActionBuilder<'Zendesk: Update Ticket Assignee', {
4104
+ }>,
4073
4105
  }
4074
4106
  export type AutomationTriggerActionType = keyof AutomationTriggerActions
4075
4107
  export type AutomationTriggerAction = AutomationTriggerActions[AutomationTriggerActionType]
@@ -5320,6 +5352,8 @@ export type JourneyContext = {
5320
5352
  fileId?: string,
5321
5353
  chatRoomId?: string,
5322
5354
  twilioNumber?: string,
5355
+ ticketThreadId?: string,
5356
+ ticketThreadCommentId?: string,
5323
5357
  }
5324
5358
 
5325
5359
  // https://gist.github.com/aviflax/a4093965be1cd008f172/