@tryvital/vital-node 3.1.143 → 3.1.145
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/Client.d.ts +3 -0
- package/Client.js +41 -36
- 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.d.ts +42 -0
- package/api/resources/electrocardiogram/client/Client.js +135 -0
- package/api/resources/electrocardiogram/client/index.d.ts +1 -0
- package/api/resources/electrocardiogram/client/index.js +17 -0
- package/api/resources/electrocardiogram/client/requests/ElectrocardiogramGetRequest.d.ts +17 -0
- package/api/resources/electrocardiogram/client/requests/index.d.ts +1 -0
- package/api/resources/electrocardiogram/client/requests/index.js +2 -0
- package/api/resources/electrocardiogram/index.d.ts +1 -0
- package/api/resources/electrocardiogram/index.js +17 -0
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/insurance/client/Client.js +2 -2
- 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/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/ClientFacingElectrocardiogram.d.ts +22 -0
- package/api/types/ClientFacingElectrocardiogramClassification.d.ts +9 -0
- package/api/types/ClientFacingElectrocardiogramClassification.js +11 -0
- package/api/types/ClientFacingElectrocardiogramInconclusiveCause.d.ts +9 -0
- package/api/types/ClientFacingElectrocardiogramInconclusiveCause.js +11 -0
- package/api/types/ClientFacingElectrocardiogramResponse.d.ts +7 -0
- package/api/types/ClientFacingElectrocardiogramResponse.js +5 -0
- package/api/types/ClientFacingElectrocardiogramSourceProvider.d.ts +5 -0
- package/api/types/ClientFacingElectrocardiogramSourceProvider.js +5 -0
- package/api/types/ClientFacingElectrocardiogramSourceType.d.ts +19 -0
- package/api/types/ClientFacingElectrocardiogramSourceType.js +21 -0
- package/api/types/{MenstrualCycle.d.ts → ClientFacingMenstrualCycle.d.ts} +6 -1
- package/api/types/ClientFacingMenstrualCycle.js +5 -0
- package/api/types/ClientFacingMenstrualCycleSourceProvider.d.ts +5 -0
- package/api/types/ClientFacingMenstrualCycleSourceProvider.js +5 -0
- package/api/types/ClientFacingMenstrualCycleSourceType.d.ts +19 -0
- package/api/types/ClientFacingMenstrualCycleSourceType.js +21 -0
- package/api/types/ClientFacingSport.d.ts +1 -0
- package/api/types/MenstrualCycleResponse.d.ts +1 -1
- package/api/types/WorkoutColumnExprWorkout.d.ts +1 -2
- package/api/types/WorkoutColumnExprWorkout.js +0 -1
- package/api/types/index.d.ts +9 -1
- package/api/types/index.js +9 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +41 -36
- 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.d.ts +42 -0
- package/dist/api/resources/electrocardiogram/client/Client.js +135 -0
- package/dist/api/resources/electrocardiogram/client/index.d.ts +1 -0
- package/dist/api/resources/electrocardiogram/client/index.js +17 -0
- package/dist/api/resources/electrocardiogram/client/requests/ElectrocardiogramGetRequest.d.ts +17 -0
- package/dist/api/resources/electrocardiogram/client/requests/ElectrocardiogramGetRequest.js +5 -0
- package/dist/api/resources/electrocardiogram/client/requests/index.d.ts +1 -0
- package/dist/api/resources/electrocardiogram/client/requests/index.js +2 -0
- package/dist/api/resources/electrocardiogram/index.d.ts +1 -0
- package/dist/api/resources/electrocardiogram/index.js +17 -0
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/insurance/client/Client.js +2 -2
- 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/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/ClientFacingElectrocardiogram.d.ts +22 -0
- package/dist/api/types/ClientFacingElectrocardiogram.js +5 -0
- package/dist/api/types/ClientFacingElectrocardiogramClassification.d.ts +9 -0
- package/dist/api/types/ClientFacingElectrocardiogramClassification.js +11 -0
- package/dist/api/types/ClientFacingElectrocardiogramInconclusiveCause.d.ts +9 -0
- package/dist/api/types/ClientFacingElectrocardiogramInconclusiveCause.js +11 -0
- package/dist/api/types/ClientFacingElectrocardiogramResponse.d.ts +7 -0
- package/dist/api/types/ClientFacingElectrocardiogramResponse.js +5 -0
- package/dist/api/types/ClientFacingElectrocardiogramSourceProvider.d.ts +5 -0
- package/dist/api/types/ClientFacingElectrocardiogramSourceProvider.js +5 -0
- package/dist/api/types/ClientFacingElectrocardiogramSourceType.d.ts +19 -0
- package/dist/api/types/ClientFacingElectrocardiogramSourceType.js +21 -0
- package/dist/api/types/{MenstrualCycle.d.ts → ClientFacingMenstrualCycle.d.ts} +6 -1
- package/dist/api/types/ClientFacingMenstrualCycle.js +5 -0
- package/dist/api/types/ClientFacingMenstrualCycleSourceProvider.d.ts +5 -0
- package/dist/api/types/ClientFacingMenstrualCycleSourceProvider.js +5 -0
- package/dist/api/types/ClientFacingMenstrualCycleSourceType.d.ts +19 -0
- package/dist/api/types/ClientFacingMenstrualCycleSourceType.js +21 -0
- package/dist/api/types/ClientFacingSport.d.ts +1 -0
- package/dist/api/types/MenstrualCycleResponse.d.ts +1 -1
- package/dist/api/types/WorkoutColumnExprWorkout.d.ts +1 -2
- package/dist/api/types/WorkoutColumnExprWorkout.js +0 -1
- package/dist/api/types/index.d.ts +9 -1
- package/dist/api/types/index.js +9 -1
- package/dist/serialization/types/ClientFacingElectrocardiogram.d.ts +32 -0
- package/dist/serialization/types/ClientFacingElectrocardiogram.js +53 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramClassification.d.ts +10 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramClassification.js +31 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramInconclusiveCause.d.ts +10 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramInconclusiveCause.js +31 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramResponse.d.ts +13 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramResponse.js +34 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramSourceProvider.d.ts +12 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramSourceProvider.js +33 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramSourceType.d.ts +10 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramSourceType.js +45 -0
- package/dist/serialization/types/{MenstrualCycle.d.ts → ClientFacingMenstrualCycle.d.ts} +9 -2
- package/dist/serialization/types/{MenstrualCycle.js → ClientFacingMenstrualCycle.js} +9 -2
- package/dist/serialization/types/ClientFacingMenstrualCycleSourceProvider.d.ts +12 -0
- package/dist/serialization/types/ClientFacingMenstrualCycleSourceProvider.js +33 -0
- package/dist/serialization/types/ClientFacingMenstrualCycleSourceType.d.ts +10 -0
- package/dist/serialization/types/ClientFacingMenstrualCycleSourceType.js +45 -0
- package/dist/serialization/types/MenstrualCycleResponse.d.ts +2 -2
- package/dist/serialization/types/MenstrualCycleResponse.js +2 -2
- package/dist/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
- package/dist/serialization/types/WorkoutColumnExprWorkout.js +0 -1
- package/dist/serialization/types/index.d.ts +9 -1
- package/dist/serialization/types/index.js +9 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +75 -0
- package/serialization/types/ClientFacingElectrocardiogram.d.ts +32 -0
- package/serialization/types/ClientFacingElectrocardiogram.js +53 -0
- package/serialization/types/ClientFacingElectrocardiogramClassification.d.ts +10 -0
- package/serialization/types/ClientFacingElectrocardiogramClassification.js +31 -0
- package/serialization/types/ClientFacingElectrocardiogramInconclusiveCause.d.ts +10 -0
- package/serialization/types/ClientFacingElectrocardiogramInconclusiveCause.js +31 -0
- package/serialization/types/ClientFacingElectrocardiogramResponse.d.ts +13 -0
- package/serialization/types/ClientFacingElectrocardiogramResponse.js +34 -0
- package/serialization/types/ClientFacingElectrocardiogramSourceProvider.d.ts +12 -0
- package/serialization/types/ClientFacingElectrocardiogramSourceProvider.js +33 -0
- package/serialization/types/ClientFacingElectrocardiogramSourceType.d.ts +10 -0
- package/serialization/types/ClientFacingElectrocardiogramSourceType.js +45 -0
- package/serialization/types/{MenstrualCycle.d.ts → ClientFacingMenstrualCycle.d.ts} +9 -2
- package/serialization/types/{MenstrualCycle.js → ClientFacingMenstrualCycle.js} +9 -2
- package/serialization/types/ClientFacingMenstrualCycleSourceProvider.d.ts +12 -0
- package/serialization/types/ClientFacingMenstrualCycleSourceProvider.js +33 -0
- package/serialization/types/ClientFacingMenstrualCycleSourceType.d.ts +10 -0
- package/serialization/types/ClientFacingMenstrualCycleSourceType.js +45 -0
- package/serialization/types/MenstrualCycleResponse.d.ts +2 -2
- package/serialization/types/MenstrualCycleResponse.js +2 -2
- package/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
- package/serialization/types/WorkoutColumnExprWorkout.js +0 -1
- package/serialization/types/index.d.ts +9 -1
- package/serialization/types/index.js +9 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/{types/MenstrualCycle.js → resources/electrocardiogram/client/requests/ElectrocardiogramGetRequest.js} +0 -0
- /package/{dist/api/types/MenstrualCycle.js → api/types/ClientFacingElectrocardiogram.js} +0 -0
@@ -0,0 +1,42 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as environments from "../../../../environments";
|
5
|
+
import * as core from "../../../../core";
|
6
|
+
import * as Vital from "../../../index";
|
7
|
+
export declare namespace Electrocardiogram {
|
8
|
+
interface Options {
|
9
|
+
environment?: core.Supplier<environments.VitalEnvironment | string>;
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
11
|
+
}
|
12
|
+
interface RequestOptions {
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
14
|
+
timeoutInSeconds?: number;
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
16
|
+
maxRetries?: number;
|
17
|
+
/** A hook to abort the request. */
|
18
|
+
abortSignal?: AbortSignal;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
export declare class Electrocardiogram {
|
22
|
+
protected readonly _options: Electrocardiogram.Options;
|
23
|
+
constructor(_options?: Electrocardiogram.Options);
|
24
|
+
/**
|
25
|
+
* Get electrocardiogram summary for user_id
|
26
|
+
*
|
27
|
+
* @param {string} userId
|
28
|
+
* @param {Vital.ElectrocardiogramGetRequest} request
|
29
|
+
* @param {Electrocardiogram.RequestOptions} requestOptions - Request-specific configuration.
|
30
|
+
*
|
31
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
32
|
+
*
|
33
|
+
* @example
|
34
|
+
* await client.electrocardiogram.get("user_id", {
|
35
|
+
* startDate: "start_date"
|
36
|
+
* })
|
37
|
+
*/
|
38
|
+
get(userId: string, request: Vital.ElectrocardiogramGetRequest, requestOptions?: Electrocardiogram.RequestOptions): Promise<Vital.ClientFacingElectrocardiogramResponse>;
|
39
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
40
|
+
"x-vital-api-key": string | undefined;
|
41
|
+
}>;
|
42
|
+
}
|
@@ -0,0 +1,135 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
35
|
+
});
|
36
|
+
};
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
39
|
+
};
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
41
|
+
exports.Electrocardiogram = void 0;
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
43
|
+
const core = __importStar(require("../../../../core"));
|
44
|
+
const Vital = __importStar(require("../../../index"));
|
45
|
+
const url_join_1 = __importDefault(require("url-join"));
|
46
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
47
|
+
const errors = __importStar(require("../../../../errors/index"));
|
48
|
+
class Electrocardiogram {
|
49
|
+
constructor(_options = {}) {
|
50
|
+
this._options = _options;
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* Get electrocardiogram summary for user_id
|
54
|
+
*
|
55
|
+
* @param {string} userId
|
56
|
+
* @param {Vital.ElectrocardiogramGetRequest} request
|
57
|
+
* @param {Electrocardiogram.RequestOptions} requestOptions - Request-specific configuration.
|
58
|
+
*
|
59
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
60
|
+
*
|
61
|
+
* @example
|
62
|
+
* await client.electrocardiogram.get("user_id", {
|
63
|
+
* startDate: "start_date"
|
64
|
+
* })
|
65
|
+
*/
|
66
|
+
get(userId, request, requestOptions) {
|
67
|
+
var _a;
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
69
|
+
const { startDate, endDate, provider } = request;
|
70
|
+
const _queryParams = {};
|
71
|
+
_queryParams["start_date"] = startDate;
|
72
|
+
if (endDate != null) {
|
73
|
+
_queryParams["end_date"] = endDate;
|
74
|
+
}
|
75
|
+
if (provider != null) {
|
76
|
+
_queryParams["provider"] = provider;
|
77
|
+
}
|
78
|
+
const _response = yield core.fetcher({
|
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
|
+
method: "GET",
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.145", "User-Agent": "@tryvital/vital-node/3.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
|
+
contentType: "application/json",
|
83
|
+
queryParameters: _queryParams,
|
84
|
+
requestType: "json",
|
85
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
86
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
87
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
88
|
+
});
|
89
|
+
if (_response.ok) {
|
90
|
+
return serializers.ClientFacingElectrocardiogramResponse.parseOrThrow(_response.body, {
|
91
|
+
unrecognizedObjectKeys: "passthrough",
|
92
|
+
allowUnrecognizedUnionMembers: true,
|
93
|
+
allowUnrecognizedEnumValues: true,
|
94
|
+
breadcrumbsPrefix: ["response"],
|
95
|
+
});
|
96
|
+
}
|
97
|
+
if (_response.error.reason === "status-code") {
|
98
|
+
switch (_response.error.statusCode) {
|
99
|
+
case 422:
|
100
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
101
|
+
unrecognizedObjectKeys: "passthrough",
|
102
|
+
allowUnrecognizedUnionMembers: true,
|
103
|
+
allowUnrecognizedEnumValues: true,
|
104
|
+
breadcrumbsPrefix: ["response"],
|
105
|
+
}));
|
106
|
+
default:
|
107
|
+
throw new errors.VitalError({
|
108
|
+
statusCode: _response.error.statusCode,
|
109
|
+
body: _response.error.body,
|
110
|
+
});
|
111
|
+
}
|
112
|
+
}
|
113
|
+
switch (_response.error.reason) {
|
114
|
+
case "non-json":
|
115
|
+
throw new errors.VitalError({
|
116
|
+
statusCode: _response.error.statusCode,
|
117
|
+
body: _response.error.rawBody,
|
118
|
+
});
|
119
|
+
case "timeout":
|
120
|
+
throw new errors.VitalTimeoutError();
|
121
|
+
case "unknown":
|
122
|
+
throw new errors.VitalError({
|
123
|
+
message: _response.error.errorMessage,
|
124
|
+
});
|
125
|
+
}
|
126
|
+
});
|
127
|
+
}
|
128
|
+
_getCustomAuthorizationHeaders() {
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
130
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
131
|
+
return { "x-vital-api-key": apiKeyValue };
|
132
|
+
});
|
133
|
+
}
|
134
|
+
}
|
135
|
+
exports.Electrocardiogram = Electrocardiogram;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./requests";
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./requests"), exports);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* @example
|
6
|
+
* {
|
7
|
+
* startDate: "start_date"
|
8
|
+
* }
|
9
|
+
*/
|
10
|
+
export interface ElectrocardiogramGetRequest {
|
11
|
+
startDate: string;
|
12
|
+
endDate?: string;
|
13
|
+
/**
|
14
|
+
* Provider oura/strava etc
|
15
|
+
*/
|
16
|
+
provider?: string;
|
17
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { type ElectrocardiogramGetRequest } from "./ElectrocardiogramGetRequest";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./client";
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./client"), exports);
|
@@ -3,6 +3,7 @@ export * from "./labTests/types";
|
|
3
3
|
export * as aggregate from "./aggregate";
|
4
4
|
export * from "./aggregate/types";
|
5
5
|
export * as link from "./link";
|
6
|
+
export * as electrocardiogram from "./electrocardiogram";
|
6
7
|
export * as sleepCycle from "./sleepCycle";
|
7
8
|
export * as profile from "./profile";
|
8
9
|
export * as devices from "./devices";
|
@@ -20,6 +21,7 @@ export * as introspect from "./introspect";
|
|
20
21
|
export * as testkit from "./testkit";
|
21
22
|
export * as insurance from "./insurance";
|
22
23
|
export * from "./link/client/requests";
|
24
|
+
export * from "./electrocardiogram/client/requests";
|
23
25
|
export * from "./sleepCycle/client/requests";
|
24
26
|
export * from "./profile/client/requests";
|
25
27
|
export * from "./devices/client/requests";
|
@@ -26,12 +26,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.insurance = exports.testkit = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.sleepCycle = exports.link = exports.aggregate = exports.labTests = void 0;
|
29
|
+
exports.insurance = exports.testkit = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.sleepCycle = exports.electrocardiogram = exports.link = exports.aggregate = exports.labTests = void 0;
|
30
30
|
exports.labTests = __importStar(require("./labTests"));
|
31
31
|
__exportStar(require("./labTests/types"), exports);
|
32
32
|
exports.aggregate = __importStar(require("./aggregate"));
|
33
33
|
__exportStar(require("./aggregate/types"), exports);
|
34
34
|
exports.link = __importStar(require("./link"));
|
35
|
+
exports.electrocardiogram = __importStar(require("./electrocardiogram"));
|
35
36
|
exports.sleepCycle = __importStar(require("./sleepCycle"));
|
36
37
|
exports.profile = __importStar(require("./profile"));
|
37
38
|
exports.devices = __importStar(require("./devices"));
|
@@ -49,6 +50,7 @@ exports.introspect = __importStar(require("./introspect"));
|
|
49
50
|
exports.testkit = __importStar(require("./testkit"));
|
50
51
|
exports.insurance = __importStar(require("./insurance"));
|
51
52
|
__exportStar(require("./link/client/requests"), exports);
|
53
|
+
__exportStar(require("./electrocardiogram/client/requests"), exports);
|
52
54
|
__exportStar(require("./sleepCycle/client/requests"), exports);
|
53
55
|
__exportStar(require("./profile/client/requests"), exports);
|
54
56
|
__exportStar(require("./devices/client/requests"), exports);
|
@@ -66,7 +66,7 @@ class Insurance {
|
|
66
66
|
const _response = yield core.fetcher({
|
67
67
|
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
68
|
method: "POST",
|
69
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
69
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.145", "User-Agent": "@tryvital/vital-node/3.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
70
70
|
contentType: "application/json",
|
71
71
|
requestType: "json",
|
72
72
|
body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -133,7 +133,7 @@ class Insurance {
|
|
133
133
|
const _response = yield core.fetcher({
|
134
134
|
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
135
|
method: "GET",
|
136
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
136
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.145", "User-Agent": "@tryvital/vital-node/3.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
137
137
|
contentType: "application/json",
|
138
138
|
queryParameters: _queryParams,
|
139
139
|
requestType: "json",
|
@@ -81,7 +81,7 @@ class Introspect {
|
|
81
81
|
const _response = yield core.fetcher({
|
82
82
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
|
83
83
|
method: "GET",
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.145", "User-Agent": "@tryvital/vital-node/3.1.145", "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.145", "User-Agent": "@tryvital/vital-node/3.1.145", "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",
|