@tellescope/types-models 1.253.1 → 1.254.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 +46 -3
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +46 -3
- 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 +55 -6
package/src/index.ts
CHANGED
|
@@ -312,6 +312,7 @@ export type OrganizationSettings = {
|
|
|
312
312
|
},
|
|
313
313
|
users?: {
|
|
314
314
|
sessionDurationInHours?: number,
|
|
315
|
+
enableResourceAccessTags?: boolean,
|
|
315
316
|
},
|
|
316
317
|
integrations?: {
|
|
317
318
|
vitalLabOrderPhysicianOptional?: boolean,
|
|
@@ -326,6 +327,7 @@ export type OrganizationSettings = {
|
|
|
326
327
|
},
|
|
327
328
|
timeTracking?: {
|
|
328
329
|
enabled?: boolean,
|
|
330
|
+
setAppointmentDurationOnTimeTrackClose?: boolean,
|
|
329
331
|
inactivityThresholdInSeconds?: number, // when > 0: prompts on inactivity, auto-pauses (excluding idle time), and guards tab close
|
|
330
332
|
}
|
|
331
333
|
}
|
|
@@ -671,12 +673,14 @@ export interface UserSession extends Session, OrganizationLimits { // User joine
|
|
|
671
673
|
fromEmail?: string,
|
|
672
674
|
verifiedEmail: boolean;
|
|
673
675
|
wasAutomated: boolean;
|
|
674
|
-
limits?: OrganizationLimits,
|
|
676
|
+
limits?: OrganizationLimits,
|
|
675
677
|
uiRestrictions?: UserUIRestrictions,
|
|
676
678
|
fieldRedactions?: UserFieldRedactions,
|
|
679
|
+
portalSchemaRestrictions?: PortalSchemaRestrictions,
|
|
677
680
|
dashboardView?: CustomDashboardView,
|
|
678
681
|
hasTicketQueues?: boolean,
|
|
679
682
|
eat?: boolean, // enableAccessTags
|
|
683
|
+
erat?: boolean, // enableResourceAccessTags
|
|
680
684
|
lockedOutUntil?: number,
|
|
681
685
|
duration?: number,
|
|
682
686
|
doseSpotUserId?: string,
|
|
@@ -1355,6 +1359,7 @@ export interface Journey_required {
|
|
|
1355
1359
|
title: string;
|
|
1356
1360
|
}
|
|
1357
1361
|
export interface Journey extends Journey_readonly, Journey_required, Journey_updatesDisabled {
|
|
1362
|
+
accessTags?: string[],
|
|
1358
1363
|
defaultState: string;
|
|
1359
1364
|
states: JourneyState[];
|
|
1360
1365
|
description?: string;
|
|
@@ -1600,6 +1605,7 @@ export interface MessageTemplate_required {
|
|
|
1600
1605
|
}
|
|
1601
1606
|
export interface MessageTemplate_updatesDisabled {}
|
|
1602
1607
|
export interface MessageTemplate extends MessageTemplate_readonly, MessageTemplate_required, MessageTemplate_updatesDisabled {
|
|
1608
|
+
accessTags?: string[],
|
|
1603
1609
|
html: string;
|
|
1604
1610
|
type?: MessageTemplateType;
|
|
1605
1611
|
editorState?: string
|
|
@@ -1642,6 +1648,7 @@ export interface File_required {
|
|
|
1642
1648
|
}
|
|
1643
1649
|
export interface File_updatesDisabled {}
|
|
1644
1650
|
export interface File extends File_readonly, File_required, File_updatesDisabled, EnduserPortalVisibility {
|
|
1651
|
+
accessTags?: string[],
|
|
1645
1652
|
enduserId?: string;
|
|
1646
1653
|
formResponseId?: string,
|
|
1647
1654
|
pushedToClientPortal?: boolean,
|
|
@@ -2093,6 +2100,7 @@ export type FormCustomization = {
|
|
|
2093
2100
|
publicFormSubmitHTMLDescription?: string,
|
|
2094
2101
|
logoURL?: string, // Custom logo URL to override organization logo on this form
|
|
2095
2102
|
logoHeight?: number,
|
|
2103
|
+
logoAlignment?: 'left' | 'center' | 'right', // V2 forms: logo horizontal alignment, default left
|
|
2096
2104
|
publicLabelPrefix?: string,
|
|
2097
2105
|
publicFnameLabel?: string,
|
|
2098
2106
|
publicLnameLabel?: string,
|
|
@@ -2121,6 +2129,7 @@ export interface Form_required {
|
|
|
2121
2129
|
}
|
|
2122
2130
|
export interface Form_updatesDisabled {}
|
|
2123
2131
|
export interface Form extends Form_readonly, Form_required, Form_updatesDisabled {
|
|
2132
|
+
accessTags?: string[],
|
|
2124
2133
|
gtmTag?: string, // for Google Tag Manager
|
|
2125
2134
|
ipAddressCustomField: string,
|
|
2126
2135
|
archivedAt?: Date | '',
|
|
@@ -2761,10 +2770,20 @@ export interface CalendarEventPortalSettings {
|
|
|
2761
2770
|
hideUsers?: boolean,
|
|
2762
2771
|
}
|
|
2763
2772
|
|
|
2764
|
-
export
|
|
2765
|
-
|
|
2773
|
+
export type VideoCallParticipantEvent = {
|
|
2774
|
+
id: string, // attendee id (Twilio ParticipantIdentity); '' if unmatched
|
|
2775
|
+
type: 'connected' | 'disconnected',
|
|
2776
|
+
timestamp: Date, // from Twilio Timestamp, fallback new Date()
|
|
2777
|
+
meetingId: string, // the Meeting this event belongs to (combined-history tag)
|
|
2778
|
+
participantSid?: string, // Twilio ParticipantSid
|
|
2779
|
+
durationSeconds?: number, // Twilio ParticipantDuration, present on 'disconnected'
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
export interface CalendarEvent_readonly extends ClientRecord {
|
|
2783
|
+
meetingId?: string
|
|
2766
2784
|
meetingStatus?: MeetingStatus,
|
|
2767
2785
|
references?: RelatedRecord[]
|
|
2786
|
+
videoCallAttendance?: VideoCallParticipantEvent[], // server-written join/leave log for video calls
|
|
2768
2787
|
}
|
|
2769
2788
|
export interface CalendarEvent_required {
|
|
2770
2789
|
title: string,
|
|
@@ -2955,6 +2974,7 @@ export interface CalendarEventTemplate_required {
|
|
|
2955
2974
|
}
|
|
2956
2975
|
export interface CalendarEventTemplate_updatesDisabled {}
|
|
2957
2976
|
export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, CalendarEventTemplate_required, CalendarEventTemplate_updatesDisabled {
|
|
2977
|
+
accessTags?: string[],
|
|
2958
2978
|
dontSyncToElation?: boolean,
|
|
2959
2979
|
sendIcsEmail?: boolean,
|
|
2960
2980
|
createAndBookAthenaSlot?: boolean,
|
|
@@ -3059,6 +3079,7 @@ export interface AppointmentBookingPage_required {
|
|
|
3059
3079
|
}
|
|
3060
3080
|
export interface AppointmentBookingPage_updatesDisabled {}
|
|
3061
3081
|
export interface AppointmentBookingPage extends AppointmentBookingPage_readonly, AppointmentBookingPage_required, AppointmentBookingPage_updatesDisabled {
|
|
3082
|
+
accessTags?: string[],
|
|
3062
3083
|
startDate?: Date,
|
|
3063
3084
|
endDate?: Date,
|
|
3064
3085
|
primaryColor?: string,
|
|
@@ -3802,6 +3823,7 @@ export interface ManagedContentRecord_updatesDisabled {
|
|
|
3802
3823
|
type?: ManagedContentRecordType,
|
|
3803
3824
|
}
|
|
3804
3825
|
export interface ManagedContentRecord extends ManagedContentRecord_readonly, ManagedContentRecord_required, ManagedContentRecord_updatesDisabled {
|
|
3826
|
+
accessTags?: string[],
|
|
3805
3827
|
index?: number,
|
|
3806
3828
|
headerPhoto?: string,
|
|
3807
3829
|
publicRead?: boolean,
|
|
@@ -4066,6 +4088,12 @@ export interface CarePlan extends CarePlan_readonly, CarePlan_required, CarePlan
|
|
|
4066
4088
|
export type TypedField = { type?: string, field?: string, }
|
|
4067
4089
|
export type UserFieldRedactions = { [modelName: string]: string[] }
|
|
4068
4090
|
|
|
4091
|
+
export type PortalSchemaRestrictions = {
|
|
4092
|
+
disableEditContent?: boolean,
|
|
4093
|
+
disableEditTheming?: boolean,
|
|
4094
|
+
disableEditSnippets?: boolean,
|
|
4095
|
+
}
|
|
4096
|
+
|
|
4069
4097
|
export type UserUIRestrictions = {
|
|
4070
4098
|
hideDashboard?: boolean,
|
|
4071
4099
|
hideInbox?: boolean,
|
|
@@ -4097,6 +4125,9 @@ export interface RoleBasedAccessPermission_required {
|
|
|
4097
4125
|
permissions: Partial<AccessPermissions>,
|
|
4098
4126
|
uiRestrictions?: UserUIRestrictions,
|
|
4099
4127
|
fieldRedactions?: UserFieldRedactions,
|
|
4128
|
+
portalSchemaRestrictions?: PortalSchemaRestrictions,
|
|
4129
|
+
color?: string,
|
|
4130
|
+
description?: string,
|
|
4100
4131
|
}
|
|
4101
4132
|
export interface RoleBasedAccessPermission_updatesDisabled {}
|
|
4102
4133
|
export interface RoleBasedAccessPermission extends RoleBasedAccessPermission_readonly, RoleBasedAccessPermission_required, RoleBasedAccessPermission_updatesDisabled {}
|
|
@@ -4824,7 +4855,7 @@ export type AutomationTriggerEvents = {
|
|
|
4824
4855
|
'SMS Reply': AutomationTriggerEventBuilder<"SMS Reply", { templateIds: string[], replyKeywords?: string[] }, {}>,
|
|
4825
4856
|
'Order Status Equals': AutomationTriggerEventBuilder<"Order Status Equals", {
|
|
4826
4857
|
source: string,
|
|
4827
|
-
status
|
|
4858
|
+
status?: string,
|
|
4828
4859
|
fills?: string[],
|
|
4829
4860
|
skus?: string[],
|
|
4830
4861
|
skuPartials?: string[],
|
|
@@ -4887,6 +4918,7 @@ export interface AutomationTrigger_required {
|
|
|
4887
4918
|
}
|
|
4888
4919
|
export interface AutomationTrigger_updatesDisabled {}
|
|
4889
4920
|
export interface AutomationTrigger extends AutomationTrigger_readonly, AutomationTrigger_required, AutomationTrigger_updatesDisabled {
|
|
4921
|
+
accessTags?: string[],
|
|
4890
4922
|
enduserCondition?: Record<string, any>,
|
|
4891
4923
|
journeyId?: string,
|
|
4892
4924
|
oncePerEnduser?: boolean,
|
|
@@ -5014,7 +5046,13 @@ export type PhoneTreeActions = {
|
|
|
5014
5046
|
playback?: Partial<PhonePlayback>,
|
|
5015
5047
|
playbackVoicemail?: Partial<PhonePlayback>,
|
|
5016
5048
|
}>,
|
|
5017
|
-
'Forward Call': PhoneTreeActionBuilder<"Forward Call", {
|
|
5049
|
+
'Forward Call': PhoneTreeActionBuilder<"Forward Call", {
|
|
5050
|
+
to?: string, // phone number (now optional — one of two modes)
|
|
5051
|
+
sipUrl?: string, // when set, forward via SIP instead of phone number
|
|
5052
|
+
sipUsername?: string, // optional SIP auth
|
|
5053
|
+
sipPassword?: string, // optional SIP auth
|
|
5054
|
+
playback?: Partial<PhonePlayback>,
|
|
5055
|
+
}>
|
|
5018
5056
|
'Conditional Split': PhoneTreeActionBuilder<"Conditional Split", {
|
|
5019
5057
|
timezone?: Timezone,
|
|
5020
5058
|
weeklyAvailabilities?: WeeklyAvailability[],
|
|
@@ -5078,6 +5116,7 @@ export interface TableView_required {
|
|
|
5078
5116
|
}
|
|
5079
5117
|
export interface TableView_updatesDisabled {}
|
|
5080
5118
|
export interface TableView extends TableView_readonly, TableView_required, TableView_updatesDisabled {
|
|
5119
|
+
accessTags?: string[],
|
|
5081
5120
|
defaultForRoles?: string[],
|
|
5082
5121
|
defaultForUserIds?: string[],
|
|
5083
5122
|
filter?: Indexable,
|
|
@@ -5166,6 +5205,15 @@ export type TimeTrackTimestamp = {
|
|
|
5166
5205
|
timestamp: Date,
|
|
5167
5206
|
}
|
|
5168
5207
|
|
|
5208
|
+
export type TimeTrackReviewHistoryItem = {
|
|
5209
|
+
reviewedAt: Date,
|
|
5210
|
+
reviewedByUserId?: string,
|
|
5211
|
+
reviewApproved?: boolean,
|
|
5212
|
+
reviewNote?: string,
|
|
5213
|
+
resubmittedAt?: Date,
|
|
5214
|
+
resubmittedByUserId?: string,
|
|
5215
|
+
}
|
|
5216
|
+
|
|
5169
5217
|
export interface TimeTrack_readonly extends ClientRecord {}
|
|
5170
5218
|
export interface TimeTrack_updatesDisabled {
|
|
5171
5219
|
isHistorical?: boolean,
|
|
@@ -5194,6 +5242,7 @@ export interface TimeTrack extends TimeTrack_readonly, TimeTrack_required, TimeT
|
|
|
5194
5242
|
reviewNote?: string,
|
|
5195
5243
|
lockedAt?: Date | '',
|
|
5196
5244
|
lockedByUserId?: string,
|
|
5245
|
+
reviewHistory?: TimeTrackReviewHistoryItem[],
|
|
5197
5246
|
}
|
|
5198
5247
|
|
|
5199
5248
|
export interface TicketQueue_readonly extends ClientRecord {
|
|
@@ -5502,7 +5551,7 @@ export interface AllergyCode extends AllergyCode_readonly, AllergyCode_required,
|
|
|
5502
5551
|
|
|
5503
5552
|
export interface IntegrationLog_readonly extends ClientRecord {
|
|
5504
5553
|
integration: string,
|
|
5505
|
-
status: "Success" | "Error",
|
|
5554
|
+
status: "Success" | "Error" | "Info",
|
|
5506
5555
|
type: string, // e.g. Create Patient
|
|
5507
5556
|
url?: string, // for logging endpoint
|
|
5508
5557
|
payload?: string, // for logging payload sent (if not too space-intensive)
|