@tryvital/vital-node 3.1.504 → 3.1.506
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/aggregate/client/Client.js +3 -3
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/electrocardiogram/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +3 -3
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labReport/client/Client.d.ts +3 -1
- package/api/resources/labReport/client/Client.js +6 -3
- package/api/resources/labReport/client/requests/BodyCreateLabReportParserJob.d.ts +4 -1
- package/api/resources/labTests/client/Client.js +42 -42
- package/api/resources/link/client/Client.js +19 -19
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/order/client/Client.js +1 -1
- package/api/resources/payor/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.js +3 -3
- package/api/resources/sleepCycle/client/Client.js +1 -1
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +19 -19
- package/api/resources/vitals/client/Client.js +78 -78
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ParsingJob.d.ts +1 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +3 -3
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +3 -3
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labReport/client/Client.d.ts +3 -1
- package/dist/api/resources/labReport/client/Client.js +6 -3
- package/dist/api/resources/labReport/client/requests/BodyCreateLabReportParserJob.d.ts +4 -1
- package/dist/api/resources/labTests/client/Client.js +42 -42
- package/dist/api/resources/link/client/Client.js +19 -19
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
- package/dist/api/resources/order/client/Client.js +1 -1
- package/dist/api/resources/payor/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.js +3 -3
- package/dist/api/resources/sleepCycle/client/Client.js +1 -1
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +19 -19
- package/dist/api/resources/vitals/client/Client.js +78 -78
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ParsingJob.d.ts +1 -0
- package/dist/serialization/types/ParsingJob.d.ts +1 -0
- package/dist/serialization/types/ParsingJob.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +3 -1
- package/serialization/types/ParsingJob.d.ts +1 -0
- package/serialization/types/ParsingJob.js +1 -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.506", "User-Agent": "@tryvital/vital-node/3.1.506", "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.506", "User-Agent": "@tryvital/vital-node/3.1.506", "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",
|
|
@@ -217,7 +217,7 @@ class Workouts {
|
|
|
217
217
|
const _response = yield core.fetcher({
|
|
218
218
|
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`),
|
|
219
219
|
method: "GET",
|
|
220
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
220
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.506", "User-Agent": "@tryvital/vital-node/3.1.506", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
221
221
|
contentType: "application/json",
|
|
222
222
|
requestType: "json",
|
|
223
223
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -9,6 +9,7 @@ import { ParsedLabReportData } from "./ParsedLabReportData";
|
|
|
9
9
|
export declare const ParsingJob: core.serialization.ObjectSchema<serializers.ParsingJob.Raw, Vital.ParsingJob>;
|
|
10
10
|
export declare namespace ParsingJob {
|
|
11
11
|
interface Raw {
|
|
12
|
+
id: string;
|
|
12
13
|
job_id: string;
|
|
13
14
|
status: ParsingJobStatus.Raw;
|
|
14
15
|
data?: ParsedLabReportData.Raw | null;
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const ParsingJobStatus_1 = require("./ParsingJobStatus");
|
|
32
32
|
const ParsedLabReportData_1 = require("./ParsedLabReportData");
|
|
33
33
|
exports.ParsingJob = core.serialization.object({
|
|
34
|
+
id: core.serialization.string(),
|
|
34
35
|
jobId: core.serialization.property("job_id", core.serialization.string()),
|
|
35
36
|
status: ParsingJobStatus_1.ParsingJobStatus,
|
|
36
37
|
data: ParsedLabReportData_1.ParsedLabReportData.optional(),
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
|
1
|
+
export declare const SDK_VERSION = "3.1.506";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -11841,7 +11841,9 @@ and starts the ParseLabReport. Returns a generated job_id.
|
|
|
11841
11841
|
<dd>
|
|
11842
11842
|
|
|
11843
11843
|
```typescript
|
|
11844
|
-
await client.labReport.parserCreateJob(fs.createReadStream("/path/to/your/file"), {
|
|
11844
|
+
await client.labReport.parserCreateJob(fs.createReadStream("/path/to/your/file"), {
|
|
11845
|
+
userId: "user_id",
|
|
11846
|
+
});
|
|
11845
11847
|
```
|
|
11846
11848
|
|
|
11847
11849
|
</dd>
|
|
@@ -9,6 +9,7 @@ import { ParsedLabReportData } from "./ParsedLabReportData";
|
|
|
9
9
|
export declare const ParsingJob: core.serialization.ObjectSchema<serializers.ParsingJob.Raw, Vital.ParsingJob>;
|
|
10
10
|
export declare namespace ParsingJob {
|
|
11
11
|
interface Raw {
|
|
12
|
+
id: string;
|
|
12
13
|
job_id: string;
|
|
13
14
|
status: ParsingJobStatus.Raw;
|
|
14
15
|
data?: ParsedLabReportData.Raw | null;
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const ParsingJobStatus_1 = require("./ParsingJobStatus");
|
|
32
32
|
const ParsedLabReportData_1 = require("./ParsedLabReportData");
|
|
33
33
|
exports.ParsingJob = core.serialization.object({
|
|
34
|
+
id: core.serialization.string(),
|
|
34
35
|
jobId: core.serialization.property("job_id", core.serialization.string()),
|
|
35
36
|
status: ParsingJobStatus_1.ParsingJobStatus,
|
|
36
37
|
data: ParsedLabReportData_1.ParsedLabReportData.optional(),
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
|
1
|
+
export declare const SDK_VERSION = "3.1.506";
|
package/version.js
CHANGED