@tellescope/types-models 1.219.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.
- package/lib/cjs/index.d.ts +39 -3
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +3 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +39 -3
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/index.ts +37 -3
package/lib/cjs/index.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -3031,6 +3035,7 @@ export type CallUserAutomationAction = AutomationActionBuilder<'callUser', {
|
|
|
3031
3035
|
export type StripeChargeCardOnFileAutomationAction = AutomationActionBuilder<'stripeChargeCardOnFile', {
|
|
3032
3036
|
stripeKey?: string;
|
|
3033
3037
|
priceIds: string[];
|
|
3038
|
+
subscriptionPriceId?: string;
|
|
3034
3039
|
}>;
|
|
3035
3040
|
export type AIContextSource = {
|
|
3036
3041
|
type: "Email" | "SMS";
|
|
@@ -3173,6 +3178,7 @@ export interface EnduserObservation extends EnduserObservation_readonly, Enduser
|
|
|
3173
3178
|
classification: string;
|
|
3174
3179
|
}[];
|
|
3175
3180
|
beforeMeal?: boolean;
|
|
3181
|
+
medStatus?: string;
|
|
3176
3182
|
timestampIsEstimated?: boolean;
|
|
3177
3183
|
dontTrigger?: boolean;
|
|
3178
3184
|
showWithPlotsByUnit?: string[];
|
|
@@ -4907,7 +4913,34 @@ export interface AIConversation_updatesDisabled {
|
|
|
4907
4913
|
}
|
|
4908
4914
|
export interface AIConversation extends AIConversation_readonly, AIConversation_required, AIConversation_updatesDisabled {
|
|
4909
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
|
+
}
|
|
4910
4942
|
export type ModelForName_required = {
|
|
4943
|
+
inbox_threads: InboxThread_required;
|
|
4911
4944
|
ai_conversations: AIConversation_required;
|
|
4912
4945
|
waitlists: Waitlist_required;
|
|
4913
4946
|
agent_records: AgentRecord_required;
|
|
@@ -4998,6 +5031,7 @@ export type ModelForName_required = {
|
|
|
4998
5031
|
};
|
|
4999
5032
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required];
|
|
5000
5033
|
export interface ModelForName_readonly {
|
|
5034
|
+
inbox_threads: InboxThread_readonly;
|
|
5001
5035
|
ai_conversations: AIConversation_readonly;
|
|
5002
5036
|
waitlists: Waitlist_readonly;
|
|
5003
5037
|
agent_records: AgentRecord_readonly;
|
|
@@ -5088,6 +5122,7 @@ export interface ModelForName_readonly {
|
|
|
5088
5122
|
}
|
|
5089
5123
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly];
|
|
5090
5124
|
export interface ModelForName_updatesDisabled {
|
|
5125
|
+
inbox_threads: InboxThread_updatesDisabled;
|
|
5091
5126
|
ai_conversations: AIConversation_updatesDisabled;
|
|
5092
5127
|
waitlists: Waitlist_updatesDisabled;
|
|
5093
5128
|
agent_records: AgentRecord_updatesDisabled;
|
|
@@ -5178,6 +5213,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
5178
5213
|
}
|
|
5179
5214
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled];
|
|
5180
5215
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
5216
|
+
inbox_threads: InboxThread;
|
|
5181
5217
|
ai_conversations: AIConversation;
|
|
5182
5218
|
waitlists: Waitlist;
|
|
5183
5219
|
agent_records: AgentRecord;
|