@tryvital/vital-node 3.1.320 → 3.1.322
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 +59 -43
- package/api/resources/labTests/client/requests/LabTestsGetOrderPscInfoRequest.d.ts +4 -0
- package/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.d.ts +4 -0
- 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 +16 -16
- package/api/resources/vitals/client/Client.js +78 -78
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ClientFacingLabLocation.d.ts +1 -0
- package/api/types/LabLocationCapability.d.ts +7 -0
- package/api/types/LabLocationCapability.js +5 -0
- package/api/types/PscAreaInfoDetails.d.ts +2 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- 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 +59 -43
- package/dist/api/resources/labTests/client/requests/LabTestsGetOrderPscInfoRequest.d.ts +4 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.d.ts +4 -0
- 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 +16 -16
- package/dist/api/resources/vitals/client/Client.js +78 -78
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ClientFacingLabLocation.d.ts +1 -0
- package/dist/api/types/LabLocationCapability.d.ts +7 -0
- package/dist/api/types/LabLocationCapability.js +5 -0
- package/dist/api/types/PscAreaInfoDetails.d.ts +2 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/types/ClientFacingLabLocation.d.ts +2 -0
- package/dist/serialization/types/ClientFacingLabLocation.js +2 -0
- package/dist/serialization/types/LabLocationCapability.d.ts +10 -0
- package/dist/serialization/types/LabLocationCapability.js +31 -0
- package/dist/serialization/types/PscAreaInfoDetails.d.ts +2 -0
- package/dist/serialization/types/PscAreaInfoDetails.js +2 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/ClientFacingLabLocation.d.ts +2 -0
- package/serialization/types/ClientFacingLabLocation.js +2 -0
- package/serialization/types/LabLocationCapability.d.ts +10 -0
- package/serialization/types/LabLocationCapability.js +31 -0
- package/serialization/types/PscAreaInfoDetails.d.ts +2 -0
- package/serialization/types/PscAreaInfoDetails.js +2 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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.322", "User-Agent": "@tryvital/vital-node/3.1.322", "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",
|
|
@@ -1408,17 +1408,25 @@ class LabTests {
|
|
|
1408
1408
|
getPscInfo(request, requestOptions) {
|
|
1409
1409
|
var _a;
|
|
1410
1410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1411
|
-
const { zipCode, labId, radius } = request;
|
|
1411
|
+
const { zipCode, labId, radius, capabilities } = request;
|
|
1412
1412
|
const _queryParams = {};
|
|
1413
1413
|
_queryParams["zip_code"] = zipCode;
|
|
1414
1414
|
_queryParams["lab_id"] = labId.toString();
|
|
1415
1415
|
if (radius != null) {
|
|
1416
1416
|
_queryParams["radius"] = radius;
|
|
1417
1417
|
}
|
|
1418
|
+
if (capabilities != null) {
|
|
1419
|
+
if (Array.isArray(capabilities)) {
|
|
1420
|
+
_queryParams["capabilities"] = capabilities.map((item) => item);
|
|
1421
|
+
}
|
|
1422
|
+
else {
|
|
1423
|
+
_queryParams["capabilities"] = capabilities;
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1418
1426
|
const _response = yield core.fetcher({
|
|
1419
1427
|
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
1428
|
method: "GET",
|
|
1421
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1429
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1422
1430
|
contentType: "application/json",
|
|
1423
1431
|
queryParameters: _queryParams,
|
|
1424
1432
|
requestType: "json",
|
|
@@ -1478,15 +1486,23 @@ class LabTests {
|
|
|
1478
1486
|
getOrderPscInfo(orderId, request = {}, requestOptions) {
|
|
1479
1487
|
var _a;
|
|
1480
1488
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1481
|
-
const { radius } = request;
|
|
1489
|
+
const { radius, capabilities } = request;
|
|
1482
1490
|
const _queryParams = {};
|
|
1483
1491
|
if (radius != null) {
|
|
1484
1492
|
_queryParams["radius"] = radius;
|
|
1485
1493
|
}
|
|
1494
|
+
if (capabilities != null) {
|
|
1495
|
+
if (Array.isArray(capabilities)) {
|
|
1496
|
+
_queryParams["capabilities"] = capabilities.map((item) => item);
|
|
1497
|
+
}
|
|
1498
|
+
else {
|
|
1499
|
+
_queryParams["capabilities"] = capabilities;
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1486
1502
|
const _response = yield core.fetcher({
|
|
1487
1503
|
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
1504
|
method: "GET",
|
|
1489
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1505
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1490
1506
|
contentType: "application/json",
|
|
1491
1507
|
queryParameters: _queryParams,
|
|
1492
1508
|
requestType: "json",
|
|
@@ -1543,7 +1559,7 @@ class LabTests {
|
|
|
1543
1559
|
const _response = yield core.fetcher({
|
|
1544
1560
|
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
1561
|
method: "GET",
|
|
1546
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1562
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1547
1563
|
contentType: "application/json",
|
|
1548
1564
|
requestType: "json",
|
|
1549
1565
|
responseType: "streaming",
|
|
@@ -1603,7 +1619,7 @@ class LabTests {
|
|
|
1603
1619
|
const _response = yield core.fetcher({
|
|
1604
1620
|
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
1621
|
method: "GET",
|
|
1606
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1622
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1607
1623
|
contentType: "application/json",
|
|
1608
1624
|
requestType: "json",
|
|
1609
1625
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1666,7 +1682,7 @@ class LabTests {
|
|
|
1666
1682
|
const _response = yield core.fetcher({
|
|
1667
1683
|
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
1684
|
method: "GET",
|
|
1669
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1685
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1670
1686
|
contentType: "application/json",
|
|
1671
1687
|
requestType: "json",
|
|
1672
1688
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1728,7 +1744,7 @@ class LabTests {
|
|
|
1728
1744
|
const _response = yield core.fetcher({
|
|
1729
1745
|
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
1746
|
method: "GET",
|
|
1731
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1747
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1732
1748
|
contentType: "application/json",
|
|
1733
1749
|
queryParameters: _queryParams,
|
|
1734
1750
|
requestType: "json",
|
|
@@ -1808,7 +1824,7 @@ class LabTests {
|
|
|
1808
1824
|
const _response = yield core.fetcher({
|
|
1809
1825
|
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
1826
|
method: "POST",
|
|
1811
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1827
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1812
1828
|
contentType: "application/json",
|
|
1813
1829
|
queryParameters: _queryParams,
|
|
1814
1830
|
requestType: "json",
|
|
@@ -1873,7 +1889,7 @@ class LabTests {
|
|
|
1873
1889
|
const _response = yield core.fetcher({
|
|
1874
1890
|
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
1891
|
method: "POST",
|
|
1876
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1892
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1877
1893
|
contentType: "application/json",
|
|
1878
1894
|
requestType: "json",
|
|
1879
1895
|
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1938,7 +1954,7 @@ class LabTests {
|
|
|
1938
1954
|
const _response = yield core.fetcher({
|
|
1939
1955
|
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
1956
|
method: "PATCH",
|
|
1941
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
1957
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1942
1958
|
contentType: "application/json",
|
|
1943
1959
|
requestType: "json",
|
|
1944
1960
|
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -2003,7 +2019,7 @@ class LabTests {
|
|
|
2003
2019
|
const _response = yield core.fetcher({
|
|
2004
2020
|
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
2021
|
method: "PATCH",
|
|
2006
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2022
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2007
2023
|
contentType: "application/json",
|
|
2008
2024
|
requestType: "json",
|
|
2009
2025
|
body: serializers.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.jsonOrThrow(request, {
|
|
@@ -2064,7 +2080,7 @@ class LabTests {
|
|
|
2064
2080
|
const _response = yield core.fetcher({
|
|
2065
2081
|
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
2082
|
method: "GET",
|
|
2067
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2083
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2068
2084
|
contentType: "application/json",
|
|
2069
2085
|
requestType: "json",
|
|
2070
2086
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2117,7 +2133,7 @@ class LabTests {
|
|
|
2117
2133
|
const _response = yield core.fetcher({
|
|
2118
2134
|
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
2135
|
method: "GET",
|
|
2120
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2136
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2121
2137
|
contentType: "application/json",
|
|
2122
2138
|
requestType: "json",
|
|
2123
2139
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2173,7 +2189,7 @@ class LabTests {
|
|
|
2173
2189
|
const _response = yield core.fetcher({
|
|
2174
2190
|
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
2191
|
method: "GET",
|
|
2176
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2192
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2177
2193
|
contentType: "application/json",
|
|
2178
2194
|
requestType: "json",
|
|
2179
2195
|
responseType: "streaming",
|
|
@@ -2225,7 +2241,7 @@ class LabTests {
|
|
|
2225
2241
|
const _response = yield core.fetcher({
|
|
2226
2242
|
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
2243
|
method: "GET",
|
|
2228
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2244
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2229
2245
|
contentType: "application/json",
|
|
2230
2246
|
requestType: "json",
|
|
2231
2247
|
responseType: "streaming",
|
|
@@ -2277,7 +2293,7 @@ class LabTests {
|
|
|
2277
2293
|
const _response = yield core.fetcher({
|
|
2278
2294
|
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
2295
|
method: "GET",
|
|
2280
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2296
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2281
2297
|
contentType: "application/json",
|
|
2282
2298
|
requestType: "json",
|
|
2283
2299
|
responseType: "streaming",
|
|
@@ -2336,7 +2352,7 @@ class LabTests {
|
|
|
2336
2352
|
const _response = yield core.fetcher({
|
|
2337
2353
|
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
2354
|
method: "GET",
|
|
2339
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2355
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2340
2356
|
contentType: "application/json",
|
|
2341
2357
|
requestType: "json",
|
|
2342
2358
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2414,7 +2430,7 @@ class LabTests {
|
|
|
2414
2430
|
const _response = yield core.fetcher({
|
|
2415
2431
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
|
|
2416
2432
|
method: "POST",
|
|
2417
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2433
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2418
2434
|
contentType: "application/json",
|
|
2419
2435
|
requestType: "json",
|
|
2420
2436
|
body: serializers.CreateOrderRequestCompatible.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -2498,7 +2514,7 @@ class LabTests {
|
|
|
2498
2514
|
const _response = yield core.fetcher({
|
|
2499
2515
|
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"),
|
|
2500
2516
|
method: "POST",
|
|
2501
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2517
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2502
2518
|
contentType: "application/json",
|
|
2503
2519
|
requestType: "json",
|
|
2504
2520
|
body: serializers.ImportOrderBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -2562,7 +2578,7 @@ class LabTests {
|
|
|
2562
2578
|
const _response = yield core.fetcher({
|
|
2563
2579
|
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`),
|
|
2564
2580
|
method: "POST",
|
|
2565
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2581
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2566
2582
|
contentType: "application/json",
|
|
2567
2583
|
requestType: "json",
|
|
2568
2584
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2636,7 +2652,7 @@ class LabTests {
|
|
|
2636
2652
|
const _response = yield core.fetcher({
|
|
2637
2653
|
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
2654
|
method: "POST",
|
|
2639
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2655
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2640
2656
|
contentType: "application/json",
|
|
2641
2657
|
queryParameters: _queryParams,
|
|
2642
2658
|
requestType: "json",
|
|
@@ -2700,7 +2716,7 @@ class LabTests {
|
|
|
2700
2716
|
const _response = yield core.fetcher({
|
|
2701
2717
|
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`),
|
|
2702
2718
|
method: "PATCH",
|
|
2703
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2719
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2704
2720
|
contentType: "application/json",
|
|
2705
2721
|
requestType: "json",
|
|
2706
2722
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2839,7 +2855,7 @@ class LabTests {
|
|
|
2839
2855
|
const _response = yield core.fetcher({
|
|
2840
2856
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
|
|
2841
2857
|
method: "GET",
|
|
2842
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
2858
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.322", "User-Agent": "@tryvital/vital-node/3.1.322", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2843
2859
|
contentType: "application/json",
|
|
2844
2860
|
queryParameters: _queryParams,
|
|
2845
2861
|
requestType: "json",
|
|
@@ -11,4 +11,8 @@ export interface LabTestsGetOrderPscInfoRequest {
|
|
|
11
11
|
* Radius in which to search in miles
|
|
12
12
|
*/
|
|
13
13
|
radius?: Vital.AllowedRadius;
|
|
14
|
+
/**
|
|
15
|
+
* Filter for only locations with certain capabilities
|
|
16
|
+
*/
|
|
17
|
+
capabilities?: Vital.LabLocationCapability | Vital.LabLocationCapability[];
|
|
14
18
|
}
|
|
@@ -22,4 +22,8 @@ export interface LabTestsGetPscInfoRequest {
|
|
|
22
22
|
* Radius in which to search in miles
|
|
23
23
|
*/
|
|
24
24
|
radius?: Vital.AllowedRadius;
|
|
25
|
+
/**
|
|
26
|
+
* Filter for only locations with certain capabilities
|
|
27
|
+
*/
|
|
28
|
+
capabilities?: Vital.LabLocationCapability | Vital.LabLocationCapability[];
|
|
25
29
|
}
|