@tellescope/types-models 1.150.0 → 1.151.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.
@@ -132,9 +132,12 @@ export type EnduserBuiltInField = {
132
132
  requireConfirmation?: boolean;
133
133
  hidden?: boolean;
134
134
  };
135
- export type CustomDashboardViewBlockType = "Inbox" | "Tickets" | "Upcoming Events" | "Team Chats" | "To-Dos";
135
+ export type CustomDashboardViewBlockType = "Inbox" | "Tickets" | "Upcoming Events" | "Team Chats" | "To-Dos" | "Database";
136
136
  export type CustomDashboardViewBlock = {
137
137
  type: CustomDashboardViewBlockType;
138
+ info?: {
139
+ databaseId?: string;
140
+ };
138
141
  };
139
142
  export type CustomDashboardView = {
140
143
  blocks: CustomDashboardViewBlock[];
@@ -595,7 +598,7 @@ export type ScheduledJourney = {
595
598
  addAt: Date;
596
599
  };
597
600
  export type EnduserRelationship = {
598
- type: ('Parent' | 'Child' | 'Spouse' | 'Partner' | 'Sibling' | 'Grandparent' | 'Grandchild' | 'Caregiver' | 'Caretaker' | 'Care Recipient' | 'Power of Attorney' | 'Power of Attorney For' | "Emergency Contact" | "Emergency Contact For" | "Care Partner" | 'Relates To');
601
+ type: ('Parent' | 'Child' | 'Spouse' | 'Partner' | 'Sibling' | 'Grandparent' | 'Grandchild' | 'Caregiver' | 'Caretaker' | 'Care Recipient' | 'Power of Attorney' | 'Power of Attorney For' | "Emergency Contact" | "Emergency Contact For" | "Care Partner" | 'Relates To' | "Referring Provider" | "Referred Patient");
599
602
  id: string;
600
603
  };
601
604
  export type Language = {
@@ -1297,8 +1300,11 @@ export interface Ticket extends Ticket_readonly, Ticket_required, Ticket_updates
1297
1300
  restrictByTagsQualifier?: ListQueryQualifier;
1298
1301
  archiveReason?: string;
1299
1302
  contextFormIds?: string[];
1303
+ orderId?: string;
1300
1304
  contextEnduserFields?: string[];
1301
1305
  isTodo?: boolean;
1306
+ databaseRecordId?: string;
1307
+ databaseRecordCreator?: string;
1302
1308
  }
1303
1309
  export type AttendeeInfo = {
1304
1310
  ExternalUserId: string;
@@ -1668,6 +1674,7 @@ export type DatabaseRecordFields = {
1668
1674
  [K in DatabaseRecordFieldType]: {
1669
1675
  type: K;
1670
1676
  label: string;
1677
+ showConditions?: Record<any, any>;
1671
1678
  required?: boolean;
1672
1679
  hideFromTable?: boolean;
1673
1680
  wrap?: string;
@@ -2055,7 +2062,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
2055
2062
  displayTitle?: string;
2056
2063
  displayDescription?: string;
2057
2064
  dontBlockAvailability?: boolean;
2058
- previousStartTimes?: number[];
2065
+ previousStartTimes?: (number | string)[];
2059
2066
  }
2060
2067
  export type PaymentProcessor = 'Square' | 'Stripe';
2061
2068
  export interface Product_readonly extends ClientRecord {
@@ -2546,6 +2553,11 @@ export type SmartMeterPlaceOrderAutomationAction = AutomationActionBuilder<'smar
2546
2553
  lines: SmartMeterOrderLineItem[];
2547
2554
  shipping?: string;
2548
2555
  }>;
2556
+ export type SendChatAutomationAction = AutomationActionBuilder<'sendChat', {
2557
+ templateId: string;
2558
+ identifier: string;
2559
+ includeCareTeam?: boolean;
2560
+ }>;
2549
2561
  export type HealthieSyncAutomationAction = AutomationActionBuilder<'healthieSync', {}>;
2550
2562
  export type HealthieAddToCourseAutomationAction = AutomationActionBuilder<'healthieAddToCourse', {
2551
2563
  courseId: string;
@@ -2597,6 +2609,7 @@ export type AutomationCondition = AtJourneyStateAutomationCondition;
2597
2609
  export type AutomationActionForType = {
2598
2610
  "sendEmail": SendEmailAutomationAction;
2599
2611
  "sendSMS": SendSMSAutomationAction;
2612
+ "sendChat": SendChatAutomationAction;
2600
2613
  "sendForm": SendFormAutomationAction;
2601
2614
  "createTicket": CreateTicketAutomationAction;
2602
2615
  'sendWebhook': SendWebhookAutomationAction;
@@ -3378,6 +3391,7 @@ export type EnduserProfileViewBlocks = {
3378
3391
  formId?: string;
3379
3392
  fieldIds?: string[];
3380
3393
  showAllForms?: boolean;
3394
+ expandable?: boolean;
3381
3395
  }>;
3382
3396
  "Zus Encounters": EnduserProfileViewBlockBuilder<"Zus Encounters", {
3383
3397
  title: string;
@@ -3574,6 +3588,9 @@ export type AutomationTriggerEvents = {
3574
3588
  'Healthie Note Locked': AutomationTriggerEventBuilder<"Healthie Note Locked", {
3575
3589
  healthieFormIds?: string[];
3576
3590
  }, {}>;
3591
+ 'Database Entry Added': AutomationTriggerEventBuilder<"Database Entry Added", {
3592
+ databaseId: string;
3593
+ }, {}>;
3577
3594
  };
3578
3595
  export type AutomationTriggerEventType = keyof AutomationTriggerEvents;
3579
3596
  export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType];
@@ -3729,6 +3746,7 @@ export type PhoneTreeActions = {
3729
3746
  }>;
3730
3747
  "Select Care Team Member": PhoneTreeActionBuilder<"Select Care Team Member", {
3731
3748
  playback?: Partial<PhonePlayback>;
3749
+ playbackVoicemail?: Partial<PhonePlayback>;
3732
3750
  }>;
3733
3751
  'Forward Call': PhoneTreeActionBuilder<"Forward Call", {
3734
3752
  to: string;
@@ -4520,6 +4538,8 @@ export type JourneyContext = {
4520
4538
  publicIdentifier?: string;
4521
4539
  chatId?: string;
4522
4540
  emailId?: string;
4541
+ databaseRecordId?: string;
4542
+ databaseRecordCreator?: string;
4523
4543
  };
4524
4544
  export declare const TIMEZONE_MAP: {
4525
4545
  readonly "Africa/Abidjan": "+00:00";