@tryvital/vital-node 3.1.232 → 3.1.236
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/api/resources/activity/client/Client.js +2 -2
- package/api/resources/aggregate/client/Client.js +2 -2
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/electrocardiogram/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +3 -3
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +10 -0
- package/api/resources/labTests/client/Client.js +141 -37
- package/api/resources/link/client/Client.js +19 -19
- package/api/resources/link/client/requests/LinkTokenExchange.d.ts +23 -0
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/order/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/sleepCycle/client/Client.js +1 -1
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +16 -16
- package/api/resources/vitals/client/Client.js +75 -75
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ActivityColumnExpr.d.ts +1 -0
- package/api/types/ActivityColumnExprActivity.d.ts +3 -0
- package/api/types/AggregateExpr.d.ts +1 -0
- package/api/types/AggregateExprFunc.d.ts +3 -0
- package/api/types/AllowedRadius.d.ts +3 -0
- package/api/types/AppointmentEventStatus.d.ts +3 -0
- package/api/types/AppointmentProvider.d.ts +3 -0
- package/api/types/AppointmentPscLabs.d.ts +3 -0
- package/api/types/AppointmentServiceType.d.ts +3 -0
- package/api/types/AppointmentStatus.d.ts +3 -0
- package/api/types/AppointmentType.d.ts +3 -0
- package/api/types/AttemptStatus.d.ts +3 -0
- package/api/types/AuthType.d.ts +3 -0
- package/api/types/Availability.d.ts +3 -0
- package/api/types/Billing.d.ts +3 -0
- package/api/types/BiomarkerResult.d.ts +2 -0
- package/api/types/BodyColumnExpr.d.ts +1 -0
- package/api/types/BodyColumnExprBody.d.ts +3 -0
- package/api/types/BulkOp.d.ts +2 -0
- package/api/types/BulkOpStatus.d.ts +3 -0
- package/api/types/BulkOpType.d.ts +3 -0
- package/api/types/CervicalMucusEntry.d.ts +1 -0
- package/api/types/CervicalMucusEntryQuality.d.ts +3 -0
- package/api/types/ClientFacingConnectionErrorDetails.d.ts +1 -0
- package/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +3 -0
- package/api/types/ClientFacingElectrocardiogram.d.ts +1 -0
- package/api/types/ClientFacingElectrocardiogramSourceType.d.ts +3 -0
- package/api/types/ClientFacingHeartRateAlertSample.d.ts +1 -0
- package/api/types/ClientFacingHeartRateAlertSampleType.d.ts +3 -0
- package/api/types/ClientFacingInsulinInjectionSample.d.ts +1 -1
- package/api/types/ClientFacingInsulinInjectionSampleType.d.ts +1 -1
- package/api/types/ClientFacingLabs.d.ts +3 -0
- package/api/types/ClientFacingMenstrualCycle.d.ts +1 -0
- package/api/types/ClientFacingMenstrualCycleSourceType.d.ts +3 -0
- package/api/types/ClientFacingResource.d.ts +3 -0
- package/api/types/ClientFacingSleepCycle.d.ts +1 -0
- package/api/types/ClientFacingSleepCycleSourceType.d.ts +3 -0
- package/api/types/ClientFacingStandHourSample.d.ts +1 -0
- package/api/types/ClientFacingStandHourSampleType.d.ts +3 -0
- package/api/types/ClinicalInformation.d.ts +9 -0
- package/api/types/ClinicalInformation.js +5 -0
- package/api/types/ConsentType.d.ts +3 -0
- package/api/types/ContraceptiveEntry.d.ts +1 -0
- package/api/types/ContraceptiveEntryType.d.ts +3 -0
- package/api/types/DelegatedFlowType.d.ts +3 -0
- package/api/types/DemoProviders.d.ts +3 -0
- package/api/types/DetectedDeviationEntry.d.ts +1 -0
- package/api/types/DetectedDeviationEntryDeviation.d.ts +3 -0
- package/api/types/EmailProviders.d.ts +3 -0
- package/api/types/Ethnicity.d.ts +3 -0
- package/api/types/EventDestinationPreferences.d.ts +1 -0
- package/api/types/EventDestinationPreferencesPreferred.d.ts +3 -0
- package/api/types/FailureType.d.ts +3 -0
- package/api/types/Gender.d.ts +3 -0
- package/api/types/GenderIdentity.d.ts +3 -0
- package/api/types/HistoricalPullStatus.d.ts +3 -0
- package/api/types/HomePregnancyTestEntry.d.ts +1 -0
- package/api/types/HomePregnancyTestEntryTestResult.d.ts +3 -0
- package/api/types/HomeProgesteroneTestEntry.d.ts +1 -0
- package/api/types/HomeProgesteroneTestEntryTestResult.d.ts +3 -0
- package/api/types/IndexColumnExpr.d.ts +1 -0
- package/api/types/IndexColumnExprIndex.d.ts +3 -0
- package/api/types/LabResultsRaw.d.ts +1 -0
- package/api/types/LabTestCollectionMethod.d.ts +1 -1
- package/api/types/LabTestGenerationMethodFilter.d.ts +3 -0
- package/api/types/LabTestSampleType.d.ts +1 -1
- package/api/types/LabTestStatus.d.ts +3 -0
- package/api/types/Labs.d.ts +3 -0
- package/api/types/ManualProviders.d.ts +3 -0
- package/api/types/MarkerType.d.ts +3 -0
- package/api/types/MenstrualFlowEntry.d.ts +1 -0
- package/api/types/MenstrualFlowEntryFlow.d.ts +3 -0
- package/api/types/Minerals.d.ts +3 -0
- package/api/types/OAuthProviders.d.ts +3 -0
- package/api/types/OrderStatus.d.ts +3 -0
- package/api/types/OrderTopLevelStatus.d.ts +3 -0
- package/api/types/OvulationTestEntry.d.ts +1 -0
- package/api/types/OvulationTestEntryTestResult.d.ts +3 -0
- package/api/types/PasswordProviders.d.ts +3 -0
- package/api/types/PayorCodeExternalProvider.d.ts +3 -0
- package/api/types/PerformingLaboratory.d.ts +10 -0
- package/api/types/PerformingLaboratory.js +5 -0
- package/api/types/Period.d.ts +1 -0
- package/api/types/PeriodUnit.d.ts +3 -0
- package/api/types/ProviderConnectionError.d.ts +3 -1
- package/api/types/ProviderConnectionErrorErrorType.d.ts +16 -0
- package/api/types/ProviderConnectionErrorErrorType.js +15 -0
- package/api/types/ProviderLinkResponse.d.ts +1 -0
- package/api/types/ProviderLinkResponseState.d.ts +3 -0
- package/api/types/ProviderMfaRequest.d.ts +1 -0
- package/api/types/ProviderMfaRequestMethod.d.ts +3 -0
- package/api/types/Providers.d.ts +3 -0
- package/api/types/QuestionType.d.ts +3 -0
- package/api/types/Race.d.ts +3 -0
- package/api/types/Region.d.ts +3 -0
- package/api/types/ResponsibleRelationship.d.ts +3 -0
- package/api/types/ResultType.d.ts +3 -0
- package/api/types/SampleData.d.ts +13 -0
- package/api/types/SampleData.js +5 -0
- package/api/types/SampleDataDateCollected.d.ts +5 -0
- package/api/types/SampleDataDateCollected.js +5 -0
- package/api/types/SampleDataDateReceived.d.ts +5 -0
- package/api/types/SampleDataDateReceived.js +5 -0
- package/api/types/SampleDataDateReported.d.ts +5 -0
- package/api/types/SampleDataDateReported.js +5 -0
- package/api/types/SexualOrientation.d.ts +3 -0
- package/api/types/SleepColumnExpr.d.ts +1 -0
- package/api/types/SleepColumnExprSleep.d.ts +3 -0
- package/api/types/SleepSummaryState.d.ts +3 -0
- package/api/types/SleepType.d.ts +3 -0
- package/api/types/SourceAuthType.d.ts +3 -0
- package/api/types/SourceType.d.ts +3 -0
- package/api/types/TimeseriesResource.d.ts +3 -0
- package/api/types/TraceElements.d.ts +3 -0
- package/api/types/UtcTimestampWithTimezoneOffset.d.ts +7 -0
- package/api/types/UtcTimestampWithTimezoneOffset.js +5 -0
- package/api/types/VitalSleepStage.d.ts +3 -0
- package/api/types/Vitamins.d.ts +3 -0
- package/api/types/WorkoutColumnExpr.d.ts +1 -0
- package/api/types/WorkoutColumnExprWorkout.d.ts +3 -0
- package/api/types/index.d.ts +8 -0
- package/api/types/index.js +8 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +2 -2
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +3 -3
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +10 -0
- package/dist/api/resources/labTests/client/Client.js +141 -37
- package/dist/api/resources/link/client/Client.js +19 -19
- package/dist/api/resources/link/client/requests/LinkTokenExchange.d.ts +23 -0
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
- package/dist/api/resources/order/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/sleepCycle/client/Client.js +1 -1
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +16 -16
- package/dist/api/resources/vitals/client/Client.js +75 -75
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ActivityColumnExpr.d.ts +1 -0
- package/dist/api/types/ActivityColumnExprActivity.d.ts +3 -0
- package/dist/api/types/AggregateExpr.d.ts +1 -0
- package/dist/api/types/AggregateExprFunc.d.ts +3 -0
- package/dist/api/types/AllowedRadius.d.ts +3 -0
- package/dist/api/types/AppointmentEventStatus.d.ts +3 -0
- package/dist/api/types/AppointmentProvider.d.ts +3 -0
- package/dist/api/types/AppointmentPscLabs.d.ts +3 -0
- package/dist/api/types/AppointmentServiceType.d.ts +3 -0
- package/dist/api/types/AppointmentStatus.d.ts +3 -0
- package/dist/api/types/AppointmentType.d.ts +3 -0
- package/dist/api/types/AttemptStatus.d.ts +3 -0
- package/dist/api/types/AuthType.d.ts +3 -0
- package/dist/api/types/Availability.d.ts +3 -0
- package/dist/api/types/Billing.d.ts +3 -0
- package/dist/api/types/BiomarkerResult.d.ts +2 -0
- package/dist/api/types/BodyColumnExpr.d.ts +1 -0
- package/dist/api/types/BodyColumnExprBody.d.ts +3 -0
- package/dist/api/types/BulkOp.d.ts +2 -0
- package/dist/api/types/BulkOpStatus.d.ts +3 -0
- package/dist/api/types/BulkOpType.d.ts +3 -0
- package/dist/api/types/CervicalMucusEntry.d.ts +1 -0
- package/dist/api/types/CervicalMucusEntryQuality.d.ts +3 -0
- package/dist/api/types/ClientFacingConnectionErrorDetails.d.ts +1 -0
- package/dist/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +3 -0
- package/dist/api/types/ClientFacingElectrocardiogram.d.ts +1 -0
- package/dist/api/types/ClientFacingElectrocardiogramSourceType.d.ts +3 -0
- package/dist/api/types/ClientFacingHeartRateAlertSample.d.ts +1 -0
- package/dist/api/types/ClientFacingHeartRateAlertSampleType.d.ts +3 -0
- package/dist/api/types/ClientFacingInsulinInjectionSample.d.ts +1 -1
- package/dist/api/types/ClientFacingInsulinInjectionSampleType.d.ts +1 -1
- package/dist/api/types/ClientFacingLabs.d.ts +3 -0
- package/dist/api/types/ClientFacingMenstrualCycle.d.ts +1 -0
- package/dist/api/types/ClientFacingMenstrualCycleSourceType.d.ts +3 -0
- package/dist/api/types/ClientFacingResource.d.ts +3 -0
- package/dist/api/types/ClientFacingSleepCycle.d.ts +1 -0
- package/dist/api/types/ClientFacingSleepCycleSourceType.d.ts +3 -0
- package/dist/api/types/ClientFacingStandHourSample.d.ts +1 -0
- package/dist/api/types/ClientFacingStandHourSampleType.d.ts +3 -0
- package/dist/api/types/ClinicalInformation.d.ts +9 -0
- package/dist/api/types/ClinicalInformation.js +5 -0
- package/dist/api/types/ConsentType.d.ts +3 -0
- package/dist/api/types/ContraceptiveEntry.d.ts +1 -0
- package/dist/api/types/ContraceptiveEntryType.d.ts +3 -0
- package/dist/api/types/DelegatedFlowType.d.ts +3 -0
- package/dist/api/types/DemoProviders.d.ts +3 -0
- package/dist/api/types/DetectedDeviationEntry.d.ts +1 -0
- package/dist/api/types/DetectedDeviationEntryDeviation.d.ts +3 -0
- package/dist/api/types/EmailProviders.d.ts +3 -0
- package/dist/api/types/Ethnicity.d.ts +3 -0
- package/dist/api/types/EventDestinationPreferences.d.ts +1 -0
- package/dist/api/types/EventDestinationPreferencesPreferred.d.ts +3 -0
- package/dist/api/types/FailureType.d.ts +3 -0
- package/dist/api/types/Gender.d.ts +3 -0
- package/dist/api/types/GenderIdentity.d.ts +3 -0
- package/dist/api/types/HistoricalPullStatus.d.ts +3 -0
- package/dist/api/types/HomePregnancyTestEntry.d.ts +1 -0
- package/dist/api/types/HomePregnancyTestEntryTestResult.d.ts +3 -0
- package/dist/api/types/HomeProgesteroneTestEntry.d.ts +1 -0
- package/dist/api/types/HomeProgesteroneTestEntryTestResult.d.ts +3 -0
- package/dist/api/types/IndexColumnExpr.d.ts +1 -0
- package/dist/api/types/IndexColumnExprIndex.d.ts +3 -0
- package/dist/api/types/LabResultsRaw.d.ts +1 -0
- package/dist/api/types/LabTestCollectionMethod.d.ts +1 -1
- package/dist/api/types/LabTestGenerationMethodFilter.d.ts +3 -0
- package/dist/api/types/LabTestSampleType.d.ts +1 -1
- package/dist/api/types/LabTestStatus.d.ts +3 -0
- package/dist/api/types/Labs.d.ts +3 -0
- package/dist/api/types/ManualProviders.d.ts +3 -0
- package/dist/api/types/MarkerType.d.ts +3 -0
- package/dist/api/types/MenstrualFlowEntry.d.ts +1 -0
- package/dist/api/types/MenstrualFlowEntryFlow.d.ts +3 -0
- package/dist/api/types/Minerals.d.ts +3 -0
- package/dist/api/types/OAuthProviders.d.ts +3 -0
- package/dist/api/types/OrderStatus.d.ts +3 -0
- package/dist/api/types/OrderTopLevelStatus.d.ts +3 -0
- package/dist/api/types/OvulationTestEntry.d.ts +1 -0
- package/dist/api/types/OvulationTestEntryTestResult.d.ts +3 -0
- package/dist/api/types/PasswordProviders.d.ts +3 -0
- package/dist/api/types/PayorCodeExternalProvider.d.ts +3 -0
- package/dist/api/types/PerformingLaboratory.d.ts +10 -0
- package/dist/api/types/PerformingLaboratory.js +5 -0
- package/dist/api/types/Period.d.ts +1 -0
- package/dist/api/types/PeriodUnit.d.ts +3 -0
- package/dist/api/types/ProviderConnectionError.d.ts +3 -1
- package/dist/api/types/ProviderConnectionErrorErrorType.d.ts +16 -0
- package/dist/api/types/ProviderConnectionErrorErrorType.js +15 -0
- package/dist/api/types/ProviderLinkResponse.d.ts +1 -0
- package/dist/api/types/ProviderLinkResponseState.d.ts +3 -0
- package/dist/api/types/ProviderMfaRequest.d.ts +1 -0
- package/dist/api/types/ProviderMfaRequestMethod.d.ts +3 -0
- package/dist/api/types/Providers.d.ts +3 -0
- package/dist/api/types/QuestionType.d.ts +3 -0
- package/dist/api/types/Race.d.ts +3 -0
- package/dist/api/types/Region.d.ts +3 -0
- package/dist/api/types/ResponsibleRelationship.d.ts +3 -0
- package/dist/api/types/ResultType.d.ts +3 -0
- package/dist/api/types/SampleData.d.ts +13 -0
- package/dist/api/types/SampleData.js +5 -0
- package/dist/api/types/SampleDataDateCollected.d.ts +5 -0
- package/dist/api/types/SampleDataDateCollected.js +5 -0
- package/dist/api/types/SampleDataDateReceived.d.ts +5 -0
- package/dist/api/types/SampleDataDateReceived.js +5 -0
- package/dist/api/types/SampleDataDateReported.d.ts +5 -0
- package/dist/api/types/SampleDataDateReported.js +5 -0
- package/dist/api/types/SexualOrientation.d.ts +3 -0
- package/dist/api/types/SleepColumnExpr.d.ts +1 -0
- package/dist/api/types/SleepColumnExprSleep.d.ts +3 -0
- package/dist/api/types/SleepSummaryState.d.ts +3 -0
- package/dist/api/types/SleepType.d.ts +3 -0
- package/dist/api/types/SourceAuthType.d.ts +3 -0
- package/dist/api/types/SourceType.d.ts +3 -0
- package/dist/api/types/TimeseriesResource.d.ts +3 -0
- package/dist/api/types/TraceElements.d.ts +3 -0
- package/dist/api/types/UtcTimestampWithTimezoneOffset.d.ts +7 -0
- package/dist/api/types/UtcTimestampWithTimezoneOffset.js +5 -0
- package/dist/api/types/VitalSleepStage.d.ts +3 -0
- package/dist/api/types/Vitamins.d.ts +3 -0
- package/dist/api/types/WorkoutColumnExpr.d.ts +1 -0
- package/dist/api/types/WorkoutColumnExprWorkout.d.ts +3 -0
- package/dist/api/types/index.d.ts +8 -0
- package/dist/api/types/index.js +8 -0
- package/dist/serialization/types/BiomarkerResult.d.ts +2 -0
- package/dist/serialization/types/BiomarkerResult.js +2 -0
- package/dist/serialization/types/ClinicalInformation.d.ts +15 -0
- package/dist/serialization/types/ClinicalInformation.js +36 -0
- package/dist/serialization/types/LabResultsRaw.d.ts +2 -0
- package/dist/serialization/types/LabResultsRaw.js +2 -0
- package/dist/serialization/types/PerformingLaboratory.d.ts +16 -0
- package/dist/serialization/types/PerformingLaboratory.js +37 -0
- package/dist/serialization/types/ProviderConnectionError.d.ts +2 -1
- package/dist/serialization/types/ProviderConnectionError.js +2 -1
- package/dist/serialization/types/ProviderConnectionErrorErrorType.d.ts +10 -0
- package/dist/serialization/types/ProviderConnectionErrorErrorType.js +39 -0
- package/dist/serialization/types/SampleData.d.ts +23 -0
- package/dist/serialization/types/SampleData.js +44 -0
- package/dist/serialization/types/SampleDataDateCollected.d.ts +11 -0
- package/dist/serialization/types/SampleDataDateCollected.js +32 -0
- package/dist/serialization/types/SampleDataDateReceived.d.ts +11 -0
- package/dist/serialization/types/SampleDataDateReceived.js +32 -0
- package/dist/serialization/types/SampleDataDateReported.d.ts +11 -0
- package/dist/serialization/types/SampleDataDateReported.js +32 -0
- package/dist/serialization/types/UtcTimestampWithTimezoneOffset.d.ts +13 -0
- package/dist/serialization/types/UtcTimestampWithTimezoneOffset.js +34 -0
- package/dist/serialization/types/index.d.ts +8 -0
- package/dist/serialization/types/index.js +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/BiomarkerResult.d.ts +2 -0
- package/serialization/types/BiomarkerResult.js +2 -0
- package/serialization/types/ClinicalInformation.d.ts +15 -0
- package/serialization/types/ClinicalInformation.js +36 -0
- package/serialization/types/LabResultsRaw.d.ts +2 -0
- package/serialization/types/LabResultsRaw.js +2 -0
- package/serialization/types/PerformingLaboratory.d.ts +16 -0
- package/serialization/types/PerformingLaboratory.js +37 -0
- package/serialization/types/ProviderConnectionError.d.ts +2 -1
- package/serialization/types/ProviderConnectionError.js +2 -1
- package/serialization/types/ProviderConnectionErrorErrorType.d.ts +10 -0
- package/serialization/types/ProviderConnectionErrorErrorType.js +39 -0
- package/serialization/types/SampleData.d.ts +23 -0
- package/serialization/types/SampleData.js +44 -0
- package/serialization/types/SampleDataDateCollected.d.ts +11 -0
- package/serialization/types/SampleDataDateCollected.js +32 -0
- package/serialization/types/SampleDataDateReceived.d.ts +11 -0
- package/serialization/types/SampleDataDateReceived.js +32 -0
- package/serialization/types/SampleDataDateReported.d.ts +11 -0
- package/serialization/types/SampleDataDateReported.js +32 -0
- package/serialization/types/UtcTimestampWithTimezoneOffset.d.ts +13 -0
- package/serialization/types/UtcTimestampWithTimezoneOffset.js +34 -0
- package/serialization/types/index.d.ts +8 -0
- package/serialization/types/index.js +8 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
@@ -78,7 +78,7 @@ class Activity {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -154,7 +154,7 @@ class Activity {
|
|
154
154
|
const _response = yield core.fetcher({
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}/raw`),
|
156
156
|
method: "GET",
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
158
158
|
contentType: "application/json",
|
159
159
|
queryParameters: _queryParams,
|
160
160
|
requestType: "json",
|
@@ -81,7 +81,7 @@ class Aggregate {
|
|
81
81
|
const _response = yield core.fetcher({
|
82
82
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/query`),
|
83
83
|
method: "POST",
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
|
85
85
|
contentType: "application/json",
|
86
86
|
requestType: "json",
|
87
87
|
body: serializers.QueryBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -144,7 +144,7 @@ class Aggregate {
|
|
144
144
|
const _response = yield core.fetcher({
|
145
145
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/continuous_query/${encodeURIComponent(queryIdOrSlug)}/result_table`),
|
146
146
|
method: "GET",
|
147
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
147
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
|
148
148
|
contentType: "application/json",
|
149
149
|
requestType: "json",
|
150
150
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -78,7 +78,7 @@ class Body {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -154,7 +154,7 @@ class Body {
|
|
154
154
|
const _response = yield core.fetcher({
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${encodeURIComponent(userId)}/raw`),
|
156
156
|
method: "GET",
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
158
158
|
contentType: "application/json",
|
159
159
|
queryParameters: _queryParams,
|
160
160
|
requestType: "json",
|
@@ -72,7 +72,7 @@ class Devices {
|
|
72
72
|
const _response = yield core.fetcher({
|
73
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${encodeURIComponent(userId)}/raw`),
|
74
74
|
method: "GET",
|
75
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
76
76
|
contentType: "application/json",
|
77
77
|
queryParameters: _queryParams,
|
78
78
|
requestType: "json",
|
@@ -78,7 +78,7 @@ class Electrocardiogram {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/electrocardiogram/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -75,7 +75,7 @@ class Insurance {
|
|
75
75
|
const _response = yield core.fetcher({
|
76
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
|
77
77
|
method: "GET",
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
79
79
|
contentType: "application/json",
|
80
80
|
queryParameters: _queryParams,
|
81
81
|
requestType: "json",
|
@@ -137,7 +137,7 @@ class Insurance {
|
|
137
137
|
const _response = yield core.fetcher({
|
138
138
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
|
139
139
|
method: "POST",
|
140
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
140
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
141
141
|
contentType: "application/json",
|
142
142
|
requestType: "json",
|
143
143
|
body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -204,7 +204,7 @@ class Insurance {
|
|
204
204
|
const _response = yield core.fetcher({
|
205
205
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
|
206
206
|
method: "GET",
|
207
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
207
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
208
208
|
contentType: "application/json",
|
209
209
|
queryParameters: _queryParams,
|
210
210
|
requestType: "json",
|
@@ -81,7 +81,7 @@ class Introspect {
|
|
81
81
|
const _response = yield core.fetcher({
|
82
82
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
|
83
83
|
method: "GET",
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
85
85
|
contentType: "application/json",
|
86
86
|
queryParameters: _queryParams,
|
87
87
|
requestType: "json",
|
@@ -160,7 +160,7 @@ class Introspect {
|
|
160
160
|
const _response = yield core.fetcher({
|
161
161
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
|
162
162
|
method: "GET",
|
163
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
163
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
164
164
|
contentType: "application/json",
|
165
165
|
queryParameters: _queryParams,
|
166
166
|
requestType: "json",
|
@@ -141,6 +141,11 @@ export declare class LabTests {
|
|
141
141
|
* await client.labTests.getPaginated()
|
142
142
|
*/
|
143
143
|
getPaginated(request?: Vital.LabTestsGetPaginatedRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.LabTestResourcesResponse>;
|
144
|
+
/**
|
145
|
+
* GET collection instructions for a lab test
|
146
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
147
|
+
*/
|
148
|
+
getLabTestCollectionInstructionPdf(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
|
144
149
|
/**
|
145
150
|
* Return the available time slots to book an appointment with a phlebotomist
|
146
151
|
* for the given address and order.
|
@@ -395,6 +400,11 @@ export declare class LabTests {
|
|
395
400
|
* await client.labTests.getPscAppointment("order_id")
|
396
401
|
*/
|
397
402
|
getPscAppointment(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
403
|
+
/**
|
404
|
+
* GET collection instructions for an order
|
405
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
406
|
+
*/
|
407
|
+
getOrderCollectionInstructionPdf(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
|
398
408
|
/**
|
399
409
|
* GET requisition pdf for an order
|
400
410
|
* @throws {@link Vital.UnprocessableEntityError}
|