@tryvital/vital-node 3.1.7 → 3.1.9
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/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/activity/client/Client.d.ts +4 -4
- package/api/resources/activity/client/Client.js +6 -6
- package/api/resources/activity/client/requests/ActivityGetRawRequest.d.ts +1 -1
- package/api/resources/activity/client/requests/ActivityGetRequest.d.ts +1 -1
- package/api/resources/body/client/Client.d.ts +4 -4
- package/api/resources/body/client/Client.js +6 -6
- package/api/resources/body/client/requests/BodyGetRawRequest.d.ts +1 -1
- package/api/resources/body/client/requests/BodyGetRequest.d.ts +1 -1
- package/api/resources/devices/client/Client.d.ts +1 -1
- package/api/resources/devices/client/Client.js +2 -2
- package/api/resources/insurance/client/Client.d.ts +6 -1
- package/api/resources/insurance/client/Client.js +8 -3
- package/api/resources/insurance/client/requests/InsuranceSearchDiagnosisRequest.d.ts +1 -1
- package/api/resources/insurance/client/requests/PayorSearchRequest.d.ts +6 -0
- package/api/resources/introspect/client/Client.d.ts +2 -6
- package/api/resources/introspect/client/Client.js +4 -8
- package/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +1 -3
- package/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +1 -3
- package/api/resources/labTests/client/Client.d.ts +70 -1
- package/api/resources/labTests/client/Client.js +122 -33
- package/api/resources/labTests/client/requests/AppointmentBookingRequest.d.ts +6 -0
- package/api/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +6 -0
- package/api/resources/labTests/client/requests/AppointmentRescheduleRequest.d.ts +6 -0
- package/api/resources/labTests/client/requests/CreateLabTestRequest.d.ts +11 -0
- package/api/resources/labTests/client/requests/LabTestsGetAreaInfoRequest.d.ts +6 -0
- package/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +4 -0
- package/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +12 -0
- package/api/resources/link/client/Client.d.ts +71 -0
- package/api/resources/link/client/Client.js +138 -14
- package/api/resources/link/client/requests/BeginLinkTokenRequest.d.ts +7 -0
- package/api/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +13 -0
- package/api/resources/link/client/requests/CompletePasswordProviderMfaBody.js +5 -0
- package/api/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +7 -0
- package/api/resources/link/client/requests/EmailAuthLink.d.ts +8 -0
- package/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +6 -0
- package/api/resources/link/client/requests/IndividualProviderData.d.ts +9 -1
- package/api/resources/link/client/requests/LinkCodeCreateRequest.d.ts +6 -0
- package/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +4 -0
- package/api/resources/link/client/requests/LinkTokenBase.d.ts +6 -0
- package/api/resources/link/client/requests/LinkTokenExchange.d.ts +6 -0
- package/api/resources/link/client/requests/ManualConnectionData.d.ts +6 -0
- package/api/resources/link/client/requests/PasswordAuthLink.d.ts +9 -0
- package/api/resources/link/client/requests/index.d.ts +1 -0
- package/api/resources/meal/client/Client.d.ts +2 -2
- package/api/resources/meal/client/Client.js +3 -3
- package/api/resources/meal/client/requests/MealGetRequest.d.ts +1 -1
- package/api/resources/profile/client/Client.d.ts +6 -0
- package/api/resources/profile/client/Client.js +8 -2
- package/api/resources/profile/client/requests/ProfileGetRawRequest.d.ts +4 -0
- package/api/resources/profile/client/requests/ProfileGetRequest.d.ts +4 -0
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.d.ts +7 -7
- package/api/resources/sleep/client/Client.js +11 -11
- package/api/resources/sleep/client/requests/SleepGetRawRequest.d.ts +1 -1
- package/api/resources/sleep/client/requests/SleepGetRequest.d.ts +1 -1
- package/api/resources/sleep/client/requests/SleepGetStreamRequest.d.ts +1 -1
- package/api/resources/team/client/Client.d.ts +5 -2
- package/api/resources/team/client/Client.js +12 -9
- package/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts +1 -1
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.d.ts +34 -2
- package/api/resources/user/client/Client.js +46 -14
- package/api/resources/user/client/requests/UserCreateBody.d.ts +7 -1
- package/api/resources/user/client/requests/UserGetAllRequest.d.ts +4 -0
- package/api/resources/user/client/requests/UserPatchBody.d.ts +1 -1
- package/api/resources/user/client/requests/UserRefreshRequest.d.ts +4 -0
- package/api/resources/user/client/requests/UserUndoDeleteRequest.d.ts +4 -0
- package/api/resources/vitals/client/Client.d.ts +100 -100
- package/api/resources/vitals/client/Client.js +150 -150
- package/api/resources/vitals/client/requests/VitalsBloodOxygenGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsBloodOxygenRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsBloodPressureGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsBloodPressureRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsBodyFatGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsBodyFatRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsBodyWeightGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsBodyWeightRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsCaffeineGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsCaffeineRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsCaloriesActiveGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsCaloriesActiveRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsCaloriesBasalGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsCaloriesBasalRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsCholesterolGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsCholesterolHdlRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsCholesterolLdlRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsCholesterolRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsCholesterolTotalRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsCholesterolTriglyceridesRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsDistanceGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsDistanceRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsFloorsClimbedGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsFloorsClimbedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsGlucoseGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsGlucoseRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsHeartrateGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsHeartrateRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsHrvGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsHrvRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsHypnogramGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsHypnogramRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsIgeGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsIgeRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsIggGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsIggRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsMindfulnessMinutesGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsMindfulnessMinutesRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsRespiratoryRateGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsRespiratoryRateRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsStepsGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsStepsRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsStressLevelGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsStressLevelRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsVo2MaxGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsVo2MaxRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsWaterGroupedRequest.d.ts +1 -1
- package/api/resources/vitals/client/requests/VitalsWaterRequest.d.ts +1 -1
- package/api/resources/workouts/client/Client.d.ts +5 -5
- package/api/resources/workouts/client/Client.js +8 -8
- package/api/resources/workouts/client/requests/WorkoutsGetRawRequest.d.ts +1 -1
- package/api/resources/workouts/client/requests/WorkoutsGetRequest.d.ts +1 -1
- package/api/types/AppointmentType.d.ts +3 -0
- package/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +1 -0
- package/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +1 -0
- package/api/types/ClientFacingDistanceTimeseries.d.ts +1 -0
- package/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +1 -0
- package/api/types/ClientFacingStepsTimeseries.d.ts +1 -0
- package/api/types/ClientFacingUser.d.ts +1 -1
- package/api/types/ConnectionStatus.d.ts +3 -2
- package/api/types/ConnectionStatusState.d.ts +2 -1
- package/api/types/ConnectionStatusState.js +1 -0
- package/api/types/EmailProviders.d.ts +3 -0
- package/api/types/PasswordProviders.d.ts +2 -1
- package/api/types/PasswordProviders.js +1 -0
- package/api/types/ProfileInDb.d.ts +1 -1
- package/api/types/ProviderLinkResponse.d.ts +5 -3
- package/api/types/ProviderLinkResponseState.d.ts +2 -1
- package/api/types/ProviderLinkResponseState.js +1 -0
- package/api/types/ProviderMfaRequest.d.ts +8 -0
- package/api/types/ProviderMfaRequest.js +5 -0
- package/api/types/ProviderMfaRequestMethod.d.ts +8 -0
- package/api/types/ProviderMfaRequestMethod.js +10 -0
- package/api/types/Providers.d.ts +2 -1
- package/api/types/Providers.js +1 -0
- package/api/types/UserRefreshErrorResponse.d.ts +1 -1
- package/api/types/UserRefreshSuccessResponse.d.ts +1 -1
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/activity/client/Client.d.ts +4 -4
- package/dist/api/resources/activity/client/Client.js +6 -6
- package/dist/api/resources/activity/client/requests/ActivityGetRawRequest.d.ts +1 -1
- package/dist/api/resources/activity/client/requests/ActivityGetRequest.d.ts +1 -1
- package/dist/api/resources/body/client/Client.d.ts +4 -4
- package/dist/api/resources/body/client/Client.js +6 -6
- package/dist/api/resources/body/client/requests/BodyGetRawRequest.d.ts +1 -1
- package/dist/api/resources/body/client/requests/BodyGetRequest.d.ts +1 -1
- package/dist/api/resources/devices/client/Client.d.ts +1 -1
- package/dist/api/resources/devices/client/Client.js +2 -2
- package/dist/api/resources/insurance/client/Client.d.ts +6 -1
- package/dist/api/resources/insurance/client/Client.js +8 -3
- package/dist/api/resources/insurance/client/requests/InsuranceSearchDiagnosisRequest.d.ts +1 -1
- package/dist/api/resources/insurance/client/requests/PayorSearchRequest.d.ts +6 -0
- package/dist/api/resources/introspect/client/Client.d.ts +2 -6
- package/dist/api/resources/introspect/client/Client.js +4 -8
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +1 -3
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +1 -3
- package/dist/api/resources/labTests/client/Client.d.ts +70 -1
- package/dist/api/resources/labTests/client/Client.js +122 -33
- package/dist/api/resources/labTests/client/requests/AppointmentBookingRequest.d.ts +6 -0
- package/dist/api/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +6 -0
- package/dist/api/resources/labTests/client/requests/AppointmentRescheduleRequest.d.ts +6 -0
- package/dist/api/resources/labTests/client/requests/CreateLabTestRequest.d.ts +11 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetAreaInfoRequest.d.ts +6 -0
- package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +4 -0
- package/dist/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +12 -0
- package/dist/api/resources/link/client/Client.d.ts +71 -0
- package/dist/api/resources/link/client/Client.js +138 -14
- package/dist/api/resources/link/client/requests/BeginLinkTokenRequest.d.ts +7 -0
- package/dist/api/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +13 -0
- package/dist/api/resources/link/client/requests/CompletePasswordProviderMfaBody.js +5 -0
- package/dist/api/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +7 -0
- package/dist/api/resources/link/client/requests/EmailAuthLink.d.ts +8 -0
- package/dist/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +6 -0
- package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +9 -1
- package/dist/api/resources/link/client/requests/LinkCodeCreateRequest.d.ts +6 -0
- package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +4 -0
- package/dist/api/resources/link/client/requests/LinkTokenBase.d.ts +6 -0
- package/dist/api/resources/link/client/requests/LinkTokenExchange.d.ts +6 -0
- package/dist/api/resources/link/client/requests/ManualConnectionData.d.ts +6 -0
- package/dist/api/resources/link/client/requests/PasswordAuthLink.d.ts +9 -0
- package/dist/api/resources/link/client/requests/index.d.ts +1 -0
- package/dist/api/resources/meal/client/Client.d.ts +2 -2
- package/dist/api/resources/meal/client/Client.js +3 -3
- package/dist/api/resources/meal/client/requests/MealGetRequest.d.ts +1 -1
- package/dist/api/resources/profile/client/Client.d.ts +6 -0
- package/dist/api/resources/profile/client/Client.js +8 -2
- package/dist/api/resources/profile/client/requests/ProfileGetRawRequest.d.ts +4 -0
- package/dist/api/resources/profile/client/requests/ProfileGetRequest.d.ts +4 -0
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.d.ts +7 -7
- package/dist/api/resources/sleep/client/Client.js +11 -11
- package/dist/api/resources/sleep/client/requests/SleepGetRawRequest.d.ts +1 -1
- package/dist/api/resources/sleep/client/requests/SleepGetRequest.d.ts +1 -1
- package/dist/api/resources/sleep/client/requests/SleepGetStreamRequest.d.ts +1 -1
- package/dist/api/resources/team/client/Client.d.ts +5 -2
- package/dist/api/resources/team/client/Client.js +12 -9
- package/dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts +1 -1
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.d.ts +34 -2
- package/dist/api/resources/user/client/Client.js +46 -14
- package/dist/api/resources/user/client/requests/UserCreateBody.d.ts +7 -1
- package/dist/api/resources/user/client/requests/UserGetAllRequest.d.ts +4 -0
- package/dist/api/resources/user/client/requests/UserPatchBody.d.ts +1 -1
- package/dist/api/resources/user/client/requests/UserRefreshRequest.d.ts +4 -0
- package/dist/api/resources/user/client/requests/UserUndoDeleteRequest.d.ts +4 -0
- package/dist/api/resources/vitals/client/Client.d.ts +100 -100
- package/dist/api/resources/vitals/client/Client.js +150 -150
- package/dist/api/resources/vitals/client/requests/VitalsBloodOxygenGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsBloodOxygenRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsBloodPressureGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsBloodPressureRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsBodyFatGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsBodyFatRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsBodyWeightGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsBodyWeightRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsCaffeineGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsCaffeineRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsCaloriesActiveGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsCaloriesActiveRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsCaloriesBasalGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsCaloriesBasalRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolHdlRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolLdlRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolTotalRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolTriglyceridesRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsDistanceGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsDistanceRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsFloorsClimbedGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsFloorsClimbedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsGlucoseGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsGlucoseRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsHeartrateGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsHeartrateRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsHrvGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsHrvRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsHypnogramGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsHypnogramRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsIgeGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsIgeRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsIggGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsIggRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsMindfulnessMinutesGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsMindfulnessMinutesRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsRespiratoryRateGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsRespiratoryRateRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsStepsGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsStepsRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsStressLevelGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsStressLevelRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsVo2MaxGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsVo2MaxRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsWaterGroupedRequest.d.ts +1 -1
- package/dist/api/resources/vitals/client/requests/VitalsWaterRequest.d.ts +1 -1
- package/dist/api/resources/workouts/client/Client.d.ts +5 -5
- package/dist/api/resources/workouts/client/Client.js +8 -8
- package/dist/api/resources/workouts/client/requests/WorkoutsGetRawRequest.d.ts +1 -1
- package/dist/api/resources/workouts/client/requests/WorkoutsGetRequest.d.ts +1 -1
- package/dist/api/types/AppointmentType.d.ts +3 -0
- package/dist/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +1 -0
- package/dist/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +1 -0
- package/dist/api/types/ClientFacingDistanceTimeseries.d.ts +1 -0
- package/dist/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +1 -0
- package/dist/api/types/ClientFacingStepsTimeseries.d.ts +1 -0
- package/dist/api/types/ClientFacingUser.d.ts +1 -1
- package/dist/api/types/ConnectionStatus.d.ts +3 -2
- package/dist/api/types/ConnectionStatusState.d.ts +2 -1
- package/dist/api/types/ConnectionStatusState.js +1 -0
- package/dist/api/types/EmailProviders.d.ts +3 -0
- package/dist/api/types/PasswordProviders.d.ts +2 -1
- package/dist/api/types/PasswordProviders.js +1 -0
- package/dist/api/types/ProfileInDb.d.ts +1 -1
- package/dist/api/types/ProviderLinkResponse.d.ts +5 -3
- package/dist/api/types/ProviderLinkResponseState.d.ts +2 -1
- package/dist/api/types/ProviderLinkResponseState.js +1 -0
- package/dist/api/types/ProviderMfaRequest.d.ts +8 -0
- package/dist/api/types/ProviderMfaRequest.js +5 -0
- package/dist/api/types/ProviderMfaRequestMethod.d.ts +8 -0
- package/dist/api/types/ProviderMfaRequestMethod.js +10 -0
- package/dist/api/types/Providers.d.ts +2 -1
- package/dist/api/types/Providers.js +1 -0
- package/dist/api/types/UserRefreshErrorResponse.d.ts +1 -1
- package/dist/api/types/UserRefreshSuccessResponse.d.ts +1 -1
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +12 -0
- package/dist/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.js +33 -0
- package/dist/serialization/resources/link/client/requests/IndividualProviderData.d.ts +3 -1
- package/dist/serialization/resources/link/client/requests/IndividualProviderData.js +2 -0
- package/dist/serialization/resources/link/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/link/client/requests/index.js +3 -1
- package/dist/serialization/types/ConnectionStatus.d.ts +4 -2
- package/dist/serialization/types/ConnectionStatus.js +4 -2
- package/dist/serialization/types/ConnectionStatusState.d.ts +1 -1
- package/dist/serialization/types/ConnectionStatusState.js +1 -1
- package/dist/serialization/types/PasswordProviders.d.ts +1 -1
- package/dist/serialization/types/PasswordProviders.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 +7 -4
- package/dist/serialization/types/ProviderLinkResponse.js +7 -4
- package/dist/serialization/types/ProviderLinkResponseState.d.ts +1 -1
- package/dist/serialization/types/ProviderLinkResponseState.js +1 -1
- package/dist/serialization/types/ProviderMfaRequest.d.ts +14 -0
- package/dist/serialization/types/ProviderMfaRequest.js +35 -0
- package/dist/serialization/types/ProviderMfaRequestMethod.d.ts +10 -0
- package/dist/serialization/types/ProviderMfaRequestMethod.js +31 -0
- package/dist/serialization/types/Providers.d.ts +1 -1
- package/dist/serialization/types/Providers.js +1 -0
- package/dist/serialization/types/UserRefreshErrorResponse.d.ts +1 -1
- package/dist/serialization/types/UserRefreshErrorResponse.js +1 -1
- package/dist/serialization/types/UserRefreshSuccessResponse.d.ts +1 -1
- package/dist/serialization/types/UserRefreshSuccessResponse.js +1 -1
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/package.json +1 -1
- package/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +12 -0
- package/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.js +33 -0
- package/serialization/resources/link/client/requests/IndividualProviderData.d.ts +3 -1
- package/serialization/resources/link/client/requests/IndividualProviderData.js +2 -0
- package/serialization/resources/link/client/requests/index.d.ts +1 -0
- package/serialization/resources/link/client/requests/index.js +3 -1
- package/serialization/types/ConnectionStatus.d.ts +4 -2
- package/serialization/types/ConnectionStatus.js +4 -2
- package/serialization/types/ConnectionStatusState.d.ts +1 -1
- package/serialization/types/ConnectionStatusState.js +1 -1
- package/serialization/types/PasswordProviders.d.ts +1 -1
- package/serialization/types/PasswordProviders.js +1 -0
- package/serialization/types/ProfileInDb.d.ts +1 -1
- package/serialization/types/ProfileInDb.js +1 -1
- package/serialization/types/ProviderLinkResponse.d.ts +7 -4
- package/serialization/types/ProviderLinkResponse.js +7 -4
- package/serialization/types/ProviderLinkResponseState.d.ts +1 -1
- package/serialization/types/ProviderLinkResponseState.js +1 -1
- package/serialization/types/ProviderMfaRequest.d.ts +14 -0
- package/serialization/types/ProviderMfaRequest.js +35 -0
- package/serialization/types/ProviderMfaRequestMethod.d.ts +10 -0
- package/serialization/types/ProviderMfaRequestMethod.js +31 -0
- package/serialization/types/Providers.d.ts +1 -1
- package/serialization/types/Providers.js +1 -0
- package/serialization/types/UserRefreshErrorResponse.d.ts +1 -1
- package/serialization/types/UserRefreshErrorResponse.js +1 -1
- package/serialization/types/UserRefreshSuccessResponse.d.ts +1 -1
- package/serialization/types/UserRefreshSuccessResponse.js +1 -1
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
package/api/errors/index.d.ts
CHANGED
package/api/errors/index.js
CHANGED
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./BadRequestError"), exports);
|
18
17
|
__exportStar(require("./UnprocessableEntityError"), exports);
|
18
|
+
__exportStar(require("./BadRequestError"), exports);
|
@@ -22,8 +22,8 @@ export declare class Activity {
|
|
22
22
|
* @throws {@link Vital.UnprocessableEntityError}
|
23
23
|
*
|
24
24
|
* @example
|
25
|
-
* await vital.activity.get("
|
26
|
-
* startDate: "
|
25
|
+
* await vital.activity.get("user_id", {
|
26
|
+
* startDate: "start_date"
|
27
27
|
* })
|
28
28
|
*/
|
29
29
|
get(userId: string, request: Vital.ActivityGetRequest, requestOptions?: Activity.RequestOptions): Promise<Vital.ClientActivityResponse>;
|
@@ -32,8 +32,8 @@ export declare class Activity {
|
|
32
32
|
* @throws {@link Vital.UnprocessableEntityError}
|
33
33
|
*
|
34
34
|
* @example
|
35
|
-
* await vital.activity.getRaw("
|
36
|
-
* startDate: "
|
35
|
+
* await vital.activity.getRaw("user_id", {
|
36
|
+
* startDate: "start_date"
|
37
37
|
* })
|
38
38
|
*/
|
39
39
|
getRaw(userId: string, request: Vital.ActivityGetRawRequest, requestOptions?: Activity.RequestOptions): Promise<Vital.RawActivity>;
|
@@ -54,8 +54,8 @@ class Activity {
|
|
54
54
|
* @throws {@link Vital.UnprocessableEntityError}
|
55
55
|
*
|
56
56
|
* @example
|
57
|
-
* await vital.activity.get("
|
58
|
-
* startDate: "
|
57
|
+
* await vital.activity.get("user_id", {
|
58
|
+
* startDate: "start_date"
|
59
59
|
* })
|
60
60
|
*/
|
61
61
|
get(userId, request, requestOptions) {
|
@@ -73,7 +73,7 @@ class Activity {
|
|
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/activity/${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.9", "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,
|
@@ -123,8 +123,8 @@ class Activity {
|
|
123
123
|
* @throws {@link Vital.UnprocessableEntityError}
|
124
124
|
*
|
125
125
|
* @example
|
126
|
-
* await vital.activity.getRaw("
|
127
|
-
* startDate: "
|
126
|
+
* await vital.activity.getRaw("user_id", {
|
127
|
+
* startDate: "start_date"
|
128
128
|
* })
|
129
129
|
*/
|
130
130
|
getRaw(userId, request, requestOptions) {
|
@@ -142,7 +142,7 @@ class Activity {
|
|
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/activity/${userId}/raw`),
|
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.9", "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,
|
@@ -22,8 +22,8 @@ export declare class Body {
|
|
22
22
|
* @throws {@link Vital.UnprocessableEntityError}
|
23
23
|
*
|
24
24
|
* @example
|
25
|
-
* await vital.body.get("
|
26
|
-
* startDate: "
|
25
|
+
* await vital.body.get("user_id", {
|
26
|
+
* startDate: "start_date"
|
27
27
|
* })
|
28
28
|
*/
|
29
29
|
get(userId: string, request: Vital.BodyGetRequest, requestOptions?: Body.RequestOptions): Promise<Vital.ClientBodyResponse>;
|
@@ -32,8 +32,8 @@ export declare class Body {
|
|
32
32
|
* @throws {@link Vital.UnprocessableEntityError}
|
33
33
|
*
|
34
34
|
* @example
|
35
|
-
* await vital.body.getRaw("
|
36
|
-
* startDate: "
|
35
|
+
* await vital.body.getRaw("user_id", {
|
36
|
+
* startDate: "start_date"
|
37
37
|
* })
|
38
38
|
*/
|
39
39
|
getRaw(userId: string, request: Vital.BodyGetRawRequest, requestOptions?: Body.RequestOptions): Promise<Vital.RawBody>;
|
@@ -54,8 +54,8 @@ class Body {
|
|
54
54
|
* @throws {@link Vital.UnprocessableEntityError}
|
55
55
|
*
|
56
56
|
* @example
|
57
|
-
* await vital.body.get("
|
58
|
-
* startDate: "
|
57
|
+
* await vital.body.get("user_id", {
|
58
|
+
* startDate: "start_date"
|
59
59
|
* })
|
60
60
|
*/
|
61
61
|
get(userId, request, requestOptions) {
|
@@ -73,7 +73,7 @@ class Body {
|
|
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/body/${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.9", "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,
|
@@ -123,8 +123,8 @@ class Body {
|
|
123
123
|
* @throws {@link Vital.UnprocessableEntityError}
|
124
124
|
*
|
125
125
|
* @example
|
126
|
-
* await vital.body.getRaw("
|
127
|
-
* startDate: "
|
126
|
+
* await vital.body.getRaw("user_id", {
|
127
|
+
* startDate: "start_date"
|
128
128
|
* })
|
129
129
|
*/
|
130
130
|
getRaw(userId, request, requestOptions) {
|
@@ -142,7 +142,7 @@ class Body {
|
|
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/body/${userId}/raw`),
|
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.9", "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,
|
@@ -22,7 +22,7 @@ export declare class Devices {
|
|
22
22
|
* @throws {@link Vital.UnprocessableEntityError}
|
23
23
|
*
|
24
24
|
* @example
|
25
|
-
* await vital.devices.getRaw("
|
25
|
+
* await vital.devices.getRaw("user_id")
|
26
26
|
*/
|
27
27
|
getRaw(userId: string, request?: Vital.DevicesGetRawRequest, requestOptions?: Devices.RequestOptions): Promise<Vital.RawDevices>;
|
28
28
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
@@ -54,7 +54,7 @@ class Devices {
|
|
54
54
|
* @throws {@link Vital.UnprocessableEntityError}
|
55
55
|
*
|
56
56
|
* @example
|
57
|
-
* await vital.devices.getRaw("
|
57
|
+
* await vital.devices.getRaw("user_id")
|
58
58
|
*/
|
59
59
|
getRaw(userId, request = {}, requestOptions) {
|
60
60
|
var _a;
|
@@ -67,7 +67,7 @@ class Devices {
|
|
67
67
|
const _response = yield core.fetcher({
|
68
68
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${userId}/raw`),
|
69
69
|
method: "GET",
|
70
|
-
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.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
71
71
|
contentType: "application/json",
|
72
72
|
queryParameters: _queryParams,
|
73
73
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -19,6 +19,11 @@ export declare class Insurance {
|
|
19
19
|
constructor(_options: Insurance.Options);
|
20
20
|
/**
|
21
21
|
* @throws {@link Vital.UnprocessableEntityError}
|
22
|
+
*
|
23
|
+
* @example
|
24
|
+
* await vital.insurance.searchPayorInfo({
|
25
|
+
* insuranceName: "insurance_name"
|
26
|
+
* })
|
22
27
|
*/
|
23
28
|
searchPayorInfo(request: Vital.PayorSearchRequest, requestOptions?: Insurance.RequestOptions): Promise<Vital.ClientFacingPayorSearchResponse[]>;
|
24
29
|
/**
|
@@ -26,7 +31,7 @@ export declare class Insurance {
|
|
26
31
|
*
|
27
32
|
* @example
|
28
33
|
* await vital.insurance.searchDiagnosis({
|
29
|
-
* diagnosisQuery: "
|
34
|
+
* diagnosisQuery: "diagnosis_query"
|
30
35
|
* })
|
31
36
|
*/
|
32
37
|
searchDiagnosis(request: Vital.InsuranceSearchDiagnosisRequest, requestOptions?: Insurance.RequestOptions): Promise<Vital.ClientFacingDiagnosisInformation[]>;
|
@@ -51,6 +51,11 @@ class Insurance {
|
|
51
51
|
}
|
52
52
|
/**
|
53
53
|
* @throws {@link Vital.UnprocessableEntityError}
|
54
|
+
*
|
55
|
+
* @example
|
56
|
+
* await vital.insurance.searchPayorInfo({
|
57
|
+
* insuranceName: "insurance_name"
|
58
|
+
* })
|
54
59
|
*/
|
55
60
|
searchPayorInfo(request, requestOptions) {
|
56
61
|
var _a;
|
@@ -58,7 +63,7 @@ class Insurance {
|
|
58
63
|
const _response = yield core.fetcher({
|
59
64
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
|
60
65
|
method: "POST",
|
61
|
-
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.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
62
67
|
contentType: "application/json",
|
63
68
|
body: yield serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
64
69
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -108,7 +113,7 @@ class Insurance {
|
|
108
113
|
*
|
109
114
|
* @example
|
110
115
|
* await vital.insurance.searchDiagnosis({
|
111
|
-
* diagnosisQuery: "
|
116
|
+
* diagnosisQuery: "diagnosis_query"
|
112
117
|
* })
|
113
118
|
*/
|
114
119
|
searchDiagnosis(request, requestOptions) {
|
@@ -120,7 +125,7 @@ class Insurance {
|
|
120
125
|
const _response = yield core.fetcher({
|
121
126
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
|
122
127
|
method: "GET",
|
123
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
128
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
124
129
|
contentType: "application/json",
|
125
130
|
queryParameters: _queryParams,
|
126
131
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -21,18 +21,14 @@ export declare class Introspect {
|
|
21
21
|
* @throws {@link Vital.UnprocessableEntityError}
|
22
22
|
*
|
23
23
|
* @example
|
24
|
-
* await vital.introspect.getUserResources(
|
25
|
-
* provider: Vital.Providers.Oura
|
26
|
-
* })
|
24
|
+
* await vital.introspect.getUserResources()
|
27
25
|
*/
|
28
26
|
getUserResources(request?: Vital.IntrospectGetUserResourcesRequest, requestOptions?: Introspect.RequestOptions): Promise<Vital.UserResourcesResponse>;
|
29
27
|
/**
|
30
28
|
* @throws {@link Vital.UnprocessableEntityError}
|
31
29
|
*
|
32
30
|
* @example
|
33
|
-
* await vital.introspect.getUserHistoricalPulls(
|
34
|
-
* provider: Vital.Providers.Oura
|
35
|
-
* })
|
31
|
+
* await vital.introspect.getUserHistoricalPulls()
|
36
32
|
*/
|
37
33
|
getUserHistoricalPulls(request?: Vital.IntrospectGetUserHistoricalPullsRequest, requestOptions?: Introspect.RequestOptions): Promise<Vital.UserHistoricalPullsResponse>;
|
38
34
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
@@ -53,9 +53,7 @@ class Introspect {
|
|
53
53
|
* @throws {@link Vital.UnprocessableEntityError}
|
54
54
|
*
|
55
55
|
* @example
|
56
|
-
* await vital.introspect.getUserResources(
|
57
|
-
* provider: Vital.Providers.Oura
|
58
|
-
* })
|
56
|
+
* await vital.introspect.getUserResources()
|
59
57
|
*/
|
60
58
|
getUserResources(request = {}, requestOptions) {
|
61
59
|
var _a;
|
@@ -77,7 +75,7 @@ class Introspect {
|
|
77
75
|
const _response = yield core.fetcher({
|
78
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
|
79
77
|
method: "GET",
|
80
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
81
79
|
contentType: "application/json",
|
82
80
|
queryParameters: _queryParams,
|
83
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -126,9 +124,7 @@ class Introspect {
|
|
126
124
|
* @throws {@link Vital.UnprocessableEntityError}
|
127
125
|
*
|
128
126
|
* @example
|
129
|
-
* await vital.introspect.getUserHistoricalPulls(
|
130
|
-
* provider: Vital.Providers.Oura
|
131
|
-
* })
|
127
|
+
* await vital.introspect.getUserHistoricalPulls()
|
132
128
|
*/
|
133
129
|
getUserHistoricalPulls(request = {}, requestOptions) {
|
134
130
|
var _a;
|
@@ -150,7 +146,7 @@ class Introspect {
|
|
150
146
|
const _response = yield core.fetcher({
|
151
147
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
|
152
148
|
method: "GET",
|
153
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
149
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
154
150
|
contentType: "application/json",
|
155
151
|
queryParameters: _queryParams,
|
156
152
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -28,6 +28,16 @@ export declare class LabTests {
|
|
28
28
|
get(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest[]>;
|
29
29
|
/**
|
30
30
|
* @throws {@link Vital.UnprocessableEntityError}
|
31
|
+
*
|
32
|
+
* @example
|
33
|
+
* await vital.labTests.create({
|
34
|
+
* markerIds: [1],
|
35
|
+
* labId: 1,
|
36
|
+
* name: "name",
|
37
|
+
* method: Vital.LabTestCollectionMethod.Testkit,
|
38
|
+
* sampleType: Vital.LabTestSampleType.DriedBloodSpot,
|
39
|
+
* description: "description"
|
40
|
+
* })
|
31
41
|
*/
|
32
42
|
create(request: Vital.CreateLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
|
33
43
|
/**
|
@@ -42,12 +52,15 @@ export declare class LabTests {
|
|
42
52
|
* @throws {@link Vital.UnprocessableEntityError}
|
43
53
|
*
|
44
54
|
* @example
|
45
|
-
* await vital.labTests.getMarkersForLabTest("
|
55
|
+
* await vital.labTests.getMarkersForLabTest("lab_test_id")
|
46
56
|
*/
|
47
57
|
getMarkersForLabTest(labTestId: string, request?: Vital.LabTestsGetMarkersForLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
|
48
58
|
/**
|
49
59
|
* GET a specific marker for the given lab and provider_id
|
50
60
|
* @throws {@link Vital.UnprocessableEntityError}
|
61
|
+
*
|
62
|
+
* @example
|
63
|
+
* await vital.labTests.getMarkersByLabAndProviderId("provider_id", 1)
|
51
64
|
*/
|
52
65
|
getMarkersByLabAndProviderId(providerId: string, labId: number, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingMarker>;
|
53
66
|
/**
|
@@ -60,32 +73,69 @@ export declare class LabTests {
|
|
60
73
|
/**
|
61
74
|
* GET all the lab tests the team has access to.
|
62
75
|
* @throws {@link Vital.UnprocessableEntityError}
|
76
|
+
*
|
77
|
+
* @example
|
78
|
+
* await vital.labTests.getById("lab_test_id")
|
63
79
|
*/
|
64
80
|
getById(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
|
65
81
|
/**
|
66
82
|
* Return the available time slots to book an appointment with a phlebotomist
|
67
83
|
* for the given address and order.
|
68
84
|
* @throws {@link Vital.UnprocessableEntityError}
|
85
|
+
*
|
86
|
+
* @example
|
87
|
+
* await vital.labTests.getPhlebotomyAppointmentAvailability({
|
88
|
+
* firstLine: "first_line",
|
89
|
+
* city: "city",
|
90
|
+
* state: "state",
|
91
|
+
* zipCode: "zip_code"
|
92
|
+
* })
|
69
93
|
*/
|
70
94
|
getPhlebotomyAppointmentAvailability(request: Vital.UsAddress, requestOptions?: LabTests.RequestOptions): Promise<Vital.AppointmentAvailabilitySlots>;
|
71
95
|
/**
|
72
96
|
* Book an at-home phlebotomy appointment.
|
73
97
|
* @throws {@link Vital.UnprocessableEntityError}
|
98
|
+
*
|
99
|
+
* @example
|
100
|
+
* await vital.labTests.bookPhlebotomyAppointment("order_id", {
|
101
|
+
* bookingKey: "booking_key"
|
102
|
+
* })
|
74
103
|
*/
|
75
104
|
bookPhlebotomyAppointment(orderId: string, request: Vital.AppointmentBookingRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
76
105
|
/**
|
77
106
|
* Request an at-home phlebotomy appointment.
|
78
107
|
* @throws {@link Vital.UnprocessableEntityError}
|
108
|
+
*
|
109
|
+
* @example
|
110
|
+
* await vital.labTests.requestPhlebotomyAppointment("order_id", {
|
111
|
+
* address: {
|
112
|
+
* firstLine: "first_line",
|
113
|
+
* city: "city",
|
114
|
+
* state: "state",
|
115
|
+
* zipCode: "zip_code"
|
116
|
+
* },
|
117
|
+
* provider: Vital.AppointmentProvider.Getlabs
|
118
|
+
* })
|
79
119
|
*/
|
80
120
|
requestPhlebotomyAppointment(orderId: string, request: Vital.RequestAppointmentRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
81
121
|
/**
|
82
122
|
* Reschedule a previously booked at-home phlebotomy appointment.
|
83
123
|
* @throws {@link Vital.UnprocessableEntityError}
|
124
|
+
*
|
125
|
+
* @example
|
126
|
+
* await vital.labTests.reschedulePhlebotomyAppointment("order_id", {
|
127
|
+
* bookingKey: "booking_key"
|
128
|
+
* })
|
84
129
|
*/
|
85
130
|
reschedulePhlebotomyAppointment(orderId: string, request: Vital.AppointmentRescheduleRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
86
131
|
/**
|
87
132
|
* Cancel a previously booked at-home phlebotomy appointment.
|
88
133
|
* @throws {@link Vital.UnprocessableEntityError}
|
134
|
+
*
|
135
|
+
* @example
|
136
|
+
* await vital.labTests.cancelPhlebotomyAppointment("order_id", {
|
137
|
+
* cancellationReasonId: "cancellation_reason_id"
|
138
|
+
* })
|
89
139
|
*/
|
90
140
|
cancelPhlebotomyAppointment(orderId: string, request: Vital.AppointmentCancelRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
91
141
|
/**
|
@@ -98,6 +148,9 @@ export declare class LabTests {
|
|
98
148
|
/**
|
99
149
|
* Get the appointment associated with an order.
|
100
150
|
* @throws {@link Vital.UnprocessableEntityError}
|
151
|
+
*
|
152
|
+
* @example
|
153
|
+
* await vital.labTests.getPhlebotomyAppointment("order_id")
|
101
154
|
*/
|
102
155
|
getPhlebotomyAppointment(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
103
156
|
/**
|
@@ -107,25 +160,38 @@ export declare class LabTests {
|
|
107
160
|
*
|
108
161
|
* - Whether a given zip code is served by our Phlebotomy network.
|
109
162
|
* @throws {@link Vital.UnprocessableEntityError}
|
163
|
+
*
|
164
|
+
* @example
|
165
|
+
* await vital.labTests.getAreaInfo({
|
166
|
+
* zipCode: "zip_code"
|
167
|
+
* })
|
110
168
|
*/
|
111
169
|
getAreaInfo(request: Vital.LabTestsGetAreaInfoRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.AreaInfo>;
|
112
170
|
/**
|
113
171
|
* This endpoint returns the lab results for the order.
|
172
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
114
173
|
*/
|
115
174
|
getResultPdf(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
|
116
175
|
/**
|
117
176
|
* Return metadata related to order results, such as lab metadata,
|
118
177
|
* provider and sample dates.
|
119
178
|
* @throws {@link Vital.UnprocessableEntityError}
|
179
|
+
*
|
180
|
+
* @example
|
181
|
+
* await vital.labTests.getResultMetadata("order_id")
|
120
182
|
*/
|
121
183
|
getResultMetadata(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.LabResultsMetadata>;
|
122
184
|
/**
|
123
185
|
* Return both metadata and raw json test data
|
124
186
|
* @throws {@link Vital.UnprocessableEntityError}
|
187
|
+
*
|
188
|
+
* @example
|
189
|
+
* await vital.labTests.getResultRaw("order_id")
|
125
190
|
*/
|
126
191
|
getResultRaw(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.LabResultsRaw>;
|
127
192
|
/**
|
128
193
|
* GET requisition pdf for an order
|
194
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
129
195
|
*/
|
130
196
|
getOrderRequistionPdf(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
|
131
197
|
/**
|
@@ -146,6 +212,9 @@ export declare class LabTests {
|
|
146
212
|
/**
|
147
213
|
* Get available test kits.
|
148
214
|
* @throws {@link Vital.UnprocessableEntityError}
|
215
|
+
*
|
216
|
+
* @example
|
217
|
+
* await vital.labTests.simulateOrderProcess("order_id")
|
149
218
|
*/
|
150
219
|
simulateOrderProcess(orderId: string, request?: Vital.LabTestsSimulateOrderProcessRequest, requestOptions?: LabTests.RequestOptions): Promise<unknown>;
|
151
220
|
/**
|