@tellescope/types-models 1.94.0 → 1.96.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 +23 -3
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +23 -3
- 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 +17 -6
package/lib/cjs/index.d.ts
CHANGED
|
@@ -221,7 +221,7 @@ export type AthenaFieldSync = {
|
|
|
221
221
|
dateFormat?: string;
|
|
222
222
|
};
|
|
223
223
|
export type AthenaSubscription = {
|
|
224
|
-
type: 'patients' | 'appointments' | 'orders' | 'chart/healthhistory/problems';
|
|
224
|
+
type: 'patients' | 'appointments' | 'orders' | 'chart/healthhistory/problems' | 'obepisode';
|
|
225
225
|
frequencyInMinutes: number;
|
|
226
226
|
lastSyncedAt: Date;
|
|
227
227
|
};
|
|
@@ -813,6 +813,7 @@ export type JourneyStatistics = {
|
|
|
813
813
|
steps: Record<string, {
|
|
814
814
|
count: number;
|
|
815
815
|
opens?: number;
|
|
816
|
+
clicked?: number;
|
|
816
817
|
}>;
|
|
817
818
|
};
|
|
818
819
|
export type FormStatistics = {
|
|
@@ -1212,7 +1213,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
|
|
|
1212
1213
|
tags?: string[];
|
|
1213
1214
|
}
|
|
1214
1215
|
export type FormFieldLiteralType = 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' | 'dateString' | 'rating' | 'Time';
|
|
1215
|
-
export type FormFieldComplexType = "Appointment Booking" | "multiple_choice" | "file" | 'files' | "signature" | 'ranking' | 'Question Group' | 'Table Input' | "Address" | "Stripe" | "Dropdown" | "Database Select" | "Medications" | "Related Contacts" | "Insurance";
|
|
1216
|
+
export type FormFieldComplexType = "Height" | "Appointment Booking" | "multiple_choice" | "file" | 'files' | "signature" | 'ranking' | 'Question Group' | 'Table Input' | "Address" | "Stripe" | "Dropdown" | "Database Select" | "Medications" | "Related Contacts" | "Insurance";
|
|
1216
1217
|
export type FormFieldType = FormFieldLiteralType | FormFieldComplexType;
|
|
1217
1218
|
export type PreviousFormFieldType = 'root' | 'after' | 'previousEquals' | 'compoundLogic';
|
|
1218
1219
|
export type PreviousFormFieldBuilder<T extends PreviousFormFieldType, V> = {
|
|
@@ -1450,6 +1451,10 @@ export interface Integration extends Integration_readonly, Integration_required,
|
|
|
1450
1451
|
disableEnduserAutoSync?: boolean;
|
|
1451
1452
|
disableTicketAutoSync?: boolean;
|
|
1452
1453
|
redactExternalEvents?: boolean;
|
|
1454
|
+
fhirClientId?: string;
|
|
1455
|
+
fhirClientSecret?: string;
|
|
1456
|
+
fhirAccessToken?: string;
|
|
1457
|
+
fhirExpiryDate?: number;
|
|
1453
1458
|
}
|
|
1454
1459
|
export type BuildDatabaseRecordField<K extends string, V, O> = {
|
|
1455
1460
|
type: K;
|
|
@@ -1572,6 +1577,10 @@ export type FormResponseAnswerMedications = FormResponseValueAnswerBuilder<'Medi
|
|
|
1572
1577
|
export type FormResponseAnswerRelatedContacts = FormResponseValueAnswerBuilder<'Related Contacts', Partial<Enduser>[]>;
|
|
1573
1578
|
export type FormResponseAnswerAppointmentBooking = FormResponseValueAnswerBuilder<'Appointment Booking', string>;
|
|
1574
1579
|
export type FormResponseAnswerInsurance = FormResponseValueAnswerBuilder<'Insurance', Partial<EnduserInsurance>>;
|
|
1580
|
+
export type FormResponseAnswerHeight = FormResponseValueAnswerBuilder<'Height', {
|
|
1581
|
+
feet: number;
|
|
1582
|
+
inches: number;
|
|
1583
|
+
}>;
|
|
1575
1584
|
export type FormResponseAnswerSignatureValue = {
|
|
1576
1585
|
fullName: string;
|
|
1577
1586
|
signed: boolean;
|
|
@@ -1591,7 +1600,7 @@ export type FormResponseAnswerFileValue = {
|
|
|
1591
1600
|
};
|
|
1592
1601
|
export type FormResponseAnswerFile = FormResponseValueAnswerBuilder<'file', FormResponseAnswerFileValue>;
|
|
1593
1602
|
export type FormResponseAnswerFiles = FormResponseValueAnswerBuilder<'files', FormResponseAnswerFileValue[]>;
|
|
1594
|
-
export type FormResponseValueAnswer = (FormResponseAnswerGroup | FormResponseAnswerTable | FormResponseAnswerDescription | FormResponseAnswerEmail | FormResponseAnswerNumber | FormResponseAnswerPhone | FormResponseAnswerString | FormResponseAnswerStringLong | FormResponseAnswerSignature | FormResponseAnswerMultipleChoice | FormResponseAnswerFile | FormResponseAnswerFiles | FormResponseAnswerDate | FormResponseAnswerRating | FormResponseAnswerRanking | FormResponseAnswerDateString | FormResponseAnswerAddress | FormResponseAnswerTime | FormResponseAnswerStripe | FormResponseAnswerDropdown | FormResponseAnswerDatabaseSelect | FormResponseAnswerMedications | FormResponseAnswerRelatedContacts | FormResponseAnswerInsurance | FormResponseAnswerAppointmentBooking);
|
|
1603
|
+
export type FormResponseValueAnswer = (FormResponseAnswerGroup | FormResponseAnswerTable | FormResponseAnswerDescription | FormResponseAnswerEmail | FormResponseAnswerNumber | FormResponseAnswerPhone | FormResponseAnswerString | FormResponseAnswerStringLong | FormResponseAnswerSignature | FormResponseAnswerMultipleChoice | FormResponseAnswerFile | FormResponseAnswerFiles | FormResponseAnswerDate | FormResponseAnswerRating | FormResponseAnswerRanking | FormResponseAnswerDateString | FormResponseAnswerAddress | FormResponseAnswerTime | FormResponseAnswerStripe | FormResponseAnswerDropdown | FormResponseAnswerDatabaseSelect | FormResponseAnswerMedications | FormResponseAnswerRelatedContacts | FormResponseAnswerInsurance | FormResponseAnswerAppointmentBooking | FormResponseAnswerHeight);
|
|
1595
1604
|
export type FormResponseValue = {
|
|
1596
1605
|
fieldId: string;
|
|
1597
1606
|
fieldTitle: string;
|
|
@@ -1628,6 +1637,7 @@ export type AnswerForType = {
|
|
|
1628
1637
|
'Related Contacts': FormResponseAnswerRelatedContacts['value'];
|
|
1629
1638
|
'Insurance': FormResponseAnswerInsurance['value'];
|
|
1630
1639
|
'Appointment Booking': FormResponseAnswerAppointmentBooking['value'];
|
|
1640
|
+
'Height': FormResponseAnswerHeight['value'];
|
|
1631
1641
|
};
|
|
1632
1642
|
export interface FormResponse_readonly extends ClientRecord {
|
|
1633
1643
|
openedAt?: Date;
|
|
@@ -3029,6 +3039,7 @@ export type AutomationTriggerActions = {
|
|
|
3029
3039
|
"Move To Step": AutomationTriggerActionBuilder<'Move To Step', {}>;
|
|
3030
3040
|
"Assign Care Team": AutomationTriggerActionBuilder<'Assign Care Team', {
|
|
3031
3041
|
tags: ListOfStringsWithQualifier;
|
|
3042
|
+
limitToOneUser?: boolean;
|
|
3032
3043
|
}>;
|
|
3033
3044
|
"Canvas: Add Patient": AutomationTriggerActionBuilder<'Canvas: Add Patient', {}>;
|
|
3034
3045
|
};
|
|
@@ -3111,6 +3122,9 @@ export type AutomationTriggerEvents = {
|
|
|
3111
3122
|
}, {}>;
|
|
3112
3123
|
'Message Delivery Failure': AutomationTriggerEventBuilder<"Message Delivery Failure", {}, {}>;
|
|
3113
3124
|
'Incoming Message (No Care Team)': AutomationTriggerEventBuilder<"Incoming Message (No Care Team)", {}, {}>;
|
|
3125
|
+
'Pregnancy Ended': AutomationTriggerEventBuilder<"Pregnancy Ended", {
|
|
3126
|
+
reason?: string;
|
|
3127
|
+
}, {}>;
|
|
3114
3128
|
};
|
|
3115
3129
|
export type AutomationTriggerEventType = keyof AutomationTriggerEvents;
|
|
3116
3130
|
export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType];
|
|
@@ -3205,6 +3219,7 @@ export type PhoneTreeEvents = {
|
|
|
3205
3219
|
'On Gather': PhoneTreeEventBuilder<'On Gather', {
|
|
3206
3220
|
digits?: string;
|
|
3207
3221
|
transcription?: string;
|
|
3222
|
+
handleNoInput?: boolean;
|
|
3208
3223
|
}>;
|
|
3209
3224
|
};
|
|
3210
3225
|
export type PhoneTreeEventType = keyof PhoneTreeEvents;
|
|
@@ -3255,6 +3270,9 @@ export type PhoneTreeActions = {
|
|
|
3255
3270
|
byTags?: ListOfStringsWithQualifier;
|
|
3256
3271
|
playback?: Partial<PhonePlayback>;
|
|
3257
3272
|
}>;
|
|
3273
|
+
'Forward Call': PhoneTreeActionBuilder<"Forward Call", {
|
|
3274
|
+
to: string;
|
|
3275
|
+
}>;
|
|
3258
3276
|
};
|
|
3259
3277
|
export type PhoneTreeActionType = keyof PhoneTreeActions;
|
|
3260
3278
|
export type PhoneTreeAction = PhoneTreeActions[PhoneTreeActionType];
|
|
@@ -3449,6 +3467,7 @@ export type DiagnosisType = keyof DiagnosisTypes;
|
|
|
3449
3467
|
export type Diagnosis = {
|
|
3450
3468
|
type: keyof DiagnosisTypes;
|
|
3451
3469
|
code: string;
|
|
3470
|
+
modifiers?: string[];
|
|
3452
3471
|
procedureCodes?: CandidProcedureCode[];
|
|
3453
3472
|
};
|
|
3454
3473
|
export interface EnduserEncounter_readonly extends ClientRecord {
|
|
@@ -3469,6 +3488,7 @@ export interface EnduserEncounter extends EnduserEncounter_readonly, EnduserEnco
|
|
|
3469
3488
|
placeOfServiceCode: string;
|
|
3470
3489
|
billingProviderAddress?: Address;
|
|
3471
3490
|
serviceFacilityAddress?: Address;
|
|
3491
|
+
modifiers?: string[];
|
|
3472
3492
|
error?: string;
|
|
3473
3493
|
}
|
|
3474
3494
|
export interface TicketQueue_readonly extends ClientRecord {
|