From dec190d0179a702625f1d341027261d08c452701 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 19 Oct 2024 12:13:50 +0000 Subject: [PATCH] Release 3.1.86 --- package.json | 2 +- reference.md | 266 ++++++++- src/api/resources/activity/client/Client.ts | 8 +- src/api/resources/aggregate/client/Client.ts | 4 +- src/api/resources/body/client/Client.ts | 8 +- src/api/resources/devices/client/Client.ts | 4 +- src/api/resources/insurance/client/Client.ts | 8 +- src/api/resources/introspect/client/Client.ts | 8 +- src/api/resources/labTests/client/Client.ts | 533 ++++++++++++++++-- ...gOrdersHelpersAppointmentCancelRequest.ts} | 2 +- ...stsGetPscAppointmentAvailabilityRequest.ts | 34 ++ ...stGetlabsSchemaAppointmentCancelRequest.ts | 14 + .../labTests/client/requests/index.ts | 6 +- src/api/resources/link/client/Client.ts | 56 +- src/api/resources/meal/client/Client.ts | 4 +- .../resources/menstrualCycle/client/Client.ts | 4 +- src/api/resources/profile/client/Client.ts | 8 +- src/api/resources/providers/client/Client.ts | 4 +- src/api/resources/sleep/client/Client.ts | 16 +- src/api/resources/team/client/Client.ts | 28 +- src/api/resources/testkit/client/Client.ts | 8 +- src/api/resources/user/client/Client.ts | 64 +-- src/api/resources/vitals/client/Client.ts | 224 ++++---- src/api/resources/workouts/client/Client.ts | 12 +- .../AppointmentBookingRequest.ts | 6 - src/api/types/AppointmentLocation.ts | 12 + src/api/types/AppointmentProvider.ts | 3 +- src/api/types/AppointmentPscLabs.ts | 5 + .../AppointmentRescheduleRequest.ts | 6 - src/api/types/AppointmentType.ts | 7 +- src/api/types/ClientFacingWalkInTestOrder.ts | 1 + src/api/types/DaySlots.ts | 1 + src/api/types/OAuthProviders.ts | 4 +- src/api/types/OrderStatus.ts | 6 + src/api/types/Providers.ts | 4 +- src/api/types/index.ts | 4 + .../getPscAppointmentCancellationReason.ts | 17 + .../resources/labTests/client/index.ts | 1 + ...gOrdersHelpersAppointmentCancelRequest.ts} | 8 +- ...stGetlabsSchemaAppointmentCancelRequest.ts | 22 + .../labTests/client/requests/index.ts | 5 +- .../AppointmentBookingRequest.ts | 8 +- .../types/AppointmentLocation.ts | 28 + .../types/AppointmentProvider.ts | 4 +- src/serialization/types/AppointmentPscLabs.ts | 16 + .../AppointmentRescheduleRequest.ts | 8 +- src/serialization/types/AppointmentType.ts | 4 +- .../types/ClientFacingWalkInTestOrder.ts | 2 + src/serialization/types/DaySlots.ts | 3 + src/serialization/types/OAuthProviders.ts | 4 +- src/serialization/types/OrderStatus.ts | 6 + src/serialization/types/Providers.ts | 4 +- src/serialization/types/index.ts | 4 + src/version.ts | 2 +- yarn.lock | 6 +- 55 files changed, 1196 insertions(+), 340 deletions(-) rename src/api/resources/labTests/client/requests/{AppointmentCancelRequest.ts => ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.ts} (71%) create mode 100644 src/api/resources/labTests/client/requests/LabTestsGetPscAppointmentAvailabilityRequest.ts create mode 100644 src/api/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.ts rename src/api/{resources/labTests/client/requests => types}/AppointmentBookingRequest.ts (65%) create mode 100644 src/api/types/AppointmentLocation.ts create mode 100644 src/api/types/AppointmentPscLabs.ts rename src/api/{resources/labTests/client/requests => types}/AppointmentRescheduleRequest.ts (66%) create mode 100644 src/serialization/resources/labTests/client/getPscAppointmentCancellationReason.ts rename src/serialization/resources/labTests/client/requests/{AppointmentCancelRequest.ts => ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.ts} (56%) create mode 100644 src/serialization/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.ts rename src/serialization/{resources/labTests/client/requests => types}/AppointmentBookingRequest.ts (64%) create mode 100644 src/serialization/types/AppointmentLocation.ts create mode 100644 src/serialization/types/AppointmentPscLabs.ts rename src/serialization/{resources/labTests/client/requests => types}/AppointmentRescheduleRequest.ts (65%) diff --git a/package.json b/package.json index a44d8589..d17b0203 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tryvital/vital-node", - "version": "3.1.85", + "version": "3.1.86", "private": false, "repository": "https://github.com/tryVital/vital-node", "main": "./index.js", diff --git a/reference.md b/reference.md index e9c7b523..d3c23dc4 100644 --- a/reference.md +++ b/reference.md @@ -7628,7 +7628,7 @@ await client.labTests.cancelPhlebotomyAppointment("order_id", {
-**request:** `Vital.AppointmentCancelRequest` +**request:** `Vital.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest`
@@ -8205,6 +8205,270 @@ await client.labTests.getLabelsPdf("string", { +
client.labTests.getPscAppointmentAvailability({ ...params }) -> Vital.AppointmentAvailabilitySlots +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.labTests.getPscAppointmentAvailability({ + lab: "quest", +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Vital.LabTestsGetPscAppointmentAvailabilityRequest` + +
+
+ +
+
+ +**requestOptions:** `LabTests.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.labTests.bookPscAppointment(orderId, { ...params }) -> Vital.ClientFacingAppointment +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.labTests.bookPscAppointment("order_id", { + bookingKey: "booking_key", +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**orderId:** `string` — Your Order ID. + +
+
+ +
+
+ +**request:** `Vital.AppointmentBookingRequest` + +
+
+ +
+
+ +**requestOptions:** `LabTests.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.labTests.reschedulePscAppointment(orderId, { ...params }) -> Vital.ClientFacingAppointment +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.labTests.reschedulePscAppointment("order_id", { + bookingKey: "booking_key", +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**orderId:** `string` — Your Order ID. + +
+
+ +
+
+ +**request:** `Vital.AppointmentRescheduleRequest` + +
+
+ +
+
+ +**requestOptions:** `LabTests.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.labTests.cancelPscAppointment(orderId, { ...params }) -> Vital.ClientFacingAppointment +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.labTests.cancelPscAppointment("order_id", { + cancellationReasonId: "cancellationReasonId", +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**orderId:** `string` — Your Order ID. + +
+
+ +
+
+ +**request:** `Vital.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest` + +
+
+ +
+
+ +**requestOptions:** `LabTests.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.labTests.getPscAppointmentCancellationReason() -> Vital.ClientFacingAppointmentCancellationReason[] +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.labTests.getPscAppointmentCancellationReason(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `LabTests.RequestOptions` + +
+
+
+
+ +
+
+
+
client.labTests.getOrderRequistionPdf(orderId) -> stream.Readable
diff --git a/src/api/resources/activity/client/Client.ts b/src/api/resources/activity/client/Client.ts index d5f72492..87cc6a8e 100644 --- a/src/api/resources/activity/client/Client.ts +++ b/src/api/resources/activity/client/Client.ts @@ -67,8 +67,8 @@ export class Activity { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -162,8 +162,8 @@ export class Activity { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/aggregate/client/Client.ts b/src/api/resources/aggregate/client/Client.ts index 2515e3c1..3fb85253 100644 --- a/src/api/resources/aggregate/client/Client.ts +++ b/src/api/resources/aggregate/client/Client.ts @@ -76,8 +76,8 @@ export class Aggregate { headers: { "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-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: "*/*", diff --git a/src/api/resources/body/client/Client.ts b/src/api/resources/body/client/Client.ts index 80de8f59..20d69871 100644 --- a/src/api/resources/body/client/Client.ts +++ b/src/api/resources/body/client/Client.ts @@ -67,8 +67,8 @@ export class Body { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -162,8 +162,8 @@ export class Body { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/devices/client/Client.ts b/src/api/resources/devices/client/Client.ts index 0eb64491..37700983 100644 --- a/src/api/resources/devices/client/Client.ts +++ b/src/api/resources/devices/client/Client.ts @@ -60,8 +60,8 @@ export class Devices { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/insurance/client/Client.ts b/src/api/resources/insurance/client/Client.ts index 2523ff3e..de9ada2b 100644 --- a/src/api/resources/insurance/client/Client.ts +++ b/src/api/resources/insurance/client/Client.ts @@ -52,8 +52,8 @@ export class Insurance { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -135,8 +135,8 @@ export class Insurance { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/introspect/client/Client.ts b/src/api/resources/introspect/client/Client.ts index 69d77b08..78666071 100644 --- a/src/api/resources/introspect/client/Client.ts +++ b/src/api/resources/introspect/client/Client.ts @@ -72,8 +72,8 @@ export class Introspect { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -172,8 +172,8 @@ export class Introspect { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/labTests/client/Client.ts b/src/api/resources/labTests/client/Client.ts index 41c4aaca..19e12d1d 100644 --- a/src/api/resources/labTests/client/Client.ts +++ b/src/api/resources/labTests/client/Client.ts @@ -47,8 +47,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -116,8 +116,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -222,8 +222,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -312,8 +312,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -403,8 +403,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -485,8 +485,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -558,8 +558,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -625,8 +625,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -718,8 +718,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -803,8 +803,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -893,8 +893,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -977,8 +977,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1037,7 +1037,7 @@ export class LabTests { * Cancel a previously booked at-home phlebotomy appointment. * * @param {string} orderId - Your Order ID. - * @param {Vital.AppointmentCancelRequest} request + * @param {Vital.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest} request * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Vital.UnprocessableEntityError} @@ -1049,7 +1049,7 @@ export class LabTests { */ public async cancelPhlebotomyAppointment( orderId: string, - request: Vital.AppointmentCancelRequest, + request: Vital.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest, requestOptions?: LabTests.RequestOptions ): Promise { const _response = await core.fetcher({ @@ -1061,15 +1061,18 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), }, contentType: "application/json", requestType: "json", - body: serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + body: serializers.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.jsonOrThrow( + request, + { unrecognizedObjectKeys: "strip" } + ), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -1137,8 +1140,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1207,8 +1210,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1304,8 +1307,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1393,8 +1396,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1479,8 +1482,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1549,8 +1552,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1625,8 +1628,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1701,8 +1704,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1781,8 +1784,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1833,6 +1836,418 @@ export class LabTests { } } + /** + * @param {Vital.LabTestsGetPscAppointmentAvailabilityRequest} request + * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Vital.UnprocessableEntityError} + * + * @example + * await client.labTests.getPscAppointmentAvailability({ + * lab: "quest" + * }) + */ + public async getPscAppointmentAvailability( + request: Vital.LabTestsGetPscAppointmentAvailabilityRequest, + requestOptions?: LabTests.RequestOptions + ): Promise { + const { lab, startDate, siteCodes, zipCode, radius } = request; + const _queryParams: Record = {}; + _queryParams["lab"] = lab; + if (startDate != null) { + _queryParams["start_date"] = startDate; + } + + if (siteCodes != null) { + if (Array.isArray(siteCodes)) { + _queryParams["site_codes"] = siteCodes.map((item) => item); + } else { + _queryParams["site_codes"] = siteCodes; + } + } + + if (zipCode != null) { + _queryParams["zip_code"] = zipCode; + } + + if (radius != null) { + _queryParams["radius"] = radius; + } + + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.VitalEnvironment.Production, + "v3/order/psc/appointment/availability" + ), + method: "GET", + headers: { + "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, + ...(await this._getCustomAuthorizationHeaders()), + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.AppointmentAvailabilitySlots.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new Vital.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.VitalError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.VitalError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.VitalTimeoutError(); + case "unknown": + throw new errors.VitalError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * @param {string} orderId - Your Order ID. + * @param {Vital.AppointmentBookingRequest} request + * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Vital.UnprocessableEntityError} + * + * @example + * await client.labTests.bookPscAppointment("order_id", { + * bookingKey: "booking_key" + * }) + */ + public async bookPscAppointment( + orderId: string, + request: Vital.AppointmentBookingRequest, + requestOptions?: LabTests.RequestOptions + ): Promise { + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.VitalEnvironment.Production, + `v3/order/${encodeURIComponent(orderId)}/psc/appointment/book` + ), + method: "POST", + headers: { + "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, + ...(await this._getCustomAuthorizationHeaders()), + }, + contentType: "application/json", + requestType: "json", + body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.ClientFacingAppointment.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new Vital.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.VitalError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.VitalError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.VitalTimeoutError(); + case "unknown": + throw new errors.VitalError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * @param {string} orderId - Your Order ID. + * @param {Vital.AppointmentRescheduleRequest} request + * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Vital.UnprocessableEntityError} + * + * @example + * await client.labTests.reschedulePscAppointment("order_id", { + * bookingKey: "booking_key" + * }) + */ + public async reschedulePscAppointment( + orderId: string, + request: Vital.AppointmentRescheduleRequest, + requestOptions?: LabTests.RequestOptions + ): Promise { + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.VitalEnvironment.Production, + `v3/order/${encodeURIComponent(orderId)}/psc/appointment/reschedule` + ), + method: "PATCH", + headers: { + "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, + ...(await this._getCustomAuthorizationHeaders()), + }, + contentType: "application/json", + requestType: "json", + body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.ClientFacingAppointment.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new Vital.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.VitalError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.VitalError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.VitalTimeoutError(); + case "unknown": + throw new errors.VitalError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * @param {string} orderId - Your Order ID. + * @param {Vital.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest} request + * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Vital.UnprocessableEntityError} + * + * @example + * await client.labTests.cancelPscAppointment("order_id", { + * cancellationReasonId: "cancellationReasonId" + * }) + */ + public async cancelPscAppointment( + orderId: string, + request: Vital.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest, + requestOptions?: LabTests.RequestOptions + ): Promise { + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.VitalEnvironment.Production, + `v3/order/${encodeURIComponent(orderId)}/psc/appointment/cancel` + ), + method: "PATCH", + headers: { + "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, + ...(await this._getCustomAuthorizationHeaders()), + }, + contentType: "application/json", + requestType: "json", + body: serializers.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.jsonOrThrow(request, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.ClientFacingAppointment.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new Vital.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.VitalError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.VitalError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.VitalTimeoutError(); + case "unknown": + throw new errors.VitalError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.labTests.getPscAppointmentCancellationReason() + */ + public async getPscAppointmentCancellationReason( + requestOptions?: LabTests.RequestOptions + ): Promise { + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.VitalEnvironment.Production, + "v3/order/psc/appointment/cancellation-reasons" + ), + method: "GET", + headers: { + "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, + ...(await this._getCustomAuthorizationHeaders()), + }, + contentType: "application/json", + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.labTests.getPscAppointmentCancellationReason.Response.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + throw new errors.VitalError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.VitalError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.VitalTimeoutError(); + case "unknown": + throw new errors.VitalError({ + message: _response.error.errorMessage, + }); + } + } + /** * GET requisition pdf for an order * @throws {@link Vital.UnprocessableEntityError} @@ -1850,8 +2265,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1922,8 +2337,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2018,8 +2433,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2098,8 +2513,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2189,8 +2604,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2336,8 +2751,8 @@ export class LabTests { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/labTests/client/requests/AppointmentCancelRequest.ts b/src/api/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.ts similarity index 71% rename from src/api/resources/labTests/client/requests/AppointmentCancelRequest.ts rename to src/api/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.ts index 64b07bcc..0afe2e18 100644 --- a/src/api/resources/labTests/client/requests/AppointmentCancelRequest.ts +++ b/src/api/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.ts @@ -8,7 +8,7 @@ * cancellationReasonId: "cancellation_reason_id" * } */ -export interface AppointmentCancelRequest { +export interface ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest { cancellationReasonId: string; notes?: string; } diff --git a/src/api/resources/labTests/client/requests/LabTestsGetPscAppointmentAvailabilityRequest.ts b/src/api/resources/labTests/client/requests/LabTestsGetPscAppointmentAvailabilityRequest.ts new file mode 100644 index 00000000..3265a9bc --- /dev/null +++ b/src/api/resources/labTests/client/requests/LabTestsGetPscAppointmentAvailabilityRequest.ts @@ -0,0 +1,34 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vital from "../../../../index"; + +/** + * @example + * { + * lab: "quest" + * } + */ +export interface LabTestsGetPscAppointmentAvailabilityRequest { + /** + * Lab to check for availability + */ + lab: Vital.AppointmentPscLabs; + /** + * Start date for appointment availability + */ + startDate?: string; + /** + * List of site codes to fetch availability for + */ + siteCodes?: string | string[]; + /** + * Zip code of the area to check + */ + zipCode?: string; + /** + * Radius in which to search. (meters) + */ + radius?: Vital.AllowedRadius; +} diff --git a/src/api/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.ts b/src/api/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.ts new file mode 100644 index 00000000..ad4886ad --- /dev/null +++ b/src/api/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * cancellationReasonId: "cancellationReasonId" + * } + */ +export interface VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest { + cancellationReasonId: string; + note?: string; +} diff --git a/src/api/resources/labTests/client/requests/index.ts b/src/api/resources/labTests/client/requests/index.ts index 91d6ba8b..e92d34a5 100644 --- a/src/api/resources/labTests/client/requests/index.ts +++ b/src/api/resources/labTests/client/requests/index.ts @@ -3,14 +3,14 @@ export { type LabTestsGetMarkersRequest } from "./LabTestsGetMarkersRequest"; export { type LabTestsGetMarkersForOrderSetRequest } from "./LabTestsGetMarkersForOrderSetRequest"; export { type LabTestsGetMarkersForLabTestRequest } from "./LabTestsGetMarkersForLabTestRequest"; export { type LabTestsGetPhlebotomyAppointmentAvailabilityRequest } from "./LabTestsGetPhlebotomyAppointmentAvailabilityRequest"; -export { type AppointmentBookingRequest } from "./AppointmentBookingRequest"; export { type RequestAppointmentRequest } from "./RequestAppointmentRequest"; -export { type AppointmentRescheduleRequest } from "./AppointmentRescheduleRequest"; -export { type AppointmentCancelRequest } from "./AppointmentCancelRequest"; +export { type ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest } from "./ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest"; export { type LabTestsGetAreaInfoRequest } from "./LabTestsGetAreaInfoRequest"; export { type LabTestsGetPscInfoRequest } from "./LabTestsGetPscInfoRequest"; export { type LabTestsGetOrderPscInfoRequest } from "./LabTestsGetOrderPscInfoRequest"; export { type LabTestsGetLabelsPdfRequest } from "./LabTestsGetLabelsPdfRequest"; +export { type LabTestsGetPscAppointmentAvailabilityRequest } from "./LabTestsGetPscAppointmentAvailabilityRequest"; +export { type VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest } from "./VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest"; export { type CreateOrderRequestCompatible } from "./CreateOrderRequestCompatible"; export { type LabTestsSimulateOrderProcessRequest } from "./LabTestsSimulateOrderProcessRequest"; export { type LabTestsGetOrdersRequest } from "./LabTestsGetOrdersRequest"; diff --git a/src/api/resources/link/client/Client.ts b/src/api/resources/link/client/Client.ts index afce4bb9..348bec96 100644 --- a/src/api/resources/link/client/Client.ts +++ b/src/api/resources/link/client/Client.ts @@ -59,8 +59,8 @@ export class Link { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -139,8 +139,8 @@ export class Link { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -228,8 +228,8 @@ export class Link { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -312,8 +312,8 @@ export class Link { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -394,8 +394,8 @@ export class Link { headers: { "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-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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined, @@ -479,8 +479,8 @@ export class Link { headers: { "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-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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined, @@ -566,8 +566,8 @@ export class Link { headers: { "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-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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined, @@ -650,8 +650,8 @@ export class Link { headers: { "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-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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined, @@ -736,8 +736,8 @@ export class Link { headers: { "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-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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined, @@ -824,8 +824,8 @@ export class Link { headers: { "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-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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined, @@ -910,8 +910,8 @@ export class Link { headers: { "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-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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined, @@ -992,8 +992,8 @@ export class Link { headers: { "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-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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined, @@ -1074,8 +1074,8 @@ export class Link { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1157,8 +1157,8 @@ export class Link { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/meal/client/Client.ts b/src/api/resources/meal/client/Client.ts index 5264f9ed..36f54053 100644 --- a/src/api/resources/meal/client/Client.ts +++ b/src/api/resources/meal/client/Client.ts @@ -67,8 +67,8 @@ export class Meal { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/menstrualCycle/client/Client.ts b/src/api/resources/menstrualCycle/client/Client.ts index c5b1c269..edb0ceab 100644 --- a/src/api/resources/menstrualCycle/client/Client.ts +++ b/src/api/resources/menstrualCycle/client/Client.ts @@ -65,8 +65,8 @@ export class MenstrualCycle { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/profile/client/Client.ts b/src/api/resources/profile/client/Client.ts index 5bd419bb..7effa3c8 100644 --- a/src/api/resources/profile/client/Client.ts +++ b/src/api/resources/profile/client/Client.ts @@ -60,8 +60,8 @@ export class Profile { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -148,8 +148,8 @@ export class Profile { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/providers/client/Client.ts b/src/api/resources/providers/client/Client.ts index b53df11c..6c9838cc 100644 --- a/src/api/resources/providers/client/Client.ts +++ b/src/api/resources/providers/client/Client.ts @@ -58,8 +58,8 @@ export class Providers { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/sleep/client/Client.ts b/src/api/resources/sleep/client/Client.ts index 655b2ce7..01fd758a 100644 --- a/src/api/resources/sleep/client/Client.ts +++ b/src/api/resources/sleep/client/Client.ts @@ -67,8 +67,8 @@ export class Sleep { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -162,8 +162,8 @@ export class Sleep { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -257,8 +257,8 @@ export class Sleep { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -337,8 +337,8 @@ export class Sleep { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/team/client/Client.ts b/src/api/resources/team/client/Client.ts index edd73482..8ca02806 100644 --- a/src/api/resources/team/client/Client.ts +++ b/src/api/resources/team/client/Client.ts @@ -53,8 +53,8 @@ export class Team { headers: { "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-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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined, @@ -130,8 +130,8 @@ export class Team { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -215,8 +215,8 @@ export class Team { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -287,8 +287,8 @@ export class Team { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -360,8 +360,8 @@ export class Team { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -434,8 +434,8 @@ export class Team { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -499,8 +499,8 @@ export class Team { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/testkit/client/Client.ts b/src/api/resources/testkit/client/Client.ts index 1f620817..ad83f124 100644 --- a/src/api/resources/testkit/client/Client.ts +++ b/src/api/resources/testkit/client/Client.ts @@ -68,8 +68,8 @@ export class Testkit { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -160,8 +160,8 @@ export class Testkit { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/user/client/Client.ts b/src/api/resources/user/client/Client.ts index f66045d0..2e41eca9 100644 --- a/src/api/resources/user/client/Client.ts +++ b/src/api/resources/user/client/Client.ts @@ -62,8 +62,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -145,8 +145,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -221,8 +221,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -286,8 +286,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -365,8 +365,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -441,8 +441,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -515,8 +515,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -594,8 +594,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -664,8 +664,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -762,8 +762,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -840,8 +840,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -933,8 +933,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1013,8 +1013,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1094,8 +1094,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1181,8 +1181,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1270,8 +1270,8 @@ export class User { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/vitals/client/Client.ts b/src/api/resources/vitals/client/Client.ts index 5391cd7a..6820901e 100644 --- a/src/api/resources/vitals/client/Client.ts +++ b/src/api/resources/vitals/client/Client.ts @@ -73,8 +73,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -177,8 +177,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -278,8 +278,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -379,8 +379,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -480,8 +480,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -581,8 +581,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -682,8 +682,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -783,8 +783,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -884,8 +884,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -985,8 +985,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1086,8 +1086,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1187,8 +1187,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1288,8 +1288,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1392,8 +1392,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1496,8 +1496,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1597,8 +1597,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1698,8 +1698,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1799,8 +1799,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -1900,8 +1900,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2001,8 +2001,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2102,8 +2102,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2203,8 +2203,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2307,8 +2307,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2411,8 +2411,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2515,8 +2515,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2616,8 +2616,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2717,8 +2717,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2818,8 +2818,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -2919,8 +2919,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -3012,8 +3012,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -3105,8 +3105,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -3198,8 +3198,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -3291,8 +3291,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -3384,8 +3384,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -3477,8 +3477,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -3570,8 +3570,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -3663,8 +3663,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -3756,8 +3756,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -3849,8 +3849,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -3942,8 +3942,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -4035,8 +4035,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -4128,8 +4128,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -4221,8 +4221,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -4314,8 +4314,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -4407,8 +4407,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -4500,8 +4500,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -4593,8 +4593,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -4686,8 +4686,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -4779,8 +4779,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -4872,8 +4872,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -4965,8 +4965,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -5058,8 +5058,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -5151,8 +5151,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -5244,8 +5244,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -5337,8 +5337,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -5430,8 +5430,8 @@ export class Vitals { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/workouts/client/Client.ts b/src/api/resources/workouts/client/Client.ts index f33f8ada..dd6f5737 100644 --- a/src/api/resources/workouts/client/Client.ts +++ b/src/api/resources/workouts/client/Client.ts @@ -67,8 +67,8 @@ export class Workouts { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -162,8 +162,8 @@ export class Workouts { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), @@ -240,8 +240,8 @@ export class Workouts { headers: { "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-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, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/labTests/client/requests/AppointmentBookingRequest.ts b/src/api/types/AppointmentBookingRequest.ts similarity index 65% rename from src/api/resources/labTests/client/requests/AppointmentBookingRequest.ts rename to src/api/types/AppointmentBookingRequest.ts index d37abfb3..1ec98aa7 100644 --- a/src/api/resources/labTests/client/requests/AppointmentBookingRequest.ts +++ b/src/api/types/AppointmentBookingRequest.ts @@ -2,12 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -/** - * @example - * { - * bookingKey: "booking_key" - * } - */ export interface AppointmentBookingRequest { bookingKey: string; } diff --git a/src/api/types/AppointmentLocation.ts b/src/api/types/AppointmentLocation.ts new file mode 100644 index 00000000..9d412845 --- /dev/null +++ b/src/api/types/AppointmentLocation.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vital from "../index"; + +export interface AppointmentLocation { + location: Vital.LngLat; + address: Vital.UsAddress; + code: string; + name: string; +} diff --git a/src/api/types/AppointmentProvider.ts b/src/api/types/AppointmentProvider.ts index a02023ff..38018a70 100644 --- a/src/api/types/AppointmentProvider.ts +++ b/src/api/types/AppointmentProvider.ts @@ -2,10 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AppointmentProvider = "getlabs" | "axlehealth" | "phlebfinders"; +export type AppointmentProvider = "getlabs" | "axlehealth" | "phlebfinders" | "quest"; export const AppointmentProvider = { Getlabs: "getlabs", Axlehealth: "axlehealth", Phlebfinders: "phlebfinders", + Quest: "quest", } as const; diff --git a/src/api/types/AppointmentPscLabs.ts b/src/api/types/AppointmentPscLabs.ts new file mode 100644 index 00000000..7c0c15f2 --- /dev/null +++ b/src/api/types/AppointmentPscLabs.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type AppointmentPscLabs = "quest"; diff --git a/src/api/resources/labTests/client/requests/AppointmentRescheduleRequest.ts b/src/api/types/AppointmentRescheduleRequest.ts similarity index 66% rename from src/api/resources/labTests/client/requests/AppointmentRescheduleRequest.ts rename to src/api/types/AppointmentRescheduleRequest.ts index 984f16c9..88e362cc 100644 --- a/src/api/resources/labTests/client/requests/AppointmentRescheduleRequest.ts +++ b/src/api/types/AppointmentRescheduleRequest.ts @@ -2,12 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -/** - * @example - * { - * bookingKey: "booking_key" - * } - */ export interface AppointmentRescheduleRequest { bookingKey: string; } diff --git a/src/api/types/AppointmentType.ts b/src/api/types/AppointmentType.ts index 1c075858..2ab68a08 100644 --- a/src/api/types/AppointmentType.ts +++ b/src/api/types/AppointmentType.ts @@ -2,4 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AppointmentType = "phlebotomy"; +export type AppointmentType = "phlebotomy" | "patient_service_center"; + +export const AppointmentType = { + Phlebotomy: "phlebotomy", + PatientServiceCenter: "patient_service_center", +} as const; diff --git a/src/api/types/ClientFacingWalkInTestOrder.ts b/src/api/types/ClientFacingWalkInTestOrder.ts index da70b3a6..9bd44ce7 100644 --- a/src/api/types/ClientFacingWalkInTestOrder.ts +++ b/src/api/types/ClientFacingWalkInTestOrder.ts @@ -12,4 +12,5 @@ export interface ClientFacingWalkInTestOrder { id: string; createdAt: string; updatedAt: string; + appointmentId?: string; } diff --git a/src/api/types/DaySlots.ts b/src/api/types/DaySlots.ts index 5344e763..dbd8974f 100644 --- a/src/api/types/DaySlots.ts +++ b/src/api/types/DaySlots.ts @@ -5,6 +5,7 @@ import * as Vital from "../index"; export interface DaySlots { + location?: Vital.AppointmentLocation; date: string; slots: Vital.TimeSlot[]; } diff --git a/src/api/types/OAuthProviders.ts b/src/api/types/OAuthProviders.ts index a132b693..6cd936b3 100644 --- a/src/api/types/OAuthProviders.ts +++ b/src/api/types/OAuthProviders.ts @@ -15,7 +15,8 @@ export type OAuthProviders = | "polar" | "cronometer" | "omron" - | "whoop_v2"; + | "whoop_v2" + | "my_fitness_pal_v2"; export const OAuthProviders = { Oura: "oura", @@ -31,4 +32,5 @@ export const OAuthProviders = { Cronometer: "cronometer", Omron: "omron", WhoopV2: "whoop_v2", + MyFitnessPalV2: "my_fitness_pal_v2", } as const; diff --git a/src/api/types/OrderStatus.ts b/src/api/types/OrderStatus.ts index ab7b6c98..2b814570 100644 --- a/src/api/types/OrderStatus.ts +++ b/src/api/types/OrderStatus.ts @@ -9,6 +9,9 @@ export type OrderStatus = | "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" @@ -43,6 +46,9 @@ export const OrderStatus = { SampleWithLabWalkInTestPartialResults: "sample_with_lab.walk_in_test.partial_results", FailedWalkInTestSampleError: "failed.walk_in_test.sample_error", CancelledWalkInTestCancelled: "cancelled.walk_in_test.cancelled", + CollectingSampleWalkInTestAppointmentPending: "collecting_sample.walk_in_test.appointment_pending", + CollectingSampleWalkInTestAppointmentScheduled: "collecting_sample.walk_in_test.appointment_scheduled", + CollectingSampleWalkInTestAppointmentCancelled: "collecting_sample.walk_in_test.appointment_cancelled", ReceivedAtHomePhlebotomyOrdered: "received.at_home_phlebotomy.ordered", ReceivedAtHomePhlebotomyRequisitionCreated: "received.at_home_phlebotomy.requisition_created", CollectingSampleAtHomePhlebotomyAppointmentPending: "collecting_sample.at_home_phlebotomy.appointment_pending", diff --git a/src/api/types/Providers.ts b/src/api/types/Providers.ts index 70059f1c..8b0f1c50 100644 --- a/src/api/types/Providers.ts +++ b/src/api/types/Providers.ts @@ -37,7 +37,8 @@ export type Providers = | "cronometer" | "kardia" | "whoop_v2" - | "ultrahuman"; + | "ultrahuman" + | "my_fitness_pal_v2"; export const Providers = { Oura: "oura", @@ -75,4 +76,5 @@ export const Providers = { Kardia: "kardia", WhoopV2: "whoop_v2", Ultrahuman: "ultrahuman", + MyFitnessPalV2: "my_fitness_pal_v2", } as const; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index bf19c3b6..ea25fe62 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -11,8 +11,12 @@ export * from "./Answer"; export * from "./AoE"; export * from "./AoEAnswer"; export * from "./AppointmentAvailabilitySlots"; +export * from "./AppointmentBookingRequest"; export * from "./AppointmentEventStatus"; +export * from "./AppointmentLocation"; +export * from "./AppointmentPscLabs"; export * from "./AppointmentProvider"; +export * from "./AppointmentRescheduleRequest"; export * from "./AppointmentServiceType"; export * from "./AppointmentStatus"; export * from "./AppointmentType"; diff --git a/src/serialization/resources/labTests/client/getPscAppointmentCancellationReason.ts b/src/serialization/resources/labTests/client/getPscAppointmentCancellationReason.ts new file mode 100644 index 00000000..23c324ec --- /dev/null +++ b/src/serialization/resources/labTests/client/getPscAppointmentCancellationReason.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Vital from "../../../../api/index"; +import * as core from "../../../../core"; +import { ClientFacingAppointmentCancellationReason } from "../../../types/ClientFacingAppointmentCancellationReason"; + +export const Response: core.serialization.Schema< + serializers.labTests.getPscAppointmentCancellationReason.Response.Raw, + Vital.ClientFacingAppointmentCancellationReason[] +> = core.serialization.list(ClientFacingAppointmentCancellationReason); + +export declare namespace Response { + type Raw = ClientFacingAppointmentCancellationReason.Raw[]; +} diff --git a/src/serialization/resources/labTests/client/index.ts b/src/serialization/resources/labTests/client/index.ts index 663e802e..89161b1f 100644 --- a/src/serialization/resources/labTests/client/index.ts +++ b/src/serialization/resources/labTests/client/index.ts @@ -1,4 +1,5 @@ export * as get from "./get"; export * as getLabs from "./getLabs"; export * as getPhlebotomyAppointmentCancellationReason from "./getPhlebotomyAppointmentCancellationReason"; +export * as getPscAppointmentCancellationReason from "./getPscAppointmentCancellationReason"; export * from "./requests"; diff --git a/src/serialization/resources/labTests/client/requests/AppointmentCancelRequest.ts b/src/serialization/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.ts similarity index 56% rename from src/serialization/resources/labTests/client/requests/AppointmentCancelRequest.ts rename to src/serialization/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.ts index 65ccf09e..d80a76d1 100644 --- a/src/serialization/resources/labTests/client/requests/AppointmentCancelRequest.ts +++ b/src/serialization/resources/labTests/client/requests/ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.ts @@ -6,15 +6,15 @@ import * as serializers from "../../../../index"; import * as Vital from "../../../../../api/index"; import * as core from "../../../../../core"; -export const AppointmentCancelRequest: core.serialization.Schema< - serializers.AppointmentCancelRequest.Raw, - Vital.AppointmentCancelRequest +export const ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest: core.serialization.Schema< + serializers.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.Raw, + Vital.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest > = core.serialization.object({ cancellationReasonId: core.serialization.property("cancellation_reason_id", core.serialization.string()), notes: core.serialization.string().optional(), }); -export declare namespace AppointmentCancelRequest { +export declare namespace ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest { interface Raw { cancellation_reason_id: string; notes?: string | null; diff --git a/src/serialization/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.ts b/src/serialization/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.ts new file mode 100644 index 00000000..8fb7f3c9 --- /dev/null +++ b/src/serialization/resources/labTests/client/requests/VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as Vital from "../../../../../api/index"; +import * as core from "../../../../../core"; + +export const VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest: core.serialization.Schema< + serializers.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.Raw, + Vital.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest +> = core.serialization.object({ + cancellationReasonId: core.serialization.string(), + note: core.serialization.string().optional(), +}); + +export declare namespace VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest { + interface Raw { + cancellationReasonId: string; + note?: string | null; + } +} diff --git a/src/serialization/resources/labTests/client/requests/index.ts b/src/serialization/resources/labTests/client/requests/index.ts index f413997d..5d93943e 100644 --- a/src/serialization/resources/labTests/client/requests/index.ts +++ b/src/serialization/resources/labTests/client/requests/index.ts @@ -1,6 +1,5 @@ export { CreateLabTestRequest } from "./CreateLabTestRequest"; -export { AppointmentBookingRequest } from "./AppointmentBookingRequest"; export { RequestAppointmentRequest } from "./RequestAppointmentRequest"; -export { AppointmentRescheduleRequest } from "./AppointmentRescheduleRequest"; -export { AppointmentCancelRequest } from "./AppointmentCancelRequest"; +export { ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest } from "./ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest"; +export { VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest } from "./VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest"; export { CreateOrderRequestCompatible } from "./CreateOrderRequestCompatible"; diff --git a/src/serialization/resources/labTests/client/requests/AppointmentBookingRequest.ts b/src/serialization/types/AppointmentBookingRequest.ts similarity index 64% rename from src/serialization/resources/labTests/client/requests/AppointmentBookingRequest.ts rename to src/serialization/types/AppointmentBookingRequest.ts index d8e46088..392e135d 100644 --- a/src/serialization/resources/labTests/client/requests/AppointmentBookingRequest.ts +++ b/src/serialization/types/AppointmentBookingRequest.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../index"; -import * as Vital from "../../../../../api/index"; -import * as core from "../../../../../core"; +import * as serializers from "../index"; +import * as Vital from "../../api/index"; +import * as core from "../../core"; -export const AppointmentBookingRequest: core.serialization.Schema< +export const AppointmentBookingRequest: core.serialization.ObjectSchema< serializers.AppointmentBookingRequest.Raw, Vital.AppointmentBookingRequest > = core.serialization.object({ diff --git a/src/serialization/types/AppointmentLocation.ts b/src/serialization/types/AppointmentLocation.ts new file mode 100644 index 00000000..92c2b3a1 --- /dev/null +++ b/src/serialization/types/AppointmentLocation.ts @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Vital from "../../api/index"; +import * as core from "../../core"; +import { LngLat } from "./LngLat"; +import { UsAddress } from "./UsAddress"; + +export const AppointmentLocation: core.serialization.ObjectSchema< + serializers.AppointmentLocation.Raw, + Vital.AppointmentLocation +> = core.serialization.object({ + location: LngLat, + address: UsAddress, + code: core.serialization.string(), + name: core.serialization.string(), +}); + +export declare namespace AppointmentLocation { + interface Raw { + location: LngLat.Raw; + address: UsAddress.Raw; + code: string; + name: string; + } +} diff --git a/src/serialization/types/AppointmentProvider.ts b/src/serialization/types/AppointmentProvider.ts index 2387ae8b..eaecff9a 100644 --- a/src/serialization/types/AppointmentProvider.ts +++ b/src/serialization/types/AppointmentProvider.ts @@ -9,8 +9,8 @@ import * as core from "../../core"; export const AppointmentProvider: core.serialization.Schema< serializers.AppointmentProvider.Raw, Vital.AppointmentProvider -> = core.serialization.enum_(["getlabs", "axlehealth", "phlebfinders"]); +> = core.serialization.enum_(["getlabs", "axlehealth", "phlebfinders", "quest"]); export declare namespace AppointmentProvider { - type Raw = "getlabs" | "axlehealth" | "phlebfinders"; + type Raw = "getlabs" | "axlehealth" | "phlebfinders" | "quest"; } diff --git a/src/serialization/types/AppointmentPscLabs.ts b/src/serialization/types/AppointmentPscLabs.ts new file mode 100644 index 00000000..8b6dabc7 --- /dev/null +++ b/src/serialization/types/AppointmentPscLabs.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Vital from "../../api/index"; +import * as core from "../../core"; + +export const AppointmentPscLabs: core.serialization.Schema< + serializers.AppointmentPscLabs.Raw, + Vital.AppointmentPscLabs +> = core.serialization.stringLiteral("quest"); + +export declare namespace AppointmentPscLabs { + type Raw = "quest"; +} diff --git a/src/serialization/resources/labTests/client/requests/AppointmentRescheduleRequest.ts b/src/serialization/types/AppointmentRescheduleRequest.ts similarity index 65% rename from src/serialization/resources/labTests/client/requests/AppointmentRescheduleRequest.ts rename to src/serialization/types/AppointmentRescheduleRequest.ts index 8f1121c8..13b8beac 100644 --- a/src/serialization/resources/labTests/client/requests/AppointmentRescheduleRequest.ts +++ b/src/serialization/types/AppointmentRescheduleRequest.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../index"; -import * as Vital from "../../../../../api/index"; -import * as core from "../../../../../core"; +import * as serializers from "../index"; +import * as Vital from "../../api/index"; +import * as core from "../../core"; -export const AppointmentRescheduleRequest: core.serialization.Schema< +export const AppointmentRescheduleRequest: core.serialization.ObjectSchema< serializers.AppointmentRescheduleRequest.Raw, Vital.AppointmentRescheduleRequest > = core.serialization.object({ diff --git a/src/serialization/types/AppointmentType.ts b/src/serialization/types/AppointmentType.ts index 3d6339cc..f9207712 100644 --- a/src/serialization/types/AppointmentType.ts +++ b/src/serialization/types/AppointmentType.ts @@ -7,8 +7,8 @@ import * as Vital from "../../api/index"; import * as core from "../../core"; export const AppointmentType: core.serialization.Schema = - core.serialization.stringLiteral("phlebotomy"); + core.serialization.enum_(["phlebotomy", "patient_service_center"]); export declare namespace AppointmentType { - type Raw = "phlebotomy"; + type Raw = "phlebotomy" | "patient_service_center"; } diff --git a/src/serialization/types/ClientFacingWalkInTestOrder.ts b/src/serialization/types/ClientFacingWalkInTestOrder.ts index 89f4a063..cb560896 100644 --- a/src/serialization/types/ClientFacingWalkInTestOrder.ts +++ b/src/serialization/types/ClientFacingWalkInTestOrder.ts @@ -13,6 +13,7 @@ export const ClientFacingWalkInTestOrder: core.serialization.ObjectSchema< id: core.serialization.string(), createdAt: core.serialization.property("created_at", core.serialization.string()), updatedAt: core.serialization.property("updated_at", core.serialization.string()), + appointmentId: core.serialization.property("appointment_id", core.serialization.string().optional()), }); export declare namespace ClientFacingWalkInTestOrder { @@ -20,5 +21,6 @@ export declare namespace ClientFacingWalkInTestOrder { id: string; created_at: string; updated_at: string; + appointment_id?: string | null; } } diff --git a/src/serialization/types/DaySlots.ts b/src/serialization/types/DaySlots.ts index 38327edd..d6672a0c 100644 --- a/src/serialization/types/DaySlots.ts +++ b/src/serialization/types/DaySlots.ts @@ -5,16 +5,19 @@ import * as serializers from "../index"; import * as Vital from "../../api/index"; import * as core from "../../core"; +import { AppointmentLocation } from "./AppointmentLocation"; import { TimeSlot } from "./TimeSlot"; export const DaySlots: core.serialization.ObjectSchema = core.serialization.object({ + location: AppointmentLocation.optional(), date: core.serialization.string(), slots: core.serialization.list(TimeSlot), }); export declare namespace DaySlots { interface Raw { + location?: AppointmentLocation.Raw | null; date: string; slots: TimeSlot.Raw[]; } diff --git a/src/serialization/types/OAuthProviders.ts b/src/serialization/types/OAuthProviders.ts index 59cbf35f..21e51392 100644 --- a/src/serialization/types/OAuthProviders.ts +++ b/src/serialization/types/OAuthProviders.ts @@ -21,6 +21,7 @@ export const OAuthProviders: core.serialization.Schema