@tellescope/types-models 1.91.0 → 1.92.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.
@@ -219,7 +219,7 @@ export type AthenaFieldSync = {
219
219
  dateFormat?: string;
220
220
  };
221
221
  export type AthenaSubscription = {
222
- type: 'patients';
222
+ type: 'patients' | 'appointments' | 'orders' | 'chart/healthhistory/problems';
223
223
  frequencyInMinutes: number;
224
224
  lastSyncedAt: Date;
225
225
  };
@@ -317,12 +317,19 @@ export interface Organization extends Organization_readonly, Organization_requir
317
317
  mfaxAccountId?: string;
318
318
  athenaFieldsSync?: AthenaFieldSync[];
319
319
  athenaSubscriptions?: AthenaSubscription[];
320
- athenaDepartmentIds?: string[];
320
+ athenaDepartments?: {
321
+ id: string;
322
+ timezone: Timezone;
323
+ }[];
321
324
  fieldsToAdminNote?: string[];
322
325
  canvasMessageSync?: {
323
326
  id: string;
324
327
  questionId: string;
325
328
  };
329
+ dosespotClinics?: {
330
+ id: string;
331
+ name: string;
332
+ }[];
326
333
  }
327
334
  export type OrganizationTheme = {
328
335
  name: string;
@@ -401,6 +408,7 @@ export interface UserSession extends Session, OrganizationLimits {
401
408
  eat?: boolean;
402
409
  lockedOutUntil?: number;
403
410
  duration?: number;
411
+ doseSpotUserId?: string;
404
412
  availablePhoneNumbers: string[];
405
413
  }
406
414
  export type StateCredentialInfo = {
@@ -489,6 +497,7 @@ export interface User extends User_required, User_readonly, User_updatesDisabled
489
497
  lockedOutUntil?: number;
490
498
  elationUserId?: number;
491
499
  iOSBadgeCount?: number;
500
+ doseSpotUserId?: string;
492
501
  }
493
502
  export type Preference = 'email' | 'sms' | 'call' | 'chat';
494
503
  export type CustomField = string | number | object | {
@@ -549,6 +558,7 @@ export type EnduserInsurance = {
549
558
  gender?: TellescopeGender;
550
559
  dateOfBirth?: string;
551
560
  };
561
+ payerType?: string;
552
562
  };
553
563
  export type TellescopeGender = "Male" | "Female" | "Other" | "Unknown";
554
564
  export interface Enduser_readonly extends UserActivityInfo, ClientRecord, EnduserEngagementTimestamps {
@@ -560,13 +570,13 @@ export interface Enduser_readonly extends UserActivityInfo, ClientRecord, Enduse
560
570
  stripeSubscription?: StripeSubscription;
561
571
  _dateOfBirth?: Date;
562
572
  _age?: number;
563
- references?: RelatedRecord[];
564
573
  mergedIds?: string[];
565
574
  _updateKey?: string;
566
575
  }
567
576
  export interface Enduser_required {
568
577
  }
569
578
  export interface Enduser_updatesDisabled {
579
+ references?: RelatedRecord[];
570
580
  }
571
581
  export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_updatesDisabled {
572
582
  unsubscribePhone?: boolean;
@@ -635,6 +645,8 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
635
645
  id: string;
636
646
  }[];
637
647
  salesforceId?: string;
648
+ athenaPracticeId?: string;
649
+ athenaDepartmentId?: string;
638
650
  }
639
651
  export interface EnduserCustomType_readonly extends ClientRecord {
640
652
  }
@@ -1027,6 +1039,9 @@ export interface MessageTemplate extends MessageTemplate_readonly, MessageTempla
1027
1039
  mode?: MessageTemplateMode;
1028
1040
  embeddingHash?: string;
1029
1041
  isMarketing?: boolean;
1042
+ forChannels?: string[];
1043
+ forRoles?: string[];
1044
+ hideFromCompose?: boolean;
1030
1045
  }
1031
1046
  export interface File_readonly extends ClientRecord {
1032
1047
  secureName: string;
@@ -1248,6 +1263,7 @@ export interface CanvasConsentCategory extends CanvasCoding {
1248
1263
  export type FormFieldOptions = FormFieldValidation & {
1249
1264
  tableChoices?: TableInputChoice[];
1250
1265
  choices?: string[];
1266
+ canvasCodings?: CanvasCoding[];
1251
1267
  from?: number;
1252
1268
  to?: number;
1253
1269
  radio?: boolean;
@@ -1776,6 +1792,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
1776
1792
  bufferEndMinutes?: number;
1777
1793
  canvasCoding?: CanvasCoding;
1778
1794
  canvasLocationId?: string;
1795
+ completedAt?: Date | '';
1779
1796
  }
1780
1797
  export type PaymentProcessor = 'Square' | 'Stripe';
1781
1798
  export interface Product_readonly extends ClientRecord {
@@ -2075,6 +2092,9 @@ export type AfterActionAutomationEvent = AutomationEventBuilder<'afterAction', A
2075
2092
  field: string;
2076
2093
  before?: boolean;
2077
2094
  };
2095
+ eventCondition?: {
2096
+ before?: boolean;
2097
+ };
2078
2098
  }>;
2079
2099
  export type FormUnsubmittedEvent = AutomationEventBuilder<'formUnsubmitted', FormUnsubmittedEventInfo>;
2080
2100
  export type FormsUnsubmittedEvent = AutomationEventBuilder<'formsUnsubmitted', FormUnsubmittedEventInfo>;
@@ -2533,6 +2553,7 @@ export interface AutomatedAction_readonly extends ClientRecord {
2533
2553
  lockedAt?: number;
2534
2554
  lockId?: string;
2535
2555
  lockCount?: number;
2556
+ processedAt?: Date;
2536
2557
  }
2537
2558
  export interface AutomatedAction_required {
2538
2559
  enduserId: string;
@@ -3015,6 +3036,9 @@ export type AutomationTriggerEvents = {
3015
3036
  'Appointment Created': AutomationTriggerEventBuilder<"Appointment Created", {
3016
3037
  titles?: string[];
3017
3038
  }, {}>;
3039
+ 'Appointment Completed': AutomationTriggerEventBuilder<"Appointment Completed", {
3040
+ titles?: string[];
3041
+ }, {}>;
3018
3042
  'Medication Added': AutomationTriggerEventBuilder<"Medication Added", {
3019
3043
  titles: string[];
3020
3044
  }, {}>;