@tryvital/vital-node 3.1.231 → 3.1.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/aggregate/client/Client.js +2 -2
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/electrocardiogram/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +3 -3
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.js +37 -37
- package/api/resources/link/client/Client.js +19 -19
- package/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +9 -0
- package/api/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +9 -0
- 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/user/client/requests/UserInfoCreateRequest.d.ts +5 -0
- package/api/resources/vitals/client/Client.js +75 -75
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ClientFacingPatientDetailsCompatible.d.ts +11 -0
- package/api/types/Ethnicity.d.ts +10 -0
- package/api/types/Ethnicity.js +12 -0
- package/api/types/GenderIdentity.d.ts +12 -0
- package/api/types/GenderIdentity.js +14 -0
- package/api/types/GuarantorDetails.d.ts +2 -0
- package/api/types/PatientDetailsWithValidation.d.ts +10 -0
- package/api/types/Race.d.ts +12 -0
- package/api/types/Race.js +14 -0
- package/api/types/SexualOrientation.d.ts +11 -0
- package/api/types/SexualOrientation.js +13 -0
- package/api/types/UserInfo.d.ts +5 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +2 -2
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +3 -3
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.js +37 -37
- package/dist/api/resources/link/client/Client.js +19 -19
- package/dist/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +9 -0
- package/dist/api/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +9 -0
- 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/user/client/requests/UserInfoCreateRequest.d.ts +5 -0
- package/dist/api/resources/vitals/client/Client.js +75 -75
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ClientFacingPatientDetailsCompatible.d.ts +11 -0
- package/dist/api/types/Ethnicity.d.ts +10 -0
- package/dist/api/types/Ethnicity.js +12 -0
- package/dist/api/types/GenderIdentity.d.ts +12 -0
- package/dist/api/types/GenderIdentity.js +14 -0
- package/dist/api/types/GuarantorDetails.d.ts +2 -0
- package/dist/api/types/PatientDetailsWithValidation.d.ts +10 -0
- package/dist/api/types/Race.d.ts +12 -0
- package/dist/api/types/Race.js +14 -0
- package/dist/api/types/SexualOrientation.d.ts +11 -0
- package/dist/api/types/SexualOrientation.js +13 -0
- package/dist/api/types/UserInfo.d.ts +5 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +1 -0
- package/dist/serialization/resources/link/client/requests/BulkImportConnectionsBody.js +1 -0
- package/dist/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +1 -0
- package/dist/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.js +1 -0
- package/dist/serialization/resources/user/client/requests/UserInfoCreateRequest.d.ts +10 -0
- package/dist/serialization/resources/user/client/requests/UserInfoCreateRequest.js +10 -0
- package/dist/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +10 -0
- package/dist/serialization/types/ClientFacingPatientDetailsCompatible.js +10 -0
- package/dist/serialization/types/Ethnicity.d.ts +10 -0
- package/dist/serialization/types/Ethnicity.js +31 -0
- package/dist/serialization/types/GenderIdentity.d.ts +10 -0
- package/dist/serialization/types/GenderIdentity.js +38 -0
- package/dist/serialization/types/GuarantorDetails.d.ts +2 -0
- package/dist/serialization/types/GuarantorDetails.js +2 -0
- package/dist/serialization/types/PatientDetailsWithValidation.d.ts +10 -0
- package/dist/serialization/types/PatientDetailsWithValidation.js +10 -0
- package/dist/serialization/types/Race.d.ts +10 -0
- package/dist/serialization/types/Race.js +38 -0
- package/dist/serialization/types/SexualOrientation.d.ts +10 -0
- package/dist/serialization/types/SexualOrientation.js +37 -0
- package/dist/serialization/types/UserInfo.d.ts +10 -0
- package/dist/serialization/types/UserInfo.js +10 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +1 -0
- package/serialization/resources/link/client/requests/BulkImportConnectionsBody.js +1 -0
- package/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +1 -0
- package/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.js +1 -0
- package/serialization/resources/user/client/requests/UserInfoCreateRequest.d.ts +10 -0
- package/serialization/resources/user/client/requests/UserInfoCreateRequest.js +10 -0
- package/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +10 -0
- package/serialization/types/ClientFacingPatientDetailsCompatible.js +10 -0
- package/serialization/types/Ethnicity.d.ts +10 -0
- package/serialization/types/Ethnicity.js +31 -0
- package/serialization/types/GenderIdentity.d.ts +10 -0
- package/serialization/types/GenderIdentity.js +38 -0
- package/serialization/types/GuarantorDetails.d.ts +2 -0
- package/serialization/types/GuarantorDetails.js +2 -0
- package/serialization/types/PatientDetailsWithValidation.d.ts +10 -0
- package/serialization/types/PatientDetailsWithValidation.js +10 -0
- package/serialization/types/Race.d.ts +10 -0
- package/serialization/types/Race.js +38 -0
- package/serialization/types/SexualOrientation.d.ts +10 -0
- package/serialization/types/SexualOrientation.js +37 -0
- package/serialization/types/UserInfo.d.ts +10 -0
- package/serialization/types/UserInfo.js +10 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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",
|
@@ -827,7 +827,7 @@ class LabTests {
|
|
827
827
|
const _response = yield core.fetcher({
|
828
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"),
|
829
829
|
method: "POST",
|
830
|
-
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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
831
831
|
contentType: "application/json",
|
832
832
|
queryParameters: _queryParams,
|
833
833
|
requestType: "json",
|
@@ -895,7 +895,7 @@ class LabTests {
|
|
895
895
|
const _response = yield core.fetcher({
|
896
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`),
|
897
897
|
method: "POST",
|
898
|
-
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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
899
899
|
contentType: "application/json",
|
900
900
|
requestType: "json",
|
901
901
|
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -968,7 +968,7 @@ class LabTests {
|
|
968
968
|
const _response = yield core.fetcher({
|
969
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`),
|
970
970
|
method: "POST",
|
971
|
-
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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
972
972
|
contentType: "application/json",
|
973
973
|
requestType: "json",
|
974
974
|
body: serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1035,7 +1035,7 @@ class LabTests {
|
|
1035
1035
|
const _response = yield core.fetcher({
|
1036
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`),
|
1037
1037
|
method: "PATCH",
|
1038
|
-
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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1039
1039
|
contentType: "application/json",
|
1040
1040
|
requestType: "json",
|
1041
1041
|
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1102,7 +1102,7 @@ class LabTests {
|
|
1102
1102
|
const _response = yield core.fetcher({
|
1103
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`),
|
1104
1104
|
method: "PATCH",
|
1105
|
-
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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1106
1106
|
contentType: "application/json",
|
1107
1107
|
requestType: "json",
|
1108
1108
|
body: serializers.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1163,7 +1163,7 @@ class LabTests {
|
|
1163
1163
|
const _response = yield core.fetcher({
|
1164
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"),
|
1165
1165
|
method: "GET",
|
1166
|
-
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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1167
1167
|
contentType: "application/json",
|
1168
1168
|
requestType: "json",
|
1169
1169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1216,7 +1216,7 @@ class LabTests {
|
|
1216
1216
|
const _response = yield core.fetcher({
|
1217
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`),
|
1218
1218
|
method: "GET",
|
1219
|
-
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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1220
1220
|
contentType: "application/json",
|
1221
1221
|
requestType: "json",
|
1222
1222
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1294,7 +1294,7 @@ class LabTests {
|
|
1294
1294
|
const _response = yield core.fetcher({
|
1295
1295
|
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"),
|
1296
1296
|
method: "GET",
|
1297
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1297
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1298
1298
|
contentType: "application/json",
|
1299
1299
|
queryParameters: _queryParams,
|
1300
1300
|
requestType: "json",
|
@@ -1366,7 +1366,7 @@ class LabTests {
|
|
1366
1366
|
const _response = yield core.fetcher({
|
1367
1367
|
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"),
|
1368
1368
|
method: "GET",
|
1369
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1369
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1370
1370
|
contentType: "application/json",
|
1371
1371
|
queryParameters: _queryParams,
|
1372
1372
|
requestType: "json",
|
@@ -1434,7 +1434,7 @@ class LabTests {
|
|
1434
1434
|
const _response = yield core.fetcher({
|
1435
1435
|
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`),
|
1436
1436
|
method: "GET",
|
1437
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1437
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1438
1438
|
contentType: "application/json",
|
1439
1439
|
queryParameters: _queryParams,
|
1440
1440
|
requestType: "json",
|
@@ -1491,7 +1491,7 @@ class LabTests {
|
|
1491
1491
|
const _response = yield core.fetcher({
|
1492
1492
|
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`),
|
1493
1493
|
method: "GET",
|
1494
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1494
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1495
1495
|
contentType: "application/json",
|
1496
1496
|
requestType: "json",
|
1497
1497
|
responseType: "streaming",
|
@@ -1551,7 +1551,7 @@ class LabTests {
|
|
1551
1551
|
const _response = yield core.fetcher({
|
1552
1552
|
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`),
|
1553
1553
|
method: "GET",
|
1554
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1554
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1555
1555
|
contentType: "application/json",
|
1556
1556
|
requestType: "json",
|
1557
1557
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1614,7 +1614,7 @@ class LabTests {
|
|
1614
1614
|
const _response = yield core.fetcher({
|
1615
1615
|
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`),
|
1616
1616
|
method: "GET",
|
1617
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1617
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1618
1618
|
contentType: "application/json",
|
1619
1619
|
requestType: "json",
|
1620
1620
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1676,7 +1676,7 @@ class LabTests {
|
|
1676
1676
|
const _response = yield core.fetcher({
|
1677
1677
|
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`),
|
1678
1678
|
method: "GET",
|
1679
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1679
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1680
1680
|
contentType: "application/json",
|
1681
1681
|
queryParameters: _queryParams,
|
1682
1682
|
requestType: "json",
|
@@ -1756,7 +1756,7 @@ class LabTests {
|
|
1756
1756
|
const _response = yield core.fetcher({
|
1757
1757
|
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"),
|
1758
1758
|
method: "POST",
|
1759
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1759
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1760
1760
|
contentType: "application/json",
|
1761
1761
|
queryParameters: _queryParams,
|
1762
1762
|
requestType: "json",
|
@@ -1821,7 +1821,7 @@ class LabTests {
|
|
1821
1821
|
const _response = yield core.fetcher({
|
1822
1822
|
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`),
|
1823
1823
|
method: "POST",
|
1824
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1824
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1825
1825
|
contentType: "application/json",
|
1826
1826
|
requestType: "json",
|
1827
1827
|
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1886,7 +1886,7 @@ class LabTests {
|
|
1886
1886
|
const _response = yield core.fetcher({
|
1887
1887
|
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`),
|
1888
1888
|
method: "PATCH",
|
1889
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1889
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1890
1890
|
contentType: "application/json",
|
1891
1891
|
requestType: "json",
|
1892
1892
|
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1951,7 +1951,7 @@ class LabTests {
|
|
1951
1951
|
const _response = yield core.fetcher({
|
1952
1952
|
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`),
|
1953
1953
|
method: "PATCH",
|
1954
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1954
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1955
1955
|
contentType: "application/json",
|
1956
1956
|
requestType: "json",
|
1957
1957
|
body: serializers.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.jsonOrThrow(request, {
|
@@ -2012,7 +2012,7 @@ class LabTests {
|
|
2012
2012
|
const _response = yield core.fetcher({
|
2013
2013
|
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"),
|
2014
2014
|
method: "GET",
|
2015
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2015
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2016
2016
|
contentType: "application/json",
|
2017
2017
|
requestType: "json",
|
2018
2018
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2065,7 +2065,7 @@ class LabTests {
|
|
2065
2065
|
const _response = yield core.fetcher({
|
2066
2066
|
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`),
|
2067
2067
|
method: "GET",
|
2068
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2068
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2069
2069
|
contentType: "application/json",
|
2070
2070
|
requestType: "json",
|
2071
2071
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2121,7 +2121,7 @@ class LabTests {
|
|
2121
2121
|
const _response = yield core.fetcher({
|
2122
2122
|
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`),
|
2123
2123
|
method: "GET",
|
2124
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2124
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2125
2125
|
contentType: "application/json",
|
2126
2126
|
requestType: "json",
|
2127
2127
|
responseType: "streaming",
|
@@ -2180,7 +2180,7 @@ class LabTests {
|
|
2180
2180
|
const _response = yield core.fetcher({
|
2181
2181
|
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)}`),
|
2182
2182
|
method: "GET",
|
2183
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2183
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2184
2184
|
contentType: "application/json",
|
2185
2185
|
requestType: "json",
|
2186
2186
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2260,7 +2260,7 @@ class LabTests {
|
|
2260
2260
|
const _response = yield core.fetcher({
|
2261
2261
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
|
2262
2262
|
method: "POST",
|
2263
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2263
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2264
2264
|
contentType: "application/json",
|
2265
2265
|
requestType: "json",
|
2266
2266
|
body: serializers.CreateOrderRequestCompatible.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -2344,7 +2344,7 @@ class LabTests {
|
|
2344
2344
|
const _response = yield core.fetcher({
|
2345
2345
|
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"),
|
2346
2346
|
method: "POST",
|
2347
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2347
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2348
2348
|
contentType: "application/json",
|
2349
2349
|
requestType: "json",
|
2350
2350
|
body: serializers.ImportOrderBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -2408,7 +2408,7 @@ class LabTests {
|
|
2408
2408
|
const _response = yield core.fetcher({
|
2409
2409
|
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`),
|
2410
2410
|
method: "POST",
|
2411
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2411
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2412
2412
|
contentType: "application/json",
|
2413
2413
|
requestType: "json",
|
2414
2414
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2480,7 +2480,7 @@ class LabTests {
|
|
2480
2480
|
const _response = yield core.fetcher({
|
2481
2481
|
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`),
|
2482
2482
|
method: "POST",
|
2483
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2483
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2484
2484
|
contentType: "application/json",
|
2485
2485
|
queryParameters: _queryParams,
|
2486
2486
|
requestType: "json",
|
@@ -2585,7 +2585,7 @@ class LabTests {
|
|
2585
2585
|
const _response = yield core.fetcher({
|
2586
2586
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
|
2587
2587
|
method: "GET",
|
2588
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2588
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2589
2589
|
contentType: "application/json",
|
2590
2590
|
queryParameters: _queryParams,
|
2591
2591
|
requestType: "json",
|
@@ -80,7 +80,7 @@ class Link {
|
|
80
80
|
const _response = yield core.fetcher({
|
81
81
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/bulk_op"),
|
82
82
|
method: "GET",
|
83
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
83
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
84
84
|
contentType: "application/json",
|
85
85
|
queryParameters: _queryParams,
|
86
86
|
requestType: "json",
|
@@ -151,7 +151,7 @@ class Link {
|
|
151
151
|
const _response = yield core.fetcher({
|
152
152
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/bulk_import"),
|
153
153
|
method: "POST",
|
154
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
154
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
155
155
|
contentType: "application/json",
|
156
156
|
requestType: "json",
|
157
157
|
body: serializers.BulkImportConnectionsBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -216,7 +216,7 @@ class Link {
|
|
216
216
|
const _response = yield core.fetcher({
|
217
217
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/bulk_trigger_historical_pull"),
|
218
218
|
method: "POST",
|
219
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
219
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
220
220
|
contentType: "application/json",
|
221
221
|
requestType: "json",
|
222
222
|
body: serializers.BulkTriggerHistoricalPullBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -275,7 +275,7 @@ class Link {
|
|
275
275
|
const _response = yield core.fetcher({
|
276
276
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/bulk_export"),
|
277
277
|
method: "POST",
|
278
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
278
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
279
279
|
contentType: "application/json",
|
280
280
|
requestType: "json",
|
281
281
|
body: serializers.BulkExportConnectionsBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -340,7 +340,7 @@ class Link {
|
|
340
340
|
const _response = yield core.fetcher({
|
341
341
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/bulk_pause"),
|
342
342
|
method: "POST",
|
343
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
343
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
344
344
|
contentType: "application/json",
|
345
345
|
requestType: "json",
|
346
346
|
body: serializers.BulkPauseConnectionsBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -406,7 +406,7 @@ class Link {
|
|
406
406
|
const _response = yield core.fetcher({
|
407
407
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/token"),
|
408
408
|
method: "POST",
|
409
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
409
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
410
410
|
contentType: "application/json",
|
411
411
|
requestType: "json",
|
412
412
|
body: serializers.LinkTokenExchange.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -470,7 +470,7 @@ class Link {
|
|
470
470
|
const _response = yield core.fetcher({
|
471
471
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/token/isValid"),
|
472
472
|
method: "POST",
|
473
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
473
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
474
474
|
contentType: "application/json",
|
475
475
|
requestType: "json",
|
476
476
|
body: serializers.LinkTokenValidationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -542,7 +542,7 @@ class Link {
|
|
542
542
|
const _response = yield core.fetcher({
|
543
543
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/code/create"),
|
544
544
|
method: "POST",
|
545
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
545
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
546
546
|
contentType: "application/json",
|
547
547
|
queryParameters: _queryParams,
|
548
548
|
requestType: "json",
|
@@ -610,7 +610,7 @@ class Link {
|
|
610
610
|
const _response = yield core.fetcher({
|
611
611
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/start"),
|
612
612
|
method: "POST",
|
613
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
613
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
614
614
|
contentType: "application/json",
|
615
615
|
requestType: "json",
|
616
616
|
body: serializers.BeginLinkTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -676,7 +676,7 @@ class Link {
|
|
676
676
|
const _response = yield core.fetcher({
|
677
677
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/state"),
|
678
678
|
method: "GET",
|
679
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
679
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
680
680
|
contentType: "application/json",
|
681
681
|
requestType: "json",
|
682
682
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -744,7 +744,7 @@ class Link {
|
|
744
744
|
const _response = yield core.fetcher({
|
745
745
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/auth/email"),
|
746
746
|
method: "POST",
|
747
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
747
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
748
748
|
contentType: "application/json",
|
749
749
|
requestType: "json",
|
750
750
|
body: serializers.EmailAuthLink.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
@@ -809,7 +809,7 @@ class Link {
|
|
809
809
|
const _response = yield core.fetcher({
|
810
810
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/auth"),
|
811
811
|
method: "POST",
|
812
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
812
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
813
813
|
contentType: "application/json",
|
814
814
|
requestType: "json",
|
815
815
|
body: serializers.PasswordAuthLink.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
@@ -870,7 +870,7 @@ class Link {
|
|
870
870
|
const _response = yield core.fetcher({
|
871
871
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/link/provider/oauth/${encodeURIComponent(serializers.OAuthProviders.jsonOrThrow(oauthProvider))}`),
|
872
872
|
method: "GET",
|
873
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
873
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
874
874
|
contentType: "application/json",
|
875
875
|
requestType: "json",
|
876
876
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -938,7 +938,7 @@ class Link {
|
|
938
938
|
const _response = yield core.fetcher({
|
939
939
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/link/provider/password/${encodeURIComponent(serializers.PasswordProviders.jsonOrThrow(provider))}`),
|
940
940
|
method: "POST",
|
941
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
941
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
942
942
|
contentType: "application/json",
|
943
943
|
requestType: "json",
|
944
944
|
body: serializers.IndividualProviderData.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
@@ -1006,7 +1006,7 @@ class Link {
|
|
1006
1006
|
const _response = yield core.fetcher({
|
1007
1007
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/link/provider/password/${encodeURIComponent(serializers.PasswordProviders.jsonOrThrow(provider))}/complete_mfa`),
|
1008
1008
|
method: "POST",
|
1009
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1009
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
1010
1010
|
contentType: "application/json",
|
1011
1011
|
requestType: "json",
|
1012
1012
|
body: serializers.CompletePasswordProviderMfaBody.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
@@ -1074,7 +1074,7 @@ class Link {
|
|
1074
1074
|
const _response = yield core.fetcher({
|
1075
1075
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/link/provider/email/${encodeURIComponent(serializers.EmailProviders.jsonOrThrow(provider))}`),
|
1076
1076
|
method: "POST",
|
1077
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1077
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
1078
1078
|
contentType: "application/json",
|
1079
1079
|
requestType: "json",
|
1080
1080
|
body: serializers.EmailProviderAuthLink.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
@@ -1134,7 +1134,7 @@ class Link {
|
|
1134
1134
|
const _response = yield core.fetcher({
|
1135
1135
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/providers"),
|
1136
1136
|
method: "GET",
|
1137
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1137
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
1138
1138
|
contentType: "application/json",
|
1139
1139
|
requestType: "json",
|
1140
1140
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1198,7 +1198,7 @@ class Link {
|
|
1198
1198
|
const _response = yield core.fetcher({
|
1199
1199
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/link/provider/manual/${encodeURIComponent(serializers.ManualProviders.jsonOrThrow(provider))}`),
|
1200
1200
|
method: "POST",
|
1201
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1201
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1202
1202
|
contentType: "application/json",
|
1203
1203
|
requestType: "json",
|
1204
1204
|
body: serializers.ManualConnectionData.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1265,7 +1265,7 @@ class Link {
|
|
1265
1265
|
const _response = yield core.fetcher({
|
1266
1266
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/connect/demo"),
|
1267
1267
|
method: "POST",
|
1268
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1268
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1269
1269
|
contentType: "application/json",
|
1270
1270
|
requestType: "json",
|
1271
1271
|
body: serializers.DemoConnectionCreationPayload.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -18,4 +18,13 @@ import * as Vital from "../../../../index";
|
|
18
18
|
export interface BulkImportConnectionsBody {
|
19
19
|
provider: Vital.OAuthProviders;
|
20
20
|
connections: Vital.ConnectionRecipe[];
|
21
|
+
/**
|
22
|
+
* Whether or not the endpoint should wait for the Bulk Op to complete before responding.
|
23
|
+
*
|
24
|
+
* When `wait_for_completion` is enabled, the endpoint may respond 200 OK if the Bulk Op takes less than 20 seconds to complete.
|
25
|
+
*
|
26
|
+
* Otherwise, the endpoint always responds with 202 Created once the submitted data have been enqueued successfully. You can use
|
27
|
+
* the [List Bulk Ops](https://docs.tryvital.io/api-reference/link/list-bulk-ops) endpoint to inspect the progress of the Bulk Op.
|
28
|
+
*/
|
29
|
+
waitForCompletion?: boolean;
|
21
30
|
}
|