@tellescope/types-models 1.200.2 → 1.202.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
@@ -263,6 +263,7 @@ export type OrganizationSettings = {
263
263
  interface?: {
264
264
  dontPersistSearches?: boolean,
265
265
  showEndusersV2?: boolean,
266
+ showInboxV2?: boolean,
266
267
  }
267
268
  }
268
269
 
@@ -1123,10 +1124,10 @@ export interface Email_updatesDisabled {
1123
1124
  inbound?: boolean;
1124
1125
  logOnly?: boolean,
1125
1126
  timestamp?: Date,
1126
- userId: string; // not actually required on create
1127
1127
  journeyId?: string,
1128
1128
  }
1129
1129
  export interface Email extends Email_required, Email_readonly, Email_updatesDisabled, TextCommunication {
1130
+ userId: string; // not actually required on create
1130
1131
  hiddenFromTimeline?: boolean,
1131
1132
  isAutoreply?: boolean,
1132
1133
  replyTo?: string | null;
@@ -1222,6 +1223,7 @@ export type ChatRoomType = 'internal' | 'external' | 'Group Chat'
1222
1223
  export interface ChatRoom_readonly extends ClientRecord {
1223
1224
  recentMessage?: string,
1224
1225
  recentEnduserMessage?: string,
1226
+ recentEnduserMessageSentAt?: number,
1225
1227
  recentSender?: string,
1226
1228
  recentMessageSentAt?: number,
1227
1229
  numMessages: number,
@@ -1725,6 +1727,7 @@ export interface Form_required {
1725
1727
  }
1726
1728
  export interface Form_updatesDisabled {}
1727
1729
  export interface Form extends Form_readonly, Form_required, Form_updatesDisabled {
1730
+ gtmTag?: string, // for Google Tag Manager
1728
1731
  ipAddressCustomField: string,
1729
1732
  archivedAt?: Date | '',
1730
1733
  displayTitle?: string, // for displaying in portal / timeline, but not internally
@@ -2286,7 +2289,8 @@ export interface CalendarEvent_updatesDisabled {}
2286
2289
  export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_required, CalendarEvent_updatesDisabled {
2287
2290
  athenaDepartmentId?: string,
2288
2291
  generateAthenaTelehealthLink?: boolean,
2289
- athenaTypeId?: string,
2292
+ athenaTypeId?: string, // for searching slots (default booking type)
2293
+ athenaBookingTypeId?: string, // for booking a different type than the slot
2290
2294
  actualDuration?: number,
2291
2295
  dontSyncToCanvas?: boolean,
2292
2296
  reason?: string, // reason for booking, patient-entered
@@ -2395,6 +2399,7 @@ export interface Product extends Product_readonly, Product_required, Product_upd
2395
2399
  maxCheckoutCount?: number | '',
2396
2400
  stripeSubscriptionId?: string,
2397
2401
  stripeProductId?: string,
2402
+ stripePriceId?: string,
2398
2403
  }
2399
2404
 
2400
2405
  export interface Purchase_readonly extends ClientRecord {}
@@ -2496,7 +2501,8 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
2496
2501
  preventCancelMinutesInAdvance?: number,
2497
2502
  athenaDepartmentId?: string,
2498
2503
  generateAthenaTelehealthLink?: boolean,
2499
- athenaTypeId?: string,
2504
+ athenaTypeId?: string, // for searching slots (default booking type)
2505
+ athenaBookingTypeId?: string, // for booking a different type than the slot
2500
2506
  }
2501
2507
 
2502
2508
  export interface AppointmentLocation_readonly extends ClientRecord {}
@@ -2576,6 +2582,7 @@ export interface AppointmentBookingPage extends AppointmentBookingPage_readonly,
2576
2582
  appointmentSlotsMaxHeight?: number,
2577
2583
  includeRelatedContactTypes?: string[],
2578
2584
  archivedAt?: Date | '',
2585
+ gtmTag?: string,
2579
2586
  // productIds?: string[], // defer to specific template
2580
2587
  }
2581
2588
 
@@ -2855,6 +2862,7 @@ export type CreateCarePlanAutomationAction = AutomationActionBuilder<'createCare
2855
2862
  export type CompleteCarePlanAutomationAction = AutomationActionBuilder<'completeCarePlan', {}>
2856
2863
  export type ZusSyncAutomationAction = AutomationActionBuilder<'zusSync', {}>
2857
2864
  export type ZusPullAutomationAction = AutomationActionBuilder<'zusPull', {}>
2865
+ export type ZusSubscribeAutomationAction = AutomationActionBuilder<'zusSubscribe', { practitionerId: string, packageIds: string[] }>
2858
2866
  export type PagerDutyCreateIncidentAutomationAction = AutomationActionBuilder<'pagerDutyCreateIncident', { type: string, title: string, serviceId: string }>
2859
2867
  export type SmartMeterOrderLineItem = { quantity: number, sku: string }
2860
2868
  export type SmartMeterPlaceOrderAutomationAction = AutomationActionBuilder<'smartMeterPlaceOrder', {
@@ -2956,6 +2964,7 @@ export type AutomationActionForType = {
2956
2964
  'completeCarePlan': CompleteCarePlanAutomationAction,
2957
2965
  'zusSync': ZusSyncAutomationAction,
2958
2966
  'zusPull': ZusPullAutomationAction,
2967
+ 'zusSubscribe': ZusSubscribeAutomationAction,
2959
2968
  'pagerDutyCreateIncident': PagerDutyCreateIncidentAutomationAction,
2960
2969
  'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction,
2961
2970
  'healthieSync': HealthieSyncAutomationAction,
@@ -3480,6 +3489,7 @@ export type AnalyticsEnduserFilterField = { key: string, value: string, operator
3480
3489
  export type AnalyticsQueryFilterForType = {
3481
3490
  "Endusers": {
3482
3491
  activeSince?: Date | '',
3492
+ "Contacted Since"? : Date | '',
3483
3493
  "Submitted Forms"?: {
3484
3494
  qualifier: ListQueryQualifier,
3485
3495
  formIds: string[],
@@ -4183,7 +4193,7 @@ export interface TicketThread extends TicketThread_readonly, TicketThread_requir
4183
4193
  subject: string,
4184
4194
  closedAt?: Date | '',
4185
4195
  pinnedAt?: Date | '',
4186
- assignedTo?: string[],
4196
+ assignedTo?: string[], // moved to TicketThreadComment in inbox redesign
4187
4197
  tags?: string[],
4188
4198
  }
4189
4199
 
@@ -4203,6 +4213,7 @@ export interface TicketThreadComment_required {
4203
4213
  enduserId: string,
4204
4214
  public: boolean
4205
4215
  inbound: boolean,
4216
+ assignedTo?: string[],
4206
4217
  }
4207
4218
  export interface TicketThreadComment_updatesDisabled {}
4208
4219
  export interface TicketThreadComment extends TicketThreadComment_readonly, TicketThreadComment_required, TicketThreadComment_updatesDisabled {
@@ -4381,26 +4392,26 @@ export type GroupMMSUserState = {
4381
4392
  // lots of readonly as we use custom endpoint to create and send messages
4382
4393
  export interface GroupMMSConversation_readonly extends ClientRecord {
4383
4394
  externalId: string,
4384
- phoneNumber: string,
4395
+ destinations: string[],
4385
4396
  messages: GroupMMSMessage[],
4397
+ phoneNumber: string,
4386
4398
  title: string,
4387
- userIds: string[],
4388
- enduserIds: string[],
4389
- destinations: string[],
4390
- userStates: GroupMMSUserState[],
4391
4399
  pinnedAt?: Date | '',
4392
4400
  tags?: string[]
4393
4401
  suggestedReply?: string,
4394
4402
  hiddenBy?: { [index: string] : Date | '' };
4395
4403
  hiddenForAll?: boolean,
4396
- assignedTo?: string[],
4397
4404
  }
4398
4405
  export interface GroupMMSConversation_updatesDisabled {}
4399
4406
  export interface GroupMMSConversation_required {
4407
+ userIds: string[],
4408
+ userStates: GroupMMSUserState[],
4409
+ enduserIds: string[],
4400
4410
  }
4401
4411
  export interface GroupMMSConversation extends GroupMMSConversation_readonly, GroupMMSConversation_required, GroupMMSConversation_updatesDisabled {
4402
4412
  markedUnreadForAll?: boolean,
4403
4413
  inboxStatus?: string,
4414
+ assignedTo?: string[],
4404
4415
  }
4405
4416
 
4406
4417
  export type VitalComparisons = {