@tellescope/types-models 1.171.1 → 1.172.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 +41 -14
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +41 -14
- 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 +41 -16
package/src/index.ts
CHANGED
|
@@ -385,6 +385,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
385
385
|
defaultDoseSpotPharmacies?: { id: string, name: string }[]
|
|
386
386
|
groups?: string[],
|
|
387
387
|
observationInvalidationReasons?: string[],
|
|
388
|
+
chargebeeEnvironments?: string[],
|
|
388
389
|
// _AIEnabled?: boolean,
|
|
389
390
|
}
|
|
390
391
|
export type OrganizationTheme = {
|
|
@@ -811,6 +812,8 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
811
812
|
lastDoseSpotSyncAt?: Date,
|
|
812
813
|
diagnoses?: EnduserDiagnosis[]
|
|
813
814
|
lockedFromPortal?: boolean,
|
|
815
|
+
chargebeeEnvironment?: string,
|
|
816
|
+
chargebeeId?: string,
|
|
814
817
|
// unsubscribedFromEmail?: boolean,
|
|
815
818
|
// unsubscribedFromSMS?: boolean,
|
|
816
819
|
}
|
|
@@ -1427,7 +1430,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
|
|
|
1427
1430
|
}
|
|
1428
1431
|
|
|
1429
1432
|
export type FormFieldLiteralType = 'Rich Text' | 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' /* date + time */ | 'dateString' | 'rating' | 'Time'
|
|
1430
|
-
export type FormFieldComplexType = "Conditions" | "Allergies" | "Emotii" | "Hidden Value" | "Redirect" | "Height" | "Appointment Booking" | "multiple_choice" | "file" | 'files' | "signature" | 'ranking' | 'Question Group' | 'Table Input' | "Address" | "Stripe" | "Dropdown" | "Database Select" | "Medications" | "Related Contacts" | "Insurance"
|
|
1433
|
+
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"
|
|
1431
1434
|
export type FormFieldType = FormFieldLiteralType | FormFieldComplexType
|
|
1432
1435
|
|
|
1433
1436
|
export type PreviousFormFieldType = 'root' | 'after' | 'previousEquals' | 'compoundLogic'
|
|
@@ -1538,6 +1541,8 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1538
1541
|
observationDisplay?: string,
|
|
1539
1542
|
observationUnit?: string,
|
|
1540
1543
|
autoUploadFiles?: boolean,
|
|
1544
|
+
chargebeeEnvironment?: string,
|
|
1545
|
+
chargebeePlanId?: string,
|
|
1541
1546
|
}
|
|
1542
1547
|
export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>
|
|
1543
1548
|
|
|
@@ -1887,6 +1892,7 @@ export type FormResponseAnswerHeight = FormResponseValueAnswerBuilder<'Height',
|
|
|
1887
1892
|
export type FormResponseAnswerRedirect = FormResponseValueAnswerBuilder<'Redirect', string>
|
|
1888
1893
|
export type FormResponseAnswerAllergies = FormResponseValueAnswerBuilder<'Allergies', AllergyResponse[]>
|
|
1889
1894
|
export type FormResponseAnswerConditions = FormResponseValueAnswerBuilder<'Conditions', ConditionResponse[]>
|
|
1895
|
+
export type FormResponseAnswerChargebee = FormResponseValueAnswerBuilder<'Chargebee', { url: string }>
|
|
1890
1896
|
|
|
1891
1897
|
export type FormResponseAnswerSignatureValue = {
|
|
1892
1898
|
fullName: string,
|
|
@@ -1945,6 +1951,7 @@ export type FormResponseValueAnswer = (
|
|
|
1945
1951
|
| FormResponseAnswerEmotii
|
|
1946
1952
|
| FormResponseAnswerAllergies
|
|
1947
1953
|
| FormResponseAnswerConditions
|
|
1954
|
+
| FormResponseAnswerChargebee
|
|
1948
1955
|
)
|
|
1949
1956
|
|
|
1950
1957
|
export type FormResponseValue = {
|
|
@@ -1988,6 +1995,7 @@ export type AnswerForType = {
|
|
|
1988
1995
|
'Related Contacts': FormResponseAnswerRelatedContacts['value']
|
|
1989
1996
|
'Insurance': FormResponseAnswerInsurance['value']
|
|
1990
1997
|
'Appointment Booking': FormResponseAnswerAppointmentBooking['value']
|
|
1998
|
+
'Chargebee': FormResponseAnswerChargebee['value']
|
|
1991
1999
|
'Height': FormResponseAnswerHeight['value']
|
|
1992
2000
|
'Redirect': FormResponseAnswerRedirect['value']
|
|
1993
2001
|
'Hidden Value': FormResponseAnswerHiddenValue['value']
|
|
@@ -2688,10 +2696,11 @@ export type SendWebhookAutomationAction = AutomationActionBuilder<'sendWebhook',
|
|
|
2688
2696
|
export type ShareContentAutomationAction = AutomationActionBuilder<'shareContent', {
|
|
2689
2697
|
managedContentRecordIds: string[],
|
|
2690
2698
|
}>
|
|
2691
|
-
export type AddEnduserTagsAutomationAction = AutomationActionBuilder<'addEnduserTags', { tags: string[] }>
|
|
2699
|
+
export type AddEnduserTagsAutomationAction = AutomationActionBuilder<'addEnduserTags', { tags: string[], replaceExisting?: boolean }>
|
|
2692
2700
|
export type RemoveEnduserTagsAutomationAction = AutomationActionBuilder<'removeEnduserTags', { tags: string[] }>
|
|
2693
2701
|
export type AddToJourneyAutomationAction = AutomationActionBuilder<'addToJourney', { journeyId: string }>
|
|
2694
2702
|
export type RemoveFromJourneyAutomationAction = AutomationActionBuilder<'removeFromJourney', { journeyId: string }>
|
|
2703
|
+
export type RemoveFromAllJourneysAutomationAction = AutomationActionBuilder<'removeFromAllJourneys', { }>
|
|
2695
2704
|
export type IterableSendEmailAutomationAction = AutomationActionBuilder<'iterableSendEmail', { campaignId: string }>
|
|
2696
2705
|
export type ZendeskCreateTicketAutomationAction = AutomationActionBuilder<'zendeskCreateTicket', {
|
|
2697
2706
|
templateId: string,
|
|
@@ -2729,6 +2738,12 @@ export type ActiveCampaignAddToListsAutomationAction = AutomationActionBuilder<'
|
|
|
2729
2738
|
export type SwitchToRelatedContactAutomationAction = AutomationActionBuilder<'switchToRelatedContact', { type: string, otherTypes?: string[] }>
|
|
2730
2739
|
export type ElationSyncAutomationAction = AutomationActionBuilder<'elationSync', { }>
|
|
2731
2740
|
export type CanvasSyncAutomationAction = AutomationActionBuilder<'canvasSync', {}>
|
|
2741
|
+
export type DevelopHealthMedicationEligibilityAutomationAction = AutomationActionBuilder<'developHealthMedEligibility', {
|
|
2742
|
+
drugs: DevelopHealthDrug[],
|
|
2743
|
+
diagnoses: DevelopHealthDiagnosis[],
|
|
2744
|
+
providerUserId: string,
|
|
2745
|
+
mock_result?: DevelopHealthMockResult,
|
|
2746
|
+
}>
|
|
2732
2747
|
|
|
2733
2748
|
export type IterableFieldsMapping = {
|
|
2734
2749
|
iterable: string,
|
|
@@ -2775,6 +2790,7 @@ export type AutomationActionForType = {
|
|
|
2775
2790
|
'removeEnduserTags': RemoveEnduserTagsAutomationAction,
|
|
2776
2791
|
'addToJourney': AddToJourneyAutomationAction,
|
|
2777
2792
|
'removeFromJourney': RemoveFromJourneyAutomationAction,
|
|
2793
|
+
removeFromAllJourneys: RemoveFromAllJourneysAutomationAction,
|
|
2778
2794
|
'iterableSendEmail': IterableSendEmailAutomationAction,
|
|
2779
2795
|
'iterableCustomEvent': IterableCustomEventAutomationAction,
|
|
2780
2796
|
'zendeskCreateTicket': ZendeskCreateTicketAutomationAction,
|
|
@@ -2795,6 +2811,7 @@ export type AutomationActionForType = {
|
|
|
2795
2811
|
'elationSync': ElationSyncAutomationAction,
|
|
2796
2812
|
canvasSync: CanvasSyncAutomationAction,
|
|
2797
2813
|
pushFormsToPortal: PushFormsAutomationAction,
|
|
2814
|
+
developHealthMedEligibility: DevelopHealthMedicationEligibilityAutomationAction,
|
|
2798
2815
|
}
|
|
2799
2816
|
export type AutomationActionType = keyof AutomationActionForType
|
|
2800
2817
|
export type AutomationAction = AutomationActionForType[AutomationActionType]
|
|
@@ -3656,7 +3673,7 @@ export type AutomationTriggerActions = {
|
|
|
3656
3673
|
"Add To Journey": AutomationTriggerActionBuilder<'Add To Journey', { journeyId: string, doNotRestart?: boolean }>,
|
|
3657
3674
|
"Remove From Journey": AutomationTriggerActionBuilder<'Remove From Journey', { journeyId: string }>,
|
|
3658
3675
|
"Remove From All Journeys": AutomationTriggerActionBuilder<'Remove From All Journeys', { }>,
|
|
3659
|
-
"Add Tags": AutomationTriggerActionBuilder<'Add Tags', { tags: string[] }>,
|
|
3676
|
+
"Add Tags": AutomationTriggerActionBuilder<'Add Tags', { tags: string[], replaceExisting?: boolean }>,
|
|
3660
3677
|
"Remove Tags": AutomationTriggerActionBuilder<'Remove Tags', { tags: string[] }>,
|
|
3661
3678
|
"Add Access Tags": AutomationTriggerActionBuilder<'Add Access Tags', { tags: string[] }>,
|
|
3662
3679
|
"Set Fields": AutomationTriggerActionBuilder<'Set Fields', { fields: EnduserFieldSetter[] }>,
|
|
@@ -3672,7 +3689,7 @@ export type AutomationTriggerActions = {
|
|
|
3672
3689
|
}>,
|
|
3673
3690
|
"Require Form Followups": AutomationTriggerActionBuilder<'Require Form Followups', {
|
|
3674
3691
|
formIds: string[],
|
|
3675
|
-
}>,
|
|
3692
|
+
}>,
|
|
3676
3693
|
}
|
|
3677
3694
|
export type AutomationTriggerActionType = keyof AutomationTriggerActions
|
|
3678
3695
|
export type AutomationTriggerAction = AutomationTriggerActions[AutomationTriggerActionType]
|
|
@@ -3746,6 +3763,9 @@ export type AutomationTriggerEvents = {
|
|
|
3746
3763
|
}, {}>,
|
|
3747
3764
|
'Database Entry Added': AutomationTriggerEventBuilder<"Database Entry Added", { databaseId: string }, {}>,
|
|
3748
3765
|
'Form Started': AutomationTriggerEventBuilder<"Form Started", { formIds?: string[] }, {}>,
|
|
3766
|
+
"Eligibility Result Received": AutomationTriggerActionBuilder<'Eligibility Result Received', {
|
|
3767
|
+
source: string,
|
|
3768
|
+
}>,
|
|
3749
3769
|
}
|
|
3750
3770
|
export type AutomationTriggerEventType = keyof AutomationTriggerEvents
|
|
3751
3771
|
export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType]
|
|
@@ -4812,6 +4832,7 @@ export type JourneyContext = {
|
|
|
4812
4832
|
emailId?: string,
|
|
4813
4833
|
databaseRecordId?: string,
|
|
4814
4834
|
databaseRecordCreator?: string,
|
|
4835
|
+
eligibilityResultId?: string,
|
|
4815
4836
|
}
|
|
4816
4837
|
|
|
4817
4838
|
// https://gist.github.com/aviflax/a4093965be1cd008f172/
|
|
@@ -5554,12 +5575,21 @@ export type TwilioQueue = {
|
|
|
5554
5575
|
averageWaitTime: number,
|
|
5555
5576
|
}
|
|
5556
5577
|
|
|
5578
|
+
export type DevelopHealthDrug = {
|
|
5579
|
+
name: string,
|
|
5580
|
+
dosage: string,
|
|
5581
|
+
quantity: number,
|
|
5582
|
+
}
|
|
5583
|
+
export type DevelopHealthMockResult = {
|
|
5584
|
+
status: string, // e.g. "completed",
|
|
5585
|
+
case: string, // e.g. "drugs_covered__prior_auth_required__has_copay"
|
|
5586
|
+
}
|
|
5587
|
+
export type DevelopHealthDiagnosis = {
|
|
5588
|
+
code: string, // ICD-10
|
|
5589
|
+
}
|
|
5590
|
+
|
|
5557
5591
|
export type DevelopHealthRunBenefitVerificationBaseArguments = {
|
|
5558
|
-
drugs:
|
|
5559
|
-
name: string,
|
|
5560
|
-
dosage: string,
|
|
5561
|
-
quantity: number,
|
|
5562
|
-
}[],
|
|
5592
|
+
drugs: DevelopHealthDrug[],
|
|
5563
5593
|
drug_history: {
|
|
5564
5594
|
currently_taking_drugs: {
|
|
5565
5595
|
name: string,
|
|
@@ -5568,13 +5598,8 @@ export type DevelopHealthRunBenefitVerificationBaseArguments = {
|
|
|
5568
5598
|
name: string,
|
|
5569
5599
|
}[],
|
|
5570
5600
|
},
|
|
5571
|
-
diagnoses:
|
|
5572
|
-
|
|
5573
|
-
}[],
|
|
5574
|
-
mock_result?: {
|
|
5575
|
-
status: string, // e.g. "completed",
|
|
5576
|
-
case: string, // e.g. "drugs_covered__prior_auth_required__has_copay"
|
|
5577
|
-
},
|
|
5601
|
+
diagnoses: DevelopHealthDiagnosis[],
|
|
5602
|
+
mock_result?: DevelopHealthMockResult,
|
|
5578
5603
|
use_patient_plan_fund_source_check?: boolean,
|
|
5579
5604
|
}
|
|
5580
5605
|
|