@tryvital/vital-node 3.1.288 → 3.1.289
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/labTests/client/Client.d.ts +3 -3
- package/api/resources/labTests/client/Client.js +50 -45
- package/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +4 -1
- 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/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 +78 -78
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/AggregateExprArg.d.ts +1 -1
- package/api/types/BloodPressureTimeseriesExprField.d.ts +2 -1
- package/api/types/BloodPressureTimeseriesExprField.js +1 -0
- package/api/types/ClientFacingAppointment.d.ts +1 -0
- package/api/types/ClientFacingElectrocardiogramSourceType.d.ts +2 -1
- package/api/types/ClientFacingElectrocardiogramSourceType.js +1 -0
- package/api/types/ClientFacingMenstrualCycleSourceType.d.ts +2 -1
- package/api/types/ClientFacingMenstrualCycleSourceType.js +1 -0
- package/api/types/ClientFacingSleepCycleSourceType.d.ts +2 -1
- package/api/types/ClientFacingSleepCycleSourceType.js +1 -0
- package/api/types/DiscreteTimeseriesExprField.d.ts +2 -1
- package/api/types/DiscreteTimeseriesExprField.js +1 -0
- package/api/types/IntervalTimeseriesExprField.d.ts +2 -1
- package/api/types/IntervalTimeseriesExprField.js +1 -0
- package/api/types/MealColumnExpr.d.ts +8 -0
- package/api/types/MealColumnExpr.js +5 -0
- package/api/types/MealColumnExprMeal.d.ts +56 -0
- package/api/types/MealColumnExprMeal.js +55 -0
- package/api/types/NoteTimeseriesExprField.d.ts +2 -1
- package/api/types/NoteTimeseriesExprField.js +1 -0
- package/api/types/Query.d.ts +0 -1
- package/api/types/QueryGroupByItem.d.ts +1 -1
- package/api/types/QuerySelectItem.d.ts +1 -1
- package/api/types/SimulationFlags.d.ts +8 -0
- package/api/types/SimulationFlags.js +5 -0
- package/api/types/SourceColumnExpr.d.ts +7 -0
- package/api/types/SourceColumnExpr.js +5 -0
- package/api/types/SourceColumnExprSource.d.ts +11 -0
- package/api/types/SourceColumnExprSource.js +13 -0
- package/api/types/TemperatureTimeseriesExprField.d.ts +2 -1
- package/api/types/TemperatureTimeseriesExprField.js +1 -0
- package/api/types/WorkoutColumnExprWorkout.d.ts +2 -2
- package/api/types/WorkoutColumnExprWorkout.js +1 -1
- package/api/types/WorkoutDurationTimeseriesExprField.d.ts +2 -1
- package/api/types/WorkoutDurationTimeseriesExprField.js +1 -0
- package/api/types/index.d.ts +5 -0
- package/api/types/index.js +5 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/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/labTests/client/Client.d.ts +3 -3
- package/dist/api/resources/labTests/client/Client.js +50 -45
- package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +4 -1
- 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/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 +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/BloodPressureTimeseriesExprField.d.ts +2 -1
- package/dist/api/types/BloodPressureTimeseriesExprField.js +1 -0
- package/dist/api/types/ClientFacingAppointment.d.ts +1 -0
- package/dist/api/types/ClientFacingElectrocardiogramSourceType.d.ts +2 -1
- package/dist/api/types/ClientFacingElectrocardiogramSourceType.js +1 -0
- package/dist/api/types/ClientFacingMenstrualCycleSourceType.d.ts +2 -1
- package/dist/api/types/ClientFacingMenstrualCycleSourceType.js +1 -0
- package/dist/api/types/ClientFacingSleepCycleSourceType.d.ts +2 -1
- package/dist/api/types/ClientFacingSleepCycleSourceType.js +1 -0
- package/dist/api/types/DiscreteTimeseriesExprField.d.ts +2 -1
- package/dist/api/types/DiscreteTimeseriesExprField.js +1 -0
- package/dist/api/types/IntervalTimeseriesExprField.d.ts +2 -1
- package/dist/api/types/IntervalTimeseriesExprField.js +1 -0
- package/dist/api/types/MealColumnExpr.d.ts +8 -0
- package/dist/api/types/MealColumnExpr.js +5 -0
- package/dist/api/types/MealColumnExprMeal.d.ts +56 -0
- package/dist/api/types/MealColumnExprMeal.js +55 -0
- package/dist/api/types/NoteTimeseriesExprField.d.ts +2 -1
- package/dist/api/types/NoteTimeseriesExprField.js +1 -0
- package/dist/api/types/Query.d.ts +0 -1
- package/dist/api/types/QueryGroupByItem.d.ts +1 -1
- package/dist/api/types/QuerySelectItem.d.ts +1 -1
- package/dist/api/types/SimulationFlags.d.ts +8 -0
- package/dist/api/types/SimulationFlags.js +5 -0
- package/dist/api/types/SourceColumnExpr.d.ts +7 -0
- package/dist/api/types/SourceColumnExpr.js +5 -0
- package/dist/api/types/SourceColumnExprSource.d.ts +11 -0
- package/dist/api/types/SourceColumnExprSource.js +13 -0
- package/dist/api/types/TemperatureTimeseriesExprField.d.ts +2 -1
- package/dist/api/types/TemperatureTimeseriesExprField.js +1 -0
- package/dist/api/types/WorkoutColumnExprWorkout.d.ts +2 -2
- package/dist/api/types/WorkoutColumnExprWorkout.js +1 -1
- package/dist/api/types/WorkoutDurationTimeseriesExprField.d.ts +2 -1
- package/dist/api/types/WorkoutDurationTimeseriesExprField.js +1 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/index.js +5 -0
- package/dist/serialization/resources/labTests/client/index.d.ts +1 -0
- package/dist/serialization/resources/labTests/client/index.js +2 -1
- package/dist/serialization/resources/labTests/client/simulateOrderProcess.d.ts +11 -0
- package/dist/serialization/resources/labTests/client/simulateOrderProcess.js +8 -0
- package/dist/serialization/types/AggregateExprArg.d.ts +3 -2
- package/dist/serialization/types/AggregateExprArg.js +4 -2
- package/dist/serialization/types/BloodPressureTimeseriesExprField.d.ts +1 -1
- package/dist/serialization/types/BloodPressureTimeseriesExprField.js +1 -0
- package/dist/serialization/types/ClientFacingAppointment.d.ts +1 -0
- package/dist/serialization/types/ClientFacingAppointment.js +1 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramSourceType.d.ts +1 -1
- package/dist/serialization/types/ClientFacingElectrocardiogramSourceType.js +1 -0
- package/dist/serialization/types/ClientFacingMenstrualCycleSourceType.d.ts +1 -1
- package/dist/serialization/types/ClientFacingMenstrualCycleSourceType.js +1 -0
- package/dist/serialization/types/ClientFacingSleepCycleSourceType.d.ts +1 -1
- package/dist/serialization/types/ClientFacingSleepCycleSourceType.js +1 -0
- package/dist/serialization/types/DiscreteTimeseriesExprField.d.ts +1 -1
- package/dist/serialization/types/DiscreteTimeseriesExprField.js +1 -0
- package/dist/serialization/types/IntervalTimeseriesExprField.d.ts +1 -1
- package/dist/serialization/types/IntervalTimeseriesExprField.js +1 -0
- package/dist/serialization/types/MealColumnExpr.d.ts +13 -0
- package/dist/serialization/types/MealColumnExpr.js +34 -0
- package/dist/serialization/types/MealColumnExprMeal.d.ts +10 -0
- package/dist/serialization/types/MealColumnExprMeal.js +79 -0
- package/dist/serialization/types/NoteTimeseriesExprField.d.ts +1 -1
- package/dist/serialization/types/NoteTimeseriesExprField.js +1 -0
- package/dist/serialization/types/Query.d.ts +0 -1
- package/dist/serialization/types/Query.js +0 -1
- package/dist/serialization/types/QueryGroupByItem.d.ts +16 -1
- package/dist/serialization/types/QueryGroupByItem.js +34 -1
- package/dist/serialization/types/QuerySelectItem.d.ts +4 -2
- package/dist/serialization/types/QuerySelectItem.js +6 -2
- package/dist/serialization/types/SimulationFlags.d.ts +15 -0
- package/dist/serialization/types/SimulationFlags.js +36 -0
- package/dist/serialization/types/SourceColumnExpr.d.ts +13 -0
- package/dist/serialization/types/SourceColumnExpr.js +34 -0
- package/dist/serialization/types/SourceColumnExprSource.d.ts +10 -0
- package/dist/serialization/types/SourceColumnExprSource.js +31 -0
- package/dist/serialization/types/TemperatureTimeseriesExprField.d.ts +1 -1
- package/dist/serialization/types/TemperatureTimeseriesExprField.js +1 -0
- package/dist/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
- package/dist/serialization/types/WorkoutColumnExprWorkout.js +1 -1
- package/dist/serialization/types/WorkoutDurationTimeseriesExprField.d.ts +1 -1
- package/dist/serialization/types/WorkoutDurationTimeseriesExprField.js +1 -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 +3 -16
- package/serialization/resources/labTests/client/index.d.ts +1 -0
- package/serialization/resources/labTests/client/index.js +2 -1
- package/serialization/resources/labTests/client/simulateOrderProcess.d.ts +11 -0
- package/serialization/resources/labTests/client/simulateOrderProcess.js +8 -0
- package/serialization/types/AggregateExprArg.d.ts +3 -2
- package/serialization/types/AggregateExprArg.js +4 -2
- package/serialization/types/BloodPressureTimeseriesExprField.d.ts +1 -1
- package/serialization/types/BloodPressureTimeseriesExprField.js +1 -0
- package/serialization/types/ClientFacingAppointment.d.ts +1 -0
- package/serialization/types/ClientFacingAppointment.js +1 -0
- package/serialization/types/ClientFacingElectrocardiogramSourceType.d.ts +1 -1
- package/serialization/types/ClientFacingElectrocardiogramSourceType.js +1 -0
- package/serialization/types/ClientFacingMenstrualCycleSourceType.d.ts +1 -1
- package/serialization/types/ClientFacingMenstrualCycleSourceType.js +1 -0
- package/serialization/types/ClientFacingSleepCycleSourceType.d.ts +1 -1
- package/serialization/types/ClientFacingSleepCycleSourceType.js +1 -0
- package/serialization/types/DiscreteTimeseriesExprField.d.ts +1 -1
- package/serialization/types/DiscreteTimeseriesExprField.js +1 -0
- package/serialization/types/IntervalTimeseriesExprField.d.ts +1 -1
- package/serialization/types/IntervalTimeseriesExprField.js +1 -0
- package/serialization/types/MealColumnExpr.d.ts +13 -0
- package/serialization/types/MealColumnExpr.js +34 -0
- package/serialization/types/MealColumnExprMeal.d.ts +10 -0
- package/serialization/types/MealColumnExprMeal.js +79 -0
- package/serialization/types/NoteTimeseriesExprField.d.ts +1 -1
- package/serialization/types/NoteTimeseriesExprField.js +1 -0
- package/serialization/types/Query.d.ts +0 -1
- package/serialization/types/Query.js +0 -1
- package/serialization/types/QueryGroupByItem.d.ts +16 -1
- package/serialization/types/QueryGroupByItem.js +34 -1
- package/serialization/types/QuerySelectItem.d.ts +4 -2
- package/serialization/types/QuerySelectItem.js +6 -2
- package/serialization/types/SimulationFlags.d.ts +15 -0
- package/serialization/types/SimulationFlags.js +36 -0
- package/serialization/types/SourceColumnExpr.d.ts +13 -0
- package/serialization/types/SourceColumnExpr.js +34 -0
- package/serialization/types/SourceColumnExprSource.d.ts +10 -0
- package/serialization/types/SourceColumnExprSource.js +31 -0
- package/serialization/types/TemperatureTimeseriesExprField.d.ts +1 -1
- package/serialization/types/TemperatureTimeseriesExprField.js +1 -0
- package/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
- package/serialization/types/WorkoutColumnExprWorkout.js +1 -1
- package/serialization/types/WorkoutDurationTimeseriesExprField.d.ts +1 -1
- package/serialization/types/WorkoutDurationTimeseriesExprField.js +1 -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
|
@@ -8,7 +8,7 @@ import { SleepColumnExpr } from "./SleepColumnExpr";
|
|
|
8
8
|
import { ActivityColumnExpr } from "./ActivityColumnExpr";
|
|
9
9
|
import { WorkoutColumnExpr } from "./WorkoutColumnExpr";
|
|
10
10
|
import { BodyColumnExpr } from "./BodyColumnExpr";
|
|
11
|
-
import {
|
|
11
|
+
import { MealColumnExpr } from "./MealColumnExpr";
|
|
12
12
|
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
|
13
13
|
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
|
14
14
|
import { UnrecognizedValueMacroExpr } from "./UnrecognizedValueMacroExpr";
|
|
@@ -18,7 +18,8 @@ import { BloodPressureTimeseriesExpr } from "./BloodPressureTimeseriesExpr";
|
|
|
18
18
|
import { TemperatureTimeseriesExpr } from "./TemperatureTimeseriesExpr";
|
|
19
19
|
import { WorkoutDurationTimeseriesExpr } from "./WorkoutDurationTimeseriesExpr";
|
|
20
20
|
import { NoteTimeseriesExpr } from "./NoteTimeseriesExpr";
|
|
21
|
+
import { IndexColumnExpr } from "./IndexColumnExpr";
|
|
21
22
|
export declare const AggregateExprArg: core.serialization.Schema<serializers.AggregateExprArg.Raw, Vital.AggregateExprArg>;
|
|
22
23
|
export declare namespace AggregateExprArg {
|
|
23
|
-
type Raw = SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw |
|
|
24
|
+
type Raw = SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | IndexColumnExpr.Raw;
|
|
24
25
|
}
|
|
@@ -32,7 +32,7 @@ const SleepColumnExpr_1 = require("./SleepColumnExpr");
|
|
|
32
32
|
const ActivityColumnExpr_1 = require("./ActivityColumnExpr");
|
|
33
33
|
const WorkoutColumnExpr_1 = require("./WorkoutColumnExpr");
|
|
34
34
|
const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
|
35
|
-
const
|
|
35
|
+
const MealColumnExpr_1 = require("./MealColumnExpr");
|
|
36
36
|
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
|
37
37
|
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
|
38
38
|
const UnrecognizedValueMacroExpr_1 = require("./UnrecognizedValueMacroExpr");
|
|
@@ -42,12 +42,13 @@ const BloodPressureTimeseriesExpr_1 = require("./BloodPressureTimeseriesExpr");
|
|
|
42
42
|
const TemperatureTimeseriesExpr_1 = require("./TemperatureTimeseriesExpr");
|
|
43
43
|
const WorkoutDurationTimeseriesExpr_1 = require("./WorkoutDurationTimeseriesExpr");
|
|
44
44
|
const NoteTimeseriesExpr_1 = require("./NoteTimeseriesExpr");
|
|
45
|
+
const IndexColumnExpr_1 = require("./IndexColumnExpr");
|
|
45
46
|
exports.AggregateExprArg = core.serialization.undiscriminatedUnion([
|
|
46
47
|
SleepColumnExpr_1.SleepColumnExpr,
|
|
47
48
|
ActivityColumnExpr_1.ActivityColumnExpr,
|
|
48
49
|
WorkoutColumnExpr_1.WorkoutColumnExpr,
|
|
49
50
|
BodyColumnExpr_1.BodyColumnExpr,
|
|
50
|
-
|
|
51
|
+
MealColumnExpr_1.MealColumnExpr,
|
|
51
52
|
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
|
52
53
|
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
|
53
54
|
UnrecognizedValueMacroExpr_1.UnrecognizedValueMacroExpr,
|
|
@@ -57,4 +58,5 @@ exports.AggregateExprArg = core.serialization.undiscriminatedUnion([
|
|
|
57
58
|
TemperatureTimeseriesExpr_1.TemperatureTimeseriesExpr,
|
|
58
59
|
WorkoutDurationTimeseriesExpr_1.WorkoutDurationTimeseriesExpr,
|
|
59
60
|
NoteTimeseriesExpr_1.NoteTimeseriesExpr,
|
|
61
|
+
IndexColumnExpr_1.IndexColumnExpr,
|
|
60
62
|
]);
|
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const BloodPressureTimeseriesExprField: core.serialization.Schema<serializers.BloodPressureTimeseriesExprField.Raw, Vital.BloodPressureTimeseriesExprField>;
|
|
8
8
|
export declare namespace BloodPressureTimeseriesExprField {
|
|
9
|
-
type Raw = "source_provider" | "source_type" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "systolic" | "diastolic";
|
|
9
|
+
type Raw = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "systolic" | "diastolic";
|
|
10
10
|
}
|
|
@@ -26,6 +26,7 @@ export declare namespace ClientFacingAppointment {
|
|
|
26
26
|
provider: AppointmentProvider.Raw;
|
|
27
27
|
status: AppointmentStatus.Raw;
|
|
28
28
|
provider_id: string;
|
|
29
|
+
external_id?: string | null;
|
|
29
30
|
can_reschedule: boolean;
|
|
30
31
|
event_status: AppointmentEventStatus.Raw;
|
|
31
32
|
event_data?: Record<string, unknown> | null;
|
|
@@ -48,6 +48,7 @@ exports.ClientFacingAppointment = core.serialization.object({
|
|
|
48
48
|
provider: AppointmentProvider_1.AppointmentProvider,
|
|
49
49
|
status: AppointmentStatus_1.AppointmentStatus,
|
|
50
50
|
providerId: core.serialization.property("provider_id", core.serialization.string()),
|
|
51
|
+
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
51
52
|
canReschedule: core.serialization.property("can_reschedule", core.serialization.boolean()),
|
|
52
53
|
eventStatus: core.serialization.property("event_status", AppointmentEventStatus_1.AppointmentEventStatus),
|
|
53
54
|
eventData: core.serialization.property("event_data", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ClientFacingElectrocardiogramSourceType: core.serialization.Schema<serializers.ClientFacingElectrocardiogramSourceType.Raw, Vital.ClientFacingElectrocardiogramSourceType>;
|
|
8
8
|
export declare namespace ClientFacingElectrocardiogramSourceType {
|
|
9
|
-
type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
|
|
9
|
+
type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine";
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ClientFacingMenstrualCycleSourceType: core.serialization.Schema<serializers.ClientFacingMenstrualCycleSourceType.Raw, Vital.ClientFacingMenstrualCycleSourceType>;
|
|
8
8
|
export declare namespace ClientFacingMenstrualCycleSourceType {
|
|
9
|
-
type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
|
|
9
|
+
type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine";
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ClientFacingSleepCycleSourceType: core.serialization.Schema<serializers.ClientFacingSleepCycleSourceType.Raw, Vital.ClientFacingSleepCycleSourceType>;
|
|
8
8
|
export declare namespace ClientFacingSleepCycleSourceType {
|
|
9
|
-
type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
|
|
9
|
+
type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine";
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const DiscreteTimeseriesExprField: core.serialization.Schema<serializers.DiscreteTimeseriesExprField.Raw, Vital.DiscreteTimeseriesExprField>;
|
|
8
8
|
export declare namespace DiscreteTimeseriesExprField {
|
|
9
|
-
type Raw = "source_provider" | "source_type" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "value";
|
|
9
|
+
type Raw = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "value";
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const IntervalTimeseriesExprField: core.serialization.Schema<serializers.IntervalTimeseriesExprField.Raw, Vital.IntervalTimeseriesExprField>;
|
|
8
8
|
export declare namespace IntervalTimeseriesExprField {
|
|
9
|
-
type Raw = "source_provider" | "source_type" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value";
|
|
9
|
+
type Raw = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value";
|
|
10
10
|
}
|
|
@@ -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 { MealColumnExprMeal } from "./MealColumnExprMeal";
|
|
8
|
+
export declare const MealColumnExpr: core.serialization.ObjectSchema<serializers.MealColumnExpr.Raw, Vital.MealColumnExpr>;
|
|
9
|
+
export declare namespace MealColumnExpr {
|
|
10
|
+
interface Raw {
|
|
11
|
+
meal: MealColumnExprMeal.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.MealColumnExpr = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const MealColumnExprMeal_1 = require("./MealColumnExprMeal");
|
|
32
|
+
exports.MealColumnExpr = core.serialization.object({
|
|
33
|
+
meal: MealColumnExprMeal_1.MealColumnExprMeal,
|
|
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 MealColumnExprMeal: core.serialization.Schema<serializers.MealColumnExprMeal.Raw, Vital.MealColumnExprMeal>;
|
|
8
|
+
export declare namespace MealColumnExprMeal {
|
|
9
|
+
type Raw = "calories" | "carbohydrate_gram" | "protein_gram" | "alcohol_gram" | "water_gram" | "fibre_gram" | "sugar_gram" | "cholesterol_gram" | "saturated_fat_gram" | "monounsaturated_fat_gram" | "polyunsaturated_fat_gram" | "omega3_fat_gram" | "omega6_fat_gram" | "total_fat_gram" | "sodium_milligram" | "potassium_milligram" | "calcium_milligram" | "phosphorus_milligram" | "magnesium_milligram" | "iron_milligram" | "zinc_milligram" | "fluoride_milligram" | "chloride_milligram" | "vitamin_a_milligram" | "vitamin_b1_milligram" | "riboflavin_milligram" | "niacin_milligram" | "pantothenic_acid_milligram" | "vitamin_b6_milligram" | "biotin_microgram" | "vitamin_b12_microgram" | "vitamin_c_milligram" | "vitamin_d_microgram" | "vitamin_e_milligram" | "vitamin_k_microgram" | "folic_acid_microgram" | "chromium_microgram" | "copper_milligram" | "iodine_microgram" | "manganese_milligram" | "molybdenum_microgram" | "selenium_microgram" | "date" | "name" | "source_type" | "source_provider" | "source_app_id";
|
|
10
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.MealColumnExprMeal = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.MealColumnExprMeal = core.serialization.enum_([
|
|
32
|
+
"calories",
|
|
33
|
+
"carbohydrate_gram",
|
|
34
|
+
"protein_gram",
|
|
35
|
+
"alcohol_gram",
|
|
36
|
+
"water_gram",
|
|
37
|
+
"fibre_gram",
|
|
38
|
+
"sugar_gram",
|
|
39
|
+
"cholesterol_gram",
|
|
40
|
+
"saturated_fat_gram",
|
|
41
|
+
"monounsaturated_fat_gram",
|
|
42
|
+
"polyunsaturated_fat_gram",
|
|
43
|
+
"omega3_fat_gram",
|
|
44
|
+
"omega6_fat_gram",
|
|
45
|
+
"total_fat_gram",
|
|
46
|
+
"sodium_milligram",
|
|
47
|
+
"potassium_milligram",
|
|
48
|
+
"calcium_milligram",
|
|
49
|
+
"phosphorus_milligram",
|
|
50
|
+
"magnesium_milligram",
|
|
51
|
+
"iron_milligram",
|
|
52
|
+
"zinc_milligram",
|
|
53
|
+
"fluoride_milligram",
|
|
54
|
+
"chloride_milligram",
|
|
55
|
+
"vitamin_a_milligram",
|
|
56
|
+
"vitamin_b1_milligram",
|
|
57
|
+
"riboflavin_milligram",
|
|
58
|
+
"niacin_milligram",
|
|
59
|
+
"pantothenic_acid_milligram",
|
|
60
|
+
"vitamin_b6_milligram",
|
|
61
|
+
"biotin_microgram",
|
|
62
|
+
"vitamin_b12_microgram",
|
|
63
|
+
"vitamin_c_milligram",
|
|
64
|
+
"vitamin_d_microgram",
|
|
65
|
+
"vitamin_e_milligram",
|
|
66
|
+
"vitamin_k_microgram",
|
|
67
|
+
"folic_acid_microgram",
|
|
68
|
+
"chromium_microgram",
|
|
69
|
+
"copper_milligram",
|
|
70
|
+
"iodine_microgram",
|
|
71
|
+
"manganese_milligram",
|
|
72
|
+
"molybdenum_microgram",
|
|
73
|
+
"selenium_microgram",
|
|
74
|
+
"date",
|
|
75
|
+
"name",
|
|
76
|
+
"source_type",
|
|
77
|
+
"source_provider",
|
|
78
|
+
"source_app_id",
|
|
79
|
+
]);
|
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const NoteTimeseriesExprField: core.serialization.Schema<serializers.NoteTimeseriesExprField.Raw, Vital.NoteTimeseriesExprField>;
|
|
8
8
|
export declare namespace NoteTimeseriesExprField {
|
|
9
|
-
type Raw = "source_provider" | "source_type" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "tags" | "content";
|
|
9
|
+
type Raw = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "tags" | "content";
|
|
10
10
|
}
|
|
@@ -33,5 +33,4 @@ const QueryGroupByItem_1 = require("./QueryGroupByItem");
|
|
|
33
33
|
exports.Query = core.serialization.object({
|
|
34
34
|
select: core.serialization.list(QuerySelectItem_1.QuerySelectItem),
|
|
35
35
|
groupBy: core.serialization.property("group_by", core.serialization.list(QueryGroupByItem_1.QueryGroupByItem).optional()),
|
|
36
|
-
splitBySource: core.serialization.property("split_by_source", core.serialization.boolean().optional()),
|
|
37
36
|
});
|
|
@@ -6,7 +6,22 @@ import * as Vital from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { DateTruncExpr } from "./DateTruncExpr";
|
|
8
8
|
import { DatePartExpr } from "./DatePartExpr";
|
|
9
|
+
import { SleepColumnExpr } from "./SleepColumnExpr";
|
|
10
|
+
import { ActivityColumnExpr } from "./ActivityColumnExpr";
|
|
11
|
+
import { WorkoutColumnExpr } from "./WorkoutColumnExpr";
|
|
12
|
+
import { BodyColumnExpr } from "./BodyColumnExpr";
|
|
13
|
+
import { MealColumnExpr } from "./MealColumnExpr";
|
|
14
|
+
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
|
15
|
+
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
|
16
|
+
import { UnrecognizedValueMacroExpr } from "./UnrecognizedValueMacroExpr";
|
|
17
|
+
import { DiscreteTimeseriesExpr } from "./DiscreteTimeseriesExpr";
|
|
18
|
+
import { IntervalTimeseriesExpr } from "./IntervalTimeseriesExpr";
|
|
19
|
+
import { BloodPressureTimeseriesExpr } from "./BloodPressureTimeseriesExpr";
|
|
20
|
+
import { TemperatureTimeseriesExpr } from "./TemperatureTimeseriesExpr";
|
|
21
|
+
import { WorkoutDurationTimeseriesExpr } from "./WorkoutDurationTimeseriesExpr";
|
|
22
|
+
import { NoteTimeseriesExpr } from "./NoteTimeseriesExpr";
|
|
23
|
+
import { SourceColumnExpr } from "./SourceColumnExpr";
|
|
9
24
|
export declare const QueryGroupByItem: core.serialization.Schema<serializers.QueryGroupByItem.Raw, Vital.QueryGroupByItem>;
|
|
10
25
|
export declare namespace QueryGroupByItem {
|
|
11
|
-
type Raw = DateTruncExpr.Raw | DatePartExpr.Raw;
|
|
26
|
+
type Raw = DateTruncExpr.Raw | DatePartExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | SourceColumnExpr.Raw;
|
|
12
27
|
}
|
|
@@ -30,4 +30,37 @@ exports.QueryGroupByItem = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const DateTruncExpr_1 = require("./DateTruncExpr");
|
|
32
32
|
const DatePartExpr_1 = require("./DatePartExpr");
|
|
33
|
-
|
|
33
|
+
const SleepColumnExpr_1 = require("./SleepColumnExpr");
|
|
34
|
+
const ActivityColumnExpr_1 = require("./ActivityColumnExpr");
|
|
35
|
+
const WorkoutColumnExpr_1 = require("./WorkoutColumnExpr");
|
|
36
|
+
const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
|
37
|
+
const MealColumnExpr_1 = require("./MealColumnExpr");
|
|
38
|
+
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
|
39
|
+
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
|
40
|
+
const UnrecognizedValueMacroExpr_1 = require("./UnrecognizedValueMacroExpr");
|
|
41
|
+
const DiscreteTimeseriesExpr_1 = require("./DiscreteTimeseriesExpr");
|
|
42
|
+
const IntervalTimeseriesExpr_1 = require("./IntervalTimeseriesExpr");
|
|
43
|
+
const BloodPressureTimeseriesExpr_1 = require("./BloodPressureTimeseriesExpr");
|
|
44
|
+
const TemperatureTimeseriesExpr_1 = require("./TemperatureTimeseriesExpr");
|
|
45
|
+
const WorkoutDurationTimeseriesExpr_1 = require("./WorkoutDurationTimeseriesExpr");
|
|
46
|
+
const NoteTimeseriesExpr_1 = require("./NoteTimeseriesExpr");
|
|
47
|
+
const SourceColumnExpr_1 = require("./SourceColumnExpr");
|
|
48
|
+
exports.QueryGroupByItem = core.serialization.undiscriminatedUnion([
|
|
49
|
+
DateTruncExpr_1.DateTruncExpr,
|
|
50
|
+
DatePartExpr_1.DatePartExpr,
|
|
51
|
+
SleepColumnExpr_1.SleepColumnExpr,
|
|
52
|
+
ActivityColumnExpr_1.ActivityColumnExpr,
|
|
53
|
+
WorkoutColumnExpr_1.WorkoutColumnExpr,
|
|
54
|
+
BodyColumnExpr_1.BodyColumnExpr,
|
|
55
|
+
MealColumnExpr_1.MealColumnExpr,
|
|
56
|
+
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
|
57
|
+
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
|
58
|
+
UnrecognizedValueMacroExpr_1.UnrecognizedValueMacroExpr,
|
|
59
|
+
DiscreteTimeseriesExpr_1.DiscreteTimeseriesExpr,
|
|
60
|
+
IntervalTimeseriesExpr_1.IntervalTimeseriesExpr,
|
|
61
|
+
BloodPressureTimeseriesExpr_1.BloodPressureTimeseriesExpr,
|
|
62
|
+
TemperatureTimeseriesExpr_1.TemperatureTimeseriesExpr,
|
|
63
|
+
WorkoutDurationTimeseriesExpr_1.WorkoutDurationTimeseriesExpr,
|
|
64
|
+
NoteTimeseriesExpr_1.NoteTimeseriesExpr,
|
|
65
|
+
SourceColumnExpr_1.SourceColumnExpr,
|
|
66
|
+
]);
|
|
@@ -10,7 +10,7 @@ import { SleepColumnExpr } from "./SleepColumnExpr";
|
|
|
10
10
|
import { ActivityColumnExpr } from "./ActivityColumnExpr";
|
|
11
11
|
import { WorkoutColumnExpr } from "./WorkoutColumnExpr";
|
|
12
12
|
import { BodyColumnExpr } from "./BodyColumnExpr";
|
|
13
|
-
import {
|
|
13
|
+
import { MealColumnExpr } from "./MealColumnExpr";
|
|
14
14
|
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
|
15
15
|
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
|
16
16
|
import { UnrecognizedValueMacroExpr } from "./UnrecognizedValueMacroExpr";
|
|
@@ -20,7 +20,9 @@ import { BloodPressureTimeseriesExpr } from "./BloodPressureTimeseriesExpr";
|
|
|
20
20
|
import { TemperatureTimeseriesExpr } from "./TemperatureTimeseriesExpr";
|
|
21
21
|
import { WorkoutDurationTimeseriesExpr } from "./WorkoutDurationTimeseriesExpr";
|
|
22
22
|
import { NoteTimeseriesExpr } from "./NoteTimeseriesExpr";
|
|
23
|
+
import { IndexColumnExpr } from "./IndexColumnExpr";
|
|
24
|
+
import { SourceColumnExpr } from "./SourceColumnExpr";
|
|
23
25
|
export declare const QuerySelectItem: core.serialization.Schema<serializers.QuerySelectItem.Raw, Vital.QuerySelectItem>;
|
|
24
26
|
export declare namespace QuerySelectItem {
|
|
25
|
-
type Raw = AggregateExpr.Raw | GroupKeyColumnExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw |
|
|
27
|
+
type Raw = AggregateExpr.Raw | GroupKeyColumnExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | MealColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw | DiscreteTimeseriesExpr.Raw | IntervalTimeseriesExpr.Raw | BloodPressureTimeseriesExpr.Raw | TemperatureTimeseriesExpr.Raw | WorkoutDurationTimeseriesExpr.Raw | NoteTimeseriesExpr.Raw | IndexColumnExpr.Raw | SourceColumnExpr.Raw;
|
|
26
28
|
}
|
|
@@ -34,7 +34,7 @@ const SleepColumnExpr_1 = require("./SleepColumnExpr");
|
|
|
34
34
|
const ActivityColumnExpr_1 = require("./ActivityColumnExpr");
|
|
35
35
|
const WorkoutColumnExpr_1 = require("./WorkoutColumnExpr");
|
|
36
36
|
const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
|
37
|
-
const
|
|
37
|
+
const MealColumnExpr_1 = require("./MealColumnExpr");
|
|
38
38
|
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
|
39
39
|
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
|
40
40
|
const UnrecognizedValueMacroExpr_1 = require("./UnrecognizedValueMacroExpr");
|
|
@@ -44,6 +44,8 @@ const BloodPressureTimeseriesExpr_1 = require("./BloodPressureTimeseriesExpr");
|
|
|
44
44
|
const TemperatureTimeseriesExpr_1 = require("./TemperatureTimeseriesExpr");
|
|
45
45
|
const WorkoutDurationTimeseriesExpr_1 = require("./WorkoutDurationTimeseriesExpr");
|
|
46
46
|
const NoteTimeseriesExpr_1 = require("./NoteTimeseriesExpr");
|
|
47
|
+
const IndexColumnExpr_1 = require("./IndexColumnExpr");
|
|
48
|
+
const SourceColumnExpr_1 = require("./SourceColumnExpr");
|
|
47
49
|
exports.QuerySelectItem = core.serialization.undiscriminatedUnion([
|
|
48
50
|
AggregateExpr_1.AggregateExpr,
|
|
49
51
|
GroupKeyColumnExpr_1.GroupKeyColumnExpr,
|
|
@@ -51,7 +53,7 @@ exports.QuerySelectItem = core.serialization.undiscriminatedUnion([
|
|
|
51
53
|
ActivityColumnExpr_1.ActivityColumnExpr,
|
|
52
54
|
WorkoutColumnExpr_1.WorkoutColumnExpr,
|
|
53
55
|
BodyColumnExpr_1.BodyColumnExpr,
|
|
54
|
-
|
|
56
|
+
MealColumnExpr_1.MealColumnExpr,
|
|
55
57
|
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
|
56
58
|
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
|
57
59
|
UnrecognizedValueMacroExpr_1.UnrecognizedValueMacroExpr,
|
|
@@ -61,4 +63,6 @@ exports.QuerySelectItem = core.serialization.undiscriminatedUnion([
|
|
|
61
63
|
TemperatureTimeseriesExpr_1.TemperatureTimeseriesExpr,
|
|
62
64
|
WorkoutDurationTimeseriesExpr_1.WorkoutDurationTimeseriesExpr,
|
|
63
65
|
NoteTimeseriesExpr_1.NoteTimeseriesExpr,
|
|
66
|
+
IndexColumnExpr_1.IndexColumnExpr,
|
|
67
|
+
SourceColumnExpr_1.SourceColumnExpr,
|
|
64
68
|
]);
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { Interpretation } from "./Interpretation";
|
|
8
|
+
import { ResultType } from "./ResultType";
|
|
9
|
+
export declare const SimulationFlags: core.serialization.ObjectSchema<serializers.SimulationFlags.Raw, Vital.SimulationFlags>;
|
|
10
|
+
export declare namespace SimulationFlags {
|
|
11
|
+
interface Raw {
|
|
12
|
+
interpretation?: Interpretation.Raw | null;
|
|
13
|
+
result_types?: ResultType.Raw[] | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.SimulationFlags = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const Interpretation_1 = require("./Interpretation");
|
|
32
|
+
const ResultType_1 = require("./ResultType");
|
|
33
|
+
exports.SimulationFlags = core.serialization.object({
|
|
34
|
+
interpretation: Interpretation_1.Interpretation.optional(),
|
|
35
|
+
resultTypes: core.serialization.property("result_types", core.serialization.list(ResultType_1.ResultType).optional()),
|
|
36
|
+
});
|
|
@@ -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 { SourceColumnExprSource } from "./SourceColumnExprSource";
|
|
8
|
+
export declare const SourceColumnExpr: core.serialization.ObjectSchema<serializers.SourceColumnExpr.Raw, Vital.SourceColumnExpr>;
|
|
9
|
+
export declare namespace SourceColumnExpr {
|
|
10
|
+
interface Raw {
|
|
11
|
+
source: SourceColumnExprSource.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.SourceColumnExpr = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const SourceColumnExprSource_1 = require("./SourceColumnExprSource");
|
|
32
|
+
exports.SourceColumnExpr = core.serialization.object({
|
|
33
|
+
source: SourceColumnExprSource_1.SourceColumnExprSource,
|
|
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 SourceColumnExprSource: core.serialization.Schema<serializers.SourceColumnExprSource.Raw, Vital.SourceColumnExprSource>;
|
|
8
|
+
export declare namespace SourceColumnExprSource {
|
|
9
|
+
type Raw = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport";
|
|
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.SourceColumnExprSource = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.SourceColumnExprSource = core.serialization.enum_(["source_provider", "source_type", "source_app_id", "source_workout_id", "source_sport"]);
|
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TemperatureTimeseriesExprField: core.serialization.Schema<serializers.TemperatureTimeseriesExprField.Raw, Vital.TemperatureTimeseriesExprField>;
|
|
8
8
|
export declare namespace TemperatureTimeseriesExprField {
|
|
9
|
-
type Raw = "source_provider" | "source_type" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value" | "sensor_location";
|
|
9
|
+
type Raw = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value" | "sensor_location";
|
|
10
10
|
}
|