@tellescope/types-models 1.237.6 → 1.239.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 +44 -2
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +44 -2
- 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 +51 -4
package/src/index.ts
CHANGED
|
@@ -129,6 +129,7 @@ export type PortalSettings = {
|
|
|
129
129
|
hideMissingAnswers?: boolean,
|
|
130
130
|
outstandingFormsTitle?: string,
|
|
131
131
|
availableFormsTitle?: string,
|
|
132
|
+
hidePinnedFormStartsFromOutstandingBanner?: boolean,
|
|
132
133
|
},
|
|
133
134
|
hideSettingsPage?: boolean,
|
|
134
135
|
}
|
|
@@ -227,6 +228,8 @@ export type OrganizationSettings = {
|
|
|
227
228
|
delayedReadingIntervalInMS?: number,
|
|
228
229
|
createChatRoomWithBlankUserIds?: boolean,
|
|
229
230
|
showAlternateEmailsEditor?: boolean,
|
|
231
|
+
excludeCareTeamFromSearch?: boolean,
|
|
232
|
+
showVideoCallsOnTimeline?: boolean,
|
|
230
233
|
},
|
|
231
234
|
tickets?: {
|
|
232
235
|
defaultJourneyDueDateOffsetInMS?: number | '',
|
|
@@ -328,6 +331,22 @@ export type OutOfOfficeBlock = {
|
|
|
328
331
|
autoreplyText: string,
|
|
329
332
|
}
|
|
330
333
|
|
|
334
|
+
// for self-serve email domain verification via AWS SES
|
|
335
|
+
export type VerifiedEmailDomain = {
|
|
336
|
+
domain: string, // e.g., "acme-health.com"
|
|
337
|
+
status: 'pending' | 'verified' | 'failed',
|
|
338
|
+
createdAt: Date,
|
|
339
|
+
verifiedAt?: Date,
|
|
340
|
+
dkimTokens?: string[], // DKIM verification tokens
|
|
341
|
+
mailFromDomain?: string, // e.g., "tellescopemail.acme-health.com"
|
|
342
|
+
mailFromStatus?: 'pending' | 'verified' | 'failed',
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export type VerifiedEmailDomainSettings = {
|
|
346
|
+
maxDomains?: number, // Default: 1
|
|
347
|
+
maxAliasesPerDomain?: number, // Default: 100
|
|
348
|
+
}
|
|
349
|
+
|
|
331
350
|
export interface Organization_readonly extends ClientRecord {
|
|
332
351
|
subscriptionExpiresAt: Date;
|
|
333
352
|
subscriptionPeriod: number;
|
|
@@ -347,7 +366,9 @@ export interface Organization_readonly extends ClientRecord {
|
|
|
347
366
|
twilioSID?: string,
|
|
348
367
|
twilioCustomerId?: string,
|
|
349
368
|
customPortalScriptTags?: string[],
|
|
350
|
-
|
|
369
|
+
verifiedEmailDomains?: VerifiedEmailDomain[],
|
|
370
|
+
verifiedEmailDomainSettings?: VerifiedEmailDomainSettings,
|
|
371
|
+
}
|
|
351
372
|
export interface Organization_required {
|
|
352
373
|
name: string;
|
|
353
374
|
}
|
|
@@ -836,6 +857,17 @@ export type EnduserInsurance = {
|
|
|
836
857
|
startDate?: string,
|
|
837
858
|
}
|
|
838
859
|
|
|
860
|
+
export type Pharmacy = {
|
|
861
|
+
npi: string,
|
|
862
|
+
ncpdpId: string,
|
|
863
|
+
businessName: string,
|
|
864
|
+
primaryTelephone: string,
|
|
865
|
+
addressLine1?: string,
|
|
866
|
+
city?: string,
|
|
867
|
+
stateProvince?: string,
|
|
868
|
+
postalCode?: string,
|
|
869
|
+
}
|
|
870
|
+
|
|
839
871
|
export type EnduserDevice = {
|
|
840
872
|
title: string,
|
|
841
873
|
id: string,
|
|
@@ -966,6 +998,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
966
998
|
lastSuperdialEligibilityCheckAt?: Date,
|
|
967
999
|
superdialEligibilityResponse?: string,
|
|
968
1000
|
eligibleForAutoMerge?: boolean,
|
|
1001
|
+
preferredPharmacy?: Pharmacy,
|
|
969
1002
|
// unsubscribedFromEmail?: boolean,
|
|
970
1003
|
// unsubscribedFromSMS?: boolean,
|
|
971
1004
|
}
|
|
@@ -1636,7 +1669,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
|
|
|
1636
1669
|
}
|
|
1637
1670
|
|
|
1638
1671
|
export type FormFieldLiteralType = 'Rich Text' | 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' /* date + time */ | 'dateString' | 'rating' | 'Time' | "Timezone"
|
|
1639
|
-
export type FormFieldComplexType = "Conditions" | "Allergies" | "Emotii" | "Hidden Value" | "Redirect" | "Height" | "Appointment Booking" | "multiple_choice" | "file" | 'files' | "signature" | 'ranking' | 'Question Group' | 'Table Input' | "Address" | "Chargebee" | "Stripe" | "Dropdown" | "Database Select" | "Medications" | "Related Contacts" | "Insurance" | "Bridge Eligibility" | "Beluga Patient Preference"
|
|
1672
|
+
export type FormFieldComplexType = "Conditions" | "Allergies" | "Emotii" | "Hidden Value" | "Redirect" | "Height" | "Appointment Booking" | "multiple_choice" | "file" | 'files' | "signature" | 'ranking' | 'Question Group' | 'Table Input' | "Address" | "Chargebee" | "Stripe" | "Dropdown" | "Database Select" | "Medications" | "Related Contacts" | "Insurance" | "Bridge Eligibility" | "Beluga Patient Preference" | "Pharmacy Search"
|
|
1640
1673
|
export type FormFieldType = FormFieldLiteralType | FormFieldComplexType
|
|
1641
1674
|
|
|
1642
1675
|
export type PreviousFormFieldType = 'root' | 'after' | 'previousEquals' | 'compoundLogic'
|
|
@@ -1693,6 +1726,7 @@ export type FormFieldFeedback = {
|
|
|
1693
1726
|
export type FormFieldOptionDetails = {
|
|
1694
1727
|
option: string,
|
|
1695
1728
|
description?: string,
|
|
1729
|
+
showCondition?: CompoundFilter<string>,
|
|
1696
1730
|
}
|
|
1697
1731
|
export interface CanvasConsentCategory extends CanvasCoding {}
|
|
1698
1732
|
export type FormFieldOptions = FormFieldValidation & {
|
|
@@ -2173,6 +2207,7 @@ export type FormResponseAnswerAllergies = FormResponseValueAnswerBuilder<'Allerg
|
|
|
2173
2207
|
export type FormResponseAnswerConditions = FormResponseValueAnswerBuilder<'Conditions', ConditionResponse[]>
|
|
2174
2208
|
export type FormResponseAnswerChargebee = FormResponseValueAnswerBuilder<'Chargebee', { url: string }>
|
|
2175
2209
|
export type FormResponseAnswerBelugaPatientPreference = FormResponseValueAnswerBuilder<'Beluga Patient Preference', BelugaPatientPreferenceResponse[]>
|
|
2210
|
+
export type FormResponseAnswerPharmacySearch = FormResponseValueAnswerBuilder<'Pharmacy Search', Pharmacy>
|
|
2176
2211
|
|
|
2177
2212
|
export type FormResponseAnswerSignatureValue = {
|
|
2178
2213
|
fullName: string,
|
|
@@ -2236,6 +2271,7 @@ export type FormResponseValueAnswer = (
|
|
|
2236
2271
|
| FormResponseAnswerChargebee
|
|
2237
2272
|
| FormResponseAnswerBelugaPatientPreference
|
|
2238
2273
|
| FormResponseAnswerBridgeEligibility
|
|
2274
|
+
| FormResponseAnswerPharmacySearch
|
|
2239
2275
|
)
|
|
2240
2276
|
|
|
2241
2277
|
export type FormResponseValue = {
|
|
@@ -2289,6 +2325,7 @@ export type AnswerForType = {
|
|
|
2289
2325
|
'Conditions': FormResponseAnswerConditions['value']
|
|
2290
2326
|
'Timezone': FormResponseAnswerTimezone['value']
|
|
2291
2327
|
'Beluga Patient Preference': FormResponseAnswerBelugaPatientPreference['value']
|
|
2328
|
+
'Pharmacy Search': FormResponseAnswerPharmacySearch['value']
|
|
2292
2329
|
}
|
|
2293
2330
|
|
|
2294
2331
|
export type Addendum = {
|
|
@@ -2388,6 +2425,7 @@ export interface FormResponse extends FormResponse_readonly, FormResponse_requir
|
|
|
2388
2425
|
fieldTitle: string,
|
|
2389
2426
|
timestamp: Date,
|
|
2390
2427
|
}[],
|
|
2428
|
+
startedViaPinnedForm?: boolean,
|
|
2391
2429
|
}
|
|
2392
2430
|
|
|
2393
2431
|
export interface WebHook_readonly extends ClientRecord {}
|
|
@@ -2778,6 +2816,7 @@ export interface AppointmentBookingPage extends AppointmentBookingPage_readonly,
|
|
|
2778
2816
|
limitedToCareTeam?: boolean,
|
|
2779
2817
|
limitedByState?: boolean,
|
|
2780
2818
|
limitedByTagsPortal?: string[],
|
|
2819
|
+
enableUserSelection?: boolean,
|
|
2781
2820
|
requireLocationSelection?: boolean,
|
|
2782
2821
|
collectReason?: "Do Not Collect" | 'Optional' | 'Required',
|
|
2783
2822
|
restrictionsByTemplate?: BookingRestrictions[],
|
|
@@ -3071,9 +3110,10 @@ export type AddToJourneyAutomationAction = AutomationActionBuilder<'addToJourney
|
|
|
3071
3110
|
export type RemoveFromJourneyAutomationAction = AutomationActionBuilder<'removeFromJourney', { journeyId: string }>
|
|
3072
3111
|
export type RemoveFromAllJourneysAutomationAction = AutomationActionBuilder<'removeFromAllJourneys', { }>
|
|
3073
3112
|
export type IterableSendEmailAutomationAction = AutomationActionBuilder<'iterableSendEmail', { campaignId: string }>
|
|
3074
|
-
export type ZendeskCreateTicketAutomationAction = AutomationActionBuilder<'zendeskCreateTicket', {
|
|
3113
|
+
export type ZendeskCreateTicketAutomationAction = AutomationActionBuilder<'zendeskCreateTicket', {
|
|
3075
3114
|
templateId: string,
|
|
3076
3115
|
defaultSenderId: string,
|
|
3116
|
+
isInternalNote?: boolean,
|
|
3077
3117
|
}>
|
|
3078
3118
|
export type CreateCarePlanAutomationAction = AutomationActionBuilder<'createCarePlan', {
|
|
3079
3119
|
title: string,
|
|
@@ -3908,10 +3948,11 @@ export type AnalyticsQueryFilterForType = {
|
|
|
3908
3948
|
},
|
|
3909
3949
|
"Phone Calls": { },
|
|
3910
3950
|
"Meetings": { },
|
|
3911
|
-
"SMS Messages": {
|
|
3951
|
+
"SMS Messages": {
|
|
3912
3952
|
direction?: string,
|
|
3913
3953
|
messages?: string[],
|
|
3914
3954
|
"SMS Tags"?: ListOfStringsWithQualifier,
|
|
3955
|
+
deliveryStatus?: 'All' | 'Delivered' | 'Failed',
|
|
3915
3956
|
},
|
|
3916
3957
|
Emails: {
|
|
3917
3958
|
direction?: "Inbound" | "Outbound" | "Both",
|
|
@@ -4208,6 +4249,7 @@ export interface BackgroundError extends BackgroundError_readonly, BackgroundErr
|
|
|
4208
4249
|
acknowledgedAt?: Date | '',
|
|
4209
4250
|
journeyId?: string,
|
|
4210
4251
|
enduserId?: string,
|
|
4252
|
+
userId?: string,
|
|
4211
4253
|
}
|
|
4212
4254
|
|
|
4213
4255
|
export type SortingField = {
|
|
@@ -4263,6 +4305,11 @@ export type EnduserProfileViewBlocks = {
|
|
|
4263
4305
|
"Diagnoses": EnduserProfileViewBlockBuilder<"Diagnoses", { title: string }>,
|
|
4264
4306
|
"Timeline": EnduserProfileViewBlockBuilder<"Timeline", { title: string }>,
|
|
4265
4307
|
"Shared Content": EnduserProfileViewBlockBuilder<"Shared Content", { title: string }>,
|
|
4308
|
+
"iFrame": EnduserProfileViewBlockBuilder<"iFrame", {
|
|
4309
|
+
title: string,
|
|
4310
|
+
url: string,
|
|
4311
|
+
height: number,
|
|
4312
|
+
}>,
|
|
4266
4313
|
}
|
|
4267
4314
|
export type EnduserProfileViewBlockType = keyof EnduserProfileViewBlocks
|
|
4268
4315
|
export type EnduserProfileViewBlock = EnduserProfileViewBlocks[EnduserProfileViewBlockType]
|