@tellescope/types-models 1.171.1 → 1.173.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.
@@ -390,6 +390,7 @@ export interface Organization extends Organization_readonly, Organization_requir
390
390
  }[];
391
391
  groups?: string[];
392
392
  observationInvalidationReasons?: string[];
393
+ chargebeeEnvironments?: string[];
393
394
  }
394
395
  export type OrganizationTheme = {
395
396
  name: string;
@@ -755,6 +756,9 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
755
756
  lastDoseSpotSyncAt?: Date;
756
757
  diagnoses?: EnduserDiagnosis[];
757
758
  lockedFromPortal?: boolean;
759
+ chargebeeEnvironment?: string;
760
+ chargebeeId?: string;
761
+ healthieSyncError?: string;
758
762
  }
759
763
  export interface EnduserCustomType_readonly extends ClientRecord {
760
764
  }
@@ -994,7 +998,7 @@ export interface Email extends Email_required, Email_readonly, Email_updatesDisa
994
998
  isBounce?: boolean;
995
999
  via?: string;
996
1000
  readBy?: {
997
- [index: string]: Date;
1001
+ [index: string]: Date | '';
998
1002
  };
999
1003
  journeyContext?: JourneyContext;
1000
1004
  sendAt?: Date | '';
@@ -1050,7 +1054,7 @@ export interface SMSMessage extends SMSMessage_readonly, SMSMessage_required, SM
1050
1054
  isAutoreply?: boolean;
1051
1055
  userId?: string;
1052
1056
  readBy?: {
1053
- [index: string]: Date;
1057
+ [index: string]: Date | '';
1054
1058
  };
1055
1059
  hiddenBy?: {
1056
1060
  [index: string]: Date | '';
@@ -1085,6 +1089,7 @@ export interface ChatRoom_readonly extends ClientRecord {
1085
1089
  }
1086
1090
  export type ChatRoomUserInfo = {
1087
1091
  unreadCount: number;
1092
+ markedUnread?: boolean;
1088
1093
  };
1089
1094
  export interface ChatRoom_required {
1090
1095
  }
@@ -1144,7 +1149,7 @@ export interface ChatMessage extends ChatMessage_readonly, ChatMessage_required,
1144
1149
  senderId: string | null;
1145
1150
  html?: string;
1146
1151
  readBy?: {
1147
- [index: string]: Date;
1152
+ [index: string]: Date | '';
1148
1153
  };
1149
1154
  hiddenBy?: {
1150
1155
  [index: string]: Date | '';
@@ -1382,7 +1387,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
1382
1387
  discussionRoomId?: string;
1383
1388
  }
1384
1389
  export type FormFieldLiteralType = 'Rich Text' | 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' | 'dateString' | 'rating' | 'Time';
1385
- export type FormFieldComplexType = "Conditions" | "Allergies" | "Emotii" | "Hidden Value" | "Redirect" | "Height" | "Appointment Booking" | "multiple_choice" | "file" | 'files' | "signature" | 'ranking' | 'Question Group' | 'Table Input' | "Address" | "Stripe" | "Dropdown" | "Database Select" | "Medications" | "Related Contacts" | "Insurance";
1390
+ 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";
1386
1391
  export type FormFieldType = FormFieldLiteralType | FormFieldComplexType;
1387
1392
  export type PreviousFormFieldType = 'root' | 'after' | 'previousEquals' | 'compoundLogic';
1388
1393
  export type PreviousFormFieldBuilder<T extends PreviousFormFieldType, V> = {
@@ -1420,6 +1425,10 @@ export type TableInputChoices = {
1420
1425
  choices: string[];
1421
1426
  }>;
1422
1427
  Date: TableChoiceBuilder<'Date', {}>;
1428
+ Database: TableChoiceBuilder<'Database', {
1429
+ databaseId: string;
1430
+ databaseLabel: string;
1431
+ }>;
1423
1432
  };
1424
1433
  export type TableInputChoiceType = keyof TableInputChoices;
1425
1434
  export type TableInputChoice = TableInputChoices[TableInputChoiceType];
@@ -1497,6 +1506,8 @@ export type FormFieldOptions = FormFieldValidation & {
1497
1506
  observationDisplay?: string;
1498
1507
  observationUnit?: string;
1499
1508
  autoUploadFiles?: boolean;
1509
+ chargebeeEnvironment?: string;
1510
+ chargebeePlanId?: string;
1500
1511
  };
1501
1512
  export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>;
1502
1513
  export type FormFieldCalloutConditionComparison = 'Equals';
@@ -1842,6 +1853,9 @@ export type FormResponseAnswerHeight = FormResponseValueAnswerBuilder<'Height',
1842
1853
  export type FormResponseAnswerRedirect = FormResponseValueAnswerBuilder<'Redirect', string>;
1843
1854
  export type FormResponseAnswerAllergies = FormResponseValueAnswerBuilder<'Allergies', AllergyResponse[]>;
1844
1855
  export type FormResponseAnswerConditions = FormResponseValueAnswerBuilder<'Conditions', ConditionResponse[]>;
1856
+ export type FormResponseAnswerChargebee = FormResponseValueAnswerBuilder<'Chargebee', {
1857
+ url: string;
1858
+ }>;
1845
1859
  export type FormResponseAnswerSignatureValue = {
1846
1860
  fullName: string;
1847
1861
  signed: boolean;
@@ -1863,7 +1877,7 @@ export type FormResponseAnswerFileValue = {
1863
1877
  };
1864
1878
  export type FormResponseAnswerFile = FormResponseValueAnswerBuilder<'file', FormResponseAnswerFileValue>;
1865
1879
  export type FormResponseAnswerFiles = FormResponseValueAnswerBuilder<'files', FormResponseAnswerFileValue[]>;
1866
- export type FormResponseValueAnswer = (FormResponseAnswerGroup | FormResponseAnswerTable | FormResponseAnswerDescription | FormResponseAnswerEmail | FormResponseAnswerNumber | FormResponseAnswerPhone | FormResponseAnswerString | FormResponseAnswerStringLong | FormResponseAnswerRichText | FormResponseAnswerSignature | FormResponseAnswerMultipleChoice | FormResponseAnswerFile | FormResponseAnswerFiles | FormResponseAnswerDate | FormResponseAnswerRating | FormResponseAnswerRanking | FormResponseAnswerDateString | FormResponseAnswerAddress | FormResponseAnswerTime | FormResponseAnswerStripe | FormResponseAnswerDropdown | FormResponseAnswerDatabaseSelect | FormResponseAnswerMedications | FormResponseAnswerRelatedContacts | FormResponseAnswerInsurance | FormResponseAnswerAppointmentBooking | FormResponseAnswerHeight | FormResponseAnswerRedirect | FormResponseAnswerHiddenValue | FormResponseAnswerEmotii | FormResponseAnswerAllergies | FormResponseAnswerConditions);
1880
+ export type FormResponseValueAnswer = (FormResponseAnswerGroup | FormResponseAnswerTable | FormResponseAnswerDescription | FormResponseAnswerEmail | FormResponseAnswerNumber | FormResponseAnswerPhone | FormResponseAnswerString | FormResponseAnswerStringLong | FormResponseAnswerRichText | FormResponseAnswerSignature | FormResponseAnswerMultipleChoice | FormResponseAnswerFile | FormResponseAnswerFiles | FormResponseAnswerDate | FormResponseAnswerRating | FormResponseAnswerRanking | FormResponseAnswerDateString | FormResponseAnswerAddress | FormResponseAnswerTime | FormResponseAnswerStripe | FormResponseAnswerDropdown | FormResponseAnswerDatabaseSelect | FormResponseAnswerMedications | FormResponseAnswerRelatedContacts | FormResponseAnswerInsurance | FormResponseAnswerAppointmentBooking | FormResponseAnswerHeight | FormResponseAnswerRedirect | FormResponseAnswerHiddenValue | FormResponseAnswerEmotii | FormResponseAnswerAllergies | FormResponseAnswerConditions | FormResponseAnswerChargebee);
1867
1881
  export type FormResponseValue = {
1868
1882
  fieldId: string;
1869
1883
  fieldTitle: string;
@@ -1904,6 +1918,7 @@ export type AnswerForType = {
1904
1918
  'Related Contacts': FormResponseAnswerRelatedContacts['value'];
1905
1919
  'Insurance': FormResponseAnswerInsurance['value'];
1906
1920
  'Appointment Booking': FormResponseAnswerAppointmentBooking['value'];
1921
+ 'Chargebee': FormResponseAnswerChargebee['value'];
1907
1922
  'Height': FormResponseAnswerHeight['value'];
1908
1923
  'Redirect': FormResponseAnswerRedirect['value'];
1909
1924
  'Hidden Value': FormResponseAnswerHiddenValue['value'];
@@ -2623,6 +2638,7 @@ export type ShareContentAutomationAction = AutomationActionBuilder<'shareContent
2623
2638
  }>;
2624
2639
  export type AddEnduserTagsAutomationAction = AutomationActionBuilder<'addEnduserTags', {
2625
2640
  tags: string[];
2641
+ replaceExisting?: boolean;
2626
2642
  }>;
2627
2643
  export type RemoveEnduserTagsAutomationAction = AutomationActionBuilder<'removeEnduserTags', {
2628
2644
  tags: string[];
@@ -2633,6 +2649,7 @@ export type AddToJourneyAutomationAction = AutomationActionBuilder<'addToJourney
2633
2649
  export type RemoveFromJourneyAutomationAction = AutomationActionBuilder<'removeFromJourney', {
2634
2650
  journeyId: string;
2635
2651
  }>;
2652
+ export type RemoveFromAllJourneysAutomationAction = AutomationActionBuilder<'removeFromAllJourneys', {}>;
2636
2653
  export type IterableSendEmailAutomationAction = AutomationActionBuilder<'iterableSendEmail', {
2637
2654
  campaignId: string;
2638
2655
  }>;
@@ -2694,6 +2711,12 @@ export type SwitchToRelatedContactAutomationAction = AutomationActionBuilder<'sw
2694
2711
  }>;
2695
2712
  export type ElationSyncAutomationAction = AutomationActionBuilder<'elationSync', {}>;
2696
2713
  export type CanvasSyncAutomationAction = AutomationActionBuilder<'canvasSync', {}>;
2714
+ export type DevelopHealthMedicationEligibilityAutomationAction = AutomationActionBuilder<'developHealthMedEligibility', {
2715
+ drugs: DevelopHealthDrug[];
2716
+ diagnoses: DevelopHealthDiagnosis[];
2717
+ providerUserId: string;
2718
+ mock_result?: DevelopHealthMockResult;
2719
+ }>;
2697
2720
  export type IterableFieldsMapping = {
2698
2721
  iterable: string;
2699
2722
  tellescope: string;
@@ -2736,6 +2759,7 @@ export type AutomationActionForType = {
2736
2759
  'removeEnduserTags': RemoveEnduserTagsAutomationAction;
2737
2760
  'addToJourney': AddToJourneyAutomationAction;
2738
2761
  'removeFromJourney': RemoveFromJourneyAutomationAction;
2762
+ removeFromAllJourneys: RemoveFromAllJourneysAutomationAction;
2739
2763
  'iterableSendEmail': IterableSendEmailAutomationAction;
2740
2764
  'iterableCustomEvent': IterableCustomEventAutomationAction;
2741
2765
  'zendeskCreateTicket': ZendeskCreateTicketAutomationAction;
@@ -2756,6 +2780,7 @@ export type AutomationActionForType = {
2756
2780
  'elationSync': ElationSyncAutomationAction;
2757
2781
  canvasSync: CanvasSyncAutomationAction;
2758
2782
  pushFormsToPortal: PushFormsAutomationAction;
2783
+ developHealthMedEligibility: DevelopHealthMedicationEligibilityAutomationAction;
2759
2784
  };
2760
2785
  export type AutomationActionType = keyof AutomationActionForType;
2761
2786
  export type AutomationAction = AutomationActionForType[AutomationActionType];
@@ -3301,6 +3326,7 @@ export type AnalyticsQueryFilterForType = {
3301
3326
  };
3302
3327
  born?: DateRange;
3303
3328
  tags?: ListOfStringsWithQualifier;
3329
+ entityTypes?: string[];
3304
3330
  };
3305
3331
  "Calendar Events": {
3306
3332
  userIds?: string[];
@@ -3609,6 +3635,7 @@ export type AutomationTriggerActions = {
3609
3635
  "Remove From All Journeys": AutomationTriggerActionBuilder<'Remove From All Journeys', {}>;
3610
3636
  "Add Tags": AutomationTriggerActionBuilder<'Add Tags', {
3611
3637
  tags: string[];
3638
+ replaceExisting?: boolean;
3612
3639
  }>;
3613
3640
  "Remove Tags": AutomationTriggerActionBuilder<'Remove Tags', {
3614
3641
  tags: string[];
@@ -3761,6 +3788,9 @@ export type AutomationTriggerEvents = {
3761
3788
  'Form Started': AutomationTriggerEventBuilder<"Form Started", {
3762
3789
  formIds?: string[];
3763
3790
  }, {}>;
3791
+ "Eligibility Result Received": AutomationTriggerActionBuilder<'Eligibility Result Received', {
3792
+ source: string;
3793
+ }>;
3764
3794
  };
3765
3795
  export type AutomationTriggerEventType = keyof AutomationTriggerEvents;
3766
3796
  export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType];
@@ -3917,6 +3947,7 @@ export type PhoneTreeActions = {
3917
3947
  playback?: Partial<PhonePlayback>;
3918
3948
  duration?: number;
3919
3949
  addToCareTeam?: boolean;
3950
+ dialRecentAgent?: boolean;
3920
3951
  }>;
3921
3952
  "Select Care Team Member": PhoneTreeActionBuilder<"Select Care Team Member", {
3922
3953
  playback?: Partial<PhonePlayback>;
@@ -3929,6 +3960,7 @@ export type PhoneTreeActions = {
3929
3960
  timezone?: Timezone;
3930
3961
  weeklyAvailabilities?: WeeklyAvailability[];
3931
3962
  hasCareTeam?: boolean;
3963
+ hasOneCareTeamMember?: boolean;
3932
3964
  }>;
3933
3965
  'Add to Queue': PhoneTreeActionBuilder<"Add to Queue", {
3934
3966
  queueId: string;
@@ -4018,7 +4050,7 @@ export interface TicketThreadComment_readonly extends ClientRecord {
4018
4050
  source?: string;
4019
4051
  references?: RelatedRecord[];
4020
4052
  readBy?: {
4021
- [index: string]: Date;
4053
+ [index: string]: Date | '';
4022
4054
  };
4023
4055
  timestamp?: Date;
4024
4056
  group?: string;
@@ -4208,6 +4240,7 @@ export type GroupMMSMessage = {
4208
4240
  export type GroupMMSUserState = {
4209
4241
  id: string;
4210
4242
  numUnread: number;
4243
+ markedUnread?: boolean;
4211
4244
  };
4212
4245
  export interface GroupMMSConversation_readonly extends ClientRecord {
4213
4246
  externalId: string;
@@ -4815,6 +4848,7 @@ export type JourneyContext = {
4815
4848
  emailId?: string;
4816
4849
  databaseRecordId?: string;
4817
4850
  databaseRecordCreator?: string;
4851
+ eligibilityResultId?: string;
4818
4852
  };
4819
4853
  export declare const TIMEZONE_MAP: {
4820
4854
  readonly "Africa/Abidjan": "+00:00";
@@ -5438,12 +5472,20 @@ export type TwilioQueue = {
5438
5472
  friendlyName: string;
5439
5473
  averageWaitTime: number;
5440
5474
  };
5475
+ export type DevelopHealthDrug = {
5476
+ name: string;
5477
+ dosage: string;
5478
+ quantity: number;
5479
+ };
5480
+ export type DevelopHealthMockResult = {
5481
+ status: string;
5482
+ case: string;
5483
+ };
5484
+ export type DevelopHealthDiagnosis = {
5485
+ code: string;
5486
+ };
5441
5487
  export type DevelopHealthRunBenefitVerificationBaseArguments = {
5442
- drugs: {
5443
- name: string;
5444
- dosage: string;
5445
- quantity: number;
5446
- }[];
5488
+ drugs: DevelopHealthDrug[];
5447
5489
  drug_history: {
5448
5490
  currently_taking_drugs: {
5449
5491
  name: string;
@@ -5452,13 +5494,8 @@ export type DevelopHealthRunBenefitVerificationBaseArguments = {
5452
5494
  name: string;
5453
5495
  }[];
5454
5496
  };
5455
- diagnoses: {
5456
- code: string;
5457
- }[];
5458
- mock_result?: {
5459
- status: string;
5460
- case: string;
5461
- };
5497
+ diagnoses: DevelopHealthDiagnosis[];
5498
+ mock_result?: DevelopHealthMockResult;
5462
5499
  use_patient_plan_fund_source_check?: boolean;
5463
5500
  };
5464
5501
  export type ZendeskArticle = {