@tryvital/vital-node 3.1.148 → 3.1.150
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 +1 -1
- 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.d.ts +2 -4
- package/api/resources/insurance/client/Client.js +4 -6
- package/api/resources/insurance/client/requests/PayorSearchRequest.d.ts +5 -4
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.js +34 -34
- package/api/resources/link/client/Client.js +14 -14
- package/api/resources/link/client/requests/LinkCodeCreateRequest.d.ts +3 -0
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/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/ClientFacingConnectionErrorDetails.d.ts +9 -0
- package/api/types/ClientFacingConnectionErrorDetails.js +5 -0
- package/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +13 -0
- package/api/types/ClientFacingConnectionErrorDetailsErrorType.js +15 -0
- package/api/types/ClientFacingProviderWithStatus.d.ts +3 -0
- package/api/types/PayorCodeExternalProvider.d.ts +8 -0
- package/api/types/PayorCodeExternalProvider.js +10 -0
- package/api/types/VitalTokenCreatedResponse.d.ts +1 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +1 -1
- 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.d.ts +2 -4
- package/dist/api/resources/insurance/client/Client.js +4 -6
- package/dist/api/resources/insurance/client/requests/PayorSearchRequest.d.ts +5 -4
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.js +34 -34
- package/dist/api/resources/link/client/Client.js +14 -14
- package/dist/api/resources/link/client/requests/LinkCodeCreateRequest.d.ts +3 -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/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/ClientFacingConnectionErrorDetails.d.ts +9 -0
- package/dist/api/types/ClientFacingConnectionErrorDetails.js +5 -0
- package/dist/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +13 -0
- package/dist/api/types/ClientFacingConnectionErrorDetailsErrorType.js +15 -0
- package/dist/api/types/ClientFacingProviderWithStatus.d.ts +3 -0
- package/dist/api/types/PayorCodeExternalProvider.d.ts +8 -0
- package/dist/api/types/PayorCodeExternalProvider.js +10 -0
- package/dist/api/types/VitalTokenCreatedResponse.d.ts +1 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/resources/insurance/client/requests/PayorSearchRequest.d.ts +4 -1
- package/dist/serialization/resources/insurance/client/requests/PayorSearchRequest.js +4 -1
- package/dist/serialization/types/ClientFacingConnectionErrorDetails.d.ts +15 -0
- package/dist/serialization/types/ClientFacingConnectionErrorDetails.js +36 -0
- package/dist/serialization/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +10 -0
- package/dist/serialization/types/ClientFacingConnectionErrorDetailsErrorType.js +39 -0
- package/dist/serialization/types/ClientFacingProviderWithStatus.d.ts +3 -0
- package/dist/serialization/types/ClientFacingProviderWithStatus.js +3 -0
- package/dist/serialization/types/PayorCodeExternalProvider.d.ts +10 -0
- package/dist/serialization/types/PayorCodeExternalProvider.js +31 -0
- package/dist/serialization/types/VitalTokenCreatedResponse.d.ts +1 -0
- package/dist/serialization/types/VitalTokenCreatedResponse.js +1 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1 -3
- package/serialization/resources/insurance/client/requests/PayorSearchRequest.d.ts +4 -1
- package/serialization/resources/insurance/client/requests/PayorSearchRequest.js +4 -1
- package/serialization/types/ClientFacingConnectionErrorDetails.d.ts +15 -0
- package/serialization/types/ClientFacingConnectionErrorDetails.js +36 -0
- package/serialization/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +10 -0
- package/serialization/types/ClientFacingConnectionErrorDetailsErrorType.js +39 -0
- package/serialization/types/ClientFacingProviderWithStatus.d.ts +3 -0
- package/serialization/types/ClientFacingProviderWithStatus.js +3 -0
- package/serialization/types/PayorCodeExternalProvider.d.ts +10 -0
- package/serialization/types/PayorCodeExternalProvider.js +31 -0
- package/serialization/types/VitalTokenCreatedResponse.d.ts +1 -0
- package/serialization/types/VitalTokenCreatedResponse.js +1 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
@@ -78,7 +78,7 @@ class Workouts {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -154,7 +154,7 @@ class Workouts {
|
|
154
154
|
const _response = yield core.fetcher({
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}/raw`),
|
156
156
|
method: "GET",
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
158
158
|
contentType: "application/json",
|
159
159
|
queryParameters: _queryParams,
|
160
160
|
requestType: "json",
|
@@ -216,7 +216,7 @@ class Workouts {
|
|
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/timeseries/workouts/${encodeURIComponent(workoutId)}/stream`),
|
218
218
|
method: "GET",
|
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.150", "User-Agent": "@tryvital/vital-node/3.1.150", "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
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../index";
|
5
|
+
export interface ClientFacingConnectionErrorDetails {
|
6
|
+
errorType: Vital.ClientFacingConnectionErrorDetailsErrorType;
|
7
|
+
errorMessage: string;
|
8
|
+
erroredAt: string;
|
9
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type ClientFacingConnectionErrorDetailsErrorType = "token_refresh_failed" | "webhook_registration_failed" | "user_not_found" | "deregistered_per_provider" | "required_scopes_not_granted" | "provider_credential_error" | "unknown";
|
5
|
+
export declare const ClientFacingConnectionErrorDetailsErrorType: {
|
6
|
+
readonly TokenRefreshFailed: "token_refresh_failed";
|
7
|
+
readonly WebhookRegistrationFailed: "webhook_registration_failed";
|
8
|
+
readonly UserNotFound: "user_not_found";
|
9
|
+
readonly DeregisteredPerProvider: "deregistered_per_provider";
|
10
|
+
readonly RequiredScopesNotGranted: "required_scopes_not_granted";
|
11
|
+
readonly ProviderCredentialError: "provider_credential_error";
|
12
|
+
readonly Unknown: "unknown";
|
13
|
+
};
|
@@ -0,0 +1,15 @@
|
|
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.ClientFacingConnectionErrorDetailsErrorType = void 0;
|
7
|
+
exports.ClientFacingConnectionErrorDetailsErrorType = {
|
8
|
+
TokenRefreshFailed: "token_refresh_failed",
|
9
|
+
WebhookRegistrationFailed: "webhook_registration_failed",
|
10
|
+
UserNotFound: "user_not_found",
|
11
|
+
DeregisteredPerProvider: "deregistered_per_provider",
|
12
|
+
RequiredScopesNotGranted: "required_scopes_not_granted",
|
13
|
+
ProviderCredentialError: "provider_credential_error",
|
14
|
+
Unknown: "unknown",
|
15
|
+
};
|
@@ -9,7 +9,10 @@ export interface ClientFacingProviderWithStatus {
|
|
9
9
|
slug: string;
|
10
10
|
/** URL for source logo */
|
11
11
|
logo: string;
|
12
|
+
createdOn: string;
|
12
13
|
/** Status of source, either error or connected */
|
13
14
|
status: string;
|
15
|
+
/** Details of the terminal connection error — populated only when the status is `error`. */
|
16
|
+
errorDetails?: Vital.ClientFacingConnectionErrorDetails;
|
14
17
|
resourceAvailability: Record<string, Vital.ResourceAvailability>;
|
15
18
|
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type PayorCodeExternalProvider = "change_healthcare" | "availity";
|
5
|
+
export declare const PayorCodeExternalProvider: {
|
6
|
+
readonly ChangeHealthcare: "change_healthcare";
|
7
|
+
readonly Availity: "availity";
|
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.PayorCodeExternalProvider = void 0;
|
7
|
+
exports.PayorCodeExternalProvider = {
|
8
|
+
ChangeHealthcare: "change_healthcare",
|
9
|
+
Availity: "availity",
|
10
|
+
};
|
package/api/types/index.d.ts
CHANGED
@@ -59,6 +59,8 @@ export * from "./ClientFacingCaloriesActiveTimeseries";
|
|
59
59
|
export * from "./ClientFacingCaloriesBasalTimeseries";
|
60
60
|
export * from "./ClientFacingCarbohydratesSample";
|
61
61
|
export * from "./ClientFacingCholesterolTimeseries";
|
62
|
+
export * from "./ClientFacingConnectionErrorDetailsErrorType";
|
63
|
+
export * from "./ClientFacingConnectionErrorDetails";
|
62
64
|
export * from "./ClientFacingDiagnosisInformation";
|
63
65
|
export * from "./ClientFacingDistanceTimeseries";
|
64
66
|
export * from "./ClientFacingElectrocardiogramClassification";
|
@@ -250,6 +252,7 @@ export * from "./PasswordProviders";
|
|
250
252
|
export * from "./PatientAddressCompatible";
|
251
253
|
export * from "./PatientDetails";
|
252
254
|
export * from "./PatientDetailsWithValidation";
|
255
|
+
export * from "./PayorCodeExternalProvider";
|
253
256
|
export * from "./PeriodUnit";
|
254
257
|
export * from "./Period";
|
255
258
|
export * from "./PersonDetailsOutput";
|
package/api/types/index.js
CHANGED
@@ -75,6 +75,8 @@ __exportStar(require("./ClientFacingCaloriesActiveTimeseries"), exports);
|
|
75
75
|
__exportStar(require("./ClientFacingCaloriesBasalTimeseries"), exports);
|
76
76
|
__exportStar(require("./ClientFacingCarbohydratesSample"), exports);
|
77
77
|
__exportStar(require("./ClientFacingCholesterolTimeseries"), exports);
|
78
|
+
__exportStar(require("./ClientFacingConnectionErrorDetailsErrorType"), exports);
|
79
|
+
__exportStar(require("./ClientFacingConnectionErrorDetails"), exports);
|
78
80
|
__exportStar(require("./ClientFacingDiagnosisInformation"), exports);
|
79
81
|
__exportStar(require("./ClientFacingDistanceTimeseries"), exports);
|
80
82
|
__exportStar(require("./ClientFacingElectrocardiogramClassification"), exports);
|
@@ -266,6 +268,7 @@ __exportStar(require("./PasswordProviders"), exports);
|
|
266
268
|
__exportStar(require("./PatientAddressCompatible"), exports);
|
267
269
|
__exportStar(require("./PatientDetails"), exports);
|
268
270
|
__exportStar(require("./PatientDetailsWithValidation"), exports);
|
271
|
+
__exportStar(require("./PayorCodeExternalProvider"), exports);
|
269
272
|
__exportStar(require("./PeriodUnit"), exports);
|
270
273
|
__exportStar(require("./Period"), exports);
|
271
274
|
__exportStar(require("./PersonDetailsOutput"), exports);
|
@@ -78,7 +78,7 @@ class Activity {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -154,7 +154,7 @@ class Activity {
|
|
154
154
|
const _response = yield core.fetcher({
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}/raw`),
|
156
156
|
method: "GET",
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
158
158
|
contentType: "application/json",
|
159
159
|
queryParameters: _queryParams,
|
160
160
|
requestType: "json",
|
@@ -81,7 +81,7 @@ class Aggregate {
|
|
81
81
|
const _response = yield core.fetcher({
|
82
82
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/query`),
|
83
83
|
method: "POST",
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
|
85
85
|
contentType: "application/json",
|
86
86
|
requestType: "json",
|
87
87
|
body: serializers.QueryBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -78,7 +78,7 @@ class Body {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -154,7 +154,7 @@ class Body {
|
|
154
154
|
const _response = yield core.fetcher({
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${encodeURIComponent(userId)}/raw`),
|
156
156
|
method: "GET",
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
158
158
|
contentType: "application/json",
|
159
159
|
queryParameters: _queryParams,
|
160
160
|
requestType: "json",
|
@@ -72,7 +72,7 @@ class Devices {
|
|
72
72
|
const _response = yield core.fetcher({
|
73
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${encodeURIComponent(userId)}/raw`),
|
74
74
|
method: "GET",
|
75
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
76
76
|
contentType: "application/json",
|
77
77
|
queryParameters: _queryParams,
|
78
78
|
requestType: "json",
|
@@ -78,7 +78,7 @@ class Electrocardiogram {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/electrocardiogram/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -28,11 +28,9 @@ export declare class Insurance {
|
|
28
28
|
* @throws {@link Vital.UnprocessableEntityError}
|
29
29
|
*
|
30
30
|
* @example
|
31
|
-
* await client.insurance.searchPayorInfo(
|
32
|
-
* insuranceName: "insurance_name"
|
33
|
-
* })
|
31
|
+
* await client.insurance.searchPayorInfo()
|
34
32
|
*/
|
35
|
-
searchPayorInfo(request
|
33
|
+
searchPayorInfo(request?: Vital.PayorSearchRequest, requestOptions?: Insurance.RequestOptions): Promise<Vital.ClientFacingPayorSearchResponse[]>;
|
36
34
|
/**
|
37
35
|
* @param {Vital.InsuranceSearchDiagnosisRequest} request
|
38
36
|
* @param {Insurance.RequestOptions} requestOptions - Request-specific configuration.
|
@@ -56,17 +56,15 @@ class Insurance {
|
|
56
56
|
* @throws {@link Vital.UnprocessableEntityError}
|
57
57
|
*
|
58
58
|
* @example
|
59
|
-
* await client.insurance.searchPayorInfo(
|
60
|
-
* insuranceName: "insurance_name"
|
61
|
-
* })
|
59
|
+
* await client.insurance.searchPayorInfo()
|
62
60
|
*/
|
63
|
-
searchPayorInfo(request, requestOptions) {
|
61
|
+
searchPayorInfo(request = {}, requestOptions) {
|
64
62
|
var _a;
|
65
63
|
return __awaiter(this, void 0, void 0, function* () {
|
66
64
|
const _response = yield core.fetcher({
|
67
65
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
|
68
66
|
method: "POST",
|
69
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
70
68
|
contentType: "application/json",
|
71
69
|
requestType: "json",
|
72
70
|
body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -133,7 +131,7 @@ class Insurance {
|
|
133
131
|
const _response = yield core.fetcher({
|
134
132
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
|
135
133
|
method: "GET",
|
136
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
137
135
|
contentType: "application/json",
|
138
136
|
queryParameters: _queryParams,
|
139
137
|
requestType: "json",
|
@@ -1,12 +1,13 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
import * as Vital from "../../../../index";
|
4
5
|
/**
|
5
6
|
* @example
|
6
|
-
* {
|
7
|
-
* insuranceName: "insurance_name"
|
8
|
-
* }
|
7
|
+
* {}
|
9
8
|
*/
|
10
9
|
export interface PayorSearchRequest {
|
11
|
-
insuranceName
|
10
|
+
insuranceName?: string;
|
11
|
+
provider?: Vital.PayorCodeExternalProvider;
|
12
|
+
providerId?: string;
|
12
13
|
}
|
@@ -81,7 +81,7 @@ class Introspect {
|
|
81
81
|
const _response = yield core.fetcher({
|
82
82
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
|
83
83
|
method: "GET",
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
85
85
|
contentType: "application/json",
|
86
86
|
queryParameters: _queryParams,
|
87
87
|
requestType: "json",
|
@@ -160,7 +160,7 @@ class Introspect {
|
|
160
160
|
const _response = yield core.fetcher({
|
161
161
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
|
162
162
|
method: "GET",
|
163
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
163
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.150", "User-Agent": "@tryvital/vital-node/3.1.150", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
164
164
|
contentType: "application/json",
|
165
165
|
queryParameters: _queryParams,
|
166
166
|
requestType: "json",
|