@tellescope/types-models 1.172.0 → 1.174.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
@@ -814,6 +814,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
814
814
  lockedFromPortal?: boolean,
815
815
  chargebeeEnvironment?: string,
816
816
  chargebeeId?: string,
817
+ healthieSyncError?: string,
817
818
  // unsubscribedFromEmail?: boolean,
818
819
  // unsubscribedFromSMS?: boolean,
819
820
  }
@@ -1068,7 +1069,7 @@ export interface Email extends Email_required, Email_readonly, Email_updatesDisa
1068
1069
  replyTo?: string | null;
1069
1070
  isBounce?: boolean,
1070
1071
  via?: string,
1071
- readBy?: { [index: string] : Date };
1072
+ readBy?: { [index: string] : Date | '' };
1072
1073
  journeyContext?: JourneyContext,
1073
1074
  sendAt?: Date | '',
1074
1075
  pinnedAt?: Date | '',
@@ -1120,7 +1121,7 @@ export interface SMSMessage extends SMSMessage_readonly, SMSMessage_required, SM
1120
1121
  autoResolveToFrom?: boolean,
1121
1122
  isAutoreply?: boolean,
1122
1123
  userId?: string, // defaults to self, but should allow future options to send as other user
1123
- readBy?: { [index: string] : Date };
1124
+ readBy?: { [index: string] : Date | '' };
1124
1125
  hiddenBy?: { [index: string] : Date | '' };
1125
1126
  hiddenForAll?: boolean,
1126
1127
  error?: string,
@@ -1155,6 +1156,7 @@ export interface ChatRoom_readonly extends ClientRecord {
1155
1156
  }
1156
1157
  export type ChatRoomUserInfo = {
1157
1158
  unreadCount: number
1159
+ markedUnread?: boolean,
1158
1160
  }
1159
1161
  export interface ChatRoom_required {}
1160
1162
  export interface ChatRoom_updatesDisabled {}
@@ -1212,7 +1214,7 @@ export interface ChatMessage_updatesDisabled {
1212
1214
  export interface ChatMessage extends ChatMessage_readonly, ChatMessage_required, ChatMessage_updatesDisabled, TextCommunication {
1213
1215
  senderId: string | null;
1214
1216
  html?: string,
1215
- readBy?: { [index: string] : Date };
1217
+ readBy?: { [index: string] : Date | '' };
1216
1218
  hiddenBy?: { [index: string] : Date | '' };
1217
1219
  hiddenForAll?: boolean,
1218
1220
  attachments?: ChatAttachment[]
@@ -1461,6 +1463,7 @@ export type TableInputChoices = {
1461
1463
  Text: TableChoiceBuilder<'Text', {}>
1462
1464
  Select: TableChoiceBuilder<'Select', { choices: string[] }>
1463
1465
  Date: TableChoiceBuilder<'Date', { }> // dateString not datetime
1466
+ Database: TableChoiceBuilder<'Database', { databaseId: string, databaseLabel: string }>
1464
1467
  }
1465
1468
 
1466
1469
  export type TableInputChoiceType = keyof TableInputChoices
@@ -2738,6 +2741,7 @@ export type ActiveCampaignAddToListsAutomationAction = AutomationActionBuilder<'
2738
2741
  export type SwitchToRelatedContactAutomationAction = AutomationActionBuilder<'switchToRelatedContact', { type: string, otherTypes?: string[] }>
2739
2742
  export type ElationSyncAutomationAction = AutomationActionBuilder<'elationSync', { }>
2740
2743
  export type CanvasSyncAutomationAction = AutomationActionBuilder<'canvasSync', {}>
2744
+ export type CancelFutureAppointmentsAutomationAction = AutomationActionBuilder<'cancelFutureAppointments', {}>
2741
2745
  export type DevelopHealthMedicationEligibilityAutomationAction = AutomationActionBuilder<'developHealthMedEligibility', {
2742
2746
  drugs: DevelopHealthDrug[],
2743
2747
  diagnoses: DevelopHealthDiagnosis[],
@@ -2754,6 +2758,7 @@ export type IterableCustomEventAutomationAction = AutomationActionBuilder<'itera
2754
2758
  description: string, // for logging in timeline
2755
2759
  dataFieldsMapping?: IterableFieldsMapping[]
2756
2760
  environment?: string, // for additional API keys
2761
+ customEmailField?: string, // for using custom field as built-in iterable email field
2757
2762
  }>
2758
2763
 
2759
2764
  export type EnduserFieldSetterType = 'Custom Value' | 'Current Timestamp' | 'Current Date' | "Increment Number"
@@ -2812,6 +2817,7 @@ export type AutomationActionForType = {
2812
2817
  canvasSync: CanvasSyncAutomationAction,
2813
2818
  pushFormsToPortal: PushFormsAutomationAction,
2814
2819
  developHealthMedEligibility: DevelopHealthMedicationEligibilityAutomationAction,
2820
+ cancelFutureAppointments: CancelFutureAppointmentsAutomationAction,
2815
2821
  }
2816
2822
  export type AutomationActionType = keyof AutomationActionForType
2817
2823
  export type AutomationAction = AutomationActionForType[AutomationActionType]
@@ -3322,6 +3328,7 @@ export type AnalyticsQueryFilterForType = {
3322
3328
  },
3323
3329
  born?: DateRange,
3324
3330
  tags?: ListOfStringsWithQualifier,
3331
+ entityTypes?: string[],
3325
3332
  },
3326
3333
  "Calendar Events": {
3327
3334
  userIds?: string[],
@@ -3690,6 +3697,13 @@ export type AutomationTriggerActions = {
3690
3697
  "Require Form Followups": AutomationTriggerActionBuilder<'Require Form Followups', {
3691
3698
  formIds: string[],
3692
3699
  }>,
3700
+ "Add to Waitlist": AutomationTriggerActionBuilder<'Add to Waitlist', {
3701
+ waitlistId: string,
3702
+ }>,
3703
+ "Grant Access From Waitlist": AutomationTriggerActionBuilder<'Grant Access From Waitlist', {
3704
+ waitlistId: string,
3705
+ count: number,
3706
+ }>,
3693
3707
  }
3694
3708
  export type AutomationTriggerActionType = keyof AutomationTriggerActions
3695
3709
  export type AutomationTriggerAction = AutomationTriggerActions[AutomationTriggerActionType]
@@ -3886,6 +3900,7 @@ export type PhoneTreeActions = {
3886
3900
  playback?: Partial<PhonePlayback>,
3887
3901
  duration?: number,
3888
3902
  addToCareTeam?: boolean,
3903
+ dialRecentAgent?: boolean,
3889
3904
  }>
3890
3905
  "Select Care Team Member": PhoneTreeActionBuilder<"Select Care Team Member", {
3891
3906
  playback?: Partial<PhonePlayback>,
@@ -3896,6 +3911,7 @@ export type PhoneTreeActions = {
3896
3911
  timezone?: Timezone,
3897
3912
  weeklyAvailabilities?: WeeklyAvailability[],
3898
3913
  hasCareTeam?: boolean,
3914
+ hasOneCareTeamMember?: boolean,
3899
3915
  }>
3900
3916
  'Add to Queue': PhoneTreeActionBuilder<"Add to Queue", { queueId: string, playback?: Partial<PhonePlayback>, }>
3901
3917
  }
@@ -3983,7 +3999,7 @@ export interface TicketThreadComment_readonly extends ClientRecord {
3983
3999
  externalId?: string,
3984
4000
  source?: string,
3985
4001
  references?: RelatedRecord[]
3986
- readBy?: { [index: string] : Date };
4002
+ readBy?: { [index: string] : Date | '' };
3987
4003
  timestamp?: Date,
3988
4004
  group?: string,
3989
4005
  }
@@ -4161,6 +4177,7 @@ export type GroupMMSMessage = {
4161
4177
  export type GroupMMSUserState = {
4162
4178
  id: string,
4163
4179
  numUnread: number,
4180
+ markedUnread?: boolean,
4164
4181
  }
4165
4182
 
4166
4183
  // lots of readonly as we use custom endpoint to create and send messages
@@ -4345,7 +4362,19 @@ export interface AgentRecord extends AgentRecord_readonly, AgentRecord_required,
4345
4362
  // indexId?: string,
4346
4363
  }
4347
4364
 
4365
+ export interface Waitlist_readonly extends ClientRecord {}
4366
+ export interface Waitlist_required {
4367
+ title: string,
4368
+ journeyId: string,
4369
+ }
4370
+ export interface Waitlist_updatesDisabled {}
4371
+ export interface Waitlist extends Waitlist_readonly, Waitlist_required, Waitlist_updatesDisabled {
4372
+ enduserIds: string[],
4373
+ tags?: string[],
4374
+ }
4375
+
4348
4376
  export type ModelForName_required = {
4377
+ waitlists: Waitlist_required,
4349
4378
  agent_records: AgentRecord_required,
4350
4379
  enduser_eligibility_results: EnduserEligibilityResult_required,
4351
4380
  integration_logs: IntegrationLog_required,
@@ -4435,6 +4464,7 @@ export type ModelForName_required = {
4435
4464
  export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
4436
4465
 
4437
4466
  export interface ModelForName_readonly {
4467
+ waitlists: Waitlist_readonly,
4438
4468
  agent_records: AgentRecord_readonly,
4439
4469
  enduser_eligibility_results: EnduserEligibilityResult_readonly,
4440
4470
  integration_logs: IntegrationLog_readonly,
@@ -4524,6 +4554,7 @@ export interface ModelForName_readonly {
4524
4554
  export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
4525
4555
 
4526
4556
  export interface ModelForName_updatesDisabled {
4557
+ waitlists: Waitlist_updatesDisabled,
4527
4558
  agent_records: AgentRecord_updatesDisabled,
4528
4559
  enduser_eligibility_results: EnduserEligibilityResult_updatesDisabled,
4529
4560
  integration_logs: IntegrationLog_updatesDisabled,
@@ -4613,6 +4644,7 @@ export interface ModelForName_updatesDisabled {
4613
4644
  export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
4614
4645
 
4615
4646
  export interface ModelForName extends ModelForName_required, ModelForName_readonly {
4647
+ waitlists: Waitlist,
4616
4648
  agent_records: AgentRecord,
4617
4649
  enduser_eligibility_results: EnduserEligibilityResult,
4618
4650
  integration_logs: IntegrationLog,
@@ -4712,6 +4744,7 @@ export interface UserActivityInfo {
4712
4744
  export type UserActivityStatus = 'Active' | 'Away' | 'Unavailable'
4713
4745
 
4714
4746
  export const modelNameChecker: { [K in ModelName] : true } = {
4747
+ waitlists: true,
4715
4748
  agent_records: true,
4716
4749
  enduser_eligibility_results: true,
4717
4750
  integration_logs: true,