@tellescope/types-models 1.157.1 → 1.159.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 +42 -3
- 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 +42 -3
- 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 +43 -3
package/src/index.ts
CHANGED
|
@@ -195,6 +195,7 @@ export type OrganizationSettings = {
|
|
|
195
195
|
loopQueueCallSound?: boolean,
|
|
196
196
|
showOrdersInSidebar?: boolean,
|
|
197
197
|
showDiagnoses?: boolean,
|
|
198
|
+
requireObservationInvalidationReason?: boolean,
|
|
198
199
|
},
|
|
199
200
|
tickets?: {
|
|
200
201
|
defaultJourneyDueDateOffsetInMS?: number | '',
|
|
@@ -319,6 +320,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
319
320
|
hasConnectedZendesk?: boolean,
|
|
320
321
|
hasConnectedZus?: boolean,
|
|
321
322
|
hasConnectedCanvas?: boolean,
|
|
323
|
+
canvasURL?: string,
|
|
322
324
|
hasConnectedCandid?: boolean,
|
|
323
325
|
hasConnectedGoGoMeds?: boolean,
|
|
324
326
|
hasConnectedPagerDuty?: boolean,
|
|
@@ -373,6 +375,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
373
375
|
stripePublicKeys?: string[],
|
|
374
376
|
defaultDoseSpotPharmacies?: { id: string, name: string }[]
|
|
375
377
|
groups?: string[],
|
|
378
|
+
observationInvalidationReasons?: string[],
|
|
376
379
|
// _AIEnabled?: boolean,
|
|
377
380
|
}
|
|
378
381
|
export type OrganizationTheme = {
|
|
@@ -797,6 +800,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
797
800
|
stripeKey?: string,
|
|
798
801
|
lastDoseSpotSyncAt?: Date,
|
|
799
802
|
diagnoses?: EnduserDiagnosis[]
|
|
803
|
+
lockedFromPortal?: boolean,
|
|
800
804
|
// unsubscribedFromEmail?: boolean,
|
|
801
805
|
// unsubscribedFromSMS?: boolean,
|
|
802
806
|
}
|
|
@@ -1509,6 +1513,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1509
1513
|
saveIntakeOnPartial?: boolean,
|
|
1510
1514
|
stripeKey?: string, // publishable key of custom stripe API keys
|
|
1511
1515
|
dataSource?: string, // e.g. Canvas for Allergies
|
|
1516
|
+
canvasDocumentCoding?: Pick<CanvasCoding, 'system' | 'code'>
|
|
1512
1517
|
}
|
|
1513
1518
|
export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>
|
|
1514
1519
|
|
|
@@ -1628,6 +1633,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
|
|
|
1628
1633
|
hideAfterUnsubmittedInMS?: number,
|
|
1629
1634
|
hideFromCompose?: boolean,
|
|
1630
1635
|
enduserFieldsToAppendForSync?: string[],
|
|
1636
|
+
allowPortalSubmission?: boolean,
|
|
1631
1637
|
}
|
|
1632
1638
|
|
|
1633
1639
|
export interface FormGroup_readonly extends ClientRecord {}
|
|
@@ -1806,11 +1812,16 @@ export type MedicationResponse = {
|
|
|
1806
1812
|
reasonForTaking?: string,
|
|
1807
1813
|
}
|
|
1808
1814
|
|
|
1809
|
-
export type
|
|
1815
|
+
export type BaseResponse = {
|
|
1810
1816
|
display: string,
|
|
1811
1817
|
code: string,
|
|
1812
1818
|
system?: string,
|
|
1813
1819
|
}
|
|
1820
|
+
export type AllergyResponse = BaseResponse & {
|
|
1821
|
+
severity?: string,
|
|
1822
|
+
note?: string,
|
|
1823
|
+
}
|
|
1824
|
+
export type ConditionResponse = BaseResponse
|
|
1814
1825
|
|
|
1815
1826
|
export type FormResponseAnswerTable = FormResponseValueAnswerBuilder<'Table Input', TableInputCell[][]>
|
|
1816
1827
|
export type FormResponseAnswerGroup = FormResponseValueAnswerBuilder<'Question Group', FormSubField[]>
|
|
@@ -1833,7 +1844,7 @@ export type FormResponseAnswerInsurance = FormResponseValueAnswerBuilder<'Insura
|
|
|
1833
1844
|
export type FormResponseAnswerHeight = FormResponseValueAnswerBuilder<'Height', { feet: number, inches: number }>
|
|
1834
1845
|
export type FormResponseAnswerRedirect = FormResponseValueAnswerBuilder<'Redirect', string>
|
|
1835
1846
|
export type FormResponseAnswerAllergies = FormResponseValueAnswerBuilder<'Allergies', AllergyResponse[]>
|
|
1836
|
-
export type FormResponseAnswerConditions = FormResponseValueAnswerBuilder<'Conditions',
|
|
1847
|
+
export type FormResponseAnswerConditions = FormResponseValueAnswerBuilder<'Conditions', ConditionResponse[]>
|
|
1837
1848
|
|
|
1838
1849
|
export type FormResponseAnswerSignatureValue = {
|
|
1839
1850
|
fullName: string,
|
|
@@ -1905,7 +1916,7 @@ export type FormResponseValue = {
|
|
|
1905
1916
|
isCalledOut?: boolean,
|
|
1906
1917
|
disabled?: boolean,
|
|
1907
1918
|
isHighlightedOnTimeline?: boolean,
|
|
1908
|
-
computedValueKey?: 'Height' | 'Weight' | 'Date of Birth' | "Gender",
|
|
1919
|
+
computedValueKey?: 'Height' | 'Weight' | 'Date of Birth' | "Gender" | "State",
|
|
1909
1920
|
intakeField?: string,
|
|
1910
1921
|
}
|
|
1911
1922
|
|
|
@@ -1946,6 +1957,11 @@ export type Addendum = {
|
|
|
1946
1957
|
userId: string,
|
|
1947
1958
|
text: string,
|
|
1948
1959
|
}
|
|
1960
|
+
export type FormResponseFollowup = {
|
|
1961
|
+
formId: string,
|
|
1962
|
+
formResponseId?: string,
|
|
1963
|
+
completedAt?: Date,
|
|
1964
|
+
}
|
|
1949
1965
|
|
|
1950
1966
|
export interface FormResponse_readonly extends ClientRecord {
|
|
1951
1967
|
openedAt?: Date,
|
|
@@ -1971,6 +1987,7 @@ export interface FormResponse_required {
|
|
|
1971
1987
|
dateOfBirth?: string,
|
|
1972
1988
|
gender?: TellescopeGender,
|
|
1973
1989
|
customTypeId?: string,
|
|
1990
|
+
followups?: FormResponseFollowup[],
|
|
1974
1991
|
}
|
|
1975
1992
|
export interface FormResponse_updatesDisabled {
|
|
1976
1993
|
submissionExpiresAt?: number,
|
|
@@ -2170,6 +2187,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
|
|
|
2170
2187
|
dontBlockAvailability?: boolean,
|
|
2171
2188
|
previousStartTimes?: (number | string)[],
|
|
2172
2189
|
requirePortalCancelReason?: boolean,
|
|
2190
|
+
startLinkToken?: string,
|
|
2173
2191
|
// isAllDay?: boolean,
|
|
2174
2192
|
}
|
|
2175
2193
|
|
|
@@ -2647,6 +2665,7 @@ export type HealthieSendChatAutomationAction = AutomationActionBuilder<'healthie
|
|
|
2647
2665
|
export type CompleteTicketsAutomationAction = AutomationActionBuilder<'completeTickets', { journeyIds?: string[] }>
|
|
2648
2666
|
export type ChangeContactTypeAutomationAction = AutomationActionBuilder<'changeContactType', { type: string }>
|
|
2649
2667
|
export type ActiveCampaignSyncAutomationAction = AutomationActionBuilder<'activeCampaignSync', { }>
|
|
2668
|
+
export type ActiveCampaignAddToListsAutomationAction = AutomationActionBuilder<'activeCampaignAddToLists', { listIds: string[] }>
|
|
2650
2669
|
export type SwitchToRelatedContactAutomationAction = AutomationActionBuilder<'switchToRelatedContact', { type: string, otherTypes?: string[] }>
|
|
2651
2670
|
export type ElationSyncAutomationAction = AutomationActionBuilder<'elationSync', { }>
|
|
2652
2671
|
export type CanvasSyncAutomationAction = AutomationActionBuilder<'canvasSync', {}>
|
|
@@ -2710,6 +2729,7 @@ export type AutomationActionForType = {
|
|
|
2710
2729
|
'completeTickets': CompleteTicketsAutomationAction,
|
|
2711
2730
|
'changeContactType': ChangeContactTypeAutomationAction,
|
|
2712
2731
|
activeCampaignSync: ActiveCampaignSyncAutomationAction,
|
|
2732
|
+
activeCampaignAddToLists: ActiveCampaignAddToListsAutomationAction,
|
|
2713
2733
|
switchToRelatedContact: SwitchToRelatedContactAutomationAction,
|
|
2714
2734
|
'elationSync': ElationSyncAutomationAction,
|
|
2715
2735
|
canvasSync: CanvasSyncAutomationAction,
|
|
@@ -2787,6 +2807,7 @@ export interface EnduserObservation extends EnduserObservation_readonly, Enduser
|
|
|
2787
2807
|
beforeMeal?: boolean,
|
|
2788
2808
|
dontTrigger?: boolean,
|
|
2789
2809
|
showWithPlotsByUnit?: string[],
|
|
2810
|
+
invalidationReason?: string,
|
|
2790
2811
|
}
|
|
2791
2812
|
|
|
2792
2813
|
export type BlockType = 'h1' | 'h2' | 'html' | 'image' | 'youtube' | 'pdf' | 'iframe' | 'content-link'
|
|
@@ -3188,6 +3209,10 @@ export type AnalyticsQueryInfoForType = {
|
|
|
3188
3209
|
Total: AnalyticsQueryInfoBuilder<'Total', undefined>,
|
|
3189
3210
|
Duration: AnalyticsQueryInfoBuilder<'Duration', undefined>,
|
|
3190
3211
|
},
|
|
3212
|
+
"Meetings": {
|
|
3213
|
+
Total: AnalyticsQueryInfoBuilder<'Total', undefined>,
|
|
3214
|
+
Duration: AnalyticsQueryInfoBuilder<'Duration', undefined>,
|
|
3215
|
+
},
|
|
3191
3216
|
}
|
|
3192
3217
|
export type AnalyticsQueryInfoType = keyof AnalyticsQueryInfoForType
|
|
3193
3218
|
export type AnalyticsQueryInfo = AnalyticsQueryInfoForType[AnalyticsQueryInfoType]
|
|
@@ -3233,6 +3258,7 @@ export type AnalyticsQueryFilterForType = {
|
|
|
3233
3258
|
closeReasons?: string[],
|
|
3234
3259
|
},
|
|
3235
3260
|
"Phone Calls": { },
|
|
3261
|
+
"Meetings": { },
|
|
3236
3262
|
"SMS Messages": {
|
|
3237
3263
|
direction?: string,
|
|
3238
3264
|
messages?: string[],
|
|
@@ -3280,6 +3306,7 @@ export type AnalyticsQueryGroupingForType = {
|
|
|
3280
3306
|
"Emails": {} & EnduserGrouping & { Enduser: string },
|
|
3281
3307
|
"Medications": {} & EnduserGrouping & { Enduser: string },
|
|
3282
3308
|
"Files": {} & EnduserGrouping & { Enduser: string },
|
|
3309
|
+
"Meetings": { Host?: boolean },
|
|
3283
3310
|
}
|
|
3284
3311
|
|
|
3285
3312
|
type DefaultRangeKey = 'Created At' | 'Updated At'
|
|
@@ -3295,6 +3322,7 @@ export type AnalyticsQueryRangeKeyForType = {
|
|
|
3295
3322
|
"Emails": DefaultRangeKey,
|
|
3296
3323
|
"Medications": DefaultRangeKey,
|
|
3297
3324
|
"Files": DefaultRangeKey,
|
|
3325
|
+
"Meetings": DefaultRangeKey,
|
|
3298
3326
|
}
|
|
3299
3327
|
export type RangeKey = DefaultRangeKey | 'Submitted At' | "Closed At"
|
|
3300
3328
|
|
|
@@ -3389,6 +3417,13 @@ export type AnalyticsQueryForType = {
|
|
|
3389
3417
|
AnalyticsQueryGroupingForType['Files'],
|
|
3390
3418
|
AnalyticsQueryRangeKeyForType['Files']
|
|
3391
3419
|
>,
|
|
3420
|
+
"Meetings": AnalyticsQueryBuilder<
|
|
3421
|
+
"Meetings",
|
|
3422
|
+
AnalyticsQueryInfoForType['Meetings'][keyof AnalyticsQueryInfoForType['Meetings']],
|
|
3423
|
+
AnalyticsQueryFilterForType['Meetings'],
|
|
3424
|
+
AnalyticsQueryGroupingForType['Meetings'],
|
|
3425
|
+
AnalyticsQueryRangeKeyForType['Meetings']
|
|
3426
|
+
>,
|
|
3392
3427
|
}
|
|
3393
3428
|
export type AnalyticsQueryType = keyof AnalyticsQueryForType
|
|
3394
3429
|
export type AnalyticsQuery = AnalyticsQueryForType[AnalyticsQueryType]
|
|
@@ -3405,6 +3440,7 @@ export const resource_to_modelName: { [K in AnalyticsQueryType] : ModelName } =
|
|
|
3405
3440
|
Emails: "emails",
|
|
3406
3441
|
Medications: "enduser_medications",
|
|
3407
3442
|
Files: "files",
|
|
3443
|
+
Meetings: "meetings",
|
|
3408
3444
|
}
|
|
3409
3445
|
|
|
3410
3446
|
export type AnalyticsQueryOptions = {
|
|
@@ -3505,6 +3541,7 @@ export type EnduserProfileViewBlocks = {
|
|
|
3505
3541
|
"Labs": EnduserProfileViewBlockBuilder<"Labs", { title: string }>,
|
|
3506
3542
|
"Medications": EnduserProfileViewBlockBuilder<"Medications", { title: string }>,
|
|
3507
3543
|
"Diagnoses": EnduserProfileViewBlockBuilder<"Diagnoses", { title: string }>,
|
|
3544
|
+
"Timeline": EnduserProfileViewBlockBuilder<"Timeline", { title: string }>,
|
|
3508
3545
|
}
|
|
3509
3546
|
export type EnduserProfileViewBlockType = keyof EnduserProfileViewBlocks
|
|
3510
3547
|
export type EnduserProfileViewBlock = EnduserProfileViewBlocks[EnduserProfileViewBlockType]
|
|
@@ -3545,6 +3582,9 @@ export type AutomationTriggerActions = {
|
|
|
3545
3582
|
"Remove Care Team": AutomationTriggerActionBuilder<'Remove Care Team', {
|
|
3546
3583
|
tags: ListOfStringsWithQualifier,
|
|
3547
3584
|
}>,
|
|
3585
|
+
"Require Form Followups": AutomationTriggerActionBuilder<'Require Form Followups', {
|
|
3586
|
+
formIds: string[],
|
|
3587
|
+
}>,
|
|
3548
3588
|
}
|
|
3549
3589
|
export type AutomationTriggerActionType = keyof AutomationTriggerActions
|
|
3550
3590
|
export type AutomationTriggerAction = AutomationTriggerActions[AutomationTriggerActionType]
|