@tryvital/vital-node 3.1.232 → 3.1.235
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
@@ -105,7 +105,7 @@ class LabTests {
|
|
105
105
|
const _response = yield core.fetcher({
|
106
106
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
|
107
107
|
method: "GET",
|
108
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
108
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
109
109
|
contentType: "application/json",
|
110
110
|
queryParameters: _queryParams,
|
111
111
|
requestType: "json",
|
@@ -171,7 +171,7 @@ class LabTests {
|
|
171
171
|
const _response = yield core.fetcher({
|
172
172
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
|
173
173
|
method: "POST",
|
174
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
174
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
175
175
|
contentType: "application/json",
|
176
176
|
requestType: "json",
|
177
177
|
body: serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -235,7 +235,7 @@ class LabTests {
|
|
235
235
|
const _response = yield core.fetcher({
|
236
236
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}`),
|
237
237
|
method: "GET",
|
238
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
238
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
239
239
|
contentType: "application/json",
|
240
240
|
requestType: "json",
|
241
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -297,7 +297,7 @@ class LabTests {
|
|
297
297
|
const _response = yield core.fetcher({
|
298
298
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}`),
|
299
299
|
method: "PATCH",
|
300
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
300
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
301
301
|
contentType: "application/json",
|
302
302
|
requestType: "json",
|
303
303
|
body: serializers.UpdateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -383,7 +383,7 @@ class LabTests {
|
|
383
383
|
const _response = yield core.fetcher({
|
384
384
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/markers"),
|
385
385
|
method: "GET",
|
386
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
386
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
387
387
|
contentType: "application/json",
|
388
388
|
queryParameters: _queryParams,
|
389
389
|
requestType: "json",
|
@@ -455,7 +455,7 @@ class LabTests {
|
|
455
455
|
const _response = yield core.fetcher({
|
456
456
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/list_order_set_markers"),
|
457
457
|
method: "POST",
|
458
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
458
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
459
459
|
contentType: "application/json",
|
460
460
|
queryParameters: _queryParams,
|
461
461
|
requestType: "json",
|
@@ -527,7 +527,7 @@ class LabTests {
|
|
527
527
|
const _response = yield core.fetcher({
|
528
528
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}/markers`),
|
529
529
|
method: "GET",
|
530
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
530
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
531
531
|
contentType: "application/json",
|
532
532
|
queryParameters: _queryParams,
|
533
533
|
requestType: "json",
|
@@ -592,7 +592,7 @@ class LabTests {
|
|
592
592
|
const _response = yield core.fetcher({
|
593
593
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labId)}/markers/${encodeURIComponent(providerId)}`),
|
594
594
|
method: "GET",
|
595
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
595
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
596
596
|
contentType: "application/json",
|
597
597
|
requestType: "json",
|
598
598
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -652,7 +652,7 @@ class LabTests {
|
|
652
652
|
const _response = yield core.fetcher({
|
653
653
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/labs"),
|
654
654
|
method: "GET",
|
655
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
655
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
656
656
|
contentType: "application/json",
|
657
657
|
requestType: "json",
|
658
658
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -750,7 +750,7 @@ class LabTests {
|
|
750
750
|
const _response = yield core.fetcher({
|
751
751
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_test"),
|
752
752
|
method: "GET",
|
753
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
753
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
754
754
|
contentType: "application/json",
|
755
755
|
queryParameters: _queryParams,
|
756
756
|
requestType: "json",
|
@@ -797,6 +797,58 @@ class LabTests {
|
|
797
797
|
}
|
798
798
|
});
|
799
799
|
}
|
800
|
+
/**
|
801
|
+
* GET collection instructions for a lab test
|
802
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
803
|
+
*/
|
804
|
+
getLabTestCollectionInstructionPdf(labTestId, requestOptions) {
|
805
|
+
var _a;
|
806
|
+
return __awaiter(this, void 0, void 0, function* () {
|
807
|
+
const _response = yield core.fetcher({
|
808
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_test/${encodeURIComponent(labTestId)}/collection_instruction_pdf`),
|
809
|
+
method: "GET",
|
810
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
811
|
+
contentType: "application/json",
|
812
|
+
requestType: "json",
|
813
|
+
responseType: "streaming",
|
814
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
815
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
816
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
817
|
+
});
|
818
|
+
if (_response.ok) {
|
819
|
+
return _response.body;
|
820
|
+
}
|
821
|
+
if (_response.error.reason === "status-code") {
|
822
|
+
switch (_response.error.statusCode) {
|
823
|
+
case 422:
|
824
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
825
|
+
unrecognizedObjectKeys: "passthrough",
|
826
|
+
allowUnrecognizedUnionMembers: true,
|
827
|
+
allowUnrecognizedEnumValues: true,
|
828
|
+
breadcrumbsPrefix: ["response"],
|
829
|
+
}));
|
830
|
+
default:
|
831
|
+
throw new errors.VitalError({
|
832
|
+
statusCode: _response.error.statusCode,
|
833
|
+
body: _response.error.body,
|
834
|
+
});
|
835
|
+
}
|
836
|
+
}
|
837
|
+
switch (_response.error.reason) {
|
838
|
+
case "non-json":
|
839
|
+
throw new errors.VitalError({
|
840
|
+
statusCode: _response.error.statusCode,
|
841
|
+
body: _response.error.rawBody,
|
842
|
+
});
|
843
|
+
case "timeout":
|
844
|
+
throw new errors.VitalTimeoutError();
|
845
|
+
case "unknown":
|
846
|
+
throw new errors.VitalError({
|
847
|
+
message: _response.error.errorMessage,
|
848
|
+
});
|
849
|
+
}
|
850
|
+
});
|
851
|
+
}
|
800
852
|
/**
|
801
853
|
* Return the available time slots to book an appointment with a phlebotomist
|
802
854
|
* for the given address and order.
|
@@ -827,7 +879,7 @@ class LabTests {
|
|
827
879
|
const _response = yield core.fetcher({
|
828
880
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/availability"),
|
829
881
|
method: "POST",
|
830
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
882
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
831
883
|
contentType: "application/json",
|
832
884
|
queryParameters: _queryParams,
|
833
885
|
requestType: "json",
|
@@ -895,7 +947,7 @@ class LabTests {
|
|
895
947
|
const _response = yield core.fetcher({
|
896
948
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/book`),
|
897
949
|
method: "POST",
|
898
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
950
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
899
951
|
contentType: "application/json",
|
900
952
|
requestType: "json",
|
901
953
|
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -968,7 +1020,7 @@ class LabTests {
|
|
968
1020
|
const _response = yield core.fetcher({
|
969
1021
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/request`),
|
970
1022
|
method: "POST",
|
971
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1023
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
972
1024
|
contentType: "application/json",
|
973
1025
|
requestType: "json",
|
974
1026
|
body: serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1035,7 +1087,7 @@ class LabTests {
|
|
1035
1087
|
const _response = yield core.fetcher({
|
1036
1088
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/reschedule`),
|
1037
1089
|
method: "PATCH",
|
1038
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1090
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1039
1091
|
contentType: "application/json",
|
1040
1092
|
requestType: "json",
|
1041
1093
|
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1102,7 +1154,7 @@ class LabTests {
|
|
1102
1154
|
const _response = yield core.fetcher({
|
1103
1155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/cancel`),
|
1104
1156
|
method: "PATCH",
|
1105
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1106
1158
|
contentType: "application/json",
|
1107
1159
|
requestType: "json",
|
1108
1160
|
body: serializers.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1163,7 +1215,7 @@ class LabTests {
|
|
1163
1215
|
const _response = yield core.fetcher({
|
1164
1216
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/cancellation-reasons"),
|
1165
1217
|
method: "GET",
|
1166
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1218
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1167
1219
|
contentType: "application/json",
|
1168
1220
|
requestType: "json",
|
1169
1221
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1216,7 +1268,7 @@ class LabTests {
|
|
1216
1268
|
const _response = yield core.fetcher({
|
1217
1269
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment`),
|
1218
1270
|
method: "GET",
|
1219
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1271
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1220
1272
|
contentType: "application/json",
|
1221
1273
|
requestType: "json",
|
1222
1274
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1294,7 +1346,7 @@ class LabTests {
|
|
1294
1346
|
const _response = yield core.fetcher({
|
1295
1347
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/area/info"),
|
1296
1348
|
method: "GET",
|
1297
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1349
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1298
1350
|
contentType: "application/json",
|
1299
1351
|
queryParameters: _queryParams,
|
1300
1352
|
requestType: "json",
|
@@ -1366,7 +1418,7 @@ class LabTests {
|
|
1366
1418
|
const _response = yield core.fetcher({
|
1367
1419
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/info"),
|
1368
1420
|
method: "GET",
|
1369
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1421
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1370
1422
|
contentType: "application/json",
|
1371
1423
|
queryParameters: _queryParams,
|
1372
1424
|
requestType: "json",
|
@@ -1434,7 +1486,7 @@ class LabTests {
|
|
1434
1486
|
const _response = yield core.fetcher({
|
1435
1487
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/info`),
|
1436
1488
|
method: "GET",
|
1437
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1489
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1438
1490
|
contentType: "application/json",
|
1439
1491
|
queryParameters: _queryParams,
|
1440
1492
|
requestType: "json",
|
@@ -1491,7 +1543,7 @@ class LabTests {
|
|
1491
1543
|
const _response = yield core.fetcher({
|
1492
1544
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result/pdf`),
|
1493
1545
|
method: "GET",
|
1494
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1546
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1495
1547
|
contentType: "application/json",
|
1496
1548
|
requestType: "json",
|
1497
1549
|
responseType: "streaming",
|
@@ -1551,7 +1603,7 @@ class LabTests {
|
|
1551
1603
|
const _response = yield core.fetcher({
|
1552
1604
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result/metadata`),
|
1553
1605
|
method: "GET",
|
1554
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1606
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1555
1607
|
contentType: "application/json",
|
1556
1608
|
requestType: "json",
|
1557
1609
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1614,7 +1666,7 @@ class LabTests {
|
|
1614
1666
|
const _response = yield core.fetcher({
|
1615
1667
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result`),
|
1616
1668
|
method: "GET",
|
1617
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1669
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1618
1670
|
contentType: "application/json",
|
1619
1671
|
requestType: "json",
|
1620
1672
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1676,7 +1728,7 @@ class LabTests {
|
|
1676
1728
|
const _response = yield core.fetcher({
|
1677
1729
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/labels/pdf`),
|
1678
1730
|
method: "GET",
|
1679
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1731
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1680
1732
|
contentType: "application/json",
|
1681
1733
|
queryParameters: _queryParams,
|
1682
1734
|
requestType: "json",
|
@@ -1756,7 +1808,7 @@ class LabTests {
|
|
1756
1808
|
const _response = yield core.fetcher({
|
1757
1809
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/appointment/availability"),
|
1758
1810
|
method: "POST",
|
1759
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1811
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1760
1812
|
contentType: "application/json",
|
1761
1813
|
queryParameters: _queryParams,
|
1762
1814
|
requestType: "json",
|
@@ -1821,7 +1873,7 @@ class LabTests {
|
|
1821
1873
|
const _response = yield core.fetcher({
|
1822
1874
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment/book`),
|
1823
1875
|
method: "POST",
|
1824
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1876
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1825
1877
|
contentType: "application/json",
|
1826
1878
|
requestType: "json",
|
1827
1879
|
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1886,7 +1938,7 @@ class LabTests {
|
|
1886
1938
|
const _response = yield core.fetcher({
|
1887
1939
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment/reschedule`),
|
1888
1940
|
method: "PATCH",
|
1889
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1941
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1890
1942
|
contentType: "application/json",
|
1891
1943
|
requestType: "json",
|
1892
1944
|
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1951,7 +2003,7 @@ class LabTests {
|
|
1951
2003
|
const _response = yield core.fetcher({
|
1952
2004
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment/cancel`),
|
1953
2005
|
method: "PATCH",
|
1954
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2006
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1955
2007
|
contentType: "application/json",
|
1956
2008
|
requestType: "json",
|
1957
2009
|
body: serializers.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.jsonOrThrow(request, {
|
@@ -2012,7 +2064,7 @@ class LabTests {
|
|
2012
2064
|
const _response = yield core.fetcher({
|
2013
2065
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/appointment/cancellation-reasons"),
|
2014
2066
|
method: "GET",
|
2015
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2067
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2016
2068
|
contentType: "application/json",
|
2017
2069
|
requestType: "json",
|
2018
2070
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2065,7 +2117,7 @@ class LabTests {
|
|
2065
2117
|
const _response = yield core.fetcher({
|
2066
2118
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment`),
|
2067
2119
|
method: "GET",
|
2068
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2069
2121
|
contentType: "application/json",
|
2070
2122
|
requestType: "json",
|
2071
2123
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2111,6 +2163,58 @@ class LabTests {
|
|
2111
2163
|
}
|
2112
2164
|
});
|
2113
2165
|
}
|
2166
|
+
/**
|
2167
|
+
* GET collection instructions for an order
|
2168
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
2169
|
+
*/
|
2170
|
+
getOrderCollectionInstructionPdf(orderId, requestOptions) {
|
2171
|
+
var _a;
|
2172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2173
|
+
const _response = yield core.fetcher({
|
2174
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/collection_instruction_pdf`),
|
2175
|
+
method: "GET",
|
2176
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2177
|
+
contentType: "application/json",
|
2178
|
+
requestType: "json",
|
2179
|
+
responseType: "streaming",
|
2180
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2181
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2182
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2183
|
+
});
|
2184
|
+
if (_response.ok) {
|
2185
|
+
return _response.body;
|
2186
|
+
}
|
2187
|
+
if (_response.error.reason === "status-code") {
|
2188
|
+
switch (_response.error.statusCode) {
|
2189
|
+
case 422:
|
2190
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2191
|
+
unrecognizedObjectKeys: "passthrough",
|
2192
|
+
allowUnrecognizedUnionMembers: true,
|
2193
|
+
allowUnrecognizedEnumValues: true,
|
2194
|
+
breadcrumbsPrefix: ["response"],
|
2195
|
+
}));
|
2196
|
+
default:
|
2197
|
+
throw new errors.VitalError({
|
2198
|
+
statusCode: _response.error.statusCode,
|
2199
|
+
body: _response.error.body,
|
2200
|
+
});
|
2201
|
+
}
|
2202
|
+
}
|
2203
|
+
switch (_response.error.reason) {
|
2204
|
+
case "non-json":
|
2205
|
+
throw new errors.VitalError({
|
2206
|
+
statusCode: _response.error.statusCode,
|
2207
|
+
body: _response.error.rawBody,
|
2208
|
+
});
|
2209
|
+
case "timeout":
|
2210
|
+
throw new errors.VitalTimeoutError();
|
2211
|
+
case "unknown":
|
2212
|
+
throw new errors.VitalError({
|
2213
|
+
message: _response.error.errorMessage,
|
2214
|
+
});
|
2215
|
+
}
|
2216
|
+
});
|
2217
|
+
}
|
2114
2218
|
/**
|
2115
2219
|
* GET requisition pdf for an order
|
2116
2220
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -2121,7 +2225,7 @@ class LabTests {
|
|
2121
2225
|
const _response = yield core.fetcher({
|
2122
2226
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/requisition/pdf`),
|
2123
2227
|
method: "GET",
|
2124
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2228
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2125
2229
|
contentType: "application/json",
|
2126
2230
|
requestType: "json",
|
2127
2231
|
responseType: "streaming",
|
@@ -2180,7 +2284,7 @@ class LabTests {
|
|
2180
2284
|
const _response = yield core.fetcher({
|
2181
2285
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}`),
|
2182
2286
|
method: "GET",
|
2183
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2287
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2184
2288
|
contentType: "application/json",
|
2185
2289
|
requestType: "json",
|
2186
2290
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2260,7 +2364,7 @@ class LabTests {
|
|
2260
2364
|
const _response = yield core.fetcher({
|
2261
2365
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
|
2262
2366
|
method: "POST",
|
2263
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2367
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2264
2368
|
contentType: "application/json",
|
2265
2369
|
requestType: "json",
|
2266
2370
|
body: serializers.CreateOrderRequestCompatible.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -2344,7 +2448,7 @@ class LabTests {
|
|
2344
2448
|
const _response = yield core.fetcher({
|
2345
2449
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/import"),
|
2346
2450
|
method: "POST",
|
2347
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2451
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2348
2452
|
contentType: "application/json",
|
2349
2453
|
requestType: "json",
|
2350
2454
|
body: serializers.ImportOrderBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -2408,7 +2512,7 @@ class LabTests {
|
|
2408
2512
|
const _response = yield core.fetcher({
|
2409
2513
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/cancel`),
|
2410
2514
|
method: "POST",
|
2411
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2515
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2412
2516
|
contentType: "application/json",
|
2413
2517
|
requestType: "json",
|
2414
2518
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2480,7 +2584,7 @@ class LabTests {
|
|
2480
2584
|
const _response = yield core.fetcher({
|
2481
2585
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/test`),
|
2482
2586
|
method: "POST",
|
2483
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2587
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2484
2588
|
contentType: "application/json",
|
2485
2589
|
queryParameters: _queryParams,
|
2486
2590
|
requestType: "json",
|
@@ -2585,7 +2689,7 @@ class LabTests {
|
|
2585
2689
|
const _response = yield core.fetcher({
|
2586
2690
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
|
2587
2691
|
method: "GET",
|
2588
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2692
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2589
2693
|
contentType: "application/json",
|
2590
2694
|
queryParameters: _queryParams,
|
2591
2695
|
requestType: "json",
|