@tryvital/vital-node 3.1.253 → 3.1.254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/aggregate/client/Client.js +2 -2
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/electrocardiogram/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +3 -3
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.js +40 -40
- package/api/resources/link/client/Client.js +19 -19
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/order/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/sleepCycle/client/Client.js +1 -1
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +16 -16
- package/api/resources/vitals/client/Client.d.ts +39 -0
- package/api/resources/vitals/client/Client.js +315 -75
- package/api/resources/vitals/client/requests/VitalsHeartRateRecoveryOneMinuteGroupedRequest.d.ts +31 -0
- package/api/resources/vitals/client/requests/VitalsHeartRateRecoveryOneMinuteGroupedRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsWorkoutDistanceGroupedRequest.d.ts +31 -0
- package/api/resources/vitals/client/requests/VitalsWorkoutDistanceGroupedRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsWorkoutSwimmingStrokeGroupedRequest.d.ts +31 -0
- package/api/resources/vitals/client/requests/VitalsWorkoutSwimmingStrokeGroupedRequest.js +5 -0
- package/api/resources/vitals/client/requests/index.d.ts +3 -0
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ClientFacingHeartRateRecoveryOneMinuteChanged.d.ts +11 -0
- package/api/types/ClientFacingHeartRateRecoveryOneMinuteChanged.js +5 -0
- package/api/types/ClientFacingHeartRateRecoveryOneMinuteChangedEventType.d.ts +8 -0
- package/api/types/ClientFacingHeartRateRecoveryOneMinuteChangedEventType.js +10 -0
- package/api/types/ClientFacingHeartRateRecoveryOneMinuteHistoricalPullCompleted.d.ts +11 -0
- package/api/types/ClientFacingHeartRateRecoveryOneMinuteHistoricalPullCompleted.js +5 -0
- package/api/types/ClientFacingHeartRateRecoveryOneMinuteSample.d.ts +20 -0
- package/api/types/ClientFacingHeartRateRecoveryOneMinuteSample.js +5 -0
- package/api/types/ClientFacingResource.d.ts +4 -1
- package/api/types/ClientFacingResource.js +3 -0
- package/api/types/ClientFacingWorkoutDistanceChanged.d.ts +11 -0
- package/api/types/ClientFacingWorkoutDistanceChanged.js +5 -0
- package/api/types/ClientFacingWorkoutDistanceChangedEventType.d.ts +8 -0
- package/api/types/ClientFacingWorkoutDistanceChangedEventType.js +10 -0
- package/api/types/ClientFacingWorkoutDistanceHistoricalPullCompleted.d.ts +11 -0
- package/api/types/ClientFacingWorkoutDistanceHistoricalPullCompleted.js +5 -0
- package/api/types/ClientFacingWorkoutDistanceSample.d.ts +20 -0
- package/api/types/ClientFacingWorkoutDistanceSample.js +5 -0
- package/api/types/ClientFacingWorkoutSwimmingStrokeChanged.d.ts +11 -0
- package/api/types/ClientFacingWorkoutSwimmingStrokeChanged.js +5 -0
- package/api/types/ClientFacingWorkoutSwimmingStrokeChangedEventType.d.ts +8 -0
- package/api/types/ClientFacingWorkoutSwimmingStrokeChangedEventType.js +10 -0
- package/api/types/ClientFacingWorkoutSwimmingStrokeHistoricalPullCompleted.d.ts +11 -0
- package/api/types/ClientFacingWorkoutSwimmingStrokeHistoricalPullCompleted.js +5 -0
- package/api/types/ClientFacingWorkoutSwimmingStrokeSample.d.ts +20 -0
- package/api/types/ClientFacingWorkoutSwimmingStrokeSample.js +5 -0
- package/api/types/GroupedHeartRateRecoveryOneMinute.d.ts +8 -0
- package/api/types/GroupedHeartRateRecoveryOneMinute.js +5 -0
- package/api/types/GroupedHeartRateRecoveryOneMinuteResponse.d.ts +12 -0
- package/api/types/GroupedHeartRateRecoveryOneMinuteResponse.js +5 -0
- package/api/types/GroupedWorkoutDistance.d.ts +8 -0
- package/api/types/GroupedWorkoutDistance.js +5 -0
- package/api/types/GroupedWorkoutDistanceResponse.d.ts +12 -0
- package/api/types/GroupedWorkoutDistanceResponse.js +5 -0
- package/api/types/GroupedWorkoutSwimmingStroke.d.ts +8 -0
- package/api/types/GroupedWorkoutSwimmingStroke.js +5 -0
- package/api/types/GroupedWorkoutSwimmingStrokeResponse.d.ts +12 -0
- package/api/types/GroupedWorkoutSwimmingStrokeResponse.js +5 -0
- package/api/types/TimeseriesResource.d.ts +4 -1
- package/api/types/TimeseriesResource.js +3 -0
- package/api/types/index.d.ts +18 -0
- package/api/types/index.js +18 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +2 -2
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +3 -3
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.js +40 -40
- package/dist/api/resources/link/client/Client.js +19 -19
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
- package/dist/api/resources/order/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/sleepCycle/client/Client.js +1 -1
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +16 -16
- package/dist/api/resources/vitals/client/Client.d.ts +39 -0
- package/dist/api/resources/vitals/client/Client.js +315 -75
- package/dist/api/resources/vitals/client/requests/VitalsHeartRateRecoveryOneMinuteGroupedRequest.d.ts +31 -0
- package/dist/api/resources/vitals/client/requests/VitalsHeartRateRecoveryOneMinuteGroupedRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsWorkoutDistanceGroupedRequest.d.ts +31 -0
- package/dist/api/resources/vitals/client/requests/VitalsWorkoutDistanceGroupedRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsWorkoutSwimmingStrokeGroupedRequest.d.ts +31 -0
- package/dist/api/resources/vitals/client/requests/VitalsWorkoutSwimmingStrokeGroupedRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/index.d.ts +3 -0
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ClientFacingHeartRateRecoveryOneMinuteChanged.d.ts +11 -0
- package/dist/api/types/ClientFacingHeartRateRecoveryOneMinuteChanged.js +5 -0
- package/dist/api/types/ClientFacingHeartRateRecoveryOneMinuteChangedEventType.d.ts +8 -0
- package/dist/api/types/ClientFacingHeartRateRecoveryOneMinuteChangedEventType.js +10 -0
- package/dist/api/types/ClientFacingHeartRateRecoveryOneMinuteHistoricalPullCompleted.d.ts +11 -0
- package/dist/api/types/ClientFacingHeartRateRecoveryOneMinuteHistoricalPullCompleted.js +5 -0
- package/dist/api/types/ClientFacingHeartRateRecoveryOneMinuteSample.d.ts +20 -0
- package/dist/api/types/ClientFacingHeartRateRecoveryOneMinuteSample.js +5 -0
- package/dist/api/types/ClientFacingResource.d.ts +4 -1
- package/dist/api/types/ClientFacingResource.js +3 -0
- package/dist/api/types/ClientFacingWorkoutDistanceChanged.d.ts +11 -0
- package/dist/api/types/ClientFacingWorkoutDistanceChanged.js +5 -0
- package/dist/api/types/ClientFacingWorkoutDistanceChangedEventType.d.ts +8 -0
- package/dist/api/types/ClientFacingWorkoutDistanceChangedEventType.js +10 -0
- package/dist/api/types/ClientFacingWorkoutDistanceHistoricalPullCompleted.d.ts +11 -0
- package/dist/api/types/ClientFacingWorkoutDistanceHistoricalPullCompleted.js +5 -0
- package/dist/api/types/ClientFacingWorkoutDistanceSample.d.ts +20 -0
- package/dist/api/types/ClientFacingWorkoutDistanceSample.js +5 -0
- package/dist/api/types/ClientFacingWorkoutSwimmingStrokeChanged.d.ts +11 -0
- package/dist/api/types/ClientFacingWorkoutSwimmingStrokeChanged.js +5 -0
- package/dist/api/types/ClientFacingWorkoutSwimmingStrokeChangedEventType.d.ts +8 -0
- package/dist/api/types/ClientFacingWorkoutSwimmingStrokeChangedEventType.js +10 -0
- package/dist/api/types/ClientFacingWorkoutSwimmingStrokeHistoricalPullCompleted.d.ts +11 -0
- package/dist/api/types/ClientFacingWorkoutSwimmingStrokeHistoricalPullCompleted.js +5 -0
- package/dist/api/types/ClientFacingWorkoutSwimmingStrokeSample.d.ts +20 -0
- package/dist/api/types/ClientFacingWorkoutSwimmingStrokeSample.js +5 -0
- package/dist/api/types/GroupedHeartRateRecoveryOneMinute.d.ts +8 -0
- package/dist/api/types/GroupedHeartRateRecoveryOneMinute.js +5 -0
- package/dist/api/types/GroupedHeartRateRecoveryOneMinuteResponse.d.ts +12 -0
- package/dist/api/types/GroupedHeartRateRecoveryOneMinuteResponse.js +5 -0
- package/dist/api/types/GroupedWorkoutDistance.d.ts +8 -0
- package/dist/api/types/GroupedWorkoutDistance.js +5 -0
- package/dist/api/types/GroupedWorkoutDistanceResponse.d.ts +12 -0
- package/dist/api/types/GroupedWorkoutDistanceResponse.js +5 -0
- package/dist/api/types/GroupedWorkoutSwimmingStroke.d.ts +8 -0
- package/dist/api/types/GroupedWorkoutSwimmingStroke.js +5 -0
- package/dist/api/types/GroupedWorkoutSwimmingStrokeResponse.d.ts +12 -0
- package/dist/api/types/GroupedWorkoutSwimmingStrokeResponse.js +5 -0
- package/dist/api/types/TimeseriesResource.d.ts +4 -1
- package/dist/api/types/TimeseriesResource.js +3 -0
- package/dist/api/types/index.d.ts +18 -0
- package/dist/api/types/index.js +18 -0
- package/dist/serialization/types/ClientFacingHeartRateRecoveryOneMinuteChanged.d.ts +18 -0
- package/dist/serialization/types/ClientFacingHeartRateRecoveryOneMinuteChanged.js +39 -0
- package/dist/serialization/types/ClientFacingHeartRateRecoveryOneMinuteChangedEventType.d.ts +10 -0
- package/dist/serialization/types/ClientFacingHeartRateRecoveryOneMinuteChangedEventType.js +34 -0
- package/dist/serialization/types/ClientFacingHeartRateRecoveryOneMinuteHistoricalPullCompleted.d.ts +17 -0
- package/dist/serialization/types/ClientFacingHeartRateRecoveryOneMinuteHistoricalPullCompleted.js +38 -0
- package/dist/serialization/types/ClientFacingHeartRateRecoveryOneMinuteSample.d.ts +19 -0
- package/dist/serialization/types/ClientFacingHeartRateRecoveryOneMinuteSample.js +40 -0
- package/dist/serialization/types/ClientFacingResource.d.ts +1 -1
- package/dist/serialization/types/ClientFacingResource.js +3 -0
- package/dist/serialization/types/ClientFacingWorkoutDistanceChanged.d.ts +18 -0
- package/dist/serialization/types/ClientFacingWorkoutDistanceChanged.js +39 -0
- package/dist/serialization/types/ClientFacingWorkoutDistanceChangedEventType.d.ts +10 -0
- package/dist/serialization/types/ClientFacingWorkoutDistanceChangedEventType.js +31 -0
- package/dist/serialization/types/ClientFacingWorkoutDistanceHistoricalPullCompleted.d.ts +17 -0
- package/dist/serialization/types/ClientFacingWorkoutDistanceHistoricalPullCompleted.js +38 -0
- package/dist/serialization/types/ClientFacingWorkoutDistanceSample.d.ts +19 -0
- package/dist/serialization/types/ClientFacingWorkoutDistanceSample.js +40 -0
- package/dist/serialization/types/ClientFacingWorkoutSwimmingStrokeChanged.d.ts +18 -0
- package/dist/serialization/types/ClientFacingWorkoutSwimmingStrokeChanged.js +39 -0
- package/dist/serialization/types/ClientFacingWorkoutSwimmingStrokeChangedEventType.d.ts +10 -0
- package/dist/serialization/types/ClientFacingWorkoutSwimmingStrokeChangedEventType.js +34 -0
- package/dist/serialization/types/ClientFacingWorkoutSwimmingStrokeHistoricalPullCompleted.d.ts +17 -0
- package/dist/serialization/types/ClientFacingWorkoutSwimmingStrokeHistoricalPullCompleted.js +38 -0
- package/dist/serialization/types/ClientFacingWorkoutSwimmingStrokeSample.d.ts +19 -0
- package/dist/serialization/types/ClientFacingWorkoutSwimmingStrokeSample.js +40 -0
- package/dist/serialization/types/GroupedHeartRateRecoveryOneMinute.d.ts +15 -0
- package/dist/serialization/types/GroupedHeartRateRecoveryOneMinute.js +36 -0
- package/dist/serialization/types/GroupedHeartRateRecoveryOneMinuteResponse.d.ts +15 -0
- package/dist/serialization/types/GroupedHeartRateRecoveryOneMinuteResponse.js +36 -0
- package/dist/serialization/types/GroupedWorkoutDistance.d.ts +15 -0
- package/dist/serialization/types/GroupedWorkoutDistance.js +36 -0
- package/dist/serialization/types/GroupedWorkoutDistanceResponse.d.ts +15 -0
- package/dist/serialization/types/GroupedWorkoutDistanceResponse.js +36 -0
- package/dist/serialization/types/GroupedWorkoutSwimmingStroke.d.ts +15 -0
- package/dist/serialization/types/GroupedWorkoutSwimmingStroke.js +36 -0
- package/dist/serialization/types/GroupedWorkoutSwimmingStrokeResponse.d.ts +15 -0
- package/dist/serialization/types/GroupedWorkoutSwimmingStrokeResponse.js +36 -0
- package/dist/serialization/types/TimeseriesResource.d.ts +1 -1
- package/dist/serialization/types/TimeseriesResource.js +3 -0
- package/dist/serialization/types/index.d.ts +18 -0
- package/dist/serialization/types/index.js +18 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +174 -0
- package/serialization/types/ClientFacingHeartRateRecoveryOneMinuteChanged.d.ts +18 -0
- package/serialization/types/ClientFacingHeartRateRecoveryOneMinuteChanged.js +39 -0
- package/serialization/types/ClientFacingHeartRateRecoveryOneMinuteChangedEventType.d.ts +10 -0
- package/serialization/types/ClientFacingHeartRateRecoveryOneMinuteChangedEventType.js +34 -0
- package/serialization/types/ClientFacingHeartRateRecoveryOneMinuteHistoricalPullCompleted.d.ts +17 -0
- package/serialization/types/ClientFacingHeartRateRecoveryOneMinuteHistoricalPullCompleted.js +38 -0
- package/serialization/types/ClientFacingHeartRateRecoveryOneMinuteSample.d.ts +19 -0
- package/serialization/types/ClientFacingHeartRateRecoveryOneMinuteSample.js +40 -0
- package/serialization/types/ClientFacingResource.d.ts +1 -1
- package/serialization/types/ClientFacingResource.js +3 -0
- package/serialization/types/ClientFacingWorkoutDistanceChanged.d.ts +18 -0
- package/serialization/types/ClientFacingWorkoutDistanceChanged.js +39 -0
- package/serialization/types/ClientFacingWorkoutDistanceChangedEventType.d.ts +10 -0
- package/serialization/types/ClientFacingWorkoutDistanceChangedEventType.js +31 -0
- package/serialization/types/ClientFacingWorkoutDistanceHistoricalPullCompleted.d.ts +17 -0
- package/serialization/types/ClientFacingWorkoutDistanceHistoricalPullCompleted.js +38 -0
- package/serialization/types/ClientFacingWorkoutDistanceSample.d.ts +19 -0
- package/serialization/types/ClientFacingWorkoutDistanceSample.js +40 -0
- package/serialization/types/ClientFacingWorkoutSwimmingStrokeChanged.d.ts +18 -0
- package/serialization/types/ClientFacingWorkoutSwimmingStrokeChanged.js +39 -0
- package/serialization/types/ClientFacingWorkoutSwimmingStrokeChangedEventType.d.ts +10 -0
- package/serialization/types/ClientFacingWorkoutSwimmingStrokeChangedEventType.js +34 -0
- package/serialization/types/ClientFacingWorkoutSwimmingStrokeHistoricalPullCompleted.d.ts +17 -0
- package/serialization/types/ClientFacingWorkoutSwimmingStrokeHistoricalPullCompleted.js +38 -0
- package/serialization/types/ClientFacingWorkoutSwimmingStrokeSample.d.ts +19 -0
- package/serialization/types/ClientFacingWorkoutSwimmingStrokeSample.js +40 -0
- package/serialization/types/GroupedHeartRateRecoveryOneMinute.d.ts +15 -0
- package/serialization/types/GroupedHeartRateRecoveryOneMinute.js +36 -0
- package/serialization/types/GroupedHeartRateRecoveryOneMinuteResponse.d.ts +15 -0
- package/serialization/types/GroupedHeartRateRecoveryOneMinuteResponse.js +36 -0
- package/serialization/types/GroupedWorkoutDistance.d.ts +15 -0
- package/serialization/types/GroupedWorkoutDistance.js +36 -0
- package/serialization/types/GroupedWorkoutDistanceResponse.d.ts +15 -0
- package/serialization/types/GroupedWorkoutDistanceResponse.js +36 -0
- package/serialization/types/GroupedWorkoutSwimmingStroke.d.ts +15 -0
- package/serialization/types/GroupedWorkoutSwimmingStroke.js +36 -0
- package/serialization/types/GroupedWorkoutSwimmingStrokeResponse.d.ts +15 -0
- package/serialization/types/GroupedWorkoutSwimmingStrokeResponse.js +36 -0
- package/serialization/types/TimeseriesResource.d.ts +1 -1
- package/serialization/types/TimeseriesResource.js +3 -0
- package/serialization/types/index.d.ts +18 -0
- package/serialization/types/index.js +18 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
@@ -78,7 +78,7 @@ class Activity {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -154,7 +154,7 @@ class Activity {
|
|
154
154
|
const _response = yield core.fetcher({
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}/raw`),
|
156
156
|
method: "GET",
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
158
158
|
contentType: "application/json",
|
159
159
|
queryParameters: _queryParams,
|
160
160
|
requestType: "json",
|
@@ -81,7 +81,7 @@ class Aggregate {
|
|
81
81
|
const _response = yield core.fetcher({
|
82
82
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/query`),
|
83
83
|
method: "POST",
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
|
85
85
|
contentType: "application/json",
|
86
86
|
requestType: "json",
|
87
87
|
body: serializers.QueryBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -144,7 +144,7 @@ class Aggregate {
|
|
144
144
|
const _response = yield core.fetcher({
|
145
145
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/continuous_query/${encodeURIComponent(queryIdOrSlug)}/result_table`),
|
146
146
|
method: "GET",
|
147
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
147
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
|
148
148
|
contentType: "application/json",
|
149
149
|
requestType: "json",
|
150
150
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -78,7 +78,7 @@ class Body {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -154,7 +154,7 @@ class Body {
|
|
154
154
|
const _response = yield core.fetcher({
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${encodeURIComponent(userId)}/raw`),
|
156
156
|
method: "GET",
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
158
158
|
contentType: "application/json",
|
159
159
|
queryParameters: _queryParams,
|
160
160
|
requestType: "json",
|
@@ -72,7 +72,7 @@ class Devices {
|
|
72
72
|
const _response = yield core.fetcher({
|
73
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${encodeURIComponent(userId)}/raw`),
|
74
74
|
method: "GET",
|
75
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
76
76
|
contentType: "application/json",
|
77
77
|
queryParameters: _queryParams,
|
78
78
|
requestType: "json",
|
@@ -78,7 +78,7 @@ class Electrocardiogram {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/electrocardiogram/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -75,7 +75,7 @@ class Insurance {
|
|
75
75
|
const _response = yield core.fetcher({
|
76
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
|
77
77
|
method: "GET",
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
79
79
|
contentType: "application/json",
|
80
80
|
queryParameters: _queryParams,
|
81
81
|
requestType: "json",
|
@@ -137,7 +137,7 @@ class Insurance {
|
|
137
137
|
const _response = yield core.fetcher({
|
138
138
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
|
139
139
|
method: "POST",
|
140
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
140
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
141
141
|
contentType: "application/json",
|
142
142
|
requestType: "json",
|
143
143
|
body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -204,7 +204,7 @@ class Insurance {
|
|
204
204
|
const _response = yield core.fetcher({
|
205
205
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
|
206
206
|
method: "GET",
|
207
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
207
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
208
208
|
contentType: "application/json",
|
209
209
|
queryParameters: _queryParams,
|
210
210
|
requestType: "json",
|
@@ -81,7 +81,7 @@ class Introspect {
|
|
81
81
|
const _response = yield core.fetcher({
|
82
82
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
|
83
83
|
method: "GET",
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
85
85
|
contentType: "application/json",
|
86
86
|
queryParameters: _queryParams,
|
87
87
|
requestType: "json",
|
@@ -160,7 +160,7 @@ class Introspect {
|
|
160
160
|
const _response = yield core.fetcher({
|
161
161
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
|
162
162
|
method: "GET",
|
163
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
163
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
164
164
|
contentType: "application/json",
|
165
165
|
queryParameters: _queryParams,
|
166
166
|
requestType: "json",
|
@@ -105,7 +105,7 @@ class LabTests {
|
|
105
105
|
const _response = yield core.fetcher({
|
106
106
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
|
107
107
|
method: "GET",
|
108
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
108
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
109
109
|
contentType: "application/json",
|
110
110
|
queryParameters: _queryParams,
|
111
111
|
requestType: "json",
|
@@ -171,7 +171,7 @@ class LabTests {
|
|
171
171
|
const _response = yield core.fetcher({
|
172
172
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
|
173
173
|
method: "POST",
|
174
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
174
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
175
175
|
contentType: "application/json",
|
176
176
|
requestType: "json",
|
177
177
|
body: serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -235,7 +235,7 @@ class LabTests {
|
|
235
235
|
const _response = yield core.fetcher({
|
236
236
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}`),
|
237
237
|
method: "GET",
|
238
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
238
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
239
239
|
contentType: "application/json",
|
240
240
|
requestType: "json",
|
241
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -297,7 +297,7 @@ class LabTests {
|
|
297
297
|
const _response = yield core.fetcher({
|
298
298
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}`),
|
299
299
|
method: "PATCH",
|
300
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
300
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
301
301
|
contentType: "application/json",
|
302
302
|
requestType: "json",
|
303
303
|
body: serializers.UpdateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -383,7 +383,7 @@ class LabTests {
|
|
383
383
|
const _response = yield core.fetcher({
|
384
384
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/markers"),
|
385
385
|
method: "GET",
|
386
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
386
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
387
387
|
contentType: "application/json",
|
388
388
|
queryParameters: _queryParams,
|
389
389
|
requestType: "json",
|
@@ -455,7 +455,7 @@ class LabTests {
|
|
455
455
|
const _response = yield core.fetcher({
|
456
456
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/list_order_set_markers"),
|
457
457
|
method: "POST",
|
458
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
458
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
459
459
|
contentType: "application/json",
|
460
460
|
queryParameters: _queryParams,
|
461
461
|
requestType: "json",
|
@@ -527,7 +527,7 @@ class LabTests {
|
|
527
527
|
const _response = yield core.fetcher({
|
528
528
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}/markers`),
|
529
529
|
method: "GET",
|
530
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
530
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
531
531
|
contentType: "application/json",
|
532
532
|
queryParameters: _queryParams,
|
533
533
|
requestType: "json",
|
@@ -592,7 +592,7 @@ class LabTests {
|
|
592
592
|
const _response = yield core.fetcher({
|
593
593
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labId)}/markers/${encodeURIComponent(providerId)}`),
|
594
594
|
method: "GET",
|
595
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
595
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
596
596
|
contentType: "application/json",
|
597
597
|
requestType: "json",
|
598
598
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -652,7 +652,7 @@ class LabTests {
|
|
652
652
|
const _response = yield core.fetcher({
|
653
653
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/labs"),
|
654
654
|
method: "GET",
|
655
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
655
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
656
656
|
contentType: "application/json",
|
657
657
|
requestType: "json",
|
658
658
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -750,7 +750,7 @@ class LabTests {
|
|
750
750
|
const _response = yield core.fetcher({
|
751
751
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_test"),
|
752
752
|
method: "GET",
|
753
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
753
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
754
754
|
contentType: "application/json",
|
755
755
|
queryParameters: _queryParams,
|
756
756
|
requestType: "json",
|
@@ -807,7 +807,7 @@ class LabTests {
|
|
807
807
|
const _response = yield core.fetcher({
|
808
808
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_test/${encodeURIComponent(labTestId)}/collection_instruction_pdf`),
|
809
809
|
method: "GET",
|
810
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
810
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
811
811
|
contentType: "application/json",
|
812
812
|
requestType: "json",
|
813
813
|
responseType: "streaming",
|
@@ -879,7 +879,7 @@ class LabTests {
|
|
879
879
|
const _response = yield core.fetcher({
|
880
880
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/availability"),
|
881
881
|
method: "POST",
|
882
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
882
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
883
883
|
contentType: "application/json",
|
884
884
|
queryParameters: _queryParams,
|
885
885
|
requestType: "json",
|
@@ -947,7 +947,7 @@ class LabTests {
|
|
947
947
|
const _response = yield core.fetcher({
|
948
948
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/book`),
|
949
949
|
method: "POST",
|
950
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
950
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
951
951
|
contentType: "application/json",
|
952
952
|
requestType: "json",
|
953
953
|
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1020,7 +1020,7 @@ class LabTests {
|
|
1020
1020
|
const _response = yield core.fetcher({
|
1021
1021
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/request`),
|
1022
1022
|
method: "POST",
|
1023
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1023
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1024
1024
|
contentType: "application/json",
|
1025
1025
|
requestType: "json",
|
1026
1026
|
body: serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1087,7 +1087,7 @@ class LabTests {
|
|
1087
1087
|
const _response = yield core.fetcher({
|
1088
1088
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/reschedule`),
|
1089
1089
|
method: "PATCH",
|
1090
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1090
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1091
1091
|
contentType: "application/json",
|
1092
1092
|
requestType: "json",
|
1093
1093
|
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1154,7 +1154,7 @@ class LabTests {
|
|
1154
1154
|
const _response = yield core.fetcher({
|
1155
1155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/cancel`),
|
1156
1156
|
method: "PATCH",
|
1157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1158
1158
|
contentType: "application/json",
|
1159
1159
|
requestType: "json",
|
1160
1160
|
body: serializers.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1215,7 +1215,7 @@ class LabTests {
|
|
1215
1215
|
const _response = yield core.fetcher({
|
1216
1216
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/cancellation-reasons"),
|
1217
1217
|
method: "GET",
|
1218
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1218
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1219
1219
|
contentType: "application/json",
|
1220
1220
|
requestType: "json",
|
1221
1221
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1268,7 +1268,7 @@ class LabTests {
|
|
1268
1268
|
const _response = yield core.fetcher({
|
1269
1269
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment`),
|
1270
1270
|
method: "GET",
|
1271
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1271
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1272
1272
|
contentType: "application/json",
|
1273
1273
|
requestType: "json",
|
1274
1274
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1346,7 +1346,7 @@ class LabTests {
|
|
1346
1346
|
const _response = yield core.fetcher({
|
1347
1347
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/area/info"),
|
1348
1348
|
method: "GET",
|
1349
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1349
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1350
1350
|
contentType: "application/json",
|
1351
1351
|
queryParameters: _queryParams,
|
1352
1352
|
requestType: "json",
|
@@ -1418,7 +1418,7 @@ class LabTests {
|
|
1418
1418
|
const _response = yield core.fetcher({
|
1419
1419
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/info"),
|
1420
1420
|
method: "GET",
|
1421
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1421
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1422
1422
|
contentType: "application/json",
|
1423
1423
|
queryParameters: _queryParams,
|
1424
1424
|
requestType: "json",
|
@@ -1486,7 +1486,7 @@ class LabTests {
|
|
1486
1486
|
const _response = yield core.fetcher({
|
1487
1487
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/info`),
|
1488
1488
|
method: "GET",
|
1489
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1489
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1490
1490
|
contentType: "application/json",
|
1491
1491
|
queryParameters: _queryParams,
|
1492
1492
|
requestType: "json",
|
@@ -1543,7 +1543,7 @@ class LabTests {
|
|
1543
1543
|
const _response = yield core.fetcher({
|
1544
1544
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result/pdf`),
|
1545
1545
|
method: "GET",
|
1546
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1546
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1547
1547
|
contentType: "application/json",
|
1548
1548
|
requestType: "json",
|
1549
1549
|
responseType: "streaming",
|
@@ -1603,7 +1603,7 @@ class LabTests {
|
|
1603
1603
|
const _response = yield core.fetcher({
|
1604
1604
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result/metadata`),
|
1605
1605
|
method: "GET",
|
1606
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1606
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1607
1607
|
contentType: "application/json",
|
1608
1608
|
requestType: "json",
|
1609
1609
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1666,7 +1666,7 @@ class LabTests {
|
|
1666
1666
|
const _response = yield core.fetcher({
|
1667
1667
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result`),
|
1668
1668
|
method: "GET",
|
1669
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1669
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1670
1670
|
contentType: "application/json",
|
1671
1671
|
requestType: "json",
|
1672
1672
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1728,7 +1728,7 @@ class LabTests {
|
|
1728
1728
|
const _response = yield core.fetcher({
|
1729
1729
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/labels/pdf`),
|
1730
1730
|
method: "GET",
|
1731
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1731
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1732
1732
|
contentType: "application/json",
|
1733
1733
|
queryParameters: _queryParams,
|
1734
1734
|
requestType: "json",
|
@@ -1808,7 +1808,7 @@ class LabTests {
|
|
1808
1808
|
const _response = yield core.fetcher({
|
1809
1809
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/appointment/availability"),
|
1810
1810
|
method: "POST",
|
1811
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1811
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1812
1812
|
contentType: "application/json",
|
1813
1813
|
queryParameters: _queryParams,
|
1814
1814
|
requestType: "json",
|
@@ -1873,7 +1873,7 @@ class LabTests {
|
|
1873
1873
|
const _response = yield core.fetcher({
|
1874
1874
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment/book`),
|
1875
1875
|
method: "POST",
|
1876
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1876
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1877
1877
|
contentType: "application/json",
|
1878
1878
|
requestType: "json",
|
1879
1879
|
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1938,7 +1938,7 @@ class LabTests {
|
|
1938
1938
|
const _response = yield core.fetcher({
|
1939
1939
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment/reschedule`),
|
1940
1940
|
method: "PATCH",
|
1941
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1941
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1942
1942
|
contentType: "application/json",
|
1943
1943
|
requestType: "json",
|
1944
1944
|
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -2003,7 +2003,7 @@ class LabTests {
|
|
2003
2003
|
const _response = yield core.fetcher({
|
2004
2004
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment/cancel`),
|
2005
2005
|
method: "PATCH",
|
2006
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2006
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2007
2007
|
contentType: "application/json",
|
2008
2008
|
requestType: "json",
|
2009
2009
|
body: serializers.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.jsonOrThrow(request, {
|
@@ -2064,7 +2064,7 @@ class LabTests {
|
|
2064
2064
|
const _response = yield core.fetcher({
|
2065
2065
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/appointment/cancellation-reasons"),
|
2066
2066
|
method: "GET",
|
2067
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2067
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2068
2068
|
contentType: "application/json",
|
2069
2069
|
requestType: "json",
|
2070
2070
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2117,7 +2117,7 @@ class LabTests {
|
|
2117
2117
|
const _response = yield core.fetcher({
|
2118
2118
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment`),
|
2119
2119
|
method: "GET",
|
2120
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2121
2121
|
contentType: "application/json",
|
2122
2122
|
requestType: "json",
|
2123
2123
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2173,7 +2173,7 @@ class LabTests {
|
|
2173
2173
|
const _response = yield core.fetcher({
|
2174
2174
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/collection_instruction_pdf`),
|
2175
2175
|
method: "GET",
|
2176
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2176
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2177
2177
|
contentType: "application/json",
|
2178
2178
|
requestType: "json",
|
2179
2179
|
responseType: "streaming",
|
@@ -2225,7 +2225,7 @@ class LabTests {
|
|
2225
2225
|
const _response = yield core.fetcher({
|
2226
2226
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/requisition/pdf`),
|
2227
2227
|
method: "GET",
|
2228
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2228
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2229
2229
|
contentType: "application/json",
|
2230
2230
|
requestType: "json",
|
2231
2231
|
responseType: "streaming",
|
@@ -2277,7 +2277,7 @@ class LabTests {
|
|
2277
2277
|
const _response = yield core.fetcher({
|
2278
2278
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/abn_pdf`),
|
2279
2279
|
method: "GET",
|
2280
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2280
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2281
2281
|
contentType: "application/json",
|
2282
2282
|
requestType: "json",
|
2283
2283
|
responseType: "streaming",
|
@@ -2336,7 +2336,7 @@ class LabTests {
|
|
2336
2336
|
const _response = yield core.fetcher({
|
2337
2337
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}`),
|
2338
2338
|
method: "GET",
|
2339
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2339
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2340
2340
|
contentType: "application/json",
|
2341
2341
|
requestType: "json",
|
2342
2342
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2416,7 +2416,7 @@ class LabTests {
|
|
2416
2416
|
const _response = yield core.fetcher({
|
2417
2417
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
|
2418
2418
|
method: "POST",
|
2419
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2419
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2420
2420
|
contentType: "application/json",
|
2421
2421
|
requestType: "json",
|
2422
2422
|
body: serializers.CreateOrderRequestCompatible.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -2500,7 +2500,7 @@ class LabTests {
|
|
2500
2500
|
const _response = yield core.fetcher({
|
2501
2501
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/import"),
|
2502
2502
|
method: "POST",
|
2503
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2503
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2504
2504
|
contentType: "application/json",
|
2505
2505
|
requestType: "json",
|
2506
2506
|
body: serializers.ImportOrderBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -2564,7 +2564,7 @@ class LabTests {
|
|
2564
2564
|
const _response = yield core.fetcher({
|
2565
2565
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/cancel`),
|
2566
2566
|
method: "POST",
|
2567
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2567
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2568
2568
|
contentType: "application/json",
|
2569
2569
|
requestType: "json",
|
2570
2570
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2636,7 +2636,7 @@ class LabTests {
|
|
2636
2636
|
const _response = yield core.fetcher({
|
2637
2637
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/test`),
|
2638
2638
|
method: "POST",
|
2639
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2639
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2640
2640
|
contentType: "application/json",
|
2641
2641
|
queryParameters: _queryParams,
|
2642
2642
|
requestType: "json",
|
@@ -2765,7 +2765,7 @@ class LabTests {
|
|
2765
2765
|
const _response = yield core.fetcher({
|
2766
2766
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
|
2767
2767
|
method: "GET",
|
2768
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2768
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2769
2769
|
contentType: "application/json",
|
2770
2770
|
queryParameters: _queryParams,
|
2771
2771
|
requestType: "json",
|