@tryvital/vital-node 3.1.418 → 3.1.419
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 +3 -3
- 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 +41 -41
- 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/payor/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 +3 -3
- 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 +18 -18
- package/api/resources/vitals/client/Client.js +78 -78
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ClientFacingAFibBurdenSample.d.ts +1 -1
- package/api/types/ClientFacingBasalBodyTemperatureSample.d.ts +1 -1
- package/api/types/ClientFacingBloodOxygenTimeseries.d.ts +1 -1
- package/api/types/ClientFacingBloodPressureTimeseries.d.ts +1 -1
- package/api/types/ClientFacingBodyFatTimeseries.d.ts +1 -1
- package/api/types/ClientFacingBodyMassIndexSample.d.ts +1 -1
- package/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
- package/api/types/ClientFacingBodyTemperatureSample.d.ts +1 -1
- package/api/types/ClientFacingBodyWeightTimeseries.d.ts +1 -1
- package/api/types/ClientFacingCaffeineTimeseries.d.ts +1 -1
- package/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +1 -1
- package/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +1 -1
- package/api/types/ClientFacingCarbohydratesSample.d.ts +1 -1
- package/api/types/ClientFacingCholesterolTimeseries.d.ts +2 -2
- package/api/types/ClientFacingDaylightExposureSample.d.ts +1 -1
- package/api/types/ClientFacingDistanceTimeseries.d.ts +1 -1
- package/api/types/ClientFacingFallSample.d.ts +1 -1
- package/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +1 -1
- package/api/types/ClientFacingForcedExpiratoryVolume1Sample.d.ts +1 -1
- package/api/types/ClientFacingForcedVitalCapacitySample.d.ts +1 -1
- package/api/types/ClientFacingGlucoseTimeseries.d.ts +1 -1
- package/api/types/ClientFacingHandwashingSample.d.ts +1 -1
- package/api/types/ClientFacingHeartRateAlertSample.d.ts +1 -1
- package/api/types/ClientFacingHeartRateAlertSampleType.d.ts +1 -1
- package/api/types/ClientFacingHeartRateRecoveryOneMinuteSample.d.ts +1 -1
- package/api/types/ClientFacingHeartRateTimeseries.d.ts +1 -1
- package/api/types/ClientFacingHrvTimeseries.d.ts +1 -1
- package/api/types/ClientFacingHypnogramTimeseries.d.ts +1 -1
- package/api/types/ClientFacingIgeTimeseries.d.ts +2 -2
- package/api/types/ClientFacingIggTimeseries.d.ts +2 -2
- package/api/types/ClientFacingInhalerUsageSample.d.ts +1 -1
- package/api/types/ClientFacingInsulinInjectionSample.d.ts +1 -1
- package/api/types/ClientFacingInsulinInjectionSampleType.d.ts +1 -1
- package/api/types/ClientFacingLeanBodyMassSample.d.ts +1 -1
- package/api/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +1 -1
- package/api/types/ClientFacingNoteSample.d.ts +1 -1
- package/api/types/ClientFacingPeakExpiratoryFlowRateSample.d.ts +1 -1
- package/api/types/ClientFacingRespiratoryRateTimeseries.d.ts +1 -1
- package/api/types/ClientFacingSleepApneaAlertSample.d.ts +1 -1
- package/api/types/ClientFacingSleepBreathingDisturbanceSample.d.ts +1 -1
- package/api/types/ClientFacingStandDurationSample.d.ts +1 -1
- package/api/types/ClientFacingStandHourSample.d.ts +1 -1
- package/api/types/ClientFacingStandHourSampleType.d.ts +1 -1
- package/api/types/ClientFacingStepsTimeseries.d.ts +1 -1
- package/api/types/ClientFacingStressLevelTimeseries.d.ts +1 -1
- package/api/types/ClientFacingUvExposureSample.d.ts +1 -1
- package/api/types/ClientFacingVo2MaxTimeseries.d.ts +1 -1
- package/api/types/ClientFacingWaistCircumferenceSample.d.ts +1 -1
- package/api/types/ClientFacingWaterTimeseries.d.ts +1 -1
- package/api/types/ClientFacingWheelchairPushSample.d.ts +1 -1
- package/api/types/ClientFacingWorkoutDistanceSample.d.ts +1 -1
- package/api/types/ClientFacingWorkoutDurationSample.d.ts +1 -1
- package/api/types/ClientFacingWorkoutSwimmingStrokeSample.d.ts +1 -1
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +3 -3
- 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 +41 -41
- 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/payor/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 +3 -3
- 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 +18 -18
- package/dist/api/resources/vitals/client/Client.js +78 -78
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ClientFacingAFibBurdenSample.d.ts +1 -1
- package/dist/api/types/ClientFacingBasalBodyTemperatureSample.d.ts +1 -1
- package/dist/api/types/ClientFacingBloodOxygenTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingBloodPressureTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingBodyFatTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingBodyMassIndexSample.d.ts +1 -1
- package/dist/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
- package/dist/api/types/ClientFacingBodyTemperatureSample.d.ts +1 -1
- package/dist/api/types/ClientFacingBodyWeightTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingCaffeineTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingCarbohydratesSample.d.ts +1 -1
- package/dist/api/types/ClientFacingCholesterolTimeseries.d.ts +2 -2
- package/dist/api/types/ClientFacingDaylightExposureSample.d.ts +1 -1
- package/dist/api/types/ClientFacingDistanceTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingFallSample.d.ts +1 -1
- package/dist/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingForcedExpiratoryVolume1Sample.d.ts +1 -1
- package/dist/api/types/ClientFacingForcedVitalCapacitySample.d.ts +1 -1
- package/dist/api/types/ClientFacingGlucoseTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingHandwashingSample.d.ts +1 -1
- package/dist/api/types/ClientFacingHeartRateAlertSample.d.ts +1 -1
- package/dist/api/types/ClientFacingHeartRateAlertSampleType.d.ts +1 -1
- package/dist/api/types/ClientFacingHeartRateRecoveryOneMinuteSample.d.ts +1 -1
- package/dist/api/types/ClientFacingHeartRateTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingHrvTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingHypnogramTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingIgeTimeseries.d.ts +2 -2
- package/dist/api/types/ClientFacingIggTimeseries.d.ts +2 -2
- package/dist/api/types/ClientFacingInhalerUsageSample.d.ts +1 -1
- package/dist/api/types/ClientFacingInsulinInjectionSample.d.ts +1 -1
- package/dist/api/types/ClientFacingInsulinInjectionSampleType.d.ts +1 -1
- package/dist/api/types/ClientFacingLeanBodyMassSample.d.ts +1 -1
- package/dist/api/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingNoteSample.d.ts +1 -1
- package/dist/api/types/ClientFacingPeakExpiratoryFlowRateSample.d.ts +1 -1
- package/dist/api/types/ClientFacingRespiratoryRateTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingSleepApneaAlertSample.d.ts +1 -1
- package/dist/api/types/ClientFacingSleepBreathingDisturbanceSample.d.ts +1 -1
- package/dist/api/types/ClientFacingStandDurationSample.d.ts +1 -1
- package/dist/api/types/ClientFacingStandHourSample.d.ts +1 -1
- package/dist/api/types/ClientFacingStandHourSampleType.d.ts +1 -1
- package/dist/api/types/ClientFacingStepsTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingStressLevelTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingUvExposureSample.d.ts +1 -1
- package/dist/api/types/ClientFacingVo2MaxTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingWaistCircumferenceSample.d.ts +1 -1
- package/dist/api/types/ClientFacingWaterTimeseries.d.ts +1 -1
- package/dist/api/types/ClientFacingWheelchairPushSample.d.ts +1 -1
- package/dist/api/types/ClientFacingWorkoutDistanceSample.d.ts +1 -1
- package/dist/api/types/ClientFacingWorkoutDurationSample.d.ts +1 -1
- package/dist/api/types/ClientFacingWorkoutSwimmingStrokeSample.d.ts +1 -1
- package/dist/serialization/types/ClientFacingCholesterolTimeseries.d.ts +1 -1
- package/dist/serialization/types/ClientFacingCholesterolTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingIgeTimeseries.d.ts +1 -1
- package/dist/serialization/types/ClientFacingIgeTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingIggTimeseries.d.ts +1 -1
- package/dist/serialization/types/ClientFacingIggTimeseries.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/ClientFacingCholesterolTimeseries.d.ts +1 -1
- package/serialization/types/ClientFacingCholesterolTimeseries.js +1 -1
- package/serialization/types/ClientFacingIgeTimeseries.d.ts +1 -1
- package/serialization/types/ClientFacingIgeTimeseries.js +1 -1
- package/serialization/types/ClientFacingIggTimeseries.d.ts +1 -1
- package/serialization/types/ClientFacingIggTimeseries.js +1 -1
- 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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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,
|
|
@@ -215,7 +215,7 @@ class Aggregate {
|
|
|
215
215
|
const _response = yield core.fetcher({
|
|
216
216
|
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)}/task_history`),
|
|
217
217
|
method: "GET",
|
|
218
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
218
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
219
219
|
contentType: "application/json",
|
|
220
220
|
queryParameters: _queryParams,
|
|
221
221
|
requestType: "json",
|
|
@@ -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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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.419", "User-Agent": "@tryvital/vital-node/3.1.419", "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",
|
|
@@ -116,7 +116,7 @@ class LabTests {
|
|
|
116
116
|
const _response = yield core.fetcher({
|
|
117
117
|
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"),
|
|
118
118
|
method: "GET",
|
|
119
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
119
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
120
120
|
contentType: "application/json",
|
|
121
121
|
queryParameters: _queryParams,
|
|
122
122
|
requestType: "json",
|
|
@@ -182,7 +182,7 @@ class LabTests {
|
|
|
182
182
|
const _response = yield core.fetcher({
|
|
183
183
|
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"),
|
|
184
184
|
method: "POST",
|
|
185
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
185
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
186
186
|
contentType: "application/json",
|
|
187
187
|
requestType: "json",
|
|
188
188
|
body: serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -252,7 +252,7 @@ class LabTests {
|
|
|
252
252
|
const _response = yield core.fetcher({
|
|
253
253
|
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)}`),
|
|
254
254
|
method: "GET",
|
|
255
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
255
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
256
256
|
contentType: "application/json",
|
|
257
257
|
queryParameters: _queryParams,
|
|
258
258
|
requestType: "json",
|
|
@@ -315,7 +315,7 @@ class LabTests {
|
|
|
315
315
|
const _response = yield core.fetcher({
|
|
316
316
|
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)}`),
|
|
317
317
|
method: "PATCH",
|
|
318
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
318
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
319
319
|
contentType: "application/json",
|
|
320
320
|
requestType: "json",
|
|
321
321
|
body: serializers.UpdateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -404,7 +404,7 @@ class LabTests {
|
|
|
404
404
|
const _response = yield core.fetcher({
|
|
405
405
|
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"),
|
|
406
406
|
method: "GET",
|
|
407
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
407
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
408
408
|
contentType: "application/json",
|
|
409
409
|
queryParameters: _queryParams,
|
|
410
410
|
requestType: "json",
|
|
@@ -476,7 +476,7 @@ class LabTests {
|
|
|
476
476
|
const _response = yield core.fetcher({
|
|
477
477
|
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"),
|
|
478
478
|
method: "POST",
|
|
479
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
479
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
480
480
|
contentType: "application/json",
|
|
481
481
|
queryParameters: _queryParams,
|
|
482
482
|
requestType: "json",
|
|
@@ -551,7 +551,7 @@ class LabTests {
|
|
|
551
551
|
const _response = yield core.fetcher({
|
|
552
552
|
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`),
|
|
553
553
|
method: "GET",
|
|
554
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
554
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
555
555
|
contentType: "application/json",
|
|
556
556
|
queryParameters: _queryParams,
|
|
557
557
|
requestType: "json",
|
|
@@ -622,7 +622,7 @@ class LabTests {
|
|
|
622
622
|
const _response = yield core.fetcher({
|
|
623
623
|
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)}`),
|
|
624
624
|
method: "GET",
|
|
625
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
625
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
626
626
|
contentType: "application/json",
|
|
627
627
|
queryParameters: _queryParams,
|
|
628
628
|
requestType: "json",
|
|
@@ -683,7 +683,7 @@ class LabTests {
|
|
|
683
683
|
const _response = yield core.fetcher({
|
|
684
684
|
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"),
|
|
685
685
|
method: "GET",
|
|
686
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
686
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
687
687
|
contentType: "application/json",
|
|
688
688
|
requestType: "json",
|
|
689
689
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -781,7 +781,7 @@ class LabTests {
|
|
|
781
781
|
const _response = yield core.fetcher({
|
|
782
782
|
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"),
|
|
783
783
|
method: "GET",
|
|
784
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
784
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
785
785
|
contentType: "application/json",
|
|
786
786
|
queryParameters: _queryParams,
|
|
787
787
|
requestType: "json",
|
|
@@ -837,7 +837,7 @@ class LabTests {
|
|
|
837
837
|
const _response = yield core.fetcher({
|
|
838
838
|
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`),
|
|
839
839
|
method: "GET",
|
|
840
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
840
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
841
841
|
contentType: "application/json",
|
|
842
842
|
requestType: "json",
|
|
843
843
|
responseType: "streaming",
|
|
@@ -972,7 +972,7 @@ class LabTests {
|
|
|
972
972
|
const _response = yield core.fetcher({
|
|
973
973
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
|
|
974
974
|
method: "GET",
|
|
975
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
975
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
976
976
|
contentType: "application/json",
|
|
977
977
|
queryParameters: _queryParams,
|
|
978
978
|
requestType: "json",
|
|
@@ -1049,7 +1049,7 @@ class LabTests {
|
|
|
1049
1049
|
const _response = yield core.fetcher({
|
|
1050
1050
|
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"),
|
|
1051
1051
|
method: "POST",
|
|
1052
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1052
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1053
1053
|
contentType: "application/json",
|
|
1054
1054
|
queryParameters: _queryParams,
|
|
1055
1055
|
requestType: "json",
|
|
@@ -1117,7 +1117,7 @@ class LabTests {
|
|
|
1117
1117
|
const _response = yield core.fetcher({
|
|
1118
1118
|
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`),
|
|
1119
1119
|
method: "POST",
|
|
1120
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1121
1121
|
contentType: "application/json",
|
|
1122
1122
|
requestType: "json",
|
|
1123
1123
|
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1190,7 +1190,7 @@ class LabTests {
|
|
|
1190
1190
|
const _response = yield core.fetcher({
|
|
1191
1191
|
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`),
|
|
1192
1192
|
method: "POST",
|
|
1193
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1193
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1194
1194
|
contentType: "application/json",
|
|
1195
1195
|
requestType: "json",
|
|
1196
1196
|
body: serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1257,7 +1257,7 @@ class LabTests {
|
|
|
1257
1257
|
const _response = yield core.fetcher({
|
|
1258
1258
|
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`),
|
|
1259
1259
|
method: "PATCH",
|
|
1260
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1260
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1261
1261
|
contentType: "application/json",
|
|
1262
1262
|
requestType: "json",
|
|
1263
1263
|
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1324,7 +1324,7 @@ class LabTests {
|
|
|
1324
1324
|
const _response = yield core.fetcher({
|
|
1325
1325
|
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`),
|
|
1326
1326
|
method: "PATCH",
|
|
1327
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1327
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1328
1328
|
contentType: "application/json",
|
|
1329
1329
|
requestType: "json",
|
|
1330
1330
|
body: serializers.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1385,7 +1385,7 @@ class LabTests {
|
|
|
1385
1385
|
const _response = yield core.fetcher({
|
|
1386
1386
|
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"),
|
|
1387
1387
|
method: "GET",
|
|
1388
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1388
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1389
1389
|
contentType: "application/json",
|
|
1390
1390
|
requestType: "json",
|
|
1391
1391
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1438,7 +1438,7 @@ class LabTests {
|
|
|
1438
1438
|
const _response = yield core.fetcher({
|
|
1439
1439
|
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`),
|
|
1440
1440
|
method: "GET",
|
|
1441
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1441
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1442
1442
|
contentType: "application/json",
|
|
1443
1443
|
requestType: "json",
|
|
1444
1444
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1527,7 +1527,7 @@ class LabTests {
|
|
|
1527
1527
|
const _response = yield core.fetcher({
|
|
1528
1528
|
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"),
|
|
1529
1529
|
method: "GET",
|
|
1530
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1530
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1531
1531
|
contentType: "application/json",
|
|
1532
1532
|
queryParameters: _queryParams,
|
|
1533
1533
|
requestType: "json",
|
|
@@ -1610,7 +1610,7 @@ class LabTests {
|
|
|
1610
1610
|
const _response = yield core.fetcher({
|
|
1611
1611
|
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"),
|
|
1612
1612
|
method: "GET",
|
|
1613
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1613
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1614
1614
|
contentType: "application/json",
|
|
1615
1615
|
queryParameters: _queryParams,
|
|
1616
1616
|
requestType: "json",
|
|
@@ -1686,7 +1686,7 @@ class LabTests {
|
|
|
1686
1686
|
const _response = yield core.fetcher({
|
|
1687
1687
|
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`),
|
|
1688
1688
|
method: "GET",
|
|
1689
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1689
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1690
1690
|
contentType: "application/json",
|
|
1691
1691
|
queryParameters: _queryParams,
|
|
1692
1692
|
requestType: "json",
|
|
@@ -1743,7 +1743,7 @@ class LabTests {
|
|
|
1743
1743
|
const _response = yield core.fetcher({
|
|
1744
1744
|
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`),
|
|
1745
1745
|
method: "GET",
|
|
1746
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1746
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1747
1747
|
contentType: "application/json",
|
|
1748
1748
|
requestType: "json",
|
|
1749
1749
|
responseType: "streaming",
|
|
@@ -1803,7 +1803,7 @@ class LabTests {
|
|
|
1803
1803
|
const _response = yield core.fetcher({
|
|
1804
1804
|
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`),
|
|
1805
1805
|
method: "GET",
|
|
1806
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1806
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1807
1807
|
contentType: "application/json",
|
|
1808
1808
|
requestType: "json",
|
|
1809
1809
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1866,7 +1866,7 @@ class LabTests {
|
|
|
1866
1866
|
const _response = yield core.fetcher({
|
|
1867
1867
|
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`),
|
|
1868
1868
|
method: "GET",
|
|
1869
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1869
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1870
1870
|
contentType: "application/json",
|
|
1871
1871
|
requestType: "json",
|
|
1872
1872
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1928,7 +1928,7 @@ class LabTests {
|
|
|
1928
1928
|
const _response = yield core.fetcher({
|
|
1929
1929
|
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`),
|
|
1930
1930
|
method: "GET",
|
|
1931
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1931
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1932
1932
|
contentType: "application/json",
|
|
1933
1933
|
queryParameters: _queryParams,
|
|
1934
1934
|
requestType: "json",
|
|
@@ -2008,7 +2008,7 @@ class LabTests {
|
|
|
2008
2008
|
const _response = yield core.fetcher({
|
|
2009
2009
|
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"),
|
|
2010
2010
|
method: "POST",
|
|
2011
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2011
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2012
2012
|
contentType: "application/json",
|
|
2013
2013
|
queryParameters: _queryParams,
|
|
2014
2014
|
requestType: "json",
|
|
@@ -2073,7 +2073,7 @@ class LabTests {
|
|
|
2073
2073
|
const _response = yield core.fetcher({
|
|
2074
2074
|
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`),
|
|
2075
2075
|
method: "POST",
|
|
2076
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2076
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2077
2077
|
contentType: "application/json",
|
|
2078
2078
|
requestType: "json",
|
|
2079
2079
|
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -2138,7 +2138,7 @@ class LabTests {
|
|
|
2138
2138
|
const _response = yield core.fetcher({
|
|
2139
2139
|
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`),
|
|
2140
2140
|
method: "PATCH",
|
|
2141
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2141
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2142
2142
|
contentType: "application/json",
|
|
2143
2143
|
requestType: "json",
|
|
2144
2144
|
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -2203,7 +2203,7 @@ class LabTests {
|
|
|
2203
2203
|
const _response = yield core.fetcher({
|
|
2204
2204
|
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`),
|
|
2205
2205
|
method: "PATCH",
|
|
2206
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2206
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2207
2207
|
contentType: "application/json",
|
|
2208
2208
|
requestType: "json",
|
|
2209
2209
|
body: serializers.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.jsonOrThrow(request, {
|
|
@@ -2264,7 +2264,7 @@ class LabTests {
|
|
|
2264
2264
|
const _response = yield core.fetcher({
|
|
2265
2265
|
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"),
|
|
2266
2266
|
method: "GET",
|
|
2267
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2267
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2268
2268
|
contentType: "application/json",
|
|
2269
2269
|
requestType: "json",
|
|
2270
2270
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2317,7 +2317,7 @@ class LabTests {
|
|
|
2317
2317
|
const _response = yield core.fetcher({
|
|
2318
2318
|
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`),
|
|
2319
2319
|
method: "GET",
|
|
2320
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2320
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2321
2321
|
contentType: "application/json",
|
|
2322
2322
|
requestType: "json",
|
|
2323
2323
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2373,7 +2373,7 @@ class LabTests {
|
|
|
2373
2373
|
const _response = yield core.fetcher({
|
|
2374
2374
|
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`),
|
|
2375
2375
|
method: "GET",
|
|
2376
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2376
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2377
2377
|
contentType: "application/json",
|
|
2378
2378
|
requestType: "json",
|
|
2379
2379
|
responseType: "streaming",
|
|
@@ -2425,7 +2425,7 @@ class LabTests {
|
|
|
2425
2425
|
const _response = yield core.fetcher({
|
|
2426
2426
|
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`),
|
|
2427
2427
|
method: "GET",
|
|
2428
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2428
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2429
2429
|
contentType: "application/json",
|
|
2430
2430
|
requestType: "json",
|
|
2431
2431
|
responseType: "streaming",
|
|
@@ -2477,7 +2477,7 @@ class LabTests {
|
|
|
2477
2477
|
const _response = yield core.fetcher({
|
|
2478
2478
|
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`),
|
|
2479
2479
|
method: "GET",
|
|
2480
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2480
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2481
2481
|
contentType: "application/json",
|
|
2482
2482
|
requestType: "json",
|
|
2483
2483
|
responseType: "streaming",
|
|
@@ -2536,7 +2536,7 @@ class LabTests {
|
|
|
2536
2536
|
const _response = yield core.fetcher({
|
|
2537
2537
|
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)}`),
|
|
2538
2538
|
method: "GET",
|
|
2539
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2539
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2540
2540
|
contentType: "application/json",
|
|
2541
2541
|
requestType: "json",
|
|
2542
2542
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2615,7 +2615,7 @@ class LabTests {
|
|
|
2615
2615
|
const _response = yield core.fetcher({
|
|
2616
2616
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
|
|
2617
2617
|
method: "POST",
|
|
2618
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2618
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
|
2619
2619
|
contentType: "application/json",
|
|
2620
2620
|
requestType: "json",
|
|
2621
2621
|
body: serializers.CreateOrderRequestCompatible.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -2699,7 +2699,7 @@ class LabTests {
|
|
|
2699
2699
|
const _response = yield core.fetcher({
|
|
2700
2700
|
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"),
|
|
2701
2701
|
method: "POST",
|
|
2702
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2702
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2703
2703
|
contentType: "application/json",
|
|
2704
2704
|
requestType: "json",
|
|
2705
2705
|
body: serializers.ImportOrderBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -2763,7 +2763,7 @@ class LabTests {
|
|
|
2763
2763
|
const _response = yield core.fetcher({
|
|
2764
2764
|
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`),
|
|
2765
2765
|
method: "POST",
|
|
2766
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2766
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2767
2767
|
contentType: "application/json",
|
|
2768
2768
|
requestType: "json",
|
|
2769
2769
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2837,7 +2837,7 @@ class LabTests {
|
|
|
2837
2837
|
const _response = yield core.fetcher({
|
|
2838
2838
|
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`),
|
|
2839
2839
|
method: "POST",
|
|
2840
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2840
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2841
2841
|
contentType: "application/json",
|
|
2842
2842
|
queryParameters: _queryParams,
|
|
2843
2843
|
requestType: "json",
|
|
@@ -2901,7 +2901,7 @@ class LabTests {
|
|
|
2901
2901
|
const _response = yield core.fetcher({
|
|
2902
2902
|
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)}/draw_completed`),
|
|
2903
2903
|
method: "PATCH",
|
|
2904
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2904
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.419", "User-Agent": "@tryvital/vital-node/3.1.419", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2905
2905
|
contentType: "application/json",
|
|
2906
2906
|
requestType: "json",
|
|
2907
2907
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|