@tryvital/vital-node 3.1.187 → 3.1.189
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/aggregate/client/Client.js +2 -2
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/electrocardiogram/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +3 -3
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +12 -0
- package/api/resources/labTests/client/Client.js +144 -35
- package/api/resources/labTests/client/requests/LabTestsGetPaginatedRequest.d.ts +42 -0
- package/api/resources/labTests/client/requests/LabTestsGetPaginatedRequest.js +5 -0
- package/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/api/resources/labTests/types/LabTestsGetPaginatedRequestOrderDirection.d.ts +8 -0
- package/api/resources/labTests/types/LabTestsGetPaginatedRequestOrderDirection.js +10 -0
- package/api/resources/labTests/types/LabTestsGetPaginatedRequestOrderKey.d.ts +9 -0
- package/api/resources/labTests/types/LabTestsGetPaginatedRequestOrderKey.js +11 -0
- package/api/resources/labTests/types/index.d.ts +2 -0
- package/api/resources/labTests/types/index.js +2 -0
- package/api/resources/link/client/Client.js +18 -18
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/order/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/sleepCycle/client/Client.js +1 -1
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +16 -16
- package/api/resources/vitals/client/Client.js +58 -58
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/GroupKeyColumnExpr.d.ts +1 -1
- package/api/types/LabTestResourcesResponse.d.ts +9 -0
- package/api/types/LabTestResourcesResponse.js +5 -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 +2 -2
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +3 -3
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +12 -0
- package/dist/api/resources/labTests/client/Client.js +144 -35
- package/dist/api/resources/labTests/client/requests/LabTestsGetPaginatedRequest.d.ts +42 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetPaginatedRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/dist/api/resources/labTests/types/LabTestsGetPaginatedRequestOrderDirection.d.ts +8 -0
- package/dist/api/resources/labTests/types/LabTestsGetPaginatedRequestOrderDirection.js +10 -0
- package/dist/api/resources/labTests/types/LabTestsGetPaginatedRequestOrderKey.d.ts +9 -0
- package/dist/api/resources/labTests/types/LabTestsGetPaginatedRequestOrderKey.js +11 -0
- package/dist/api/resources/labTests/types/index.d.ts +2 -0
- package/dist/api/resources/labTests/types/index.js +2 -0
- package/dist/api/resources/link/client/Client.js +18 -18
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
- package/dist/api/resources/order/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/sleepCycle/client/Client.js +1 -1
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +16 -16
- package/dist/api/resources/vitals/client/Client.js +58 -58
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/GroupKeyColumnExpr.d.ts +1 -1
- package/dist/api/types/LabTestResourcesResponse.d.ts +9 -0
- package/dist/api/types/LabTestResourcesResponse.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/labTests/types/LabTestsGetPaginatedRequestOrderDirection.d.ts +10 -0
- package/dist/serialization/resources/labTests/types/LabTestsGetPaginatedRequestOrderDirection.js +31 -0
- package/dist/serialization/resources/labTests/types/LabTestsGetPaginatedRequestOrderKey.d.ts +10 -0
- package/dist/serialization/resources/labTests/types/LabTestsGetPaginatedRequestOrderKey.js +31 -0
- package/dist/serialization/resources/labTests/types/index.d.ts +2 -0
- package/dist/serialization/resources/labTests/types/index.js +2 -0
- package/dist/serialization/types/GroupKeyColumnExpr.d.ts +1 -1
- package/dist/serialization/types/GroupKeyColumnExpr.js +1 -1
- package/dist/serialization/types/LabTestResourcesResponse.d.ts +14 -0
- package/dist/serialization/types/LabTestResourcesResponse.js +35 -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/reference.md +63 -0
- package/serialization/resources/labTests/types/LabTestsGetPaginatedRequestOrderDirection.d.ts +10 -0
- package/serialization/resources/labTests/types/LabTestsGetPaginatedRequestOrderDirection.js +31 -0
- package/serialization/resources/labTests/types/LabTestsGetPaginatedRequestOrderKey.d.ts +10 -0
- package/serialization/resources/labTests/types/LabTestsGetPaginatedRequestOrderKey.js +31 -0
- package/serialization/resources/labTests/types/index.d.ts +2 -0
- package/serialization/resources/labTests/types/index.js +2 -0
- package/serialization/types/GroupKeyColumnExpr.d.ts +1 -1
- package/serialization/types/GroupKeyColumnExpr.js +1 -1
- package/serialization/types/LabTestResourcesResponse.d.ts +14 -0
- package/serialization/types/LabTestResourcesResponse.js +35 -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.189", "User-Agent": "@tryvital/vital-node/3.1.189", "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.189", "User-Agent": "@tryvital/vital-node/3.1.189", "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.189", "User-Agent": "@tryvital/vital-node/3.1.189", "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.189", "User-Agent": "@tryvital/vital-node/3.1.189", "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.189", "User-Agent": "@tryvital/vital-node/3.1.189", "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.189", "User-Agent": "@tryvital/vital-node/3.1.189", "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.189", "User-Agent": "@tryvital/vital-node/3.1.189", "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.189", "User-Agent": "@tryvital/vital-node/3.1.189", "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.189", "User-Agent": "@tryvital/vital-node/3.1.189", "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,
|
@@ -688,6 +688,115 @@ class LabTests {
|
|
688
688
|
}
|
689
689
|
});
|
690
690
|
}
|
691
|
+
/**
|
692
|
+
* GET lab tests the team has access to as a paginated list.
|
693
|
+
*
|
694
|
+
* @param {Vital.LabTestsGetPaginatedRequest} request
|
695
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
696
|
+
*
|
697
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
698
|
+
*
|
699
|
+
* @example
|
700
|
+
* await client.labTests.getPaginated()
|
701
|
+
*/
|
702
|
+
getPaginated(request = {}, requestOptions) {
|
703
|
+
var _a;
|
704
|
+
return __awaiter(this, void 0, void 0, function* () {
|
705
|
+
const { labTestLimit, nextCursor, generationMethod, labSlug, collectionMethod, status, markerIds, providerIds, name, orderKey, orderDirection, } = request;
|
706
|
+
const _queryParams = {};
|
707
|
+
if (labTestLimit != null) {
|
708
|
+
_queryParams["lab_test_limit"] = labTestLimit.toString();
|
709
|
+
}
|
710
|
+
if (nextCursor != null) {
|
711
|
+
_queryParams["next_cursor"] = nextCursor;
|
712
|
+
}
|
713
|
+
if (generationMethod != null) {
|
714
|
+
_queryParams["generation_method"] = generationMethod;
|
715
|
+
}
|
716
|
+
if (labSlug != null) {
|
717
|
+
_queryParams["lab_slug"] = labSlug;
|
718
|
+
}
|
719
|
+
if (collectionMethod != null) {
|
720
|
+
_queryParams["collection_method"] = collectionMethod;
|
721
|
+
}
|
722
|
+
if (status != null) {
|
723
|
+
_queryParams["status"] = status;
|
724
|
+
}
|
725
|
+
if (markerIds != null) {
|
726
|
+
if (Array.isArray(markerIds)) {
|
727
|
+
_queryParams["marker_ids"] = markerIds.map((item) => item.toString());
|
728
|
+
}
|
729
|
+
else {
|
730
|
+
_queryParams["marker_ids"] = markerIds.toString();
|
731
|
+
}
|
732
|
+
}
|
733
|
+
if (providerIds != null) {
|
734
|
+
if (Array.isArray(providerIds)) {
|
735
|
+
_queryParams["provider_ids"] = providerIds.map((item) => item);
|
736
|
+
}
|
737
|
+
else {
|
738
|
+
_queryParams["provider_ids"] = providerIds;
|
739
|
+
}
|
740
|
+
}
|
741
|
+
if (name != null) {
|
742
|
+
_queryParams["name"] = name;
|
743
|
+
}
|
744
|
+
if (orderKey != null) {
|
745
|
+
_queryParams["order_key"] = orderKey;
|
746
|
+
}
|
747
|
+
if (orderDirection != null) {
|
748
|
+
_queryParams["order_direction"] = orderDirection;
|
749
|
+
}
|
750
|
+
const _response = yield core.fetcher({
|
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
|
+
method: "GET",
|
753
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
754
|
+
contentType: "application/json",
|
755
|
+
queryParameters: _queryParams,
|
756
|
+
requestType: "json",
|
757
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
758
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
759
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
760
|
+
});
|
761
|
+
if (_response.ok) {
|
762
|
+
return serializers.LabTestResourcesResponse.parseOrThrow(_response.body, {
|
763
|
+
unrecognizedObjectKeys: "passthrough",
|
764
|
+
allowUnrecognizedUnionMembers: true,
|
765
|
+
allowUnrecognizedEnumValues: true,
|
766
|
+
breadcrumbsPrefix: ["response"],
|
767
|
+
});
|
768
|
+
}
|
769
|
+
if (_response.error.reason === "status-code") {
|
770
|
+
switch (_response.error.statusCode) {
|
771
|
+
case 422:
|
772
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
773
|
+
unrecognizedObjectKeys: "passthrough",
|
774
|
+
allowUnrecognizedUnionMembers: true,
|
775
|
+
allowUnrecognizedEnumValues: true,
|
776
|
+
breadcrumbsPrefix: ["response"],
|
777
|
+
}));
|
778
|
+
default:
|
779
|
+
throw new errors.VitalError({
|
780
|
+
statusCode: _response.error.statusCode,
|
781
|
+
body: _response.error.body,
|
782
|
+
});
|
783
|
+
}
|
784
|
+
}
|
785
|
+
switch (_response.error.reason) {
|
786
|
+
case "non-json":
|
787
|
+
throw new errors.VitalError({
|
788
|
+
statusCode: _response.error.statusCode,
|
789
|
+
body: _response.error.rawBody,
|
790
|
+
});
|
791
|
+
case "timeout":
|
792
|
+
throw new errors.VitalTimeoutError();
|
793
|
+
case "unknown":
|
794
|
+
throw new errors.VitalError({
|
795
|
+
message: _response.error.errorMessage,
|
796
|
+
});
|
797
|
+
}
|
798
|
+
});
|
799
|
+
}
|
691
800
|
/**
|
692
801
|
* Return the available time slots to book an appointment with a phlebotomist
|
693
802
|
* for the given address and order.
|
@@ -718,7 +827,7 @@ class LabTests {
|
|
718
827
|
const _response = yield core.fetcher({
|
719
828
|
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"),
|
720
829
|
method: "POST",
|
721
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
830
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
722
831
|
contentType: "application/json",
|
723
832
|
queryParameters: _queryParams,
|
724
833
|
requestType: "json",
|
@@ -786,7 +895,7 @@ class LabTests {
|
|
786
895
|
const _response = yield core.fetcher({
|
787
896
|
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`),
|
788
897
|
method: "POST",
|
789
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
898
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
790
899
|
contentType: "application/json",
|
791
900
|
requestType: "json",
|
792
901
|
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -859,7 +968,7 @@ class LabTests {
|
|
859
968
|
const _response = yield core.fetcher({
|
860
969
|
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`),
|
861
970
|
method: "POST",
|
862
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
971
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
863
972
|
contentType: "application/json",
|
864
973
|
requestType: "json",
|
865
974
|
body: serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -926,7 +1035,7 @@ class LabTests {
|
|
926
1035
|
const _response = yield core.fetcher({
|
927
1036
|
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`),
|
928
1037
|
method: "PATCH",
|
929
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1038
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
930
1039
|
contentType: "application/json",
|
931
1040
|
requestType: "json",
|
932
1041
|
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -993,7 +1102,7 @@ class LabTests {
|
|
993
1102
|
const _response = yield core.fetcher({
|
994
1103
|
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`),
|
995
1104
|
method: "PATCH",
|
996
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1105
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
997
1106
|
contentType: "application/json",
|
998
1107
|
requestType: "json",
|
999
1108
|
body: serializers.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1054,7 +1163,7 @@ class LabTests {
|
|
1054
1163
|
const _response = yield core.fetcher({
|
1055
1164
|
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"),
|
1056
1165
|
method: "GET",
|
1057
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1166
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1058
1167
|
contentType: "application/json",
|
1059
1168
|
requestType: "json",
|
1060
1169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1107,7 +1216,7 @@ class LabTests {
|
|
1107
1216
|
const _response = yield core.fetcher({
|
1108
1217
|
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`),
|
1109
1218
|
method: "GET",
|
1110
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1219
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1111
1220
|
contentType: "application/json",
|
1112
1221
|
requestType: "json",
|
1113
1222
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1186,7 +1295,7 @@ class LabTests {
|
|
1186
1295
|
const _response = yield core.fetcher({
|
1187
1296
|
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"),
|
1188
1297
|
method: "GET",
|
1189
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1298
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1190
1299
|
contentType: "application/json",
|
1191
1300
|
queryParameters: _queryParams,
|
1192
1301
|
requestType: "json",
|
@@ -1258,7 +1367,7 @@ class LabTests {
|
|
1258
1367
|
const _response = yield core.fetcher({
|
1259
1368
|
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"),
|
1260
1369
|
method: "GET",
|
1261
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1370
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1262
1371
|
contentType: "application/json",
|
1263
1372
|
queryParameters: _queryParams,
|
1264
1373
|
requestType: "json",
|
@@ -1326,7 +1435,7 @@ class LabTests {
|
|
1326
1435
|
const _response = yield core.fetcher({
|
1327
1436
|
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`),
|
1328
1437
|
method: "GET",
|
1329
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1438
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1330
1439
|
contentType: "application/json",
|
1331
1440
|
queryParameters: _queryParams,
|
1332
1441
|
requestType: "json",
|
@@ -1383,7 +1492,7 @@ class LabTests {
|
|
1383
1492
|
const _response = yield core.fetcher({
|
1384
1493
|
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`),
|
1385
1494
|
method: "GET",
|
1386
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1495
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1387
1496
|
contentType: "application/json",
|
1388
1497
|
requestType: "json",
|
1389
1498
|
responseType: "streaming",
|
@@ -1443,7 +1552,7 @@ class LabTests {
|
|
1443
1552
|
const _response = yield core.fetcher({
|
1444
1553
|
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`),
|
1445
1554
|
method: "GET",
|
1446
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1555
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1447
1556
|
contentType: "application/json",
|
1448
1557
|
requestType: "json",
|
1449
1558
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1506,7 +1615,7 @@ class LabTests {
|
|
1506
1615
|
const _response = yield core.fetcher({
|
1507
1616
|
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`),
|
1508
1617
|
method: "GET",
|
1509
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1618
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1510
1619
|
contentType: "application/json",
|
1511
1620
|
requestType: "json",
|
1512
1621
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1568,7 +1677,7 @@ class LabTests {
|
|
1568
1677
|
const _response = yield core.fetcher({
|
1569
1678
|
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`),
|
1570
1679
|
method: "GET",
|
1571
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1680
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1572
1681
|
contentType: "application/json",
|
1573
1682
|
queryParameters: _queryParams,
|
1574
1683
|
requestType: "json",
|
@@ -1648,7 +1757,7 @@ class LabTests {
|
|
1648
1757
|
const _response = yield core.fetcher({
|
1649
1758
|
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"),
|
1650
1759
|
method: "POST",
|
1651
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1760
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1652
1761
|
contentType: "application/json",
|
1653
1762
|
queryParameters: _queryParams,
|
1654
1763
|
requestType: "json",
|
@@ -1713,7 +1822,7 @@ class LabTests {
|
|
1713
1822
|
const _response = yield core.fetcher({
|
1714
1823
|
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`),
|
1715
1824
|
method: "POST",
|
1716
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1825
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1717
1826
|
contentType: "application/json",
|
1718
1827
|
requestType: "json",
|
1719
1828
|
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1778,7 +1887,7 @@ class LabTests {
|
|
1778
1887
|
const _response = yield core.fetcher({
|
1779
1888
|
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`),
|
1780
1889
|
method: "PATCH",
|
1781
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1890
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1782
1891
|
contentType: "application/json",
|
1783
1892
|
requestType: "json",
|
1784
1893
|
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1843,7 +1952,7 @@ class LabTests {
|
|
1843
1952
|
const _response = yield core.fetcher({
|
1844
1953
|
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`),
|
1845
1954
|
method: "PATCH",
|
1846
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1955
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1847
1956
|
contentType: "application/json",
|
1848
1957
|
requestType: "json",
|
1849
1958
|
body: serializers.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.jsonOrThrow(request, {
|
@@ -1904,7 +2013,7 @@ class LabTests {
|
|
1904
2013
|
const _response = yield core.fetcher({
|
1905
2014
|
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"),
|
1906
2015
|
method: "GET",
|
1907
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2016
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1908
2017
|
contentType: "application/json",
|
1909
2018
|
requestType: "json",
|
1910
2019
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1957,7 +2066,7 @@ class LabTests {
|
|
1957
2066
|
const _response = yield core.fetcher({
|
1958
2067
|
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`),
|
1959
2068
|
method: "GET",
|
1960
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2069
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1961
2070
|
contentType: "application/json",
|
1962
2071
|
requestType: "json",
|
1963
2072
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2013,7 +2122,7 @@ class LabTests {
|
|
2013
2122
|
const _response = yield core.fetcher({
|
2014
2123
|
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`),
|
2015
2124
|
method: "GET",
|
2016
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2125
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2017
2126
|
contentType: "application/json",
|
2018
2127
|
requestType: "json",
|
2019
2128
|
responseType: "streaming",
|
@@ -2072,7 +2181,7 @@ class LabTests {
|
|
2072
2181
|
const _response = yield core.fetcher({
|
2073
2182
|
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)}`),
|
2074
2183
|
method: "GET",
|
2075
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2184
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2076
2185
|
contentType: "application/json",
|
2077
2186
|
requestType: "json",
|
2078
2187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2152,7 +2261,7 @@ class LabTests {
|
|
2152
2261
|
const _response = yield core.fetcher({
|
2153
2262
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
|
2154
2263
|
method: "POST",
|
2155
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2264
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2156
2265
|
contentType: "application/json",
|
2157
2266
|
requestType: "json",
|
2158
2267
|
body: serializers.CreateOrderRequestCompatible.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -2216,7 +2325,7 @@ class LabTests {
|
|
2216
2325
|
const _response = yield core.fetcher({
|
2217
2326
|
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`),
|
2218
2327
|
method: "POST",
|
2219
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2328
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2220
2329
|
contentType: "application/json",
|
2221
2330
|
requestType: "json",
|
2222
2331
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2288,7 +2397,7 @@ class LabTests {
|
|
2288
2397
|
const _response = yield core.fetcher({
|
2289
2398
|
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`),
|
2290
2399
|
method: "POST",
|
2291
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2400
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2292
2401
|
contentType: "application/json",
|
2293
2402
|
queryParameters: _queryParams,
|
2294
2403
|
requestType: "json",
|
@@ -2393,7 +2502,7 @@ class LabTests {
|
|
2393
2502
|
const _response = yield core.fetcher({
|
2394
2503
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
|
2395
2504
|
method: "GET",
|
2396
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2505
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.189", "User-Agent": "@tryvital/vital-node/3.1.189", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2397
2506
|
contentType: "application/json",
|
2398
2507
|
queryParameters: _queryParams,
|
2399
2508
|
requestType: "json",
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../../../../index";
|
5
|
+
/**
|
6
|
+
* @example
|
7
|
+
* {}
|
8
|
+
*/
|
9
|
+
export interface LabTestsGetPaginatedRequest {
|
10
|
+
labTestLimit?: number;
|
11
|
+
nextCursor?: string;
|
12
|
+
/**
|
13
|
+
* Filter on whether auto-generated lab tests created by Vital, manually created lab tests, or all lab tests should be returned.
|
14
|
+
*/
|
15
|
+
generationMethod?: Vital.LabTestGenerationMethodFilter;
|
16
|
+
/**
|
17
|
+
* Filter by the slug of the lab for these lab tests.
|
18
|
+
*/
|
19
|
+
labSlug?: string;
|
20
|
+
/**
|
21
|
+
* Filter by the collection method for these lab tests.
|
22
|
+
*/
|
23
|
+
collectionMethod?: Vital.LabTestCollectionMethod;
|
24
|
+
/**
|
25
|
+
* Filter by the status of these lab tests.
|
26
|
+
*/
|
27
|
+
status?: Vital.LabTestStatus;
|
28
|
+
/**
|
29
|
+
* Filter to only include lab tests containing these marker IDs.
|
30
|
+
*/
|
31
|
+
markerIds?: number | number[];
|
32
|
+
/**
|
33
|
+
* Filter to only include lab tests containing these provider IDs.
|
34
|
+
*/
|
35
|
+
providerIds?: string | string[];
|
36
|
+
/**
|
37
|
+
* Filter by the name of the lab test (a case-insensitive substring search).
|
38
|
+
*/
|
39
|
+
name?: string;
|
40
|
+
orderKey?: Vital.LabTestsGetPaginatedRequestOrderKey;
|
41
|
+
orderDirection?: Vital.LabTestsGetPaginatedRequestOrderDirection;
|
42
|
+
}
|
@@ -4,6 +4,7 @@ export { type UpdateLabTestRequest } from "./UpdateLabTestRequest";
|
|
4
4
|
export { type LabTestsGetMarkersRequest } from "./LabTestsGetMarkersRequest";
|
5
5
|
export { type LabTestsGetMarkersForOrderSetRequest } from "./LabTestsGetMarkersForOrderSetRequest";
|
6
6
|
export { type LabTestsGetMarkersForLabTestRequest } from "./LabTestsGetMarkersForLabTestRequest";
|
7
|
+
export { type LabTestsGetPaginatedRequest } from "./LabTestsGetPaginatedRequest";
|
7
8
|
export { type LabTestsGetPhlebotomyAppointmentAvailabilityRequest } from "./LabTestsGetPhlebotomyAppointmentAvailabilityRequest";
|
8
9
|
export { type RequestAppointmentRequest } from "./RequestAppointmentRequest";
|
9
10
|
export { type ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest } from "./ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest";
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type LabTestsGetPaginatedRequestOrderDirection = "asc" | "desc";
|
5
|
+
export declare const LabTestsGetPaginatedRequestOrderDirection: {
|
6
|
+
readonly Asc: "asc";
|
7
|
+
readonly Desc: "desc";
|
8
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.LabTestsGetPaginatedRequestOrderDirection = void 0;
|
7
|
+
exports.LabTestsGetPaginatedRequestOrderDirection = {
|
8
|
+
Asc: "asc",
|
9
|
+
Desc: "desc",
|
10
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type LabTestsGetPaginatedRequestOrderKey = "price" | "created_at" | "updated_at";
|
5
|
+
export declare const LabTestsGetPaginatedRequestOrderKey: {
|
6
|
+
readonly Price: "price";
|
7
|
+
readonly CreatedAt: "created_at";
|
8
|
+
readonly UpdatedAt: "updated_at";
|
9
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.LabTestsGetPaginatedRequestOrderKey = void 0;
|
7
|
+
exports.LabTestsGetPaginatedRequestOrderKey = {
|
8
|
+
Price: "price",
|
9
|
+
CreatedAt: "created_at",
|
10
|
+
UpdatedAt: "updated_at",
|
11
|
+
};
|
@@ -1,4 +1,6 @@
|
|
1
1
|
export * from "./LabTestsGetRequestOrderKey";
|
2
2
|
export * from "./LabTestsGetRequestOrderDirection";
|
3
|
+
export * from "./LabTestsGetPaginatedRequestOrderKey";
|
4
|
+
export * from "./LabTestsGetPaginatedRequestOrderDirection";
|
3
5
|
export * from "./LabTestsGetOrdersRequestOrderKey";
|
4
6
|
export * from "./LabTestsGetOrdersRequestOrderDirection";
|
@@ -16,5 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./LabTestsGetRequestOrderKey"), exports);
|
18
18
|
__exportStar(require("./LabTestsGetRequestOrderDirection"), exports);
|
19
|
+
__exportStar(require("./LabTestsGetPaginatedRequestOrderKey"), exports);
|
20
|
+
__exportStar(require("./LabTestsGetPaginatedRequestOrderDirection"), exports);
|
19
21
|
__exportStar(require("./LabTestsGetOrdersRequestOrderKey"), exports);
|
20
22
|
__exportStar(require("./LabTestsGetOrdersRequestOrderDirection"), exports);
|