@tryvital/vital-node 3.1.518 → 3.1.520
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 +3 -3
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/electrocardiogram/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +3 -3
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labReport/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.js +42 -42
- package/api/resources/link/client/Client.js +19 -19
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/order/client/Client.js +1 -1
- package/api/resources/payor/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 +3 -3
- 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 +19 -19
- package/api/resources/vitals/client/Client.js +78 -78
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/AggregateExprArg.d.ts +1 -1
- package/api/types/IndexColumnExprIndex.d.ts +2 -1
- package/api/types/IndexColumnExprIndex.js +1 -0
- package/api/types/ProfileColumnExpr.d.ts +8 -0
- package/api/types/ProfileColumnExpr.js +5 -0
- package/api/types/ProfileColumnExprProfile.d.ts +20 -0
- package/api/types/ProfileColumnExprProfile.js +19 -0
- package/api/types/QueryGroupByItem.d.ts +1 -1
- package/api/types/QuerySelectItem.d.ts +1 -1
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +3 -3
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +3 -3
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labReport/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.js +42 -42
- package/dist/api/resources/link/client/Client.js +19 -19
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
- package/dist/api/resources/order/client/Client.js +1 -1
- package/dist/api/resources/payor/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 +3 -3
- 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 +19 -19
- package/dist/api/resources/vitals/client/Client.js +78 -78
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/AggregateExprArg.d.ts +1 -1
- package/dist/api/types/IndexColumnExprIndex.d.ts +2 -1
- package/dist/api/types/IndexColumnExprIndex.js +1 -0
- package/dist/api/types/ProfileColumnExpr.d.ts +8 -0
- package/dist/api/types/ProfileColumnExpr.js +5 -0
- package/dist/api/types/ProfileColumnExprProfile.d.ts +20 -0
- package/dist/api/types/ProfileColumnExprProfile.js +19 -0
- package/dist/api/types/QueryGroupByItem.d.ts +1 -1
- package/dist/api/types/QuerySelectItem.d.ts +1 -1
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/types/AggregateExprArg.d.ts +2 -1
- package/dist/serialization/types/AggregateExprArg.js +2 -0
- package/dist/serialization/types/IndexColumnExprIndex.d.ts +1 -1
- package/dist/serialization/types/IndexColumnExprIndex.js +1 -1
- package/dist/serialization/types/ProfileColumnExpr.d.ts +13 -0
- package/dist/serialization/types/ProfileColumnExpr.js +34 -0
- package/dist/serialization/types/ProfileColumnExprProfile.d.ts +10 -0
- package/dist/serialization/types/ProfileColumnExprProfile.js +43 -0
- package/dist/serialization/types/QueryGroupByItem.d.ts +2 -1
- package/dist/serialization/types/QueryGroupByItem.js +2 -0
- package/dist/serialization/types/QuerySelectItem.d.ts +2 -1
- package/dist/serialization/types/QuerySelectItem.js +2 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/AggregateExprArg.d.ts +2 -1
- package/serialization/types/AggregateExprArg.js +2 -0
- package/serialization/types/IndexColumnExprIndex.d.ts +1 -1
- package/serialization/types/IndexColumnExprIndex.js +1 -1
- package/serialization/types/ProfileColumnExpr.d.ts +13 -0
- package/serialization/types/ProfileColumnExpr.js +34 -0
- package/serialization/types/ProfileColumnExprProfile.d.ts +10 -0
- package/serialization/types/ProfileColumnExprProfile.js +43 -0
- package/serialization/types/QueryGroupByItem.d.ts +2 -1
- package/serialization/types/QueryGroupByItem.js +2 -0
- package/serialization/types/QuerySelectItem.d.ts +2 -1
- package/serialization/types/QuerySelectItem.js +2 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -78,7 +78,7 @@ class Workouts {
|
|
|
78
78
|
const _response = yield core.fetcher({
|
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}`),
|
|
80
80
|
method: "GET",
|
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.520", "User-Agent": "@tryvital/vital-node/3.1.520", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
queryParameters: _queryParams,
|
|
84
84
|
requestType: "json",
|
|
@@ -154,7 +154,7 @@ class Workouts {
|
|
|
154
154
|
const _response = yield core.fetcher({
|
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}/raw`),
|
|
156
156
|
method: "GET",
|
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.520", "User-Agent": "@tryvital/vital-node/3.1.520", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
158
158
|
contentType: "application/json",
|
|
159
159
|
queryParameters: _queryParams,
|
|
160
160
|
requestType: "json",
|
|
@@ -217,7 +217,7 @@ class Workouts {
|
|
|
217
217
|
const _response = yield core.fetcher({
|
|
218
218
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/workouts/${encodeURIComponent(workoutId)}/stream`),
|
|
219
219
|
method: "GET",
|
|
220
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
220
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.520", "User-Agent": "@tryvital/vital-node/3.1.520", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
221
221
|
contentType: "application/json",
|
|
222
222
|
requestType: "json",
|
|
223
223
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -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 AggregateExprArg = Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.MealColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.AsleepAtValueMacroExpr | Vital.AwakeAtValueMacroExpr | Vital.UnrecognizedValueMacroExpr | Vital.DiscreteTimeseriesExpr | Vital.IntervalTimeseriesExpr | Vital.BloodPressureTimeseriesExpr | Vital.TemperatureTimeseriesExpr | Vital.WorkoutDurationTimeseriesExpr | Vital.NoteTimeseriesExpr | Vital.IndexColumnExpr;
|
|
5
|
+
export declare type AggregateExprArg = Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.MealColumnExpr | Vital.ProfileColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.AsleepAtValueMacroExpr | Vital.AwakeAtValueMacroExpr | Vital.UnrecognizedValueMacroExpr | Vital.DiscreteTimeseriesExpr | Vital.IntervalTimeseriesExpr | Vital.BloodPressureTimeseriesExpr | Vital.TemperatureTimeseriesExpr | Vital.WorkoutDurationTimeseriesExpr | Vital.NoteTimeseriesExpr | Vital.IndexColumnExpr;
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* ℹ️ This enum is non-exhaustive.
|
|
6
6
|
*/
|
|
7
|
-
export declare type IndexColumnExprIndex = "sleep" | "activity" | "workout" | "body" | "meal" | "timeseries";
|
|
7
|
+
export declare type IndexColumnExprIndex = "sleep" | "activity" | "workout" | "body" | "meal" | "profile" | "timeseries";
|
|
8
8
|
export declare const IndexColumnExprIndex: {
|
|
9
9
|
readonly Sleep: "sleep";
|
|
10
10
|
readonly Activity: "activity";
|
|
11
11
|
readonly Workout: "workout";
|
|
12
12
|
readonly Body: "body";
|
|
13
13
|
readonly Meal: "meal";
|
|
14
|
+
readonly Profile: "profile";
|
|
14
15
|
readonly Timeseries: "timeseries";
|
|
15
16
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* ℹ️ This enum is non-exhaustive.
|
|
6
|
+
*/
|
|
7
|
+
export declare type ProfileColumnExprProfile = "height_centimeter" | "birth_date" | "wheelchair_use" | "gender" | "sex" | "source_type" | "source_provider" | "source_app_id" | "source_device_id" | "created_at" | "updated_at";
|
|
8
|
+
export declare const ProfileColumnExprProfile: {
|
|
9
|
+
readonly HeightCentimeter: "height_centimeter";
|
|
10
|
+
readonly BirthDate: "birth_date";
|
|
11
|
+
readonly WheelchairUse: "wheelchair_use";
|
|
12
|
+
readonly Gender: "gender";
|
|
13
|
+
readonly Sex: "sex";
|
|
14
|
+
readonly SourceType: "source_type";
|
|
15
|
+
readonly SourceProvider: "source_provider";
|
|
16
|
+
readonly SourceAppId: "source_app_id";
|
|
17
|
+
readonly SourceDeviceId: "source_device_id";
|
|
18
|
+
readonly CreatedAt: "created_at";
|
|
19
|
+
readonly UpdatedAt: "updated_at";
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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.ProfileColumnExprProfile = void 0;
|
|
7
|
+
exports.ProfileColumnExprProfile = {
|
|
8
|
+
HeightCentimeter: "height_centimeter",
|
|
9
|
+
BirthDate: "birth_date",
|
|
10
|
+
WheelchairUse: "wheelchair_use",
|
|
11
|
+
Gender: "gender",
|
|
12
|
+
Sex: "sex",
|
|
13
|
+
SourceType: "source_type",
|
|
14
|
+
SourceProvider: "source_provider",
|
|
15
|
+
SourceAppId: "source_app_id",
|
|
16
|
+
SourceDeviceId: "source_device_id",
|
|
17
|
+
CreatedAt: "created_at",
|
|
18
|
+
UpdatedAt: "updated_at",
|
|
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 QueryGroupByItem = Vital.DateTruncExpr | Vital.DatePartExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.MealColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.AsleepAtValueMacroExpr | Vital.AwakeAtValueMacroExpr | Vital.UnrecognizedValueMacroExpr | Vital.DiscreteTimeseriesExpr | Vital.IntervalTimeseriesExpr | Vital.BloodPressureTimeseriesExpr | Vital.TemperatureTimeseriesExpr | Vital.WorkoutDurationTimeseriesExpr | Vital.NoteTimeseriesExpr | Vital.SourceColumnExpr;
|
|
5
|
+
export declare type QueryGroupByItem = Vital.DateTruncExpr | Vital.DatePartExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.MealColumnExpr | Vital.ProfileColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.AsleepAtValueMacroExpr | Vital.AwakeAtValueMacroExpr | Vital.UnrecognizedValueMacroExpr | Vital.DiscreteTimeseriesExpr | Vital.IntervalTimeseriesExpr | Vital.BloodPressureTimeseriesExpr | Vital.TemperatureTimeseriesExpr | Vital.WorkoutDurationTimeseriesExpr | Vital.NoteTimeseriesExpr | Vital.SourceColumnExpr;
|
|
@@ -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 QuerySelectItem = Vital.AggregateExpr | Vital.GroupKeyColumnExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.MealColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.AsleepAtValueMacroExpr | Vital.AwakeAtValueMacroExpr | Vital.UnrecognizedValueMacroExpr | Vital.DiscreteTimeseriesExpr | Vital.IntervalTimeseriesExpr | Vital.BloodPressureTimeseriesExpr | Vital.TemperatureTimeseriesExpr | Vital.WorkoutDurationTimeseriesExpr | Vital.NoteTimeseriesExpr | Vital.IndexColumnExpr | Vital.SourceColumnExpr;
|
|
5
|
+
export declare type QuerySelectItem = Vital.AggregateExpr | Vital.GroupKeyColumnExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.MealColumnExpr | Vital.ProfileColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.AsleepAtValueMacroExpr | Vital.AwakeAtValueMacroExpr | Vital.UnrecognizedValueMacroExpr | Vital.DiscreteTimeseriesExpr | Vital.IntervalTimeseriesExpr | Vital.BloodPressureTimeseriesExpr | Vital.TemperatureTimeseriesExpr | Vital.WorkoutDurationTimeseriesExpr | Vital.NoteTimeseriesExpr | Vital.IndexColumnExpr | Vital.SourceColumnExpr;
|
|
@@ -517,6 +517,8 @@ export * from "./Placeholder";
|
|
|
517
517
|
export * from "./Png";
|
|
518
518
|
export * from "./PostOrderResponse";
|
|
519
519
|
export * from "./PriorityResource";
|
|
520
|
+
export * from "./ProfileColumnExprProfile";
|
|
521
|
+
export * from "./ProfileColumnExpr";
|
|
520
522
|
export * from "./ProfileInDb";
|
|
521
523
|
export * from "./ProviderConnectionCreated";
|
|
522
524
|
export * from "./ProviderConnectionErrorErrorType";
|
package/dist/api/types/index.js
CHANGED
|
@@ -533,6 +533,8 @@ __exportStar(require("./Placeholder"), exports);
|
|
|
533
533
|
__exportStar(require("./Png"), exports);
|
|
534
534
|
__exportStar(require("./PostOrderResponse"), exports);
|
|
535
535
|
__exportStar(require("./PriorityResource"), exports);
|
|
536
|
+
__exportStar(require("./ProfileColumnExprProfile"), exports);
|
|
537
|
+
__exportStar(require("./ProfileColumnExpr"), exports);
|
|
536
538
|
__exportStar(require("./ProfileInDb"), exports);
|
|
537
539
|
__exportStar(require("./ProviderConnectionCreated"), exports);
|
|
538
540
|
__exportStar(require("./ProviderConnectionErrorErrorType"), exports);
|
|
@@ -9,6 +9,7 @@ import { ActivityColumnExpr } from "./ActivityColumnExpr";
|
|
|
9
9
|
import { WorkoutColumnExpr } from "./WorkoutColumnExpr";
|
|
10
10
|
import { BodyColumnExpr } from "./BodyColumnExpr";
|
|
11
11
|
import { MealColumnExpr } from "./MealColumnExpr";
|
|
12
|
+
import { ProfileColumnExpr } from "./ProfileColumnExpr";
|
|
12
13
|
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
|
13
14
|
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
|
14
15
|
import { AsleepAtValueMacroExpr } from "./AsleepAtValueMacroExpr";
|
|
@@ -23,5 +24,5 @@ import { NoteTimeseriesExpr } from "./NoteTimeseriesExpr";
|
|
|
23
24
|
import { IndexColumnExpr } from "./IndexColumnExpr";
|
|
24
25
|
export declare const AggregateExprArg: core.serialization.Schema<serializers.AggregateExprArg.Raw, Vital.AggregateExprArg>;
|
|
25
26
|
export declare namespace AggregateExprArg {
|
|
26
|
-
type Raw = SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | AsleepAtValueMacroExpr.Raw | AwakeAtValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | IndexColumnExpr.Raw;
|
|
27
|
+
type Raw = SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | ProfileColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | AsleepAtValueMacroExpr.Raw | AwakeAtValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | IndexColumnExpr.Raw;
|
|
27
28
|
}
|
|
@@ -33,6 +33,7 @@ const ActivityColumnExpr_1 = require("./ActivityColumnExpr");
|
|
|
33
33
|
const WorkoutColumnExpr_1 = require("./WorkoutColumnExpr");
|
|
34
34
|
const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
|
35
35
|
const MealColumnExpr_1 = require("./MealColumnExpr");
|
|
36
|
+
const ProfileColumnExpr_1 = require("./ProfileColumnExpr");
|
|
36
37
|
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
|
37
38
|
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
|
38
39
|
const AsleepAtValueMacroExpr_1 = require("./AsleepAtValueMacroExpr");
|
|
@@ -51,6 +52,7 @@ exports.AggregateExprArg = core.serialization.undiscriminatedUnion([
|
|
|
51
52
|
WorkoutColumnExpr_1.WorkoutColumnExpr,
|
|
52
53
|
BodyColumnExpr_1.BodyColumnExpr,
|
|
53
54
|
MealColumnExpr_1.MealColumnExpr,
|
|
55
|
+
ProfileColumnExpr_1.ProfileColumnExpr,
|
|
54
56
|
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
|
55
57
|
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
|
56
58
|
AsleepAtValueMacroExpr_1.AsleepAtValueMacroExpr,
|
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const IndexColumnExprIndex: core.serialization.Schema<serializers.IndexColumnExprIndex.Raw, Vital.IndexColumnExprIndex>;
|
|
8
8
|
export declare namespace IndexColumnExprIndex {
|
|
9
|
-
type Raw = "sleep" | "activity" | "workout" | "body" | "meal" | "timeseries";
|
|
9
|
+
type Raw = "sleep" | "activity" | "workout" | "body" | "meal" | "profile" | "timeseries";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.IndexColumnExprIndex = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.IndexColumnExprIndex = core.serialization.enum_(["sleep", "activity", "workout", "body", "meal", "timeseries"]);
|
|
31
|
+
exports.IndexColumnExprIndex = core.serialization.enum_(["sleep", "activity", "workout", "body", "meal", "profile", "timeseries"]);
|
|
@@ -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 { ProfileColumnExprProfile } from "./ProfileColumnExprProfile";
|
|
8
|
+
export declare const ProfileColumnExpr: core.serialization.ObjectSchema<serializers.ProfileColumnExpr.Raw, Vital.ProfileColumnExpr>;
|
|
9
|
+
export declare namespace ProfileColumnExpr {
|
|
10
|
+
interface Raw {
|
|
11
|
+
profile: ProfileColumnExprProfile.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.ProfileColumnExpr = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const ProfileColumnExprProfile_1 = require("./ProfileColumnExprProfile");
|
|
32
|
+
exports.ProfileColumnExpr = core.serialization.object({
|
|
33
|
+
profile: ProfileColumnExprProfile_1.ProfileColumnExprProfile,
|
|
34
|
+
});
|
|
@@ -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 ProfileColumnExprProfile: core.serialization.Schema<serializers.ProfileColumnExprProfile.Raw, Vital.ProfileColumnExprProfile>;
|
|
8
|
+
export declare namespace ProfileColumnExprProfile {
|
|
9
|
+
type Raw = "height_centimeter" | "birth_date" | "wheelchair_use" | "gender" | "sex" | "source_type" | "source_provider" | "source_app_id" | "source_device_id" | "created_at" | "updated_at";
|
|
10
|
+
}
|
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ProfileColumnExprProfile = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ProfileColumnExprProfile = core.serialization.enum_([
|
|
32
|
+
"height_centimeter",
|
|
33
|
+
"birth_date",
|
|
34
|
+
"wheelchair_use",
|
|
35
|
+
"gender",
|
|
36
|
+
"sex",
|
|
37
|
+
"source_type",
|
|
38
|
+
"source_provider",
|
|
39
|
+
"source_app_id",
|
|
40
|
+
"source_device_id",
|
|
41
|
+
"created_at",
|
|
42
|
+
"updated_at",
|
|
43
|
+
]);
|
|
@@ -11,6 +11,7 @@ import { ActivityColumnExpr } from "./ActivityColumnExpr";
|
|
|
11
11
|
import { WorkoutColumnExpr } from "./WorkoutColumnExpr";
|
|
12
12
|
import { BodyColumnExpr } from "./BodyColumnExpr";
|
|
13
13
|
import { MealColumnExpr } from "./MealColumnExpr";
|
|
14
|
+
import { ProfileColumnExpr } from "./ProfileColumnExpr";
|
|
14
15
|
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
|
15
16
|
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
|
16
17
|
import { AsleepAtValueMacroExpr } from "./AsleepAtValueMacroExpr";
|
|
@@ -25,5 +26,5 @@ import { NoteTimeseriesExpr } from "./NoteTimeseriesExpr";
|
|
|
25
26
|
import { SourceColumnExpr } from "./SourceColumnExpr";
|
|
26
27
|
export declare const QueryGroupByItem: core.serialization.Schema<serializers.QueryGroupByItem.Raw, Vital.QueryGroupByItem>;
|
|
27
28
|
export declare namespace QueryGroupByItem {
|
|
28
|
-
type Raw = DateTruncExpr.Raw | DatePartExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | AsleepAtValueMacroExpr.Raw | AwakeAtValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | SourceColumnExpr.Raw;
|
|
29
|
+
type Raw = DateTruncExpr.Raw | DatePartExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | ProfileColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | AsleepAtValueMacroExpr.Raw | AwakeAtValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | SourceColumnExpr.Raw;
|
|
29
30
|
}
|
|
@@ -35,6 +35,7 @@ const ActivityColumnExpr_1 = require("./ActivityColumnExpr");
|
|
|
35
35
|
const WorkoutColumnExpr_1 = require("./WorkoutColumnExpr");
|
|
36
36
|
const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
|
37
37
|
const MealColumnExpr_1 = require("./MealColumnExpr");
|
|
38
|
+
const ProfileColumnExpr_1 = require("./ProfileColumnExpr");
|
|
38
39
|
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
|
39
40
|
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
|
40
41
|
const AsleepAtValueMacroExpr_1 = require("./AsleepAtValueMacroExpr");
|
|
@@ -55,6 +56,7 @@ exports.QueryGroupByItem = core.serialization.undiscriminatedUnion([
|
|
|
55
56
|
WorkoutColumnExpr_1.WorkoutColumnExpr,
|
|
56
57
|
BodyColumnExpr_1.BodyColumnExpr,
|
|
57
58
|
MealColumnExpr_1.MealColumnExpr,
|
|
59
|
+
ProfileColumnExpr_1.ProfileColumnExpr,
|
|
58
60
|
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
|
59
61
|
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
|
60
62
|
AsleepAtValueMacroExpr_1.AsleepAtValueMacroExpr,
|
|
@@ -11,6 +11,7 @@ import { ActivityColumnExpr } from "./ActivityColumnExpr";
|
|
|
11
11
|
import { WorkoutColumnExpr } from "./WorkoutColumnExpr";
|
|
12
12
|
import { BodyColumnExpr } from "./BodyColumnExpr";
|
|
13
13
|
import { MealColumnExpr } from "./MealColumnExpr";
|
|
14
|
+
import { ProfileColumnExpr } from "./ProfileColumnExpr";
|
|
14
15
|
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
|
15
16
|
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
|
16
17
|
import { AsleepAtValueMacroExpr } from "./AsleepAtValueMacroExpr";
|
|
@@ -26,5 +27,5 @@ import { IndexColumnExpr } from "./IndexColumnExpr";
|
|
|
26
27
|
import { SourceColumnExpr } from "./SourceColumnExpr";
|
|
27
28
|
export declare const QuerySelectItem: core.serialization.Schema<serializers.QuerySelectItem.Raw, Vital.QuerySelectItem>;
|
|
28
29
|
export declare namespace QuerySelectItem {
|
|
29
|
-
type Raw = AggregateExpr.Raw | GroupKeyColumnExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | AsleepAtValueMacroExpr.Raw | AwakeAtValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | IndexColumnExpr.Raw | SourceColumnExpr.Raw;
|
|
30
|
+
type Raw = AggregateExpr.Raw | GroupKeyColumnExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | ProfileColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | AsleepAtValueMacroExpr.Raw | AwakeAtValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | IndexColumnExpr.Raw | SourceColumnExpr.Raw;
|
|
30
31
|
}
|
|
@@ -35,6 +35,7 @@ const ActivityColumnExpr_1 = require("./ActivityColumnExpr");
|
|
|
35
35
|
const WorkoutColumnExpr_1 = require("./WorkoutColumnExpr");
|
|
36
36
|
const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
|
37
37
|
const MealColumnExpr_1 = require("./MealColumnExpr");
|
|
38
|
+
const ProfileColumnExpr_1 = require("./ProfileColumnExpr");
|
|
38
39
|
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
|
39
40
|
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
|
40
41
|
const AsleepAtValueMacroExpr_1 = require("./AsleepAtValueMacroExpr");
|
|
@@ -56,6 +57,7 @@ exports.QuerySelectItem = core.serialization.undiscriminatedUnion([
|
|
|
56
57
|
WorkoutColumnExpr_1.WorkoutColumnExpr,
|
|
57
58
|
BodyColumnExpr_1.BodyColumnExpr,
|
|
58
59
|
MealColumnExpr_1.MealColumnExpr,
|
|
60
|
+
ProfileColumnExpr_1.ProfileColumnExpr,
|
|
59
61
|
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
|
60
62
|
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
|
61
63
|
AsleepAtValueMacroExpr_1.AsleepAtValueMacroExpr,
|
|
@@ -517,6 +517,8 @@ export * from "./Placeholder";
|
|
|
517
517
|
export * from "./Png";
|
|
518
518
|
export * from "./PostOrderResponse";
|
|
519
519
|
export * from "./PriorityResource";
|
|
520
|
+
export * from "./ProfileColumnExprProfile";
|
|
521
|
+
export * from "./ProfileColumnExpr";
|
|
520
522
|
export * from "./ProfileInDb";
|
|
521
523
|
export * from "./ProviderConnectionCreated";
|
|
522
524
|
export * from "./ProviderConnectionErrorErrorType";
|
|
@@ -533,6 +533,8 @@ __exportStar(require("./Placeholder"), exports);
|
|
|
533
533
|
__exportStar(require("./Png"), exports);
|
|
534
534
|
__exportStar(require("./PostOrderResponse"), exports);
|
|
535
535
|
__exportStar(require("./PriorityResource"), exports);
|
|
536
|
+
__exportStar(require("./ProfileColumnExprProfile"), exports);
|
|
537
|
+
__exportStar(require("./ProfileColumnExpr"), exports);
|
|
536
538
|
__exportStar(require("./ProfileInDb"), exports);
|
|
537
539
|
__exportStar(require("./ProviderConnectionCreated"), exports);
|
|
538
540
|
__exportStar(require("./ProviderConnectionErrorErrorType"), 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.520";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@ import { ActivityColumnExpr } from "./ActivityColumnExpr";
|
|
|
9
9
|
import { WorkoutColumnExpr } from "./WorkoutColumnExpr";
|
|
10
10
|
import { BodyColumnExpr } from "./BodyColumnExpr";
|
|
11
11
|
import { MealColumnExpr } from "./MealColumnExpr";
|
|
12
|
+
import { ProfileColumnExpr } from "./ProfileColumnExpr";
|
|
12
13
|
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
|
13
14
|
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
|
14
15
|
import { AsleepAtValueMacroExpr } from "./AsleepAtValueMacroExpr";
|
|
@@ -23,5 +24,5 @@ import { NoteTimeseriesExpr } from "./NoteTimeseriesExpr";
|
|
|
23
24
|
import { IndexColumnExpr } from "./IndexColumnExpr";
|
|
24
25
|
export declare const AggregateExprArg: core.serialization.Schema<serializers.AggregateExprArg.Raw, Vital.AggregateExprArg>;
|
|
25
26
|
export declare namespace AggregateExprArg {
|
|
26
|
-
type Raw = SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | AsleepAtValueMacroExpr.Raw | AwakeAtValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | IndexColumnExpr.Raw;
|
|
27
|
+
type Raw = SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | ProfileColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | AsleepAtValueMacroExpr.Raw | AwakeAtValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | IndexColumnExpr.Raw;
|
|
27
28
|
}
|
|
@@ -33,6 +33,7 @@ const ActivityColumnExpr_1 = require("./ActivityColumnExpr");
|
|
|
33
33
|
const WorkoutColumnExpr_1 = require("./WorkoutColumnExpr");
|
|
34
34
|
const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
|
35
35
|
const MealColumnExpr_1 = require("./MealColumnExpr");
|
|
36
|
+
const ProfileColumnExpr_1 = require("./ProfileColumnExpr");
|
|
36
37
|
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
|
37
38
|
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
|
38
39
|
const AsleepAtValueMacroExpr_1 = require("./AsleepAtValueMacroExpr");
|
|
@@ -51,6 +52,7 @@ exports.AggregateExprArg = core.serialization.undiscriminatedUnion([
|
|
|
51
52
|
WorkoutColumnExpr_1.WorkoutColumnExpr,
|
|
52
53
|
BodyColumnExpr_1.BodyColumnExpr,
|
|
53
54
|
MealColumnExpr_1.MealColumnExpr,
|
|
55
|
+
ProfileColumnExpr_1.ProfileColumnExpr,
|
|
54
56
|
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
|
55
57
|
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
|
56
58
|
AsleepAtValueMacroExpr_1.AsleepAtValueMacroExpr,
|
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const IndexColumnExprIndex: core.serialization.Schema<serializers.IndexColumnExprIndex.Raw, Vital.IndexColumnExprIndex>;
|
|
8
8
|
export declare namespace IndexColumnExprIndex {
|
|
9
|
-
type Raw = "sleep" | "activity" | "workout" | "body" | "meal" | "timeseries";
|
|
9
|
+
type Raw = "sleep" | "activity" | "workout" | "body" | "meal" | "profile" | "timeseries";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.IndexColumnExprIndex = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.IndexColumnExprIndex = core.serialization.enum_(["sleep", "activity", "workout", "body", "meal", "timeseries"]);
|
|
31
|
+
exports.IndexColumnExprIndex = core.serialization.enum_(["sleep", "activity", "workout", "body", "meal", "profile", "timeseries"]);
|
|
@@ -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 { ProfileColumnExprProfile } from "./ProfileColumnExprProfile";
|
|
8
|
+
export declare const ProfileColumnExpr: core.serialization.ObjectSchema<serializers.ProfileColumnExpr.Raw, Vital.ProfileColumnExpr>;
|
|
9
|
+
export declare namespace ProfileColumnExpr {
|
|
10
|
+
interface Raw {
|
|
11
|
+
profile: ProfileColumnExprProfile.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.ProfileColumnExpr = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const ProfileColumnExprProfile_1 = require("./ProfileColumnExprProfile");
|
|
32
|
+
exports.ProfileColumnExpr = core.serialization.object({
|
|
33
|
+
profile: ProfileColumnExprProfile_1.ProfileColumnExprProfile,
|
|
34
|
+
});
|
|
@@ -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 ProfileColumnExprProfile: core.serialization.Schema<serializers.ProfileColumnExprProfile.Raw, Vital.ProfileColumnExprProfile>;
|
|
8
|
+
export declare namespace ProfileColumnExprProfile {
|
|
9
|
+
type Raw = "height_centimeter" | "birth_date" | "wheelchair_use" | "gender" | "sex" | "source_type" | "source_provider" | "source_app_id" | "source_device_id" | "created_at" | "updated_at";
|
|
10
|
+
}
|
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ProfileColumnExprProfile = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ProfileColumnExprProfile = core.serialization.enum_([
|
|
32
|
+
"height_centimeter",
|
|
33
|
+
"birth_date",
|
|
34
|
+
"wheelchair_use",
|
|
35
|
+
"gender",
|
|
36
|
+
"sex",
|
|
37
|
+
"source_type",
|
|
38
|
+
"source_provider",
|
|
39
|
+
"source_app_id",
|
|
40
|
+
"source_device_id",
|
|
41
|
+
"created_at",
|
|
42
|
+
"updated_at",
|
|
43
|
+
]);
|
|
@@ -11,6 +11,7 @@ import { ActivityColumnExpr } from "./ActivityColumnExpr";
|
|
|
11
11
|
import { WorkoutColumnExpr } from "./WorkoutColumnExpr";
|
|
12
12
|
import { BodyColumnExpr } from "./BodyColumnExpr";
|
|
13
13
|
import { MealColumnExpr } from "./MealColumnExpr";
|
|
14
|
+
import { ProfileColumnExpr } from "./ProfileColumnExpr";
|
|
14
15
|
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
|
15
16
|
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
|
16
17
|
import { AsleepAtValueMacroExpr } from "./AsleepAtValueMacroExpr";
|
|
@@ -25,5 +26,5 @@ import { NoteTimeseriesExpr } from "./NoteTimeseriesExpr";
|
|
|
25
26
|
import { SourceColumnExpr } from "./SourceColumnExpr";
|
|
26
27
|
export declare const QueryGroupByItem: core.serialization.Schema<serializers.QueryGroupByItem.Raw, Vital.QueryGroupByItem>;
|
|
27
28
|
export declare namespace QueryGroupByItem {
|
|
28
|
-
type Raw = DateTruncExpr.Raw | DatePartExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | AsleepAtValueMacroExpr.Raw | AwakeAtValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | SourceColumnExpr.Raw;
|
|
29
|
+
type Raw = DateTruncExpr.Raw | DatePartExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | ProfileColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | AsleepAtValueMacroExpr.Raw | AwakeAtValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | SourceColumnExpr.Raw;
|
|
29
30
|
}
|
|
@@ -35,6 +35,7 @@ const ActivityColumnExpr_1 = require("./ActivityColumnExpr");
|
|
|
35
35
|
const WorkoutColumnExpr_1 = require("./WorkoutColumnExpr");
|
|
36
36
|
const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
|
37
37
|
const MealColumnExpr_1 = require("./MealColumnExpr");
|
|
38
|
+
const ProfileColumnExpr_1 = require("./ProfileColumnExpr");
|
|
38
39
|
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
|
39
40
|
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
|
40
41
|
const AsleepAtValueMacroExpr_1 = require("./AsleepAtValueMacroExpr");
|
|
@@ -55,6 +56,7 @@ exports.QueryGroupByItem = core.serialization.undiscriminatedUnion([
|
|
|
55
56
|
WorkoutColumnExpr_1.WorkoutColumnExpr,
|
|
56
57
|
BodyColumnExpr_1.BodyColumnExpr,
|
|
57
58
|
MealColumnExpr_1.MealColumnExpr,
|
|
59
|
+
ProfileColumnExpr_1.ProfileColumnExpr,
|
|
58
60
|
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
|
59
61
|
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
|
60
62
|
AsleepAtValueMacroExpr_1.AsleepAtValueMacroExpr,
|