@tryvital/vital-node 3.1.171 → 3.1.173
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.js +3 -3
- 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/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +1 -1
- package/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +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/ShippingAddressWithValidation.d.ts +13 -0
- package/api/types/index.d.ts +1 -1
- package/api/types/index.js +1 -1
- 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.js +3 -3
- 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/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +1 -1
- package/dist/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +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/ShippingAddressWithValidation.d.ts +13 -0
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/index.js +1 -1
- package/dist/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +2 -2
- package/dist/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.js +2 -2
- package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +4 -4
- package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +4 -4
- package/dist/serialization/types/ShippingAddressWithValidation.d.ts +19 -0
- package/dist/serialization/types/{PatientDetails.js → ShippingAddressWithValidation.js} +9 -8
- package/dist/serialization/types/index.d.ts +1 -1
- package/dist/serialization/types/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1049 -0
- package/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +2 -2
- package/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.js +2 -2
- package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +4 -4
- package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +4 -4
- package/serialization/types/ShippingAddressWithValidation.d.ts +19 -0
- package/serialization/types/{PatientDetails.js → ShippingAddressWithValidation.js} +9 -8
- package/serialization/types/index.d.ts +1 -1
- package/serialization/types/index.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/PatientDetails.d.ts +0 -12
- package/dist/api/types/PatientDetails.d.ts +0 -12
- package/dist/serialization/types/PatientDetails.d.ts +0 -18
- package/serialization/types/PatientDetails.d.ts +0 -18
- /package/api/types/{PatientDetails.js → ShippingAddressWithValidation.js} +0 -0
- /package/dist/api/types/{PatientDetails.js → ShippingAddressWithValidation.js} +0 -0
@@ -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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export interface ShippingAddressWithValidation {
|
5
|
+
receiverName: string;
|
6
|
+
firstLine: string;
|
7
|
+
secondLine?: string;
|
8
|
+
city: string;
|
9
|
+
state: string;
|
10
|
+
zip: string;
|
11
|
+
country: string;
|
12
|
+
phoneNumber: string;
|
13
|
+
}
|
@@ -257,7 +257,6 @@ export * from "./ParentBiomarkerData";
|
|
257
257
|
export * from "./PasswordProviders";
|
258
258
|
export * from "./PatientAddressCompatible";
|
259
259
|
export * from "./PatientAddressWithValidation";
|
260
|
-
export * from "./PatientDetails";
|
261
260
|
export * from "./PatientDetailsWithValidation";
|
262
261
|
export * from "./PayorCodeExternalProvider";
|
263
262
|
export * from "./PeriodUnit";
|
@@ -300,6 +299,7 @@ export * from "./ScopeRequirementsGrants";
|
|
300
299
|
export * from "./ScopeRequirementsStr";
|
301
300
|
export * from "./SexualActivityEntry";
|
302
301
|
export * from "./ShippingAddress";
|
302
|
+
export * from "./ShippingAddressWithValidation";
|
303
303
|
export * from "./SingleHistoricalPullStatistics";
|
304
304
|
export * from "./SingleProviderHistoricalPullResponse";
|
305
305
|
export * from "./SingleResourceStatistics";
|
package/dist/api/types/index.js
CHANGED
@@ -273,7 +273,6 @@ __exportStar(require("./ParentBiomarkerData"), exports);
|
|
273
273
|
__exportStar(require("./PasswordProviders"), exports);
|
274
274
|
__exportStar(require("./PatientAddressCompatible"), exports);
|
275
275
|
__exportStar(require("./PatientAddressWithValidation"), exports);
|
276
|
-
__exportStar(require("./PatientDetails"), exports);
|
277
276
|
__exportStar(require("./PatientDetailsWithValidation"), exports);
|
278
277
|
__exportStar(require("./PayorCodeExternalProvider"), exports);
|
279
278
|
__exportStar(require("./PeriodUnit"), exports);
|
@@ -316,6 +315,7 @@ __exportStar(require("./ScopeRequirementsGrants"), exports);
|
|
316
315
|
__exportStar(require("./ScopeRequirementsStr"), exports);
|
317
316
|
__exportStar(require("./SexualActivityEntry"), exports);
|
318
317
|
__exportStar(require("./ShippingAddress"), exports);
|
318
|
+
__exportStar(require("./ShippingAddressWithValidation"), exports);
|
319
319
|
__exportStar(require("./SingleHistoricalPullStatistics"), exports);
|
320
320
|
__exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
|
321
321
|
__exportStar(require("./SingleResourceStatistics"), exports);
|
@@ -4,13 +4,13 @@
|
|
4
4
|
import * as serializers from "../../../../index";
|
5
5
|
import * as Vital from "../../../../../api/index";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
-
import {
|
7
|
+
import { ShippingAddressWithValidation } from "../../../../types/ShippingAddressWithValidation";
|
8
8
|
export declare const CreateRegistrableTestkitOrderRequest: core.serialization.Schema<serializers.CreateRegistrableTestkitOrderRequest.Raw, Vital.CreateRegistrableTestkitOrderRequest>;
|
9
9
|
export declare namespace CreateRegistrableTestkitOrderRequest {
|
10
10
|
interface Raw {
|
11
11
|
user_id: string;
|
12
12
|
lab_test_id: string;
|
13
|
-
shipping_details:
|
13
|
+
shipping_details: ShippingAddressWithValidation.Raw;
|
14
14
|
passthrough?: string | null;
|
15
15
|
}
|
16
16
|
}
|
package/dist/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.js
CHANGED
@@ -28,10 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.CreateRegistrableTestkitOrderRequest = void 0;
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
31
|
-
const
|
31
|
+
const ShippingAddressWithValidation_1 = require("../../../../types/ShippingAddressWithValidation");
|
32
32
|
exports.CreateRegistrableTestkitOrderRequest = core.serialization.object({
|
33
33
|
userId: core.serialization.property("user_id", core.serialization.string()),
|
34
34
|
labTestId: core.serialization.property("lab_test_id", core.serialization.string()),
|
35
|
-
shippingDetails: core.serialization.property("shipping_details",
|
35
|
+
shippingDetails: core.serialization.property("shipping_details", ShippingAddressWithValidation_1.ShippingAddressWithValidation),
|
36
36
|
passthrough: core.serialization.string().optional(),
|
37
37
|
});
|
@@ -4,8 +4,8 @@
|
|
4
4
|
import * as serializers from "../../../../index";
|
5
5
|
import * as Vital from "../../../../../api/index";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
-
import {
|
8
|
-
import {
|
7
|
+
import { PatientDetailsWithValidation } from "../../../../types/PatientDetailsWithValidation";
|
8
|
+
import { PatientAddressWithValidation } from "../../../../types/PatientAddressWithValidation";
|
9
9
|
import { PhysicianCreateRequestBase } from "../../../../types/PhysicianCreateRequestBase";
|
10
10
|
import { HealthInsuranceCreateRequest } from "../../../../types/HealthInsuranceCreateRequest";
|
11
11
|
import { Consent } from "../../../../types/Consent";
|
@@ -14,8 +14,8 @@ export declare namespace RegisterTestkitRequest {
|
|
14
14
|
interface Raw {
|
15
15
|
user_id?: string | null;
|
16
16
|
sample_id: string;
|
17
|
-
patient_details:
|
18
|
-
patient_address:
|
17
|
+
patient_details: PatientDetailsWithValidation.Raw;
|
18
|
+
patient_address: PatientAddressWithValidation.Raw;
|
19
19
|
physician?: PhysicianCreateRequestBase.Raw | null;
|
20
20
|
health_insurance?: HealthInsuranceCreateRequest.Raw | null;
|
21
21
|
consents?: Consent.Raw[] | null;
|
@@ -28,16 +28,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.RegisterTestkitRequest = void 0;
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
31
|
-
const
|
32
|
-
const
|
31
|
+
const PatientDetailsWithValidation_1 = require("../../../../types/PatientDetailsWithValidation");
|
32
|
+
const PatientAddressWithValidation_1 = require("../../../../types/PatientAddressWithValidation");
|
33
33
|
const PhysicianCreateRequestBase_1 = require("../../../../types/PhysicianCreateRequestBase");
|
34
34
|
const HealthInsuranceCreateRequest_1 = require("../../../../types/HealthInsuranceCreateRequest");
|
35
35
|
const Consent_1 = require("../../../../types/Consent");
|
36
36
|
exports.RegisterTestkitRequest = core.serialization.object({
|
37
37
|
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
38
38
|
sampleId: core.serialization.property("sample_id", core.serialization.string()),
|
39
|
-
patientDetails: core.serialization.property("patient_details",
|
40
|
-
patientAddress: core.serialization.property("patient_address",
|
39
|
+
patientDetails: core.serialization.property("patient_details", PatientDetailsWithValidation_1.PatientDetailsWithValidation),
|
40
|
+
patientAddress: core.serialization.property("patient_address", PatientAddressWithValidation_1.PatientAddressWithValidation),
|
41
41
|
physician: PhysicianCreateRequestBase_1.PhysicianCreateRequestBase.optional(),
|
42
42
|
healthInsurance: core.serialization.property("health_insurance", HealthInsuranceCreateRequest_1.HealthInsuranceCreateRequest.optional()),
|
43
43
|
consents: core.serialization.list(Consent_1.Consent).optional(),
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Vital from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const ShippingAddressWithValidation: core.serialization.ObjectSchema<serializers.ShippingAddressWithValidation.Raw, Vital.ShippingAddressWithValidation>;
|
8
|
+
export declare namespace ShippingAddressWithValidation {
|
9
|
+
interface Raw {
|
10
|
+
receiver_name: string;
|
11
|
+
first_line: string;
|
12
|
+
second_line?: string | null;
|
13
|
+
city: string;
|
14
|
+
state: string;
|
15
|
+
zip: string;
|
16
|
+
country: string;
|
17
|
+
phone_number: string;
|
18
|
+
}
|
19
|
+
}
|
@@ -26,14 +26,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
26
|
return result;
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.
|
29
|
+
exports.ShippingAddressWithValidation = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
exports.ShippingAddressWithValidation = core.serialization.object({
|
32
|
+
receiverName: core.serialization.property("receiver_name", core.serialization.string()),
|
33
|
+
firstLine: core.serialization.property("first_line", core.serialization.string()),
|
34
|
+
secondLine: core.serialization.property("second_line", core.serialization.string().optional()),
|
35
|
+
city: core.serialization.string(),
|
36
|
+
state: core.serialization.string(),
|
37
|
+
zip: core.serialization.string(),
|
38
|
+
country: core.serialization.string(),
|
37
39
|
phoneNumber: core.serialization.property("phone_number", core.serialization.string()),
|
38
|
-
email: core.serialization.string(),
|
39
40
|
});
|
@@ -257,7 +257,6 @@ export * from "./ParentBiomarkerData";
|
|
257
257
|
export * from "./PasswordProviders";
|
258
258
|
export * from "./PatientAddressCompatible";
|
259
259
|
export * from "./PatientAddressWithValidation";
|
260
|
-
export * from "./PatientDetails";
|
261
260
|
export * from "./PatientDetailsWithValidation";
|
262
261
|
export * from "./PayorCodeExternalProvider";
|
263
262
|
export * from "./PeriodUnit";
|
@@ -300,6 +299,7 @@ export * from "./ScopeRequirementsGrants";
|
|
300
299
|
export * from "./ScopeRequirementsStr";
|
301
300
|
export * from "./SexualActivityEntry";
|
302
301
|
export * from "./ShippingAddress";
|
302
|
+
export * from "./ShippingAddressWithValidation";
|
303
303
|
export * from "./SingleHistoricalPullStatistics";
|
304
304
|
export * from "./SingleProviderHistoricalPullResponse";
|
305
305
|
export * from "./SingleResourceStatistics";
|
@@ -273,7 +273,6 @@ __exportStar(require("./ParentBiomarkerData"), exports);
|
|
273
273
|
__exportStar(require("./PasswordProviders"), exports);
|
274
274
|
__exportStar(require("./PatientAddressCompatible"), exports);
|
275
275
|
__exportStar(require("./PatientAddressWithValidation"), exports);
|
276
|
-
__exportStar(require("./PatientDetails"), exports);
|
277
276
|
__exportStar(require("./PatientDetailsWithValidation"), exports);
|
278
277
|
__exportStar(require("./PayorCodeExternalProvider"), exports);
|
279
278
|
__exportStar(require("./PeriodUnit"), exports);
|
@@ -316,6 +315,7 @@ __exportStar(require("./ScopeRequirementsGrants"), exports);
|
|
316
315
|
__exportStar(require("./ScopeRequirementsStr"), exports);
|
317
316
|
__exportStar(require("./SexualActivityEntry"), exports);
|
318
317
|
__exportStar(require("./ShippingAddress"), exports);
|
318
|
+
__exportStar(require("./ShippingAddressWithValidation"), exports);
|
319
319
|
__exportStar(require("./SingleHistoricalPullStatistics"), exports);
|
320
320
|
__exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
|
321
321
|
__exportStar(require("./SingleResourceStatistics"), exports);
|
package/dist/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
1
|
+
export declare const SDK_VERSION = "3.1.173";
|
package/dist/version.js
CHANGED