@tellescope/types-models 1.158.0 → 1.160.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 +51 -2
- 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 +51 -2
- 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 +51 -3
package/src/index.ts
CHANGED
|
@@ -800,6 +800,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
800
800
|
stripeKey?: string,
|
|
801
801
|
lastDoseSpotSyncAt?: Date,
|
|
802
802
|
diagnoses?: EnduserDiagnosis[]
|
|
803
|
+
lockedFromPortal?: boolean,
|
|
803
804
|
// unsubscribedFromEmail?: boolean,
|
|
804
805
|
// unsubscribedFromSMS?: boolean,
|
|
805
806
|
}
|
|
@@ -840,6 +841,7 @@ export interface EnduserMedication extends EnduserMedication_readonly, EnduserMe
|
|
|
840
841
|
startedTakingAt?: Date | '',
|
|
841
842
|
stoppedTakingAt?: Date | '',
|
|
842
843
|
rxNormCode?: string,
|
|
844
|
+
fdbCode?: string,
|
|
843
845
|
dispensing?: {
|
|
844
846
|
quantity: number,
|
|
845
847
|
unit?: string,
|
|
@@ -849,6 +851,7 @@ export interface EnduserMedication extends EnduserMedication_readonly, EnduserMe
|
|
|
849
851
|
unit: string,
|
|
850
852
|
quantity?: string,
|
|
851
853
|
frequency?: string,
|
|
854
|
+
frequencyDescriptor?: string,
|
|
852
855
|
},
|
|
853
856
|
notes?: string,
|
|
854
857
|
pharmacyName?: string,
|
|
@@ -1064,6 +1067,7 @@ export interface Email extends Email_required, Email_readonly, Email_updatesDisa
|
|
|
1064
1067
|
ticketIds?: string[],
|
|
1065
1068
|
alternateToAddress?: string,
|
|
1066
1069
|
hiddenBy?: { [index: string] : Date | '' };
|
|
1070
|
+
hiddenForAll?: boolean,
|
|
1067
1071
|
suggestedReply?: string,
|
|
1068
1072
|
tags?: string[],
|
|
1069
1073
|
batchId?: string,
|
|
@@ -1104,6 +1108,7 @@ export interface SMSMessage extends SMSMessage_readonly, SMSMessage_required, SM
|
|
|
1104
1108
|
userId?: string, // defaults to self, but should allow future options to send as other user
|
|
1105
1109
|
readBy?: { [index: string] : Date };
|
|
1106
1110
|
hiddenBy?: { [index: string] : Date | '' };
|
|
1111
|
+
hiddenForAll?: boolean,
|
|
1107
1112
|
error?: string,
|
|
1108
1113
|
journeyContext?: JourneyContext,
|
|
1109
1114
|
sendAt?: Date | '',
|
|
@@ -1195,6 +1200,7 @@ export interface ChatMessage extends ChatMessage_readonly, ChatMessage_required,
|
|
|
1195
1200
|
html?: string,
|
|
1196
1201
|
readBy?: { [index: string] : Date };
|
|
1197
1202
|
hiddenBy?: { [index: string] : Date | '' };
|
|
1203
|
+
hiddenForAll?: boolean,
|
|
1198
1204
|
attachments?: ChatAttachment[]
|
|
1199
1205
|
timestamp?: Date,
|
|
1200
1206
|
ticketIds?: string[],
|
|
@@ -1512,6 +1518,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1512
1518
|
saveIntakeOnPartial?: boolean,
|
|
1513
1519
|
stripeKey?: string, // publishable key of custom stripe API keys
|
|
1514
1520
|
dataSource?: string, // e.g. Canvas for Allergies
|
|
1521
|
+
canvasDocumentCoding?: Pick<CanvasCoding, 'system' | 'code'>
|
|
1515
1522
|
}
|
|
1516
1523
|
export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>
|
|
1517
1524
|
|
|
@@ -1800,21 +1807,28 @@ export type MedicationResponse = {
|
|
|
1800
1807
|
otherDrug?: string,
|
|
1801
1808
|
drugSynonym?: string,
|
|
1802
1809
|
rxNormCode?: string,
|
|
1810
|
+
fdbCode?: string,
|
|
1803
1811
|
dosage?: {
|
|
1804
1812
|
value: string,
|
|
1805
1813
|
unit: string,
|
|
1806
1814
|
quantity?: string, // how many per frequency
|
|
1807
1815
|
frequency?: string,
|
|
1816
|
+
frequencyDescriptor?: string,
|
|
1808
1817
|
},
|
|
1809
1818
|
NDCs?: string[],
|
|
1810
1819
|
reasonForTaking?: string,
|
|
1811
1820
|
}
|
|
1812
1821
|
|
|
1813
|
-
export type
|
|
1822
|
+
export type BaseResponse = {
|
|
1814
1823
|
display: string,
|
|
1815
1824
|
code: string,
|
|
1816
1825
|
system?: string,
|
|
1817
1826
|
}
|
|
1827
|
+
export type AllergyResponse = BaseResponse & {
|
|
1828
|
+
severity?: string,
|
|
1829
|
+
note?: string,
|
|
1830
|
+
}
|
|
1831
|
+
export type ConditionResponse = BaseResponse
|
|
1818
1832
|
|
|
1819
1833
|
export type FormResponseAnswerTable = FormResponseValueAnswerBuilder<'Table Input', TableInputCell[][]>
|
|
1820
1834
|
export type FormResponseAnswerGroup = FormResponseValueAnswerBuilder<'Question Group', FormSubField[]>
|
|
@@ -1837,7 +1851,7 @@ export type FormResponseAnswerInsurance = FormResponseValueAnswerBuilder<'Insura
|
|
|
1837
1851
|
export type FormResponseAnswerHeight = FormResponseValueAnswerBuilder<'Height', { feet: number, inches: number }>
|
|
1838
1852
|
export type FormResponseAnswerRedirect = FormResponseValueAnswerBuilder<'Redirect', string>
|
|
1839
1853
|
export type FormResponseAnswerAllergies = FormResponseValueAnswerBuilder<'Allergies', AllergyResponse[]>
|
|
1840
|
-
export type FormResponseAnswerConditions = FormResponseValueAnswerBuilder<'Conditions',
|
|
1854
|
+
export type FormResponseAnswerConditions = FormResponseValueAnswerBuilder<'Conditions', ConditionResponse[]>
|
|
1841
1855
|
|
|
1842
1856
|
export type FormResponseAnswerSignatureValue = {
|
|
1843
1857
|
fullName: string,
|
|
@@ -1950,6 +1964,11 @@ export type Addendum = {
|
|
|
1950
1964
|
userId: string,
|
|
1951
1965
|
text: string,
|
|
1952
1966
|
}
|
|
1967
|
+
export type FormResponseFollowup = {
|
|
1968
|
+
formId: string,
|
|
1969
|
+
formResponseId?: string,
|
|
1970
|
+
completedAt?: Date,
|
|
1971
|
+
}
|
|
1953
1972
|
|
|
1954
1973
|
export interface FormResponse_readonly extends ClientRecord {
|
|
1955
1974
|
openedAt?: Date,
|
|
@@ -1975,6 +1994,7 @@ export interface FormResponse_required {
|
|
|
1975
1994
|
dateOfBirth?: string,
|
|
1976
1995
|
gender?: TellescopeGender,
|
|
1977
1996
|
customTypeId?: string,
|
|
1997
|
+
followups?: FormResponseFollowup[],
|
|
1978
1998
|
}
|
|
1979
1999
|
export interface FormResponse_updatesDisabled {
|
|
1980
2000
|
submissionExpiresAt?: number,
|
|
@@ -2024,7 +2044,8 @@ export interface FormResponse extends FormResponse_readonly, FormResponse_requir
|
|
|
2024
2044
|
discussionRoomId?: string,
|
|
2025
2045
|
formsort?: string,
|
|
2026
2046
|
hideAfterUnsubmittedInMS?: number,
|
|
2027
|
-
addenda?: Addendum[]
|
|
2047
|
+
addenda?: Addendum[],
|
|
2048
|
+
canvasEncounterId?: string,
|
|
2028
2049
|
}
|
|
2029
2050
|
|
|
2030
2051
|
export interface WebHook_readonly extends ClientRecord {}
|
|
@@ -2174,6 +2195,8 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
|
|
|
2174
2195
|
dontBlockAvailability?: boolean,
|
|
2175
2196
|
previousStartTimes?: (number | string)[],
|
|
2176
2197
|
requirePortalCancelReason?: boolean,
|
|
2198
|
+
startLinkToken?: string,
|
|
2199
|
+
canvasEncounterId?: string,
|
|
2177
2200
|
// isAllDay?: boolean,
|
|
2178
2201
|
}
|
|
2179
2202
|
|
|
@@ -2651,6 +2674,7 @@ export type HealthieSendChatAutomationAction = AutomationActionBuilder<'healthie
|
|
|
2651
2674
|
export type CompleteTicketsAutomationAction = AutomationActionBuilder<'completeTickets', { journeyIds?: string[] }>
|
|
2652
2675
|
export type ChangeContactTypeAutomationAction = AutomationActionBuilder<'changeContactType', { type: string }>
|
|
2653
2676
|
export type ActiveCampaignSyncAutomationAction = AutomationActionBuilder<'activeCampaignSync', { }>
|
|
2677
|
+
export type ActiveCampaignAddToListsAutomationAction = AutomationActionBuilder<'activeCampaignAddToLists', { listIds: string[] }>
|
|
2654
2678
|
export type SwitchToRelatedContactAutomationAction = AutomationActionBuilder<'switchToRelatedContact', { type: string, otherTypes?: string[] }>
|
|
2655
2679
|
export type ElationSyncAutomationAction = AutomationActionBuilder<'elationSync', { }>
|
|
2656
2680
|
export type CanvasSyncAutomationAction = AutomationActionBuilder<'canvasSync', {}>
|
|
@@ -2714,6 +2738,7 @@ export type AutomationActionForType = {
|
|
|
2714
2738
|
'completeTickets': CompleteTicketsAutomationAction,
|
|
2715
2739
|
'changeContactType': ChangeContactTypeAutomationAction,
|
|
2716
2740
|
activeCampaignSync: ActiveCampaignSyncAutomationAction,
|
|
2741
|
+
activeCampaignAddToLists: ActiveCampaignAddToListsAutomationAction,
|
|
2717
2742
|
switchToRelatedContact: SwitchToRelatedContactAutomationAction,
|
|
2718
2743
|
'elationSync': ElationSyncAutomationAction,
|
|
2719
2744
|
canvasSync: CanvasSyncAutomationAction,
|
|
@@ -3145,6 +3170,7 @@ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, Phone
|
|
|
3145
3170
|
pinnedAt?: Date | '',
|
|
3146
3171
|
readBy?: { [index: string] : Date | '' };
|
|
3147
3172
|
hiddenBy?: { [index: string] : Date | '' };
|
|
3173
|
+
hiddenForAll?: boolean,
|
|
3148
3174
|
ticketIds?: string[],
|
|
3149
3175
|
tags?: string[],
|
|
3150
3176
|
inputs?: string[],
|
|
@@ -3197,6 +3223,7 @@ export type AnalyticsQueryInfoForType = {
|
|
|
3197
3223
|
Total: AnalyticsQueryInfoBuilder<'Total', undefined>,
|
|
3198
3224
|
Duration: AnalyticsQueryInfoBuilder<'Duration', undefined>,
|
|
3199
3225
|
},
|
|
3226
|
+
"Journey Logs": { Total: AnalyticsQueryInfoBuilder<'Total', undefined> },
|
|
3200
3227
|
}
|
|
3201
3228
|
export type AnalyticsQueryInfoType = keyof AnalyticsQueryInfoForType
|
|
3202
3229
|
export type AnalyticsQueryInfo = AnalyticsQueryInfoForType[AnalyticsQueryInfoType]
|
|
@@ -3252,6 +3279,9 @@ export type AnalyticsQueryFilterForType = {
|
|
|
3252
3279
|
Files: {
|
|
3253
3280
|
names?: string[],
|
|
3254
3281
|
},
|
|
3282
|
+
"Journey Logs": {
|
|
3283
|
+
automationStepIds?: string[],
|
|
3284
|
+
},
|
|
3255
3285
|
}
|
|
3256
3286
|
|
|
3257
3287
|
export type EnduserGrouping = {
|
|
@@ -3290,6 +3320,7 @@ export type AnalyticsQueryGroupingForType = {
|
|
|
3290
3320
|
"Emails": {} & EnduserGrouping & { Enduser: string },
|
|
3291
3321
|
"Medications": {} & EnduserGrouping & { Enduser: string },
|
|
3292
3322
|
"Files": {} & EnduserGrouping & { Enduser: string },
|
|
3323
|
+
"Journey Logs": {} & EnduserGrouping & { Enduser: string },
|
|
3293
3324
|
"Meetings": { Host?: boolean },
|
|
3294
3325
|
}
|
|
3295
3326
|
|
|
@@ -3307,6 +3338,7 @@ export type AnalyticsQueryRangeKeyForType = {
|
|
|
3307
3338
|
"Medications": DefaultRangeKey,
|
|
3308
3339
|
"Files": DefaultRangeKey,
|
|
3309
3340
|
"Meetings": DefaultRangeKey,
|
|
3341
|
+
"Journey Logs": DefaultRangeKey,
|
|
3310
3342
|
}
|
|
3311
3343
|
export type RangeKey = DefaultRangeKey | 'Submitted At' | "Closed At"
|
|
3312
3344
|
|
|
@@ -3408,6 +3440,13 @@ export type AnalyticsQueryForType = {
|
|
|
3408
3440
|
AnalyticsQueryGroupingForType['Meetings'],
|
|
3409
3441
|
AnalyticsQueryRangeKeyForType['Meetings']
|
|
3410
3442
|
>,
|
|
3443
|
+
"Journey Logs": AnalyticsQueryBuilder<
|
|
3444
|
+
"Journey Logs",
|
|
3445
|
+
AnalyticsQueryInfoForType['Journey Logs'][keyof AnalyticsQueryInfoForType['Journey Logs']],
|
|
3446
|
+
AnalyticsQueryFilterForType['Journey Logs'],
|
|
3447
|
+
AnalyticsQueryGroupingForType['Journey Logs'],
|
|
3448
|
+
AnalyticsQueryRangeKeyForType['Journey Logs']
|
|
3449
|
+
>,
|
|
3411
3450
|
}
|
|
3412
3451
|
export type AnalyticsQueryType = keyof AnalyticsQueryForType
|
|
3413
3452
|
export type AnalyticsQuery = AnalyticsQueryForType[AnalyticsQueryType]
|
|
@@ -3425,6 +3464,7 @@ export const resource_to_modelName: { [K in AnalyticsQueryType] : ModelName } =
|
|
|
3425
3464
|
Medications: "enduser_medications",
|
|
3426
3465
|
Files: "files",
|
|
3427
3466
|
Meetings: "meetings",
|
|
3467
|
+
"Journey Logs": "automated_actions",
|
|
3428
3468
|
}
|
|
3429
3469
|
|
|
3430
3470
|
export type AnalyticsQueryOptions = {
|
|
@@ -3459,6 +3499,8 @@ export interface AnalyticsFrame extends
|
|
|
3459
3499
|
truncationLength?: number,
|
|
3460
3500
|
showEllipsis?: boolean,
|
|
3461
3501
|
orderedLabels?: string[],
|
|
3502
|
+
visibleForRoles?: string[],
|
|
3503
|
+
visibleForUserIds?: string[],
|
|
3462
3504
|
}
|
|
3463
3505
|
|
|
3464
3506
|
|
|
@@ -3525,6 +3567,7 @@ export type EnduserProfileViewBlocks = {
|
|
|
3525
3567
|
"Labs": EnduserProfileViewBlockBuilder<"Labs", { title: string }>,
|
|
3526
3568
|
"Medications": EnduserProfileViewBlockBuilder<"Medications", { title: string }>,
|
|
3527
3569
|
"Diagnoses": EnduserProfileViewBlockBuilder<"Diagnoses", { title: string }>,
|
|
3570
|
+
"Timeline": EnduserProfileViewBlockBuilder<"Timeline", { title: string }>,
|
|
3528
3571
|
}
|
|
3529
3572
|
export type EnduserProfileViewBlockType = keyof EnduserProfileViewBlocks
|
|
3530
3573
|
export type EnduserProfileViewBlock = EnduserProfileViewBlocks[EnduserProfileViewBlockType]
|
|
@@ -3565,6 +3608,9 @@ export type AutomationTriggerActions = {
|
|
|
3565
3608
|
"Remove Care Team": AutomationTriggerActionBuilder<'Remove Care Team', {
|
|
3566
3609
|
tags: ListOfStringsWithQualifier,
|
|
3567
3610
|
}>,
|
|
3611
|
+
"Require Form Followups": AutomationTriggerActionBuilder<'Require Form Followups', {
|
|
3612
|
+
formIds: string[],
|
|
3613
|
+
}>,
|
|
3568
3614
|
}
|
|
3569
3615
|
export type AutomationTriggerActionType = keyof AutomationTriggerActions
|
|
3570
3616
|
export type AutomationTriggerAction = AutomationTriggerActions[AutomationTriggerActionType]
|
|
@@ -3871,6 +3917,7 @@ export interface TicketThreadComment extends TicketThreadComment_readonly, Ticke
|
|
|
3871
3917
|
transcription?: string,
|
|
3872
3918
|
},
|
|
3873
3919
|
hiddenBy?: { [index: string] : Date | '' };
|
|
3920
|
+
hiddenForAll?: boolean,
|
|
3874
3921
|
ticketIds?: string[],
|
|
3875
3922
|
tags?: string[],
|
|
3876
3923
|
}
|
|
@@ -4037,6 +4084,7 @@ export interface GroupMMSConversation_readonly extends ClientRecord {
|
|
|
4037
4084
|
tags?: string[]
|
|
4038
4085
|
suggestedReply?: string,
|
|
4039
4086
|
hiddenBy?: { [index: string] : Date | '' };
|
|
4087
|
+
hiddenForAll?: boolean,
|
|
4040
4088
|
assignedTo?: string[],
|
|
4041
4089
|
}
|
|
4042
4090
|
export interface GroupMMSConversation_updatesDisabled {}
|