@tellescope/types-models 1.120.0 → 1.122.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 +47 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +47 -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 +2 -2
- package/src/index.ts +46 -3
package/lib/cjs/index.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ export type CustomEnduserFields = {
|
|
|
113
113
|
options: string[];
|
|
114
114
|
}>;
|
|
115
115
|
"Text": BuildCustomEnduserField<'Text', {}>;
|
|
116
|
+
"Number": BuildCustomEnduserField<'Number', {}>;
|
|
116
117
|
"Multiple Text": BuildCustomEnduserField<'Multiple Text', {}>;
|
|
117
118
|
"Date": BuildCustomEnduserField<'Date', {}>;
|
|
118
119
|
"File": BuildCustomEnduserField<'File', {}>;
|
|
@@ -168,6 +169,7 @@ export type OrganizationSettings = {
|
|
|
168
169
|
canMoveCalls?: boolean;
|
|
169
170
|
canMoveSMS?: boolean;
|
|
170
171
|
inboxRepliesMarkRead?: boolean;
|
|
172
|
+
alwaysShowInsurance?: boolean;
|
|
171
173
|
};
|
|
172
174
|
tickets?: {
|
|
173
175
|
defaultJourneyDueDateOffsetInMS?: number | '';
|
|
@@ -289,6 +291,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
289
291
|
hasConnectedPagerDuty?: boolean;
|
|
290
292
|
hasConnectedSmartMeter?: boolean;
|
|
291
293
|
hasConnectedAthena?: boolean;
|
|
294
|
+
hasConnectedActiveCampaign?: boolean;
|
|
292
295
|
hasConnectedDocsumo?: boolean;
|
|
293
296
|
hasConfiguredZoom?: boolean;
|
|
294
297
|
hasTicketQueues?: boolean;
|
|
@@ -534,6 +537,7 @@ export interface User extends User_required, User_readonly, User_updatesDisabled
|
|
|
534
537
|
url?: string;
|
|
535
538
|
requiresMFAConfiguration?: boolean;
|
|
536
539
|
templateFields?: LabeledField[];
|
|
540
|
+
dashboardView?: CustomDashboardView;
|
|
537
541
|
}
|
|
538
542
|
export type Preference = 'email' | 'sms' | 'call' | 'chat';
|
|
539
543
|
export type CustomField = string | number | object | {
|
|
@@ -689,6 +693,9 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
689
693
|
athenaPracticeId?: string;
|
|
690
694
|
athenaDepartmentId?: string;
|
|
691
695
|
vitalTriggersDisabled?: boolean;
|
|
696
|
+
defaultFromPhone?: string;
|
|
697
|
+
defaultFromEmail?: string;
|
|
698
|
+
useDefaultFromEmailInAutomations?: boolean;
|
|
692
699
|
}
|
|
693
700
|
export interface EnduserCustomType_readonly extends ClientRecord {
|
|
694
701
|
}
|
|
@@ -727,6 +734,7 @@ export interface EnduserMedication extends EnduserMedication_readonly, EnduserMe
|
|
|
727
734
|
calendarEventId?: string;
|
|
728
735
|
prescribedBy?: string;
|
|
729
736
|
prescribedAt?: Date | '';
|
|
737
|
+
prescriberName?: string;
|
|
730
738
|
startedTakingAt?: Date | '';
|
|
731
739
|
stoppedTakingAt?: Date | '';
|
|
732
740
|
rxNormCode?: string;
|
|
@@ -1152,6 +1160,10 @@ export type TicketActions = {
|
|
|
1152
1160
|
templateId: string;
|
|
1153
1161
|
smsId?: string;
|
|
1154
1162
|
}>;
|
|
1163
|
+
"Send Email": TicketActionBuilder<'Send Email', {
|
|
1164
|
+
templateId: string;
|
|
1165
|
+
emailId?: string;
|
|
1166
|
+
}>;
|
|
1155
1167
|
};
|
|
1156
1168
|
export type TicketActionType = keyof TicketActions;
|
|
1157
1169
|
export type TicketAction = TicketActions[TicketActionType];
|
|
@@ -1421,6 +1433,7 @@ export interface FormField extends FormField_readonly, FormField_required, FormF
|
|
|
1421
1433
|
field?: string;
|
|
1422
1434
|
overwrite?: boolean;
|
|
1423
1435
|
};
|
|
1436
|
+
titleFontSize?: number;
|
|
1424
1437
|
}
|
|
1425
1438
|
export type FormScoring = {
|
|
1426
1439
|
title: string;
|
|
@@ -1513,6 +1526,11 @@ export type IntegrationAuthentication = ({
|
|
|
1513
1526
|
type: 'apiKey';
|
|
1514
1527
|
info: OAuth2AuthenticationFields;
|
|
1515
1528
|
});
|
|
1529
|
+
export type FieldMapping = {
|
|
1530
|
+
field: string;
|
|
1531
|
+
externalField: string;
|
|
1532
|
+
type: string;
|
|
1533
|
+
};
|
|
1516
1534
|
export interface Integration_readonly extends ClientRecord {
|
|
1517
1535
|
lastSync?: number;
|
|
1518
1536
|
lastSyncId?: string;
|
|
@@ -1545,6 +1563,7 @@ export interface Integration extends Integration_readonly, Integration_required,
|
|
|
1545
1563
|
fhirExpiryDate?: number;
|
|
1546
1564
|
defaultAttendeeId?: string;
|
|
1547
1565
|
sendEmailOnSync?: boolean;
|
|
1566
|
+
enduserFieldMapping?: FieldMapping[];
|
|
1548
1567
|
}
|
|
1549
1568
|
export type BuildDatabaseRecordField<K extends string, V, O> = {
|
|
1550
1569
|
type: K;
|
|
@@ -1916,6 +1935,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
|
|
|
1916
1935
|
bufferStartMinutes?: number;
|
|
1917
1936
|
bufferEndMinutes?: number;
|
|
1918
1937
|
canvasCoding?: CanvasCoding;
|
|
1938
|
+
canvasReasonCoding?: CanvasCoding;
|
|
1919
1939
|
canvasLocationId?: string;
|
|
1920
1940
|
completedAt?: Date | '';
|
|
1921
1941
|
holdUntil?: Date;
|
|
@@ -2034,6 +2054,7 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
|
|
|
2034
2054
|
bufferStartMinutes?: number;
|
|
2035
2055
|
bufferEndMinutes?: number;
|
|
2036
2056
|
canvasCoding?: CanvasCoding;
|
|
2057
|
+
canvasReasonCoding?: CanvasCoding;
|
|
2037
2058
|
tags?: string[];
|
|
2038
2059
|
matchToHealthieTemplate?: boolean;
|
|
2039
2060
|
useUserURL?: boolean;
|
|
@@ -2333,11 +2354,14 @@ export type CreateTicketActionInfo = {
|
|
|
2333
2354
|
preserveContext?: boolean;
|
|
2334
2355
|
tags?: string[];
|
|
2335
2356
|
};
|
|
2336
|
-
export type SendEmailAutomationAction = AutomationActionBuilder<'sendEmail', AutomationForMessage
|
|
2357
|
+
export type SendEmailAutomationAction = AutomationActionBuilder<'sendEmail', AutomationForMessage & {
|
|
2358
|
+
fromEmailOverride?: string;
|
|
2359
|
+
}>;
|
|
2337
2360
|
export type NotifyTeamAutomationAction = AutomationActionBuilder<'notifyTeam', {
|
|
2338
2361
|
templateId: string;
|
|
2339
2362
|
forAssigned: boolean;
|
|
2340
2363
|
roles?: string[];
|
|
2364
|
+
tags?: ListOfStringsWithQualifier;
|
|
2341
2365
|
}>;
|
|
2342
2366
|
export type SendSMSAutomationAction = AutomationActionBuilder<'sendSMS', AutomationForMessage>;
|
|
2343
2367
|
export type SendFormAutomationAction = AutomationActionBuilder<'sendForm', AutomationForFormRequest>;
|
|
@@ -2374,6 +2398,7 @@ export type CreateCarePlanAutomationAction = AutomationActionBuilder<'createCare
|
|
|
2374
2398
|
}>;
|
|
2375
2399
|
export type CompleteCarePlanAutomationAction = AutomationActionBuilder<'completeCarePlan', {}>;
|
|
2376
2400
|
export type ZusSyncAutomationAction = AutomationActionBuilder<'zusSync', {}>;
|
|
2401
|
+
export type ZusPullAutomationAction = AutomationActionBuilder<'zusPull', {}>;
|
|
2377
2402
|
export type PagerDutyCreateIncidentAutomationAction = AutomationActionBuilder<'pagerDutyCreateIncident', {
|
|
2378
2403
|
type: string;
|
|
2379
2404
|
title: string;
|
|
@@ -2402,6 +2427,7 @@ export type CompleteTicketsAutomationAction = AutomationActionBuilder<'completeT
|
|
|
2402
2427
|
export type ChangeContactTypeAutomationAction = AutomationActionBuilder<'changeContactType', {
|
|
2403
2428
|
type: string;
|
|
2404
2429
|
}>;
|
|
2430
|
+
export type ActiveCampaignSyncAutomationAction = AutomationActionBuilder<'activeCampaignSync', {}>;
|
|
2405
2431
|
export type IterableFieldsMapping = {
|
|
2406
2432
|
iterable: string;
|
|
2407
2433
|
tellescope: string;
|
|
@@ -2447,6 +2473,7 @@ export type AutomationActionForType = {
|
|
|
2447
2473
|
'createCarePlan': CreateCarePlanAutomationAction;
|
|
2448
2474
|
'completeCarePlan': CompleteCarePlanAutomationAction;
|
|
2449
2475
|
'zusSync': ZusSyncAutomationAction;
|
|
2476
|
+
'zusPull': ZusPullAutomationAction;
|
|
2450
2477
|
'pagerDutyCreateIncident': PagerDutyCreateIncidentAutomationAction;
|
|
2451
2478
|
'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction;
|
|
2452
2479
|
'healthieSync': HealthieSyncAutomationAction;
|
|
@@ -2454,6 +2481,7 @@ export type AutomationActionForType = {
|
|
|
2454
2481
|
healthieSendChat: HealthieSendChatAutomationAction;
|
|
2455
2482
|
'completeTickets': CompleteTicketsAutomationAction;
|
|
2456
2483
|
'changeContactType': ChangeContactTypeAutomationAction;
|
|
2484
|
+
activeCampaignSync: ActiveCampaignSyncAutomationAction;
|
|
2457
2485
|
};
|
|
2458
2486
|
export type AutomationActionType = keyof AutomationActionForType;
|
|
2459
2487
|
export type AutomationAction = AutomationActionForType[AutomationActionType];
|
|
@@ -2887,6 +2915,9 @@ type AnalyticsQueryInfoBuilder<M extends string, P extends object | undefined> =
|
|
|
2887
2915
|
export type AnalyticsQueryInfoForType = {
|
|
2888
2916
|
"Endusers": {
|
|
2889
2917
|
Total: AnalyticsQueryInfoBuilder<'Total', undefined>;
|
|
2918
|
+
"Sum of Field": AnalyticsQueryInfoBuilder<"Sum of Field", {
|
|
2919
|
+
field: string;
|
|
2920
|
+
}>;
|
|
2890
2921
|
};
|
|
2891
2922
|
"Calendar Events": {
|
|
2892
2923
|
Total: AnalyticsQueryInfoBuilder<'Total', undefined>;
|
|
@@ -3079,6 +3110,10 @@ export type AnalyticsQueryOptions = {
|
|
|
3079
3110
|
updatedRange?: DateRange;
|
|
3080
3111
|
groupByCareTeam?: boolean;
|
|
3081
3112
|
};
|
|
3113
|
+
export type AnalyticsFrameGroupingCategory = {
|
|
3114
|
+
category: string;
|
|
3115
|
+
keys: string[];
|
|
3116
|
+
};
|
|
3082
3117
|
export type AnalyticsFrameType = 'Percentage';
|
|
3083
3118
|
export interface AnalyticsFrame_readonly extends ClientRecord {
|
|
3084
3119
|
}
|
|
@@ -3094,6 +3129,8 @@ export interface AnalyticsFrame extends AnalyticsFrame_readonly, AnalyticsFrame_
|
|
|
3094
3129
|
type?: AnalyticsFrameType;
|
|
3095
3130
|
groupMin?: number | '';
|
|
3096
3131
|
groupMax?: number | '';
|
|
3132
|
+
displayType?: string;
|
|
3133
|
+
analyticsFrameGroupingCategory?: AnalyticsFrameGroupingCategory[];
|
|
3097
3134
|
}
|
|
3098
3135
|
export interface BackgroundError_readonly extends ClientRecord {
|
|
3099
3136
|
}
|
|
@@ -3156,6 +3193,9 @@ export type EnduserProfileViewBlocks = {
|
|
|
3156
3193
|
formId: string;
|
|
3157
3194
|
fieldIds: string[];
|
|
3158
3195
|
}>;
|
|
3196
|
+
"Zus Encounters": EnduserProfileViewBlockBuilder<"Zus Encounters", {
|
|
3197
|
+
title: string;
|
|
3198
|
+
}>;
|
|
3159
3199
|
};
|
|
3160
3200
|
export type EnduserProfileViewBlockType = keyof EnduserProfileViewBlocks;
|
|
3161
3201
|
export type EnduserProfileViewBlock = EnduserProfileViewBlocks[EnduserProfileViewBlockType];
|
|
@@ -3664,6 +3704,7 @@ export type Diagnosis = {
|
|
|
3664
3704
|
};
|
|
3665
3705
|
export interface EnduserEncounter_readonly extends ClientRecord {
|
|
3666
3706
|
externalId?: string;
|
|
3707
|
+
source?: string;
|
|
3667
3708
|
integration?: 'Candid';
|
|
3668
3709
|
}
|
|
3669
3710
|
export interface EnduserEncounter_updatesDisabled {
|
|
@@ -3682,6 +3723,11 @@ export interface EnduserEncounter extends EnduserEncounter_readonly, EnduserEnco
|
|
|
3682
3723
|
serviceFacilityAddress?: Address;
|
|
3683
3724
|
modifiers?: string[];
|
|
3684
3725
|
error?: string;
|
|
3726
|
+
class?: string;
|
|
3727
|
+
status?: string;
|
|
3728
|
+
location?: string;
|
|
3729
|
+
providerNames?: string[];
|
|
3730
|
+
diagnosisDisplays?: string[];
|
|
3685
3731
|
}
|
|
3686
3732
|
export interface TicketQueue_readonly extends ClientRecord {
|
|
3687
3733
|
count?: number;
|