@tellescope/types-models 1.163.0 → 1.165.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 +37 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +37 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/index.ts +41 -3
package/src/index.ts
CHANGED
|
@@ -1214,6 +1214,8 @@ export interface ChatMessage extends ChatMessage_readonly, ChatMessage_required,
|
|
|
1214
1214
|
isAutoreply?: boolean,
|
|
1215
1215
|
quote?: string[],
|
|
1216
1216
|
references?: RelatedRecord[] // internal, for storing built-in integrations info
|
|
1217
|
+
sendAt?: Date | '',
|
|
1218
|
+
isDraft?: boolean,
|
|
1217
1219
|
}
|
|
1218
1220
|
|
|
1219
1221
|
export type MessageTemplateType = 'enduser' | 'Reply' | 'team' // default to 'enduser'
|
|
@@ -1521,6 +1523,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1521
1523
|
stripeKey?: string, // publishable key of custom stripe API keys
|
|
1522
1524
|
dataSource?: string, // e.g. Canvas for Allergies
|
|
1523
1525
|
canvasDocumentCoding?: Pick<CanvasCoding, 'system' | 'code'>
|
|
1526
|
+
esignatureTermsCompanyName?: string,
|
|
1524
1527
|
}
|
|
1525
1528
|
export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>
|
|
1526
1529
|
|
|
@@ -2129,7 +2132,7 @@ export interface CalendarEvent_updatesDisabled {}
|
|
|
2129
2132
|
export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_required, CalendarEvent_updatesDisabled {
|
|
2130
2133
|
reason?: string, // reason for booking, patient-entered
|
|
2131
2134
|
cancelReason?: string,
|
|
2132
|
-
attendees: UserIdentity[],
|
|
2135
|
+
attendees: (UserIdentity & { joinLinkToken?: string })[],
|
|
2133
2136
|
color?: string,
|
|
2134
2137
|
enableVideoCall?: boolean,
|
|
2135
2138
|
type?: string,
|
|
@@ -2344,6 +2347,7 @@ export interface AppointmentLocation extends AppointmentLocation_readonly, Appoi
|
|
|
2344
2347
|
tags?: string[],
|
|
2345
2348
|
}
|
|
2346
2349
|
|
|
2350
|
+
// also includes per-template customizations, but naming is based on original purpose
|
|
2347
2351
|
export interface BookingRestrictions {
|
|
2348
2352
|
templateId: string,
|
|
2349
2353
|
restrictions: {
|
|
@@ -2352,7 +2356,8 @@ export interface BookingRestrictions {
|
|
|
2352
2356
|
tagsPortal?: string[],
|
|
2353
2357
|
hoursBefore?: number | '',
|
|
2354
2358
|
hoursAfter?: number | '',
|
|
2355
|
-
|
|
2359
|
+
shouldOpenJoinLink?: boolean,
|
|
2360
|
+
},
|
|
2356
2361
|
}
|
|
2357
2362
|
export type AppointmentTerm = {
|
|
2358
2363
|
title: string,
|
|
@@ -3688,7 +3693,10 @@ export type AutomationTriggerEvents = {
|
|
|
3688
3693
|
'Form Group Incomplete': AutomationTriggerEventBuilder<"Form Group Incomplete", { groupId: string, intervalInMS: number }, {}>,
|
|
3689
3694
|
'Message Opened': AutomationTriggerEventBuilder<"Message Opened", { templateIds?: string[] }, {}>,
|
|
3690
3695
|
'Message Link Clicked': AutomationTriggerEventBuilder<"Message Link Clicked", { templateIds?: string[] }, {}>,
|
|
3691
|
-
'Healthie Note Locked': AutomationTriggerEventBuilder<"Healthie Note Locked", {
|
|
3696
|
+
'Healthie Note Locked': AutomationTriggerEventBuilder<"Healthie Note Locked", {
|
|
3697
|
+
healthieFormIds?: string[],
|
|
3698
|
+
answersCondition?: Record<string, any>,
|
|
3699
|
+
}, {}>,
|
|
3692
3700
|
'Database Entry Added': AutomationTriggerEventBuilder<"Database Entry Added", { databaseId: string }, {}>,
|
|
3693
3701
|
'Form Started': AutomationTriggerEventBuilder<"Form Started", { formIds?: string[] }, {}>,
|
|
3694
3702
|
}
|
|
@@ -3710,6 +3718,8 @@ export interface AutomationTrigger extends AutomationTrigger_readonly, Automatio
|
|
|
3710
3718
|
oncePerEnduser?: boolean,
|
|
3711
3719
|
triggerNextAt?: Date,
|
|
3712
3720
|
tags?: string[]
|
|
3721
|
+
availabilityTimezone?: Timezone,
|
|
3722
|
+
weeklyAvailabilities?: WeeklyAvailability[],
|
|
3713
3723
|
}
|
|
3714
3724
|
|
|
3715
3725
|
export type Address = {
|
|
@@ -4248,7 +4258,24 @@ export interface EnduserEligibilityResult extends EnduserEligibilityResult_reado
|
|
|
4248
4258
|
}[]
|
|
4249
4259
|
}
|
|
4250
4260
|
|
|
4261
|
+
export interface AgentRecord_readonly extends ClientRecord {}
|
|
4262
|
+
export interface AgentRecord_required {
|
|
4263
|
+
type: string,
|
|
4264
|
+
title: string,
|
|
4265
|
+
description: string,
|
|
4266
|
+
}
|
|
4267
|
+
export interface AgentRecord_updatesDisabled {}
|
|
4268
|
+
export interface AgentRecord extends AgentRecord_readonly, AgentRecord_required, AgentRecord_updatesDisabled {
|
|
4269
|
+
pages?: string[], // Tellescope pages to highlight on
|
|
4270
|
+
content?: string,
|
|
4271
|
+
url?: string,
|
|
4272
|
+
embedding?: number[],
|
|
4273
|
+
source?: string,
|
|
4274
|
+
externalId?: string,
|
|
4275
|
+
}
|
|
4276
|
+
|
|
4251
4277
|
export type ModelForName_required = {
|
|
4278
|
+
agent_records: AgentRecord_required,
|
|
4252
4279
|
enduser_eligibility_results: EnduserEligibilityResult_required,
|
|
4253
4280
|
integration_logs: IntegrationLog_required,
|
|
4254
4281
|
allergy_codes: AllergyCode_required,
|
|
@@ -4337,6 +4364,7 @@ export type ModelForName_required = {
|
|
|
4337
4364
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
|
|
4338
4365
|
|
|
4339
4366
|
export interface ModelForName_readonly {
|
|
4367
|
+
agent_records: AgentRecord_readonly,
|
|
4340
4368
|
enduser_eligibility_results: EnduserEligibilityResult_readonly,
|
|
4341
4369
|
integration_logs: IntegrationLog_readonly,
|
|
4342
4370
|
allergy_codes: AllergyCode_readonly,
|
|
@@ -4425,6 +4453,7 @@ export interface ModelForName_readonly {
|
|
|
4425
4453
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
|
|
4426
4454
|
|
|
4427
4455
|
export interface ModelForName_updatesDisabled {
|
|
4456
|
+
agent_records: AgentRecord_updatesDisabled,
|
|
4428
4457
|
enduser_eligibility_results: EnduserEligibilityResult_updatesDisabled,
|
|
4429
4458
|
integration_logs: IntegrationLog_updatesDisabled,
|
|
4430
4459
|
allergy_codes: AllergyCode_updatesDisabled,
|
|
@@ -4513,6 +4542,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
4513
4542
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
|
|
4514
4543
|
|
|
4515
4544
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
4545
|
+
agent_records: AgentRecord,
|
|
4516
4546
|
enduser_eligibility_results: EnduserEligibilityResult,
|
|
4517
4547
|
integration_logs: IntegrationLog,
|
|
4518
4548
|
allergy_codes: AllergyCode,
|
|
@@ -4611,6 +4641,7 @@ export interface UserActivityInfo {
|
|
|
4611
4641
|
export type UserActivityStatus = 'Active' | 'Away' | 'Unavailable'
|
|
4612
4642
|
|
|
4613
4643
|
export const modelNameChecker: { [K in ModelName] : true } = {
|
|
4644
|
+
agent_records: true,
|
|
4614
4645
|
enduser_eligibility_results: true,
|
|
4615
4646
|
integration_logs: true,
|
|
4616
4647
|
allergy_codes: true,
|
|
@@ -5494,4 +5525,11 @@ export type DevelopHealthRunBenefitVerificationBaseArguments = {
|
|
|
5494
5525
|
case: string, // e.g. "drugs_covered__prior_auth_required__has_copay"
|
|
5495
5526
|
},
|
|
5496
5527
|
use_patient_plan_fund_source_check?: boolean,
|
|
5528
|
+
}
|
|
5529
|
+
|
|
5530
|
+
export type ZendeskArticle = {
|
|
5531
|
+
id: number,
|
|
5532
|
+
html_url: string,
|
|
5533
|
+
title: string,
|
|
5534
|
+
body: string,
|
|
5497
5535
|
}
|