@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.
Files changed (172) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +1 -1
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/insurance/client/Client.js +2 -2
  6. package/api/resources/introspect/client/Client.js +2 -2
  7. package/api/resources/labTests/client/Client.d.ts +60 -2
  8. package/api/resources/labTests/client/Client.js +359 -30
  9. package/{dist/api/resources/labTests/client/requests/AppointmentCancelRequest.d.ts → api/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.d.ts} +1 -1
  10. package/api/resources/labTests/client/requests/LabTestsGetPscAppointmentAvailabilityRequest.d.ts +32 -0
  11. package/api/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.d.ts +13 -0
  12. package/api/resources/labTests/client/requests/index.d.ts +3 -3
  13. package/api/resources/link/client/Client.js +14 -14
  14. package/api/resources/meal/client/Client.js +1 -1
  15. package/api/resources/menstrualCycle/client/Client.js +1 -1
  16. package/api/resources/profile/client/Client.js +2 -2
  17. package/api/resources/providers/client/Client.js +1 -1
  18. package/api/resources/sleep/client/Client.js +4 -4
  19. package/api/resources/team/client/Client.js +7 -7
  20. package/api/resources/testkit/client/Client.js +2 -2
  21. package/api/resources/user/client/Client.js +16 -16
  22. package/api/resources/vitals/client/Client.js +56 -56
  23. package/api/resources/workouts/client/Client.js +3 -3
  24. package/api/{resources/labTests/client/requests → types}/AppointmentBookingRequest.d.ts +0 -6
  25. package/api/types/AppointmentLocation.d.ts +10 -0
  26. package/api/types/AppointmentProvider.d.ts +2 -1
  27. package/api/types/AppointmentProvider.js +1 -0
  28. package/api/types/AppointmentPscLabs.d.ts +4 -0
  29. package/{dist/api/resources/labTests/client/requests → api/types}/AppointmentRescheduleRequest.d.ts +0 -6
  30. package/api/types/AppointmentRescheduleRequest.js +5 -0
  31. package/api/types/AppointmentType.d.ts +5 -1
  32. package/api/types/AppointmentType.js +5 -0
  33. package/api/types/ClientFacingWalkInTestOrder.d.ts +1 -0
  34. package/api/types/DaySlots.d.ts +1 -0
  35. package/api/types/OAuthProviders.d.ts +2 -1
  36. package/api/types/OAuthProviders.js +1 -0
  37. package/api/types/OrderStatus.d.ts +4 -1
  38. package/api/types/OrderStatus.js +3 -0
  39. package/api/types/Providers.d.ts +2 -1
  40. package/api/types/Providers.js +1 -0
  41. package/api/types/index.d.ts +4 -0
  42. package/api/types/index.js +4 -0
  43. package/dist/api/resources/activity/client/Client.js +2 -2
  44. package/dist/api/resources/aggregate/client/Client.js +1 -1
  45. package/dist/api/resources/body/client/Client.js +2 -2
  46. package/dist/api/resources/devices/client/Client.js +1 -1
  47. package/dist/api/resources/insurance/client/Client.js +2 -2
  48. package/dist/api/resources/introspect/client/Client.js +2 -2
  49. package/dist/api/resources/labTests/client/Client.d.ts +60 -2
  50. package/dist/api/resources/labTests/client/Client.js +359 -30
  51. package/{api/resources/labTests/client/requests/AppointmentCancelRequest.d.ts → dist/api/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.d.ts} +1 -1
  52. package/dist/api/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.js +5 -0
  53. package/dist/api/resources/labTests/client/requests/LabTestsGetPscAppointmentAvailabilityRequest.d.ts +32 -0
  54. package/dist/api/resources/labTests/client/requests/LabTestsGetPscAppointmentAvailabilityRequest.js +5 -0
  55. package/dist/api/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.d.ts +13 -0
  56. package/dist/api/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.js +5 -0
  57. package/dist/api/resources/labTests/client/requests/index.d.ts +3 -3
  58. package/dist/api/resources/link/client/Client.js +14 -14
  59. package/dist/api/resources/meal/client/Client.js +1 -1
  60. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  61. package/dist/api/resources/profile/client/Client.js +2 -2
  62. package/dist/api/resources/providers/client/Client.js +1 -1
  63. package/dist/api/resources/sleep/client/Client.js +4 -4
  64. package/dist/api/resources/team/client/Client.js +7 -7
  65. package/dist/api/resources/testkit/client/Client.js +2 -2
  66. package/dist/api/resources/user/client/Client.js +16 -16
  67. package/dist/api/resources/vitals/client/Client.js +56 -56
  68. package/dist/api/resources/workouts/client/Client.js +3 -3
  69. package/dist/api/{resources/labTests/client/requests → types}/AppointmentBookingRequest.d.ts +0 -6
  70. package/dist/api/types/AppointmentBookingRequest.js +5 -0
  71. package/dist/api/types/AppointmentLocation.d.ts +10 -0
  72. package/dist/api/types/AppointmentLocation.js +5 -0
  73. package/dist/api/types/AppointmentProvider.d.ts +2 -1
  74. package/dist/api/types/AppointmentProvider.js +1 -0
  75. package/dist/api/types/AppointmentPscLabs.d.ts +4 -0
  76. package/dist/api/types/AppointmentPscLabs.js +5 -0
  77. package/{api/resources/labTests/client/requests → dist/api/types}/AppointmentRescheduleRequest.d.ts +0 -6
  78. package/dist/api/types/AppointmentRescheduleRequest.js +5 -0
  79. package/dist/api/types/AppointmentType.d.ts +5 -1
  80. package/dist/api/types/AppointmentType.js +5 -0
  81. package/dist/api/types/ClientFacingWalkInTestOrder.d.ts +1 -0
  82. package/dist/api/types/DaySlots.d.ts +1 -0
  83. package/dist/api/types/OAuthProviders.d.ts +2 -1
  84. package/dist/api/types/OAuthProviders.js +1 -0
  85. package/dist/api/types/OrderStatus.d.ts +4 -1
  86. package/dist/api/types/OrderStatus.js +3 -0
  87. package/dist/api/types/Providers.d.ts +2 -1
  88. package/dist/api/types/Providers.js +1 -0
  89. package/dist/api/types/index.d.ts +4 -0
  90. package/dist/api/types/index.js +4 -0
  91. package/dist/serialization/resources/labTests/client/getPscAppointmentCancellationReason.d.ts +11 -0
  92. package/dist/serialization/resources/labTests/client/getPscAppointmentCancellationReason.js +32 -0
  93. package/dist/serialization/resources/labTests/client/index.d.ts +1 -0
  94. package/dist/serialization/resources/labTests/client/index.js +2 -1
  95. package/dist/serialization/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.d.ts +13 -0
  96. package/{serialization/resources/labTests/client/requests/AppointmentCancelRequest.js → dist/serialization/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.js} +2 -2
  97. package/dist/serialization/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.d.ts +13 -0
  98. package/dist/serialization/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.js +34 -0
  99. package/dist/serialization/resources/labTests/client/requests/index.d.ts +2 -3
  100. package/dist/serialization/resources/labTests/client/requests/index.js +5 -7
  101. package/dist/serialization/{resources/labTests/client/requests → types}/AppointmentBookingRequest.d.ts +4 -4
  102. package/{serialization/resources/labTests/client/requests → dist/serialization/types}/AppointmentBookingRequest.js +1 -1
  103. package/dist/serialization/types/AppointmentLocation.d.ts +17 -0
  104. package/dist/serialization/types/AppointmentLocation.js +38 -0
  105. package/dist/serialization/types/AppointmentProvider.d.ts +1 -1
  106. package/dist/serialization/types/AppointmentProvider.js +1 -1
  107. package/dist/serialization/types/AppointmentPscLabs.d.ts +10 -0
  108. package/dist/serialization/types/AppointmentPscLabs.js +31 -0
  109. package/dist/serialization/{resources/labTests/client/requests → types}/AppointmentRescheduleRequest.d.ts +4 -4
  110. package/dist/serialization/{resources/labTests/client/requests → types}/AppointmentRescheduleRequest.js +1 -1
  111. package/dist/serialization/types/AppointmentType.d.ts +1 -1
  112. package/dist/serialization/types/AppointmentType.js +1 -1
  113. package/dist/serialization/types/ClientFacingWalkInTestOrder.d.ts +1 -0
  114. package/dist/serialization/types/ClientFacingWalkInTestOrder.js +1 -0
  115. package/dist/serialization/types/DaySlots.d.ts +2 -0
  116. package/dist/serialization/types/DaySlots.js +2 -0
  117. package/dist/serialization/types/OAuthProviders.d.ts +1 -1
  118. package/dist/serialization/types/OAuthProviders.js +1 -0
  119. package/dist/serialization/types/OrderStatus.d.ts +1 -1
  120. package/dist/serialization/types/OrderStatus.js +3 -0
  121. package/dist/serialization/types/Providers.d.ts +1 -1
  122. package/dist/serialization/types/Providers.js +1 -0
  123. package/dist/serialization/types/index.d.ts +4 -0
  124. package/dist/serialization/types/index.js +4 -0
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.js +1 -1
  127. package/package.json +1 -1
  128. package/reference.md +265 -1
  129. package/serialization/resources/labTests/client/getPscAppointmentCancellationReason.d.ts +11 -0
  130. package/serialization/resources/labTests/client/getPscAppointmentCancellationReason.js +32 -0
  131. package/serialization/resources/labTests/client/index.d.ts +1 -0
  132. package/serialization/resources/labTests/client/index.js +2 -1
  133. package/serialization/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.d.ts +13 -0
  134. package/{dist/serialization/resources/labTests/client/requests/AppointmentCancelRequest.js → serialization/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.js} +2 -2
  135. package/serialization/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.d.ts +13 -0
  136. package/serialization/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.js +34 -0
  137. package/serialization/resources/labTests/client/requests/index.d.ts +2 -3
  138. package/serialization/resources/labTests/client/requests/index.js +5 -7
  139. package/serialization/{resources/labTests/client/requests → types}/AppointmentBookingRequest.d.ts +4 -4
  140. package/{dist/serialization/resources/labTests/client/requests → serialization/types}/AppointmentBookingRequest.js +1 -1
  141. package/serialization/types/AppointmentLocation.d.ts +17 -0
  142. package/serialization/types/AppointmentLocation.js +38 -0
  143. package/serialization/types/AppointmentProvider.d.ts +1 -1
  144. package/serialization/types/AppointmentProvider.js +1 -1
  145. package/serialization/types/AppointmentPscLabs.d.ts +10 -0
  146. package/serialization/types/AppointmentPscLabs.js +31 -0
  147. package/serialization/{resources/labTests/client/requests → types}/AppointmentRescheduleRequest.d.ts +4 -4
  148. package/serialization/{resources/labTests/client/requests → types}/AppointmentRescheduleRequest.js +1 -1
  149. package/serialization/types/AppointmentType.d.ts +1 -1
  150. package/serialization/types/AppointmentType.js +1 -1
  151. package/serialization/types/ClientFacingWalkInTestOrder.d.ts +1 -0
  152. package/serialization/types/ClientFacingWalkInTestOrder.js +1 -0
  153. package/serialization/types/DaySlots.d.ts +2 -0
  154. package/serialization/types/DaySlots.js +2 -0
  155. package/serialization/types/OAuthProviders.d.ts +1 -1
  156. package/serialization/types/OAuthProviders.js +1 -0
  157. package/serialization/types/OrderStatus.d.ts +1 -1
  158. package/serialization/types/OrderStatus.js +3 -0
  159. package/serialization/types/Providers.d.ts +1 -1
  160. package/serialization/types/Providers.js +1 -0
  161. package/serialization/types/index.d.ts +4 -0
  162. package/serialization/types/index.js +4 -0
  163. package/version.d.ts +1 -1
  164. package/version.js +1 -1
  165. package/dist/serialization/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +0 -13
  166. package/serialization/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +0 -13
  167. /package/api/resources/labTests/client/requests/{AppointmentBookingRequest.js → ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.js} +0 -0
  168. /package/api/resources/labTests/client/requests/{AppointmentCancelRequest.js → LabTestsGetPscAppointmentAvailabilityRequest.js} +0 -0
  169. /package/api/resources/labTests/client/requests/{AppointmentRescheduleRequest.js → VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.js} +0 -0
  170. /package/{dist/api/resources/labTests/client/requests → api/types}/AppointmentBookingRequest.js +0 -0
  171. /package/{dist/api/resources/labTests/client/requests/AppointmentCancelRequest.js → api/types/AppointmentLocation.js} +0 -0
  172. /package/{dist/api/resources/labTests/client/requests/AppointmentRescheduleRequest.js → api/types/AppointmentPscLabs.js} +0 -0
@@ -1,12 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * @example
6
- * {
7
- * bookingKey: "booking_key"
8
- * }
9
- */
10
4
  export interface AppointmentBookingRequest {
11
5
  bookingKey: string;
12
6
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface AppointmentLocation {
6
+ location: Vital.LngLat;
7
+ address: Vital.UsAddress;
8
+ code: string;
9
+ name: string;
10
+ }
@@ -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
  };
@@ -8,4 +8,5 @@ exports.AppointmentProvider = {
8
8
  Getlabs: "getlabs",
9
9
  Axlehealth: "axlehealth",
10
10
  Phlebfinders: "phlebfinders",
11
+ Quest: "quest",
11
12
  };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type AppointmentPscLabs = "quest";
@@ -1,12 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * @example
6
- * {
7
- * bookingKey: "booking_key"
8
- * }
9
- */
10
4
  export interface AppointmentRescheduleRequest {
11
5
  bookingKey: string;
12
6
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ };
@@ -11,4 +11,5 @@ export interface ClientFacingWalkInTestOrder {
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
+ appointmentId?: string;
14
15
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface DaySlots {
6
+ location?: Vital.AppointmentLocation;
6
7
  date: string;
7
8
  slots: Vital.TimeSlot[];
8
9
  }
@@ -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
  };
@@ -18,4 +18,5 @@ exports.OAuthProviders = {
18
18
  Cronometer: "cronometer",
19
19
  Omron: "omron",
20
20
  WhoopV2: "whoop_v2",
21
+ MyFitnessPalV2: "my_fitness_pal_v2",
21
22
  };
@@ -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";
@@ -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",
@@ -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
  };
@@ -40,4 +40,5 @@ exports.Providers = {
40
40
  Kardia: "kardia",
41
41
  WhoopV2: "whoop_v2",
42
42
  Ultrahuman: "ultrahuman",
43
+ MyFitnessPalV2: "my_fitness_pal_v2",
43
44
  };
@@ -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";
@@ -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.85", "User-Agent": "@tryvital/vital-node/3.1.85", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.85", "User-Agent": "@tryvital/vital-node/3.1.85", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.85", "User-Agent": "@tryvital/vital-node/3.1.85", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
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.85", "User-Agent": "@tryvital/vital-node/3.1.85", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.85", "User-Agent": "@tryvital/vital-node/3.1.85", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.85", "User-Agent": "@tryvital/vital-node/3.1.85", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.85", "User-Agent": "@tryvital/vital-node/3.1.85", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.85", "User-Agent": "@tryvital/vital-node/3.1.85", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.85", "User-Agent": "@tryvital/vital-node/3.1.85", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.85", "User-Agent": "@tryvital/vital-node/3.1.85", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.AppointmentCancelRequest} request
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.AppointmentCancelRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
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}