@tellescope/types-models 1.88.0 → 1.89.1

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
@@ -227,9 +227,12 @@ export type BasicWebhook = {
227
227
  }
228
228
 
229
229
  export type SyncDirection = "Bidirectional" | "From Tellescope" | "To Tellescope"
230
- export type FieldSync = {
230
+ export type AthenaFieldSync = {
231
231
  field: string,
232
- externalField: string,
232
+ externalField: {
233
+ id: string,
234
+ options: { id: string, value: string }[]
235
+ },
233
236
  direction: SyncDirection,
234
237
  }
235
238
 
@@ -321,9 +324,14 @@ export interface Organization extends Organization_readonly, Organization_requir
321
324
  showCommunity?: boolean,
322
325
  phoneLabels?: { number: string, label: string }[];
323
326
  mfaxAccountId?: string,
324
- athenaFieldsSync?: FieldSync[]
327
+ athenaFieldsSync?: AthenaFieldSync[]
325
328
  athenaSubscriptions?: AthenaSubscription[],
329
+ athenaDepartmentIds?: string[],
326
330
  fieldsToAdminNote?: string[],
331
+ canvasMessageSync?: {
332
+ id: string,
333
+ questionId: string,
334
+ }
327
335
  // _AIEnabled?: boolean,
328
336
  }
329
337
  export type OrganizationTheme = {
@@ -946,6 +954,7 @@ export interface Email extends Email_required, Email_readonly, Email_updatesDisa
946
954
  isMarketing?: boolean,
947
955
  destination?: string[],
948
956
  assignedTo?: string[],
957
+ canvasId?: string,
949
958
  // sentAt: string, // only outgoing
950
959
  }
951
960
 
@@ -990,6 +999,7 @@ export interface SMSMessage extends SMSMessage_readonly, SMSMessage_required, SM
990
999
  replyToTemplateId?: string,
991
1000
  assignedTo?: string[],
992
1001
  templatedMessage?: string,
1002
+ canvasId?: string,
993
1003
  // usingPublicNumber?: boolean, // flagged on outgoing messages from public number
994
1004
  // sentAt: string, // only outgoing
995
1005
  }
@@ -1065,6 +1075,7 @@ export interface ChatMessage extends ChatMessage_readonly, ChatMessage_required,
1065
1075
  mentions?: string[],
1066
1076
  userId?: string,
1067
1077
  enduserId?: string,
1078
+ canvasId?: string,
1068
1079
  }
1069
1080
 
1070
1081
  export type MessageTemplateType = 'enduser' | 'Reply' | 'team' // default to 'enduser'
@@ -1115,6 +1126,7 @@ export type TicketActionBuilder <T, I> = { type: T, info: I, optional?: boolean,
1115
1126
  export type TicketActions = {
1116
1127
  "Complete Form": TicketActionBuilder<'Complete Form', { formId: string, formResponseId?: string }>,
1117
1128
  "Create Prescription": TicketActionBuilder<'Create Prescription', { }>,
1129
+ "Send SMS": TicketActionBuilder<'Send SMS', { templateId: string, smsId?: string }>,
1118
1130
  }
1119
1131
  export type TicketActionType = keyof TicketActions
1120
1132
  export type TicketAction = TicketActions[TicketActionType]
@@ -1187,6 +1199,7 @@ export interface Ticket extends Ticket_readonly, Ticket_required, Ticket_updates
1187
1199
  preserveContext?: boolean,
1188
1200
  phoneCallId?: string,
1189
1201
  calendarEventId?: string,
1202
+ observationId?: string,
1190
1203
  }
1191
1204
 
1192
1205
  export type AttendeeInfo = {
@@ -1305,6 +1318,7 @@ export type FormFieldOptions = FormFieldValidation & {
1305
1318
  },
1306
1319
  useDatePicker?: boolean,
1307
1320
  sharedIntakeFields?: string[],
1321
+ copyResponse?: boolean, // copy to related contacts when created
1308
1322
  disableGoBack?: boolean,
1309
1323
  disableNext?: boolean,
1310
1324
  customPriceMessage?: string,
@@ -1421,6 +1435,8 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
1421
1435
  tags?: string[]
1422
1436
  language?: string,
1423
1437
  isNonVisitElationNote?: boolean,
1438
+ canvasId?: string,
1439
+ canvasQuestionId?: string,
1424
1440
  }
1425
1441
 
1426
1442
 
@@ -1726,6 +1742,7 @@ export interface FormResponse extends FormResponse_readonly, FormResponse_requir
1726
1742
  carePlanId?: string,
1727
1743
  context?: string,
1728
1744
  calendarEventId?: string,
1745
+ copiedFrom?: string,
1729
1746
  }
1730
1747
 
1731
1748
  export interface WebHook_readonly extends ClientRecord {}
@@ -2161,6 +2178,7 @@ export type SetEnduserStatusInfo = { status: string }
2161
2178
  interface AutomationActionBuilder <T extends string, V extends object> {
2162
2179
  type: T,
2163
2180
  info: V,
2181
+ continueOnError?: boolean,
2164
2182
  }
2165
2183
 
2166
2184
  export type AssignToQueueInfo = {
@@ -2585,6 +2603,8 @@ export interface AutomatedAction_readonly extends ClientRecord {
2585
2603
  journeyContext?: JourneyContext
2586
2604
  source?: string,
2587
2605
  triggerId?: string,
2606
+ lockedAt?: number,
2607
+ lockId?: string,
2588
2608
  }
2589
2609
  export interface AutomatedAction_required {
2590
2610
  enduserId: string,
@@ -2669,6 +2689,10 @@ export interface RoleBasedAccessPermission_updatesDisabled {}
2669
2689
  export interface RoleBasedAccessPermission extends RoleBasedAccessPermission_readonly, RoleBasedAccessPermission_required, RoleBasedAccessPermission_updatesDisabled {}
2670
2690
 
2671
2691
  export interface PhoneCall_readonly extends ClientRecord {
2692
+ }
2693
+ export interface PhoneCall_required {}
2694
+ export interface PhoneCall_updatesDisabled {}
2695
+ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, PhoneCall_updatesDisabled {
2672
2696
  enduserId: string,
2673
2697
  externalId: string,
2674
2698
  from: string,
@@ -2682,10 +2706,6 @@ export interface PhoneCall_readonly extends ClientRecord {
2682
2706
  transcriptionId?: string,
2683
2707
  conferenceId?: string,
2684
2708
  conferenceAttendees?: string[],
2685
- }
2686
- export interface PhoneCall_required {}
2687
- export interface PhoneCall_updatesDisabled {}
2688
- export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, PhoneCall_updatesDisabled {
2689
2709
  unread?: boolean,
2690
2710
  transcription?: string,
2691
2711
  note?: string,
@@ -2699,6 +2719,7 @@ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, Phone
2699
2719
  answeredAt?: Date,
2700
2720
  recordingCancelledAt?: Date,
2701
2721
  assignedTo?: string[],
2722
+ timestamp?: Date,
2702
2723
  }
2703
2724
 
2704
2725
  export type AnalyticsQueryResultValue = {
@@ -3879,6 +3900,7 @@ export type JourneyContext = {
3879
3900
  purchaseId?: string,
3880
3901
  templateId?: string,
3881
3902
  orderId?: string,
3903
+ observationId?: string,
3882
3904
  }
3883
3905
 
3884
3906
  // https://gist.github.com/aviflax/a4093965be1cd008f172/