@tellescope/types-models 1.220.0 → 1.221.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.
@@ -13,7 +13,8 @@ export type StripeCheckoutInfo = {
13
13
  stripeAccount: string;
14
14
  businessName: string;
15
15
  };
16
- export type SortBy = 'updatedAt' | 'dueDateInMS' | 'closedAt';
16
+ export type SortBy = 'updatedAt' | 'dueDateInMS' | 'closedAt' | 'timestamp';
17
+ export declare const SORT_BY_OPTIONS: SortBy[];
17
18
  export type AccessType = "All" | "Default" | "Assigned" | null;
18
19
  export type AccessAction = "create" | "read" | "update" | "delete";
19
20
  export type AccessResources = ModelName | 'apiKeys';
@@ -323,6 +324,8 @@ export interface Organization_updatesDisabled {
323
324
  subdomain: string;
324
325
  }
325
326
  export interface Organization extends Organization_readonly, Organization_required, Organization_updatesDisabled {
327
+ inboxThreadsBuiltFrom?: Date | '';
328
+ inboxThreadsBuiltTo?: Date | '';
326
329
  bedrockAIAllowed?: boolean;
327
330
  subdomains?: string[];
328
331
  owner?: string;
@@ -1198,9 +1201,7 @@ export type ChatRoomType = 'internal' | 'external' | 'Group Chat';
1198
1201
  export interface ChatRoom_readonly extends ClientRecord {
1199
1202
  recentMessage?: string;
1200
1203
  recentEnduserMessage?: string;
1201
- recentEnduserMessageSentAt?: number;
1202
1204
  recentSender?: string;
1203
- recentMessageSentAt?: number;
1204
1205
  numMessages: number;
1205
1206
  }
1206
1207
  export type ChatRoomUserInfo = {
@@ -1212,6 +1213,8 @@ export interface ChatRoom_required {
1212
1213
  export interface ChatRoom_updatesDisabled {
1213
1214
  }
1214
1215
  export interface ChatRoom extends ChatRoom_readonly, ChatRoom_required, ChatRoom_updatesDisabled {
1216
+ recentMessageSentAt?: number;
1217
+ recentEnduserMessageSentAt?: number;
1215
1218
  markedUnreadForAll?: boolean;
1216
1219
  inboxStatus?: string;
1217
1220
  description?: string;
@@ -1797,6 +1800,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
1797
1800
  matchCareTeamTagsForCanvasPractitionerResolution?: ListOfStringsWithQualifier;
1798
1801
  dontSyncToCanvasOnSubmission?: boolean;
1799
1802
  belugaVisitType?: string;
1803
+ showByUserTags?: string[];
1800
1804
  }
1801
1805
  export interface FormGroup_readonly extends ClientRecord {
1802
1806
  }
@@ -3174,6 +3178,7 @@ export interface EnduserObservation extends EnduserObservation_readonly, Enduser
3174
3178
  classification: string;
3175
3179
  }[];
3176
3180
  beforeMeal?: boolean;
3181
+ medStatus?: string;
3177
3182
  timestampIsEstimated?: boolean;
3178
3183
  dontTrigger?: boolean;
3179
3184
  showWithPlotsByUnit?: string[];
@@ -4908,7 +4913,34 @@ export interface AIConversation_updatesDisabled {
4908
4913
  }
4909
4914
  export interface AIConversation extends AIConversation_readonly, AIConversation_required, AIConversation_updatesDisabled {
4910
4915
  }
4916
+ export interface InboxThread_readonly extends ClientRecord {
4917
+ }
4918
+ export interface InboxThread_required {
4919
+ type: "Email" | "SMS" | "Chat" | "GroupMMS" | "Phone";
4920
+ title: string;
4921
+ preview: string;
4922
+ timestamp: Date;
4923
+ assignedTo: string[];
4924
+ userIds: string[];
4925
+ enduserIds: string[];
4926
+ inboxStatus: string;
4927
+ threadId: string;
4928
+ }
4929
+ export interface InboxThread_updatesDisabled {
4930
+ }
4931
+ export interface InboxThread extends InboxThread_readonly, InboxThread_required, InboxThread_updatesDisabled {
4932
+ tags?: string[];
4933
+ phoneNumber?: string;
4934
+ enduserPhoneNumber?: string;
4935
+ emailMessageId?: string | null;
4936
+ readBy?: {
4937
+ [index: string]: Date | '';
4938
+ };
4939
+ outboundTimestamp?: Date | '';
4940
+ outboundPreview?: string;
4941
+ }
4911
4942
  export type ModelForName_required = {
4943
+ inbox_threads: InboxThread_required;
4912
4944
  ai_conversations: AIConversation_required;
4913
4945
  waitlists: Waitlist_required;
4914
4946
  agent_records: AgentRecord_required;
@@ -4999,6 +5031,7 @@ export type ModelForName_required = {
4999
5031
  };
5000
5032
  export type ClientModel_required = ModelForName_required[keyof ModelForName_required];
5001
5033
  export interface ModelForName_readonly {
5034
+ inbox_threads: InboxThread_readonly;
5002
5035
  ai_conversations: AIConversation_readonly;
5003
5036
  waitlists: Waitlist_readonly;
5004
5037
  agent_records: AgentRecord_readonly;
@@ -5089,6 +5122,7 @@ export interface ModelForName_readonly {
5089
5122
  }
5090
5123
  export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly];
5091
5124
  export interface ModelForName_updatesDisabled {
5125
+ inbox_threads: InboxThread_updatesDisabled;
5092
5126
  ai_conversations: AIConversation_updatesDisabled;
5093
5127
  waitlists: Waitlist_updatesDisabled;
5094
5128
  agent_records: AgentRecord_updatesDisabled;
@@ -5179,6 +5213,7 @@ export interface ModelForName_updatesDisabled {
5179
5213
  }
5180
5214
  export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled];
5181
5215
  export interface ModelForName extends ModelForName_required, ModelForName_readonly {
5216
+ inbox_threads: InboxThread;
5182
5217
  ai_conversations: AIConversation;
5183
5218
  waitlists: Waitlist;
5184
5219
  agent_records: AgentRecord;