@tellescope/types-models 1.208.0 → 1.210.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.
@@ -133,6 +133,10 @@ export type CustomEnduserFields = {
133
133
  columns: TableInputChoice[];
134
134
  }>;
135
135
  'Checkbox': BuildCustomEnduserField<'Checkbox', {}>;
136
+ "Database Select": BuildCustomEnduserField<'Database Select', {
137
+ databaseId: string;
138
+ columns: string[];
139
+ }>;
136
140
  };
137
141
  export type CustomEnduserFieldType = keyof CustomEnduserFields;
138
142
  export type CustomEnduserField = CustomEnduserFields[CustomEnduserFieldType];
@@ -1075,6 +1079,7 @@ export interface Email_updatesDisabled {
1075
1079
  journeyId?: string;
1076
1080
  }
1077
1081
  export interface Email extends Email_required, Email_readonly, Email_updatesDisabled, TextCommunication {
1082
+ replyToTemplateId?: string;
1078
1083
  userId: string;
1079
1084
  hiddenFromTimeline?: boolean;
1080
1085
  isAutoreply?: boolean;
@@ -1502,7 +1507,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
1502
1507
  copiedFrom?: string;
1503
1508
  copiedFromEnduserId?: string;
1504
1509
  }
1505
- export type FormFieldLiteralType = 'Rich Text' | 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' | 'dateString' | 'rating' | 'Time';
1510
+ export type FormFieldLiteralType = 'Rich Text' | 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' | 'dateString' | 'rating' | 'Time' | "Timezone";
1506
1511
  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";
1507
1512
  export type FormFieldType = FormFieldLiteralType | FormFieldComplexType;
1508
1513
  export type PreviousFormFieldType = 'root' | 'after' | 'previousEquals' | 'compoundLogic';
@@ -1767,6 +1772,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
1767
1772
  hideFromBulkSubmission?: boolean;
1768
1773
  enduserFieldsToAppendForSync?: string[];
1769
1774
  allowPortalSubmission?: boolean;
1775
+ allowPortalSubmissionEnduserCondition?: Record<string, any>;
1770
1776
  canvasNoteCoding?: Partial<CanvasCoding>;
1771
1777
  syncToCanvasAsDataImport?: boolean;
1772
1778
  matchCareTeamTagsForCanvasPractitionerResolution?: ListOfStringsWithQualifier;
@@ -1846,7 +1852,9 @@ export interface Integration extends Integration_readonly, Integration_required,
1846
1852
  requirePhoneToPushEnduser?: boolean;
1847
1853
  syncAsActive?: boolean;
1848
1854
  syncEnduserId?: boolean;
1855
+ syncCareTeam?: boolean;
1849
1856
  shardId?: string;
1857
+ pushHistoricalEvents?: boolean;
1850
1858
  }
1851
1859
  export type BuildDatabaseRecordField<K extends string, V, O> = {
1852
1860
  type: K;
@@ -2020,7 +2028,8 @@ export type FormResponseAnswerFileValue = {
2020
2028
  };
2021
2029
  export type FormResponseAnswerFile = FormResponseValueAnswerBuilder<'file', FormResponseAnswerFileValue>;
2022
2030
  export type FormResponseAnswerFiles = FormResponseValueAnswerBuilder<'files', FormResponseAnswerFileValue[]>;
2023
- 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);
2031
+ export type FormResponseAnswerTimezone = FormResponseValueAnswerBuilder<'Timezone', string>;
2032
+ export type FormResponseValueAnswer = (FormResponseAnswerGroup | FormResponseAnswerTimezone | 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);
2024
2033
  export type FormResponseValue = {
2025
2034
  fieldId: string;
2026
2035
  fieldTitle: string;
@@ -2068,6 +2077,7 @@ export type AnswerForType = {
2068
2077
  'Emotii': FormResponseAnswerEmotii['value'];
2069
2078
  'Allergies': FormResponseAnswerAllergies['value'];
2070
2079
  'Conditions': FormResponseAnswerConditions['value'];
2080
+ 'Timezone': FormResponseAnswerTimezone['value'];
2071
2081
  };
2072
2082
  export type Addendum = {
2073
2083
  timestamp: Date;
@@ -2971,7 +2981,18 @@ export type AutomationCondition = AtJourneyStateAutomationCondition;
2971
2981
  export type OutboundCallAutomationAction = AutomationActionBuilder<'outboundCall', {
2972
2982
  treeId: string;
2973
2983
  }>;
2984
+ export type RemoveCareTeamAutomationAction = AutomationActionBuilder<'removeCareTeam', AutomationTriggerActions['Remove Care Team']['info']>;
2985
+ export type AssignCareTeamAutomationAction = AutomationActionBuilder<'assignCareTeam', AutomationTriggerActions['Assign Care Team']['info']>;
2986
+ export type CallUserAutomationAction = AutomationActionBuilder<'callUser', {
2987
+ message: string;
2988
+ routeBy: "Appointment Host";
2989
+ }>;
2990
+ export type StripeChargeCardOnFileAutomationAction = AutomationActionBuilder<'stripeChargeCardOnFile', {
2991
+ stripeKey?: string;
2992
+ priceIds: string[];
2993
+ }>;
2974
2994
  export type AutomationActionForType = {
2995
+ 'stripeChargeCardOnFile': StripeChargeCardOnFileAutomationAction;
2975
2996
  'outboundCall': OutboundCallAutomationAction;
2976
2997
  "sendEmail": SendEmailAutomationAction;
2977
2998
  "sendSMS": SendSMSAutomationAction;
@@ -3019,6 +3040,9 @@ export type AutomationActionForType = {
3019
3040
  customerIOTrack: CustomerIOTrackAction;
3020
3041
  cancelCurrentEvent: CancelCurrentEventAction;
3021
3042
  confirmCurrentEvent: ConfirmCurrentEventAction;
3043
+ removeCareTeam: RemoveCareTeamAutomationAction;
3044
+ assignCareTeam: AssignCareTeamAutomationAction;
3045
+ callUser: CallUserAutomationAction;
3022
3046
  };
3023
3047
  export type AutomationActionType = keyof AutomationActionForType;
3024
3048
  export type AutomationAction = AutomationActionForType[AutomationActionType];
@@ -3607,11 +3631,13 @@ export type AnalyticsQueryFilterForType = {
3607
3631
  "SMS Messages": {
3608
3632
  direction?: string;
3609
3633
  messages?: string[];
3634
+ "SMS Tags"?: ListOfStringsWithQualifier;
3610
3635
  };
3611
3636
  Emails: {
3612
3637
  direction?: "Inbound" | "Outbound" | "Both";
3613
3638
  templateIds?: string[];
3614
3639
  subjects?: string[];
3640
+ "Email Tags"?: ListOfStringsWithQualifier;
3615
3641
  };
3616
3642
  Medications: {};
3617
3643
  Files: {
@@ -3666,11 +3692,14 @@ export type AnalyticsQueryGroupingForType = {
3666
3692
  Enduser: string;
3667
3693
  };
3668
3694
  "SMS Messages": {
3695
+ "SMS Tags"?: boolean;
3669
3696
  Score?: boolean;
3670
3697
  } & EnduserGrouping & {
3671
3698
  Enduser: string;
3672
3699
  };
3673
- "Emails": {} & EnduserGrouping & {
3700
+ "Emails": {
3701
+ "Email Tags"?: boolean;
3702
+ } & EnduserGrouping & {
3674
3703
  Enduser: string;
3675
3704
  };
3676
3705
  "Medications": {} & EnduserGrouping & {
@@ -3963,7 +3992,9 @@ export type AutomationTriggerEvents = {
3963
3992
  productIds?: string[];
3964
3993
  }, {}>;
3965
3994
  'Refund Issued': AutomationTriggerEventBuilder<"Refund Issued", {}, {}>;
3966
- 'Subscription Ended': AutomationTriggerEventBuilder<"Subscription Ended", {}, {}>;
3995
+ 'Subscription Ended': AutomationTriggerEventBuilder<"Subscription Ended", {
3996
+ productIds?: string[];
3997
+ }, {}>;
3967
3998
  'Subscription Payment Failed': AutomationTriggerEventBuilder<"Subscription Payment Failed", {}, {}>;
3968
3999
  'Appointment No-Showed': AutomationTriggerEventBuilder<"Appointment No-Showed", {
3969
4000
  titles?: string[];
@@ -5216,6 +5247,7 @@ export type JourneyContext = {
5216
5247
  eligibilityResultId?: string;
5217
5248
  fileId?: string;
5218
5249
  chatRoomId?: string;
5250
+ twilioNumber?: string;
5219
5251
  };
5220
5252
  export declare const TIMEZONE_MAP: {
5221
5253
  readonly "Africa/Abidjan": "+00:00";