@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/lib/cjs/index.d.ts
CHANGED
|
@@ -182,6 +182,7 @@ export type OrganizationSettings = {
|
|
|
182
182
|
loopQueueCallSound?: boolean;
|
|
183
183
|
showOrdersInSidebar?: boolean;
|
|
184
184
|
showDiagnoses?: boolean;
|
|
185
|
+
requireObservationInvalidationReason?: boolean;
|
|
185
186
|
};
|
|
186
187
|
tickets?: {
|
|
187
188
|
defaultJourneyDueDateOffsetInMS?: number | '';
|
|
@@ -302,6 +303,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
302
303
|
hasConnectedZendesk?: boolean;
|
|
303
304
|
hasConnectedZus?: boolean;
|
|
304
305
|
hasConnectedCanvas?: boolean;
|
|
306
|
+
canvasURL?: string;
|
|
305
307
|
hasConnectedCandid?: boolean;
|
|
306
308
|
hasConnectedGoGoMeds?: boolean;
|
|
307
309
|
hasConnectedPagerDuty?: boolean;
|
|
@@ -378,6 +380,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
378
380
|
name: string;
|
|
379
381
|
}[];
|
|
380
382
|
groups?: string[];
|
|
383
|
+
observationInvalidationReasons?: string[];
|
|
381
384
|
}
|
|
382
385
|
export type OrganizationTheme = {
|
|
383
386
|
name: string;
|
|
@@ -741,6 +744,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
741
744
|
stripeKey?: string;
|
|
742
745
|
lastDoseSpotSyncAt?: Date;
|
|
743
746
|
diagnoses?: EnduserDiagnosis[];
|
|
747
|
+
lockedFromPortal?: boolean;
|
|
744
748
|
}
|
|
745
749
|
export interface EnduserCustomType_readonly extends ClientRecord {
|
|
746
750
|
}
|
|
@@ -1468,6 +1472,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1468
1472
|
saveIntakeOnPartial?: boolean;
|
|
1469
1473
|
stripeKey?: string;
|
|
1470
1474
|
dataSource?: string;
|
|
1475
|
+
canvasDocumentCoding?: Pick<CanvasCoding, 'system' | 'code'>;
|
|
1471
1476
|
};
|
|
1472
1477
|
export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>;
|
|
1473
1478
|
export type FormFieldCalloutConditionComparison = 'Equals';
|
|
@@ -1582,6 +1587,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
|
|
|
1582
1587
|
hideAfterUnsubmittedInMS?: number;
|
|
1583
1588
|
hideFromCompose?: boolean;
|
|
1584
1589
|
enduserFieldsToAppendForSync?: string[];
|
|
1590
|
+
allowPortalSubmission?: boolean;
|
|
1585
1591
|
}
|
|
1586
1592
|
export interface FormGroup_readonly extends ClientRecord {
|
|
1587
1593
|
}
|
|
@@ -1759,11 +1765,16 @@ export type MedicationResponse = {
|
|
|
1759
1765
|
NDCs?: string[];
|
|
1760
1766
|
reasonForTaking?: string;
|
|
1761
1767
|
};
|
|
1762
|
-
export type
|
|
1768
|
+
export type BaseResponse = {
|
|
1763
1769
|
display: string;
|
|
1764
1770
|
code: string;
|
|
1765
1771
|
system?: string;
|
|
1766
1772
|
};
|
|
1773
|
+
export type AllergyResponse = BaseResponse & {
|
|
1774
|
+
severity?: string;
|
|
1775
|
+
note?: string;
|
|
1776
|
+
};
|
|
1777
|
+
export type ConditionResponse = BaseResponse;
|
|
1767
1778
|
export type FormResponseAnswerTable = FormResponseValueAnswerBuilder<'Table Input', TableInputCell[][]>;
|
|
1768
1779
|
export type FormResponseAnswerGroup = FormResponseValueAnswerBuilder<'Question Group', FormSubField[]>;
|
|
1769
1780
|
export type FormResponseAnswerDescription = FormResponseValueAnswerBuilder<'description', ''>;
|
|
@@ -1788,7 +1799,7 @@ export type FormResponseAnswerHeight = FormResponseValueAnswerBuilder<'Height',
|
|
|
1788
1799
|
}>;
|
|
1789
1800
|
export type FormResponseAnswerRedirect = FormResponseValueAnswerBuilder<'Redirect', string>;
|
|
1790
1801
|
export type FormResponseAnswerAllergies = FormResponseValueAnswerBuilder<'Allergies', AllergyResponse[]>;
|
|
1791
|
-
export type FormResponseAnswerConditions = FormResponseValueAnswerBuilder<'Conditions',
|
|
1802
|
+
export type FormResponseAnswerConditions = FormResponseValueAnswerBuilder<'Conditions', ConditionResponse[]>;
|
|
1792
1803
|
export type FormResponseAnswerSignatureValue = {
|
|
1793
1804
|
fullName: string;
|
|
1794
1805
|
signed: boolean;
|
|
@@ -1823,7 +1834,7 @@ export type FormResponseValue = {
|
|
|
1823
1834
|
isCalledOut?: boolean;
|
|
1824
1835
|
disabled?: boolean;
|
|
1825
1836
|
isHighlightedOnTimeline?: boolean;
|
|
1826
|
-
computedValueKey?: 'Height' | 'Weight' | 'Date of Birth' | "Gender";
|
|
1837
|
+
computedValueKey?: 'Height' | 'Weight' | 'Date of Birth' | "Gender" | "State";
|
|
1827
1838
|
intakeField?: string;
|
|
1828
1839
|
};
|
|
1829
1840
|
export type AnswerForType = {
|
|
@@ -1862,6 +1873,11 @@ export type Addendum = {
|
|
|
1862
1873
|
userId: string;
|
|
1863
1874
|
text: string;
|
|
1864
1875
|
};
|
|
1876
|
+
export type FormResponseFollowup = {
|
|
1877
|
+
formId: string;
|
|
1878
|
+
formResponseId?: string;
|
|
1879
|
+
completedAt?: Date;
|
|
1880
|
+
};
|
|
1865
1881
|
export interface FormResponse_readonly extends ClientRecord {
|
|
1866
1882
|
openedAt?: Date;
|
|
1867
1883
|
references?: RelatedRecord[];
|
|
@@ -1885,6 +1901,7 @@ export interface FormResponse_required {
|
|
|
1885
1901
|
dateOfBirth?: string;
|
|
1886
1902
|
gender?: TellescopeGender;
|
|
1887
1903
|
customTypeId?: string;
|
|
1904
|
+
followups?: FormResponseFollowup[];
|
|
1888
1905
|
}
|
|
1889
1906
|
export interface FormResponse_updatesDisabled {
|
|
1890
1907
|
submissionExpiresAt?: number;
|
|
@@ -2093,6 +2110,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
|
|
|
2093
2110
|
dontBlockAvailability?: boolean;
|
|
2094
2111
|
previousStartTimes?: (number | string)[];
|
|
2095
2112
|
requirePortalCancelReason?: boolean;
|
|
2113
|
+
startLinkToken?: string;
|
|
2096
2114
|
}
|
|
2097
2115
|
export type PaymentProcessor = 'Square' | 'Stripe';
|
|
2098
2116
|
export interface Product_readonly extends ClientRecord {
|
|
@@ -2610,6 +2628,9 @@ export type ChangeContactTypeAutomationAction = AutomationActionBuilder<'changeC
|
|
|
2610
2628
|
type: string;
|
|
2611
2629
|
}>;
|
|
2612
2630
|
export type ActiveCampaignSyncAutomationAction = AutomationActionBuilder<'activeCampaignSync', {}>;
|
|
2631
|
+
export type ActiveCampaignAddToListsAutomationAction = AutomationActionBuilder<'activeCampaignAddToLists', {
|
|
2632
|
+
listIds: string[];
|
|
2633
|
+
}>;
|
|
2613
2634
|
export type SwitchToRelatedContactAutomationAction = AutomationActionBuilder<'switchToRelatedContact', {
|
|
2614
2635
|
type: string;
|
|
2615
2636
|
otherTypes?: string[];
|
|
@@ -2672,6 +2693,7 @@ export type AutomationActionForType = {
|
|
|
2672
2693
|
'completeTickets': CompleteTicketsAutomationAction;
|
|
2673
2694
|
'changeContactType': ChangeContactTypeAutomationAction;
|
|
2674
2695
|
activeCampaignSync: ActiveCampaignSyncAutomationAction;
|
|
2696
|
+
activeCampaignAddToLists: ActiveCampaignAddToListsAutomationAction;
|
|
2675
2697
|
switchToRelatedContact: SwitchToRelatedContactAutomationAction;
|
|
2676
2698
|
'elationSync': ElationSyncAutomationAction;
|
|
2677
2699
|
canvasSync: CanvasSyncAutomationAction;
|
|
@@ -2749,6 +2771,7 @@ export interface EnduserObservation extends EnduserObservation_readonly, Enduser
|
|
|
2749
2771
|
beforeMeal?: boolean;
|
|
2750
2772
|
dontTrigger?: boolean;
|
|
2751
2773
|
showWithPlotsByUnit?: string[];
|
|
2774
|
+
invalidationReason?: string;
|
|
2752
2775
|
}
|
|
2753
2776
|
export type BlockType = 'h1' | 'h2' | 'html' | 'image' | 'youtube' | 'pdf' | 'iframe' | 'content-link';
|
|
2754
2777
|
export type ContentBlockBuilder<BLOCK extends BlockType, INFO extends object> = {
|
|
@@ -3179,6 +3202,10 @@ export type AnalyticsQueryInfoForType = {
|
|
|
3179
3202
|
Total: AnalyticsQueryInfoBuilder<'Total', undefined>;
|
|
3180
3203
|
Duration: AnalyticsQueryInfoBuilder<'Duration', undefined>;
|
|
3181
3204
|
};
|
|
3205
|
+
"Meetings": {
|
|
3206
|
+
Total: AnalyticsQueryInfoBuilder<'Total', undefined>;
|
|
3207
|
+
Duration: AnalyticsQueryInfoBuilder<'Duration', undefined>;
|
|
3208
|
+
};
|
|
3182
3209
|
};
|
|
3183
3210
|
export type AnalyticsQueryInfoType = keyof AnalyticsQueryInfoForType;
|
|
3184
3211
|
export type AnalyticsQueryInfo = AnalyticsQueryInfoForType[AnalyticsQueryInfoType];
|
|
@@ -3227,6 +3254,7 @@ export type AnalyticsQueryFilterForType = {
|
|
|
3227
3254
|
closeReasons?: string[];
|
|
3228
3255
|
};
|
|
3229
3256
|
"Phone Calls": {};
|
|
3257
|
+
"Meetings": {};
|
|
3230
3258
|
"SMS Messages": {
|
|
3231
3259
|
direction?: string;
|
|
3232
3260
|
messages?: string[];
|
|
@@ -3292,6 +3320,9 @@ export type AnalyticsQueryGroupingForType = {
|
|
|
3292
3320
|
"Files": {} & EnduserGrouping & {
|
|
3293
3321
|
Enduser: string;
|
|
3294
3322
|
};
|
|
3323
|
+
"Meetings": {
|
|
3324
|
+
Host?: boolean;
|
|
3325
|
+
};
|
|
3295
3326
|
};
|
|
3296
3327
|
type DefaultRangeKey = 'Created At' | 'Updated At';
|
|
3297
3328
|
export type AnalyticsQueryRangeKeyForType = {
|
|
@@ -3306,6 +3337,7 @@ export type AnalyticsQueryRangeKeyForType = {
|
|
|
3306
3337
|
"Emails": DefaultRangeKey;
|
|
3307
3338
|
"Medications": DefaultRangeKey;
|
|
3308
3339
|
"Files": DefaultRangeKey;
|
|
3340
|
+
"Meetings": DefaultRangeKey;
|
|
3309
3341
|
};
|
|
3310
3342
|
export type RangeKey = DefaultRangeKey | 'Submitted At' | "Closed At";
|
|
3311
3343
|
export type AnalyticsQueryRangeInterval = 'Hourly' | 'Daily' | 'Weekly' | 'Monthly';
|
|
@@ -3332,6 +3364,7 @@ export type AnalyticsQueryForType = {
|
|
|
3332
3364
|
"SMS Messages": AnalyticsQueryBuilder<"SMS Messages", AnalyticsQueryInfoForType['SMS Messages'][keyof AnalyticsQueryInfoForType['SMS Messages']], AnalyticsQueryFilterForType['SMS Messages'], AnalyticsQueryGroupingForType['SMS Messages'], AnalyticsQueryRangeKeyForType['SMS Messages']>;
|
|
3333
3365
|
"Medications": AnalyticsQueryBuilder<"Medications", AnalyticsQueryInfoForType['Medications'][keyof AnalyticsQueryInfoForType['Medications']], AnalyticsQueryFilterForType['Medications'], AnalyticsQueryGroupingForType['Medications'], AnalyticsQueryRangeKeyForType['Medications']>;
|
|
3334
3366
|
"Files": AnalyticsQueryBuilder<"Files", AnalyticsQueryInfoForType['Files'][keyof AnalyticsQueryInfoForType['Files']], AnalyticsQueryFilterForType['Files'], AnalyticsQueryGroupingForType['Files'], AnalyticsQueryRangeKeyForType['Files']>;
|
|
3367
|
+
"Meetings": AnalyticsQueryBuilder<"Meetings", AnalyticsQueryInfoForType['Meetings'][keyof AnalyticsQueryInfoForType['Meetings']], AnalyticsQueryFilterForType['Meetings'], AnalyticsQueryGroupingForType['Meetings'], AnalyticsQueryRangeKeyForType['Meetings']>;
|
|
3335
3368
|
};
|
|
3336
3369
|
export type AnalyticsQueryType = keyof AnalyticsQueryForType;
|
|
3337
3370
|
export type AnalyticsQuery = AnalyticsQueryForType[AnalyticsQueryType];
|
|
@@ -3453,6 +3486,9 @@ export type EnduserProfileViewBlocks = {
|
|
|
3453
3486
|
"Diagnoses": EnduserProfileViewBlockBuilder<"Diagnoses", {
|
|
3454
3487
|
title: string;
|
|
3455
3488
|
}>;
|
|
3489
|
+
"Timeline": EnduserProfileViewBlockBuilder<"Timeline", {
|
|
3490
|
+
title: string;
|
|
3491
|
+
}>;
|
|
3456
3492
|
};
|
|
3457
3493
|
export type EnduserProfileViewBlockType = keyof EnduserProfileViewBlocks;
|
|
3458
3494
|
export type EnduserProfileViewBlock = EnduserProfileViewBlocks[EnduserProfileViewBlockType];
|
|
@@ -3510,6 +3546,9 @@ export type AutomationTriggerActions = {
|
|
|
3510
3546
|
"Remove Care Team": AutomationTriggerActionBuilder<'Remove Care Team', {
|
|
3511
3547
|
tags: ListOfStringsWithQualifier;
|
|
3512
3548
|
}>;
|
|
3549
|
+
"Require Form Followups": AutomationTriggerActionBuilder<'Require Form Followups', {
|
|
3550
|
+
formIds: string[];
|
|
3551
|
+
}>;
|
|
3513
3552
|
};
|
|
3514
3553
|
export type AutomationTriggerActionType = keyof AutomationTriggerActions;
|
|
3515
3554
|
export type AutomationTriggerAction = AutomationTriggerActions[AutomationTriggerActionType];
|