@tryvital/vital-node 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +11 -6
- 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/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.d.ts +23 -0
- package/api/resources/introspect/client/Client.js +126 -0
- package/api/resources/introspect/client/index.d.ts +1 -0
- package/api/resources/introspect/client/index.js +17 -0
- package/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +10 -0
- package/api/resources/introspect/client/requests/index.d.ts +1 -0
- package/api/resources/introspect/client/requests/index.js +2 -0
- package/api/resources/introspect/index.d.ts +1 -0
- package/api/resources/introspect/index.js +17 -0
- package/api/resources/labTests/client/Client.d.ts +6 -1
- package/api/resources/labTests/client/Client.js +93 -24
- package/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -1
- package/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +8 -0
- package/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/api/resources/link/client/Client.js +14 -14
- 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.d.ts +4 -0
- package/api/resources/team/client/Client.js +63 -6
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.d.ts +2 -2
- package/api/resources/user/client/Client.js +23 -23
- package/api/resources/vitals/client/Client.js +23 -23
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ActivityV2InDb.d.ts +1 -1
- package/api/types/AttemptStatus.d.ts +11 -0
- package/api/types/AttemptStatus.js +10 -0
- package/api/types/BodyV2InDb.d.ts +1 -1
- package/api/types/ClientFacingLabTest.d.ts +2 -0
- package/api/types/ClientFacingOrder.d.ts +1 -1
- package/api/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +1 -1
- package/api/types/ClientFacingPhysician.js +5 -0
- package/api/types/ClientFacingTeam.d.ts +1 -0
- package/api/types/DelegatedFlowType.d.ts +12 -0
- package/api/types/DelegatedFlowType.js +11 -0
- package/api/types/EventDestinationPreferences.d.ts +8 -0
- package/api/types/EventDestinationPreferences.js +5 -0
- package/api/types/EventDestinationPreferencesEnabledItem.d.ts +9 -0
- package/api/types/EventDestinationPreferencesEnabledItem.js +11 -0
- package/api/types/EventDestinationPreferencesPreferred.d.ts +9 -0
- package/api/types/EventDestinationPreferencesPreferred.js +11 -0
- package/api/types/GetMarkersResponse.d.ts +4 -3
- package/api/types/GetOrdersResponse.d.ts +3 -3
- package/api/types/LabTestStatus.d.ts +12 -0
- package/api/types/LabTestStatus.js +11 -0
- package/api/types/LastAttempt.d.ts +8 -0
- package/api/types/LastAttempt.js +5 -0
- package/api/types/PatientAddressCompatible.d.ts +2 -2
- package/api/types/SingleResourceStatistics.d.ts +10 -0
- package/api/types/SingleResourceStatistics.js +5 -0
- package/api/types/SingleUserResourceResponse.d.ts +6 -0
- package/api/types/SingleUserResourceResponse.js +5 -0
- package/api/types/SleepV2InDb.d.ts +1 -1
- package/api/types/TeamConfig.d.ts +3 -0
- package/api/types/UserResourcesResponse.d.ts +8 -0
- package/api/types/UserResourcesResponse.js +5 -0
- package/api/types/WorkoutV2InDb.d.ts +1 -1
- package/api/types/index.d.ts +11 -1
- package/api/types/index.js +11 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +11 -6
- 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/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.d.ts +23 -0
- package/dist/api/resources/introspect/client/Client.js +126 -0
- package/dist/api/resources/introspect/client/index.d.ts +1 -0
- package/dist/api/resources/introspect/client/index.js +17 -0
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +10 -0
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.js +5 -0
- package/dist/api/resources/introspect/client/requests/index.d.ts +1 -0
- package/dist/api/resources/introspect/client/requests/index.js +2 -0
- package/dist/api/resources/introspect/index.d.ts +1 -0
- package/dist/api/resources/introspect/index.js +17 -0
- package/dist/api/resources/labTests/client/Client.d.ts +6 -1
- package/dist/api/resources/labTests/client/Client.js +93 -24
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +8 -0
- package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/dist/api/resources/link/client/Client.js +14 -14
- 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.d.ts +4 -0
- package/dist/api/resources/team/client/Client.js +63 -6
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.d.ts +2 -2
- package/dist/api/resources/user/client/Client.js +23 -23
- package/dist/api/resources/vitals/client/Client.js +23 -23
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ActivityV2InDb.d.ts +1 -1
- package/dist/api/types/AttemptStatus.d.ts +11 -0
- package/dist/api/types/AttemptStatus.js +10 -0
- package/dist/api/types/BodyV2InDb.d.ts +1 -1
- package/dist/api/types/ClientFacingLabTest.d.ts +2 -0
- package/dist/api/types/ClientFacingOrder.d.ts +1 -1
- package/dist/api/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +1 -1
- package/dist/api/types/ClientFacingPhysician.js +5 -0
- package/dist/api/types/ClientFacingTeam.d.ts +1 -0
- package/dist/api/types/DelegatedFlowType.d.ts +12 -0
- package/dist/api/types/DelegatedFlowType.js +11 -0
- package/dist/api/types/EventDestinationPreferences.d.ts +8 -0
- package/dist/api/types/EventDestinationPreferences.js +5 -0
- package/dist/api/types/EventDestinationPreferencesEnabledItem.d.ts +9 -0
- package/dist/api/types/EventDestinationPreferencesEnabledItem.js +11 -0
- package/dist/api/types/EventDestinationPreferencesPreferred.d.ts +9 -0
- package/dist/api/types/EventDestinationPreferencesPreferred.js +11 -0
- package/dist/api/types/GetMarkersResponse.d.ts +4 -3
- package/dist/api/types/GetOrdersResponse.d.ts +3 -3
- package/dist/api/types/LabTestStatus.d.ts +12 -0
- package/dist/api/types/LabTestStatus.js +11 -0
- package/dist/api/types/LastAttempt.d.ts +8 -0
- package/dist/api/types/LastAttempt.js +5 -0
- package/dist/api/types/PatientAddressCompatible.d.ts +2 -2
- package/dist/api/types/SingleResourceStatistics.d.ts +10 -0
- package/dist/api/types/SingleResourceStatistics.js +5 -0
- package/dist/api/types/SingleUserResourceResponse.d.ts +6 -0
- package/dist/api/types/SingleUserResourceResponse.js +5 -0
- package/dist/api/types/SleepV2InDb.d.ts +1 -1
- package/dist/api/types/TeamConfig.d.ts +3 -0
- package/dist/api/types/UserResourcesResponse.d.ts +8 -0
- package/dist/api/types/UserResourcesResponse.js +5 -0
- package/dist/api/types/WorkoutV2InDb.d.ts +1 -1
- package/dist/api/types/index.d.ts +11 -1
- package/dist/api/types/index.js +11 -1
- package/dist/serialization/resources/team/client/getPhysicians.d.ts +10 -0
- package/dist/serialization/resources/team/client/getPhysicians.js +40 -0
- package/dist/serialization/resources/team/client/index.d.ts +1 -0
- package/dist/serialization/resources/team/client/index.js +2 -1
- package/dist/serialization/types/ActivityV2InDb.d.ts +1 -1
- package/dist/serialization/types/ActivityV2InDb.js +1 -1
- package/dist/serialization/types/AttemptStatus.d.ts +10 -0
- package/dist/serialization/types/AttemptStatus.js +31 -0
- package/dist/serialization/types/BodyV2InDb.d.ts +1 -1
- package/dist/serialization/types/BodyV2InDb.js +1 -1
- package/dist/serialization/types/ClientFacingLabTest.d.ts +1 -0
- package/dist/serialization/types/ClientFacingLabTest.js +1 -0
- package/dist/serialization/types/ClientFacingOrder.d.ts +1 -1
- package/dist/serialization/types/ClientFacingOrder.js +1 -1
- package/dist/serialization/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +2 -2
- package/dist/serialization/types/{PhysicianClientFacing.js → ClientFacingPhysician.js} +2 -2
- package/dist/serialization/types/ClientFacingTeam.d.ts +1 -0
- package/dist/serialization/types/ClientFacingTeam.js +1 -0
- package/dist/serialization/types/DelegatedFlowType.d.ts +10 -0
- package/dist/serialization/types/DelegatedFlowType.js +35 -0
- package/dist/serialization/types/EventDestinationPreferences.d.ts +13 -0
- package/dist/serialization/types/EventDestinationPreferences.js +43 -0
- package/dist/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +10 -0
- package/dist/serialization/types/EventDestinationPreferencesEnabledItem.js +31 -0
- package/dist/serialization/types/EventDestinationPreferencesPreferred.d.ts +10 -0
- package/dist/serialization/types/EventDestinationPreferencesPreferred.js +31 -0
- package/dist/serialization/types/GetMarkersResponse.d.ts +4 -3
- package/dist/serialization/types/GetMarkersResponse.js +4 -3
- package/dist/serialization/types/GetOrdersResponse.d.ts +3 -3
- package/dist/serialization/types/GetOrdersResponse.js +3 -3
- package/dist/serialization/types/LabTestStatus.d.ts +10 -0
- package/dist/serialization/types/LabTestStatus.js +31 -0
- package/dist/serialization/types/LastAttempt.d.ts +13 -0
- package/dist/serialization/types/LastAttempt.js +43 -0
- package/dist/serialization/types/PatientAddressCompatible.d.ts +2 -2
- package/dist/serialization/types/PatientAddressCompatible.js +2 -2
- package/dist/serialization/types/SingleResourceStatistics.d.ts +15 -0
- package/dist/serialization/types/SingleResourceStatistics.js +45 -0
- package/dist/serialization/types/SingleUserResourceResponse.d.ts +12 -0
- package/dist/serialization/types/SingleUserResourceResponse.js +33 -0
- package/dist/serialization/types/SleepV2InDb.d.ts +1 -1
- package/dist/serialization/types/SleepV2InDb.js +1 -1
- package/dist/serialization/types/TeamConfig.d.ts +3 -0
- package/dist/serialization/types/TeamConfig.js +3 -0
- package/dist/serialization/types/UserResourcesResponse.d.ts +13 -0
- package/dist/serialization/types/UserResourcesResponse.js +43 -0
- package/dist/serialization/types/WorkoutV2InDb.d.ts +1 -1
- package/dist/serialization/types/WorkoutV2InDb.js +1 -1
- package/dist/serialization/types/index.d.ts +11 -1
- package/dist/serialization/types/index.js +11 -1
- package/package.json +1 -1
- package/serialization/resources/team/client/getPhysicians.d.ts +10 -0
- package/serialization/resources/team/client/getPhysicians.js +40 -0
- package/serialization/resources/team/client/index.d.ts +1 -0
- package/serialization/resources/team/client/index.js +2 -1
- package/serialization/types/ActivityV2InDb.d.ts +1 -1
- package/serialization/types/ActivityV2InDb.js +1 -1
- package/serialization/types/AttemptStatus.d.ts +10 -0
- package/serialization/types/AttemptStatus.js +31 -0
- package/serialization/types/BodyV2InDb.d.ts +1 -1
- package/serialization/types/BodyV2InDb.js +1 -1
- package/serialization/types/ClientFacingLabTest.d.ts +1 -0
- package/serialization/types/ClientFacingLabTest.js +1 -0
- package/serialization/types/ClientFacingOrder.d.ts +1 -1
- package/serialization/types/ClientFacingOrder.js +1 -1
- package/serialization/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +2 -2
- package/serialization/types/{PhysicianClientFacing.js → ClientFacingPhysician.js} +2 -2
- package/serialization/types/ClientFacingTeam.d.ts +1 -0
- package/serialization/types/ClientFacingTeam.js +1 -0
- package/serialization/types/DelegatedFlowType.d.ts +10 -0
- package/serialization/types/DelegatedFlowType.js +35 -0
- package/serialization/types/EventDestinationPreferences.d.ts +13 -0
- package/serialization/types/EventDestinationPreferences.js +43 -0
- package/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +10 -0
- package/serialization/types/EventDestinationPreferencesEnabledItem.js +31 -0
- package/serialization/types/EventDestinationPreferencesPreferred.d.ts +10 -0
- package/serialization/types/EventDestinationPreferencesPreferred.js +31 -0
- package/serialization/types/GetMarkersResponse.d.ts +4 -3
- package/serialization/types/GetMarkersResponse.js +4 -3
- package/serialization/types/GetOrdersResponse.d.ts +3 -3
- package/serialization/types/GetOrdersResponse.js +3 -3
- package/serialization/types/LabTestStatus.d.ts +10 -0
- package/serialization/types/LabTestStatus.js +31 -0
- package/serialization/types/LastAttempt.d.ts +13 -0
- package/serialization/types/LastAttempt.js +43 -0
- package/serialization/types/PatientAddressCompatible.d.ts +2 -2
- package/serialization/types/PatientAddressCompatible.js +2 -2
- package/serialization/types/SingleResourceStatistics.d.ts +15 -0
- package/serialization/types/SingleResourceStatistics.js +45 -0
- package/serialization/types/SingleUserResourceResponse.d.ts +12 -0
- package/serialization/types/SingleUserResourceResponse.js +33 -0
- package/serialization/types/SleepV2InDb.d.ts +1 -1
- package/serialization/types/SleepV2InDb.js +1 -1
- package/serialization/types/TeamConfig.d.ts +3 -0
- package/serialization/types/TeamConfig.js +3 -0
- package/serialization/types/UserResourcesResponse.d.ts +13 -0
- package/serialization/types/UserResourcesResponse.js +43 -0
- package/serialization/types/WorkoutV2InDb.d.ts +1 -1
- package/serialization/types/WorkoutV2InDb.js +1 -1
- package/serialization/types/index.d.ts +11 -1
- package/serialization/types/index.js +11 -1
- /package/api/{types/PhysicianClientFacing.js → resources/introspect/client/requests/IntrospectGetUserResourcesRequest.js} +0 -0
- /package/{dist/api/types/PhysicianClientFacing.js → api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.js} +0 -0
@@ -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 LabTestStatus: core.serialization.Schema<serializers.LabTestStatus.Raw, Vital.LabTestStatus>;
|
8
|
+
export declare namespace LabTestStatus {
|
9
|
+
type Raw = "active" | "pending_approval" | "inactive";
|
10
|
+
}
|
@@ -0,0 +1,31 @@
|
|
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.LabTestStatus = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.LabTestStatus = core.serialization.enum_(["active", "pending_approval", "inactive"]);
|
@@ -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
|
+
export declare const LastAttempt: core.serialization.ObjectSchema<serializers.LastAttempt.Raw, Vital.LastAttempt>;
|
8
|
+
export declare namespace LastAttempt {
|
9
|
+
interface Raw {
|
10
|
+
timestamp: string;
|
11
|
+
status: serializers.AttemptStatus.Raw;
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
35
|
+
});
|
36
|
+
};
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
38
|
+
exports.LastAttempt = void 0;
|
39
|
+
const core = __importStar(require("../../core"));
|
40
|
+
exports.LastAttempt = core.serialization.object({
|
41
|
+
timestamp: core.serialization.date(),
|
42
|
+
status: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AttemptStatus; })),
|
43
|
+
});
|
@@ -8,8 +8,8 @@ export declare const PatientAddressCompatible: core.serialization.ObjectSchema<s
|
|
8
8
|
export declare namespace PatientAddressCompatible {
|
9
9
|
interface Raw {
|
10
10
|
receiver_name?: string | null;
|
11
|
-
|
12
|
-
|
11
|
+
first_line: string;
|
12
|
+
second_line?: string | null;
|
13
13
|
city: string;
|
14
14
|
state: string;
|
15
15
|
zip: string;
|
@@ -30,8 +30,8 @@ exports.PatientAddressCompatible = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
exports.PatientAddressCompatible = core.serialization.object({
|
32
32
|
receiverName: core.serialization.property("receiver_name", core.serialization.string().optional()),
|
33
|
-
|
34
|
-
|
33
|
+
firstLine: core.serialization.property("first_line", core.serialization.string()),
|
34
|
+
secondLine: core.serialization.property("second_line", core.serialization.string().optional()),
|
35
35
|
city: core.serialization.string(),
|
36
36
|
state: core.serialization.string(),
|
37
37
|
zip: core.serialization.string(),
|
@@ -0,0 +1,15 @@
|
|
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 SingleResourceStatistics: core.serialization.ObjectSchema<serializers.SingleResourceStatistics.Raw, Vital.SingleResourceStatistics>;
|
8
|
+
export declare namespace SingleResourceStatistics {
|
9
|
+
interface Raw {
|
10
|
+
last_attempt?: serializers.LastAttempt.Raw | null;
|
11
|
+
oldest_data?: string | null;
|
12
|
+
newest_data?: string | null;
|
13
|
+
sent_count?: number | null;
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
35
|
+
});
|
36
|
+
};
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
38
|
+
exports.SingleResourceStatistics = void 0;
|
39
|
+
const core = __importStar(require("../../core"));
|
40
|
+
exports.SingleResourceStatistics = core.serialization.object({
|
41
|
+
lastAttempt: core.serialization.property("last_attempt", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).LastAttempt; })).optional()),
|
42
|
+
oldestData: core.serialization.property("oldest_data", core.serialization.date().optional()),
|
43
|
+
newestData: core.serialization.property("newest_data", core.serialization.date().optional()),
|
44
|
+
sentCount: core.serialization.property("sent_count", core.serialization.number().optional()),
|
45
|
+
});
|
@@ -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 SingleUserResourceResponse: core.serialization.ObjectSchema<serializers.SingleUserResourceResponse.Raw, Vital.SingleUserResourceResponse>;
|
8
|
+
export declare namespace SingleUserResourceResponse {
|
9
|
+
interface Raw {
|
10
|
+
user_id: 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.SingleUserResourceResponse = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.SingleUserResourceResponse = core.serialization.object({
|
32
|
+
userId: core.serialization.property("user_id", core.serialization.string()),
|
33
|
+
});
|
@@ -8,7 +8,7 @@ export declare const SleepV2InDb: core.serialization.ObjectSchema<serializers.Sl
|
|
8
8
|
export declare namespace SleepV2InDb {
|
9
9
|
interface Raw {
|
10
10
|
timestamp: string;
|
11
|
-
data
|
11
|
+
data: Record<string, unknown>;
|
12
12
|
provider_id: string;
|
13
13
|
user_id: string;
|
14
14
|
source_id: number;
|
@@ -39,7 +39,7 @@ exports.SleepV2InDb = void 0;
|
|
39
39
|
const core = __importStar(require("../../core"));
|
40
40
|
exports.SleepV2InDb = core.serialization.object({
|
41
41
|
timestamp: core.serialization.date(),
|
42
|
-
data: core.serialization.string().
|
42
|
+
data: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
43
43
|
providerId: core.serialization.property("provider_id", core.serialization.string()),
|
44
44
|
userId: core.serialization.property("user_id", core.serialization.string()),
|
45
45
|
sourceId: core.serialization.property("source_id", core.serialization.number()),
|
@@ -9,5 +9,8 @@ export declare namespace TeamConfig {
|
|
9
9
|
interface Raw {
|
10
10
|
libreview: serializers.LibreConfig.Raw;
|
11
11
|
texts_enabled?: boolean | null;
|
12
|
+
push_historical_data?: boolean | null;
|
13
|
+
eds_preferences?: serializers.EventDestinationPreferences.Raw | null;
|
14
|
+
event_type_prefixes?: string[] | null;
|
12
15
|
}
|
13
16
|
}
|
@@ -40,4 +40,7 @@ const core = __importStar(require("../../core"));
|
|
40
40
|
exports.TeamConfig = core.serialization.object({
|
41
41
|
libreview: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).LibreConfig; })),
|
42
42
|
textsEnabled: core.serialization.property("texts_enabled", core.serialization.boolean().optional()),
|
43
|
+
pushHistoricalData: core.serialization.property("push_historical_data", core.serialization.boolean().optional()),
|
44
|
+
edsPreferences: core.serialization.property("eds_preferences", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).EventDestinationPreferences; })).optional()),
|
45
|
+
eventTypePrefixes: core.serialization.property("event_type_prefixes", core.serialization.list(core.serialization.string()).optional()),
|
43
46
|
});
|
@@ -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
|
+
export declare const UserResourcesResponse: core.serialization.ObjectSchema<serializers.UserResourcesResponse.Raw, Vital.UserResourcesResponse>;
|
8
|
+
export declare namespace UserResourcesResponse {
|
9
|
+
interface Raw {
|
10
|
+
data: serializers.SingleUserResourceResponse.Raw[];
|
11
|
+
next?: string | null;
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
35
|
+
});
|
36
|
+
};
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
38
|
+
exports.UserResourcesResponse = void 0;
|
39
|
+
const core = __importStar(require("../../core"));
|
40
|
+
exports.UserResourcesResponse = core.serialization.object({
|
41
|
+
data: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SingleUserResourceResponse; }))),
|
42
|
+
next: core.serialization.string().optional(),
|
43
|
+
});
|
@@ -8,7 +8,7 @@ export declare const WorkoutV2InDb: core.serialization.ObjectSchema<serializers.
|
|
8
8
|
export declare namespace WorkoutV2InDb {
|
9
9
|
interface Raw {
|
10
10
|
timestamp: string;
|
11
|
-
data
|
11
|
+
data: Record<string, unknown>;
|
12
12
|
provider_id: string;
|
13
13
|
user_id: string;
|
14
14
|
source_id: number;
|
@@ -39,7 +39,7 @@ exports.WorkoutV2InDb = void 0;
|
|
39
39
|
const core = __importStar(require("../../core"));
|
40
40
|
exports.WorkoutV2InDb = core.serialization.object({
|
41
41
|
timestamp: core.serialization.date(),
|
42
|
-
data: core.serialization.string().
|
42
|
+
data: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
43
43
|
providerId: core.serialization.property("provider_id", core.serialization.string()),
|
44
44
|
userId: core.serialization.property("user_id", core.serialization.string()),
|
45
45
|
sourceId: core.serialization.property("source_id", core.serialization.number()),
|
@@ -7,6 +7,7 @@ export * from "./AppointmentProvider";
|
|
7
7
|
export * from "./AppointmentStatus";
|
8
8
|
export * from "./AppointmentType";
|
9
9
|
export * from "./AreaInfo";
|
10
|
+
export * from "./AttemptStatus";
|
10
11
|
export * from "./AuthType";
|
11
12
|
export * from "./BiomarkerResult";
|
12
13
|
export * from "./BodyV2InDb";
|
@@ -50,6 +51,7 @@ export * from "./ClientFacingOrderDetails";
|
|
50
51
|
export * from "./ClientFacingOrderEvent";
|
51
52
|
export * from "./ClientFacingPatientDetailsCompatible";
|
52
53
|
export * from "./ClientFacingPayorSearchResponse";
|
54
|
+
export * from "./ClientFacingPhysician";
|
53
55
|
export * from "./ClientFacingProfile";
|
54
56
|
export * from "./ClientFacingProvider";
|
55
57
|
export * from "./ClientFacingProviderDetailed";
|
@@ -80,11 +82,15 @@ export * from "./ConnectionStatus";
|
|
80
82
|
export * from "./Consent";
|
81
83
|
export * from "./ConsentType";
|
82
84
|
export * from "./DaySlots";
|
85
|
+
export * from "./DelegatedFlowType";
|
83
86
|
export * from "./DemoConnectionStatus";
|
84
87
|
export * from "./DemoProviders";
|
85
88
|
export * from "./DeviceV2InDb";
|
86
89
|
export * from "./EmailProviders";
|
87
90
|
export * from "./Energy";
|
91
|
+
export * from "./EventDestinationPreferences";
|
92
|
+
export * from "./EventDestinationPreferencesPreferred";
|
93
|
+
export * from "./EventDestinationPreferencesEnabledItem";
|
88
94
|
export * from "./FallbackTimeZone";
|
89
95
|
export * from "./Fats";
|
90
96
|
export * from "./Gender";
|
@@ -101,6 +107,8 @@ export * from "./LabResultsRaw";
|
|
101
107
|
export * from "./LabResultsRawResults";
|
102
108
|
export * from "./LabTestCollectionMethod";
|
103
109
|
export * from "./LabTestSampleType";
|
110
|
+
export * from "./LabTestStatus";
|
111
|
+
export * from "./LastAttempt";
|
104
112
|
export * from "./LibreConfig";
|
105
113
|
export * from "./LinkTokenExchangeResponse";
|
106
114
|
export * from "./LngLat";
|
@@ -119,7 +127,6 @@ export * from "./PatientAddressCompatible";
|
|
119
127
|
export * from "./PatientDetails";
|
120
128
|
export * from "./PersonDetails";
|
121
129
|
export * from "./PhlebotomyAreaInfo";
|
122
|
-
export * from "./PhysicianClientFacing";
|
123
130
|
export * from "./PhysicianCreateRequest";
|
124
131
|
export * from "./PhysicianCreateRequestSignatureImage";
|
125
132
|
export * from "./PhysicianCreateRequestBase";
|
@@ -138,6 +145,8 @@ export * from "./Region";
|
|
138
145
|
export * from "./ResponsibleRelationship";
|
139
146
|
export * from "./ResultType";
|
140
147
|
export * from "./ShippingAddress";
|
148
|
+
export * from "./SingleResourceStatistics";
|
149
|
+
export * from "./SingleUserResourceResponse";
|
141
150
|
export * from "./SleepV2InDb";
|
142
151
|
export * from "./Source";
|
143
152
|
export * from "./SourceAuthType";
|
@@ -149,6 +158,7 @@ export * from "./TimeseriesMetricPoint";
|
|
149
158
|
export * from "./TimeseriesResource";
|
150
159
|
export * from "./UserRefreshErrorResponse";
|
151
160
|
export * from "./UserRefreshSuccessResponse";
|
161
|
+
export * from "./UserResourcesResponse";
|
152
162
|
export * from "./UserSignInToken";
|
153
163
|
export * from "./UserSignInTokenResponse";
|
154
164
|
export * from "./UserSignInTokenResponseSignInToken";
|
@@ -23,6 +23,7 @@ __exportStar(require("./AppointmentProvider"), exports);
|
|
23
23
|
__exportStar(require("./AppointmentStatus"), exports);
|
24
24
|
__exportStar(require("./AppointmentType"), exports);
|
25
25
|
__exportStar(require("./AreaInfo"), exports);
|
26
|
+
__exportStar(require("./AttemptStatus"), exports);
|
26
27
|
__exportStar(require("./AuthType"), exports);
|
27
28
|
__exportStar(require("./BiomarkerResult"), exports);
|
28
29
|
__exportStar(require("./BodyV2InDb"), exports);
|
@@ -66,6 +67,7 @@ __exportStar(require("./ClientFacingOrderDetails"), exports);
|
|
66
67
|
__exportStar(require("./ClientFacingOrderEvent"), exports);
|
67
68
|
__exportStar(require("./ClientFacingPatientDetailsCompatible"), exports);
|
68
69
|
__exportStar(require("./ClientFacingPayorSearchResponse"), exports);
|
70
|
+
__exportStar(require("./ClientFacingPhysician"), exports);
|
69
71
|
__exportStar(require("./ClientFacingProfile"), exports);
|
70
72
|
__exportStar(require("./ClientFacingProvider"), exports);
|
71
73
|
__exportStar(require("./ClientFacingProviderDetailed"), exports);
|
@@ -96,11 +98,15 @@ __exportStar(require("./ConnectionStatus"), exports);
|
|
96
98
|
__exportStar(require("./Consent"), exports);
|
97
99
|
__exportStar(require("./ConsentType"), exports);
|
98
100
|
__exportStar(require("./DaySlots"), exports);
|
101
|
+
__exportStar(require("./DelegatedFlowType"), exports);
|
99
102
|
__exportStar(require("./DemoConnectionStatus"), exports);
|
100
103
|
__exportStar(require("./DemoProviders"), exports);
|
101
104
|
__exportStar(require("./DeviceV2InDb"), exports);
|
102
105
|
__exportStar(require("./EmailProviders"), exports);
|
103
106
|
__exportStar(require("./Energy"), exports);
|
107
|
+
__exportStar(require("./EventDestinationPreferences"), exports);
|
108
|
+
__exportStar(require("./EventDestinationPreferencesPreferred"), exports);
|
109
|
+
__exportStar(require("./EventDestinationPreferencesEnabledItem"), exports);
|
104
110
|
__exportStar(require("./FallbackTimeZone"), exports);
|
105
111
|
__exportStar(require("./Fats"), exports);
|
106
112
|
__exportStar(require("./Gender"), exports);
|
@@ -117,6 +123,8 @@ __exportStar(require("./LabResultsRaw"), exports);
|
|
117
123
|
__exportStar(require("./LabResultsRawResults"), exports);
|
118
124
|
__exportStar(require("./LabTestCollectionMethod"), exports);
|
119
125
|
__exportStar(require("./LabTestSampleType"), exports);
|
126
|
+
__exportStar(require("./LabTestStatus"), exports);
|
127
|
+
__exportStar(require("./LastAttempt"), exports);
|
120
128
|
__exportStar(require("./LibreConfig"), exports);
|
121
129
|
__exportStar(require("./LinkTokenExchangeResponse"), exports);
|
122
130
|
__exportStar(require("./LngLat"), exports);
|
@@ -135,7 +143,6 @@ __exportStar(require("./PatientAddressCompatible"), exports);
|
|
135
143
|
__exportStar(require("./PatientDetails"), exports);
|
136
144
|
__exportStar(require("./PersonDetails"), exports);
|
137
145
|
__exportStar(require("./PhlebotomyAreaInfo"), exports);
|
138
|
-
__exportStar(require("./PhysicianClientFacing"), exports);
|
139
146
|
__exportStar(require("./PhysicianCreateRequest"), exports);
|
140
147
|
__exportStar(require("./PhysicianCreateRequestSignatureImage"), exports);
|
141
148
|
__exportStar(require("./PhysicianCreateRequestBase"), exports);
|
@@ -154,6 +161,8 @@ __exportStar(require("./Region"), exports);
|
|
154
161
|
__exportStar(require("./ResponsibleRelationship"), exports);
|
155
162
|
__exportStar(require("./ResultType"), exports);
|
156
163
|
__exportStar(require("./ShippingAddress"), exports);
|
164
|
+
__exportStar(require("./SingleResourceStatistics"), exports);
|
165
|
+
__exportStar(require("./SingleUserResourceResponse"), exports);
|
157
166
|
__exportStar(require("./SleepV2InDb"), exports);
|
158
167
|
__exportStar(require("./Source"), exports);
|
159
168
|
__exportStar(require("./SourceAuthType"), exports);
|
@@ -165,6 +174,7 @@ __exportStar(require("./TimeseriesMetricPoint"), exports);
|
|
165
174
|
__exportStar(require("./TimeseriesResource"), exports);
|
166
175
|
__exportStar(require("./UserRefreshErrorResponse"), exports);
|
167
176
|
__exportStar(require("./UserRefreshSuccessResponse"), exports);
|
177
|
+
__exportStar(require("./UserResourcesResponse"), exports);
|
168
178
|
__exportStar(require("./UserSignInToken"), exports);
|
169
179
|
__exportStar(require("./UserSignInTokenResponse"), exports);
|
170
180
|
__exportStar(require("./UserSignInTokenResponseSignInToken"), exports);
|
File without changes
|