@tellescope/types-models 1.85.2 → 1.86.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 +48 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +2 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +48 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +2 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/index.ts +49 -4
package/lib/cjs/index.d.ts
CHANGED
|
@@ -37,13 +37,15 @@ export type Filters = {
|
|
|
37
37
|
_lte: number;
|
|
38
38
|
_all: any[];
|
|
39
39
|
_in: any[];
|
|
40
|
+
_nin: any[];
|
|
41
|
+
_ne: any;
|
|
40
42
|
};
|
|
41
43
|
export type ExistsFilter = {
|
|
42
44
|
_exists: boolean;
|
|
43
45
|
};
|
|
44
46
|
export type FilterType = Filters;
|
|
45
47
|
export type FilterKey = keyof Filters;
|
|
46
|
-
export declare const FilterKeys: readonly ["_exists", "_gt", "_gte", "_lt", "_lte", "_all"];
|
|
48
|
+
export declare const FilterKeys: readonly ["_exists", "_gt", "_gte", "_lt", "_lte", "_all", "_ne", "_nin"];
|
|
47
49
|
export type ReadFilter<T> = {
|
|
48
50
|
[K in keyof T]?: T[K] | Partial<FilterType>;
|
|
49
51
|
};
|
|
@@ -166,6 +168,7 @@ export type OrganizationSettings = {
|
|
|
166
168
|
defaultJourneyDueDateOffsetInMS?: number | '';
|
|
167
169
|
disableSnooze?: boolean;
|
|
168
170
|
showCommunications?: boolean;
|
|
171
|
+
showJourneys?: boolean;
|
|
169
172
|
};
|
|
170
173
|
calendar?: {
|
|
171
174
|
dayStart?: {
|
|
@@ -201,6 +204,17 @@ export type BasicWebhook = {
|
|
|
201
204
|
url: string;
|
|
202
205
|
method?: 'Link' | 'POST';
|
|
203
206
|
};
|
|
207
|
+
export type SyncDirection = "Bidirectional" | "From Tellescope" | "To Tellescope";
|
|
208
|
+
export type FieldSync = {
|
|
209
|
+
field: string;
|
|
210
|
+
externalField: string;
|
|
211
|
+
direction: SyncDirection;
|
|
212
|
+
};
|
|
213
|
+
export type AthenaSubscription = {
|
|
214
|
+
type: 'patients';
|
|
215
|
+
frequencyInMinutes: number;
|
|
216
|
+
lastSyncedAt: Date;
|
|
217
|
+
};
|
|
204
218
|
export interface Organization_readonly extends ClientRecord {
|
|
205
219
|
subscriptionExpiresAt: Date;
|
|
206
220
|
subscriptionPeriod: number;
|
|
@@ -259,6 +273,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
259
273
|
hasConnectedGoGoMeds?: boolean;
|
|
260
274
|
hasConnectedPagerDuty?: boolean;
|
|
261
275
|
hasConnectedSmartMeter?: boolean;
|
|
276
|
+
hasConnectedAthena?: boolean;
|
|
262
277
|
hasConfiguredZoom?: boolean;
|
|
263
278
|
hasTicketQueues?: boolean;
|
|
264
279
|
vitalTeamId?: string;
|
|
@@ -291,6 +306,10 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
291
306
|
number: string;
|
|
292
307
|
label: string;
|
|
293
308
|
}[];
|
|
309
|
+
mfaxAccountId?: string;
|
|
310
|
+
athenaFieldsSync?: FieldSync[];
|
|
311
|
+
athenaSubscriptions?: AthenaSubscription[];
|
|
312
|
+
fieldsToAdminNote?: string[];
|
|
294
313
|
}
|
|
295
314
|
export type OrganizationTheme = {
|
|
296
315
|
name: string;
|
|
@@ -1017,6 +1036,7 @@ export interface File extends File_readonly, File_required, File_updatesDisabled
|
|
|
1017
1036
|
export type TicketActionBuilder<T, I> = {
|
|
1018
1037
|
type: T;
|
|
1019
1038
|
info: I;
|
|
1039
|
+
optional?: boolean;
|
|
1020
1040
|
completedAt?: Date | '';
|
|
1021
1041
|
};
|
|
1022
1042
|
export type TicketActions = {
|
|
@@ -1228,6 +1248,8 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1228
1248
|
billingProvider?: 'Canvas' | "Candid" | string;
|
|
1229
1249
|
bookingPageId?: string;
|
|
1230
1250
|
userTags?: string[];
|
|
1251
|
+
userFilterTags?: string[];
|
|
1252
|
+
requirePredefinedInsurer?: boolean;
|
|
1231
1253
|
addressFields?: string[];
|
|
1232
1254
|
autoAdvance?: boolean;
|
|
1233
1255
|
prefillSignature?: boolean;
|
|
@@ -1358,6 +1380,7 @@ export interface Integration_updatesDisabled {
|
|
|
1358
1380
|
}
|
|
1359
1381
|
export interface Integration extends Integration_readonly, Integration_required, Integration_updatesDisabled {
|
|
1360
1382
|
title: string;
|
|
1383
|
+
tenantId?: string;
|
|
1361
1384
|
authentication: IntegrationAuthentication;
|
|
1362
1385
|
emailDisabled?: boolean;
|
|
1363
1386
|
syncUnrecognizedSenders?: boolean;
|
|
@@ -2156,6 +2179,9 @@ export type SmartMeterPlaceOrderAutomationAction = AutomationActionBuilder<'smar
|
|
|
2156
2179
|
shipping?: string;
|
|
2157
2180
|
}>;
|
|
2158
2181
|
export type HealthieSyncAutomationAction = AutomationActionBuilder<'healthieSync', {}>;
|
|
2182
|
+
export type CompleteTicketsAutomationAction = AutomationActionBuilder<'completeTickets', {
|
|
2183
|
+
journeyIds?: string[];
|
|
2184
|
+
}>;
|
|
2159
2185
|
export type IterableFieldsMapping = {
|
|
2160
2186
|
iterable: string;
|
|
2161
2187
|
tellescope: string;
|
|
@@ -2204,6 +2230,7 @@ export type AutomationActionForType = {
|
|
|
2204
2230
|
'pagerDutyCreateIncident': PagerDutyCreateIncidentAutomationAction;
|
|
2205
2231
|
'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction;
|
|
2206
2232
|
'healthieSync': HealthieSyncAutomationAction;
|
|
2233
|
+
'completeTickets': CompleteTicketsAutomationAction;
|
|
2207
2234
|
};
|
|
2208
2235
|
export type AutomationActionType = keyof AutomationActionForType;
|
|
2209
2236
|
export type AutomationAction = AutomationActionForType[AutomationActionType];
|
|
@@ -2270,10 +2297,12 @@ export interface EnduserObservation extends EnduserObservation_readonly, Enduser
|
|
|
2270
2297
|
references?: RelatedRecord[];
|
|
2271
2298
|
reviewedAt?: Date;
|
|
2272
2299
|
reviewedBy?: string;
|
|
2300
|
+
statusChangedBy?: string;
|
|
2273
2301
|
classifications?: {
|
|
2274
2302
|
configurationId: string;
|
|
2275
2303
|
classification: string;
|
|
2276
2304
|
}[];
|
|
2305
|
+
beforeMeal?: boolean;
|
|
2277
2306
|
}
|
|
2278
2307
|
export type BlockType = 'h1' | 'h2' | 'html' | 'image' | 'youtube' | 'pdf' | 'iframe';
|
|
2279
2308
|
export type ContentBlockBuilder<BLOCK extends BlockType, INFO extends object> = {
|
|
@@ -2973,6 +3002,10 @@ export type AutomationTriggerEvents = {
|
|
|
2973
3002
|
templateIds: string[];
|
|
2974
3003
|
replyKeywords?: string[];
|
|
2975
3004
|
}, {}>;
|
|
3005
|
+
'Order Status Equals': AutomationTriggerEventBuilder<"Order Status Equals", {
|
|
3006
|
+
source: string;
|
|
3007
|
+
status: string;
|
|
3008
|
+
}, {}>;
|
|
2976
3009
|
};
|
|
2977
3010
|
export type AutomationTriggerEventType = keyof AutomationTriggerEvents;
|
|
2978
3011
|
export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType];
|
|
@@ -3399,8 +3432,18 @@ export interface VitalConfiguration extends VitalConfiguration_readonly, VitalCo
|
|
|
3399
3432
|
unit: string;
|
|
3400
3433
|
ranges: VitalConfigurationRange[];
|
|
3401
3434
|
}
|
|
3435
|
+
export interface BlockedPhone_readonly extends ClientRecord {
|
|
3436
|
+
}
|
|
3437
|
+
export interface BlockedPhone_required {
|
|
3438
|
+
}
|
|
3439
|
+
export interface BlockedPhone_updatesDisabled {
|
|
3440
|
+
}
|
|
3441
|
+
export interface BlockedPhone extends BlockedPhone_readonly, BlockedPhone_required, BlockedPhone_updatesDisabled {
|
|
3442
|
+
phone: string;
|
|
3443
|
+
}
|
|
3402
3444
|
export type ModelForName_required = {
|
|
3403
3445
|
vital_configurations: VitalConfiguration_required;
|
|
3446
|
+
blocked_phones: BlockedPhone_required;
|
|
3404
3447
|
enduser_encounters: EnduserEncounter_required;
|
|
3405
3448
|
enduser_orders: EnduserOrder_required;
|
|
3406
3449
|
group_mms_conversations: GroupMMSConversation_required;
|
|
@@ -3472,6 +3515,7 @@ export type ModelForName_required = {
|
|
|
3472
3515
|
};
|
|
3473
3516
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required];
|
|
3474
3517
|
export interface ModelForName_readonly {
|
|
3518
|
+
blocked_phones: BlockedPhone_readonly;
|
|
3475
3519
|
vital_configurations: VitalConfiguration_readonly;
|
|
3476
3520
|
enduser_encounters: EnduserEncounter_readonly;
|
|
3477
3521
|
enduser_orders: EnduserOrder_readonly;
|
|
@@ -3544,6 +3588,7 @@ export interface ModelForName_readonly {
|
|
|
3544
3588
|
}
|
|
3545
3589
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly];
|
|
3546
3590
|
export interface ModelForName_updatesDisabled {
|
|
3591
|
+
blocked_phones: BlockedPhone_updatesDisabled;
|
|
3547
3592
|
vital_configurations: VitalConfiguration_updatesDisabled;
|
|
3548
3593
|
enduser_encounters: EnduserEncounter_updatesDisabled;
|
|
3549
3594
|
enduser_orders: EnduserOrder_updatesDisabled;
|
|
@@ -3616,6 +3661,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
3616
3661
|
}
|
|
3617
3662
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled];
|
|
3618
3663
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
3664
|
+
blocked_phones: BlockedPhone;
|
|
3619
3665
|
vital_configurations: VitalConfiguration;
|
|
3620
3666
|
enduser_encounters: EnduserEncounter;
|
|
3621
3667
|
enduser_orders: EnduserOrder;
|
|
@@ -3719,6 +3765,7 @@ export type JourneyContext = {
|
|
|
3719
3765
|
formResponseId?: string;
|
|
3720
3766
|
purchaseId?: string;
|
|
3721
3767
|
templateId?: string;
|
|
3768
|
+
orderId?: string;
|
|
3722
3769
|
};
|
|
3723
3770
|
export declare const TIMEZONE_MAP: {
|
|
3724
3771
|
readonly "Africa/Abidjan": "+00:00";
|