@tellescope/types-models 1.166.1 → 1.167.1

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
@@ -281,6 +281,8 @@ export interface Organization_readonly extends ClientRecord {
281
281
  environment: string,
282
282
  }
283
283
  fromEmails?: string[],
284
+ twilioSID?: string,
285
+ twilioCustomerId?: string,
284
286
  }
285
287
  export interface Organization_required {}
286
288
  export interface Organization_updatesDisabled {
@@ -851,6 +853,7 @@ export interface EnduserMedication extends EnduserMedication_readonly, EnduserMe
851
853
  dosage?: {
852
854
  value: string,
853
855
  unit: string,
856
+ description?: string,
854
857
  quantity?: string,
855
858
  frequency?: string,
856
859
  frequencyDescriptor?: string,
@@ -1524,6 +1527,9 @@ export type FormFieldOptions = FormFieldValidation & {
1524
1527
  dataSource?: string, // e.g. Canvas for Allergies
1525
1528
  canvasDocumentCoding?: Pick<CanvasCoding, 'system' | 'code'>
1526
1529
  esignatureTermsCompanyName?: string,
1530
+ observationCode?: string,
1531
+ observationDisplay?: string,
1532
+ observationUnit?: string,
1527
1533
  }
1528
1534
  export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>
1529
1535
 
@@ -1584,6 +1590,13 @@ export type FormCustomization = {
1584
1590
  publicFormSubmitHTMLDescription?: string,
1585
1591
  logoHeight?: number,
1586
1592
  publicLabelPrefix?: string,
1593
+ publicFnameLabel?: string,
1594
+ publicLnameLabel?: string,
1595
+ publicEmailLabel?: string,
1596
+ publicPhoneLabel?: string,
1597
+ publicStateLabel?: string,
1598
+ publicDateOfBirthLabel?: string,
1599
+ publicGenderLabel?: string,
1587
1600
  hideProgressBar?: boolean,
1588
1601
  showRestartAtEnd?: boolean,
1589
1602
  hideLogo?: boolean,
@@ -1646,6 +1659,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
1646
1659
  enduserFieldsToAppendForSync?: string[],
1647
1660
  allowPortalSubmission?: boolean,
1648
1661
  canvasNoteCoding?: Partial<CanvasCoding>,
1662
+ syncToCanvasAsDataImport?: boolean,
1649
1663
  }
1650
1664
 
1651
1665
  export interface FormGroup_readonly extends ClientRecord {}
@@ -1820,6 +1834,7 @@ export type MedicationResponse = {
1820
1834
  dosage?: {
1821
1835
  value: string,
1822
1836
  unit: string,
1837
+ description?: string,
1823
1838
  quantity?: string, // how many per frequency
1824
1839
  frequency?: string,
1825
1840
  frequencyDescriptor?: string,
@@ -2030,7 +2045,7 @@ export interface FormResponse extends FormResponse_readonly, FormResponse_requir
2030
2045
  context?: string,
2031
2046
  calendarEventId?: string,
2032
2047
  copiedFrom?: string,
2033
- groupId?: string,
2048
+ groupId?: string, // may be an automationStepId when created from Journey in push forms action
2034
2049
  groupInstance?: string,
2035
2050
  groupPosition?: number,
2036
2051
  utm?: LabeledField[],
@@ -2055,6 +2070,7 @@ export interface FormResponse extends FormResponse_readonly, FormResponse_requir
2055
2070
  hideAfterUnsubmittedInMS?: number,
2056
2071
  addenda?: Addendum[],
2057
2072
  canvasEncounterId?: string,
2073
+ pushedToPortalAt?: Date,
2058
2074
  }
2059
2075
 
2060
2076
  export interface WebHook_readonly extends ClientRecord {}
@@ -2207,6 +2223,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
2207
2223
  requirePortalCancelReason?: boolean,
2208
2224
  startLinkToken?: string,
2209
2225
  canvasEncounterId?: string,
2226
+ allowGroupReschedule?: boolean, // allows a patient to reschedule even if there are multiple attendees (e.g. 1 + care giver)
2210
2227
  // isAllDay?: boolean,
2211
2228
  }
2212
2229
 
@@ -2325,6 +2342,7 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
2325
2342
  displayDescription?: string,
2326
2343
  requiresEnduser?: boolean,
2327
2344
  requirePortalCancelReason?: boolean,
2345
+ allowGroupReschedule?: boolean, // allows a patient to reschedule even if there are multiple attendees (e.g. 1 + care giver)
2328
2346
  }
2329
2347
 
2330
2348
  export interface AppointmentLocation_readonly extends ClientRecord {}
@@ -2486,7 +2504,9 @@ export interface AutomationForSender {
2486
2504
  senderId: string // default sender
2487
2505
  }
2488
2506
  export interface AutomationForFormRequest extends AutomationForForm, AutomationForSender { channel?: CommunicationsChannel }
2489
- export interface AutomationForMessage extends AutomationForTemplate, AutomationForSender {}
2507
+ export interface AutomationForMessage extends AutomationForTemplate, AutomationForSender {
2508
+ sendToDestinationOfRelatedContactTypes?: string[],
2509
+ }
2490
2510
  export interface AutomationForWebhook {
2491
2511
  message: string,
2492
2512
  url?: string,
@@ -2648,6 +2668,7 @@ export type NotifyTeamAutomationAction = AutomationActionBuilder<'notifyTeam', {
2648
2668
  }>
2649
2669
  export type SendSMSAutomationAction = AutomationActionBuilder<'sendSMS', AutomationForMessage>
2650
2670
  export type SendFormAutomationAction = AutomationActionBuilder<'sendForm', AutomationForFormRequest>
2671
+ export type PushFormsAutomationAction = AutomationActionBuilder<'pushFormsToPortal', { formIds: string[] }>
2651
2672
  export type SetEnduserStatusAutomationAction = AutomationActionBuilder<'setEnduserStatus', SetEnduserStatusInfo>
2652
2673
  export type CreateTicketAutomationAction = AutomationActionBuilder<'createTicket', CreateTicketActionInfo>
2653
2674
  export type SendWebhookAutomationAction = AutomationActionBuilder<'sendWebhook', AutomationForWebhook>
@@ -2754,6 +2775,7 @@ export type AutomationActionForType = {
2754
2775
  switchToRelatedContact: SwitchToRelatedContactAutomationAction,
2755
2776
  'elationSync': ElationSyncAutomationAction,
2756
2777
  canvasSync: CanvasSyncAutomationAction,
2778
+ pushFormsToPortal: PushFormsAutomationAction,
2757
2779
  }
2758
2780
  export type AutomationActionType = keyof AutomationActionForType
2759
2781
  export type AutomationAction = AutomationActionForType[AutomationActionType]
@@ -2935,6 +2957,9 @@ export type PortalBlockForType = {
2935
2957
  Events: BuildPortalBlockInfo<'Events', {}>,
2936
2958
  text: BuildPortalBlockInfo<'text', { text: string }>
2937
2959
  chat: BuildPortalBlockInfo<'chat', { }>
2960
+ "Orders": BuildPortalBlockInfo<'Orders', { }>
2961
+ "Manage Subscription Button": BuildPortalBlockInfo<'Manage Subscription Button', { }>
2962
+ HTML: BuildPortalBlockInfo<'HTML', { html: string }>
2938
2963
  }
2939
2964
  export type PortalBlockType = keyof PortalBlockForType
2940
2965
  export type PortalBlock = PortalBlockForType[PortalBlockType]
@@ -3598,6 +3623,7 @@ export interface EnduserProfileView extends EnduserProfileView_readonly, Enduser
3598
3623
  showCompose?: boolean,
3599
3624
  defaultForUserIds?: string[],
3600
3625
  defaultForRoles?: string[],
3626
+ hiddenFromRoles?: string[],
3601
3627
  }
3602
3628
 
3603
3629
  export type ListOfStringsWithQualifier = {
@@ -3812,6 +3838,7 @@ export type PhoneTreeActions = {
3812
3838
  'Dial Users': PhoneTreeActionBuilder<"Dial Users", { userIds: string[], playback?: Partial<PhonePlayback>, duration?: number }>
3813
3839
  'Route Call': PhoneTreeActionBuilder<"Route Call", {
3814
3840
  prePlayback?: Partial<PhonePlayback>,
3841
+ byCareTeamPrimary?: boolean,
3815
3842
  byCareTeam?: boolean,
3816
3843
  byRole?: string,
3817
3844
  byTags?: ListOfStringsWithQualifier,
@@ -3827,6 +3854,7 @@ export type PhoneTreeActions = {
3827
3854
  'Conditional Split': PhoneTreeActionBuilder<"Conditional Split", {
3828
3855
  timezone?: Timezone,
3829
3856
  weeklyAvailabilities?: WeeklyAvailability[],
3857
+ hasCareTeam?: boolean,
3830
3858
  }>
3831
3859
  'Add to Queue': PhoneTreeActionBuilder<"Add to Queue", { queueId: string, playback?: Partial<PhonePlayback>, }>
3832
3860
  }
@@ -4272,6 +4300,8 @@ export interface AgentRecord extends AgentRecord_readonly, AgentRecord_required,
4272
4300
  embedding?: number[],
4273
4301
  source?: string,
4274
4302
  externalId?: string,
4303
+ indexed?: boolean,
4304
+ indexId?: string,
4275
4305
  }
4276
4306
 
4277
4307
  export type ModelForName_required = {