@tryvital/vital-node 3.1.84 → 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
@@ -32,4 +32,5 @@ exports.ClientFacingWalkInTestOrder = core.serialization.object({
32
32
  id: core.serialization.string(),
33
33
  createdAt: core.serialization.property("created_at", core.serialization.string()),
34
34
  updatedAt: core.serialization.property("updated_at", core.serialization.string()),
35
+ appointmentId: core.serialization.property("appointment_id", core.serialization.string().optional()),
35
36
  });
@@ -4,10 +4,12 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { AppointmentLocation } from "./AppointmentLocation";
7
8
  import { TimeSlot } from "./TimeSlot";
8
9
  export declare const DaySlots: core.serialization.ObjectSchema<serializers.DaySlots.Raw, Vital.DaySlots>;
9
10
  export declare namespace DaySlots {
10
11
  interface Raw {
12
+ location?: AppointmentLocation.Raw | null;
11
13
  date: string;
12
14
  slots: TimeSlot.Raw[];
13
15
  }
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.DaySlots = void 0;
30
30
  const core = __importStar(require("../../core"));
31
+ const AppointmentLocation_1 = require("./AppointmentLocation");
31
32
  const TimeSlot_1 = require("./TimeSlot");
32
33
  exports.DaySlots = core.serialization.object({
34
+ location: AppointmentLocation_1.AppointmentLocation.optional(),
33
35
  date: core.serialization.string(),
34
36
  slots: core.serialization.list(TimeSlot_1.TimeSlot),
35
37
  });
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const OAuthProviders: core.serialization.Schema<serializers.OAuthProviders.Raw, Vital.OAuthProviders>;
8
8
  export declare namespace OAuthProviders {
9
- type Raw = "oura" | "fitbit" | "garmin" | "strava" | "wahoo" | "ihealth" | "withings" | "google_fit" | "dexcom_v3" | "polar" | "cronometer" | "omron" | "whoop_v2";
9
+ type Raw = "oura" | "fitbit" | "garmin" | "strava" | "wahoo" | "ihealth" | "withings" | "google_fit" | "dexcom_v3" | "polar" | "cronometer" | "omron" | "whoop_v2" | "my_fitness_pal_v2";
10
10
  }
@@ -42,4 +42,5 @@ exports.OAuthProviders = core.serialization.enum_([
42
42
  "cronometer",
43
43
  "omron",
44
44
  "whoop_v2",
45
+ "my_fitness_pal_v2",
45
46
  ]);
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const OrderStatus: core.serialization.Schema<serializers.OrderStatus.Raw, Vital.OrderStatus>;
8
8
  export declare namespace OrderStatus {
9
- type Raw = "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";
9
+ type Raw = "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";
10
10
  }
@@ -35,6 +35,9 @@ exports.OrderStatus = core.serialization.enum_([
35
35
  "sample_with_lab.walk_in_test.partial_results",
36
36
  "failed.walk_in_test.sample_error",
37
37
  "cancelled.walk_in_test.cancelled",
38
+ "collecting_sample.walk_in_test.appointment_pending",
39
+ "collecting_sample.walk_in_test.appointment_scheduled",
40
+ "collecting_sample.walk_in_test.appointment_cancelled",
38
41
  "received.at_home_phlebotomy.ordered",
39
42
  "received.at_home_phlebotomy.requisition_created",
40
43
  "collecting_sample.at_home_phlebotomy.appointment_pending",
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const Providers: core.serialization.Schema<serializers.Providers.Raw, Vital.Providers>;
8
8
  export declare namespace Providers {
9
- type Raw = "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";
9
+ type Raw = "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";
10
10
  }
@@ -64,4 +64,5 @@ exports.Providers = core.serialization.enum_([
64
64
  "kardia",
65
65
  "whoop_v2",
66
66
  "ultrahuman",
67
+ "my_fitness_pal_v2",
67
68
  ]);
@@ -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);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.84";
1
+ export declare const SDK_VERSION = "3.1.86";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.1.84";
4
+ exports.SDK_VERSION = "3.1.86";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.84",
3
+ "version": "3.1.86",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -7628,7 +7628,7 @@ await client.labTests.cancelPhlebotomyAppointment("order_id", {
7628
7628
  <dl>
7629
7629
  <dd>
7630
7630
 
7631
- **request:** `Vital.AppointmentCancelRequest`
7631
+ **request:** `Vital.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest`
7632
7632
 
7633
7633
  </dd>
7634
7634
  </dl>
@@ -8205,6 +8205,270 @@ await client.labTests.getLabelsPdf("string", {
8205
8205
  </dl>
8206
8206
  </details>
8207
8207
 
8208
+ <details><summary><code>client.labTests.<a href="/src/api/resources/labTests/client/Client.ts">getPscAppointmentAvailability</a>({ ...params }) -> Vital.AppointmentAvailabilitySlots</code></summary>
8209
+ <dl>
8210
+ <dd>
8211
+
8212
+ #### 🔌 Usage
8213
+
8214
+ <dl>
8215
+ <dd>
8216
+
8217
+ <dl>
8218
+ <dd>
8219
+
8220
+ ```typescript
8221
+ await client.labTests.getPscAppointmentAvailability({
8222
+ lab: "quest",
8223
+ });
8224
+ ```
8225
+
8226
+ </dd>
8227
+ </dl>
8228
+ </dd>
8229
+ </dl>
8230
+
8231
+ #### ⚙️ Parameters
8232
+
8233
+ <dl>
8234
+ <dd>
8235
+
8236
+ <dl>
8237
+ <dd>
8238
+
8239
+ **request:** `Vital.LabTestsGetPscAppointmentAvailabilityRequest`
8240
+
8241
+ </dd>
8242
+ </dl>
8243
+
8244
+ <dl>
8245
+ <dd>
8246
+
8247
+ **requestOptions:** `LabTests.RequestOptions`
8248
+
8249
+ </dd>
8250
+ </dl>
8251
+ </dd>
8252
+ </dl>
8253
+
8254
+ </dd>
8255
+ </dl>
8256
+ </details>
8257
+
8258
+ <details><summary><code>client.labTests.<a href="/src/api/resources/labTests/client/Client.ts">bookPscAppointment</a>(orderId, { ...params }) -> Vital.ClientFacingAppointment</code></summary>
8259
+ <dl>
8260
+ <dd>
8261
+
8262
+ #### 🔌 Usage
8263
+
8264
+ <dl>
8265
+ <dd>
8266
+
8267
+ <dl>
8268
+ <dd>
8269
+
8270
+ ```typescript
8271
+ await client.labTests.bookPscAppointment("order_id", {
8272
+ bookingKey: "booking_key",
8273
+ });
8274
+ ```
8275
+
8276
+ </dd>
8277
+ </dl>
8278
+ </dd>
8279
+ </dl>
8280
+
8281
+ #### ⚙️ Parameters
8282
+
8283
+ <dl>
8284
+ <dd>
8285
+
8286
+ <dl>
8287
+ <dd>
8288
+
8289
+ **orderId:** `string` — Your Order ID.
8290
+
8291
+ </dd>
8292
+ </dl>
8293
+
8294
+ <dl>
8295
+ <dd>
8296
+
8297
+ **request:** `Vital.AppointmentBookingRequest`
8298
+
8299
+ </dd>
8300
+ </dl>
8301
+
8302
+ <dl>
8303
+ <dd>
8304
+
8305
+ **requestOptions:** `LabTests.RequestOptions`
8306
+
8307
+ </dd>
8308
+ </dl>
8309
+ </dd>
8310
+ </dl>
8311
+
8312
+ </dd>
8313
+ </dl>
8314
+ </details>
8315
+
8316
+ <details><summary><code>client.labTests.<a href="/src/api/resources/labTests/client/Client.ts">reschedulePscAppointment</a>(orderId, { ...params }) -> Vital.ClientFacingAppointment</code></summary>
8317
+ <dl>
8318
+ <dd>
8319
+
8320
+ #### 🔌 Usage
8321
+
8322
+ <dl>
8323
+ <dd>
8324
+
8325
+ <dl>
8326
+ <dd>
8327
+
8328
+ ```typescript
8329
+ await client.labTests.reschedulePscAppointment("order_id", {
8330
+ bookingKey: "booking_key",
8331
+ });
8332
+ ```
8333
+
8334
+ </dd>
8335
+ </dl>
8336
+ </dd>
8337
+ </dl>
8338
+
8339
+ #### ⚙️ Parameters
8340
+
8341
+ <dl>
8342
+ <dd>
8343
+
8344
+ <dl>
8345
+ <dd>
8346
+
8347
+ **orderId:** `string` — Your Order ID.
8348
+
8349
+ </dd>
8350
+ </dl>
8351
+
8352
+ <dl>
8353
+ <dd>
8354
+
8355
+ **request:** `Vital.AppointmentRescheduleRequest`
8356
+
8357
+ </dd>
8358
+ </dl>
8359
+
8360
+ <dl>
8361
+ <dd>
8362
+
8363
+ **requestOptions:** `LabTests.RequestOptions`
8364
+
8365
+ </dd>
8366
+ </dl>
8367
+ </dd>
8368
+ </dl>
8369
+
8370
+ </dd>
8371
+ </dl>
8372
+ </details>
8373
+
8374
+ <details><summary><code>client.labTests.<a href="/src/api/resources/labTests/client/Client.ts">cancelPscAppointment</a>(orderId, { ...params }) -> Vital.ClientFacingAppointment</code></summary>
8375
+ <dl>
8376
+ <dd>
8377
+
8378
+ #### 🔌 Usage
8379
+
8380
+ <dl>
8381
+ <dd>
8382
+
8383
+ <dl>
8384
+ <dd>
8385
+
8386
+ ```typescript
8387
+ await client.labTests.cancelPscAppointment("order_id", {
8388
+ cancellationReasonId: "cancellationReasonId",
8389
+ });
8390
+ ```
8391
+
8392
+ </dd>
8393
+ </dl>
8394
+ </dd>
8395
+ </dl>
8396
+
8397
+ #### ⚙️ Parameters
8398
+
8399
+ <dl>
8400
+ <dd>
8401
+
8402
+ <dl>
8403
+ <dd>
8404
+
8405
+ **orderId:** `string` — Your Order ID.
8406
+
8407
+ </dd>
8408
+ </dl>
8409
+
8410
+ <dl>
8411
+ <dd>
8412
+
8413
+ **request:** `Vital.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest`
8414
+
8415
+ </dd>
8416
+ </dl>
8417
+
8418
+ <dl>
8419
+ <dd>
8420
+
8421
+ **requestOptions:** `LabTests.RequestOptions`
8422
+
8423
+ </dd>
8424
+ </dl>
8425
+ </dd>
8426
+ </dl>
8427
+
8428
+ </dd>
8429
+ </dl>
8430
+ </details>
8431
+
8432
+ <details><summary><code>client.labTests.<a href="/src/api/resources/labTests/client/Client.ts">getPscAppointmentCancellationReason</a>() -> Vital.ClientFacingAppointmentCancellationReason[]</code></summary>
8433
+ <dl>
8434
+ <dd>
8435
+
8436
+ #### 🔌 Usage
8437
+
8438
+ <dl>
8439
+ <dd>
8440
+
8441
+ <dl>
8442
+ <dd>
8443
+
8444
+ ```typescript
8445
+ await client.labTests.getPscAppointmentCancellationReason();
8446
+ ```
8447
+
8448
+ </dd>
8449
+ </dl>
8450
+ </dd>
8451
+ </dl>
8452
+
8453
+ #### ⚙️ Parameters
8454
+
8455
+ <dl>
8456
+ <dd>
8457
+
8458
+ <dl>
8459
+ <dd>
8460
+
8461
+ **requestOptions:** `LabTests.RequestOptions`
8462
+
8463
+ </dd>
8464
+ </dl>
8465
+ </dd>
8466
+ </dl>
8467
+
8468
+ </dd>
8469
+ </dl>
8470
+ </details>
8471
+
8208
8472
  <details><summary><code>client.labTests.<a href="/src/api/resources/labTests/client/Client.ts">getOrderRequistionPdf</a>(orderId) -> stream.Readable</code></summary>
8209
8473
  <dl>
8210
8474
  <dd>
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Vital from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { ClientFacingAppointmentCancellationReason } from "../../../types/ClientFacingAppointmentCancellationReason";
8
+ export declare const Response: core.serialization.Schema<serializers.labTests.getPscAppointmentCancellationReason.Response.Raw, Vital.ClientFacingAppointmentCancellationReason[]>;
9
+ export declare namespace Response {
10
+ type Raw = ClientFacingAppointmentCancellationReason.Raw[];
11
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Response = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const ClientFacingAppointmentCancellationReason_1 = require("../../../types/ClientFacingAppointmentCancellationReason");
32
+ exports.Response = core.serialization.list(ClientFacingAppointmentCancellationReason_1.ClientFacingAppointmentCancellationReason);
@@ -1,4 +1,5 @@
1
1
  export * as get from "./get";
2
2
  export * as getLabs from "./getLabs";
3
3
  export * as getPhlebotomyAppointmentCancellationReason from "./getPhlebotomyAppointmentCancellationReason";
4
+ export * as getPscAppointmentCancellationReason from "./getPscAppointmentCancellationReason";
4
5
  export * from "./requests";
@@ -26,8 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.getPhlebotomyAppointmentCancellationReason = exports.getLabs = exports.get = void 0;
29
+ exports.getPscAppointmentCancellationReason = exports.getPhlebotomyAppointmentCancellationReason = exports.getLabs = exports.get = void 0;
30
30
  exports.get = __importStar(require("./get"));
31
31
  exports.getLabs = __importStar(require("./getLabs"));
32
32
  exports.getPhlebotomyAppointmentCancellationReason = __importStar(require("./getPhlebotomyAppointmentCancellationReason"));
33
+ exports.getPscAppointmentCancellationReason = __importStar(require("./getPscAppointmentCancellationReason"));
33
34
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Vital from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ export declare const ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest: core.serialization.Schema<serializers.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.Raw, Vital.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest>;
8
+ export declare namespace ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest {
9
+ interface Raw {
10
+ cancellation_reason_id: string;
11
+ notes?: string | null;
12
+ }
13
+ }
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.AppointmentCancelRequest = void 0;
29
+ exports.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
- exports.AppointmentCancelRequest = core.serialization.object({
31
+ exports.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest = core.serialization.object({
32
32
  cancellationReasonId: core.serialization.property("cancellation_reason_id", core.serialization.string()),
33
33
  notes: core.serialization.string().optional(),
34
34
  });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Vital from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ export declare const VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest: core.serialization.Schema<serializers.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.Raw, Vital.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest>;
8
+ export declare namespace VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest {
9
+ interface Raw {
10
+ cancellationReasonId: string;
11
+ note?: string | null;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest = core.serialization.object({
32
+ cancellationReasonId: core.serialization.string(),
33
+ note: core.serialization.string().optional(),
34
+ });
@@ -1,6 +1,5 @@
1
1
  export { CreateLabTestRequest } from "./CreateLabTestRequest";
2
- export { AppointmentBookingRequest } from "./AppointmentBookingRequest";
3
2
  export { RequestAppointmentRequest } from "./RequestAppointmentRequest";
4
- export { AppointmentRescheduleRequest } from "./AppointmentRescheduleRequest";
5
- export { AppointmentCancelRequest } from "./AppointmentCancelRequest";
3
+ export { ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest } from "./ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest";
4
+ export { VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest } from "./VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest";
6
5
  export { CreateOrderRequestCompatible } from "./CreateOrderRequestCompatible";
@@ -1,15 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateOrderRequestCompatible = exports.AppointmentCancelRequest = exports.AppointmentRescheduleRequest = exports.RequestAppointmentRequest = exports.AppointmentBookingRequest = exports.CreateLabTestRequest = void 0;
3
+ exports.CreateOrderRequestCompatible = exports.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest = exports.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest = exports.RequestAppointmentRequest = exports.CreateLabTestRequest = void 0;
4
4
  var CreateLabTestRequest_1 = require("./CreateLabTestRequest");
5
5
  Object.defineProperty(exports, "CreateLabTestRequest", { enumerable: true, get: function () { return CreateLabTestRequest_1.CreateLabTestRequest; } });
6
- var AppointmentBookingRequest_1 = require("./AppointmentBookingRequest");
7
- Object.defineProperty(exports, "AppointmentBookingRequest", { enumerable: true, get: function () { return AppointmentBookingRequest_1.AppointmentBookingRequest; } });
8
6
  var RequestAppointmentRequest_1 = require("./RequestAppointmentRequest");
9
7
  Object.defineProperty(exports, "RequestAppointmentRequest", { enumerable: true, get: function () { return RequestAppointmentRequest_1.RequestAppointmentRequest; } });
10
- var AppointmentRescheduleRequest_1 = require("./AppointmentRescheduleRequest");
11
- Object.defineProperty(exports, "AppointmentRescheduleRequest", { enumerable: true, get: function () { return AppointmentRescheduleRequest_1.AppointmentRescheduleRequest; } });
12
- var AppointmentCancelRequest_1 = require("./AppointmentCancelRequest");
13
- Object.defineProperty(exports, "AppointmentCancelRequest", { enumerable: true, get: function () { return AppointmentCancelRequest_1.AppointmentCancelRequest; } });
8
+ var ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest_1 = require("./ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest");
9
+ Object.defineProperty(exports, "ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest", { enumerable: true, get: function () { return ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest_1.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest; } });
10
+ var VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest_1 = require("./VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest");
11
+ Object.defineProperty(exports, "VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest", { enumerable: true, get: function () { return VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest_1.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest; } });
14
12
  var CreateOrderRequestCompatible_1 = require("./CreateOrderRequestCompatible");
15
13
  Object.defineProperty(exports, "CreateOrderRequestCompatible", { enumerable: true, get: function () { return CreateOrderRequestCompatible_1.CreateOrderRequestCompatible; } });
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as serializers from "../../../../index";
5
- import * as Vital from "../../../../../api/index";
6
- import * as core from "../../../../../core";
7
- export declare const AppointmentBookingRequest: core.serialization.Schema<serializers.AppointmentBookingRequest.Raw, Vital.AppointmentBookingRequest>;
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const AppointmentBookingRequest: core.serialization.ObjectSchema<serializers.AppointmentBookingRequest.Raw, Vital.AppointmentBookingRequest>;
8
8
  export declare namespace AppointmentBookingRequest {
9
9
  interface Raw {
10
10
  booking_key: string;
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AppointmentBookingRequest = void 0;
30
- const core = __importStar(require("../../../../../core"));
30
+ const core = __importStar(require("../../core"));
31
31
  exports.AppointmentBookingRequest = core.serialization.object({
32
32
  bookingKey: core.serialization.property("booking_key", core.serialization.string()),
33
33
  });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { LngLat } from "./LngLat";
8
+ import { UsAddress } from "./UsAddress";
9
+ export declare const AppointmentLocation: core.serialization.ObjectSchema<serializers.AppointmentLocation.Raw, Vital.AppointmentLocation>;
10
+ export declare namespace AppointmentLocation {
11
+ interface Raw {
12
+ location: LngLat.Raw;
13
+ address: UsAddress.Raw;
14
+ code: string;
15
+ name: string;
16
+ }
17
+ }