@tellescope/types-models 1.249.1 → 1.250.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/lib/cjs/index.d.ts +28 -0
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +28 -0
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/index.ts +48 -4
package/src/index.ts
CHANGED
|
@@ -58,19 +58,22 @@ export type BasicFilter<T extends string> = {
|
|
|
58
58
|
| null
|
|
59
59
|
| {
|
|
60
60
|
$exists: boolean,
|
|
61
|
-
}
|
|
61
|
+
}
|
|
62
62
|
| {
|
|
63
63
|
$gt: number,
|
|
64
64
|
}
|
|
65
65
|
| {
|
|
66
66
|
$lt: number,
|
|
67
|
-
}
|
|
67
|
+
}
|
|
68
68
|
| {
|
|
69
69
|
$contains: string | number
|
|
70
|
-
}
|
|
70
|
+
}
|
|
71
71
|
| {
|
|
72
72
|
$doesNotContain: string | number
|
|
73
|
-
}
|
|
73
|
+
}
|
|
74
|
+
| {
|
|
75
|
+
$ne: string | number
|
|
76
|
+
}
|
|
74
77
|
)
|
|
75
78
|
}
|
|
76
79
|
|
|
@@ -478,6 +481,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
478
481
|
hasConnectedGoGoMeds?: boolean,
|
|
479
482
|
hasScriptSure?: boolean,
|
|
480
483
|
hasConnectedPagerDuty?: boolean,
|
|
484
|
+
hasConnectedSeason?: boolean,
|
|
481
485
|
hasConnectedSmartMeter?: boolean,
|
|
482
486
|
hasConnectedAthena?: boolean,
|
|
483
487
|
hasConnectedActiveCampaign?: boolean,
|
|
@@ -1707,6 +1711,7 @@ export interface Ticket extends Ticket_readonly, Ticket_required, Ticket_updates
|
|
|
1707
1711
|
isTodo?: boolean,
|
|
1708
1712
|
databaseRecordId?: string,
|
|
1709
1713
|
databaseRecordCreator?: string,
|
|
1714
|
+
faxLogId?: string,
|
|
1710
1715
|
templateId?: string,
|
|
1711
1716
|
}
|
|
1712
1717
|
|
|
@@ -2010,6 +2015,34 @@ export type FormScoring = {
|
|
|
2010
2015
|
}
|
|
2011
2016
|
|
|
2012
2017
|
export type FormType = 'note' | 'enduserFacing'
|
|
2018
|
+
|
|
2019
|
+
export type AISummaryDataSource =
|
|
2020
|
+
| 'enduser_observations'
|
|
2021
|
+
| 'form_responses'
|
|
2022
|
+
| 'chats'
|
|
2023
|
+
| 'phone_calls'
|
|
2024
|
+
| 'calendar_events'
|
|
2025
|
+
| 'tickets'
|
|
2026
|
+
| 'sms_messages'
|
|
2027
|
+
| 'emails'
|
|
2028
|
+
| 'enduser_orders'
|
|
2029
|
+
| 'enduser_medications'
|
|
2030
|
+
| 'purchases'
|
|
2031
|
+
|
|
2032
|
+
export type AISummaryDataSourceConfig = {
|
|
2033
|
+
type: AISummaryDataSource,
|
|
2034
|
+
limit?: number,
|
|
2035
|
+
lookbackMS?: number,
|
|
2036
|
+
filter?: object,
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
export type AISummaryConfiguration = {
|
|
2040
|
+
enabled?: boolean,
|
|
2041
|
+
prompt?: string,
|
|
2042
|
+
dataSources?: AISummaryDataSourceConfig[],
|
|
2043
|
+
maxOutputTokens?: number,
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2013
2046
|
export type FormCustomization = {
|
|
2014
2047
|
publicFormHTMLDescription?: string,
|
|
2015
2048
|
publicFormSubmitHTMLDescription?: string,
|
|
@@ -2105,10 +2138,12 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
|
|
|
2105
2138
|
belugaVisitType?: string,
|
|
2106
2139
|
belugaVerificationId?: string,
|
|
2107
2140
|
belugaPharmacyMappings?: BelugaPharmacyMapping[],
|
|
2141
|
+
belugaCombineMatchingPharmacyMappings?: boolean,
|
|
2108
2142
|
showByUserTags?: string[],
|
|
2109
2143
|
version?: 'v1' | 'v2',
|
|
2110
2144
|
mdiCaseOfferings?: { offering_id: string }[],
|
|
2111
2145
|
autoMergeOnSubmission?: boolean,
|
|
2146
|
+
aiSummaryConfiguration?: AISummaryConfiguration,
|
|
2112
2147
|
procedureCodes?: FormResponseProcedureCode[],
|
|
2113
2148
|
diagnosisCodes?: FormResponseDiagnosisCode[],
|
|
2114
2149
|
}
|
|
@@ -2601,6 +2636,7 @@ export interface FormResponse extends FormResponse_readonly, FormResponse_requir
|
|
|
2601
2636
|
timestamp: Date,
|
|
2602
2637
|
}[],
|
|
2603
2638
|
startedViaPinnedForm?: boolean,
|
|
2639
|
+
enduserAISummary?: string,
|
|
2604
2640
|
procedureCodes?: FormResponseProcedureCode[],
|
|
2605
2641
|
diagnosisCodes?: FormResponseDiagnosisCode[],
|
|
2606
2642
|
}
|
|
@@ -3274,6 +3310,7 @@ export type CreateTicketActionInfo = {
|
|
|
3274
3310
|
contextEnduserFields?: string[],
|
|
3275
3311
|
contextContentIds?: string[],
|
|
3276
3312
|
disableEditTitle?: boolean,
|
|
3313
|
+
skipCareTeamAssignment?: boolean,
|
|
3277
3314
|
}
|
|
3278
3315
|
|
|
3279
3316
|
export type SendEmailAutomationAction = AutomationActionBuilder<'sendEmail', AutomationForMessage & { fromEmailOverride?: string, ccRelatedContactTypes?: string[], customEmailField?: string, }>
|
|
@@ -3282,6 +3319,9 @@ export type NotifyTeamAutomationAction = AutomationActionBuilder<'notifyTeam', {
|
|
|
3282
3319
|
forAssigned: boolean,
|
|
3283
3320
|
roles?: string[],
|
|
3284
3321
|
tags?: ListOfStringsWithQualifier,
|
|
3322
|
+
dontSendEmail?: boolean,
|
|
3323
|
+
sendSMS?: boolean,
|
|
3324
|
+
smsTemplateId?: string,
|
|
3285
3325
|
}>
|
|
3286
3326
|
export type SendSMSAutomationAction = AutomationActionBuilder<'sendSMS', AutomationForMessage & { phoneNumberOverride?: string }>
|
|
3287
3327
|
export type SendFormAutomationAction = AutomationActionBuilder<'sendForm', AutomationForFormRequest>
|
|
@@ -4757,6 +4797,9 @@ export type AutomationTriggerEvents = {
|
|
|
4757
4797
|
source: string,
|
|
4758
4798
|
}, {}>,
|
|
4759
4799
|
'File Added': AutomationTriggerEventBuilder<"File Added", { source: string }, { }>,
|
|
4800
|
+
'Incoming Fax': AutomationTriggerEventBuilder<"Incoming Fax", {
|
|
4801
|
+
senderFaxNumbers?: string[],
|
|
4802
|
+
}, {}>,
|
|
4760
4803
|
}
|
|
4761
4804
|
export type AutomationTriggerEventType = keyof AutomationTriggerEvents
|
|
4762
4805
|
export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType]
|
|
@@ -6047,6 +6090,7 @@ export type JourneyContext = {
|
|
|
6047
6090
|
ticketThreadId?: string,
|
|
6048
6091
|
ticketThreadCommentId?: string,
|
|
6049
6092
|
medicationId?: string,
|
|
6093
|
+
faxLogId?: string,
|
|
6050
6094
|
}
|
|
6051
6095
|
|
|
6052
6096
|
// https://gist.github.com/aviflax/a4093965be1cd008f172/
|