@tellescope/types-models 1.178.0 → 1.180.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
@@ -204,6 +204,8 @@ export type OrganizationSettings = {
204
204
  showDiagnoses?: boolean,
205
205
  showDeviceOrders?: boolean,
206
206
  requireObservationInvalidationReason?: boolean,
207
+ defaultHideFilesFromPortal?: boolean,
208
+ hideUnorderedFullscriptMeds?: boolean,
207
209
  },
208
210
  tickets?: {
209
211
  defaultJourneyDueDateOffsetInMS?: number | '',
@@ -242,7 +244,10 @@ export type OrganizationSettings = {
242
244
  },
243
245
  users?: {
244
246
  sessionDurationInHours?: number,
245
- }
247
+ },
248
+ integrations?: {
249
+ vitalLabOrderPhysicianOptional?: boolean,
250
+ },
246
251
  }
247
252
 
248
253
  export type OrganizationLimits = {
@@ -392,6 +397,8 @@ export interface Organization extends Organization_readonly, Organization_requir
392
397
  chargebeeEnvironments?: string[],
393
398
  customNotificationTypes?: string[],
394
399
  hasConnectedMedplum?: boolean,
400
+ customPortalLoginEmailSubject?: string,
401
+ customPortalLoginEmailHTML?: string,
395
402
  // _AIEnabled?: boolean,
396
403
  }
397
404
  export type OrganizationTheme = {
@@ -1099,6 +1106,7 @@ export interface Email extends Email_required, Email_readonly, Email_updatesDisa
1099
1106
  assignedTo?: string[],
1100
1107
  canvasId?: string,
1101
1108
  discussionRoomId?: string,
1109
+ markedUnreadForAll?: boolean,
1102
1110
  // sentAt: string, // only outgoing
1103
1111
  }
1104
1112
 
@@ -1150,6 +1158,7 @@ export interface SMSMessage extends SMSMessage_readonly, SMSMessage_required, SM
1150
1158
  canvasId?: string,
1151
1159
  discussionRoomId?: string,
1152
1160
  mediaURLs?: string[],
1161
+ markedUnreadForAll?: boolean,
1153
1162
  // usingPublicNumber?: boolean, // flagged on outgoing messages from public number
1154
1163
  // sentAt: string, // only outgoing
1155
1164
  }
@@ -1169,6 +1178,7 @@ export type ChatRoomUserInfo = {
1169
1178
  export interface ChatRoom_required {}
1170
1179
  export interface ChatRoom_updatesDisabled {}
1171
1180
  export interface ChatRoom extends ChatRoom_readonly, ChatRoom_required, ChatRoom_updatesDisabled {
1181
+ markedUnreadForAll?: boolean,
1172
1182
  description?: string;
1173
1183
  type?: ChatRoomType;
1174
1184
  userIds?: string[];
@@ -1192,6 +1202,7 @@ export interface ChatRoom extends ChatRoom_readonly, ChatRoom_required, ChatRoom
1192
1202
  source?: string,
1193
1203
  externalId?: string,
1194
1204
  references?: RelatedRecord[] // internal, for storing built-in integrations info
1205
+ journeyId?: string,
1195
1206
  }
1196
1207
 
1197
1208
  export type ChatAttachmentType = 'image' | 'video' | 'file' | string
@@ -1238,6 +1249,7 @@ export interface ChatMessage extends ChatMessage_readonly, ChatMessage_required,
1238
1249
  references?: RelatedRecord[] // internal, for storing built-in integrations info
1239
1250
  sendAt?: Date | '',
1240
1251
  isDraft?: boolean,
1252
+ journeyId?: string,
1241
1253
  }
1242
1254
 
1243
1255
  export type MessageTemplateType = 'enduser' | 'Reply' | 'team' // default to 'enduser'
@@ -1262,6 +1274,7 @@ export interface MessageTemplate extends MessageTemplate_readonly, MessageTempla
1262
1274
  hideFromCompose?: boolean,
1263
1275
  tags?: string[],
1264
1276
  archivedAt?: Date | '',
1277
+ mmsAttachmentURLs?: string[],
1265
1278
  }
1266
1279
 
1267
1280
  export interface MessageTemplateSnippet_readonly extends ClientRecord {}
@@ -1441,6 +1454,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
1441
1454
  discussionRoomId?: string,
1442
1455
  source?: string,
1443
1456
  externalId?: string,
1457
+ hiddenFromTimeline?: boolean,
1444
1458
  }
1445
1459
 
1446
1460
  export type FormFieldLiteralType = 'Rich Text' | 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' /* date + time */ | 'dateString' | 'rating' | 'Time'
@@ -1694,6 +1708,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
1694
1708
  allowPortalSubmission?: boolean,
1695
1709
  canvasNoteCoding?: Partial<CanvasCoding>,
1696
1710
  syncToCanvasAsDataImport?: boolean,
1711
+ matchCareTeamTagsForCanvasPractitionerResolution?: ListOfStringsWithQualifier,
1697
1712
  }
1698
1713
 
1699
1714
  export interface FormGroup_readonly extends ClientRecord {}
@@ -2067,6 +2082,7 @@ export interface FormResponse_updatesDisabled {
2067
2082
  automationStepId?: string,
2068
2083
  }
2069
2084
  export interface FormResponse extends FormResponse_readonly, FormResponse_required, FormResponse_updatesDisabled, EnduserPortalVisibility {
2085
+ hiddenFromTimeline?: boolean,
2070
2086
  draftSavedAt?: Date,
2071
2087
  draftSavedBy?: string,
2072
2088
  sharedVia?: CommunicationsChannel,
@@ -3259,6 +3275,7 @@ export interface PhoneCall_readonly extends ClientRecord {
3259
3275
  export interface PhoneCall_required {}
3260
3276
  export interface PhoneCall_updatesDisabled {}
3261
3277
  export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, PhoneCall_updatesDisabled {
3278
+ markedUnreadForAll?: boolean,
3262
3279
  enduserId: string,
3263
3280
  externalId: string,
3264
3281
  from: string,
@@ -3340,6 +3357,8 @@ export type AnalyticsQueryInfo = AnalyticsQueryInfoForType[AnalyticsQueryInfoTyp
3340
3357
 
3341
3358
  export type ListQueryQualifier = 'All Of' | 'One Of'
3342
3359
 
3360
+ export type AnalyticsEnduserFilterField = { key: string, value: string, operator?: string, range?: DateRange | '' }
3361
+
3343
3362
  export type AnalyticsQueryFilterForType = {
3344
3363
  "Endusers": {
3345
3364
  activeSince?: Date | '',
@@ -3348,7 +3367,7 @@ export type AnalyticsQueryFilterForType = {
3348
3367
  formIds: string[],
3349
3368
  formResponseCondition?: CompoundFilter<string>,
3350
3369
  },
3351
- fields?: { key: string, value: string, operator?: string, range?: DateRange | '' }[],
3370
+ fields?: AnalyticsEnduserFilterField[],
3352
3371
  gender?: TellescopeGender,
3353
3372
  assignedTo?: {
3354
3373
  qualifier: ListQueryQualifier,
@@ -3379,6 +3398,8 @@ export type AnalyticsQueryFilterForType = {
3379
3398
  "Tickets": {
3380
3399
  titles?: string[],
3381
3400
  closeReasons?: string[],
3401
+ userTags?: ListOfStringsWithQualifier,
3402
+ enduserFields?: AnalyticsEnduserFilterField[],
3382
3403
  },
3383
3404
  "Phone Calls": { },
3384
3405
  "Meetings": { },
@@ -3411,6 +3432,7 @@ export type AnalyticsQueryGroupingForType = {
3411
3432
  "Calendar Events": {
3412
3433
  Type: boolean,
3413
3434
  "Scheduled By"?: boolean,
3435
+ alsoGroupByHost?: boolean, // for further breaking down a grouping by host
3414
3436
  } & EnduserGrouping & { Enduser: string },
3415
3437
  "Form Responses": {
3416
3438
  "Submitted By"?: boolean,
@@ -3581,6 +3603,7 @@ export const resource_to_modelName: { [K in AnalyticsQueryType] : ModelName } =
3581
3603
 
3582
3604
  export type AnalyticsQueryOptions = {
3583
3605
  createdRange?: DateRange,
3606
+ createdAvailabilities?: WeeklyAvailability[],
3584
3607
  updatedRange?: DateRange,
3585
3608
  overrideGlobalRange?: boolean,
3586
3609
  groupByCareTeam?: boolean, // supports multi-grouping for both care team and a normal field
@@ -4059,6 +4082,7 @@ export interface TicketThreadComment extends TicketThreadComment_readonly, Ticke
4059
4082
  hiddenForAll?: boolean,
4060
4083
  ticketIds?: string[],
4061
4084
  tags?: string[],
4085
+ markedUnreadForAll?: boolean,
4062
4086
  }
4063
4087
 
4064
4088
  export interface Configuration_readonly extends ClientRecord {}
@@ -4231,6 +4255,7 @@ export interface GroupMMSConversation_updatesDisabled {}
4231
4255
  export interface GroupMMSConversation_required {
4232
4256
  }
4233
4257
  export interface GroupMMSConversation extends GroupMMSConversation_readonly, GroupMMSConversation_required, GroupMMSConversation_updatesDisabled {
4258
+ markedUnreadForAll?: boolean,
4234
4259
  }
4235
4260
 
4236
4261
  export type VitalComparisons = {