@tellescope/types-models 1.253.0 → 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/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,8 @@ export type OrganizationSettings = {
326
327
  },
327
328
  timeTracking?: {
328
329
  enabled?: boolean,
330
+ setAppointmentDurationOnTimeTrackClose?: boolean,
331
+ inactivityThresholdInSeconds?: number, // when > 0: prompts on inactivity, auto-pauses (excluding idle time), and guards tab close
329
332
  }
330
333
  }
331
334
 
@@ -442,7 +445,7 @@ export interface Organization extends Organization_readonly, Organization_requir
442
445
  inboxThreadsBuiltTo?: Date | '',
443
446
  bedrockAIAllowed?: boolean,
444
447
  plan?: OrganizationPlan, // super-admin editable only (enforced via relationship constraint); readable by all
445
- onboardingStatus?: string,
448
+ onboardingStatus?: { [key: string]: string | boolean },
446
449
  subdomains?: string[],
447
450
  owner?: string,
448
451
  timezone?: Timezone,
@@ -670,12 +673,14 @@ export interface UserSession extends Session, OrganizationLimits { // User joine
670
673
  fromEmail?: string,
671
674
  verifiedEmail: boolean;
672
675
  wasAutomated: boolean;
673
- limits?: OrganizationLimits,
676
+ limits?: OrganizationLimits,
674
677
  uiRestrictions?: UserUIRestrictions,
675
678
  fieldRedactions?: UserFieldRedactions,
679
+ portalSchemaRestrictions?: PortalSchemaRestrictions,
676
680
  dashboardView?: CustomDashboardView,
677
681
  hasTicketQueues?: boolean,
678
682
  eat?: boolean, // enableAccessTags
683
+ erat?: boolean, // enableResourceAccessTags
679
684
  lockedOutUntil?: number,
680
685
  duration?: number,
681
686
  doseSpotUserId?: string,
@@ -1354,6 +1359,7 @@ export interface Journey_required {
1354
1359
  title: string;
1355
1360
  }
1356
1361
  export interface Journey extends Journey_readonly, Journey_required, Journey_updatesDisabled {
1362
+ accessTags?: string[],
1357
1363
  defaultState: string;
1358
1364
  states: JourneyState[];
1359
1365
  description?: string;
@@ -1599,6 +1605,7 @@ export interface MessageTemplate_required {
1599
1605
  }
1600
1606
  export interface MessageTemplate_updatesDisabled {}
1601
1607
  export interface MessageTemplate extends MessageTemplate_readonly, MessageTemplate_required, MessageTemplate_updatesDisabled {
1608
+ accessTags?: string[],
1602
1609
  html: string;
1603
1610
  type?: MessageTemplateType;
1604
1611
  editorState?: string
@@ -1641,7 +1648,9 @@ export interface File_required {
1641
1648
  }
1642
1649
  export interface File_updatesDisabled {}
1643
1650
  export interface File extends File_readonly, File_required, File_updatesDisabled, EnduserPortalVisibility {
1651
+ accessTags?: string[],
1644
1652
  enduserId?: string;
1653
+ formResponseId?: string,
1645
1654
  pushedToClientPortal?: boolean,
1646
1655
  hiddenFromEnduser?: boolean,
1647
1656
  source?: string,
@@ -2091,6 +2100,7 @@ export type FormCustomization = {
2091
2100
  publicFormSubmitHTMLDescription?: string,
2092
2101
  logoURL?: string, // Custom logo URL to override organization logo on this form
2093
2102
  logoHeight?: number,
2103
+ logoAlignment?: 'left' | 'center' | 'right', // V2 forms: logo horizontal alignment, default left
2094
2104
  publicLabelPrefix?: string,
2095
2105
  publicFnameLabel?: string,
2096
2106
  publicLnameLabel?: string,
@@ -2119,6 +2129,7 @@ export interface Form_required {
2119
2129
  }
2120
2130
  export interface Form_updatesDisabled {}
2121
2131
  export interface Form extends Form_readonly, Form_required, Form_updatesDisabled {
2132
+ accessTags?: string[],
2122
2133
  gtmTag?: string, // for Google Tag Manager
2123
2134
  ipAddressCustomField: string,
2124
2135
  archivedAt?: Date | '',
@@ -2759,10 +2770,20 @@ export interface CalendarEventPortalSettings {
2759
2770
  hideUsers?: boolean,
2760
2771
  }
2761
2772
 
2762
- export interface CalendarEvent_readonly extends ClientRecord {
2763
- meetingId?: string
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
2764
2784
  meetingStatus?: MeetingStatus,
2765
2785
  references?: RelatedRecord[]
2786
+ videoCallAttendance?: VideoCallParticipantEvent[], // server-written join/leave log for video calls
2766
2787
  }
2767
2788
  export interface CalendarEvent_required {
2768
2789
  title: string,
@@ -2953,6 +2974,7 @@ export interface CalendarEventTemplate_required {
2953
2974
  }
2954
2975
  export interface CalendarEventTemplate_updatesDisabled {}
2955
2976
  export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, CalendarEventTemplate_required, CalendarEventTemplate_updatesDisabled {
2977
+ accessTags?: string[],
2956
2978
  dontSyncToElation?: boolean,
2957
2979
  sendIcsEmail?: boolean,
2958
2980
  createAndBookAthenaSlot?: boolean,
@@ -3057,6 +3079,7 @@ export interface AppointmentBookingPage_required {
3057
3079
  }
3058
3080
  export interface AppointmentBookingPage_updatesDisabled {}
3059
3081
  export interface AppointmentBookingPage extends AppointmentBookingPage_readonly, AppointmentBookingPage_required, AppointmentBookingPage_updatesDisabled {
3082
+ accessTags?: string[],
3060
3083
  startDate?: Date,
3061
3084
  endDate?: Date,
3062
3085
  primaryColor?: string,
@@ -3800,6 +3823,7 @@ export interface ManagedContentRecord_updatesDisabled {
3800
3823
  type?: ManagedContentRecordType,
3801
3824
  }
3802
3825
  export interface ManagedContentRecord extends ManagedContentRecord_readonly, ManagedContentRecord_required, ManagedContentRecord_updatesDisabled {
3826
+ accessTags?: string[],
3803
3827
  index?: number,
3804
3828
  headerPhoto?: string,
3805
3829
  publicRead?: boolean,
@@ -4064,6 +4088,12 @@ export interface CarePlan extends CarePlan_readonly, CarePlan_required, CarePlan
4064
4088
  export type TypedField = { type?: string, field?: string, }
4065
4089
  export type UserFieldRedactions = { [modelName: string]: string[] }
4066
4090
 
4091
+ export type PortalSchemaRestrictions = {
4092
+ disableEditContent?: boolean,
4093
+ disableEditTheming?: boolean,
4094
+ disableEditSnippets?: boolean,
4095
+ }
4096
+
4067
4097
  export type UserUIRestrictions = {
4068
4098
  hideDashboard?: boolean,
4069
4099
  hideInbox?: boolean,
@@ -4095,6 +4125,9 @@ export interface RoleBasedAccessPermission_required {
4095
4125
  permissions: Partial<AccessPermissions>,
4096
4126
  uiRestrictions?: UserUIRestrictions,
4097
4127
  fieldRedactions?: UserFieldRedactions,
4128
+ portalSchemaRestrictions?: PortalSchemaRestrictions,
4129
+ color?: string,
4130
+ description?: string,
4098
4131
  }
4099
4132
  export interface RoleBasedAccessPermission_updatesDisabled {}
4100
4133
  export interface RoleBasedAccessPermission extends RoleBasedAccessPermission_readonly, RoleBasedAccessPermission_required, RoleBasedAccessPermission_updatesDisabled {}
@@ -4722,11 +4755,12 @@ export type AutomationTriggerActions = {
4722
4755
  "Add Access Tags": AutomationTriggerActionBuilder<'Add Access Tags', { tags: string[] }>,
4723
4756
  "Set Fields": AutomationTriggerActionBuilder<'Set Fields', { fields: EnduserFieldSetter[] }>,
4724
4757
  "Move To Step": AutomationTriggerActionBuilder<'Move To Step', { }>, // journeyId and automationStepId stored as part of trigger for better dependency deletion
4725
- "Assign Care Team": AutomationTriggerActionBuilder<'Assign Care Team', {
4758
+ "Assign Care Team": AutomationTriggerActionBuilder<'Assign Care Team', {
4726
4759
  tags: ListOfStringsWithQualifier,
4727
4760
  limitToOneUser?: boolean,
4728
4761
  setAsPrimary?: boolean,
4729
- }>,
4762
+ restrictByState?: boolean,
4763
+ }>,
4730
4764
  "Canvas: Add Patient": AutomationTriggerActionBuilder<'Canvas: Add Patient', { }>,
4731
4765
  "Zus: Delete Enrollment": AutomationTriggerActionBuilder<'Zus: Delete Enrollment', { packageId: string }>,
4732
4766
  "Remove Care Team": AutomationTriggerActionBuilder<'Remove Care Team', {
@@ -4821,7 +4855,7 @@ export type AutomationTriggerEvents = {
4821
4855
  'SMS Reply': AutomationTriggerEventBuilder<"SMS Reply", { templateIds: string[], replyKeywords?: string[] }, {}>,
4822
4856
  'Order Status Equals': AutomationTriggerEventBuilder<"Order Status Equals", {
4823
4857
  source: string,
4824
- status: string,
4858
+ status?: string,
4825
4859
  fills?: string[],
4826
4860
  skus?: string[],
4827
4861
  skuPartials?: string[],
@@ -4884,6 +4918,7 @@ export interface AutomationTrigger_required {
4884
4918
  }
4885
4919
  export interface AutomationTrigger_updatesDisabled {}
4886
4920
  export interface AutomationTrigger extends AutomationTrigger_readonly, AutomationTrigger_required, AutomationTrigger_updatesDisabled {
4921
+ accessTags?: string[],
4887
4922
  enduserCondition?: Record<string, any>,
4888
4923
  journeyId?: string,
4889
4924
  oncePerEnduser?: boolean,
@@ -5011,7 +5046,13 @@ export type PhoneTreeActions = {
5011
5046
  playback?: Partial<PhonePlayback>,
5012
5047
  playbackVoicemail?: Partial<PhonePlayback>,
5013
5048
  }>,
5014
- 'Forward Call': PhoneTreeActionBuilder<"Forward Call", { to: string, playback?: Partial<PhonePlayback> }>
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
+ }>
5015
5056
  'Conditional Split': PhoneTreeActionBuilder<"Conditional Split", {
5016
5057
  timezone?: Timezone,
5017
5058
  weeklyAvailabilities?: WeeklyAvailability[],
@@ -5075,6 +5116,7 @@ export interface TableView_required {
5075
5116
  }
5076
5117
  export interface TableView_updatesDisabled {}
5077
5118
  export interface TableView extends TableView_readonly, TableView_required, TableView_updatesDisabled {
5119
+ accessTags?: string[],
5078
5120
  defaultForRoles?: string[],
5079
5121
  defaultForUserIds?: string[],
5080
5122
  filter?: Indexable,
@@ -5163,6 +5205,15 @@ export type TimeTrackTimestamp = {
5163
5205
  timestamp: Date,
5164
5206
  }
5165
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
+
5166
5217
  export interface TimeTrack_readonly extends ClientRecord {}
5167
5218
  export interface TimeTrack_updatesDisabled {
5168
5219
  isHistorical?: boolean,
@@ -5191,6 +5242,7 @@ export interface TimeTrack extends TimeTrack_readonly, TimeTrack_required, TimeT
5191
5242
  reviewNote?: string,
5192
5243
  lockedAt?: Date | '',
5193
5244
  lockedByUserId?: string,
5245
+ reviewHistory?: TimeTrackReviewHistoryItem[],
5194
5246
  }
5195
5247
 
5196
5248
  export interface TicketQueue_readonly extends ClientRecord {
@@ -5499,7 +5551,7 @@ export interface AllergyCode extends AllergyCode_readonly, AllergyCode_required,
5499
5551
 
5500
5552
  export interface IntegrationLog_readonly extends ClientRecord {
5501
5553
  integration: string,
5502
- status: "Success" | "Error",
5554
+ status: "Success" | "Error" | "Info",
5503
5555
  type: string, // e.g. Create Patient
5504
5556
  url?: string, // for logging endpoint
5505
5557
  payload?: string, // for logging payload sent (if not too space-intensive)