@tellescope/types-models 1.243.1 → 1.244.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
@@ -1517,6 +1517,7 @@ export interface MessageTemplate extends MessageTemplate_readonly, MessageTempla
1517
1517
  forChannels?: string[],
1518
1518
  forRoles?: string[],
1519
1519
  forEntityTypes?: string[],
1520
+ forUserTags?: ListOfStringsWithQualifier,
1520
1521
  hideFromCompose?: boolean,
1521
1522
  tags?: string[],
1522
1523
  archivedAt?: Date | '',
@@ -1615,6 +1616,7 @@ export interface Ticket extends Ticket_readonly, Ticket_required, Ticket_updates
1615
1616
  message?: string;
1616
1617
  type?: string;
1617
1618
  owner?: string;
1619
+ skipCareTeamAssignment?: boolean,
1618
1620
  skillsRequired?: string[];
1619
1621
  chatRoomId?: string;
1620
1622
  priority?: number;
@@ -1676,6 +1678,11 @@ export interface TicketTemplate extends TicketTemplate_readonly, TicketTemplate_
1676
1678
  priority?: number;
1677
1679
  tags?: string[];
1678
1680
  archivedAt?: Date | '';
1681
+ actions?: TicketAction[];
1682
+ closeOnFinishedActions?: boolean;
1683
+ contextFormIds?: string[];
1684
+ contextEnduserFields?: string[];
1685
+ contextContentIds?: string[];
1679
1686
  }
1680
1687
 
1681
1688
  export type AttendeeInfo = {
@@ -1747,7 +1754,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
1747
1754
  }
1748
1755
 
1749
1756
  export type FormFieldLiteralType = 'Rich Text' | 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' /* date + time */ | 'dateString' | 'rating' | 'Time' | "Timezone"
1750
- export type FormFieldComplexType = "Conditions" | "Allergies" | "Emotii" | "Hidden Value" | "Redirect" | "Height" | "Appointment Booking" | "multiple_choice" | "file" | 'files' | "signature" | 'ranking' | 'Question Group' | 'Table Input' | "Address" | "Chargebee" | "Stripe" | "Dropdown" | "Database Select" | "Medications" | "Related Contacts" | "Insurance" | "Bridge Eligibility" | "Beluga Patient Preference" | "Pharmacy Search"
1757
+ export type FormFieldComplexType = "Conditions" | "Allergies" | "Emotii" | "Hidden Value" | "Redirect" | "Height" | "Appointment Booking" | "multiple_choice" | "file" | 'files' | "signature" | 'ranking' | 'Question Group' | 'Table Input' | "Address" | "Chargebee" | "Stripe" | "Dropdown" | "Database Select" | "Medications" | "Related Contacts" | "Insurance" | "Bridge Eligibility" | "Candid Eligibility" | "Beluga Patient Preference" | "Pharmacy Search"
1751
1758
  export type FormFieldType = FormFieldLiteralType | FormFieldComplexType
1752
1759
 
1753
1760
  export type PreviousFormFieldType = 'root' | 'after' | 'previousEquals' | 'compoundLogic'
@@ -1790,7 +1797,8 @@ export type FormFieldValidation = {
1790
1797
  minLength?: number,
1791
1798
  maxLength?: number,
1792
1799
  repeat?: boolean,
1793
-
1800
+ minDateOffsetMs?: number,
1801
+ maxDateOffsetMs?: number,
1794
1802
  }
1795
1803
  export type CanvasCoding = {
1796
1804
  system: string,
@@ -1852,6 +1860,8 @@ export type FormFieldOptions = FormFieldValidation & {
1852
1860
  bridgeServiceTypeIds?: string[], // Bridge service type IDs for eligibility checks (runs parallel checks and combines results)
1853
1861
  bridgeEligibilityType?: 'Soft' | 'Hard', // Type of Bridge eligibility check (defaults to 'Soft')
1854
1862
  useBridgeEligibilityResult?: boolean, // Use provider list from most recent Bridge eligibility check
1863
+ candidServiceCode?: string, // Candid service code for eligibility checks (e.g., "30", "47", "98")
1864
+ candidNPI?: string, // Rendering provider NPI for Candid eligibility checks
1855
1865
  addressFields?: string[], // supports specifying just 'state', for now
1856
1866
  validStates?: string[],
1857
1867
  autoAdvance?: boolean,
@@ -1965,6 +1975,7 @@ export type FormCustomization = {
1965
1975
  maxWidth?: number,
1966
1976
  primaryColor?: string, // Custom primary/accent color for buttons, progress bar, etc.
1967
1977
  secondaryColor?: string, // Custom secondary color for outlined buttons, etc.
1978
+ showLogoOnIntakePage?: boolean, // Show logo on V2 public form intake page (off by default)
1968
1979
  }
1969
1980
  export interface Form_readonly extends ClientRecord {
1970
1981
  numFields: number,
@@ -2155,7 +2166,8 @@ export type DatabaseRecordFields = {
2155
2166
  showConditions?: Record<any, any>,
2156
2167
  required?: boolean,
2157
2168
  hideFromTable?: boolean,
2158
- wrap?: string,
2169
+ wrap?: string,
2170
+ trimStrings?: boolean,
2159
2171
  options?: DatabaseRecordFieldsInfo[K]['options']
2160
2172
  }
2161
2173
  }
@@ -2280,6 +2292,12 @@ export type FormResponseAnswerBridgeEligibility = FormResponseValueAnswerBuilder
2280
2292
  status?: string, // Aggregated eligibility status
2281
2293
  userIds?: string[], // Aggregated user IDs who cover the patient
2282
2294
  }>
2295
+ export type FormResponseAnswerCandidEligibility = FormResponseValueAnswerBuilder<'Candid Eligibility', {
2296
+ payerId?: string, // Payer ID used for this eligibility check
2297
+ status?: string, // Eligibility check status (COMPLETED/FAILED/PENDING)
2298
+ coverageId?: string, // Candid coverage ID for polling
2299
+ benefits?: object, // Benefits data from eligibility check
2300
+ }>
2283
2301
  export type FormResponseAnswerHeight = FormResponseValueAnswerBuilder<'Height', { feet: number, inches: number }>
2284
2302
  export type FormResponseAnswerRedirect = FormResponseValueAnswerBuilder<'Redirect', string>
2285
2303
  export type FormResponseAnswerAllergies = FormResponseValueAnswerBuilder<'Allergies', AllergyResponse[]>
@@ -2350,6 +2368,7 @@ export type FormResponseValueAnswer = (
2350
2368
  | FormResponseAnswerChargebee
2351
2369
  | FormResponseAnswerBelugaPatientPreference
2352
2370
  | FormResponseAnswerBridgeEligibility
2371
+ | FormResponseAnswerCandidEligibility
2353
2372
  | FormResponseAnswerPharmacySearch
2354
2373
  )
2355
2374
 
@@ -2394,6 +2413,7 @@ export type AnswerForType = {
2394
2413
  'Related Contacts': FormResponseAnswerRelatedContacts['value']
2395
2414
  'Insurance': FormResponseAnswerInsurance['value']
2396
2415
  'Bridge Eligibility': FormResponseAnswerBridgeEligibility['value']
2416
+ 'Candid Eligibility': FormResponseAnswerCandidEligibility['value']
2397
2417
  'Appointment Booking': FormResponseAnswerAppointmentBooking['value']
2398
2418
  'Chargebee': FormResponseAnswerChargebee['value']
2399
2419
  'Height': FormResponseAnswerHeight['value']
@@ -2549,7 +2569,7 @@ export type CalendarEventReminderNotificationInfo = {
2549
2569
  channel?: 'Email' | 'SMS',
2550
2570
  useTemplateForSMS?: boolean,
2551
2571
  }
2552
- type BuildCalendarEventReminderInfo <T, I> = { type: T, info: I, msBeforeStartTime: number, dontSendIfPassed?: boolean, didRemind?: boolean, dontSendIfJoined?: boolean }
2572
+ type BuildCalendarEventReminderInfo <T, I> = { type: T, info: I, msBeforeStartTime: number, dontSendIfPassed?: boolean, didRemind?: boolean, dontSendIfJoined?: boolean, skipEnduserIds?: string[] }
2553
2573
  export type CalendarEventReminderInfoForType = {
2554
2574
  "webhook": BuildCalendarEventReminderInfo<'webhook', {}>,
2555
2575
  "add-to-journey": BuildCalendarEventReminderInfo<'add-to-journey', { journeyId: string, firstAttendeeOnly?: boolean }>,
@@ -2691,6 +2711,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
2691
2711
  preventCancelInPortal?: boolean,
2692
2712
  sendIcsEmail?: boolean,
2693
2713
  healthieInsuranceBillingEnabled?: boolean,
2714
+ resendRemindersOnAttendeeAdd?: boolean,
2694
2715
  // isAllDay?: boolean,
2695
2716
  }
2696
2717
 
@@ -2828,6 +2849,7 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
2828
2849
  athenaBookingTypeId?: string, // for booking a different type than the slot
2829
2850
  healthieInsuranceBillingEnabled?: boolean,
2830
2851
  replaceHostOnReschedule?: boolean, // when enabled, replaces previous host(s) with the new host during reschedule
2852
+ resendRemindersOnAttendeeAdd?: boolean,
2831
2853
  }
2832
2854
 
2833
2855
  export interface AppointmentLocation_readonly extends ClientRecord {}
@@ -2986,11 +3008,17 @@ export interface AutomationForTemplate { templateId: string }
2986
3008
  export type SenderAssignmentStrategies = {
2987
3009
  'Care Team Primary': {
2988
3010
  type: 'Care Team Primary',
2989
- info: {},
3011
+ info: {},
2990
3012
  },
2991
3013
  'Default': {
2992
3014
  type: 'Default',
2993
- info: {},
3015
+ info: {},
3016
+ },
3017
+ 'Care Team': {
3018
+ type: 'Care Team',
3019
+ info: {
3020
+ tags?: ListOfStringsWithQualifier,
3021
+ },
2994
3022
  },
2995
3023
  }
2996
3024
  export type SenderAssignmentStrategyType = keyof SenderAssignmentStrategies
@@ -3212,20 +3240,46 @@ export type MetriportSyncAutomationAction = AutomationActionBuilder<'metriportSy
3212
3240
  export type ZusSubscribeAutomationAction = AutomationActionBuilder<'zusSubscribe', { practitionerId: string, packageIds: string[] }>
3213
3241
  export type PagerDutyCreateIncidentAutomationAction = AutomationActionBuilder<'pagerDutyCreateIncident', { type: string, title: string, serviceId: string }>
3214
3242
  export type SmartMeterOrderLineItem = { quantity: number, sku: string }
3215
- export type SmartMeterPlaceOrderAutomationAction = AutomationActionBuilder<'smartMeterPlaceOrder', {
3243
+ export type SmartMeterPlaceOrderAutomationAction = AutomationActionBuilder<'smartMeterPlaceOrder', {
3216
3244
  lines: SmartMeterOrderLineItem[],
3217
3245
  shipping?: string,
3218
3246
  }>
3247
+
3248
+ export type BelugaAutoRxPatientPreferenceItem = {
3249
+ name: string,
3250
+ strength: string,
3251
+ refills: string,
3252
+ quantity: string,
3253
+ medId: string,
3254
+ }
3255
+ export type BelugaAutoRxAutomationAction = AutomationActionBuilder<'belugaAutoRx', {
3256
+ patientPreference: BelugaAutoRxPatientPreferenceItem,
3257
+ pharmacyId: string,
3258
+ }>
3259
+ export type BelugaUpdateVisitPatientPreferenceItem = {
3260
+ name: string,
3261
+ strength: string,
3262
+ refills: string,
3263
+ quantity: string,
3264
+ daysSupply: string,
3265
+ medId: string,
3266
+ }
3267
+ export type BelugaUpdateVisitAutomationAction = AutomationActionBuilder<'belugaUpdateVisit', {
3268
+ patientPreferences: BelugaUpdateVisitPatientPreferenceItem[],
3269
+ pharmacyId: string,
3270
+ }>
3219
3271
  export type SendChatAutomationAction = AutomationActionBuilder<'sendChat', {
3220
3272
  templateId: string,
3221
3273
  identifier: string,
3222
3274
  includeCareTeam?: boolean,
3275
+ careTeamTags?: ListOfStringsWithQualifier,
3223
3276
  userIds?: string[], // for when not includeCareTeam
3224
3277
  sendToDestinationOfRelatedContactTypes?: string[],
3225
3278
  }>
3226
3279
  export type HealthieSyncAutomationAction = AutomationActionBuilder<'healthieSync', {}>
3227
3280
  export type HealthieAddToCourseAutomationAction = AutomationActionBuilder<'healthieAddToCourse', { courseId: string }>
3228
3281
  export type HealthieSendChatAutomationAction = AutomationActionBuilder<'healthieSendChat', { templateId: string, identifier: string, includeCareTeam?: boolean }>
3282
+ export type HealthiePushFormsAutomationAction = AutomationActionBuilder<'healthiePushForms', { formIds: string[] }>
3229
3283
  export type CompleteTicketsAutomationAction = AutomationActionBuilder<'completeTickets', { journeyIds?: string[] }>
3230
3284
  export type ChangeContactTypeAutomationAction = AutomationActionBuilder<'changeContactType', { type: string }>
3231
3285
  export type ActiveCampaignSyncAutomationAction = AutomationActionBuilder<'activeCampaignSync', { }>
@@ -3375,9 +3429,12 @@ export type AutomationActionForType = {
3375
3429
  'zusSubscribe': ZusSubscribeAutomationAction,
3376
3430
  'pagerDutyCreateIncident': PagerDutyCreateIncidentAutomationAction,
3377
3431
  'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction,
3432
+ 'belugaAutoRx': BelugaAutoRxAutomationAction,
3433
+ 'belugaUpdateVisit': BelugaUpdateVisitAutomationAction,
3378
3434
  'healthieSync': HealthieSyncAutomationAction,
3379
3435
  healthieAddToCourse: HealthieAddToCourseAutomationAction,
3380
3436
  healthieSendChat: HealthieSendChatAutomationAction,
3437
+ healthiePushForms: HealthiePushFormsAutomationAction,
3381
3438
  'completeTickets': CompleteTicketsAutomationAction,
3382
3439
  'changeContactType': ChangeContactTypeAutomationAction,
3383
3440
  activeCampaignSync: ActiveCampaignSyncAutomationAction,
@@ -3744,7 +3801,8 @@ export interface AutomatedAction_updatesDisabled {}
3744
3801
  export interface AutomatedAction extends AutomatedAction_readonly, AutomatedAction_required, AutomatedAction_updatesDisabled {
3745
3802
  isNOP?: boolean,
3746
3803
  cancelledBy?: string,
3747
- journeyContext?: JourneyContext
3804
+ journeyContext?: JourneyContext,
3805
+ externalId?: string,
3748
3806
  }
3749
3807
 
3750
3808
  export interface UserLog_readonly extends ClientRecord {
@@ -4571,7 +4629,11 @@ export type AutomationTriggerEvents = {
4571
4629
  'Form Group Incomplete': AutomationTriggerEventBuilder<"Form Group Incomplete", { groupId: string, intervalInMS: number }, {}>,
4572
4630
  'Message Opened': AutomationTriggerEventBuilder<"Message Opened", { templateIds?: string[] }, {}>,
4573
4631
  'Message Link Clicked': AutomationTriggerEventBuilder<"Message Link Clicked", { templateIds?: string[] }, {}>,
4574
- 'Healthie Note Locked': AutomationTriggerEventBuilder<"Healthie Note Locked", {
4632
+ 'Healthie Note Locked': AutomationTriggerEventBuilder<"Healthie Note Locked", {
4633
+ healthieFormIds?: string[],
4634
+ answersCondition?: Record<string, any>,
4635
+ }, {}>,
4636
+ 'Healthie Form Answer Group Created': AutomationTriggerEventBuilder<"Healthie Form Answer Group Created", {
4575
4637
  healthieFormIds?: string[],
4576
4638
  answersCondition?: Record<string, any>,
4577
4639
  }, {}>,