@tryvital/vital-node 3.1.121 → 3.1.123
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/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.js +34 -34
- package/api/resources/link/client/Client.js +14 -14
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/sleepCycle/client/Client.js +1 -1
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +16 -16
- package/api/resources/vitals/client/Client.js +56 -56
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/BodyColumnExprBody.d.ts +2 -1
- package/api/types/BodyColumnExprBody.js +1 -0
- package/api/types/ClientFacingBody.d.ts +2 -0
- package/api/types/{SleepCycle.d.ts → ClientFacingSleepCycle.d.ts} +5 -3
- package/{dist/api/types/SleepCycleSourceProvider.d.ts → api/types/ClientFacingSleepCycleSourceProvider.d.ts} +1 -1
- package/{dist/api/types/SleepCycleSourceType.d.ts → api/types/ClientFacingSleepCycleSourceType.d.ts} +2 -2
- package/{dist/api/types/SleepCycleSourceType.js → api/types/ClientFacingSleepCycleSourceType.js} +2 -2
- package/api/types/ClientSleepCycleResponse.d.ts +1 -1
- package/api/types/HttpValidationError.d.ts +1 -2
- package/api/types/Providers.d.ts +2 -1
- package/api/types/Providers.js +1 -0
- package/api/types/index.d.ts +3 -3
- package/api/types/index.js +3 -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/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.js +34 -34
- package/dist/api/resources/link/client/Client.js +14 -14
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/sleepCycle/client/Client.js +1 -1
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +16 -16
- package/dist/api/resources/vitals/client/Client.js +56 -56
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/BodyColumnExprBody.d.ts +2 -1
- package/dist/api/types/BodyColumnExprBody.js +1 -0
- package/dist/api/types/ClientFacingBody.d.ts +2 -0
- package/dist/api/types/{SleepCycle.d.ts → ClientFacingSleepCycle.d.ts} +5 -3
- package/{api/types/SleepCycleSourceProvider.d.ts → dist/api/types/ClientFacingSleepCycleSourceProvider.d.ts} +1 -1
- package/{api/types/SleepCycleSourceType.d.ts → dist/api/types/ClientFacingSleepCycleSourceType.d.ts} +2 -2
- package/{api/types/SleepCycleSourceType.js → dist/api/types/ClientFacingSleepCycleSourceType.js} +2 -2
- package/dist/api/types/ClientSleepCycleResponse.d.ts +1 -1
- package/dist/api/types/HttpValidationError.d.ts +1 -2
- package/dist/api/types/Providers.d.ts +2 -1
- package/dist/api/types/Providers.js +1 -0
- package/dist/api/types/index.d.ts +3 -3
- package/dist/api/types/index.js +3 -3
- package/dist/serialization/types/BodyColumnExprBody.d.ts +1 -1
- package/dist/serialization/types/BodyColumnExprBody.js +1 -0
- package/dist/serialization/types/ClientFacingBody.d.ts +1 -0
- package/dist/serialization/types/ClientFacingBody.js +1 -0
- package/dist/serialization/types/ClientFacingSleepCycle.d.ts +28 -0
- package/dist/serialization/types/{SleepCycle.js → ClientFacingSleepCycle.js} +9 -6
- package/{serialization/types/SleepCycleSourceProvider.d.ts → dist/serialization/types/ClientFacingSleepCycleSourceProvider.d.ts} +2 -2
- package/dist/serialization/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js} +2 -2
- package/dist/serialization/types/{SleepCycleSourceType.d.ts → ClientFacingSleepCycleSourceType.d.ts} +2 -2
- package/{serialization/types/SleepCycleSourceType.js → dist/serialization/types/ClientFacingSleepCycleSourceType.js} +2 -2
- package/dist/serialization/types/ClientSleepCycleResponse.d.ts +2 -2
- package/dist/serialization/types/ClientSleepCycleResponse.js +2 -2
- package/dist/serialization/types/HttpValidationError.d.ts +1 -2
- package/dist/serialization/types/HttpValidationError.js +1 -2
- package/dist/serialization/types/Providers.d.ts +1 -1
- package/dist/serialization/types/Providers.js +1 -0
- package/dist/serialization/types/index.d.ts +3 -3
- package/dist/serialization/types/index.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/BodyColumnExprBody.d.ts +1 -1
- package/serialization/types/BodyColumnExprBody.js +1 -0
- package/serialization/types/ClientFacingBody.d.ts +1 -0
- package/serialization/types/ClientFacingBody.js +1 -0
- package/serialization/types/ClientFacingSleepCycle.d.ts +28 -0
- package/serialization/types/{SleepCycle.js → ClientFacingSleepCycle.js} +9 -6
- package/{dist/serialization/types/SleepCycleSourceProvider.d.ts → serialization/types/ClientFacingSleepCycleSourceProvider.d.ts} +2 -2
- package/serialization/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js} +2 -2
- package/serialization/types/{SleepCycleSourceType.d.ts → ClientFacingSleepCycleSourceType.d.ts} +2 -2
- package/{dist/serialization/types/SleepCycleSourceType.js → serialization/types/ClientFacingSleepCycleSourceType.js} +2 -2
- package/serialization/types/ClientSleepCycleResponse.d.ts +2 -2
- package/serialization/types/ClientSleepCycleResponse.js +2 -2
- package/serialization/types/HttpValidationError.d.ts +1 -2
- package/serialization/types/HttpValidationError.js +1 -2
- package/serialization/types/Providers.d.ts +1 -1
- package/serialization/types/Providers.js +1 -0
- package/serialization/types/index.d.ts +3 -3
- package/serialization/types/index.js +3 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/dist/serialization/types/SleepCycle.d.ts +0 -25
- package/serialization/types/SleepCycle.d.ts +0 -25
- /package/api/types/{SleepCycle.js → ClientFacingSleepCycle.js} +0 -0
- /package/api/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js} +0 -0
- /package/dist/api/types/{SleepCycle.js → ClientFacingSleepCycle.js} +0 -0
- /package/dist/api/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js} +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export declare type BodyColumnExprBody = "measured_at" | "weight_kilogram" | "fat_mass_percentage" | "water_percentage" | "muscle_mass_percentage" | "visceral_fat_index" | "source_type" | "source_provider" | "source_app_id";
|
4
|
+
export declare type BodyColumnExprBody = "measured_at" | "weight_kilogram" | "fat_mass_percentage" | "water_percentage" | "muscle_mass_percentage" | "visceral_fat_index" | "bone_mass_percentage" | "source_type" | "source_provider" | "source_app_id";
|
5
5
|
export declare const BodyColumnExprBody: {
|
6
6
|
readonly MeasuredAt: "measured_at";
|
7
7
|
readonly WeightKilogram: "weight_kilogram";
|
@@ -9,6 +9,7 @@ export declare const BodyColumnExprBody: {
|
|
9
9
|
readonly WaterPercentage: "water_percentage";
|
10
10
|
readonly MuscleMassPercentage: "muscle_mass_percentage";
|
11
11
|
readonly VisceralFatIndex: "visceral_fat_index";
|
12
|
+
readonly BoneMassPercentage: "bone_mass_percentage";
|
12
13
|
readonly SourceType: "source_type";
|
13
14
|
readonly SourceProvider: "source_provider";
|
14
15
|
readonly SourceAppId: "source_app_id";
|
@@ -11,6 +11,7 @@ exports.BodyColumnExprBody = {
|
|
11
11
|
WaterPercentage: "water_percentage",
|
12
12
|
MuscleMassPercentage: "muscle_mass_percentage",
|
13
13
|
VisceralFatIndex: "visceral_fat_index",
|
14
|
+
BoneMassPercentage: "bone_mass_percentage",
|
14
15
|
SourceType: "source_type",
|
15
16
|
SourceProvider: "source_provider",
|
16
17
|
SourceAppId: "source_app_id",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
import * as Vital from "../index";
|
5
|
-
export interface
|
5
|
+
export interface ClientFacingSleepCycle {
|
6
6
|
id: string;
|
7
7
|
sleepId: string;
|
8
8
|
sessionStart: Date;
|
@@ -11,7 +11,9 @@ export interface SleepCycle {
|
|
11
11
|
stageEndOffsetSecond: number[];
|
12
12
|
stageType: Vital.VitalSleepStage[];
|
13
13
|
timeZone?: string;
|
14
|
-
sourceProvider: Vital.
|
15
|
-
sourceType: Vital.
|
14
|
+
sourceProvider: Vital.ClientFacingSleepCycleSourceProvider;
|
15
|
+
sourceType: Vital.ClientFacingSleepCycleSourceType;
|
16
16
|
sourceAppId?: string;
|
17
|
+
userId: string;
|
18
|
+
source: Vital.ClientFacingSource;
|
17
19
|
}
|
@@ -2,4 +2,4 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
import * as Vital from "../index";
|
5
|
-
export declare type
|
5
|
+
export declare type ClientFacingSleepCycleSourceProvider = Vital.Providers | Vital.Labs;
|
package/{api/types/SleepCycleSourceType.d.ts → dist/api/types/ClientFacingSleepCycleSourceType.d.ts}
RENAMED
@@ -1,8 +1,8 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export declare type
|
5
|
-
export declare const
|
4
|
+
export declare type ClientFacingSleepCycleSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
|
5
|
+
export declare const ClientFacingSleepCycleSourceType: {
|
6
6
|
readonly Unknown: "unknown";
|
7
7
|
readonly Phone: "phone";
|
8
8
|
readonly Watch: "watch";
|
package/{api/types/SleepCycleSourceType.js → dist/api/types/ClientFacingSleepCycleSourceType.js}
RENAMED
@@ -3,8 +3,8 @@
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
4
4
|
*/
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.
|
7
|
-
exports.
|
6
|
+
exports.ClientFacingSleepCycleSourceType = void 0;
|
7
|
+
exports.ClientFacingSleepCycleSourceType = {
|
8
8
|
Unknown: "unknown",
|
9
9
|
Phone: "phone",
|
10
10
|
Watch: "watch",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export declare type Providers = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2";
|
4
|
+
export declare type Providers = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2" | "map_my_fitness";
|
5
5
|
export declare const Providers: {
|
6
6
|
readonly Oura: "oura";
|
7
7
|
readonly Fitbit: "fitbit";
|
@@ -39,4 +39,5 @@ export declare const Providers: {
|
|
39
39
|
readonly WhoopV2: "whoop_v2";
|
40
40
|
readonly Ultrahuman: "ultrahuman";
|
41
41
|
readonly MyFitnessPalV2: "my_fitness_pal_v2";
|
42
|
+
readonly MapMyFitness: "map_my_fitness";
|
42
43
|
};
|
@@ -102,6 +102,9 @@ export * from "./ClientFacingRespiratoryRateTimeseries";
|
|
102
102
|
export * from "./ClientFacingResult";
|
103
103
|
export * from "./ClientFacingShipment";
|
104
104
|
export * from "./ClientFacingSleep";
|
105
|
+
export * from "./ClientFacingSleepCycleSourceProvider";
|
106
|
+
export * from "./ClientFacingSleepCycleSourceType";
|
107
|
+
export * from "./ClientFacingSleepCycle";
|
105
108
|
export * from "./ClientFacingSleepStream";
|
106
109
|
export * from "./ClientFacingSource";
|
107
110
|
export * from "./ClientFacingSport";
|
@@ -275,9 +278,6 @@ export * from "./SingleUserHistoricalPullResponse";
|
|
275
278
|
export * from "./SingleUserResourceResponse";
|
276
279
|
export * from "./SleepColumnExprSleep";
|
277
280
|
export * from "./SleepColumnExpr";
|
278
|
-
export * from "./SleepCycleSourceProvider";
|
279
|
-
export * from "./SleepCycleSourceType";
|
280
|
-
export * from "./SleepCycle";
|
281
281
|
export * from "./SleepScoreValueMacroExpr";
|
282
282
|
export * from "./SleepSummaryState";
|
283
283
|
export * from "./SleepType";
|
package/dist/api/types/index.js
CHANGED
@@ -118,6 +118,9 @@ __exportStar(require("./ClientFacingRespiratoryRateTimeseries"), exports);
|
|
118
118
|
__exportStar(require("./ClientFacingResult"), exports);
|
119
119
|
__exportStar(require("./ClientFacingShipment"), exports);
|
120
120
|
__exportStar(require("./ClientFacingSleep"), exports);
|
121
|
+
__exportStar(require("./ClientFacingSleepCycleSourceProvider"), exports);
|
122
|
+
__exportStar(require("./ClientFacingSleepCycleSourceType"), exports);
|
123
|
+
__exportStar(require("./ClientFacingSleepCycle"), exports);
|
121
124
|
__exportStar(require("./ClientFacingSleepStream"), exports);
|
122
125
|
__exportStar(require("./ClientFacingSource"), exports);
|
123
126
|
__exportStar(require("./ClientFacingSport"), exports);
|
@@ -291,9 +294,6 @@ __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
|
|
291
294
|
__exportStar(require("./SingleUserResourceResponse"), exports);
|
292
295
|
__exportStar(require("./SleepColumnExprSleep"), exports);
|
293
296
|
__exportStar(require("./SleepColumnExpr"), exports);
|
294
|
-
__exportStar(require("./SleepCycleSourceProvider"), exports);
|
295
|
-
__exportStar(require("./SleepCycleSourceType"), exports);
|
296
|
-
__exportStar(require("./SleepCycle"), exports);
|
297
297
|
__exportStar(require("./SleepScoreValueMacroExpr"), exports);
|
298
298
|
__exportStar(require("./SleepSummaryState"), exports);
|
299
299
|
__exportStar(require("./SleepType"), exports);
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
7
7
|
export declare const BodyColumnExprBody: core.serialization.Schema<serializers.BodyColumnExprBody.Raw, Vital.BodyColumnExprBody>;
|
8
8
|
export declare namespace BodyColumnExprBody {
|
9
|
-
type Raw = "measured_at" | "weight_kilogram" | "fat_mass_percentage" | "water_percentage" | "muscle_mass_percentage" | "visceral_fat_index" | "source_type" | "source_provider" | "source_app_id";
|
9
|
+
type Raw = "measured_at" | "weight_kilogram" | "fat_mass_percentage" | "water_percentage" | "muscle_mass_percentage" | "visceral_fat_index" | "bone_mass_percentage" | "source_type" | "source_provider" | "source_app_id";
|
10
10
|
}
|
@@ -39,5 +39,6 @@ exports.ClientFacingBody = core.serialization.object({
|
|
39
39
|
waterPercentage: core.serialization.property("water_percentage", core.serialization.number().optional()),
|
40
40
|
muscleMassPercentage: core.serialization.property("muscle_mass_percentage", core.serialization.number().optional()),
|
41
41
|
visceralFatIndex: core.serialization.property("visceral_fat_index", core.serialization.number().optional()),
|
42
|
+
boneMassPercentage: core.serialization.property("bone_mass_percentage", core.serialization.number().optional()),
|
42
43
|
source: ClientFacingSource_1.ClientFacingSource,
|
43
44
|
});
|
@@ -0,0 +1,28 @@
|
|
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
|
+
import { VitalSleepStage } from "./VitalSleepStage";
|
8
|
+
import { ClientFacingSleepCycleSourceProvider } from "./ClientFacingSleepCycleSourceProvider";
|
9
|
+
import { ClientFacingSleepCycleSourceType } from "./ClientFacingSleepCycleSourceType";
|
10
|
+
import { ClientFacingSource } from "./ClientFacingSource";
|
11
|
+
export declare const ClientFacingSleepCycle: core.serialization.ObjectSchema<serializers.ClientFacingSleepCycle.Raw, Vital.ClientFacingSleepCycle>;
|
12
|
+
export declare namespace ClientFacingSleepCycle {
|
13
|
+
interface Raw {
|
14
|
+
id: string;
|
15
|
+
sleep_id: string;
|
16
|
+
session_start: string;
|
17
|
+
session_end: string;
|
18
|
+
stage_start_offset_second: number[];
|
19
|
+
stage_end_offset_second: number[];
|
20
|
+
stage_type: VitalSleepStage.Raw[];
|
21
|
+
time_zone?: string | null;
|
22
|
+
source_provider: ClientFacingSleepCycleSourceProvider.Raw;
|
23
|
+
source_type: ClientFacingSleepCycleSourceType.Raw;
|
24
|
+
source_app_id?: string | null;
|
25
|
+
user_id: string;
|
26
|
+
source: ClientFacingSource.Raw;
|
27
|
+
}
|
28
|
+
}
|
@@ -26,12 +26,13 @@ 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.ClientFacingSleepCycle = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const VitalSleepStage_1 = require("./VitalSleepStage");
|
32
|
-
const
|
33
|
-
const
|
34
|
-
|
32
|
+
const ClientFacingSleepCycleSourceProvider_1 = require("./ClientFacingSleepCycleSourceProvider");
|
33
|
+
const ClientFacingSleepCycleSourceType_1 = require("./ClientFacingSleepCycleSourceType");
|
34
|
+
const ClientFacingSource_1 = require("./ClientFacingSource");
|
35
|
+
exports.ClientFacingSleepCycle = core.serialization.object({
|
35
36
|
id: core.serialization.string(),
|
36
37
|
sleepId: core.serialization.property("sleep_id", core.serialization.string()),
|
37
38
|
sessionStart: core.serialization.property("session_start", core.serialization.date()),
|
@@ -40,7 +41,9 @@ exports.SleepCycle = core.serialization.object({
|
|
40
41
|
stageEndOffsetSecond: core.serialization.property("stage_end_offset_second", core.serialization.list(core.serialization.number())),
|
41
42
|
stageType: core.serialization.property("stage_type", core.serialization.list(VitalSleepStage_1.VitalSleepStage)),
|
42
43
|
timeZone: core.serialization.property("time_zone", core.serialization.string().optional()),
|
43
|
-
sourceProvider: core.serialization.property("source_provider",
|
44
|
-
sourceType: core.serialization.property("source_type",
|
44
|
+
sourceProvider: core.serialization.property("source_provider", ClientFacingSleepCycleSourceProvider_1.ClientFacingSleepCycleSourceProvider),
|
45
|
+
sourceType: core.serialization.property("source_type", ClientFacingSleepCycleSourceType_1.ClientFacingSleepCycleSourceType),
|
45
46
|
sourceAppId: core.serialization.property("source_app_id", core.serialization.string().optional()),
|
47
|
+
userId: core.serialization.property("user_id", core.serialization.string()),
|
48
|
+
source: ClientFacingSource_1.ClientFacingSource,
|
46
49
|
});
|
@@ -6,7 +6,7 @@ import * as Vital from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
7
7
|
import { Providers } from "./Providers";
|
8
8
|
import { Labs } from "./Labs";
|
9
|
-
export declare const
|
10
|
-
export declare namespace
|
9
|
+
export declare const ClientFacingSleepCycleSourceProvider: core.serialization.Schema<serializers.ClientFacingSleepCycleSourceProvider.Raw, Vital.ClientFacingSleepCycleSourceProvider>;
|
10
|
+
export declare namespace ClientFacingSleepCycleSourceProvider {
|
11
11
|
type Raw = Providers.Raw | Labs.Raw;
|
12
12
|
}
|
@@ -26,8 +26,8 @@ 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.ClientFacingSleepCycleSourceProvider = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const Providers_1 = require("./Providers");
|
32
32
|
const Labs_1 = require("./Labs");
|
33
|
-
exports.
|
33
|
+
exports.ClientFacingSleepCycleSourceProvider = core.serialization.undiscriminatedUnion([Providers_1.Providers, Labs_1.Labs]);
|
package/dist/serialization/types/{SleepCycleSourceType.d.ts → ClientFacingSleepCycleSourceType.d.ts}
RENAMED
@@ -4,7 +4,7 @@
|
|
4
4
|
import * as serializers from "../index";
|
5
5
|
import * as Vital from "../../api/index";
|
6
6
|
import * as core from "../../core";
|
7
|
-
export declare const
|
8
|
-
export declare namespace
|
7
|
+
export declare const ClientFacingSleepCycleSourceType: core.serialization.Schema<serializers.ClientFacingSleepCycleSourceType.Raw, Vital.ClientFacingSleepCycleSourceType>;
|
8
|
+
export declare namespace ClientFacingSleepCycleSourceType {
|
9
9
|
type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
|
10
10
|
}
|
@@ -26,9 +26,9 @@ 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.ClientFacingSleepCycleSourceType = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
exports.
|
31
|
+
exports.ClientFacingSleepCycleSourceType = core.serialization.enum_([
|
32
32
|
"unknown",
|
33
33
|
"phone",
|
34
34
|
"watch",
|
@@ -4,10 +4,10 @@
|
|
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 { ClientFacingSleepCycle } from "./ClientFacingSleepCycle";
|
8
8
|
export declare const ClientSleepCycleResponse: core.serialization.ObjectSchema<serializers.ClientSleepCycleResponse.Raw, Vital.ClientSleepCycleResponse>;
|
9
9
|
export declare namespace ClientSleepCycleResponse {
|
10
10
|
interface Raw {
|
11
|
-
sleep_cycle:
|
11
|
+
sleep_cycle: ClientFacingSleepCycle.Raw[];
|
12
12
|
}
|
13
13
|
}
|
@@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.ClientSleepCycleResponse = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
const
|
31
|
+
const ClientFacingSleepCycle_1 = require("./ClientFacingSleepCycle");
|
32
32
|
exports.ClientSleepCycleResponse = core.serialization.object({
|
33
|
-
sleepCycle: core.serialization.property("sleep_cycle", core.serialization.list(
|
33
|
+
sleepCycle: core.serialization.property("sleep_cycle", core.serialization.list(ClientFacingSleepCycle_1.ClientFacingSleepCycle)),
|
34
34
|
});
|
@@ -4,10 +4,9 @@
|
|
4
4
|
import * as serializers from "../index";
|
5
5
|
import * as Vital from "../../api/index";
|
6
6
|
import * as core from "../../core";
|
7
|
-
import { ValidationError } from "./ValidationError";
|
8
7
|
export declare const HttpValidationError: core.serialization.ObjectSchema<serializers.HttpValidationError.Raw, Vital.HttpValidationError>;
|
9
8
|
export declare namespace HttpValidationError {
|
10
9
|
interface Raw {
|
11
|
-
detail?:
|
10
|
+
detail?: unknown | null;
|
12
11
|
}
|
13
12
|
}
|
@@ -28,7 +28,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.HttpValidationError = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
const ValidationError_1 = require("./ValidationError");
|
32
31
|
exports.HttpValidationError = core.serialization.object({
|
33
|
-
detail: core.serialization.
|
32
|
+
detail: core.serialization.unknown().optional(),
|
34
33
|
});
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
7
7
|
export declare const Providers: core.serialization.Schema<serializers.Providers.Raw, Vital.Providers>;
|
8
8
|
export declare namespace Providers {
|
9
|
-
type Raw = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2";
|
9
|
+
type Raw = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2" | "map_my_fitness";
|
10
10
|
}
|
@@ -102,6 +102,9 @@ export * from "./ClientFacingRespiratoryRateTimeseries";
|
|
102
102
|
export * from "./ClientFacingResult";
|
103
103
|
export * from "./ClientFacingShipment";
|
104
104
|
export * from "./ClientFacingSleep";
|
105
|
+
export * from "./ClientFacingSleepCycleSourceProvider";
|
106
|
+
export * from "./ClientFacingSleepCycleSourceType";
|
107
|
+
export * from "./ClientFacingSleepCycle";
|
105
108
|
export * from "./ClientFacingSleepStream";
|
106
109
|
export * from "./ClientFacingSource";
|
107
110
|
export * from "./ClientFacingSport";
|
@@ -275,9 +278,6 @@ export * from "./SingleUserHistoricalPullResponse";
|
|
275
278
|
export * from "./SingleUserResourceResponse";
|
276
279
|
export * from "./SleepColumnExprSleep";
|
277
280
|
export * from "./SleepColumnExpr";
|
278
|
-
export * from "./SleepCycleSourceProvider";
|
279
|
-
export * from "./SleepCycleSourceType";
|
280
|
-
export * from "./SleepCycle";
|
281
281
|
export * from "./SleepScoreValueMacroExpr";
|
282
282
|
export * from "./SleepSummaryState";
|
283
283
|
export * from "./SleepType";
|
@@ -118,6 +118,9 @@ __exportStar(require("./ClientFacingRespiratoryRateTimeseries"), exports);
|
|
118
118
|
__exportStar(require("./ClientFacingResult"), exports);
|
119
119
|
__exportStar(require("./ClientFacingShipment"), exports);
|
120
120
|
__exportStar(require("./ClientFacingSleep"), exports);
|
121
|
+
__exportStar(require("./ClientFacingSleepCycleSourceProvider"), exports);
|
122
|
+
__exportStar(require("./ClientFacingSleepCycleSourceType"), exports);
|
123
|
+
__exportStar(require("./ClientFacingSleepCycle"), exports);
|
121
124
|
__exportStar(require("./ClientFacingSleepStream"), exports);
|
122
125
|
__exportStar(require("./ClientFacingSource"), exports);
|
123
126
|
__exportStar(require("./ClientFacingSport"), exports);
|
@@ -291,9 +294,6 @@ __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
|
|
291
294
|
__exportStar(require("./SingleUserResourceResponse"), exports);
|
292
295
|
__exportStar(require("./SleepColumnExprSleep"), exports);
|
293
296
|
__exportStar(require("./SleepColumnExpr"), exports);
|
294
|
-
__exportStar(require("./SleepCycleSourceProvider"), exports);
|
295
|
-
__exportStar(require("./SleepCycleSourceType"), exports);
|
296
|
-
__exportStar(require("./SleepCycle"), exports);
|
297
297
|
__exportStar(require("./SleepScoreValueMacroExpr"), exports);
|
298
298
|
__exportStar(require("./SleepSummaryState"), exports);
|
299
299
|
__exportStar(require("./SleepType"), 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.123";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
7
7
|
export declare const BodyColumnExprBody: core.serialization.Schema<serializers.BodyColumnExprBody.Raw, Vital.BodyColumnExprBody>;
|
8
8
|
export declare namespace BodyColumnExprBody {
|
9
|
-
type Raw = "measured_at" | "weight_kilogram" | "fat_mass_percentage" | "water_percentage" | "muscle_mass_percentage" | "visceral_fat_index" | "source_type" | "source_provider" | "source_app_id";
|
9
|
+
type Raw = "measured_at" | "weight_kilogram" | "fat_mass_percentage" | "water_percentage" | "muscle_mass_percentage" | "visceral_fat_index" | "bone_mass_percentage" | "source_type" | "source_provider" | "source_app_id";
|
10
10
|
}
|
@@ -39,5 +39,6 @@ exports.ClientFacingBody = core.serialization.object({
|
|
39
39
|
waterPercentage: core.serialization.property("water_percentage", core.serialization.number().optional()),
|
40
40
|
muscleMassPercentage: core.serialization.property("muscle_mass_percentage", core.serialization.number().optional()),
|
41
41
|
visceralFatIndex: core.serialization.property("visceral_fat_index", core.serialization.number().optional()),
|
42
|
+
boneMassPercentage: core.serialization.property("bone_mass_percentage", core.serialization.number().optional()),
|
42
43
|
source: ClientFacingSource_1.ClientFacingSource,
|
43
44
|
});
|
@@ -0,0 +1,28 @@
|
|
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
|
+
import { VitalSleepStage } from "./VitalSleepStage";
|
8
|
+
import { ClientFacingSleepCycleSourceProvider } from "./ClientFacingSleepCycleSourceProvider";
|
9
|
+
import { ClientFacingSleepCycleSourceType } from "./ClientFacingSleepCycleSourceType";
|
10
|
+
import { ClientFacingSource } from "./ClientFacingSource";
|
11
|
+
export declare const ClientFacingSleepCycle: core.serialization.ObjectSchema<serializers.ClientFacingSleepCycle.Raw, Vital.ClientFacingSleepCycle>;
|
12
|
+
export declare namespace ClientFacingSleepCycle {
|
13
|
+
interface Raw {
|
14
|
+
id: string;
|
15
|
+
sleep_id: string;
|
16
|
+
session_start: string;
|
17
|
+
session_end: string;
|
18
|
+
stage_start_offset_second: number[];
|
19
|
+
stage_end_offset_second: number[];
|
20
|
+
stage_type: VitalSleepStage.Raw[];
|
21
|
+
time_zone?: string | null;
|
22
|
+
source_provider: ClientFacingSleepCycleSourceProvider.Raw;
|
23
|
+
source_type: ClientFacingSleepCycleSourceType.Raw;
|
24
|
+
source_app_id?: string | null;
|
25
|
+
user_id: string;
|
26
|
+
source: ClientFacingSource.Raw;
|
27
|
+
}
|
28
|
+
}
|
@@ -26,12 +26,13 @@ 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.ClientFacingSleepCycle = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const VitalSleepStage_1 = require("./VitalSleepStage");
|
32
|
-
const
|
33
|
-
const
|
34
|
-
|
32
|
+
const ClientFacingSleepCycleSourceProvider_1 = require("./ClientFacingSleepCycleSourceProvider");
|
33
|
+
const ClientFacingSleepCycleSourceType_1 = require("./ClientFacingSleepCycleSourceType");
|
34
|
+
const ClientFacingSource_1 = require("./ClientFacingSource");
|
35
|
+
exports.ClientFacingSleepCycle = core.serialization.object({
|
35
36
|
id: core.serialization.string(),
|
36
37
|
sleepId: core.serialization.property("sleep_id", core.serialization.string()),
|
37
38
|
sessionStart: core.serialization.property("session_start", core.serialization.date()),
|
@@ -40,7 +41,9 @@ exports.SleepCycle = core.serialization.object({
|
|
40
41
|
stageEndOffsetSecond: core.serialization.property("stage_end_offset_second", core.serialization.list(core.serialization.number())),
|
41
42
|
stageType: core.serialization.property("stage_type", core.serialization.list(VitalSleepStage_1.VitalSleepStage)),
|
42
43
|
timeZone: core.serialization.property("time_zone", core.serialization.string().optional()),
|
43
|
-
sourceProvider: core.serialization.property("source_provider",
|
44
|
-
sourceType: core.serialization.property("source_type",
|
44
|
+
sourceProvider: core.serialization.property("source_provider", ClientFacingSleepCycleSourceProvider_1.ClientFacingSleepCycleSourceProvider),
|
45
|
+
sourceType: core.serialization.property("source_type", ClientFacingSleepCycleSourceType_1.ClientFacingSleepCycleSourceType),
|
45
46
|
sourceAppId: core.serialization.property("source_app_id", core.serialization.string().optional()),
|
47
|
+
userId: core.serialization.property("user_id", core.serialization.string()),
|
48
|
+
source: ClientFacingSource_1.ClientFacingSource,
|
46
49
|
});
|
@@ -6,7 +6,7 @@ import * as Vital from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
7
7
|
import { Providers } from "./Providers";
|
8
8
|
import { Labs } from "./Labs";
|
9
|
-
export declare const
|
10
|
-
export declare namespace
|
9
|
+
export declare const ClientFacingSleepCycleSourceProvider: core.serialization.Schema<serializers.ClientFacingSleepCycleSourceProvider.Raw, Vital.ClientFacingSleepCycleSourceProvider>;
|
10
|
+
export declare namespace ClientFacingSleepCycleSourceProvider {
|
11
11
|
type Raw = Providers.Raw | Labs.Raw;
|
12
12
|
}
|
package/serialization/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js}
RENAMED
@@ -26,8 +26,8 @@ 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.ClientFacingSleepCycleSourceProvider = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const Providers_1 = require("./Providers");
|
32
32
|
const Labs_1 = require("./Labs");
|
33
|
-
exports.
|
33
|
+
exports.ClientFacingSleepCycleSourceProvider = core.serialization.undiscriminatedUnion([Providers_1.Providers, Labs_1.Labs]);
|
package/serialization/types/{SleepCycleSourceType.d.ts → ClientFacingSleepCycleSourceType.d.ts}
RENAMED
@@ -4,7 +4,7 @@
|
|
4
4
|
import * as serializers from "../index";
|
5
5
|
import * as Vital from "../../api/index";
|
6
6
|
import * as core from "../../core";
|
7
|
-
export declare const
|
8
|
-
export declare namespace
|
7
|
+
export declare const ClientFacingSleepCycleSourceType: core.serialization.Schema<serializers.ClientFacingSleepCycleSourceType.Raw, Vital.ClientFacingSleepCycleSourceType>;
|
8
|
+
export declare namespace ClientFacingSleepCycleSourceType {
|
9
9
|
type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
|
10
10
|
}
|
@@ -26,9 +26,9 @@ 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.ClientFacingSleepCycleSourceType = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
exports.
|
31
|
+
exports.ClientFacingSleepCycleSourceType = core.serialization.enum_([
|
32
32
|
"unknown",
|
33
33
|
"phone",
|
34
34
|
"watch",
|
@@ -4,10 +4,10 @@
|
|
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 { ClientFacingSleepCycle } from "./ClientFacingSleepCycle";
|
8
8
|
export declare const ClientSleepCycleResponse: core.serialization.ObjectSchema<serializers.ClientSleepCycleResponse.Raw, Vital.ClientSleepCycleResponse>;
|
9
9
|
export declare namespace ClientSleepCycleResponse {
|
10
10
|
interface Raw {
|
11
|
-
sleep_cycle:
|
11
|
+
sleep_cycle: ClientFacingSleepCycle.Raw[];
|
12
12
|
}
|
13
13
|
}
|