@tryvital/vital-node 3.1.172 → 3.1.174
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.d.ts +3 -3
- package/api/resources/link/client/Client.js +17 -32
- 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 -3
- package/api/types/index.js +1 -3
- 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.d.ts +3 -3
- package/dist/api/resources/link/client/Client.js +17 -32
- 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 -3
- package/dist/api/types/index.js +1 -3
- 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 -3
- package/dist/serialization/types/index.js +1 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +3 -3
- 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 -3
- package/serialization/types/index.js +1 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/ConnectionStatus.d.ts +0 -12
- package/api/types/ConnectionStatusState.d.ts +0 -9
- package/api/types/ConnectionStatusState.js +0 -11
- package/api/types/PatientDetails.d.ts +0 -12
- package/dist/api/types/ConnectionStatus.d.ts +0 -12
- package/dist/api/types/ConnectionStatus.js +0 -5
- package/dist/api/types/ConnectionStatusState.d.ts +0 -9
- package/dist/api/types/ConnectionStatusState.js +0 -11
- package/dist/api/types/PatientDetails.d.ts +0 -12
- package/dist/api/types/PatientDetails.js +0 -5
- package/dist/serialization/types/ConnectionStatus.d.ts +0 -19
- package/dist/serialization/types/ConnectionStatus.js +0 -40
- package/dist/serialization/types/ConnectionStatusState.d.ts +0 -10
- package/dist/serialization/types/ConnectionStatusState.js +0 -31
- package/dist/serialization/types/PatientDetails.d.ts +0 -18
- package/serialization/types/ConnectionStatus.d.ts +0 -19
- package/serialization/types/ConnectionStatus.js +0 -40
- package/serialization/types/ConnectionStatusState.d.ts +0 -10
- package/serialization/types/ConnectionStatusState.js +0 -31
- package/serialization/types/PatientDetails.d.ts +0 -18
- /package/api/types/{ConnectionStatus.js → ShippingAddressWithValidation.js} +0 -0
- /package/{api/types/PatientDetails.js → dist/api/types/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.174", "User-Agent": "@tryvital/vital-node/3.1.174", "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.174", "User-Agent": "@tryvital/vital-node/3.1.174", "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.174", "User-Agent": "@tryvital/vital-node/3.1.174", "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
|
+
}
|
@@ -172,8 +172,6 @@ export * from "./ClientWorkoutResponse";
|
|
172
172
|
export * from "./CompanyDetails";
|
173
173
|
export * from "./ConnectedSourceClientFacing";
|
174
174
|
export * from "./ConnectionRecipe";
|
175
|
-
export * from "./ConnectionStatusState";
|
176
|
-
export * from "./ConnectionStatus";
|
177
175
|
export * from "./Consent";
|
178
176
|
export * from "./ConsentType";
|
179
177
|
export * from "./ContraceptiveEntryType";
|
@@ -257,7 +255,6 @@ export * from "./ParentBiomarkerData";
|
|
257
255
|
export * from "./PasswordProviders";
|
258
256
|
export * from "./PatientAddressCompatible";
|
259
257
|
export * from "./PatientAddressWithValidation";
|
260
|
-
export * from "./PatientDetails";
|
261
258
|
export * from "./PatientDetailsWithValidation";
|
262
259
|
export * from "./PayorCodeExternalProvider";
|
263
260
|
export * from "./PeriodUnit";
|
@@ -300,6 +297,7 @@ export * from "./ScopeRequirementsGrants";
|
|
300
297
|
export * from "./ScopeRequirementsStr";
|
301
298
|
export * from "./SexualActivityEntry";
|
302
299
|
export * from "./ShippingAddress";
|
300
|
+
export * from "./ShippingAddressWithValidation";
|
303
301
|
export * from "./SingleHistoricalPullStatistics";
|
304
302
|
export * from "./SingleProviderHistoricalPullResponse";
|
305
303
|
export * from "./SingleResourceStatistics";
|
package/dist/api/types/index.js
CHANGED
@@ -188,8 +188,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
|
|
188
188
|
__exportStar(require("./CompanyDetails"), exports);
|
189
189
|
__exportStar(require("./ConnectedSourceClientFacing"), exports);
|
190
190
|
__exportStar(require("./ConnectionRecipe"), exports);
|
191
|
-
__exportStar(require("./ConnectionStatusState"), exports);
|
192
|
-
__exportStar(require("./ConnectionStatus"), exports);
|
193
191
|
__exportStar(require("./Consent"), exports);
|
194
192
|
__exportStar(require("./ConsentType"), exports);
|
195
193
|
__exportStar(require("./ContraceptiveEntryType"), exports);
|
@@ -273,7 +271,6 @@ __exportStar(require("./ParentBiomarkerData"), exports);
|
|
273
271
|
__exportStar(require("./PasswordProviders"), exports);
|
274
272
|
__exportStar(require("./PatientAddressCompatible"), exports);
|
275
273
|
__exportStar(require("./PatientAddressWithValidation"), exports);
|
276
|
-
__exportStar(require("./PatientDetails"), exports);
|
277
274
|
__exportStar(require("./PatientDetailsWithValidation"), exports);
|
278
275
|
__exportStar(require("./PayorCodeExternalProvider"), exports);
|
279
276
|
__exportStar(require("./PeriodUnit"), exports);
|
@@ -316,6 +313,7 @@ __exportStar(require("./ScopeRequirementsGrants"), exports);
|
|
316
313
|
__exportStar(require("./ScopeRequirementsStr"), exports);
|
317
314
|
__exportStar(require("./SexualActivityEntry"), exports);
|
318
315
|
__exportStar(require("./ShippingAddress"), exports);
|
316
|
+
__exportStar(require("./ShippingAddressWithValidation"), exports);
|
319
317
|
__exportStar(require("./SingleHistoricalPullStatistics"), exports);
|
320
318
|
__exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
|
321
319
|
__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
|
});
|
@@ -172,8 +172,6 @@ export * from "./ClientWorkoutResponse";
|
|
172
172
|
export * from "./CompanyDetails";
|
173
173
|
export * from "./ConnectedSourceClientFacing";
|
174
174
|
export * from "./ConnectionRecipe";
|
175
|
-
export * from "./ConnectionStatusState";
|
176
|
-
export * from "./ConnectionStatus";
|
177
175
|
export * from "./Consent";
|
178
176
|
export * from "./ConsentType";
|
179
177
|
export * from "./ContraceptiveEntryType";
|
@@ -257,7 +255,6 @@ export * from "./ParentBiomarkerData";
|
|
257
255
|
export * from "./PasswordProviders";
|
258
256
|
export * from "./PatientAddressCompatible";
|
259
257
|
export * from "./PatientAddressWithValidation";
|
260
|
-
export * from "./PatientDetails";
|
261
258
|
export * from "./PatientDetailsWithValidation";
|
262
259
|
export * from "./PayorCodeExternalProvider";
|
263
260
|
export * from "./PeriodUnit";
|
@@ -300,6 +297,7 @@ export * from "./ScopeRequirementsGrants";
|
|
300
297
|
export * from "./ScopeRequirementsStr";
|
301
298
|
export * from "./SexualActivityEntry";
|
302
299
|
export * from "./ShippingAddress";
|
300
|
+
export * from "./ShippingAddressWithValidation";
|
303
301
|
export * from "./SingleHistoricalPullStatistics";
|
304
302
|
export * from "./SingleProviderHistoricalPullResponse";
|
305
303
|
export * from "./SingleResourceStatistics";
|
@@ -188,8 +188,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
|
|
188
188
|
__exportStar(require("./CompanyDetails"), exports);
|
189
189
|
__exportStar(require("./ConnectedSourceClientFacing"), exports);
|
190
190
|
__exportStar(require("./ConnectionRecipe"), exports);
|
191
|
-
__exportStar(require("./ConnectionStatusState"), exports);
|
192
|
-
__exportStar(require("./ConnectionStatus"), exports);
|
193
191
|
__exportStar(require("./Consent"), exports);
|
194
192
|
__exportStar(require("./ConsentType"), exports);
|
195
193
|
__exportStar(require("./ContraceptiveEntryType"), exports);
|
@@ -273,7 +271,6 @@ __exportStar(require("./ParentBiomarkerData"), exports);
|
|
273
271
|
__exportStar(require("./PasswordProviders"), exports);
|
274
272
|
__exportStar(require("./PatientAddressCompatible"), exports);
|
275
273
|
__exportStar(require("./PatientAddressWithValidation"), exports);
|
276
|
-
__exportStar(require("./PatientDetails"), exports);
|
277
274
|
__exportStar(require("./PatientDetailsWithValidation"), exports);
|
278
275
|
__exportStar(require("./PayorCodeExternalProvider"), exports);
|
279
276
|
__exportStar(require("./PeriodUnit"), exports);
|
@@ -316,6 +313,7 @@ __exportStar(require("./ScopeRequirementsGrants"), exports);
|
|
316
313
|
__exportStar(require("./ScopeRequirementsStr"), exports);
|
317
314
|
__exportStar(require("./SexualActivityEntry"), exports);
|
318
315
|
__exportStar(require("./ShippingAddress"), exports);
|
316
|
+
__exportStar(require("./ShippingAddressWithValidation"), exports);
|
319
317
|
__exportStar(require("./SingleHistoricalPullStatistics"), exports);
|
320
318
|
__exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
|
321
319
|
__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.174";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
@@ -318,7 +318,7 @@ await client.link.tokenState();
|
|
318
318
|
</dl>
|
319
319
|
</details>
|
320
320
|
|
321
|
-
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">emailAuth</a>({ ...params }) ->
|
321
|
+
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">emailAuth</a>({ ...params }) -> unknown</code></summary>
|
322
322
|
<dl>
|
323
323
|
<dd>
|
324
324
|
|
@@ -385,7 +385,7 @@ await client.link.emailAuth({
|
|
385
385
|
</dl>
|
386
386
|
</details>
|
387
387
|
|
388
|
-
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">passwordAuth</a>({ ...params }) ->
|
388
|
+
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">passwordAuth</a>({ ...params }) -> unknown</code></summary>
|
389
389
|
<dl>
|
390
390
|
<dd>
|
391
391
|
|
@@ -671,7 +671,7 @@ await client.link.completePasswordProviderMfa("whoop", {
|
|
671
671
|
</dl>
|
672
672
|
</details>
|
673
673
|
|
674
|
-
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">connectEmailAuthProvider</a>(provider, { ...params }) ->
|
674
|
+
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">connectEmailAuthProvider</a>(provider, { ...params }) -> unknown</code></summary>
|
675
675
|
<dl>
|
676
676
|
<dd>
|
677
677
|
|
package/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts
CHANGED
@@ -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/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
|
});
|
@@ -172,8 +172,6 @@ export * from "./ClientWorkoutResponse";
|
|
172
172
|
export * from "./CompanyDetails";
|
173
173
|
export * from "./ConnectedSourceClientFacing";
|
174
174
|
export * from "./ConnectionRecipe";
|
175
|
-
export * from "./ConnectionStatusState";
|
176
|
-
export * from "./ConnectionStatus";
|
177
175
|
export * from "./Consent";
|
178
176
|
export * from "./ConsentType";
|
179
177
|
export * from "./ContraceptiveEntryType";
|
@@ -257,7 +255,6 @@ export * from "./ParentBiomarkerData";
|
|
257
255
|
export * from "./PasswordProviders";
|
258
256
|
export * from "./PatientAddressCompatible";
|
259
257
|
export * from "./PatientAddressWithValidation";
|
260
|
-
export * from "./PatientDetails";
|
261
258
|
export * from "./PatientDetailsWithValidation";
|
262
259
|
export * from "./PayorCodeExternalProvider";
|
263
260
|
export * from "./PeriodUnit";
|
@@ -300,6 +297,7 @@ export * from "./ScopeRequirementsGrants";
|
|
300
297
|
export * from "./ScopeRequirementsStr";
|
301
298
|
export * from "./SexualActivityEntry";
|
302
299
|
export * from "./ShippingAddress";
|
300
|
+
export * from "./ShippingAddressWithValidation";
|
303
301
|
export * from "./SingleHistoricalPullStatistics";
|
304
302
|
export * from "./SingleProviderHistoricalPullResponse";
|
305
303
|
export * from "./SingleResourceStatistics";
|
@@ -188,8 +188,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
|
|
188
188
|
__exportStar(require("./CompanyDetails"), exports);
|
189
189
|
__exportStar(require("./ConnectedSourceClientFacing"), exports);
|
190
190
|
__exportStar(require("./ConnectionRecipe"), exports);
|
191
|
-
__exportStar(require("./ConnectionStatusState"), exports);
|
192
|
-
__exportStar(require("./ConnectionStatus"), exports);
|
193
191
|
__exportStar(require("./Consent"), exports);
|
194
192
|
__exportStar(require("./ConsentType"), exports);
|
195
193
|
__exportStar(require("./ContraceptiveEntryType"), exports);
|
@@ -273,7 +271,6 @@ __exportStar(require("./ParentBiomarkerData"), exports);
|
|
273
271
|
__exportStar(require("./PasswordProviders"), exports);
|
274
272
|
__exportStar(require("./PatientAddressCompatible"), exports);
|
275
273
|
__exportStar(require("./PatientAddressWithValidation"), exports);
|
276
|
-
__exportStar(require("./PatientDetails"), exports);
|
277
274
|
__exportStar(require("./PatientDetailsWithValidation"), exports);
|
278
275
|
__exportStar(require("./PayorCodeExternalProvider"), exports);
|
279
276
|
__exportStar(require("./PeriodUnit"), exports);
|
@@ -316,6 +313,7 @@ __exportStar(require("./ScopeRequirementsGrants"), exports);
|
|
316
313
|
__exportStar(require("./ScopeRequirementsStr"), exports);
|
317
314
|
__exportStar(require("./SexualActivityEntry"), exports);
|
318
315
|
__exportStar(require("./ShippingAddress"), exports);
|
316
|
+
__exportStar(require("./ShippingAddressWithValidation"), exports);
|
319
317
|
__exportStar(require("./SingleHistoricalPullStatistics"), exports);
|
320
318
|
__exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
|
321
319
|
__exportStar(require("./SingleResourceStatistics"), exports);
|
package/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
1
|
+
export declare const SDK_VERSION = "3.1.174";
|
package/version.js
CHANGED
@@ -1,12 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
import * as Vital from "../index";
|
5
|
-
export interface ConnectionStatus {
|
6
|
-
state: Vital.ConnectionStatusState;
|
7
|
-
redirectUrl?: string;
|
8
|
-
errorType?: string;
|
9
|
-
error?: string;
|
10
|
-
providerMfa?: Vital.ProviderMfaRequest;
|
11
|
-
success: boolean;
|
12
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
export declare type ConnectionStatusState = "success" | "error" | "pending_provider_mfa";
|
5
|
-
export declare const ConnectionStatusState: {
|
6
|
-
readonly Success: "success";
|
7
|
-
readonly Error: "error";
|
8
|
-
readonly PendingProviderMfa: "pending_provider_mfa";
|
9
|
-
};
|
@@ -1,11 +0,0 @@
|
|
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.ConnectionStatusState = void 0;
|
7
|
-
exports.ConnectionStatusState = {
|
8
|
-
Success: "success",
|
9
|
-
Error: "error",
|
10
|
-
PendingProviderMfa: "pending_provider_mfa",
|
11
|
-
};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
import * as Vital from "../index";
|
5
|
-
export interface PatientDetails {
|
6
|
-
firstName: string;
|
7
|
-
lastName: string;
|
8
|
-
dob: Date;
|
9
|
-
gender: Vital.Gender;
|
10
|
-
phoneNumber: string;
|
11
|
-
email: string;
|
12
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
import * as Vital from "../index";
|
5
|
-
export interface ConnectionStatus {
|
6
|
-
state: Vital.ConnectionStatusState;
|
7
|
-
redirectUrl?: string;
|
8
|
-
errorType?: string;
|
9
|
-
error?: string;
|
10
|
-
providerMfa?: Vital.ProviderMfaRequest;
|
11
|
-
success: boolean;
|
12
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
export declare type ConnectionStatusState = "success" | "error" | "pending_provider_mfa";
|
5
|
-
export declare const ConnectionStatusState: {
|
6
|
-
readonly Success: "success";
|
7
|
-
readonly Error: "error";
|
8
|
-
readonly PendingProviderMfa: "pending_provider_mfa";
|
9
|
-
};
|
@@ -1,11 +0,0 @@
|
|
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.ConnectionStatusState = void 0;
|
7
|
-
exports.ConnectionStatusState = {
|
8
|
-
Success: "success",
|
9
|
-
Error: "error",
|
10
|
-
PendingProviderMfa: "pending_provider_mfa",
|
11
|
-
};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
import * as Vital from "../index";
|
5
|
-
export interface PatientDetails {
|
6
|
-
firstName: string;
|
7
|
-
lastName: string;
|
8
|
-
dob: Date;
|
9
|
-
gender: Vital.Gender;
|
10
|
-
phoneNumber: string;
|
11
|
-
email: string;
|
12
|
-
}
|