@tryvital/vital-node 3.1.85 → 3.1.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/aggregate/client/Client.js +1 -1
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +60 -2
- package/api/resources/labTests/client/Client.js +359 -30
- package/{dist/api/resources/labTests/client/requests/AppointmentCancelRequest.d.ts → api/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.d.ts} +1 -1
- package/api/resources/labTests/client/requests/LabTestsGetPscAppointmentAvailabilityRequest.d.ts +32 -0
- package/api/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.d.ts +13 -0
- package/api/resources/labTests/client/requests/index.d.ts +3 -3
- package/api/resources/link/client/Client.js +14 -14
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +16 -16
- package/api/resources/vitals/client/Client.js +56 -56
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/{resources/labTests/client/requests → types}/AppointmentBookingRequest.d.ts +0 -6
- package/api/types/AppointmentLocation.d.ts +10 -0
- package/api/types/AppointmentProvider.d.ts +2 -1
- package/api/types/AppointmentProvider.js +1 -0
- package/api/types/AppointmentPscLabs.d.ts +4 -0
- package/{dist/api/resources/labTests/client/requests → api/types}/AppointmentRescheduleRequest.d.ts +0 -6
- package/api/types/AppointmentRescheduleRequest.js +5 -0
- package/api/types/AppointmentType.d.ts +5 -1
- package/api/types/AppointmentType.js +5 -0
- package/api/types/ClientFacingWalkInTestOrder.d.ts +1 -0
- package/api/types/DaySlots.d.ts +1 -0
- package/api/types/OAuthProviders.d.ts +2 -1
- package/api/types/OAuthProviders.js +1 -0
- package/api/types/OrderStatus.d.ts +4 -1
- package/api/types/OrderStatus.js +3 -0
- package/api/types/Providers.d.ts +2 -1
- package/api/types/Providers.js +1 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +1 -1
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +60 -2
- package/dist/api/resources/labTests/client/Client.js +359 -30
- package/{api/resources/labTests/client/requests/AppointmentCancelRequest.d.ts → dist/api/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.d.ts} +1 -1
- package/dist/api/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetPscAppointmentAvailabilityRequest.d.ts +32 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetPscAppointmentAvailabilityRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.d.ts +13 -0
- package/dist/api/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +3 -3
- package/dist/api/resources/link/client/Client.js +14 -14
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +16 -16
- package/dist/api/resources/vitals/client/Client.js +56 -56
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/{resources/labTests/client/requests → types}/AppointmentBookingRequest.d.ts +0 -6
- package/dist/api/types/AppointmentBookingRequest.js +5 -0
- package/dist/api/types/AppointmentLocation.d.ts +10 -0
- package/dist/api/types/AppointmentLocation.js +5 -0
- package/dist/api/types/AppointmentProvider.d.ts +2 -1
- package/dist/api/types/AppointmentProvider.js +1 -0
- package/dist/api/types/AppointmentPscLabs.d.ts +4 -0
- package/dist/api/types/AppointmentPscLabs.js +5 -0
- package/{api/resources/labTests/client/requests → dist/api/types}/AppointmentRescheduleRequest.d.ts +0 -6
- package/dist/api/types/AppointmentRescheduleRequest.js +5 -0
- package/dist/api/types/AppointmentType.d.ts +5 -1
- package/dist/api/types/AppointmentType.js +5 -0
- package/dist/api/types/ClientFacingWalkInTestOrder.d.ts +1 -0
- package/dist/api/types/DaySlots.d.ts +1 -0
- package/dist/api/types/OAuthProviders.d.ts +2 -1
- package/dist/api/types/OAuthProviders.js +1 -0
- package/dist/api/types/OrderStatus.d.ts +4 -1
- package/dist/api/types/OrderStatus.js +3 -0
- package/dist/api/types/Providers.d.ts +2 -1
- package/dist/api/types/Providers.js +1 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/labTests/client/getPscAppointmentCancellationReason.d.ts +11 -0
- package/dist/serialization/resources/labTests/client/getPscAppointmentCancellationReason.js +32 -0
- package/dist/serialization/resources/labTests/client/index.d.ts +1 -0
- package/dist/serialization/resources/labTests/client/index.js +2 -1
- package/dist/serialization/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.d.ts +13 -0
- package/{serialization/resources/labTests/client/requests/AppointmentCancelRequest.js → dist/serialization/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.js} +2 -2
- package/dist/serialization/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.d.ts +13 -0
- package/dist/serialization/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.js +34 -0
- package/dist/serialization/resources/labTests/client/requests/index.d.ts +2 -3
- package/dist/serialization/resources/labTests/client/requests/index.js +5 -7
- package/dist/serialization/{resources/labTests/client/requests → types}/AppointmentBookingRequest.d.ts +4 -4
- package/{serialization/resources/labTests/client/requests → dist/serialization/types}/AppointmentBookingRequest.js +1 -1
- package/dist/serialization/types/AppointmentLocation.d.ts +17 -0
- package/dist/serialization/types/AppointmentLocation.js +38 -0
- package/dist/serialization/types/AppointmentProvider.d.ts +1 -1
- package/dist/serialization/types/AppointmentProvider.js +1 -1
- package/dist/serialization/types/AppointmentPscLabs.d.ts +10 -0
- package/dist/serialization/types/AppointmentPscLabs.js +31 -0
- package/dist/serialization/{resources/labTests/client/requests → types}/AppointmentRescheduleRequest.d.ts +4 -4
- package/dist/serialization/{resources/labTests/client/requests → types}/AppointmentRescheduleRequest.js +1 -1
- package/dist/serialization/types/AppointmentType.d.ts +1 -1
- package/dist/serialization/types/AppointmentType.js +1 -1
- package/dist/serialization/types/ClientFacingWalkInTestOrder.d.ts +1 -0
- package/dist/serialization/types/ClientFacingWalkInTestOrder.js +1 -0
- package/dist/serialization/types/DaySlots.d.ts +2 -0
- package/dist/serialization/types/DaySlots.js +2 -0
- package/dist/serialization/types/OAuthProviders.d.ts +1 -1
- package/dist/serialization/types/OAuthProviders.js +1 -0
- package/dist/serialization/types/OrderStatus.d.ts +1 -1
- package/dist/serialization/types/OrderStatus.js +3 -0
- package/dist/serialization/types/Providers.d.ts +1 -1
- package/dist/serialization/types/Providers.js +1 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +265 -1
- package/serialization/resources/labTests/client/getPscAppointmentCancellationReason.d.ts +11 -0
- package/serialization/resources/labTests/client/getPscAppointmentCancellationReason.js +32 -0
- package/serialization/resources/labTests/client/index.d.ts +1 -0
- package/serialization/resources/labTests/client/index.js +2 -1
- package/serialization/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.d.ts +13 -0
- package/{dist/serialization/resources/labTests/client/requests/AppointmentCancelRequest.js → serialization/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.js} +2 -2
- package/serialization/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.d.ts +13 -0
- package/serialization/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.js +34 -0
- package/serialization/resources/labTests/client/requests/index.d.ts +2 -3
- package/serialization/resources/labTests/client/requests/index.js +5 -7
- package/serialization/{resources/labTests/client/requests → types}/AppointmentBookingRequest.d.ts +4 -4
- package/{dist/serialization/resources/labTests/client/requests → serialization/types}/AppointmentBookingRequest.js +1 -1
- package/serialization/types/AppointmentLocation.d.ts +17 -0
- package/serialization/types/AppointmentLocation.js +38 -0
- package/serialization/types/AppointmentProvider.d.ts +1 -1
- package/serialization/types/AppointmentProvider.js +1 -1
- package/serialization/types/AppointmentPscLabs.d.ts +10 -0
- package/serialization/types/AppointmentPscLabs.js +31 -0
- package/serialization/{resources/labTests/client/requests → types}/AppointmentRescheduleRequest.d.ts +4 -4
- package/serialization/{resources/labTests/client/requests → types}/AppointmentRescheduleRequest.js +1 -1
- package/serialization/types/AppointmentType.d.ts +1 -1
- package/serialization/types/AppointmentType.js +1 -1
- package/serialization/types/ClientFacingWalkInTestOrder.d.ts +1 -0
- package/serialization/types/ClientFacingWalkInTestOrder.js +1 -0
- package/serialization/types/DaySlots.d.ts +2 -0
- package/serialization/types/DaySlots.js +2 -0
- package/serialization/types/OAuthProviders.d.ts +1 -1
- package/serialization/types/OAuthProviders.js +1 -0
- package/serialization/types/OrderStatus.d.ts +1 -1
- package/serialization/types/OrderStatus.js +3 -0
- package/serialization/types/Providers.d.ts +1 -1
- package/serialization/types/Providers.js +1 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/dist/serialization/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +0 -13
- package/serialization/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +0 -13
- /package/api/resources/labTests/client/requests/{AppointmentBookingRequest.js → ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.js} +0 -0
- /package/api/resources/labTests/client/requests/{AppointmentCancelRequest.js → LabTestsGetPscAppointmentAvailabilityRequest.js} +0 -0
- /package/api/resources/labTests/client/requests/{AppointmentRescheduleRequest.js → VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.js} +0 -0
- /package/{dist/api/resources/labTests/client/requests → api/types}/AppointmentBookingRequest.js +0 -0
- /package/{dist/api/resources/labTests/client/requests/AppointmentCancelRequest.js → api/types/AppointmentLocation.js} +0 -0
- /package/{dist/api/resources/labTests/client/requests/AppointmentRescheduleRequest.js → api/types/AppointmentPscLabs.js} +0 -0
@@ -1,9 +1,10 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export declare type AppointmentProvider = "getlabs" | "axlehealth" | "phlebfinders";
|
4
|
+
export declare type AppointmentProvider = "getlabs" | "axlehealth" | "phlebfinders" | "quest";
|
5
5
|
export declare const AppointmentProvider: {
|
6
6
|
readonly Getlabs: "getlabs";
|
7
7
|
readonly Axlehealth: "axlehealth";
|
8
8
|
readonly Phlebfinders: "phlebfinders";
|
9
|
+
readonly Quest: "quest";
|
9
10
|
};
|
@@ -1,4 +1,8 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export declare type AppointmentType = "phlebotomy";
|
4
|
+
export declare type AppointmentType = "phlebotomy" | "patient_service_center";
|
5
|
+
export declare const AppointmentType: {
|
6
|
+
readonly Phlebotomy: "phlebotomy";
|
7
|
+
readonly PatientServiceCenter: "patient_service_center";
|
8
|
+
};
|
@@ -3,3 +3,8 @@
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
4
4
|
*/
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.AppointmentType = void 0;
|
7
|
+
exports.AppointmentType = {
|
8
|
+
Phlebotomy: "phlebotomy",
|
9
|
+
PatientServiceCenter: "patient_service_center",
|
10
|
+
};
|
package/api/types/DaySlots.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export declare type OAuthProviders = "oura" | "fitbit" | "garmin" | "strava" | "wahoo" | "ihealth" | "withings" | "google_fit" | "dexcom_v3" | "polar" | "cronometer" | "omron" | "whoop_v2";
|
4
|
+
export declare type OAuthProviders = "oura" | "fitbit" | "garmin" | "strava" | "wahoo" | "ihealth" | "withings" | "google_fit" | "dexcom_v3" | "polar" | "cronometer" | "omron" | "whoop_v2" | "my_fitness_pal_v2";
|
5
5
|
export declare const OAuthProviders: {
|
6
6
|
readonly Oura: "oura";
|
7
7
|
readonly Fitbit: "fitbit";
|
@@ -16,4 +16,5 @@ export declare const OAuthProviders: {
|
|
16
16
|
readonly Cronometer: "cronometer";
|
17
17
|
readonly Omron: "omron";
|
18
18
|
readonly WhoopV2: "whoop_v2";
|
19
|
+
readonly MyFitnessPalV2: "my_fitness_pal_v2";
|
19
20
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export declare type OrderStatus = "received.walk_in_test.ordered" | "received.walk_in_test.requisition_created" | "completed.walk_in_test.completed" | "sample_with_lab.walk_in_test.partial_results" | "failed.walk_in_test.sample_error" | "cancelled.walk_in_test.cancelled" | "received.at_home_phlebotomy.ordered" | "received.at_home_phlebotomy.requisition_created" | "collecting_sample.at_home_phlebotomy.appointment_pending" | "collecting_sample.at_home_phlebotomy.appointment_scheduled" | "collecting_sample.at_home_phlebotomy.draw_completed" | "collecting_sample.at_home_phlebotomy.appointment_cancelled" | "completed.at_home_phlebotomy.completed" | "sample_with_lab.at_home_phlebotomy.partial_results" | "cancelled.at_home_phlebotomy.cancelled" | "failed.at_home_phlebotomy.sample_error" | "received.testkit.ordered" | "received.testkit.awaiting_registration" | "received.testkit.requisition_created" | "received.testkit.registered" | "collecting_sample.testkit.transit_customer" | "collecting_sample.testkit.out_for_delivery" | "collecting_sample.testkit.with_customer" | "collecting_sample.testkit.transit_lab" | "sample_with_lab.testkit.delivered_to_lab" | "completed.testkit.completed" | "failed.testkit.failure_to_deliver_to_customer" | "failed.testkit.failure_to_deliver_to_lab" | "failed.testkit.sample_error" | "failed.testkit.lost" | "cancelled.testkit.cancelled" | "cancelled.testkit.do_not_process";
|
4
|
+
export declare type OrderStatus = "received.walk_in_test.ordered" | "received.walk_in_test.requisition_created" | "completed.walk_in_test.completed" | "sample_with_lab.walk_in_test.partial_results" | "failed.walk_in_test.sample_error" | "cancelled.walk_in_test.cancelled" | "collecting_sample.walk_in_test.appointment_pending" | "collecting_sample.walk_in_test.appointment_scheduled" | "collecting_sample.walk_in_test.appointment_cancelled" | "received.at_home_phlebotomy.ordered" | "received.at_home_phlebotomy.requisition_created" | "collecting_sample.at_home_phlebotomy.appointment_pending" | "collecting_sample.at_home_phlebotomy.appointment_scheduled" | "collecting_sample.at_home_phlebotomy.draw_completed" | "collecting_sample.at_home_phlebotomy.appointment_cancelled" | "completed.at_home_phlebotomy.completed" | "sample_with_lab.at_home_phlebotomy.partial_results" | "cancelled.at_home_phlebotomy.cancelled" | "failed.at_home_phlebotomy.sample_error" | "received.testkit.ordered" | "received.testkit.awaiting_registration" | "received.testkit.requisition_created" | "received.testkit.registered" | "collecting_sample.testkit.transit_customer" | "collecting_sample.testkit.out_for_delivery" | "collecting_sample.testkit.with_customer" | "collecting_sample.testkit.transit_lab" | "sample_with_lab.testkit.delivered_to_lab" | "completed.testkit.completed" | "failed.testkit.failure_to_deliver_to_customer" | "failed.testkit.failure_to_deliver_to_lab" | "failed.testkit.sample_error" | "failed.testkit.lost" | "cancelled.testkit.cancelled" | "cancelled.testkit.do_not_process";
|
5
5
|
export declare const OrderStatus: {
|
6
6
|
readonly ReceivedWalkInTestOrdered: "received.walk_in_test.ordered";
|
7
7
|
readonly ReceivedWalkInTestRequisitionCreated: "received.walk_in_test.requisition_created";
|
@@ -9,6 +9,9 @@ export declare const OrderStatus: {
|
|
9
9
|
readonly SampleWithLabWalkInTestPartialResults: "sample_with_lab.walk_in_test.partial_results";
|
10
10
|
readonly FailedWalkInTestSampleError: "failed.walk_in_test.sample_error";
|
11
11
|
readonly CancelledWalkInTestCancelled: "cancelled.walk_in_test.cancelled";
|
12
|
+
readonly CollectingSampleWalkInTestAppointmentPending: "collecting_sample.walk_in_test.appointment_pending";
|
13
|
+
readonly CollectingSampleWalkInTestAppointmentScheduled: "collecting_sample.walk_in_test.appointment_scheduled";
|
14
|
+
readonly CollectingSampleWalkInTestAppointmentCancelled: "collecting_sample.walk_in_test.appointment_cancelled";
|
12
15
|
readonly ReceivedAtHomePhlebotomyOrdered: "received.at_home_phlebotomy.ordered";
|
13
16
|
readonly ReceivedAtHomePhlebotomyRequisitionCreated: "received.at_home_phlebotomy.requisition_created";
|
14
17
|
readonly CollectingSampleAtHomePhlebotomyAppointmentPending: "collecting_sample.at_home_phlebotomy.appointment_pending";
|
package/api/types/OrderStatus.js
CHANGED
@@ -11,6 +11,9 @@ exports.OrderStatus = {
|
|
11
11
|
SampleWithLabWalkInTestPartialResults: "sample_with_lab.walk_in_test.partial_results",
|
12
12
|
FailedWalkInTestSampleError: "failed.walk_in_test.sample_error",
|
13
13
|
CancelledWalkInTestCancelled: "cancelled.walk_in_test.cancelled",
|
14
|
+
CollectingSampleWalkInTestAppointmentPending: "collecting_sample.walk_in_test.appointment_pending",
|
15
|
+
CollectingSampleWalkInTestAppointmentScheduled: "collecting_sample.walk_in_test.appointment_scheduled",
|
16
|
+
CollectingSampleWalkInTestAppointmentCancelled: "collecting_sample.walk_in_test.appointment_cancelled",
|
14
17
|
ReceivedAtHomePhlebotomyOrdered: "received.at_home_phlebotomy.ordered",
|
15
18
|
ReceivedAtHomePhlebotomyRequisitionCreated: "received.at_home_phlebotomy.requisition_created",
|
16
19
|
CollectingSampleAtHomePhlebotomyAppointmentPending: "collecting_sample.at_home_phlebotomy.appointment_pending",
|
package/api/types/Providers.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export declare type Providers = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman";
|
4
|
+
export declare type Providers = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2";
|
5
5
|
export declare const Providers: {
|
6
6
|
readonly Oura: "oura";
|
7
7
|
readonly Fitbit: "fitbit";
|
@@ -38,4 +38,5 @@ export declare const Providers: {
|
|
38
38
|
readonly Kardia: "kardia";
|
39
39
|
readonly WhoopV2: "whoop_v2";
|
40
40
|
readonly Ultrahuman: "ultrahuman";
|
41
|
+
readonly MyFitnessPalV2: "my_fitness_pal_v2";
|
41
42
|
};
|
package/api/types/Providers.js
CHANGED
package/api/types/index.d.ts
CHANGED
@@ -11,8 +11,12 @@ export * from "./Answer";
|
|
11
11
|
export * from "./AoE";
|
12
12
|
export * from "./AoEAnswer";
|
13
13
|
export * from "./AppointmentAvailabilitySlots";
|
14
|
+
export * from "./AppointmentBookingRequest";
|
14
15
|
export * from "./AppointmentEventStatus";
|
16
|
+
export * from "./AppointmentLocation";
|
17
|
+
export * from "./AppointmentPscLabs";
|
15
18
|
export * from "./AppointmentProvider";
|
19
|
+
export * from "./AppointmentRescheduleRequest";
|
16
20
|
export * from "./AppointmentServiceType";
|
17
21
|
export * from "./AppointmentStatus";
|
18
22
|
export * from "./AppointmentType";
|
package/api/types/index.js
CHANGED
@@ -27,8 +27,12 @@ __exportStar(require("./Answer"), exports);
|
|
27
27
|
__exportStar(require("./AoE"), exports);
|
28
28
|
__exportStar(require("./AoEAnswer"), exports);
|
29
29
|
__exportStar(require("./AppointmentAvailabilitySlots"), exports);
|
30
|
+
__exportStar(require("./AppointmentBookingRequest"), exports);
|
30
31
|
__exportStar(require("./AppointmentEventStatus"), exports);
|
32
|
+
__exportStar(require("./AppointmentLocation"), exports);
|
33
|
+
__exportStar(require("./AppointmentPscLabs"), exports);
|
31
34
|
__exportStar(require("./AppointmentProvider"), exports);
|
35
|
+
__exportStar(require("./AppointmentRescheduleRequest"), exports);
|
32
36
|
__exportStar(require("./AppointmentServiceType"), exports);
|
33
37
|
__exportStar(require("./AppointmentStatus"), exports);
|
34
38
|
__exportStar(require("./AppointmentType"), exports);
|
@@ -78,7 +78,7 @@ class Activity {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.86", "User-Agent": "@tryvital/vital-node/3.1.86", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -154,7 +154,7 @@ class Activity {
|
|
154
154
|
const _response = yield core.fetcher({
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}/raw`),
|
156
156
|
method: "GET",
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.86", "User-Agent": "@tryvital/vital-node/3.1.86", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
158
158
|
contentType: "application/json",
|
159
159
|
queryParameters: _queryParams,
|
160
160
|
requestType: "json",
|
@@ -89,7 +89,7 @@ class Aggregate {
|
|
89
89
|
const _response = yield core.fetcher({
|
90
90
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/query_one/${encodeURIComponent(userId)}`),
|
91
91
|
method: "POST",
|
92
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
92
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.86", "User-Agent": "@tryvital/vital-node/3.1.86", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
|
93
93
|
contentType: "application/json",
|
94
94
|
requestType: "json",
|
95
95
|
body: serializers.Query.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -78,7 +78,7 @@ class Body {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.86", "User-Agent": "@tryvital/vital-node/3.1.86", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -154,7 +154,7 @@ class Body {
|
|
154
154
|
const _response = yield core.fetcher({
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${encodeURIComponent(userId)}/raw`),
|
156
156
|
method: "GET",
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.86", "User-Agent": "@tryvital/vital-node/3.1.86", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
158
158
|
contentType: "application/json",
|
159
159
|
queryParameters: _queryParams,
|
160
160
|
requestType: "json",
|
@@ -72,7 +72,7 @@ class Devices {
|
|
72
72
|
const _response = yield core.fetcher({
|
73
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${encodeURIComponent(userId)}/raw`),
|
74
74
|
method: "GET",
|
75
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.86", "User-Agent": "@tryvital/vital-node/3.1.86", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
76
76
|
contentType: "application/json",
|
77
77
|
queryParameters: _queryParams,
|
78
78
|
requestType: "json",
|
@@ -66,7 +66,7 @@ class Insurance {
|
|
66
66
|
const _response = yield core.fetcher({
|
67
67
|
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"),
|
68
68
|
method: "POST",
|
69
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
69
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.86", "User-Agent": "@tryvital/vital-node/3.1.86", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
70
70
|
contentType: "application/json",
|
71
71
|
requestType: "json",
|
72
72
|
body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -133,7 +133,7 @@ class Insurance {
|
|
133
133
|
const _response = yield core.fetcher({
|
134
134
|
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"),
|
135
135
|
method: "GET",
|
136
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
136
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.86", "User-Agent": "@tryvital/vital-node/3.1.86", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
137
137
|
contentType: "application/json",
|
138
138
|
queryParameters: _queryParams,
|
139
139
|
requestType: "json",
|
@@ -81,7 +81,7 @@ class Introspect {
|
|
81
81
|
const _response = yield core.fetcher({
|
82
82
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
|
83
83
|
method: "GET",
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.86", "User-Agent": "@tryvital/vital-node/3.1.86", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
85
85
|
contentType: "application/json",
|
86
86
|
queryParameters: _queryParams,
|
87
87
|
requestType: "json",
|
@@ -160,7 +160,7 @@ class Introspect {
|
|
160
160
|
const _response = yield core.fetcher({
|
161
161
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
|
162
162
|
method: "GET",
|
163
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
163
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.86", "User-Agent": "@tryvital/vital-node/3.1.86", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
164
164
|
contentType: "application/json",
|
165
165
|
queryParameters: _queryParams,
|
166
166
|
requestType: "json",
|
@@ -190,7 +190,7 @@ export declare class LabTests {
|
|
190
190
|
* Cancel a previously booked at-home phlebotomy appointment.
|
191
191
|
*
|
192
192
|
* @param {string} orderId - Your Order ID.
|
193
|
-
* @param {Vital.
|
193
|
+
* @param {Vital.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest} request
|
194
194
|
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
195
195
|
*
|
196
196
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -200,7 +200,7 @@ export declare class LabTests {
|
|
200
200
|
* cancellationReasonId: "cancellation_reason_id"
|
201
201
|
* })
|
202
202
|
*/
|
203
|
-
cancelPhlebotomyAppointment(orderId: string, request: Vital.
|
203
|
+
cancelPhlebotomyAppointment(orderId: string, request: Vital.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
204
204
|
/**
|
205
205
|
* Get the list of reasons for cancelling an at-home phlebotomy appointment.
|
206
206
|
*
|
@@ -300,6 +300,64 @@ export declare class LabTests {
|
|
300
300
|
* @throws {@link Vital.UnprocessableEntityError}
|
301
301
|
*/
|
302
302
|
getLabelsPdf(orderId: string, request: Vital.LabTestsGetLabelsPdfRequest, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
|
303
|
+
/**
|
304
|
+
* @param {Vital.LabTestsGetPscAppointmentAvailabilityRequest} request
|
305
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
306
|
+
*
|
307
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
308
|
+
*
|
309
|
+
* @example
|
310
|
+
* await client.labTests.getPscAppointmentAvailability({
|
311
|
+
* lab: "quest"
|
312
|
+
* })
|
313
|
+
*/
|
314
|
+
getPscAppointmentAvailability(request: Vital.LabTestsGetPscAppointmentAvailabilityRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.AppointmentAvailabilitySlots>;
|
315
|
+
/**
|
316
|
+
* @param {string} orderId - Your Order ID.
|
317
|
+
* @param {Vital.AppointmentBookingRequest} request
|
318
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
319
|
+
*
|
320
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
321
|
+
*
|
322
|
+
* @example
|
323
|
+
* await client.labTests.bookPscAppointment("order_id", {
|
324
|
+
* bookingKey: "booking_key"
|
325
|
+
* })
|
326
|
+
*/
|
327
|
+
bookPscAppointment(orderId: string, request: Vital.AppointmentBookingRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
328
|
+
/**
|
329
|
+
* @param {string} orderId - Your Order ID.
|
330
|
+
* @param {Vital.AppointmentRescheduleRequest} request
|
331
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
332
|
+
*
|
333
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
334
|
+
*
|
335
|
+
* @example
|
336
|
+
* await client.labTests.reschedulePscAppointment("order_id", {
|
337
|
+
* bookingKey: "booking_key"
|
338
|
+
* })
|
339
|
+
*/
|
340
|
+
reschedulePscAppointment(orderId: string, request: Vital.AppointmentRescheduleRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
341
|
+
/**
|
342
|
+
* @param {string} orderId - Your Order ID.
|
343
|
+
* @param {Vital.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest} request
|
344
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
345
|
+
*
|
346
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
347
|
+
*
|
348
|
+
* @example
|
349
|
+
* await client.labTests.cancelPscAppointment("order_id", {
|
350
|
+
* cancellationReasonId: "cancellationReasonId"
|
351
|
+
* })
|
352
|
+
*/
|
353
|
+
cancelPscAppointment(orderId: string, request: Vital.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
354
|
+
/**
|
355
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
356
|
+
*
|
357
|
+
* @example
|
358
|
+
* await client.labTests.getPscAppointmentCancellationReason()
|
359
|
+
*/
|
360
|
+
getPscAppointmentCancellationReason(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointmentCancellationReason[]>;
|
303
361
|
/**
|
304
362
|
* GET requisition pdf for an order
|
305
363
|
* @throws {@link Vital.UnprocessableEntityError}
|