@tryvital/vital-node 3.1.13 → 3.1.15
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/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +2 -2
- package/api/resources/labTests/client/Client.js +28 -30
- package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -2
- package/api/resources/labTests/client/requests/LabTestsGetLabelsPdfRequest.d.ts +1 -1
- package/api/resources/link/client/Client.js +14 -14
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.d.ts +2 -1
- package/api/resources/providers/client/Client.js +24 -6
- package/api/resources/providers/client/index.d.ts +1 -1
- package/api/resources/providers/client/index.js +15 -0
- package/api/resources/providers/client/requests/ProvidersGetAllRequest.d.ts +10 -0
- package/api/resources/providers/client/requests/index.d.ts +1 -0
- package/api/resources/providers/client/requests/index.js +2 -0
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/team/client/Client.d.ts +2 -5
- package/api/resources/team/client/Client.js +13 -30
- package/api/resources/team/client/requests/index.d.ts +0 -1
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +1 -1
- package/api/resources/user/client/Client.js +12 -12
- package/api/resources/user/client/requests/UserCreateBody.d.ts +0 -8
- package/api/resources/user/client/requests/UserPatchBody.d.ts +0 -8
- package/api/resources/vitals/client/Client.js +50 -50
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/AppointmentEventStatus.d.ts +0 -3
- package/api/types/AppointmentProvider.d.ts +0 -3
- package/api/types/AppointmentServiceType.d.ts +0 -3
- package/api/types/AppointmentStatus.d.ts +0 -3
- package/api/types/AppointmentType.d.ts +0 -3
- package/api/types/AttemptStatus.d.ts +0 -3
- package/api/types/AuthType.d.ts +0 -3
- package/api/types/Availability.d.ts +0 -3
- package/api/types/ClientFacingActivity.d.ts +0 -12
- package/api/types/ClientFacingAppointment.d.ts +0 -2
- package/api/types/ClientFacingBloodOxygenTimeseries.d.ts +0 -3
- package/api/types/ClientFacingBloodPressureTimeseries.d.ts +0 -3
- package/api/types/ClientFacingBody.d.ts +0 -2
- package/api/types/ClientFacingBodyFatTimeseries.d.ts +0 -3
- package/api/types/ClientFacingBodyWeightTimeseries.d.ts +0 -3
- package/api/types/ClientFacingCaffeineTimeseries.d.ts +0 -3
- package/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +0 -3
- package/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +0 -3
- package/api/types/ClientFacingCholesterolTimeseries.d.ts +0 -3
- package/api/types/ClientFacingDistanceTimeseries.d.ts +0 -3
- package/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +2 -4
- package/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +0 -3
- package/api/types/ClientFacingGlucoseTimeseries.d.ts +0 -3
- package/api/types/ClientFacingHeartRate.d.ts +0 -4
- package/api/types/ClientFacingHeartRateTimeseries.d.ts +0 -3
- package/api/types/ClientFacingHrvTimeseries.d.ts +0 -3
- package/api/types/ClientFacingHypnogramTimeseries.d.ts +0 -3
- package/api/types/ClientFacingIgeTimeseries.d.ts +0 -3
- package/api/types/ClientFacingIggTimeseries.d.ts +0 -3
- package/api/types/ClientFacingLabTest.d.ts +7 -0
- package/api/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +0 -3
- package/api/types/ClientFacingOrder.d.ts +1 -9
- package/api/types/ClientFacingProviderDetailed.d.ts +0 -1
- package/api/types/ClientFacingResource.d.ts +0 -3
- package/api/types/ClientFacingRespiratoryRateTimeseries.d.ts +0 -3
- package/api/types/ClientFacingSampleGroupingKeys.d.ts +4 -0
- package/api/types/ClientFacingShipment.d.ts +0 -7
- package/api/types/ClientFacingSleep.d.ts +0 -11
- package/api/types/ClientFacingSource.d.ts +0 -1
- package/api/types/ClientFacingStepsTimeseries.d.ts +0 -3
- package/api/types/ClientFacingStream.d.ts +19 -10
- package/api/types/ClientFacingStreamAltitude.d.ts +7 -0
- package/api/types/ClientFacingStreamCadence.d.ts +7 -0
- package/api/types/ClientFacingStreamDistance.d.ts +7 -0
- package/api/types/ClientFacingStreamDistance.js +5 -0
- package/api/types/ClientFacingStreamHeartrate.d.ts +7 -0
- package/api/types/ClientFacingStreamHeartrate.js +5 -0
- package/api/types/ClientFacingStreamLat.d.ts +7 -0
- package/api/types/ClientFacingStreamLat.js +5 -0
- package/api/types/ClientFacingStreamLng.d.ts +7 -0
- package/api/types/ClientFacingStreamLng.js +5 -0
- package/api/types/ClientFacingStreamPower.d.ts +7 -0
- package/api/types/ClientFacingStreamPower.js +5 -0
- package/api/types/ClientFacingStreamResistance.d.ts +7 -0
- package/api/types/ClientFacingStreamResistance.js +5 -0
- package/api/types/ClientFacingStreamVelocitySmooth.d.ts +7 -0
- package/api/types/ClientFacingStreamVelocitySmooth.js +5 -0
- package/api/types/ClientFacingStressLevelTimeseries.d.ts +0 -3
- package/api/types/ClientFacingTestkitOrder.d.ts +0 -1
- package/api/types/ClientFacingUser.d.ts +0 -7
- package/api/types/ClientFacingVo2MaxTimeseries.d.ts +0 -3
- package/api/types/ClientFacingWaterTimeseries.d.ts +0 -3
- package/api/types/ClientFacingWorkout.d.ts +1 -18
- package/api/types/ConsentType.d.ts +0 -3
- package/api/types/DelegatedFlowType.d.ts +0 -3
- package/api/types/DemoProviders.d.ts +0 -3
- package/api/types/EmailProviders.d.ts +0 -3
- package/api/types/Fats.d.ts +0 -6
- package/api/types/Gender.d.ts +0 -3
- package/api/types/GroupedBloodOxygenResponse.d.ts +0 -1
- package/api/types/GroupedBloodPressureResponse.d.ts +0 -1
- package/api/types/GroupedBodyFatResponse.d.ts +0 -1
- package/api/types/GroupedBodyWeightResponse.d.ts +0 -1
- package/api/types/GroupedCaffeineResponse.d.ts +0 -1
- package/api/types/GroupedCaloriesActiveResponse.d.ts +0 -1
- package/api/types/GroupedCaloriesBasalResponse.d.ts +0 -1
- package/api/types/GroupedCholesterolResponse.d.ts +0 -1
- package/api/types/GroupedDistanceResponse.d.ts +0 -1
- package/api/types/GroupedElectrocardiogramVoltageResponse.d.ts +0 -1
- package/api/types/GroupedFloorsClimbedResponse.d.ts +0 -1
- package/api/types/GroupedGlucoseResponse.d.ts +0 -1
- package/api/types/GroupedHeartRateResponse.d.ts +0 -1
- package/api/types/GroupedHrvResponse.d.ts +0 -1
- package/api/types/GroupedHypnogramResponse.d.ts +0 -1
- package/api/types/GroupedIgeResponse.d.ts +0 -1
- package/api/types/GroupedIggResponse.d.ts +0 -1
- package/api/types/GroupedMindfulnessMinutesResponse.d.ts +0 -1
- package/api/types/GroupedRespiratoryRateResponse.d.ts +0 -1
- package/api/types/GroupedStepsResponse.d.ts +0 -1
- package/api/types/GroupedStressLevelResponse.d.ts +0 -1
- package/api/types/GroupedVo2MaxResponse.d.ts +0 -1
- package/api/types/GroupedWaterResponse.d.ts +0 -1
- package/api/types/HealthInsuranceCreateRequest.d.ts +0 -7
- package/api/types/HealthInsuranceCreateRequestBackImage.d.ts +1 -9
- package/api/types/HealthInsuranceCreateRequestFrontImage.d.ts +1 -9
- package/api/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +1 -9
- package/api/types/HistoricalPullStatus.d.ts +0 -3
- package/api/types/Jpeg.d.ts +1 -0
- package/api/types/LabTestStatus.d.ts +0 -3
- package/api/types/Labs.d.ts +13 -0
- package/api/types/Labs.js +15 -0
- package/api/types/Macros.d.ts +0 -6
- package/api/types/ManualProviders.d.ts +0 -3
- package/api/types/MarkerType.d.ts +0 -3
- package/api/types/Micros.d.ts +3 -6
- package/api/types/OAuthProviders.d.ts +0 -3
- package/api/types/OrderStatus.d.ts +0 -3
- package/api/types/OrderTopLevelStatus.d.ts +0 -3
- package/api/types/PasswordProviders.d.ts +0 -3
- package/api/types/PatientAddressCompatibleInput.d.ts +13 -0
- package/api/types/PatientAddressCompatibleInput.js +5 -0
- package/api/types/{PatientAddressCompatible.d.ts → PatientAddressCompatibleOutput.d.ts} +1 -1
- package/api/types/PatientAddressCompatibleOutput.js +5 -0
- package/api/types/PhysicianCreateRequestSignatureImage.d.ts +1 -9
- package/api/types/Png.d.ts +1 -0
- package/api/types/ProviderLinkResponse.d.ts +1 -1
- package/api/types/Providers.d.ts +0 -3
- package/api/types/QuestionType.d.ts +0 -3
- package/api/types/Region.d.ts +0 -3
- package/api/types/ResponsibleRelationship.d.ts +0 -3
- package/api/types/ResultType.d.ts +0 -3
- package/api/types/SourceAuthType.d.ts +0 -3
- package/api/types/SourceType.d.ts +0 -3
- package/api/types/TimeseriesResource.d.ts +0 -3
- package/api/types/UsAddress.d.ts +0 -1
- package/api/types/index.d.ts +59 -47
- package/api/types/index.js +59 -47
- package/dist/api/resources/activity/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/index.d.ts +1 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +2 -2
- package/dist/api/resources/labTests/client/Client.js +28 -30
- package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -2
- package/dist/api/resources/labTests/client/requests/LabTestsGetLabelsPdfRequest.d.ts +1 -1
- package/dist/api/resources/link/client/Client.js +14 -14
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.d.ts +2 -1
- package/dist/api/resources/providers/client/Client.js +24 -6
- package/dist/api/resources/providers/client/index.d.ts +1 -1
- package/dist/api/resources/providers/client/index.js +15 -0
- package/dist/api/resources/providers/client/requests/ProvidersGetAllRequest.d.ts +10 -0
- package/dist/api/resources/providers/client/requests/ProvidersGetAllRequest.js +5 -0
- package/dist/api/resources/providers/client/requests/index.d.ts +1 -0
- package/dist/api/resources/providers/client/requests/index.js +2 -0
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/team/client/Client.d.ts +2 -5
- package/dist/api/resources/team/client/Client.js +13 -30
- package/dist/api/resources/team/client/requests/index.d.ts +0 -1
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +1 -1
- package/dist/api/resources/user/client/Client.js +12 -12
- package/dist/api/resources/user/client/requests/UserCreateBody.d.ts +0 -8
- package/dist/api/resources/user/client/requests/UserPatchBody.d.ts +0 -8
- package/dist/api/resources/vitals/client/Client.js +50 -50
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/AppointmentEventStatus.d.ts +0 -3
- package/dist/api/types/AppointmentProvider.d.ts +0 -3
- package/dist/api/types/AppointmentServiceType.d.ts +0 -3
- package/dist/api/types/AppointmentStatus.d.ts +0 -3
- package/dist/api/types/AppointmentType.d.ts +0 -3
- package/dist/api/types/AttemptStatus.d.ts +0 -3
- package/dist/api/types/AuthType.d.ts +0 -3
- package/dist/api/types/Availability.d.ts +0 -3
- package/dist/api/types/ClientFacingActivity.d.ts +0 -12
- package/dist/api/types/ClientFacingAppointment.d.ts +0 -2
- package/dist/api/types/ClientFacingBloodOxygenTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingBloodPressureTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingBody.d.ts +0 -2
- package/dist/api/types/ClientFacingBodyFatTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingBodyWeightTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingCaffeineTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingCholesterolTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingDistanceTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +2 -4
- package/dist/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingGlucoseTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingHeartRate.d.ts +0 -4
- package/dist/api/types/ClientFacingHeartRateTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingHrvTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingHypnogramTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingIgeTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingIggTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingLabTest.d.ts +7 -0
- package/dist/api/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingOrder.d.ts +1 -9
- package/dist/api/types/ClientFacingProviderDetailed.d.ts +0 -1
- package/dist/api/types/ClientFacingResource.d.ts +0 -3
- package/dist/api/types/ClientFacingRespiratoryRateTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingSampleGroupingKeys.d.ts +4 -0
- package/dist/api/types/ClientFacingSampleGroupingKeys.js +5 -0
- package/dist/api/types/ClientFacingShipment.d.ts +0 -7
- package/dist/api/types/ClientFacingSleep.d.ts +0 -11
- package/dist/api/types/ClientFacingSource.d.ts +0 -1
- package/dist/api/types/ClientFacingStepsTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingStream.d.ts +19 -10
- package/dist/api/types/ClientFacingStreamAltitude.d.ts +7 -0
- package/dist/api/types/ClientFacingStreamAltitude.js +5 -0
- package/dist/api/types/ClientFacingStreamCadence.d.ts +7 -0
- package/dist/api/types/ClientFacingStreamCadence.js +5 -0
- package/dist/api/types/ClientFacingStreamDistance.d.ts +7 -0
- package/dist/api/types/ClientFacingStreamDistance.js +5 -0
- package/dist/api/types/ClientFacingStreamHeartrate.d.ts +7 -0
- package/dist/api/types/ClientFacingStreamHeartrate.js +5 -0
- package/dist/api/types/ClientFacingStreamLat.d.ts +7 -0
- package/dist/api/types/ClientFacingStreamLat.js +5 -0
- package/dist/api/types/ClientFacingStreamLng.d.ts +7 -0
- package/dist/api/types/ClientFacingStreamLng.js +5 -0
- package/dist/api/types/ClientFacingStreamPower.d.ts +7 -0
- package/dist/api/types/ClientFacingStreamPower.js +5 -0
- package/dist/api/types/ClientFacingStreamResistance.d.ts +7 -0
- package/dist/api/types/ClientFacingStreamResistance.js +5 -0
- package/dist/api/types/ClientFacingStreamVelocitySmooth.d.ts +7 -0
- package/dist/api/types/ClientFacingStreamVelocitySmooth.js +5 -0
- package/dist/api/types/ClientFacingStressLevelTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingTestkitOrder.d.ts +0 -1
- package/dist/api/types/ClientFacingUser.d.ts +0 -7
- package/dist/api/types/ClientFacingVo2MaxTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingWaterTimeseries.d.ts +0 -3
- package/dist/api/types/ClientFacingWorkout.d.ts +1 -18
- package/dist/api/types/ConsentType.d.ts +0 -3
- package/dist/api/types/DelegatedFlowType.d.ts +0 -3
- package/dist/api/types/DemoProviders.d.ts +0 -3
- package/dist/api/types/EmailProviders.d.ts +0 -3
- package/dist/api/types/Fats.d.ts +0 -6
- package/dist/api/types/Gender.d.ts +0 -3
- package/dist/api/types/GroupedBloodOxygenResponse.d.ts +0 -1
- package/dist/api/types/GroupedBloodPressureResponse.d.ts +0 -1
- package/dist/api/types/GroupedBodyFatResponse.d.ts +0 -1
- package/dist/api/types/GroupedBodyWeightResponse.d.ts +0 -1
- package/dist/api/types/GroupedCaffeineResponse.d.ts +0 -1
- package/dist/api/types/GroupedCaloriesActiveResponse.d.ts +0 -1
- package/dist/api/types/GroupedCaloriesBasalResponse.d.ts +0 -1
- package/dist/api/types/GroupedCholesterolResponse.d.ts +0 -1
- package/dist/api/types/GroupedDistanceResponse.d.ts +0 -1
- package/dist/api/types/GroupedElectrocardiogramVoltageResponse.d.ts +0 -1
- package/dist/api/types/GroupedFloorsClimbedResponse.d.ts +0 -1
- package/dist/api/types/GroupedGlucoseResponse.d.ts +0 -1
- package/dist/api/types/GroupedHeartRateResponse.d.ts +0 -1
- package/dist/api/types/GroupedHrvResponse.d.ts +0 -1
- package/dist/api/types/GroupedHypnogramResponse.d.ts +0 -1
- package/dist/api/types/GroupedIgeResponse.d.ts +0 -1
- package/dist/api/types/GroupedIggResponse.d.ts +0 -1
- package/dist/api/types/GroupedMindfulnessMinutesResponse.d.ts +0 -1
- package/dist/api/types/GroupedRespiratoryRateResponse.d.ts +0 -1
- package/dist/api/types/GroupedStepsResponse.d.ts +0 -1
- package/dist/api/types/GroupedStressLevelResponse.d.ts +0 -1
- package/dist/api/types/GroupedVo2MaxResponse.d.ts +0 -1
- package/dist/api/types/GroupedWaterResponse.d.ts +0 -1
- package/dist/api/types/HealthInsuranceCreateRequest.d.ts +0 -7
- package/dist/api/types/HealthInsuranceCreateRequestBackImage.d.ts +1 -9
- package/dist/api/types/HealthInsuranceCreateRequestFrontImage.d.ts +1 -9
- package/dist/api/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +1 -9
- package/dist/api/types/HistoricalPullStatus.d.ts +0 -3
- package/dist/api/types/Jpeg.d.ts +1 -0
- package/dist/api/types/LabTestStatus.d.ts +0 -3
- package/dist/api/types/Labs.d.ts +13 -0
- package/dist/api/types/Labs.js +15 -0
- package/dist/api/types/Macros.d.ts +0 -6
- package/dist/api/types/ManualProviders.d.ts +0 -3
- package/dist/api/types/MarkerType.d.ts +0 -3
- package/dist/api/types/Micros.d.ts +3 -6
- package/dist/api/types/OAuthProviders.d.ts +0 -3
- package/dist/api/types/OrderStatus.d.ts +0 -3
- package/dist/api/types/OrderTopLevelStatus.d.ts +0 -3
- package/dist/api/types/PasswordProviders.d.ts +0 -3
- package/dist/api/types/PatientAddressCompatibleInput.d.ts +13 -0
- package/dist/api/types/PatientAddressCompatibleInput.js +5 -0
- package/dist/api/types/{PatientAddressCompatible.d.ts → PatientAddressCompatibleOutput.d.ts} +1 -1
- package/dist/api/types/PatientAddressCompatibleOutput.js +5 -0
- package/dist/api/types/PhysicianCreateRequestSignatureImage.d.ts +1 -9
- package/dist/api/types/Png.d.ts +1 -0
- package/dist/api/types/ProviderLinkResponse.d.ts +1 -1
- package/dist/api/types/Providers.d.ts +0 -3
- package/dist/api/types/QuestionType.d.ts +0 -3
- package/dist/api/types/Region.d.ts +0 -3
- package/dist/api/types/ResponsibleRelationship.d.ts +0 -3
- package/dist/api/types/ResultType.d.ts +0 -3
- package/dist/api/types/SourceAuthType.d.ts +0 -3
- package/dist/api/types/SourceType.d.ts +0 -3
- package/dist/api/types/TimeseriesResource.d.ts +0 -3
- package/dist/api/types/UsAddress.d.ts +0 -1
- package/dist/api/types/index.d.ts +59 -47
- package/dist/api/types/index.js +59 -47
- package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +2 -2
- package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +2 -2
- package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
- package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +2 -2
- package/dist/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +1 -1
- package/dist/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.js +2 -2
- package/dist/serialization/types/ClientFacingOrder.d.ts +2 -2
- package/dist/serialization/types/ClientFacingOrder.js +2 -2
- package/dist/serialization/types/ClientFacingSampleGroupingKeys.d.ts +10 -0
- package/dist/serialization/types/ClientFacingSampleGroupingKeys.js +31 -0
- package/dist/serialization/types/ClientFacingStream.d.ts +18 -9
- package/dist/serialization/types/ClientFacingStream.js +18 -9
- package/dist/serialization/types/ClientFacingStreamAltitude.d.ts +10 -0
- package/dist/serialization/types/ClientFacingStreamAltitude.js +34 -0
- package/dist/serialization/types/ClientFacingStreamCadence.d.ts +10 -0
- package/dist/serialization/types/ClientFacingStreamCadence.js +34 -0
- package/dist/serialization/types/ClientFacingStreamDistance.d.ts +10 -0
- package/dist/serialization/types/ClientFacingStreamDistance.js +34 -0
- package/dist/serialization/types/ClientFacingStreamHeartrate.d.ts +10 -0
- package/dist/serialization/types/ClientFacingStreamHeartrate.js +34 -0
- package/dist/serialization/types/ClientFacingStreamLat.d.ts +10 -0
- package/dist/serialization/types/ClientFacingStreamLat.js +34 -0
- package/dist/serialization/types/ClientFacingStreamLng.d.ts +10 -0
- package/dist/serialization/types/ClientFacingStreamLng.js +34 -0
- package/dist/serialization/types/ClientFacingStreamPower.d.ts +10 -0
- package/dist/serialization/types/ClientFacingStreamPower.js +34 -0
- package/dist/serialization/types/ClientFacingStreamResistance.d.ts +10 -0
- package/dist/serialization/types/ClientFacingStreamResistance.js +34 -0
- package/dist/serialization/types/ClientFacingStreamVelocitySmooth.d.ts +10 -0
- package/dist/serialization/types/ClientFacingStreamVelocitySmooth.js +34 -0
- package/dist/serialization/types/ClientFacingWorkout.d.ts +1 -0
- package/dist/serialization/types/ClientFacingWorkout.js +1 -0
- package/dist/serialization/types/HealthInsuranceCreateRequestBackImage.d.ts +1 -7
- package/dist/serialization/types/HealthInsuranceCreateRequestBackImage.js +1 -9
- package/dist/serialization/types/HealthInsuranceCreateRequestFrontImage.d.ts +1 -7
- package/dist/serialization/types/HealthInsuranceCreateRequestFrontImage.js +1 -9
- package/dist/serialization/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +1 -7
- package/dist/serialization/types/HealthInsuranceCreateRequestPatientSignatureImage.js +1 -9
- package/dist/serialization/types/Jpeg.d.ts +1 -0
- package/dist/serialization/types/Jpeg.js +1 -0
- package/dist/serialization/types/Labs.d.ts +10 -0
- package/dist/serialization/types/Labs.js +39 -0
- package/dist/serialization/types/Micros.d.ts +3 -3
- package/dist/serialization/types/Micros.js +3 -3
- package/dist/serialization/types/PatientAddressCompatibleInput.d.ts +19 -0
- package/dist/serialization/types/PatientAddressCompatibleInput.js +40 -0
- package/dist/serialization/types/{PatientAddressCompatible.d.ts → PatientAddressCompatibleOutput.d.ts} +2 -2
- package/dist/serialization/types/{PatientAddressCompatible.js → PatientAddressCompatibleOutput.js} +2 -2
- package/dist/serialization/types/PhysicianCreateRequestSignatureImage.d.ts +1 -7
- package/dist/serialization/types/PhysicianCreateRequestSignatureImage.js +1 -9
- package/dist/serialization/types/Png.d.ts +1 -0
- package/dist/serialization/types/Png.js +1 -0
- package/dist/serialization/types/ProfileInDb.d.ts +1 -1
- package/dist/serialization/types/ProfileInDb.js +1 -1
- package/dist/serialization/types/ProviderLinkResponse.d.ts +1 -1
- package/dist/serialization/types/ProviderLinkResponse.js +1 -1
- package/dist/serialization/types/index.d.ts +59 -47
- package/dist/serialization/types/index.js +59 -47
- package/package.json +1 -1
- package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +2 -2
- package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +2 -2
- package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
- package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +2 -2
- package/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +1 -1
- package/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.js +2 -2
- package/serialization/types/ClientFacingOrder.d.ts +2 -2
- package/serialization/types/ClientFacingOrder.js +2 -2
- package/serialization/types/ClientFacingSampleGroupingKeys.d.ts +10 -0
- package/serialization/types/ClientFacingSampleGroupingKeys.js +31 -0
- package/serialization/types/ClientFacingStream.d.ts +18 -9
- package/serialization/types/ClientFacingStream.js +18 -9
- package/serialization/types/ClientFacingStreamAltitude.d.ts +10 -0
- package/serialization/types/ClientFacingStreamAltitude.js +34 -0
- package/serialization/types/ClientFacingStreamCadence.d.ts +10 -0
- package/serialization/types/ClientFacingStreamCadence.js +34 -0
- package/serialization/types/ClientFacingStreamDistance.d.ts +10 -0
- package/serialization/types/ClientFacingStreamDistance.js +34 -0
- package/serialization/types/ClientFacingStreamHeartrate.d.ts +10 -0
- package/serialization/types/ClientFacingStreamHeartrate.js +34 -0
- package/serialization/types/ClientFacingStreamLat.d.ts +10 -0
- package/serialization/types/ClientFacingStreamLat.js +34 -0
- package/serialization/types/ClientFacingStreamLng.d.ts +10 -0
- package/serialization/types/ClientFacingStreamLng.js +34 -0
- package/serialization/types/ClientFacingStreamPower.d.ts +10 -0
- package/serialization/types/ClientFacingStreamPower.js +34 -0
- package/serialization/types/ClientFacingStreamResistance.d.ts +10 -0
- package/serialization/types/ClientFacingStreamResistance.js +34 -0
- package/serialization/types/ClientFacingStreamVelocitySmooth.d.ts +10 -0
- package/serialization/types/ClientFacingStreamVelocitySmooth.js +34 -0
- package/serialization/types/ClientFacingWorkout.d.ts +1 -0
- package/serialization/types/ClientFacingWorkout.js +1 -0
- package/serialization/types/HealthInsuranceCreateRequestBackImage.d.ts +1 -7
- package/serialization/types/HealthInsuranceCreateRequestBackImage.js +1 -9
- package/serialization/types/HealthInsuranceCreateRequestFrontImage.d.ts +1 -7
- package/serialization/types/HealthInsuranceCreateRequestFrontImage.js +1 -9
- package/serialization/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +1 -7
- package/serialization/types/HealthInsuranceCreateRequestPatientSignatureImage.js +1 -9
- package/serialization/types/Jpeg.d.ts +1 -0
- package/serialization/types/Jpeg.js +1 -0
- package/serialization/types/Labs.d.ts +10 -0
- package/serialization/types/Labs.js +39 -0
- package/serialization/types/Micros.d.ts +3 -3
- package/serialization/types/Micros.js +3 -3
- package/serialization/types/PatientAddressCompatibleInput.d.ts +19 -0
- package/serialization/types/PatientAddressCompatibleInput.js +40 -0
- package/serialization/types/{PatientAddressCompatible.d.ts → PatientAddressCompatibleOutput.d.ts} +2 -2
- package/serialization/types/{PatientAddressCompatible.js → PatientAddressCompatibleOutput.js} +2 -2
- package/serialization/types/PhysicianCreateRequestSignatureImage.d.ts +1 -7
- package/serialization/types/PhysicianCreateRequestSignatureImage.js +1 -9
- package/serialization/types/Png.d.ts +1 -0
- package/serialization/types/Png.js +1 -0
- package/serialization/types/ProfileInDb.d.ts +1 -1
- package/serialization/types/ProfileInDb.js +1 -1
- package/serialization/types/ProviderLinkResponse.d.ts +1 -1
- package/serialization/types/ProviderLinkResponse.js +1 -1
- package/serialization/types/index.d.ts +59 -47
- package/serialization/types/index.js +59 -47
- package/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts +0 -12
- package/dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts +0 -12
- /package/api/resources/{team/client/requests/TeamUpdateSourcePrioritiesRequest.js → providers/client/requests/ProvidersGetAllRequest.js} +0 -0
- /package/api/types/{PatientAddressCompatible.js → ClientFacingSampleGroupingKeys.js} +0 -0
- /package/{dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.js → api/types/ClientFacingStreamAltitude.js} +0 -0
- /package/{dist/api/types/PatientAddressCompatible.js → api/types/ClientFacingStreamCadence.js} +0 -0
@@ -19,11 +19,12 @@ export declare class Providers {
|
|
19
19
|
constructor(_options: Providers.Options);
|
20
20
|
/**
|
21
21
|
* Get Provider list
|
22
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
22
23
|
*
|
23
24
|
* @example
|
24
25
|
* await vital.providers.getAll()
|
25
26
|
*/
|
26
|
-
getAll(requestOptions?: Providers.RequestOptions): Promise<Vital.ClientFacingProviderDetailed[]>;
|
27
|
+
getAll(request?: Vital.ProvidersGetAllRequest, requestOptions?: Providers.RequestOptions): Promise<Vital.ClientFacingProviderDetailed[]>;
|
27
28
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
28
29
|
"x-vital-api-key": string;
|
29
30
|
}>;
|
@@ -41,6 +41,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.Providers = void 0;
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
43
43
|
const core = __importStar(require("../../../../core"));
|
44
|
+
const Vital = __importStar(require("../../.."));
|
44
45
|
const url_join_1 = __importDefault(require("url-join"));
|
45
46
|
const serializers = __importStar(require("../../../../serialization"));
|
46
47
|
const errors = __importStar(require("../../../../errors"));
|
@@ -50,18 +51,25 @@ class Providers {
|
|
50
51
|
}
|
51
52
|
/**
|
52
53
|
* Get Provider list
|
54
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
53
55
|
*
|
54
56
|
* @example
|
55
57
|
* await vital.providers.getAll()
|
56
58
|
*/
|
57
|
-
getAll(requestOptions) {
|
59
|
+
getAll(request = {}, requestOptions) {
|
58
60
|
var _a;
|
59
61
|
return __awaiter(this, void 0, void 0, function* () {
|
62
|
+
const { sourceType } = request;
|
63
|
+
const _queryParams = {};
|
64
|
+
if (sourceType != null) {
|
65
|
+
_queryParams["source_type"] = sourceType;
|
66
|
+
}
|
60
67
|
const _response = yield core.fetcher({
|
61
68
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/providers"),
|
62
69
|
method: "GET",
|
63
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
70
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
64
71
|
contentType: "application/json",
|
72
|
+
queryParameters: _queryParams,
|
65
73
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
66
74
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
67
75
|
});
|
@@ -74,10 +82,20 @@ class Providers {
|
|
74
82
|
});
|
75
83
|
}
|
76
84
|
if (_response.error.reason === "status-code") {
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
85
|
+
switch (_response.error.statusCode) {
|
86
|
+
case 422:
|
87
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
88
|
+
unrecognizedObjectKeys: "passthrough",
|
89
|
+
allowUnrecognizedUnionMembers: true,
|
90
|
+
allowUnrecognizedEnumValues: true,
|
91
|
+
breadcrumbsPrefix: ["response"],
|
92
|
+
}));
|
93
|
+
default:
|
94
|
+
throw new errors.VitalError({
|
95
|
+
statusCode: _response.error.statusCode,
|
96
|
+
body: _response.error.body,
|
97
|
+
});
|
98
|
+
}
|
81
99
|
}
|
82
100
|
switch (_response.error.reason) {
|
83
101
|
case "non-json":
|
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export * from "./requests";
|
@@ -1,2 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./requests"), exports);
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ProvidersGetAllRequest } from "./ProvidersGetAllRequest";
|
@@ -73,7 +73,7 @@ class Sleep {
|
|
73
73
|
const _response = yield core.fetcher({
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/sleep/${userId}`),
|
75
75
|
method: "GET",
|
76
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
77
77
|
contentType: "application/json",
|
78
78
|
queryParameters: _queryParams,
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -142,7 +142,7 @@ class Sleep {
|
|
142
142
|
const _response = yield core.fetcher({
|
143
143
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/sleep/${userId}/stream`),
|
144
144
|
method: "GET",
|
145
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
145
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
146
146
|
contentType: "application/json",
|
147
147
|
queryParameters: _queryParams,
|
148
148
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -211,7 +211,7 @@ class Sleep {
|
|
211
211
|
const _response = yield core.fetcher({
|
212
212
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/sleep/${userId}/raw`),
|
213
213
|
method: "GET",
|
214
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
214
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
215
215
|
contentType: "application/json",
|
216
216
|
queryParameters: _queryParams,
|
217
217
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -269,7 +269,7 @@ class Sleep {
|
|
269
269
|
const _response = yield core.fetcher({
|
270
270
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/sleep/${sleepId}/stream`),
|
271
271
|
method: "GET",
|
272
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
272
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
273
273
|
contentType: "application/json",
|
274
274
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
275
275
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -52,14 +52,11 @@ export declare class Team {
|
|
52
52
|
getSourcePriorities(request?: Vital.TeamGetSourcePrioritiesRequest, requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>[]>;
|
53
53
|
/**
|
54
54
|
* Patch source priorities.
|
55
|
-
* @throws {@link Vital.UnprocessableEntityError}
|
56
55
|
*
|
57
56
|
* @example
|
58
|
-
* await vital.team.updateSourcePriorities(
|
59
|
-
* teamId: "team_id"
|
60
|
-
* })
|
57
|
+
* await vital.team.updateSourcePriorities()
|
61
58
|
*/
|
62
|
-
updateSourcePriorities(
|
59
|
+
updateSourcePriorities(requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>[]>;
|
63
60
|
/**
|
64
61
|
* @throws {@link Vital.UnprocessableEntityError}
|
65
62
|
*
|
@@ -63,7 +63,7 @@ class Team {
|
|
63
63
|
const _response = yield core.fetcher({
|
64
64
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/link/config"),
|
65
65
|
method: "GET",
|
66
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
66
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
67
67
|
contentType: "application/json",
|
68
68
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
69
69
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -120,7 +120,7 @@ class Team {
|
|
120
120
|
const _response = yield core.fetcher({
|
121
121
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/team/${teamId}`),
|
122
122
|
method: "GET",
|
123
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
123
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
124
124
|
contentType: "application/json",
|
125
125
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
126
126
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -182,7 +182,7 @@ class Team {
|
|
182
182
|
const _response = yield core.fetcher({
|
183
183
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/users/search"),
|
184
184
|
method: "GET",
|
185
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
185
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
186
186
|
contentType: "application/json",
|
187
187
|
queryParameters: _queryParams,
|
188
188
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -233,7 +233,7 @@ class Team {
|
|
233
233
|
const _response = yield core.fetcher({
|
234
234
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/svix/url"),
|
235
235
|
method: "GET",
|
236
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
236
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
237
237
|
contentType: "application/json",
|
238
238
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
239
239
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -285,7 +285,7 @@ class Team {
|
|
285
285
|
const _response = yield core.fetcher({
|
286
286
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/source/priorities"),
|
287
287
|
method: "GET",
|
288
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
288
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
289
289
|
contentType: "application/json",
|
290
290
|
queryParameters: _queryParams,
|
291
291
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -332,25 +332,18 @@ class Team {
|
|
332
332
|
}
|
333
333
|
/**
|
334
334
|
* Patch source priorities.
|
335
|
-
* @throws {@link Vital.UnprocessableEntityError}
|
336
335
|
*
|
337
336
|
* @example
|
338
|
-
* await vital.team.updateSourcePriorities(
|
339
|
-
* teamId: "team_id"
|
340
|
-
* })
|
337
|
+
* await vital.team.updateSourcePriorities()
|
341
338
|
*/
|
342
|
-
updateSourcePriorities(
|
339
|
+
updateSourcePriorities(requestOptions) {
|
343
340
|
var _a;
|
344
341
|
return __awaiter(this, void 0, void 0, function* () {
|
345
|
-
const { teamId } = request;
|
346
|
-
const _queryParams = {};
|
347
|
-
_queryParams["team_id"] = teamId;
|
348
342
|
const _response = yield core.fetcher({
|
349
343
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/source/priorities"),
|
350
344
|
method: "PATCH",
|
351
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
345
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
352
346
|
contentType: "application/json",
|
353
|
-
queryParameters: _queryParams,
|
354
347
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
355
348
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
356
349
|
});
|
@@ -363,20 +356,10 @@ class Team {
|
|
363
356
|
});
|
364
357
|
}
|
365
358
|
if (_response.error.reason === "status-code") {
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
allowUnrecognizedUnionMembers: true,
|
371
|
-
allowUnrecognizedEnumValues: true,
|
372
|
-
breadcrumbsPrefix: ["response"],
|
373
|
-
}));
|
374
|
-
default:
|
375
|
-
throw new errors.VitalError({
|
376
|
-
statusCode: _response.error.statusCode,
|
377
|
-
body: _response.error.body,
|
378
|
-
});
|
379
|
-
}
|
359
|
+
throw new errors.VitalError({
|
360
|
+
statusCode: _response.error.statusCode,
|
361
|
+
body: _response.error.body,
|
362
|
+
});
|
380
363
|
}
|
381
364
|
switch (_response.error.reason) {
|
382
365
|
case "non-json":
|
@@ -405,7 +388,7 @@ class Team {
|
|
405
388
|
const _response = yield core.fetcher({
|
406
389
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/team/${teamId}/physicians`),
|
407
390
|
method: "GET",
|
408
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
391
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
409
392
|
contentType: "application/json",
|
410
393
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
411
394
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -1,4 +1,3 @@
|
|
1
1
|
export { TeamGetLinkConfigRequest } from "./TeamGetLinkConfigRequest";
|
2
2
|
export { TeamGetUserByIdRequest } from "./TeamGetUserByIdRequest";
|
3
3
|
export { TeamGetSourcePrioritiesRequest } from "./TeamGetSourcePrioritiesRequest";
|
4
|
-
export { TeamUpdateSourcePrioritiesRequest } from "./TeamUpdateSourcePrioritiesRequest";
|
@@ -58,7 +58,7 @@ class Testkit {
|
|
58
58
|
const _response = yield core.fetcher({
|
59
59
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/testkit/register"),
|
60
60
|
method: "POST",
|
61
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
61
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
62
62
|
contentType: "application/json",
|
63
63
|
body: yield serializers.RegisterTestkitRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
64
64
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -113,7 +113,7 @@ class Testkit {
|
|
113
113
|
const _response = yield core.fetcher({
|
114
114
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/testkit"),
|
115
115
|
method: "POST",
|
116
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
116
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
117
117
|
contentType: "application/json",
|
118
118
|
body: yield serializers.CreateRegistrableTestkitOrderRequest.jsonOrThrow(request, {
|
119
119
|
unrecognizedObjectKeys: "strip",
|
@@ -6,7 +6,7 @@ export interface RegisterTestkitRequest {
|
|
6
6
|
userId: string;
|
7
7
|
sampleId: string;
|
8
8
|
patientDetails: Vital.PatientDetails;
|
9
|
-
patientAddress: Vital.
|
9
|
+
patientAddress: Vital.PatientAddressCompatibleInput;
|
10
10
|
physician?: Vital.PhysicianCreateRequestBase;
|
11
11
|
healthInsurance?: Vital.HealthInsuranceCreateRequest;
|
12
12
|
consents?: Vital.Consent[];
|
@@ -70,7 +70,7 @@ class User {
|
|
70
70
|
const _response = yield core.fetcher({
|
71
71
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
|
72
72
|
method: "GET",
|
73
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
73
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
74
74
|
contentType: "application/json",
|
75
75
|
queryParameters: _queryParams,
|
76
76
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -131,7 +131,7 @@ class User {
|
|
131
131
|
const _response = yield core.fetcher({
|
132
132
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
|
133
133
|
method: "POST",
|
134
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
135
135
|
contentType: "application/json",
|
136
136
|
body: yield serializers.UserCreateBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
137
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -190,7 +190,7 @@ class User {
|
|
190
190
|
const _response = yield core.fetcher({
|
191
191
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user/metrics"),
|
192
192
|
method: "GET",
|
193
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
193
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
194
194
|
contentType: "application/json",
|
195
195
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
196
196
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -236,7 +236,7 @@ class User {
|
|
236
236
|
const _response = yield core.fetcher({
|
237
237
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}/sign_in_token`),
|
238
238
|
method: "POST",
|
239
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
239
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
240
240
|
contentType: "application/json",
|
241
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
242
242
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -293,7 +293,7 @@ class User {
|
|
293
293
|
const _response = yield core.fetcher({
|
294
294
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/providers/${userId}`),
|
295
295
|
method: "GET",
|
296
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
296
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
297
297
|
contentType: "application/json",
|
298
298
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
299
299
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -350,7 +350,7 @@ class User {
|
|
350
350
|
const _response = yield core.fetcher({
|
351
351
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
|
352
352
|
method: "GET",
|
353
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
353
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
354
354
|
contentType: "application/json",
|
355
355
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
356
356
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -406,7 +406,7 @@ class User {
|
|
406
406
|
const _response = yield core.fetcher({
|
407
407
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
|
408
408
|
method: "DELETE",
|
409
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
409
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
410
410
|
contentType: "application/json",
|
411
411
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
412
412
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -462,7 +462,7 @@ class User {
|
|
462
462
|
const _response = yield core.fetcher({
|
463
463
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
|
464
464
|
method: "PATCH",
|
465
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
465
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
466
466
|
contentType: "application/json",
|
467
467
|
body: yield serializers.UserPatchBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
468
468
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -515,7 +515,7 @@ class User {
|
|
515
515
|
const _response = yield core.fetcher({
|
516
516
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/resolve/${clientUserId}`),
|
517
517
|
method: "GET",
|
518
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
518
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
519
519
|
contentType: "application/json",
|
520
520
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
521
521
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -571,7 +571,7 @@ class User {
|
|
571
571
|
const _response = yield core.fetcher({
|
572
572
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}/${yield serializers.Providers.jsonOrThrow(provider)}`),
|
573
573
|
method: "DELETE",
|
574
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
574
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
575
575
|
contentType: "application/json",
|
576
576
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
577
577
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -635,7 +635,7 @@ class User {
|
|
635
635
|
const _response = yield core.fetcher({
|
636
636
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user/undo_delete"),
|
637
637
|
method: "POST",
|
638
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
638
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
639
639
|
contentType: "application/json",
|
640
640
|
queryParameters: _queryParams,
|
641
641
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -699,7 +699,7 @@ class User {
|
|
699
699
|
const _response = yield core.fetcher({
|
700
700
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/refresh/${userId}`),
|
701
701
|
method: "POST",
|
702
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
702
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
703
703
|
contentType: "application/json",
|
704
704
|
queryParameters: _queryParams,
|
705
705
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -10,16 +10,8 @@
|
|
10
10
|
export interface UserCreateBody {
|
11
11
|
/** A unique ID representing the end user. Typically this will be a user ID from your application. Personally identifiable information, such as an email address or phone number, should not be used in the client_user_id. */
|
12
12
|
clientUserId: string;
|
13
|
-
/**
|
14
|
-
* Fallback time zone of the user, in the form of a valid IANA tzdatabase identifier (e.g., `Europe/London` or `America/Los_Angeles`).
|
15
|
-
* Used when pulling data from sources that are completely time zone agnostic (e.g., all time is relative to UTC clock, without any time zone attributions on data points).
|
16
|
-
*
|
17
|
-
*/
|
18
13
|
fallbackTimeZone?: string;
|
19
|
-
/** Fallback date of birth of the user, in YYYY-mm-dd format. Used for calculating max heartrate for providers that don not provide users' age. */
|
20
14
|
fallbackBirthDate?: string;
|
21
|
-
/** Starting bound for user data ingestion. Data older than this date will not be ingested. */
|
22
15
|
ingestionStart?: string;
|
23
|
-
/** Ending bound for user data ingestion. Data from this date or later will not be ingested and the connection will be deregistered. */
|
24
16
|
ingestionEnd?: string;
|
25
17
|
}
|
@@ -6,16 +6,8 @@
|
|
6
6
|
* {}
|
7
7
|
*/
|
8
8
|
export interface UserPatchBody {
|
9
|
-
/**
|
10
|
-
* Fallback time zone of the user, in the form of a valid IANA tzdatabase identifier (e.g., `Europe/London` or `America/Los_Angeles`).
|
11
|
-
* Used when pulling data from sources that are completely time zone agnostic (e.g., all time is relative to UTC clock, without any time zone attributions on data points).
|
12
|
-
*
|
13
|
-
*/
|
14
9
|
fallbackTimeZone?: string;
|
15
|
-
/** Fallback date of birth of the user, in YYYY-mm-dd format. Used for calculating max heartrate for providers that don not provide users' age. */
|
16
10
|
fallbackBirthDate?: string;
|
17
|
-
/** Starting bound for user data ingestion. Data older than this date will not be ingested. */
|
18
11
|
ingestionStart?: string;
|
19
|
-
/** Ending bound for user data ingestion. Data from this date or later will not be ingested and the connection will be deregistered. */
|
20
12
|
ingestionEnd?: string;
|
21
13
|
}
|