@tellescope/types-models 1.120.0 → 1.121.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
@@ -131,6 +131,7 @@ export type CustomEnduserFields = {
131
131
  "Select": BuildCustomEnduserField<'Select', { options: string[], other?: boolean }>,
132
132
  "Multiple Select": BuildCustomEnduserField<'Multiple Select', { options: string[] }>,
133
133
  "Text": BuildCustomEnduserField<'Text', { }>,
134
+ "Number": BuildCustomEnduserField<'Number', { }>,
134
135
  "Multiple Text": BuildCustomEnduserField<'Multiple Text', { }>,
135
136
  "Date": BuildCustomEnduserField<'Date', { }>,
136
137
  "File": BuildCustomEnduserField<'File', { }>,
@@ -309,6 +310,7 @@ export interface Organization extends Organization_readonly, Organization_requir
309
310
  hasConnectedPagerDuty?: boolean,
310
311
  hasConnectedSmartMeter?: boolean,
311
312
  hasConnectedAthena?: boolean,
313
+ hasConnectedActiveCampaign?: boolean,
312
314
  hasConnectedDocsumo?: boolean,
313
315
  hasConfiguredZoom?: boolean,
314
316
  hasTicketQueues?: boolean,
@@ -747,6 +749,8 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
747
749
  athenaPracticeId?: string,
748
750
  athenaDepartmentId?: string,
749
751
  vitalTriggersDisabled?: boolean,
752
+ defaultFromPhone?: string,
753
+ defaultFromEmail?: string,
750
754
  // unsubscribedFromEmail?: boolean,
751
755
  // unsubscribedFromSMS?: boolean,
752
756
  }
@@ -1207,6 +1211,7 @@ export type TicketActions = {
1207
1211
  "Complete Form": TicketActionBuilder<'Complete Form', { formId: string, formResponseId?: string }>,
1208
1212
  "Create Prescription": TicketActionBuilder<'Create Prescription', { }>,
1209
1213
  "Send SMS": TicketActionBuilder<'Send SMS', { templateId: string, smsId?: string }>,
1214
+ "Send Email": TicketActionBuilder<'Send Email', { templateId: string, emailId?: string }>,
1210
1215
  }
1211
1216
  export type TicketActionType = keyof TicketActions
1212
1217
  export type TicketAction = TicketActions[TicketActionType]
@@ -1569,6 +1574,12 @@ export type IntegrationAuthentication = (
1569
1574
  }
1570
1575
  )
1571
1576
 
1577
+ export type FieldMapping = {
1578
+ field: string,
1579
+ externalField: string,
1580
+ type: string,
1581
+ }
1582
+
1572
1583
  export interface Integration_readonly extends ClientRecord {
1573
1584
  lastSync?: number,
1574
1585
  lastSyncId?: string,
@@ -1599,6 +1610,7 @@ export interface Integration extends Integration_readonly, Integration_required,
1599
1610
  fhirExpiryDate?: number,
1600
1611
  defaultAttendeeId?: string,
1601
1612
  sendEmailOnSync?: boolean,
1613
+ enduserFieldMapping?: FieldMapping[],
1602
1614
  }
1603
1615
 
1604
1616
  export type BuildDatabaseRecordField <K extends string, V, O> = { type: K, value: V, options: O & { width?: string } }
@@ -1999,6 +2011,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
1999
2011
  bufferStartMinutes?: number,
2000
2012
  bufferEndMinutes?: number,
2001
2013
  canvasCoding?: CanvasCoding,
2014
+ canvasReasonCoding?: CanvasCoding,
2002
2015
  canvasLocationId?: string,
2003
2016
  completedAt?: Date | '',
2004
2017
  holdUntil?: Date,
@@ -2116,6 +2129,7 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
2116
2129
  bufferEndMinutes?: number,
2117
2130
 
2118
2131
  canvasCoding?: CanvasCoding,
2132
+ canvasReasonCoding?: CanvasCoding,
2119
2133
  tags?: string[],
2120
2134
  matchToHealthieTemplate?: boolean,
2121
2135
  useUserURL?: boolean,
@@ -2438,6 +2452,7 @@ export type CreateCarePlanAutomationAction = AutomationActionBuilder<'createCare
2438
2452
  }>
2439
2453
  export type CompleteCarePlanAutomationAction = AutomationActionBuilder<'completeCarePlan', {}>
2440
2454
  export type ZusSyncAutomationAction = AutomationActionBuilder<'zusSync', {}>
2455
+ export type ZusPullAutomationAction = AutomationActionBuilder<'zusPull', {}>
2441
2456
  export type PagerDutyCreateIncidentAutomationAction = AutomationActionBuilder<'pagerDutyCreateIncident', { type: string, title: string, serviceId: string }>
2442
2457
  export type SmartMeterOrderLineItem = { quantity: number, sku: string }
2443
2458
  export type SmartMeterPlaceOrderAutomationAction = AutomationActionBuilder<'smartMeterPlaceOrder', {
@@ -2449,6 +2464,7 @@ export type HealthieAddToCourseAutomationAction = AutomationActionBuilder<'healt
2449
2464
  export type HealthieSendChatAutomationAction = AutomationActionBuilder<'healthieSendChat', { templateId: string, identifier: string, includeCareTeam?: boolean }>
2450
2465
  export type CompleteTicketsAutomationAction = AutomationActionBuilder<'completeTickets', { journeyIds?: string[] }>
2451
2466
  export type ChangeContactTypeAutomationAction = AutomationActionBuilder<'changeContactType', { type: string }>
2467
+ export type ActiveCampaignSyncAutomationAction = AutomationActionBuilder<'activeCampaignSync', { }>
2452
2468
 
2453
2469
  export type IterableFieldsMapping = {
2454
2470
  iterable: string,
@@ -2498,6 +2514,7 @@ export type AutomationActionForType = {
2498
2514
  'createCarePlan': CreateCarePlanAutomationAction,
2499
2515
  'completeCarePlan': CompleteCarePlanAutomationAction,
2500
2516
  'zusSync': ZusSyncAutomationAction,
2517
+ 'zusPull': ZusPullAutomationAction,
2501
2518
  'pagerDutyCreateIncident': PagerDutyCreateIncidentAutomationAction,
2502
2519
  'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction,
2503
2520
  'healthieSync': HealthieSyncAutomationAction,
@@ -2505,6 +2522,7 @@ export type AutomationActionForType = {
2505
2522
  healthieSendChat: HealthieSendChatAutomationAction,
2506
2523
  'completeTickets': CompleteTicketsAutomationAction,
2507
2524
  'changeContactType': ChangeContactTypeAutomationAction,
2525
+ activeCampaignSync: ActiveCampaignSyncAutomationAction,
2508
2526
  }
2509
2527
  export type AutomationActionType = keyof AutomationActionForType
2510
2528
  export type AutomationAction = AutomationActionForType[AutomationActionType]
@@ -3163,6 +3181,11 @@ export type AnalyticsQueryOptions = {
3163
3181
  groupByCareTeam?: boolean, // supports multi-grouping for both care team and a normal field
3164
3182
  }
3165
3183
 
3184
+ export type AnalyticsFrameGroupingCategory = {
3185
+ category: string,
3186
+ keys: string[],
3187
+ }
3188
+
3166
3189
  export type AnalyticsFrameType = 'Percentage'
3167
3190
  export interface AnalyticsFrame_readonly extends ClientRecord {}
3168
3191
  export interface AnalyticsFrame_required {
@@ -3178,6 +3201,8 @@ export interface AnalyticsFrame extends
3178
3201
  type?: AnalyticsFrameType,
3179
3202
  groupMin?: number | '',
3180
3203
  groupMax?: number | '',
3204
+ displayType?: string,
3205
+ analyticsFrameGroupingCategory?: AnalyticsFrameGroupingCategory[],
3181
3206
  }
3182
3207
 
3183
3208
 
@@ -3233,6 +3258,9 @@ export type EnduserProfileViewBlocks = {
3233
3258
  formId: string,
3234
3259
  fieldIds: string[],
3235
3260
  }>,
3261
+ "Zus Encounters": EnduserProfileViewBlockBuilder<"Zus Encounters", {
3262
+ title: string,
3263
+ }>,
3236
3264
  }
3237
3265
  export type EnduserProfileViewBlockType = keyof EnduserProfileViewBlocks
3238
3266
  export type EnduserProfileViewBlock = EnduserProfileViewBlocks[EnduserProfileViewBlockType]
@@ -3637,6 +3665,7 @@ export type Diagnosis = {
3637
3665
  }
3638
3666
  export interface EnduserEncounter_readonly extends ClientRecord {
3639
3667
  externalId?: string,
3668
+ source?: string,
3640
3669
  integration?: 'Candid',
3641
3670
  }
3642
3671
  export interface EnduserEncounter_updatesDisabled {}
@@ -3653,6 +3682,11 @@ export interface EnduserEncounter extends EnduserEncounter_readonly, EnduserEnco
3653
3682
  serviceFacilityAddress?: Address, // could also collect rendering provider address, but it's typically the same as service facility address
3654
3683
  modifiers?: string[],
3655
3684
  error?: string, // e.g. for errors with push to Candid
3685
+ class?: string, // for Zus, e.g. Emergency or Ambulator
3686
+ status?: string, // for Zus, e.g. "finished" or "in-progress" in zus as "Finished" or "In Progress"
3687
+ location?: string, // for Zus, name of location
3688
+ providerNames?: string[], // for Zus, display name of provider
3689
+ diagnosisDisplays?: string[], // for Zus, display name of diagnoses
3656
3690
  }
3657
3691
 
3658
3692
  export interface TicketQueue_readonly extends ClientRecord {