@tryvital/vital-node 3.1.104 → 3.1.105
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 +39 -34
- 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/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.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.d.ts +42 -0
- package/api/resources/sleepCycle/client/Client.js +135 -0
- package/api/resources/sleepCycle/client/index.d.ts +1 -0
- package/api/resources/sleepCycle/client/index.js +17 -0
- package/api/resources/sleepCycle/client/requests/SleepCycleGetRequest.d.ts +17 -0
- package/api/resources/sleepCycle/client/requests/SleepCycleGetRequest.js +5 -0
- package/api/resources/sleepCycle/client/requests/index.d.ts +1 -0
- package/api/resources/sleepCycle/client/requests/index.js +2 -0
- package/api/resources/sleepCycle/index.d.ts +1 -0
- package/api/resources/sleepCycle/index.js +17 -0
- 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/ClientSleepCycleResponse.d.ts +7 -0
- package/api/types/ClientSleepCycleResponse.js +5 -0
- package/api/types/Labs.d.ts +2 -1
- package/api/types/Labs.js +1 -0
- package/api/types/SleepCycle.d.ts +17 -0
- package/api/types/SleepCycle.js +5 -0
- package/api/types/SleepCycleSourceProvider.d.ts +5 -0
- package/api/types/SleepCycleSourceProvider.js +5 -0
- package/api/types/SleepCycleSourceType.d.ts +19 -0
- package/api/types/SleepCycleSourceType.js +21 -0
- package/api/types/VitalSleepStage.d.ts +4 -0
- package/api/types/VitalSleepStage.js +5 -0
- package/api/types/index.d.ts +5 -0
- package/api/types/index.js +5 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +39 -34
- 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/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.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.d.ts +42 -0
- package/dist/api/resources/sleepCycle/client/Client.js +135 -0
- package/dist/api/resources/sleepCycle/client/index.d.ts +1 -0
- package/dist/api/resources/sleepCycle/client/index.js +17 -0
- package/dist/api/resources/sleepCycle/client/requests/SleepCycleGetRequest.d.ts +17 -0
- package/dist/api/resources/sleepCycle/client/requests/SleepCycleGetRequest.js +5 -0
- package/dist/api/resources/sleepCycle/client/requests/index.d.ts +1 -0
- package/dist/api/resources/sleepCycle/client/requests/index.js +2 -0
- package/dist/api/resources/sleepCycle/index.d.ts +1 -0
- package/dist/api/resources/sleepCycle/index.js +17 -0
- 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/ClientSleepCycleResponse.d.ts +7 -0
- package/dist/api/types/ClientSleepCycleResponse.js +5 -0
- package/dist/api/types/Labs.d.ts +2 -1
- package/dist/api/types/Labs.js +1 -0
- package/dist/api/types/SleepCycle.d.ts +17 -0
- package/dist/api/types/SleepCycle.js +5 -0
- package/dist/api/types/SleepCycleSourceProvider.d.ts +5 -0
- package/dist/api/types/SleepCycleSourceProvider.js +5 -0
- package/dist/api/types/SleepCycleSourceType.d.ts +19 -0
- package/dist/api/types/SleepCycleSourceType.js +21 -0
- package/dist/api/types/VitalSleepStage.d.ts +4 -0
- package/dist/api/types/VitalSleepStage.js +5 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/index.js +5 -0
- package/dist/serialization/types/ClientSleepCycleResponse.d.ts +13 -0
- package/dist/serialization/types/ClientSleepCycleResponse.js +34 -0
- package/dist/serialization/types/Labs.d.ts +1 -1
- package/dist/serialization/types/Labs.js +1 -0
- package/dist/serialization/types/SleepCycle.d.ts +25 -0
- package/dist/serialization/types/SleepCycle.js +46 -0
- package/dist/serialization/types/SleepCycleSourceProvider.d.ts +12 -0
- package/dist/serialization/types/SleepCycleSourceProvider.js +33 -0
- package/dist/serialization/types/SleepCycleSourceType.d.ts +10 -0
- package/dist/serialization/types/SleepCycleSourceType.js +45 -0
- package/dist/serialization/types/VitalSleepStage.d.ts +10 -0
- package/dist/serialization/types/VitalSleepStage.js +31 -0
- package/dist/serialization/types/index.d.ts +5 -0
- package/dist/serialization/types/index.js +5 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +75 -0
- package/serialization/types/ClientSleepCycleResponse.d.ts +13 -0
- package/serialization/types/ClientSleepCycleResponse.js +34 -0
- package/serialization/types/Labs.d.ts +1 -1
- package/serialization/types/Labs.js +1 -0
- package/serialization/types/SleepCycle.d.ts +25 -0
- package/serialization/types/SleepCycle.js +46 -0
- package/serialization/types/SleepCycleSourceProvider.d.ts +12 -0
- package/serialization/types/SleepCycleSourceProvider.js +33 -0
- package/serialization/types/SleepCycleSourceType.d.ts +10 -0
- package/serialization/types/SleepCycleSourceType.js +45 -0
- package/serialization/types/VitalSleepStage.d.ts +10 -0
- package/serialization/types/VitalSleepStage.js +31 -0
- package/serialization/types/index.d.ts +5 -0
- package/serialization/types/index.js +5 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/dist/api/types/Labs.d.ts
CHANGED
@@ -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 Labs = "ayumetrix" | "spiriplex" | "ussl" | "quest" | "labcorp" | "bioreference" | "us_biotek" | "manual" | "sanocardio";
|
4
|
+
export declare type Labs = "ayumetrix" | "spiriplex" | "ussl" | "quest" | "labcorp" | "bioreference" | "us_biotek" | "manual" | "sanocardio" | "ihd";
|
5
5
|
export declare const Labs: {
|
6
6
|
readonly Ayumetrix: "ayumetrix";
|
7
7
|
readonly Spiriplex: "spiriplex";
|
@@ -12,4 +12,5 @@ export declare const Labs: {
|
|
12
12
|
readonly UsBiotek: "us_biotek";
|
13
13
|
readonly Manual: "manual";
|
14
14
|
readonly Sanocardio: "sanocardio";
|
15
|
+
readonly Ihd: "ihd";
|
15
16
|
};
|
package/dist/api/types/Labs.js
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../index";
|
5
|
+
export interface SleepCycle {
|
6
|
+
id: string;
|
7
|
+
sleepId: string;
|
8
|
+
sessionStart: Date;
|
9
|
+
sessionEnd: Date;
|
10
|
+
stageStartOffsetSecond: number[];
|
11
|
+
stageEndOffsetSecond: number[];
|
12
|
+
stageType: Vital.VitalSleepStage[];
|
13
|
+
timeZone?: string;
|
14
|
+
sourceProvider: Vital.SleepCycleSourceProvider;
|
15
|
+
sourceType: Vital.SleepCycleSourceType;
|
16
|
+
sourceAppId?: string;
|
17
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type SleepCycleSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
|
5
|
+
export declare const SleepCycleSourceType: {
|
6
|
+
readonly Unknown: "unknown";
|
7
|
+
readonly Phone: "phone";
|
8
|
+
readonly Watch: "watch";
|
9
|
+
readonly App: "app";
|
10
|
+
readonly MultipleSources: "multiple_sources";
|
11
|
+
readonly Fingerprick: "fingerprick";
|
12
|
+
readonly Cuff: "cuff";
|
13
|
+
readonly ManualScan: "manual_scan";
|
14
|
+
readonly Automatic: "automatic";
|
15
|
+
readonly Scale: "scale";
|
16
|
+
readonly ChestStrap: "chest_strap";
|
17
|
+
readonly Ring: "ring";
|
18
|
+
readonly Lab: "lab";
|
19
|
+
};
|
@@ -0,0 +1,21 @@
|
|
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.SleepCycleSourceType = void 0;
|
7
|
+
exports.SleepCycleSourceType = {
|
8
|
+
Unknown: "unknown",
|
9
|
+
Phone: "phone",
|
10
|
+
Watch: "watch",
|
11
|
+
App: "app",
|
12
|
+
MultipleSources: "multiple_sources",
|
13
|
+
Fingerprick: "fingerprick",
|
14
|
+
Cuff: "cuff",
|
15
|
+
ManualScan: "manual_scan",
|
16
|
+
Automatic: "automatic",
|
17
|
+
Scale: "scale",
|
18
|
+
ChestStrap: "chest_strap",
|
19
|
+
Ring: "ring",
|
20
|
+
Lab: "lab",
|
21
|
+
};
|
@@ -136,6 +136,7 @@ export * from "./ClientFacingWaterTimeseries";
|
|
136
136
|
export * from "./ClientFacingWorkout";
|
137
137
|
export * from "./ClientFacingWorkoutDurationSampleIntensity";
|
138
138
|
export * from "./ClientFacingWorkoutDurationSample";
|
139
|
+
export * from "./ClientSleepCycleResponse";
|
139
140
|
export * from "./ClientSleepResponse";
|
140
141
|
export * from "./ClientUserIdConflict";
|
141
142
|
export * from "./ClientWorkoutResponse";
|
@@ -275,6 +276,9 @@ export * from "./SingleUserHistoricalPullResponse";
|
|
275
276
|
export * from "./SingleUserResourceResponse";
|
276
277
|
export * from "./SleepColumnExprSleep";
|
277
278
|
export * from "./SleepColumnExpr";
|
279
|
+
export * from "./SleepCycleSourceProvider";
|
280
|
+
export * from "./SleepCycleSourceType";
|
281
|
+
export * from "./SleepCycle";
|
278
282
|
export * from "./SleepScoreValueMacroExpr";
|
279
283
|
export * from "./SleepSummaryState";
|
280
284
|
export * from "./SleepType";
|
@@ -299,6 +303,7 @@ export * from "./UserSignInTokenResponse";
|
|
299
303
|
export * from "./UserSuccessResponse";
|
300
304
|
export * from "./ValidationErrorLocItem";
|
301
305
|
export * from "./ValidationError";
|
306
|
+
export * from "./VitalSleepStage";
|
302
307
|
export * from "./VitalTokenCreatedResponse";
|
303
308
|
export * from "./Vitamins";
|
304
309
|
export * from "./WorkoutColumnExprWorkout";
|
package/dist/api/types/index.js
CHANGED
@@ -152,6 +152,7 @@ __exportStar(require("./ClientFacingWaterTimeseries"), exports);
|
|
152
152
|
__exportStar(require("./ClientFacingWorkout"), exports);
|
153
153
|
__exportStar(require("./ClientFacingWorkoutDurationSampleIntensity"), exports);
|
154
154
|
__exportStar(require("./ClientFacingWorkoutDurationSample"), exports);
|
155
|
+
__exportStar(require("./ClientSleepCycleResponse"), exports);
|
155
156
|
__exportStar(require("./ClientSleepResponse"), exports);
|
156
157
|
__exportStar(require("./ClientUserIdConflict"), exports);
|
157
158
|
__exportStar(require("./ClientWorkoutResponse"), exports);
|
@@ -291,6 +292,9 @@ __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
|
|
291
292
|
__exportStar(require("./SingleUserResourceResponse"), exports);
|
292
293
|
__exportStar(require("./SleepColumnExprSleep"), exports);
|
293
294
|
__exportStar(require("./SleepColumnExpr"), exports);
|
295
|
+
__exportStar(require("./SleepCycleSourceProvider"), exports);
|
296
|
+
__exportStar(require("./SleepCycleSourceType"), exports);
|
297
|
+
__exportStar(require("./SleepCycle"), exports);
|
294
298
|
__exportStar(require("./SleepScoreValueMacroExpr"), exports);
|
295
299
|
__exportStar(require("./SleepSummaryState"), exports);
|
296
300
|
__exportStar(require("./SleepType"), exports);
|
@@ -315,6 +319,7 @@ __exportStar(require("./UserSignInTokenResponse"), exports);
|
|
315
319
|
__exportStar(require("./UserSuccessResponse"), exports);
|
316
320
|
__exportStar(require("./ValidationErrorLocItem"), exports);
|
317
321
|
__exportStar(require("./ValidationError"), exports);
|
322
|
+
__exportStar(require("./VitalSleepStage"), exports);
|
318
323
|
__exportStar(require("./VitalTokenCreatedResponse"), exports);
|
319
324
|
__exportStar(require("./Vitamins"), exports);
|
320
325
|
__exportStar(require("./WorkoutColumnExprWorkout"), exports);
|
@@ -0,0 +1,13 @@
|
|
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 { SleepCycle } from "./SleepCycle";
|
8
|
+
export declare const ClientSleepCycleResponse: core.serialization.ObjectSchema<serializers.ClientSleepCycleResponse.Raw, Vital.ClientSleepCycleResponse>;
|
9
|
+
export declare namespace ClientSleepCycleResponse {
|
10
|
+
interface Raw {
|
11
|
+
sleep_cycle: SleepCycle.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.ClientSleepCycleResponse = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
const SleepCycle_1 = require("./SleepCycle");
|
32
|
+
exports.ClientSleepCycleResponse = core.serialization.object({
|
33
|
+
sleepCycle: core.serialization.property("sleep_cycle", core.serialization.list(SleepCycle_1.SleepCycle)),
|
34
|
+
});
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
7
7
|
export declare const Labs: core.serialization.Schema<serializers.Labs.Raw, Vital.Labs>;
|
8
8
|
export declare namespace Labs {
|
9
|
-
type Raw = "ayumetrix" | "spiriplex" | "ussl" | "quest" | "labcorp" | "bioreference" | "us_biotek" | "manual" | "sanocardio";
|
9
|
+
type Raw = "ayumetrix" | "spiriplex" | "ussl" | "quest" | "labcorp" | "bioreference" | "us_biotek" | "manual" | "sanocardio" | "ihd";
|
10
10
|
}
|
@@ -0,0 +1,25 @@
|
|
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 { SleepCycleSourceProvider } from "./SleepCycleSourceProvider";
|
9
|
+
import { SleepCycleSourceType } from "./SleepCycleSourceType";
|
10
|
+
export declare const SleepCycle: core.serialization.ObjectSchema<serializers.SleepCycle.Raw, Vital.SleepCycle>;
|
11
|
+
export declare namespace SleepCycle {
|
12
|
+
interface Raw {
|
13
|
+
id: string;
|
14
|
+
sleep_id: string;
|
15
|
+
session_start: string;
|
16
|
+
session_end: string;
|
17
|
+
stage_start_offset_second: number[];
|
18
|
+
stage_end_offset_second: number[];
|
19
|
+
stage_type: VitalSleepStage.Raw[];
|
20
|
+
time_zone?: string | null;
|
21
|
+
source_provider: SleepCycleSourceProvider.Raw;
|
22
|
+
source_type: SleepCycleSourceType.Raw;
|
23
|
+
source_app_id?: string | null;
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,46 @@
|
|
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.SleepCycle = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
const VitalSleepStage_1 = require("./VitalSleepStage");
|
32
|
+
const SleepCycleSourceProvider_1 = require("./SleepCycleSourceProvider");
|
33
|
+
const SleepCycleSourceType_1 = require("./SleepCycleSourceType");
|
34
|
+
exports.SleepCycle = core.serialization.object({
|
35
|
+
id: core.serialization.string(),
|
36
|
+
sleepId: core.serialization.property("sleep_id", core.serialization.string()),
|
37
|
+
sessionStart: core.serialization.property("session_start", core.serialization.date()),
|
38
|
+
sessionEnd: core.serialization.property("session_end", core.serialization.date()),
|
39
|
+
stageStartOffsetSecond: core.serialization.property("stage_start_offset_second", core.serialization.list(core.serialization.number())),
|
40
|
+
stageEndOffsetSecond: core.serialization.property("stage_end_offset_second", core.serialization.list(core.serialization.number())),
|
41
|
+
stageType: core.serialization.property("stage_type", core.serialization.list(VitalSleepStage_1.VitalSleepStage)),
|
42
|
+
timeZone: core.serialization.property("time_zone", core.serialization.string().optional()),
|
43
|
+
sourceProvider: core.serialization.property("source_provider", SleepCycleSourceProvider_1.SleepCycleSourceProvider),
|
44
|
+
sourceType: core.serialization.property("source_type", SleepCycleSourceType_1.SleepCycleSourceType),
|
45
|
+
sourceAppId: core.serialization.property("source_app_id", core.serialization.string().optional()),
|
46
|
+
});
|
@@ -0,0 +1,12 @@
|
|
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 { Providers } from "./Providers";
|
8
|
+
import { Labs } from "./Labs";
|
9
|
+
export declare const SleepCycleSourceProvider: core.serialization.Schema<serializers.SleepCycleSourceProvider.Raw, Vital.SleepCycleSourceProvider>;
|
10
|
+
export declare namespace SleepCycleSourceProvider {
|
11
|
+
type Raw = Providers.Raw | Labs.Raw;
|
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.SleepCycleSourceProvider = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
const Providers_1 = require("./Providers");
|
32
|
+
const Labs_1 = require("./Labs");
|
33
|
+
exports.SleepCycleSourceProvider = core.serialization.undiscriminatedUnion([Providers_1.Providers, Labs_1.Labs]);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Vital from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const SleepCycleSourceType: core.serialization.Schema<serializers.SleepCycleSourceType.Raw, Vital.SleepCycleSourceType>;
|
8
|
+
export declare namespace SleepCycleSourceType {
|
9
|
+
type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
|
10
|
+
}
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.SleepCycleSourceType = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.SleepCycleSourceType = core.serialization.enum_([
|
32
|
+
"unknown",
|
33
|
+
"phone",
|
34
|
+
"watch",
|
35
|
+
"app",
|
36
|
+
"multiple_sources",
|
37
|
+
"fingerprick",
|
38
|
+
"cuff",
|
39
|
+
"manual_scan",
|
40
|
+
"automatic",
|
41
|
+
"scale",
|
42
|
+
"chest_strap",
|
43
|
+
"ring",
|
44
|
+
"lab",
|
45
|
+
]);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Vital from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const VitalSleepStage: core.serialization.Schema<serializers.VitalSleepStage.Raw, Vital.VitalSleepStage>;
|
8
|
+
export declare namespace VitalSleepStage {
|
9
|
+
type Raw = number;
|
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.VitalSleepStage = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.VitalSleepStage = core.serialization.number();
|
@@ -136,6 +136,7 @@ export * from "./ClientFacingWaterTimeseries";
|
|
136
136
|
export * from "./ClientFacingWorkout";
|
137
137
|
export * from "./ClientFacingWorkoutDurationSampleIntensity";
|
138
138
|
export * from "./ClientFacingWorkoutDurationSample";
|
139
|
+
export * from "./ClientSleepCycleResponse";
|
139
140
|
export * from "./ClientSleepResponse";
|
140
141
|
export * from "./ClientUserIdConflict";
|
141
142
|
export * from "./ClientWorkoutResponse";
|
@@ -275,6 +276,9 @@ export * from "./SingleUserHistoricalPullResponse";
|
|
275
276
|
export * from "./SingleUserResourceResponse";
|
276
277
|
export * from "./SleepColumnExprSleep";
|
277
278
|
export * from "./SleepColumnExpr";
|
279
|
+
export * from "./SleepCycleSourceProvider";
|
280
|
+
export * from "./SleepCycleSourceType";
|
281
|
+
export * from "./SleepCycle";
|
278
282
|
export * from "./SleepScoreValueMacroExpr";
|
279
283
|
export * from "./SleepSummaryState";
|
280
284
|
export * from "./SleepType";
|
@@ -299,6 +303,7 @@ export * from "./UserSignInTokenResponse";
|
|
299
303
|
export * from "./UserSuccessResponse";
|
300
304
|
export * from "./ValidationErrorLocItem";
|
301
305
|
export * from "./ValidationError";
|
306
|
+
export * from "./VitalSleepStage";
|
302
307
|
export * from "./VitalTokenCreatedResponse";
|
303
308
|
export * from "./Vitamins";
|
304
309
|
export * from "./WorkoutColumnExprWorkout";
|
@@ -152,6 +152,7 @@ __exportStar(require("./ClientFacingWaterTimeseries"), exports);
|
|
152
152
|
__exportStar(require("./ClientFacingWorkout"), exports);
|
153
153
|
__exportStar(require("./ClientFacingWorkoutDurationSampleIntensity"), exports);
|
154
154
|
__exportStar(require("./ClientFacingWorkoutDurationSample"), exports);
|
155
|
+
__exportStar(require("./ClientSleepCycleResponse"), exports);
|
155
156
|
__exportStar(require("./ClientSleepResponse"), exports);
|
156
157
|
__exportStar(require("./ClientUserIdConflict"), exports);
|
157
158
|
__exportStar(require("./ClientWorkoutResponse"), exports);
|
@@ -291,6 +292,9 @@ __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
|
|
291
292
|
__exportStar(require("./SingleUserResourceResponse"), exports);
|
292
293
|
__exportStar(require("./SleepColumnExprSleep"), exports);
|
293
294
|
__exportStar(require("./SleepColumnExpr"), exports);
|
295
|
+
__exportStar(require("./SleepCycleSourceProvider"), exports);
|
296
|
+
__exportStar(require("./SleepCycleSourceType"), exports);
|
297
|
+
__exportStar(require("./SleepCycle"), exports);
|
294
298
|
__exportStar(require("./SleepScoreValueMacroExpr"), exports);
|
295
299
|
__exportStar(require("./SleepSummaryState"), exports);
|
296
300
|
__exportStar(require("./SleepType"), exports);
|
@@ -315,6 +319,7 @@ __exportStar(require("./UserSignInTokenResponse"), exports);
|
|
315
319
|
__exportStar(require("./UserSuccessResponse"), exports);
|
316
320
|
__exportStar(require("./ValidationErrorLocItem"), exports);
|
317
321
|
__exportStar(require("./ValidationError"), exports);
|
322
|
+
__exportStar(require("./VitalSleepStage"), exports);
|
318
323
|
__exportStar(require("./VitalTokenCreatedResponse"), exports);
|
319
324
|
__exportStar(require("./Vitamins"), exports);
|
320
325
|
__exportStar(require("./WorkoutColumnExprWorkout"), 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.105";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
@@ -931,6 +931,81 @@ await client.link.connectDemoProvider({
|
|
931
931
|
</dl>
|
932
932
|
</details>
|
933
933
|
|
934
|
+
## SleepCycle
|
935
|
+
|
936
|
+
<details><summary><code>client.sleepCycle.<a href="/src/api/resources/sleepCycle/client/Client.ts">get</a>(userId, { ...params }) -> Vital.ClientSleepCycleResponse</code></summary>
|
937
|
+
<dl>
|
938
|
+
<dd>
|
939
|
+
|
940
|
+
#### 📝 Description
|
941
|
+
|
942
|
+
<dl>
|
943
|
+
<dd>
|
944
|
+
|
945
|
+
<dl>
|
946
|
+
<dd>
|
947
|
+
|
948
|
+
Get Daily sleep cycle for user_id
|
949
|
+
|
950
|
+
</dd>
|
951
|
+
</dl>
|
952
|
+
</dd>
|
953
|
+
</dl>
|
954
|
+
|
955
|
+
#### 🔌 Usage
|
956
|
+
|
957
|
+
<dl>
|
958
|
+
<dd>
|
959
|
+
|
960
|
+
<dl>
|
961
|
+
<dd>
|
962
|
+
|
963
|
+
```typescript
|
964
|
+
await client.sleepCycle.get("user_id", {
|
965
|
+
startDate: "start_date",
|
966
|
+
});
|
967
|
+
```
|
968
|
+
|
969
|
+
</dd>
|
970
|
+
</dl>
|
971
|
+
</dd>
|
972
|
+
</dl>
|
973
|
+
|
974
|
+
#### ⚙️ Parameters
|
975
|
+
|
976
|
+
<dl>
|
977
|
+
<dd>
|
978
|
+
|
979
|
+
<dl>
|
980
|
+
<dd>
|
981
|
+
|
982
|
+
**userId:** `string`
|
983
|
+
|
984
|
+
</dd>
|
985
|
+
</dl>
|
986
|
+
|
987
|
+
<dl>
|
988
|
+
<dd>
|
989
|
+
|
990
|
+
**request:** `Vital.SleepCycleGetRequest`
|
991
|
+
|
992
|
+
</dd>
|
993
|
+
</dl>
|
994
|
+
|
995
|
+
<dl>
|
996
|
+
<dd>
|
997
|
+
|
998
|
+
**requestOptions:** `SleepCycle.RequestOptions`
|
999
|
+
|
1000
|
+
</dd>
|
1001
|
+
</dl>
|
1002
|
+
</dd>
|
1003
|
+
</dl>
|
1004
|
+
|
1005
|
+
</dd>
|
1006
|
+
</dl>
|
1007
|
+
</details>
|
1008
|
+
|
934
1009
|
## Profile
|
935
1010
|
|
936
1011
|
<details><summary><code>client.profile.<a href="/src/api/resources/profile/client/Client.ts">get</a>(userId, { ...params }) -> Vital.ClientFacingProfile</code></summary>
|
@@ -0,0 +1,13 @@
|
|
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 { SleepCycle } from "./SleepCycle";
|
8
|
+
export declare const ClientSleepCycleResponse: core.serialization.ObjectSchema<serializers.ClientSleepCycleResponse.Raw, Vital.ClientSleepCycleResponse>;
|
9
|
+
export declare namespace ClientSleepCycleResponse {
|
10
|
+
interface Raw {
|
11
|
+
sleep_cycle: SleepCycle.Raw[];
|
12
|
+
}
|
13
|
+
}
|