@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.
package/src/index.ts CHANGED
@@ -149,6 +149,7 @@ export type CustomEnduserFields = {
149
149
  'Auto Detect': BuildCustomEnduserField<'Auto Detect', { }>,
150
150
  "Table": BuildCustomEnduserField<"Table", { columns: TableInputChoice[] }>
151
151
  'Checkbox': BuildCustomEnduserField<'Checkbox', { }>,
152
+ "Database Select": BuildCustomEnduserField<'Database Select', { databaseId: string, columns: string[] }>,
152
153
  }
153
154
  export type CustomEnduserFieldType = keyof CustomEnduserFields
154
155
  export type CustomEnduserField = CustomEnduserFields[CustomEnduserFieldType]
@@ -1145,6 +1146,7 @@ export interface Email_updatesDisabled {
1145
1146
  journeyId?: string,
1146
1147
  }
1147
1148
  export interface Email extends Email_required, Email_readonly, Email_updatesDisabled, TextCommunication {
1149
+ replyToTemplateId?: string,
1148
1150
  userId: string; // not actually required on create
1149
1151
  hiddenFromTimeline?: boolean,
1150
1152
  isAutoreply?: boolean,
@@ -1539,7 +1541,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
1539
1541
  copiedFromEnduserId?: string,
1540
1542
  }
1541
1543
 
1542
- export type FormFieldLiteralType = 'Rich Text' | 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' /* date + time */ | 'dateString' | 'rating' | 'Time'
1544
+ export type FormFieldLiteralType = 'Rich Text' | 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' /* date + time */ | 'dateString' | 'rating' | 'Time' | "Timezone"
1543
1545
  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"
1544
1546
  export type FormFieldType = FormFieldLiteralType | FormFieldComplexType
1545
1547
 
@@ -1802,6 +1804,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
1802
1804
  hideFromBulkSubmission?: boolean,
1803
1805
  enduserFieldsToAppendForSync?: string[],
1804
1806
  allowPortalSubmission?: boolean,
1807
+ allowPortalSubmissionEnduserCondition?: Record<string, any>,
1805
1808
  canvasNoteCoding?: Partial<CanvasCoding>,
1806
1809
  syncToCanvasAsDataImport?: boolean,
1807
1810
  matchCareTeamTagsForCanvasPractitionerResolution?: ListOfStringsWithQualifier,
@@ -1883,7 +1886,9 @@ export interface Integration extends Integration_readonly, Integration_required,
1883
1886
  requirePhoneToPushEnduser?: boolean,
1884
1887
  syncAsActive?: boolean,
1885
1888
  syncEnduserId?: boolean,
1889
+ syncCareTeam?: boolean,
1886
1890
  shardId?: string,
1891
+ pushHistoricalEvents?: boolean,
1887
1892
  }
1888
1893
 
1889
1894
  export type BuildDatabaseRecordField <K extends string, V, O> = { type: K, value: V, options: O & { width?: string } }
@@ -2055,9 +2060,11 @@ export type FormResponseAnswerFileValue = {
2055
2060
  }
2056
2061
  export type FormResponseAnswerFile = FormResponseValueAnswerBuilder<'file', FormResponseAnswerFileValue>
2057
2062
  export type FormResponseAnswerFiles = FormResponseValueAnswerBuilder<'files', FormResponseAnswerFileValue[]>
2063
+ export type FormResponseAnswerTimezone = FormResponseValueAnswerBuilder<'Timezone', string>
2058
2064
 
2059
2065
  export type FormResponseValueAnswer = (
2060
2066
  FormResponseAnswerGroup
2067
+ | FormResponseAnswerTimezone
2061
2068
  | FormResponseAnswerTable
2062
2069
  | FormResponseAnswerDescription
2063
2070
  | FormResponseAnswerEmail
@@ -2140,6 +2147,7 @@ export type AnswerForType = {
2140
2147
  'Emotii': FormResponseAnswerEmotii['value']
2141
2148
  'Allergies': FormResponseAnswerAllergies['value']
2142
2149
  'Conditions': FormResponseAnswerConditions['value']
2150
+ 'Timezone': FormResponseAnswerTimezone['value']
2143
2151
  }
2144
2152
 
2145
2153
  export type Addendum = {
@@ -2978,8 +2986,28 @@ export type AutomationCondition = AtJourneyStateAutomationCondition
2978
2986
  export type OutboundCallAutomationAction = AutomationActionBuilder<'outboundCall', {
2979
2987
  treeId: string, // id of the call tree to use
2980
2988
  }>
2989
+ export type RemoveCareTeamAutomationAction = AutomationActionBuilder<
2990
+ 'removeCareTeam',
2991
+ AutomationTriggerActions['Remove Care Team']['info']
2992
+ >
2993
+ export type AssignCareTeamAutomationAction = AutomationActionBuilder<
2994
+ 'assignCareTeam',
2995
+ AutomationTriggerActions['Assign Care Team']['info']
2996
+ >
2997
+ export type CallUserAutomationAction = AutomationActionBuilder<
2998
+ 'callUser',
2999
+ {
3000
+ message: string,
3001
+ routeBy: "Appointment Host",
3002
+ }
3003
+ >
3004
+ export type StripeChargeCardOnFileAutomationAction = AutomationActionBuilder<'stripeChargeCardOnFile', {
3005
+ stripeKey?: string, // indicating custom vs. stripe connect
3006
+ priceIds: string[], // Stripe price ids to charge
3007
+ }>
2981
3008
 
2982
3009
  export type AutomationActionForType = {
3010
+ 'stripeChargeCardOnFile': StripeChargeCardOnFileAutomationAction,
2983
3011
  'outboundCall': OutboundCallAutomationAction,
2984
3012
  "sendEmail" : SendEmailAutomationAction,
2985
3013
  "sendSMS": SendSMSAutomationAction,
@@ -3027,6 +3055,9 @@ export type AutomationActionForType = {
3027
3055
  customerIOTrack: CustomerIOTrackAction,
3028
3056
  cancelCurrentEvent: CancelCurrentEventAction,
3029
3057
  confirmCurrentEvent: ConfirmCurrentEventAction,
3058
+ removeCareTeam: RemoveCareTeamAutomationAction,
3059
+ assignCareTeam: AssignCareTeamAutomationAction,
3060
+ callUser: CallUserAutomationAction,
3030
3061
  }
3031
3062
  export type AutomationActionType = keyof AutomationActionForType
3032
3063
  export type AutomationAction = AutomationActionForType[AutomationActionType]
@@ -3579,11 +3610,13 @@ export type AnalyticsQueryFilterForType = {
3579
3610
  "SMS Messages": {
3580
3611
  direction?: string,
3581
3612
  messages?: string[],
3613
+ "SMS Tags"?: ListOfStringsWithQualifier,
3582
3614
  },
3583
3615
  Emails: {
3584
3616
  direction?: "Inbound" | "Outbound" | "Both",
3585
3617
  templateIds?: string[],
3586
3618
  subjects?: string[],
3619
+ "Email Tags"?: ListOfStringsWithQualifier,
3587
3620
  },
3588
3621
  Medications: { },
3589
3622
  Files: {
@@ -3628,9 +3661,12 @@ export type AnalyticsQueryGroupingForType = {
3628
3661
  } & EnduserGrouping & { Enduser: string },
3629
3662
  "Phone Calls": {} & EnduserGrouping & { Enduser: string },
3630
3663
  "SMS Messages": {
3664
+ "SMS Tags"?: boolean,
3631
3665
  Score?: boolean,
3632
3666
  } & EnduserGrouping & { Enduser: string },
3633
- "Emails": {} & EnduserGrouping & { Enduser: string },
3667
+ "Emails": {
3668
+ "Email Tags"?: boolean,
3669
+ } & EnduserGrouping & { Enduser: string },
3634
3670
  "Medications": {} & EnduserGrouping & { Enduser: string },
3635
3671
  "Files": {} & EnduserGrouping & { Enduser: string },
3636
3672
  "Journey Logs": {} & EnduserGrouping & { Enduser: string },
@@ -3966,7 +4002,7 @@ export type AutomationTriggerEvents = {
3966
4002
  'Form Unsubmitted': AutomationTriggerEventBuilder<"Form Unsubmitted", { formId: string, intervalInMS: number }, {}>,
3967
4003
  'Purchase Made': AutomationTriggerEventBuilder<"Purchase Made", { titles?: string[], productIds?: string[] }, {}>,
3968
4004
  'Refund Issued': AutomationTriggerEventBuilder<"Refund Issued", { }, {}>,
3969
- 'Subscription Ended': AutomationTriggerEventBuilder<"Subscription Ended", { }, {}>,
4005
+ 'Subscription Ended': AutomationTriggerEventBuilder<"Subscription Ended", { productIds?: string[] }, {}>,
3970
4006
  'Subscription Payment Failed': AutomationTriggerEventBuilder<"Subscription Payment Failed", { }, {}>,
3971
4007
  'Appointment No-Showed': AutomationTriggerEventBuilder<"Appointment No-Showed", { titles?: string[], templateIds?: string[] }, { }>,
3972
4008
  'Field Equals': AutomationTriggerEventBuilder<"Field Equals", { field: string, value: string }, { }>,
@@ -5166,6 +5202,7 @@ export type JourneyContext = {
5166
5202
  eligibilityResultId?: string,
5167
5203
  fileId?: string,
5168
5204
  chatRoomId?: string,
5205
+ twilioNumber?: string,
5169
5206
  }
5170
5207
 
5171
5208
  // https://gist.github.com/aviflax/a4093965be1cd008f172/