@tellescope/types-models 1.244.3 → 1.245.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 +26 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +26 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/index.ts +25 -5
package/lib/cjs/index.d.ts
CHANGED
|
@@ -207,6 +207,9 @@ export type OrganizationSettings = {
|
|
|
207
207
|
recordCallAudioPlayback?: string;
|
|
208
208
|
dontRecordCallsToPhone?: string[];
|
|
209
209
|
transcribeCalls?: boolean;
|
|
210
|
+
summarizeCallRecordings?: boolean;
|
|
211
|
+
summarizeCallRecordingsPrompt?: string;
|
|
212
|
+
summarizeCallRecordingsMaxTokens?: number;
|
|
210
213
|
transcribeCallInboundPlayback?: string;
|
|
211
214
|
showDeleteCallRecordingOnTimeline?: boolean;
|
|
212
215
|
defaultPhoneNumber?: string;
|
|
@@ -285,6 +288,7 @@ export type OrganizationSettings = {
|
|
|
285
288
|
};
|
|
286
289
|
integrations?: {
|
|
287
290
|
vitalLabOrderPhysicianOptional?: boolean;
|
|
291
|
+
syncLabResultObservations?: boolean;
|
|
288
292
|
athenaAppointmentSyncJITSeconds?: number;
|
|
289
293
|
};
|
|
290
294
|
interface?: {
|
|
@@ -488,6 +492,10 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
488
492
|
number: string;
|
|
489
493
|
label: string;
|
|
490
494
|
}[];
|
|
495
|
+
faxDestinations?: {
|
|
496
|
+
label: string;
|
|
497
|
+
number: string;
|
|
498
|
+
}[];
|
|
491
499
|
mfaxAccountId?: string;
|
|
492
500
|
athenaFieldsSync?: AthenaFieldSync[];
|
|
493
501
|
athenaSubscriptions?: AthenaSubscription[];
|
|
@@ -1044,6 +1052,7 @@ export interface EnduserMedication extends EnduserMedication_readonly, EnduserMe
|
|
|
1044
1052
|
directions?: string;
|
|
1045
1053
|
allergyNote?: string;
|
|
1046
1054
|
status?: string;
|
|
1055
|
+
protocol?: string;
|
|
1047
1056
|
scriptSureDraft?: {
|
|
1048
1057
|
prescriptionRouteId?: string;
|
|
1049
1058
|
drugId?: string;
|
|
@@ -1151,6 +1160,7 @@ export type PhoneCallsReportQueries = Record<string, PhoneCallsReportQuery>;
|
|
|
1151
1160
|
export type PhoneCallsReport = Record<string, {
|
|
1152
1161
|
count: number;
|
|
1153
1162
|
callDurationInSeconds: number;
|
|
1163
|
+
waitTimeInSeconds: number;
|
|
1154
1164
|
_id: null | string | string[];
|
|
1155
1165
|
}[]>;
|
|
1156
1166
|
export type EnduserReportQuery = ReportQuery & {
|
|
@@ -3406,6 +3416,9 @@ export type AssignInboxItemAutomationAction = AutomationActionBuilder<'assignInb
|
|
|
3406
3416
|
tags: ListOfStringsWithQualifier;
|
|
3407
3417
|
limit: number;
|
|
3408
3418
|
}>;
|
|
3419
|
+
export type CreateScriptSureDraftAutomationAction = AutomationActionBuilder<'createScriptSureDraft', {
|
|
3420
|
+
prescriptionRouteId: string;
|
|
3421
|
+
}>;
|
|
3409
3422
|
export type AutomationActionForType = {
|
|
3410
3423
|
'aiDecision': AIDecisionAutomationAction;
|
|
3411
3424
|
'assignInboxItem': AssignInboxItemAutomationAction;
|
|
@@ -3467,6 +3480,7 @@ export type AutomationActionForType = {
|
|
|
3467
3480
|
removeCareTeam: RemoveCareTeamAutomationAction;
|
|
3468
3481
|
assignCareTeam: AssignCareTeamAutomationAction;
|
|
3469
3482
|
callUser: CallUserAutomationAction;
|
|
3483
|
+
createScriptSureDraft: CreateScriptSureDraftAutomationAction;
|
|
3470
3484
|
};
|
|
3471
3485
|
export type AutomationActionType = keyof AutomationActionForType;
|
|
3472
3486
|
export type AutomationAction = AutomationActionForType[AutomationActionType];
|
|
@@ -3511,7 +3525,7 @@ export type ObservationValue = {
|
|
|
3511
3525
|
unit: string;
|
|
3512
3526
|
};
|
|
3513
3527
|
export type ObservationStatusCode = ('registered' | 'preliminary' | 'final' | 'amended' | 'corrected' | 'cancelled' | 'entered-in-error' | 'unknown');
|
|
3514
|
-
export type ObservationCategory = 'vital-signs';
|
|
3528
|
+
export type ObservationCategory = 'vital-signs' | 'laboratory';
|
|
3515
3529
|
export interface EnduserObservation_readonly extends ClientRecord {
|
|
3516
3530
|
}
|
|
3517
3531
|
export interface EnduserObservation_required {
|
|
@@ -3935,6 +3949,7 @@ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, Phone
|
|
|
3935
3949
|
unread?: boolean;
|
|
3936
3950
|
transcription?: string;
|
|
3937
3951
|
recordingTranscriptionData?: string;
|
|
3952
|
+
aiSummary?: string;
|
|
3938
3953
|
note?: string;
|
|
3939
3954
|
userId?: string;
|
|
3940
3955
|
pinnedAt?: Date | '';
|
|
@@ -4070,6 +4085,7 @@ export type AnalyticsQueryInfoForType = {
|
|
|
4070
4085
|
"Phone Calls": {
|
|
4071
4086
|
Total: AnalyticsQueryInfoBuilder<'Total', undefined>;
|
|
4072
4087
|
Duration: AnalyticsQueryInfoBuilder<'Duration', undefined>;
|
|
4088
|
+
"Wait Time": AnalyticsQueryInfoBuilder<'Wait Time', undefined>;
|
|
4073
4089
|
};
|
|
4074
4090
|
"Meetings": {
|
|
4075
4091
|
Total: AnalyticsQueryInfoBuilder<'Total', undefined>;
|
|
@@ -4611,6 +4627,7 @@ export type AutomationTriggerEvents = {
|
|
|
4611
4627
|
}, {}>;
|
|
4612
4628
|
'Medication Added': AutomationTriggerEventBuilder<"Medication Added", {
|
|
4613
4629
|
titles: string[];
|
|
4630
|
+
protocols: string[];
|
|
4614
4631
|
}, {}>;
|
|
4615
4632
|
'No Recent Appointment': AutomationTriggerEventBuilder<"No Recent Appointment", {
|
|
4616
4633
|
intervalInMS: number;
|
|
@@ -5103,6 +5120,12 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
5103
5120
|
fill?: string;
|
|
5104
5121
|
sku?: string;
|
|
5105
5122
|
bookingLink?: string;
|
|
5123
|
+
pharmacy?: string;
|
|
5124
|
+
pharmacyOrderId?: string;
|
|
5125
|
+
cancelledDate?: string;
|
|
5126
|
+
cancellationReason?: string;
|
|
5127
|
+
medication?: string;
|
|
5128
|
+
medicationSku?: string;
|
|
5106
5129
|
}
|
|
5107
5130
|
export interface EnduserProblem_readonly extends ClientRecord {
|
|
5108
5131
|
}
|
|
@@ -5391,6 +5414,7 @@ export interface IntegrationLog_readonly extends ClientRecord {
|
|
|
5391
5414
|
url?: string;
|
|
5392
5415
|
payload?: string;
|
|
5393
5416
|
response?: string;
|
|
5417
|
+
enduserId?: string;
|
|
5394
5418
|
}
|
|
5395
5419
|
export interface IntegrationLog_required {
|
|
5396
5420
|
}
|
|
@@ -5954,6 +5978,7 @@ export type JourneyContext = {
|
|
|
5954
5978
|
twilioNumber?: string;
|
|
5955
5979
|
ticketThreadId?: string;
|
|
5956
5980
|
ticketThreadCommentId?: string;
|
|
5981
|
+
medicationId?: string;
|
|
5957
5982
|
};
|
|
5958
5983
|
export declare const TIMEZONE_MAP: {
|
|
5959
5984
|
readonly "Africa/Abidjan": "+00:00";
|