@tellescope/types-models 1.189.0 → 1.191.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 +29 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +29 -1
- 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 +29 -2
package/src/index.ts
CHANGED
|
@@ -147,6 +147,7 @@ export type CustomEnduserFields = {
|
|
|
147
147
|
"File": BuildCustomEnduserField<'File', { }>,
|
|
148
148
|
'Auto Detect': BuildCustomEnduserField<'Auto Detect', { }>,
|
|
149
149
|
"Table": BuildCustomEnduserField<"Table", { columns: TableInputChoice[] }>
|
|
150
|
+
'Checkbox': BuildCustomEnduserField<'Checkbox', { }>,
|
|
150
151
|
}
|
|
151
152
|
export type CustomEnduserFieldType = keyof CustomEnduserFields
|
|
152
153
|
export type CustomEnduserField = CustomEnduserFields[CustomEnduserFieldType]
|
|
@@ -394,6 +395,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
394
395
|
questionId: string,
|
|
395
396
|
},
|
|
396
397
|
canvasSyncEmailConsent?: boolean,
|
|
398
|
+
canvasSyncPhoneConsent?: boolean,
|
|
397
399
|
dosespotClinics?: { id: string, name: string }[],
|
|
398
400
|
answersSyncToPortal?: { id: string, questions: string[] }[]
|
|
399
401
|
externalFormIdsToSync?: string[],
|
|
@@ -413,6 +415,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
413
415
|
customPortalLoginEmailSubject?: string,
|
|
414
416
|
customPortalLoginEmailHTML?: string,
|
|
415
417
|
customerIOFields?: string[],
|
|
418
|
+
createEnduserForms?: string[],
|
|
416
419
|
// _AIEnabled?: boolean,
|
|
417
420
|
}
|
|
418
421
|
export type OrganizationTheme = {
|
|
@@ -517,6 +520,7 @@ export type WeeklyAvailability = {
|
|
|
517
520
|
startTimeInMinutes: number,
|
|
518
521
|
endTimeInMinutes: number,
|
|
519
522
|
intervalInMinutes?: number,
|
|
523
|
+
bufferStartMinutes?: number,
|
|
520
524
|
active?: DateRange,
|
|
521
525
|
locationId?: string, // deprecated
|
|
522
526
|
locationIds?: string[],
|
|
@@ -1124,6 +1128,7 @@ export interface Email extends Email_required, Email_readonly, Email_updatesDisa
|
|
|
1124
1128
|
discussionRoomId?: string,
|
|
1125
1129
|
markedUnreadForAll?: boolean,
|
|
1126
1130
|
inboxStatus?: string,
|
|
1131
|
+
relatedContactId?: string,
|
|
1127
1132
|
// sentAt: string, // only outgoing
|
|
1128
1133
|
}
|
|
1129
1134
|
|
|
@@ -1177,6 +1182,7 @@ export interface SMSMessage extends SMSMessage_readonly, SMSMessage_required, SM
|
|
|
1177
1182
|
mediaURLs?: string[],
|
|
1178
1183
|
markedUnreadForAll?: boolean,
|
|
1179
1184
|
inboxStatus?: string,
|
|
1185
|
+
relatedContactId?: string,
|
|
1180
1186
|
// usingPublicNumber?: boolean, // flagged on outgoing messages from public number
|
|
1181
1187
|
// sentAt: string, // only outgoing
|
|
1182
1188
|
}
|
|
@@ -1311,7 +1317,6 @@ export interface File_readonly extends ClientRecord {
|
|
|
1311
1317
|
recentlyViewedAt: Date,
|
|
1312
1318
|
type: 'user' | 'enduser'
|
|
1313
1319
|
}>,
|
|
1314
|
-
source?: string
|
|
1315
1320
|
externalId?: string,
|
|
1316
1321
|
timestamp?: Date,
|
|
1317
1322
|
confirmedAt?: Date,
|
|
@@ -1375,6 +1380,7 @@ export interface Ticket_required {
|
|
|
1375
1380
|
}
|
|
1376
1381
|
export interface Ticket_updatesDisabled {}
|
|
1377
1382
|
export interface Ticket extends Ticket_readonly, Ticket_required, Ticket_updatesDisabled {
|
|
1383
|
+
disableEditTitle?: boolean,
|
|
1378
1384
|
queueId?: string,
|
|
1379
1385
|
dequeuedAt?: Date | '',
|
|
1380
1386
|
dequeuedFrom?: string, // for reporting later without affecting access permissions
|
|
@@ -1427,6 +1433,7 @@ export interface Ticket extends Ticket_readonly, Ticket_required, Ticket_updates
|
|
|
1427
1433
|
restrictByTagsQualifier?: ListQueryQualifier,
|
|
1428
1434
|
archiveReason?: string,
|
|
1429
1435
|
contextFormIds?: string[],
|
|
1436
|
+
contextContentIds?: string[],
|
|
1430
1437
|
triggerFileId?: string,
|
|
1431
1438
|
orderId?: string,
|
|
1432
1439
|
contextEnduserFields?: string[],
|
|
@@ -1733,6 +1740,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
|
|
|
1733
1740
|
canvasNoteCoding?: Partial<CanvasCoding>,
|
|
1734
1741
|
syncToCanvasAsDataImport?: boolean,
|
|
1735
1742
|
matchCareTeamTagsForCanvasPractitionerResolution?: ListOfStringsWithQualifier,
|
|
1743
|
+
dontSyncToCanvasOnSubmission?: boolean,
|
|
1736
1744
|
}
|
|
1737
1745
|
|
|
1738
1746
|
export interface FormGroup_readonly extends ClientRecord {}
|
|
@@ -1806,6 +1814,7 @@ export interface Integration extends Integration_readonly, Integration_required,
|
|
|
1806
1814
|
dontPullCalendarEvent?: boolean,
|
|
1807
1815
|
pushAddedTags?: boolean,
|
|
1808
1816
|
pushRemovedTags?: boolean,
|
|
1817
|
+
overwriteAddress?: boolean,
|
|
1809
1818
|
}
|
|
1810
1819
|
|
|
1811
1820
|
export type BuildDatabaseRecordField <K extends string, V, O> = { type: K, value: V, options: O & { width?: string } }
|
|
@@ -2310,6 +2319,8 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
|
|
|
2310
2319
|
allowGroupReschedule?: boolean, // allows a patient to reschedule even if there are multiple attendees (e.g. 1 + care giver)
|
|
2311
2320
|
joinedVideoCall?: { id: string, at: Date }[],
|
|
2312
2321
|
confirmedAt?: Date | '',
|
|
2322
|
+
preventRescheduleMinutesInAdvance?: number,
|
|
2323
|
+
preventCancelMinutesInAdvance?: number,
|
|
2313
2324
|
// isAllDay?: boolean,
|
|
2314
2325
|
}
|
|
2315
2326
|
|
|
@@ -2431,6 +2442,8 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
|
|
|
2431
2442
|
requiresEnduser?: boolean,
|
|
2432
2443
|
requirePortalCancelReason?: boolean,
|
|
2433
2444
|
allowGroupReschedule?: boolean, // allows a patient to reschedule even if there are multiple attendees (e.g. 1 + care giver)
|
|
2445
|
+
preventRescheduleMinutesInAdvance?: number,
|
|
2446
|
+
preventCancelMinutesInAdvance?: number,
|
|
2434
2447
|
}
|
|
2435
2448
|
|
|
2436
2449
|
export interface AppointmentLocation_readonly extends ClientRecord {}
|
|
@@ -2625,6 +2638,7 @@ export type AfterActionEventInfo = {
|
|
|
2625
2638
|
delay: number, // for displaying in editor
|
|
2626
2639
|
unit: UnitOfTime, // for displaying in editor
|
|
2627
2640
|
officeHoursOnly?: boolean,
|
|
2641
|
+
useEnduserTimezone?: boolean,
|
|
2628
2642
|
cancelConditions?: CancelCondition[]
|
|
2629
2643
|
abTestCondition?: string,
|
|
2630
2644
|
}
|
|
@@ -2746,6 +2760,8 @@ export type CreateTicketActionInfo = {
|
|
|
2746
2760
|
tags?: string[],
|
|
2747
2761
|
contextFormIds?: string[],
|
|
2748
2762
|
contextEnduserFields?: string[],
|
|
2763
|
+
contextContentIds?: string[],
|
|
2764
|
+
disableEditTitle?: boolean,
|
|
2749
2765
|
}
|
|
2750
2766
|
|
|
2751
2767
|
export type SendEmailAutomationAction = AutomationActionBuilder<'sendEmail', AutomationForMessage & { fromEmailOverride?: string }>
|
|
@@ -2806,6 +2822,11 @@ export type ActiveCampaignAddToListsAutomationAction = AutomationActionBuilder<'
|
|
|
2806
2822
|
export type SwitchToRelatedContactAutomationAction = AutomationActionBuilder<'switchToRelatedContact', { type: string, otherTypes?: string[] }>
|
|
2807
2823
|
export type ElationSyncAutomationAction = AutomationActionBuilder<'elationSync', { }>
|
|
2808
2824
|
export type CanvasSyncAutomationAction = AutomationActionBuilder<'canvasSync', {}>
|
|
2825
|
+
export type CanvasCreateNoteAutomationAction = AutomationActionBuilder<'canvasCreateNote', {
|
|
2826
|
+
formIds: string[],
|
|
2827
|
+
matchCareTeamTagsForCanvasPractitionerResolution: ListOfStringsWithQualifier,
|
|
2828
|
+
noteCoding: CanvasCoding,
|
|
2829
|
+
}>
|
|
2809
2830
|
export type CancelFutureAppointmentsAutomationAction = AutomationActionBuilder<'cancelFutureAppointments', {}>
|
|
2810
2831
|
export type DevelopHealthMedicationEligibilityAutomationAction = AutomationActionBuilder<'developHealthMedEligibility', {
|
|
2811
2832
|
drugs: DevelopHealthDrug[],
|
|
@@ -2891,6 +2912,7 @@ export type AutomationActionForType = {
|
|
|
2891
2912
|
switchToRelatedContact: SwitchToRelatedContactAutomationAction,
|
|
2892
2913
|
'elationSync': ElationSyncAutomationAction,
|
|
2893
2914
|
canvasSync: CanvasSyncAutomationAction,
|
|
2915
|
+
canvasCreateNote: CanvasCreateNoteAutomationAction,
|
|
2894
2916
|
pushFormsToPortal: PushFormsAutomationAction,
|
|
2895
2917
|
developHealthMedEligibility: DevelopHealthMedicationEligibilityAutomationAction,
|
|
2896
2918
|
cancelFutureAppointments: CancelFutureAppointmentsAutomationAction,
|
|
@@ -3796,6 +3818,9 @@ export type AutomationTriggerActions = {
|
|
|
3796
3818
|
waitlistId: string,
|
|
3797
3819
|
count: number,
|
|
3798
3820
|
}>,
|
|
3821
|
+
"Reply to Chat": AutomationTriggerActionBuilder<'Reply to Chat', {
|
|
3822
|
+
message: string,
|
|
3823
|
+
}>,
|
|
3799
3824
|
}
|
|
3800
3825
|
export type AutomationTriggerActionType = keyof AutomationTriggerActions
|
|
3801
3826
|
export type AutomationTriggerAction = AutomationTriggerActions[AutomationTriggerActionType]
|
|
@@ -3818,11 +3843,12 @@ export type AutomationTriggerEvents = {
|
|
|
3818
3843
|
'Field Equals': AutomationTriggerEventBuilder<"Field Equals", { field: string, value: string }, { }>,
|
|
3819
3844
|
'Tag Added': AutomationTriggerEventBuilder<"Tag Added", { tag: string }, { }>,
|
|
3820
3845
|
'Contact Created': AutomationTriggerEventBuilder<"Contact Created", { }, { }>,
|
|
3821
|
-
'Appointment Created': AutomationTriggerEventBuilder<"Appointment Created", { titles?: string[], templateIds?: string[] }, {}>,
|
|
3846
|
+
'Appointment Created': AutomationTriggerEventBuilder<"Appointment Created", { titles?: string[], templateIds?: string[], excludeTemplateIds?: string[] }, {}>,
|
|
3822
3847
|
'Appointment Completed': AutomationTriggerEventBuilder<"Appointment Completed", { titles?: string[], templateIds?: string[] }, {}>,
|
|
3823
3848
|
'Appointment Cancelled': AutomationTriggerEventBuilder<"Appointment Cancelled", {
|
|
3824
3849
|
titles?: string[],
|
|
3825
3850
|
templateIds?: string[],
|
|
3851
|
+
excludeTemplateIds?: string[],
|
|
3826
3852
|
by?: '' | 'enduser' | 'user', // only implemented for enduser for now
|
|
3827
3853
|
}, {}>,
|
|
3828
3854
|
'Appointment Rescheduled': AutomationTriggerEventBuilder<"Appointment Rescheduled", { titles?: string[] }, {}>,
|
|
@@ -4970,6 +4996,7 @@ export type JourneyContext = {
|
|
|
4970
4996
|
databaseRecordCreator?: string,
|
|
4971
4997
|
eligibilityResultId?: string,
|
|
4972
4998
|
fileId?: string,
|
|
4999
|
+
chatRoomId?: string,
|
|
4973
5000
|
}
|
|
4974
5001
|
|
|
4975
5002
|
// https://gist.github.com/aviflax/a4093965be1cd008f172/
|