@tryvital/vital-node 3.1.8 → 3.1.10
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/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -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 +24 -24
- package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -0
- package/api/resources/link/client/Client.d.ts +10 -0
- package/api/resources/link/client/Client.js +77 -14
- package/api/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +13 -0
- package/api/resources/link/client/requests/CompletePasswordProviderMfaBody.js +5 -0
- package/api/resources/link/client/requests/IndividualProviderData.d.ts +2 -1
- package/api/resources/link/client/requests/index.d.ts +1 -0
- package/api/resources/meal/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/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +12 -12
- package/api/resources/user/client/requests/UserCreateBody.d.ts +1 -1
- package/api/resources/user/client/requests/UserPatchBody.d.ts +1 -1
- package/api/resources/vitals/client/Client.js +50 -50
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/Answer.d.ts +8 -0
- package/api/types/Answer.js +5 -0
- package/api/types/AoE.d.ts +7 -0
- package/api/types/AoE.js +5 -0
- package/api/types/AoEAnswer.d.ts +8 -0
- package/api/types/AoEAnswer.js +5 -0
- package/api/types/ClientFacingMarker.d.ts +1 -0
- package/api/types/ClientFacingMarkerComplete.d.ts +1 -0
- package/api/types/ClientFacingUser.d.ts +1 -1
- package/api/types/ConnectionStatus.d.ts +1 -1
- package/api/types/PasswordProviders.d.ts +2 -1
- package/api/types/PasswordProviders.js +1 -0
- package/api/types/ProviderLinkResponse.d.ts +2 -1
- package/api/types/Question.d.ts +13 -0
- package/api/types/Question.js +5 -0
- package/api/types/QuestionType.d.ts +13 -0
- package/api/types/QuestionType.js +12 -0
- package/api/types/index.d.ts +5 -0
- package/api/types/index.js +5 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -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 +24 -24
- package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -0
- package/dist/api/resources/link/client/Client.d.ts +10 -0
- package/dist/api/resources/link/client/Client.js +77 -14
- package/dist/api/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +13 -0
- package/dist/api/resources/link/client/requests/CompletePasswordProviderMfaBody.js +5 -0
- package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +2 -1
- package/dist/api/resources/link/client/requests/index.d.ts +1 -0
- package/dist/api/resources/meal/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/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +12 -12
- package/dist/api/resources/user/client/requests/UserCreateBody.d.ts +1 -1
- package/dist/api/resources/user/client/requests/UserPatchBody.d.ts +1 -1
- package/dist/api/resources/vitals/client/Client.js +50 -50
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/Answer.d.ts +8 -0
- package/dist/api/types/Answer.js +5 -0
- package/dist/api/types/AoE.d.ts +7 -0
- package/dist/api/types/AoE.js +5 -0
- package/dist/api/types/AoEAnswer.d.ts +8 -0
- package/dist/api/types/AoEAnswer.js +5 -0
- package/dist/api/types/ClientFacingMarker.d.ts +1 -0
- package/dist/api/types/ClientFacingMarkerComplete.d.ts +1 -0
- package/dist/api/types/ClientFacingUser.d.ts +1 -1
- package/dist/api/types/ConnectionStatus.d.ts +1 -1
- package/dist/api/types/PasswordProviders.d.ts +2 -1
- package/dist/api/types/PasswordProviders.js +1 -0
- package/dist/api/types/ProviderLinkResponse.d.ts +2 -1
- package/dist/api/types/Question.d.ts +13 -0
- package/dist/api/types/Question.js +5 -0
- package/dist/api/types/QuestionType.d.ts +13 -0
- package/dist/api/types/QuestionType.js +12 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/index.js +5 -0
- package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +2 -0
- package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +2 -0
- package/dist/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +12 -0
- package/dist/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.js +33 -0
- package/dist/serialization/resources/link/client/requests/IndividualProviderData.d.ts +3 -1
- package/dist/serialization/resources/link/client/requests/IndividualProviderData.js +2 -0
- package/dist/serialization/resources/link/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/link/client/requests/index.js +3 -1
- package/dist/serialization/types/Answer.d.ts +14 -0
- package/dist/serialization/types/Answer.js +35 -0
- package/dist/serialization/types/AoE.d.ts +13 -0
- package/dist/serialization/types/AoE.js +34 -0
- package/dist/serialization/types/AoEAnswer.d.ts +14 -0
- package/dist/serialization/types/AoEAnswer.js +35 -0
- package/dist/serialization/types/ClientFacingMarker.d.ts +2 -0
- package/dist/serialization/types/ClientFacingMarker.js +2 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.d.ts +2 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.js +2 -0
- package/dist/serialization/types/ConnectionStatus.d.ts +1 -1
- package/dist/serialization/types/ConnectionStatus.js +1 -1
- package/dist/serialization/types/PasswordProviders.d.ts +1 -1
- package/dist/serialization/types/PasswordProviders.js +1 -0
- package/dist/serialization/types/ProviderLinkResponse.d.ts +2 -1
- package/dist/serialization/types/ProviderLinkResponse.js +2 -1
- package/dist/serialization/types/Question.d.ts +20 -0
- package/dist/serialization/types/Question.js +41 -0
- package/dist/serialization/types/QuestionType.d.ts +10 -0
- package/dist/serialization/types/QuestionType.js +31 -0
- package/dist/serialization/types/index.d.ts +5 -0
- package/dist/serialization/types/index.js +5 -0
- package/package.json +1 -1
- package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +2 -0
- package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +2 -0
- package/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +12 -0
- package/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.js +33 -0
- package/serialization/resources/link/client/requests/IndividualProviderData.d.ts +3 -1
- package/serialization/resources/link/client/requests/IndividualProviderData.js +2 -0
- package/serialization/resources/link/client/requests/index.d.ts +1 -0
- package/serialization/resources/link/client/requests/index.js +3 -1
- package/serialization/types/Answer.d.ts +14 -0
- package/serialization/types/Answer.js +35 -0
- package/serialization/types/AoE.d.ts +13 -0
- package/serialization/types/AoE.js +34 -0
- package/serialization/types/AoEAnswer.d.ts +14 -0
- package/serialization/types/AoEAnswer.js +35 -0
- package/serialization/types/ClientFacingMarker.d.ts +2 -0
- package/serialization/types/ClientFacingMarker.js +2 -0
- package/serialization/types/ClientFacingMarkerComplete.d.ts +2 -0
- package/serialization/types/ClientFacingMarkerComplete.js +2 -0
- package/serialization/types/ConnectionStatus.d.ts +1 -1
- package/serialization/types/ConnectionStatus.js +1 -1
- package/serialization/types/PasswordProviders.d.ts +1 -1
- package/serialization/types/PasswordProviders.js +1 -0
- package/serialization/types/ProviderLinkResponse.d.ts +2 -1
- package/serialization/types/ProviderLinkResponse.js +2 -1
- package/serialization/types/Question.d.ts +20 -0
- package/serialization/types/Question.js +41 -0
- package/serialization/types/QuestionType.d.ts +10 -0
- package/serialization/types/QuestionType.js +31 -0
- package/serialization/types/index.d.ts +5 -0
- package/serialization/types/index.js +5 -0
@@ -4,9 +4,9 @@
|
|
4
4
|
import * as Vital from "..";
|
5
5
|
export interface ConnectionStatus {
|
6
6
|
state: Vital.ConnectionStatusState;
|
7
|
+
redirectUrl?: string;
|
7
8
|
errorType?: string;
|
8
9
|
error?: string;
|
9
10
|
providerMfa?: Vital.ProviderMfaRequest;
|
10
11
|
success: boolean;
|
11
|
-
redirectUrl?: string;
|
12
12
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
/**
|
5
5
|
* An enumeration.
|
6
6
|
*/
|
7
|
-
export declare type PasswordProviders = "whoop" | "renpho" | "peloton" | "zwift" | "eight_sleep" | "beurer_api" | "dexcom" | "hammerhead" | "my_fitness_pal" | "kardia";
|
7
|
+
export declare type PasswordProviders = "whoop" | "renpho" | "peloton" | "zwift" | "eight_sleep" | "beurer_api" | "dexcom" | "hammerhead" | "my_fitness_pal" | "kardia" | "abbott_libreview";
|
8
8
|
export declare const PasswordProviders: {
|
9
9
|
readonly Whoop: "whoop";
|
10
10
|
readonly Renpho: "renpho";
|
@@ -16,4 +16,5 @@ export declare const PasswordProviders: {
|
|
16
16
|
readonly Hammerhead: "hammerhead";
|
17
17
|
readonly MyFitnessPal: "my_fitness_pal";
|
18
18
|
readonly Kardia: "kardia";
|
19
|
+
readonly AbbottLibreview: "abbott_libreview";
|
19
20
|
};
|
@@ -4,10 +4,11 @@
|
|
4
4
|
import * as Vital from "..";
|
5
5
|
export interface ProviderLinkResponse {
|
6
6
|
state: Vital.ProviderLinkResponseState;
|
7
|
+
redirectUrl?: string;
|
7
8
|
errorType?: string;
|
8
9
|
error?: string;
|
9
10
|
providerMfa?: Vital.ProviderMfaRequest;
|
10
11
|
provider: Vital.PasswordProviders;
|
11
12
|
connected: boolean;
|
12
|
-
providerId
|
13
|
+
providerId: string;
|
13
14
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "..";
|
5
|
+
export interface Question {
|
6
|
+
id: number;
|
7
|
+
required: boolean;
|
8
|
+
code: string;
|
9
|
+
value: string;
|
10
|
+
type: Vital.QuestionType;
|
11
|
+
sequence: number;
|
12
|
+
answers: Vital.Answer[];
|
13
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* An enumeration.
|
6
|
+
*/
|
7
|
+
export declare type QuestionType = "choice" | "text" | "numeric" | "multi_choice";
|
8
|
+
export declare const QuestionType: {
|
9
|
+
readonly Choice: "choice";
|
10
|
+
readonly Text: "text";
|
11
|
+
readonly Numeric: "numeric";
|
12
|
+
readonly MultiChoice: "multi_choice";
|
13
|
+
};
|
@@ -0,0 +1,12 @@
|
|
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.QuestionType = void 0;
|
7
|
+
exports.QuestionType = {
|
8
|
+
Choice: "choice",
|
9
|
+
Text: "text",
|
10
|
+
Numeric: "numeric",
|
11
|
+
MultiChoice: "multi_choice",
|
12
|
+
};
|
@@ -1,5 +1,8 @@
|
|
1
1
|
export * from "./ActivityV2InDb";
|
2
2
|
export * from "./Address";
|
3
|
+
export * from "./Answer";
|
4
|
+
export * from "./AoE";
|
5
|
+
export * from "./AoEAnswer";
|
3
6
|
export * from "./AppointmentAvailabilitySlots";
|
4
7
|
export * from "./AppointmentEventStatus";
|
5
8
|
export * from "./AppointmentProvider";
|
@@ -194,6 +197,8 @@ export * from "./ProviderLinkResponse";
|
|
194
197
|
export * from "./ProviderMfaRequestMethod";
|
195
198
|
export * from "./ProviderMfaRequest";
|
196
199
|
export * from "./Providers";
|
200
|
+
export * from "./Question";
|
201
|
+
export * from "./QuestionType";
|
197
202
|
export * from "./RawActivity";
|
198
203
|
export * from "./RawBody";
|
199
204
|
export * from "./RawDevices";
|
package/dist/api/types/index.js
CHANGED
@@ -16,6 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./ActivityV2InDb"), exports);
|
18
18
|
__exportStar(require("./Address"), exports);
|
19
|
+
__exportStar(require("./Answer"), exports);
|
20
|
+
__exportStar(require("./AoE"), exports);
|
21
|
+
__exportStar(require("./AoEAnswer"), exports);
|
19
22
|
__exportStar(require("./AppointmentAvailabilitySlots"), exports);
|
20
23
|
__exportStar(require("./AppointmentEventStatus"), exports);
|
21
24
|
__exportStar(require("./AppointmentProvider"), exports);
|
@@ -210,6 +213,8 @@ __exportStar(require("./ProviderLinkResponse"), exports);
|
|
210
213
|
__exportStar(require("./ProviderMfaRequestMethod"), exports);
|
211
214
|
__exportStar(require("./ProviderMfaRequest"), exports);
|
212
215
|
__exportStar(require("./Providers"), exports);
|
216
|
+
__exportStar(require("./Question"), exports);
|
217
|
+
__exportStar(require("./QuestionType"), exports);
|
213
218
|
__exportStar(require("./RawActivity"), exports);
|
214
219
|
__exportStar(require("./RawBody"), exports);
|
215
220
|
__exportStar(require("./RawDevices"), exports);
|
package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts
CHANGED
@@ -7,6 +7,7 @@ import * as core from "../../../../../core";
|
|
7
7
|
import { PhysicianCreateRequest } from "../../../../types/PhysicianCreateRequest";
|
8
8
|
import { HealthInsuranceCreateRequest } from "../../../../types/HealthInsuranceCreateRequest";
|
9
9
|
import { Consent } from "../../../../types/Consent";
|
10
|
+
import { AoEAnswer } from "../../../../types/AoEAnswer";
|
10
11
|
import { PatientDetails } from "../../../../types/PatientDetails";
|
11
12
|
import { PatientAddressCompatible } from "../../../../types/PatientAddressCompatible";
|
12
13
|
export declare const CreateOrderRequestCompatible: core.serialization.Schema<serializers.CreateOrderRequestCompatible.Raw, Vital.CreateOrderRequestCompatible>;
|
@@ -19,6 +20,7 @@ export declare namespace CreateOrderRequestCompatible {
|
|
19
20
|
priority?: boolean | null;
|
20
21
|
consents?: Consent.Raw[] | null;
|
21
22
|
activate_by?: string | null;
|
23
|
+
aoe_answers?: AoEAnswer.Raw[] | null;
|
22
24
|
patient_details: PatientDetails.Raw;
|
23
25
|
patient_address: PatientAddressCompatible.Raw;
|
24
26
|
}
|
package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js
CHANGED
@@ -31,6 +31,7 @@ const core = __importStar(require("../../../../../core"));
|
|
31
31
|
const PhysicianCreateRequest_1 = require("../../../../types/PhysicianCreateRequest");
|
32
32
|
const HealthInsuranceCreateRequest_1 = require("../../../../types/HealthInsuranceCreateRequest");
|
33
33
|
const Consent_1 = require("../../../../types/Consent");
|
34
|
+
const AoEAnswer_1 = require("../../../../types/AoEAnswer");
|
34
35
|
const PatientDetails_1 = require("../../../../types/PatientDetails");
|
35
36
|
const PatientAddressCompatible_1 = require("../../../../types/PatientAddressCompatible");
|
36
37
|
exports.CreateOrderRequestCompatible = core.serialization.object({
|
@@ -41,6 +42,7 @@ exports.CreateOrderRequestCompatible = core.serialization.object({
|
|
41
42
|
priority: core.serialization.boolean().optional(),
|
42
43
|
consents: core.serialization.list(Consent_1.Consent).optional(),
|
43
44
|
activateBy: core.serialization.property("activate_by", core.serialization.string().optional()),
|
45
|
+
aoeAnswers: core.serialization.property("aoe_answers", core.serialization.list(AoEAnswer_1.AoEAnswer).optional()),
|
44
46
|
patientDetails: core.serialization.property("patient_details", PatientDetails_1.PatientDetails),
|
45
47
|
patientAddress: core.serialization.property("patient_address", PatientAddressCompatible_1.PatientAddressCompatible),
|
46
48
|
});
|
package/dist/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../../../..";
|
5
|
+
import * as Vital from "../../../../../api";
|
6
|
+
import * as core from "../../../../../core";
|
7
|
+
export declare const CompletePasswordProviderMfaBody: core.serialization.Schema<serializers.CompletePasswordProviderMfaBody.Raw, Omit<Vital.CompletePasswordProviderMfaBody, "vitalLinkToken">>;
|
8
|
+
export declare namespace CompletePasswordProviderMfaBody {
|
9
|
+
interface Raw {
|
10
|
+
mfa_code: string;
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,33 @@
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.CompletePasswordProviderMfaBody = void 0;
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
31
|
+
exports.CompletePasswordProviderMfaBody = core.serialization.object({
|
32
|
+
mfaCode: core.serialization.property("mfa_code", core.serialization.string()),
|
33
|
+
});
|
@@ -4,10 +4,12 @@
|
|
4
4
|
import * as serializers from "../../../..";
|
5
5
|
import * as Vital from "../../../../../api";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
-
|
7
|
+
import { Region } from "../../../../types/Region";
|
8
|
+
export declare const IndividualProviderData: core.serialization.Schema<serializers.IndividualProviderData.Raw, Omit<Vital.IndividualProviderData, "vitalLinkToken">>;
|
8
9
|
export declare namespace IndividualProviderData {
|
9
10
|
interface Raw {
|
10
11
|
username: string;
|
11
12
|
password: string;
|
13
|
+
region?: Region.Raw | null;
|
12
14
|
}
|
13
15
|
}
|
@@ -28,7 +28,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.IndividualProviderData = void 0;
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
31
|
+
const Region_1 = require("../../../../types/Region");
|
31
32
|
exports.IndividualProviderData = core.serialization.object({
|
32
33
|
username: core.serialization.string(),
|
33
34
|
password: core.serialization.string(),
|
35
|
+
region: Region_1.Region.optional(),
|
34
36
|
});
|
@@ -4,6 +4,7 @@ export { BeginLinkTokenRequest } from "./BeginLinkTokenRequest";
|
|
4
4
|
export { EmailAuthLink } from "./EmailAuthLink";
|
5
5
|
export { PasswordAuthLink } from "./PasswordAuthLink";
|
6
6
|
export { IndividualProviderData } from "./IndividualProviderData";
|
7
|
+
export { CompletePasswordProviderMfaBody } from "./CompletePasswordProviderMfaBody";
|
7
8
|
export { EmailProviderAuthLink } from "./EmailProviderAuthLink";
|
8
9
|
export { ManualConnectionData } from "./ManualConnectionData";
|
9
10
|
export { DemoConnectionCreationPayload } from "./DemoConnectionCreationPayload";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DemoConnectionCreationPayload = exports.ManualConnectionData = exports.EmailProviderAuthLink = exports.IndividualProviderData = exports.PasswordAuthLink = exports.EmailAuthLink = exports.BeginLinkTokenRequest = exports.LinkTokenBase = exports.LinkTokenExchange = void 0;
|
3
|
+
exports.DemoConnectionCreationPayload = exports.ManualConnectionData = exports.EmailProviderAuthLink = exports.CompletePasswordProviderMfaBody = exports.IndividualProviderData = exports.PasswordAuthLink = exports.EmailAuthLink = exports.BeginLinkTokenRequest = exports.LinkTokenBase = exports.LinkTokenExchange = void 0;
|
4
4
|
var LinkTokenExchange_1 = require("./LinkTokenExchange");
|
5
5
|
Object.defineProperty(exports, "LinkTokenExchange", { enumerable: true, get: function () { return LinkTokenExchange_1.LinkTokenExchange; } });
|
6
6
|
var LinkTokenBase_1 = require("./LinkTokenBase");
|
@@ -13,6 +13,8 @@ var PasswordAuthLink_1 = require("./PasswordAuthLink");
|
|
13
13
|
Object.defineProperty(exports, "PasswordAuthLink", { enumerable: true, get: function () { return PasswordAuthLink_1.PasswordAuthLink; } });
|
14
14
|
var IndividualProviderData_1 = require("./IndividualProviderData");
|
15
15
|
Object.defineProperty(exports, "IndividualProviderData", { enumerable: true, get: function () { return IndividualProviderData_1.IndividualProviderData; } });
|
16
|
+
var CompletePasswordProviderMfaBody_1 = require("./CompletePasswordProviderMfaBody");
|
17
|
+
Object.defineProperty(exports, "CompletePasswordProviderMfaBody", { enumerable: true, get: function () { return CompletePasswordProviderMfaBody_1.CompletePasswordProviderMfaBody; } });
|
16
18
|
var EmailProviderAuthLink_1 = require("./EmailProviderAuthLink");
|
17
19
|
Object.defineProperty(exports, "EmailProviderAuthLink", { enumerable: true, get: function () { return EmailProviderAuthLink_1.EmailProviderAuthLink; } });
|
18
20
|
var ManualConnectionData_1 = require("./ManualConnectionData");
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "..";
|
5
|
+
import * as Vital from "../../api";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const Answer: core.serialization.ObjectSchema<serializers.Answer.Raw, Vital.Answer>;
|
8
|
+
export declare namespace Answer {
|
9
|
+
interface Raw {
|
10
|
+
id: number;
|
11
|
+
code: string;
|
12
|
+
value: string;
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,35 @@
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.Answer = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.Answer = core.serialization.object({
|
32
|
+
id: core.serialization.number(),
|
33
|
+
code: core.serialization.string(),
|
34
|
+
value: core.serialization.string(),
|
35
|
+
});
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "..";
|
5
|
+
import * as Vital from "../../api";
|
6
|
+
import * as core from "../../core";
|
7
|
+
import { Question } from "./Question";
|
8
|
+
export declare const AoE: core.serialization.ObjectSchema<serializers.AoE.Raw, Vital.AoE>;
|
9
|
+
export declare namespace AoE {
|
10
|
+
interface Raw {
|
11
|
+
questions: Question.Raw[];
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,34 @@
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.AoE = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
const Question_1 = require("./Question");
|
32
|
+
exports.AoE = core.serialization.object({
|
33
|
+
questions: core.serialization.list(Question_1.Question),
|
34
|
+
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "..";
|
5
|
+
import * as Vital from "../../api";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const AoEAnswer: core.serialization.ObjectSchema<serializers.AoEAnswer.Raw, Vital.AoEAnswer>;
|
8
|
+
export declare namespace AoEAnswer {
|
9
|
+
interface Raw {
|
10
|
+
marker_id: number;
|
11
|
+
question_id: number;
|
12
|
+
answer: string;
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,35 @@
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.AoEAnswer = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.AoEAnswer = core.serialization.object({
|
32
|
+
markerId: core.serialization.property("marker_id", core.serialization.number()),
|
33
|
+
questionId: core.serialization.property("question_id", core.serialization.number()),
|
34
|
+
answer: core.serialization.string(),
|
35
|
+
});
|
@@ -5,6 +5,7 @@ import * as serializers from "..";
|
|
5
5
|
import * as Vital from "../../api";
|
6
6
|
import * as core from "../../core";
|
7
7
|
import { MarkerType } from "./MarkerType";
|
8
|
+
import { AoE } from "./AoE";
|
8
9
|
export declare const ClientFacingMarker: core.serialization.ObjectSchema<serializers.ClientFacingMarker.Raw, Vital.ClientFacingMarker>;
|
9
10
|
export declare namespace ClientFacingMarker {
|
10
11
|
interface Raw {
|
@@ -17,5 +18,6 @@ export declare namespace ClientFacingMarker {
|
|
17
18
|
type?: MarkerType.Raw | null;
|
18
19
|
unit?: string | null;
|
19
20
|
price?: string | null;
|
21
|
+
aoe?: AoE.Raw | null;
|
20
22
|
}
|
21
23
|
}
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ClientFacingMarker = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const MarkerType_1 = require("./MarkerType");
|
32
|
+
const AoE_1 = require("./AoE");
|
32
33
|
exports.ClientFacingMarker = core.serialization.object({
|
33
34
|
id: core.serialization.number(),
|
34
35
|
name: core.serialization.string(),
|
@@ -39,4 +40,5 @@ exports.ClientFacingMarker = core.serialization.object({
|
|
39
40
|
type: MarkerType_1.MarkerType.optional(),
|
40
41
|
unit: core.serialization.string().optional(),
|
41
42
|
price: core.serialization.string().optional(),
|
43
|
+
aoe: AoE_1.AoE.optional(),
|
42
44
|
});
|
@@ -5,6 +5,7 @@ import * as serializers from "..";
|
|
5
5
|
import * as Vital from "../../api";
|
6
6
|
import * as core from "../../core";
|
7
7
|
import { MarkerType } from "./MarkerType";
|
8
|
+
import { AoE } from "./AoE";
|
8
9
|
import { ClientFacingResult } from "./ClientFacingResult";
|
9
10
|
export declare const ClientFacingMarkerComplete: core.serialization.ObjectSchema<serializers.ClientFacingMarkerComplete.Raw, Vital.ClientFacingMarkerComplete>;
|
10
11
|
export declare namespace ClientFacingMarkerComplete {
|
@@ -18,6 +19,7 @@ export declare namespace ClientFacingMarkerComplete {
|
|
18
19
|
type?: MarkerType.Raw | null;
|
19
20
|
unit?: string | null;
|
20
21
|
price?: string | null;
|
22
|
+
aoe?: AoE.Raw | null;
|
21
23
|
expected_results: ClientFacingResult.Raw[];
|
22
24
|
}
|
23
25
|
}
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ClientFacingMarkerComplete = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const MarkerType_1 = require("./MarkerType");
|
32
|
+
const AoE_1 = require("./AoE");
|
32
33
|
const ClientFacingResult_1 = require("./ClientFacingResult");
|
33
34
|
exports.ClientFacingMarkerComplete = core.serialization.object({
|
34
35
|
id: core.serialization.number(),
|
@@ -40,5 +41,6 @@ exports.ClientFacingMarkerComplete = core.serialization.object({
|
|
40
41
|
type: MarkerType_1.MarkerType.optional(),
|
41
42
|
unit: core.serialization.string().optional(),
|
42
43
|
price: core.serialization.string().optional(),
|
44
|
+
aoe: AoE_1.AoE.optional(),
|
43
45
|
expectedResults: core.serialization.property("expected_results", core.serialization.list(ClientFacingResult_1.ClientFacingResult)),
|
44
46
|
});
|
@@ -10,10 +10,10 @@ export declare const ConnectionStatus: core.serialization.ObjectSchema<serialize
|
|
10
10
|
export declare namespace ConnectionStatus {
|
11
11
|
interface Raw {
|
12
12
|
state: ConnectionStatusState.Raw;
|
13
|
+
redirect_url?: string | null;
|
13
14
|
error_type?: string | null;
|
14
15
|
error?: string | null;
|
15
16
|
provider_mfa?: ProviderMfaRequest.Raw | null;
|
16
17
|
success: boolean;
|
17
|
-
redirect_url?: string | null;
|
18
18
|
}
|
19
19
|
}
|
@@ -32,9 +32,9 @@ const ConnectionStatusState_1 = require("./ConnectionStatusState");
|
|
32
32
|
const ProviderMfaRequest_1 = require("./ProviderMfaRequest");
|
33
33
|
exports.ConnectionStatus = core.serialization.object({
|
34
34
|
state: ConnectionStatusState_1.ConnectionStatusState,
|
35
|
+
redirectUrl: core.serialization.property("redirect_url", core.serialization.string().optional()),
|
35
36
|
errorType: core.serialization.property("error_type", core.serialization.string().optional()),
|
36
37
|
error: core.serialization.string().optional(),
|
37
38
|
providerMfa: core.serialization.property("provider_mfa", ProviderMfaRequest_1.ProviderMfaRequest.optional()),
|
38
39
|
success: core.serialization.boolean(),
|
39
|
-
redirectUrl: core.serialization.property("redirect_url", core.serialization.string().optional()),
|
40
40
|
});
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
7
7
|
export declare const PasswordProviders: core.serialization.Schema<serializers.PasswordProviders.Raw, Vital.PasswordProviders>;
|
8
8
|
export declare namespace PasswordProviders {
|
9
|
-
type Raw = "whoop" | "renpho" | "peloton" | "zwift" | "eight_sleep" | "beurer_api" | "dexcom" | "hammerhead" | "my_fitness_pal" | "kardia";
|
9
|
+
type Raw = "whoop" | "renpho" | "peloton" | "zwift" | "eight_sleep" | "beurer_api" | "dexcom" | "hammerhead" | "my_fitness_pal" | "kardia" | "abbott_libreview";
|
10
10
|
}
|
@@ -11,11 +11,12 @@ export declare const ProviderLinkResponse: core.serialization.ObjectSchema<seria
|
|
11
11
|
export declare namespace ProviderLinkResponse {
|
12
12
|
interface Raw {
|
13
13
|
state: ProviderLinkResponseState.Raw;
|
14
|
+
redirect_url?: string | null;
|
14
15
|
error_type?: string | null;
|
15
16
|
error?: string | null;
|
16
17
|
provider_mfa?: ProviderMfaRequest.Raw | null;
|
17
18
|
provider: PasswordProviders.Raw;
|
18
19
|
connected: boolean;
|
19
|
-
provider_id
|
20
|
+
provider_id: string;
|
20
21
|
}
|
21
22
|
}
|
@@ -33,10 +33,11 @@ const ProviderMfaRequest_1 = require("./ProviderMfaRequest");
|
|
33
33
|
const PasswordProviders_1 = require("./PasswordProviders");
|
34
34
|
exports.ProviderLinkResponse = core.serialization.object({
|
35
35
|
state: ProviderLinkResponseState_1.ProviderLinkResponseState,
|
36
|
+
redirectUrl: core.serialization.property("redirect_url", core.serialization.string().optional()),
|
36
37
|
errorType: core.serialization.property("error_type", core.serialization.string().optional()),
|
37
38
|
error: core.serialization.string().optional(),
|
38
39
|
providerMfa: core.serialization.property("provider_mfa", ProviderMfaRequest_1.ProviderMfaRequest.optional()),
|
39
40
|
provider: PasswordProviders_1.PasswordProviders,
|
40
41
|
connected: core.serialization.boolean(),
|
41
|
-
providerId: core.serialization.property("provider_id", core.serialization.string()
|
42
|
+
providerId: core.serialization.property("provider_id", core.serialization.string()),
|
42
43
|
});
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "..";
|
5
|
+
import * as Vital from "../../api";
|
6
|
+
import * as core from "../../core";
|
7
|
+
import { QuestionType } from "./QuestionType";
|
8
|
+
import { Answer } from "./Answer";
|
9
|
+
export declare const Question: core.serialization.ObjectSchema<serializers.Question.Raw, Vital.Question>;
|
10
|
+
export declare namespace Question {
|
11
|
+
interface Raw {
|
12
|
+
id: number;
|
13
|
+
required: boolean;
|
14
|
+
code: string;
|
15
|
+
value: string;
|
16
|
+
type: QuestionType.Raw;
|
17
|
+
sequence: number;
|
18
|
+
answers: Answer.Raw[];
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,41 @@
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.Question = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
const QuestionType_1 = require("./QuestionType");
|
32
|
+
const Answer_1 = require("./Answer");
|
33
|
+
exports.Question = core.serialization.object({
|
34
|
+
id: core.serialization.number(),
|
35
|
+
required: core.serialization.boolean(),
|
36
|
+
code: core.serialization.string(),
|
37
|
+
value: core.serialization.string(),
|
38
|
+
type: QuestionType_1.QuestionType,
|
39
|
+
sequence: core.serialization.number(),
|
40
|
+
answers: core.serialization.list(Answer_1.Answer),
|
41
|
+
});
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "..";
|
5
|
+
import * as Vital from "../../api";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const QuestionType: core.serialization.Schema<serializers.QuestionType.Raw, Vital.QuestionType>;
|
8
|
+
export declare namespace QuestionType {
|
9
|
+
type Raw = "choice" | "text" | "numeric" | "multi_choice";
|
10
|
+
}
|