@tellescope/types-models 1.171.0 → 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/lib/cjs/index.d.ts
CHANGED
|
@@ -390,6 +390,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
390
390
|
}[];
|
|
391
391
|
groups?: string[];
|
|
392
392
|
observationInvalidationReasons?: string[];
|
|
393
|
+
chargebeeEnvironments?: string[];
|
|
393
394
|
}
|
|
394
395
|
export type OrganizationTheme = {
|
|
395
396
|
name: string;
|
|
@@ -755,6 +756,8 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
755
756
|
lastDoseSpotSyncAt?: Date;
|
|
756
757
|
diagnoses?: EnduserDiagnosis[];
|
|
757
758
|
lockedFromPortal?: boolean;
|
|
759
|
+
chargebeeEnvironment?: string;
|
|
760
|
+
chargebeeId?: string;
|
|
758
761
|
}
|
|
759
762
|
export interface EnduserCustomType_readonly extends ClientRecord {
|
|
760
763
|
}
|
|
@@ -1382,7 +1385,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
|
|
|
1382
1385
|
discussionRoomId?: string;
|
|
1383
1386
|
}
|
|
1384
1387
|
export type FormFieldLiteralType = 'Rich Text' | 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' | 'dateString' | 'rating' | 'Time';
|
|
1385
|
-
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";
|
|
1388
|
+
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";
|
|
1386
1389
|
export type FormFieldType = FormFieldLiteralType | FormFieldComplexType;
|
|
1387
1390
|
export type PreviousFormFieldType = 'root' | 'after' | 'previousEquals' | 'compoundLogic';
|
|
1388
1391
|
export type PreviousFormFieldBuilder<T extends PreviousFormFieldType, V> = {
|
|
@@ -1497,6 +1500,8 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1497
1500
|
observationDisplay?: string;
|
|
1498
1501
|
observationUnit?: string;
|
|
1499
1502
|
autoUploadFiles?: boolean;
|
|
1503
|
+
chargebeeEnvironment?: string;
|
|
1504
|
+
chargebeePlanId?: string;
|
|
1500
1505
|
};
|
|
1501
1506
|
export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>;
|
|
1502
1507
|
export type FormFieldCalloutConditionComparison = 'Equals';
|
|
@@ -1842,6 +1847,9 @@ export type FormResponseAnswerHeight = FormResponseValueAnswerBuilder<'Height',
|
|
|
1842
1847
|
export type FormResponseAnswerRedirect = FormResponseValueAnswerBuilder<'Redirect', string>;
|
|
1843
1848
|
export type FormResponseAnswerAllergies = FormResponseValueAnswerBuilder<'Allergies', AllergyResponse[]>;
|
|
1844
1849
|
export type FormResponseAnswerConditions = FormResponseValueAnswerBuilder<'Conditions', ConditionResponse[]>;
|
|
1850
|
+
export type FormResponseAnswerChargebee = FormResponseValueAnswerBuilder<'Chargebee', {
|
|
1851
|
+
url: string;
|
|
1852
|
+
}>;
|
|
1845
1853
|
export type FormResponseAnswerSignatureValue = {
|
|
1846
1854
|
fullName: string;
|
|
1847
1855
|
signed: boolean;
|
|
@@ -1863,7 +1871,7 @@ export type FormResponseAnswerFileValue = {
|
|
|
1863
1871
|
};
|
|
1864
1872
|
export type FormResponseAnswerFile = FormResponseValueAnswerBuilder<'file', FormResponseAnswerFileValue>;
|
|
1865
1873
|
export type FormResponseAnswerFiles = FormResponseValueAnswerBuilder<'files', FormResponseAnswerFileValue[]>;
|
|
1866
|
-
export type FormResponseValueAnswer = (FormResponseAnswerGroup | FormResponseAnswerTable | FormResponseAnswerDescription | FormResponseAnswerEmail | FormResponseAnswerNumber | FormResponseAnswerPhone | FormResponseAnswerString | FormResponseAnswerStringLong | FormResponseAnswerRichText | FormResponseAnswerSignature | FormResponseAnswerMultipleChoice | FormResponseAnswerFile | FormResponseAnswerFiles | FormResponseAnswerDate | FormResponseAnswerRating | FormResponseAnswerRanking | FormResponseAnswerDateString | FormResponseAnswerAddress | FormResponseAnswerTime | FormResponseAnswerStripe | FormResponseAnswerDropdown | FormResponseAnswerDatabaseSelect | FormResponseAnswerMedications | FormResponseAnswerRelatedContacts | FormResponseAnswerInsurance | FormResponseAnswerAppointmentBooking | FormResponseAnswerHeight | FormResponseAnswerRedirect | FormResponseAnswerHiddenValue | FormResponseAnswerEmotii | FormResponseAnswerAllergies | FormResponseAnswerConditions);
|
|
1874
|
+
export type FormResponseValueAnswer = (FormResponseAnswerGroup | FormResponseAnswerTable | FormResponseAnswerDescription | FormResponseAnswerEmail | FormResponseAnswerNumber | FormResponseAnswerPhone | FormResponseAnswerString | FormResponseAnswerStringLong | FormResponseAnswerRichText | FormResponseAnswerSignature | FormResponseAnswerMultipleChoice | FormResponseAnswerFile | FormResponseAnswerFiles | FormResponseAnswerDate | FormResponseAnswerRating | FormResponseAnswerRanking | FormResponseAnswerDateString | FormResponseAnswerAddress | FormResponseAnswerTime | FormResponseAnswerStripe | FormResponseAnswerDropdown | FormResponseAnswerDatabaseSelect | FormResponseAnswerMedications | FormResponseAnswerRelatedContacts | FormResponseAnswerInsurance | FormResponseAnswerAppointmentBooking | FormResponseAnswerHeight | FormResponseAnswerRedirect | FormResponseAnswerHiddenValue | FormResponseAnswerEmotii | FormResponseAnswerAllergies | FormResponseAnswerConditions | FormResponseAnswerChargebee);
|
|
1867
1875
|
export type FormResponseValue = {
|
|
1868
1876
|
fieldId: string;
|
|
1869
1877
|
fieldTitle: string;
|
|
@@ -1904,6 +1912,7 @@ export type AnswerForType = {
|
|
|
1904
1912
|
'Related Contacts': FormResponseAnswerRelatedContacts['value'];
|
|
1905
1913
|
'Insurance': FormResponseAnswerInsurance['value'];
|
|
1906
1914
|
'Appointment Booking': FormResponseAnswerAppointmentBooking['value'];
|
|
1915
|
+
'Chargebee': FormResponseAnswerChargebee['value'];
|
|
1907
1916
|
'Height': FormResponseAnswerHeight['value'];
|
|
1908
1917
|
'Redirect': FormResponseAnswerRedirect['value'];
|
|
1909
1918
|
'Hidden Value': FormResponseAnswerHiddenValue['value'];
|
|
@@ -2623,6 +2632,7 @@ export type ShareContentAutomationAction = AutomationActionBuilder<'shareContent
|
|
|
2623
2632
|
}>;
|
|
2624
2633
|
export type AddEnduserTagsAutomationAction = AutomationActionBuilder<'addEnduserTags', {
|
|
2625
2634
|
tags: string[];
|
|
2635
|
+
replaceExisting?: boolean;
|
|
2626
2636
|
}>;
|
|
2627
2637
|
export type RemoveEnduserTagsAutomationAction = AutomationActionBuilder<'removeEnduserTags', {
|
|
2628
2638
|
tags: string[];
|
|
@@ -2633,6 +2643,7 @@ export type AddToJourneyAutomationAction = AutomationActionBuilder<'addToJourney
|
|
|
2633
2643
|
export type RemoveFromJourneyAutomationAction = AutomationActionBuilder<'removeFromJourney', {
|
|
2634
2644
|
journeyId: string;
|
|
2635
2645
|
}>;
|
|
2646
|
+
export type RemoveFromAllJourneysAutomationAction = AutomationActionBuilder<'removeFromAllJourneys', {}>;
|
|
2636
2647
|
export type IterableSendEmailAutomationAction = AutomationActionBuilder<'iterableSendEmail', {
|
|
2637
2648
|
campaignId: string;
|
|
2638
2649
|
}>;
|
|
@@ -2694,6 +2705,12 @@ export type SwitchToRelatedContactAutomationAction = AutomationActionBuilder<'sw
|
|
|
2694
2705
|
}>;
|
|
2695
2706
|
export type ElationSyncAutomationAction = AutomationActionBuilder<'elationSync', {}>;
|
|
2696
2707
|
export type CanvasSyncAutomationAction = AutomationActionBuilder<'canvasSync', {}>;
|
|
2708
|
+
export type DevelopHealthMedicationEligibilityAutomationAction = AutomationActionBuilder<'developHealthMedEligibility', {
|
|
2709
|
+
drugs: DevelopHealthDrug[];
|
|
2710
|
+
diagnoses: DevelopHealthDiagnosis[];
|
|
2711
|
+
providerUserId: string;
|
|
2712
|
+
mock_result?: DevelopHealthMockResult;
|
|
2713
|
+
}>;
|
|
2697
2714
|
export type IterableFieldsMapping = {
|
|
2698
2715
|
iterable: string;
|
|
2699
2716
|
tellescope: string;
|
|
@@ -2736,6 +2753,7 @@ export type AutomationActionForType = {
|
|
|
2736
2753
|
'removeEnduserTags': RemoveEnduserTagsAutomationAction;
|
|
2737
2754
|
'addToJourney': AddToJourneyAutomationAction;
|
|
2738
2755
|
'removeFromJourney': RemoveFromJourneyAutomationAction;
|
|
2756
|
+
removeFromAllJourneys: RemoveFromAllJourneysAutomationAction;
|
|
2739
2757
|
'iterableSendEmail': IterableSendEmailAutomationAction;
|
|
2740
2758
|
'iterableCustomEvent': IterableCustomEventAutomationAction;
|
|
2741
2759
|
'zendeskCreateTicket': ZendeskCreateTicketAutomationAction;
|
|
@@ -2756,6 +2774,7 @@ export type AutomationActionForType = {
|
|
|
2756
2774
|
'elationSync': ElationSyncAutomationAction;
|
|
2757
2775
|
canvasSync: CanvasSyncAutomationAction;
|
|
2758
2776
|
pushFormsToPortal: PushFormsAutomationAction;
|
|
2777
|
+
developHealthMedEligibility: DevelopHealthMedicationEligibilityAutomationAction;
|
|
2759
2778
|
};
|
|
2760
2779
|
export type AutomationActionType = keyof AutomationActionForType;
|
|
2761
2780
|
export type AutomationAction = AutomationActionForType[AutomationActionType];
|
|
@@ -3609,6 +3628,7 @@ export type AutomationTriggerActions = {
|
|
|
3609
3628
|
"Remove From All Journeys": AutomationTriggerActionBuilder<'Remove From All Journeys', {}>;
|
|
3610
3629
|
"Add Tags": AutomationTriggerActionBuilder<'Add Tags', {
|
|
3611
3630
|
tags: string[];
|
|
3631
|
+
replaceExisting?: boolean;
|
|
3612
3632
|
}>;
|
|
3613
3633
|
"Remove Tags": AutomationTriggerActionBuilder<'Remove Tags', {
|
|
3614
3634
|
tags: string[];
|
|
@@ -3761,6 +3781,9 @@ export type AutomationTriggerEvents = {
|
|
|
3761
3781
|
'Form Started': AutomationTriggerEventBuilder<"Form Started", {
|
|
3762
3782
|
formIds?: string[];
|
|
3763
3783
|
}, {}>;
|
|
3784
|
+
"Eligibility Result Received": AutomationTriggerActionBuilder<'Eligibility Result Received', {
|
|
3785
|
+
source: string;
|
|
3786
|
+
}>;
|
|
3764
3787
|
};
|
|
3765
3788
|
export type AutomationTriggerEventType = keyof AutomationTriggerEvents;
|
|
3766
3789
|
export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType];
|
|
@@ -4815,6 +4838,7 @@ export type JourneyContext = {
|
|
|
4815
4838
|
emailId?: string;
|
|
4816
4839
|
databaseRecordId?: string;
|
|
4817
4840
|
databaseRecordCreator?: string;
|
|
4841
|
+
eligibilityResultId?: string;
|
|
4818
4842
|
};
|
|
4819
4843
|
export declare const TIMEZONE_MAP: {
|
|
4820
4844
|
readonly "Africa/Abidjan": "+00:00";
|
|
@@ -5438,12 +5462,20 @@ export type TwilioQueue = {
|
|
|
5438
5462
|
friendlyName: string;
|
|
5439
5463
|
averageWaitTime: number;
|
|
5440
5464
|
};
|
|
5465
|
+
export type DevelopHealthDrug = {
|
|
5466
|
+
name: string;
|
|
5467
|
+
dosage: string;
|
|
5468
|
+
quantity: number;
|
|
5469
|
+
};
|
|
5470
|
+
export type DevelopHealthMockResult = {
|
|
5471
|
+
status: string;
|
|
5472
|
+
case: string;
|
|
5473
|
+
};
|
|
5474
|
+
export type DevelopHealthDiagnosis = {
|
|
5475
|
+
code: string;
|
|
5476
|
+
};
|
|
5441
5477
|
export type DevelopHealthRunBenefitVerificationBaseArguments = {
|
|
5442
|
-
drugs:
|
|
5443
|
-
name: string;
|
|
5444
|
-
dosage: string;
|
|
5445
|
-
quantity: number;
|
|
5446
|
-
}[];
|
|
5478
|
+
drugs: DevelopHealthDrug[];
|
|
5447
5479
|
drug_history: {
|
|
5448
5480
|
currently_taking_drugs: {
|
|
5449
5481
|
name: string;
|
|
@@ -5452,13 +5484,8 @@ export type DevelopHealthRunBenefitVerificationBaseArguments = {
|
|
|
5452
5484
|
name: string;
|
|
5453
5485
|
}[];
|
|
5454
5486
|
};
|
|
5455
|
-
diagnoses:
|
|
5456
|
-
|
|
5457
|
-
}[];
|
|
5458
|
-
mock_result?: {
|
|
5459
|
-
status: string;
|
|
5460
|
-
case: string;
|
|
5461
|
-
};
|
|
5487
|
+
diagnoses: DevelopHealthDiagnosis[];
|
|
5488
|
+
mock_result?: DevelopHealthMockResult;
|
|
5462
5489
|
use_patient_plan_fund_source_check?: boolean;
|
|
5463
5490
|
};
|
|
5464
5491
|
export type ZendeskArticle = {
|