@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
@@ -22,8 +22,8 @@ export declare class Meal {
|
|
22
22
|
* @throws {@link Vital.UnprocessableEntityError}
|
23
23
|
*
|
24
24
|
* @example
|
25
|
-
* await vital.meal.get("
|
26
|
-
* startDate: "
|
25
|
+
* await vital.meal.get("user_id", {
|
26
|
+
* startDate: "start_date"
|
27
27
|
* })
|
28
28
|
*/
|
29
29
|
get(userId: string, request: Vital.MealGetRequest, requestOptions?: Meal.RequestOptions): Promise<Vital.ClientFacingMealResponse>;
|
@@ -54,8 +54,8 @@ class Meal {
|
|
54
54
|
* @throws {@link Vital.UnprocessableEntityError}
|
55
55
|
*
|
56
56
|
* @example
|
57
|
-
* await vital.meal.get("
|
58
|
-
* startDate: "
|
57
|
+
* await vital.meal.get("user_id", {
|
58
|
+
* startDate: "start_date"
|
59
59
|
* })
|
60
60
|
*/
|
61
61
|
get(userId, request, requestOptions) {
|
@@ -73,7 +73,7 @@ class Meal {
|
|
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/meal/${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,
|
@@ -20,11 +20,17 @@ export declare class Profile {
|
|
20
20
|
/**
|
21
21
|
* Get Daily profile for user_id
|
22
22
|
* @throws {@link Vital.UnprocessableEntityError}
|
23
|
+
*
|
24
|
+
* @example
|
25
|
+
* await vital.profile.get("user_id")
|
23
26
|
*/
|
24
27
|
get(userId: string, request?: Vital.ProfileGetRequest, requestOptions?: Profile.RequestOptions): Promise<Vital.ClientFacingProfile>;
|
25
28
|
/**
|
26
29
|
* Get Daily profile for user_id
|
27
30
|
* @throws {@link Vital.UnprocessableEntityError}
|
31
|
+
*
|
32
|
+
* @example
|
33
|
+
* await vital.profile.getRaw("user_id")
|
28
34
|
*/
|
29
35
|
getRaw(userId: string, request?: Vital.ProfileGetRawRequest, requestOptions?: Profile.RequestOptions): Promise<Vital.RawProfile>;
|
30
36
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
@@ -52,6 +52,9 @@ class Profile {
|
|
52
52
|
/**
|
53
53
|
* Get Daily profile for user_id
|
54
54
|
* @throws {@link Vital.UnprocessableEntityError}
|
55
|
+
*
|
56
|
+
* @example
|
57
|
+
* await vital.profile.get("user_id")
|
55
58
|
*/
|
56
59
|
get(userId, request = {}, requestOptions) {
|
57
60
|
var _a;
|
@@ -64,7 +67,7 @@ class Profile {
|
|
64
67
|
const _response = yield core.fetcher({
|
65
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/profile/${userId}`),
|
66
69
|
method: "GET",
|
67
|
-
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())),
|
68
71
|
contentType: "application/json",
|
69
72
|
queryParameters: _queryParams,
|
70
73
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -112,6 +115,9 @@ class Profile {
|
|
112
115
|
/**
|
113
116
|
* Get Daily profile for user_id
|
114
117
|
* @throws {@link Vital.UnprocessableEntityError}
|
118
|
+
*
|
119
|
+
* @example
|
120
|
+
* await vital.profile.getRaw("user_id")
|
115
121
|
*/
|
116
122
|
getRaw(userId, request = {}, requestOptions) {
|
117
123
|
var _a;
|
@@ -124,7 +130,7 @@ class Profile {
|
|
124
130
|
const _response = yield core.fetcher({
|
125
131
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/profile/${userId}/raw`),
|
126
132
|
method: "GET",
|
127
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
133
|
+
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())),
|
128
134
|
contentType: "application/json",
|
129
135
|
queryParameters: _queryParams,
|
130
136
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -60,7 +60,7 @@ class Providers {
|
|
60
60
|
const _response = yield core.fetcher({
|
61
61
|
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
62
|
method: "GET",
|
63
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
63
|
+
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())),
|
64
64
|
contentType: "application/json",
|
65
65
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
66
66
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -22,8 +22,8 @@ export declare class Sleep {
|
|
22
22
|
* @throws {@link Vital.UnprocessableEntityError}
|
23
23
|
*
|
24
24
|
* @example
|
25
|
-
* await vital.sleep.get("
|
26
|
-
* startDate: "
|
25
|
+
* await vital.sleep.get("user_id", {
|
26
|
+
* startDate: "start_date"
|
27
27
|
* })
|
28
28
|
*/
|
29
29
|
get(userId: string, request: Vital.SleepGetRequest, requestOptions?: Sleep.RequestOptions): Promise<Vital.ClientSleepResponse>;
|
@@ -32,8 +32,8 @@ export declare class Sleep {
|
|
32
32
|
* @throws {@link Vital.UnprocessableEntityError}
|
33
33
|
*
|
34
34
|
* @example
|
35
|
-
* await vital.sleep.getStream("
|
36
|
-
* startDate: "
|
35
|
+
* await vital.sleep.getStream("user_id", {
|
36
|
+
* startDate: "start_date"
|
37
37
|
* })
|
38
38
|
*/
|
39
39
|
getStream(userId: string, request: Vital.SleepGetStreamRequest, requestOptions?: Sleep.RequestOptions): Promise<Vital.ClientSleepResponse>;
|
@@ -42,8 +42,8 @@ export declare class Sleep {
|
|
42
42
|
* @throws {@link Vital.UnprocessableEntityError}
|
43
43
|
*
|
44
44
|
* @example
|
45
|
-
* await vital.sleep.getRaw("
|
46
|
-
* startDate: "
|
45
|
+
* await vital.sleep.getRaw("user_id", {
|
46
|
+
* startDate: "start_date"
|
47
47
|
* })
|
48
48
|
*/
|
49
49
|
getRaw(userId: string, request: Vital.SleepGetRawRequest, requestOptions?: Sleep.RequestOptions): Promise<Vital.RawSleep>;
|
@@ -52,7 +52,7 @@ export declare class Sleep {
|
|
52
52
|
* @throws {@link Vital.UnprocessableEntityError}
|
53
53
|
*
|
54
54
|
* @example
|
55
|
-
* await vital.sleep.getStreamBySleepId("
|
55
|
+
* await vital.sleep.getStreamBySleepId("sleep_id")
|
56
56
|
*/
|
57
57
|
getStreamBySleepId(sleepId: string, requestOptions?: Sleep.RequestOptions): Promise<Vital.ClientFacingSleepStream>;
|
58
58
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
@@ -54,8 +54,8 @@ class Sleep {
|
|
54
54
|
* @throws {@link Vital.UnprocessableEntityError}
|
55
55
|
*
|
56
56
|
* @example
|
57
|
-
* await vital.sleep.get("
|
58
|
-
* startDate: "
|
57
|
+
* await vital.sleep.get("user_id", {
|
58
|
+
* startDate: "start_date"
|
59
59
|
* })
|
60
60
|
*/
|
61
61
|
get(userId, request, requestOptions) {
|
@@ -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.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 Sleep {
|
|
123
123
|
* @throws {@link Vital.UnprocessableEntityError}
|
124
124
|
*
|
125
125
|
* @example
|
126
|
-
* await vital.sleep.getStream("
|
127
|
-
* startDate: "
|
126
|
+
* await vital.sleep.getStream("user_id", {
|
127
|
+
* startDate: "start_date"
|
128
128
|
* })
|
129
129
|
*/
|
130
130
|
getStream(userId, request, requestOptions) {
|
@@ -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.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,
|
@@ -192,8 +192,8 @@ class Sleep {
|
|
192
192
|
* @throws {@link Vital.UnprocessableEntityError}
|
193
193
|
*
|
194
194
|
* @example
|
195
|
-
* await vital.sleep.getRaw("
|
196
|
-
* startDate: "
|
195
|
+
* await vital.sleep.getRaw("user_id", {
|
196
|
+
* startDate: "start_date"
|
197
197
|
* })
|
198
198
|
*/
|
199
199
|
getRaw(userId, request, requestOptions) {
|
@@ -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.9", "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,
|
@@ -261,7 +261,7 @@ class Sleep {
|
|
261
261
|
* @throws {@link Vital.UnprocessableEntityError}
|
262
262
|
*
|
263
263
|
* @example
|
264
|
-
* await vital.sleep.getStreamBySleepId("
|
264
|
+
* await vital.sleep.getStreamBySleepId("sleep_id")
|
265
265
|
*/
|
266
266
|
getStreamBySleepId(sleepId, requestOptions) {
|
267
267
|
var _a;
|
@@ -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.9", "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,
|
@@ -28,6 +28,9 @@ export declare class Team {
|
|
28
28
|
/**
|
29
29
|
* Get team.
|
30
30
|
* @throws {@link Vital.UnprocessableEntityError}
|
31
|
+
*
|
32
|
+
* @example
|
33
|
+
* await vital.team.get("team_id")
|
31
34
|
*/
|
32
35
|
get(teamId: string, requestOptions?: Team.RequestOptions): Promise<Vital.ClientFacingTeam>;
|
33
36
|
/**
|
@@ -53,7 +56,7 @@ export declare class Team {
|
|
53
56
|
*
|
54
57
|
* @example
|
55
58
|
* await vital.team.updateSourcePriorities({
|
56
|
-
* teamId: "
|
59
|
+
* teamId: "team_id"
|
57
60
|
* })
|
58
61
|
*/
|
59
62
|
updateSourcePriorities(request: Vital.TeamUpdateSourcePrioritiesRequest, requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>[]>;
|
@@ -61,7 +64,7 @@ export declare class Team {
|
|
61
64
|
* @throws {@link Vital.UnprocessableEntityError}
|
62
65
|
*
|
63
66
|
* @example
|
64
|
-
* await vital.team.getPhysicians("
|
67
|
+
* await vital.team.getPhysicians("team_id")
|
65
68
|
*/
|
66
69
|
getPhysicians(teamId: string, requestOptions?: Team.RequestOptions): Promise<Vital.ClientFacingPhysician[]>;
|
67
70
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
@@ -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.9", "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,
|
@@ -110,6 +110,9 @@ class Team {
|
|
110
110
|
/**
|
111
111
|
* Get team.
|
112
112
|
* @throws {@link Vital.UnprocessableEntityError}
|
113
|
+
*
|
114
|
+
* @example
|
115
|
+
* await vital.team.get("team_id")
|
113
116
|
*/
|
114
117
|
get(teamId, requestOptions) {
|
115
118
|
var _a;
|
@@ -117,7 +120,7 @@ class Team {
|
|
117
120
|
const _response = yield core.fetcher({
|
118
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}`),
|
119
122
|
method: "GET",
|
120
|
-
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.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
121
124
|
contentType: "application/json",
|
122
125
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
123
126
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -179,7 +182,7 @@ class Team {
|
|
179
182
|
const _response = yield core.fetcher({
|
180
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"),
|
181
184
|
method: "GET",
|
182
|
-
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.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
183
186
|
contentType: "application/json",
|
184
187
|
queryParameters: _queryParams,
|
185
188
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -230,7 +233,7 @@ class Team {
|
|
230
233
|
const _response = yield core.fetcher({
|
231
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"),
|
232
235
|
method: "GET",
|
233
|
-
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.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
234
237
|
contentType: "application/json",
|
235
238
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
236
239
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -282,7 +285,7 @@ class Team {
|
|
282
285
|
const _response = yield core.fetcher({
|
283
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"),
|
284
287
|
method: "GET",
|
285
|
-
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.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
286
289
|
contentType: "application/json",
|
287
290
|
queryParameters: _queryParams,
|
288
291
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -333,7 +336,7 @@ class Team {
|
|
333
336
|
*
|
334
337
|
* @example
|
335
338
|
* await vital.team.updateSourcePriorities({
|
336
|
-
* teamId: "
|
339
|
+
* teamId: "team_id"
|
337
340
|
* })
|
338
341
|
*/
|
339
342
|
updateSourcePriorities(request, requestOptions) {
|
@@ -345,7 +348,7 @@ class Team {
|
|
345
348
|
const _response = yield core.fetcher({
|
346
349
|
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"),
|
347
350
|
method: "PATCH",
|
348
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
351
|
+
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())),
|
349
352
|
contentType: "application/json",
|
350
353
|
queryParameters: _queryParams,
|
351
354
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -394,7 +397,7 @@ class Team {
|
|
394
397
|
* @throws {@link Vital.UnprocessableEntityError}
|
395
398
|
*
|
396
399
|
* @example
|
397
|
-
* await vital.team.getPhysicians("
|
400
|
+
* await vital.team.getPhysicians("team_id")
|
398
401
|
*/
|
399
402
|
getPhysicians(teamId, requestOptions) {
|
400
403
|
var _a;
|
@@ -402,7 +405,7 @@ class Team {
|
|
402
405
|
const _response = yield core.fetcher({
|
403
406
|
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`),
|
404
407
|
method: "GET",
|
405
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
408
|
+
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())),
|
406
409
|
contentType: "application/json",
|
407
410
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
408
411
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -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.9", "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.9", "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",
|
@@ -20,20 +20,34 @@ export declare class User {
|
|
20
20
|
/**
|
21
21
|
* GET All users for team.
|
22
22
|
* @throws {@link Vital.UnprocessableEntityError}
|
23
|
+
*
|
24
|
+
* @example
|
25
|
+
* await vital.user.getAll()
|
23
26
|
*/
|
24
27
|
getAll(request?: Vital.UserGetAllRequest, requestOptions?: User.RequestOptions): Promise<Vital.PaginatedUsersResponse>;
|
25
28
|
/**
|
26
29
|
* POST Create a Vital user given a client_user_id and returns the user_id.
|
27
30
|
* @throws {@link Vital.BadRequestError}
|
28
31
|
* @throws {@link Vital.UnprocessableEntityError}
|
32
|
+
*
|
33
|
+
* @example
|
34
|
+
* await vital.user.create({
|
35
|
+
* clientUserId: "client_user_id"
|
36
|
+
* })
|
29
37
|
*/
|
30
38
|
create(request: Vital.UserCreateBody, requestOptions?: User.RequestOptions): Promise<Vital.ClientFacingUserKey>;
|
31
39
|
/**
|
32
40
|
* GET metrics for team.
|
41
|
+
*
|
42
|
+
* @example
|
43
|
+
* await vital.user.getTeamMetrics()
|
33
44
|
*/
|
34
45
|
getTeamMetrics(requestOptions?: User.RequestOptions): Promise<Vital.MetricsResult>;
|
35
46
|
/**
|
36
47
|
* @throws {@link Vital.UnprocessableEntityError}
|
48
|
+
*
|
49
|
+
* @example
|
50
|
+
* await vital.user.getUserSignInToken("user_id")
|
37
51
|
*/
|
38
52
|
getUserSignInToken(userId: string, requestOptions?: User.RequestOptions): Promise<Vital.UserSignInTokenResponse>;
|
39
53
|
/**
|
@@ -41,42 +55,60 @@ export declare class User {
|
|
41
55
|
* @throws {@link Vital.UnprocessableEntityError}
|
42
56
|
*
|
43
57
|
* @example
|
44
|
-
* await vital.user.getConnectedProviders("
|
58
|
+
* await vital.user.getConnectedProviders("user_id")
|
45
59
|
*/
|
46
60
|
getConnectedProviders(userId: string, requestOptions?: User.RequestOptions): Promise<Record<string, Vital.ClientFacingProviderWithStatus[]>>;
|
47
61
|
/**
|
48
62
|
* GET User details given the user_id.
|
49
63
|
* @throws {@link Vital.UnprocessableEntityError}
|
64
|
+
*
|
65
|
+
* @example
|
66
|
+
* await vital.user.get("user_id")
|
50
67
|
*/
|
51
68
|
get(userId: string, requestOptions?: User.RequestOptions): Promise<Vital.ClientFacingUser>;
|
52
69
|
/**
|
53
70
|
* @throws {@link Vital.UnprocessableEntityError}
|
71
|
+
*
|
72
|
+
* @example
|
73
|
+
* await vital.user.delete("user_id")
|
54
74
|
*/
|
55
75
|
delete(userId: string, requestOptions?: User.RequestOptions): Promise<Vital.UserSuccessResponse>;
|
56
76
|
/**
|
57
77
|
* @throws {@link Vital.UnprocessableEntityError}
|
58
78
|
*
|
59
79
|
* @example
|
60
|
-
* await vital.user.patch("
|
80
|
+
* await vital.user.patch("user_id")
|
61
81
|
*/
|
62
82
|
patch(userId: string, request?: Vital.UserPatchBody, requestOptions?: User.RequestOptions): Promise<void>;
|
63
83
|
/**
|
64
84
|
* GET user_id from client_user_id.
|
65
85
|
* @throws {@link Vital.UnprocessableEntityError}
|
86
|
+
*
|
87
|
+
* @example
|
88
|
+
* await vital.user.getByClientUserId("client_user_id")
|
66
89
|
*/
|
67
90
|
getByClientUserId(clientUserId: string, requestOptions?: User.RequestOptions): Promise<Vital.ClientFacingUser>;
|
68
91
|
/**
|
69
92
|
* @throws {@link Vital.UnprocessableEntityError}
|
93
|
+
*
|
94
|
+
* @example
|
95
|
+
* await vital.user.deregisterProvider("user_id", Vital.Providers.Oura)
|
70
96
|
*/
|
71
97
|
deregisterProvider(userId: string, provider: Vital.Providers, requestOptions?: User.RequestOptions): Promise<Vital.UserSuccessResponse>;
|
72
98
|
/**
|
73
99
|
* @throws {@link Vital.UnprocessableEntityError}
|
100
|
+
*
|
101
|
+
* @example
|
102
|
+
* await vital.user.undoDelete()
|
74
103
|
*/
|
75
104
|
undoDelete(request?: Vital.UserUndoDeleteRequest, requestOptions?: User.RequestOptions): Promise<Vital.UserSuccessResponse>;
|
76
105
|
/**
|
77
106
|
* Trigger a manual refresh for a specific user
|
78
107
|
* @throws {@link Vital.BadRequestError}
|
79
108
|
* @throws {@link Vital.UnprocessableEntityError}
|
109
|
+
*
|
110
|
+
* @example
|
111
|
+
* await vital.user.refresh("user_id")
|
80
112
|
*/
|
81
113
|
refresh(userId: string, request?: Vital.UserRefreshRequest, requestOptions?: User.RequestOptions): Promise<Vital.UserRefreshSuccessResponse>;
|
82
114
|
protected _getCustomAuthorizationHeaders(): Promise<{
|