@tryvital/vital-node 3.1.381 → 3.1.382
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +18 -18
- package/Client.js +54 -54
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/aggregate/client/Client.d.ts +1 -1
- package/api/resources/aggregate/client/Client.js +4 -4
- package/api/resources/aggregate/client/requests/QueryBatch.d.ts +1 -1
- 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/index.d.ts +13 -13
- package/api/resources/index.js +14 -14
- 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 +0 -1
- package/api/resources/labTests/client/Client.js +41 -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.d.ts +12 -12
- package/api/resources/sleep/client/Client.js +34 -34
- 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 +18 -18
- package/api/resources/vitals/client/Client.js +78 -78
- package/api/resources/workouts/client/Client.d.ts +10 -10
- package/api/resources/workouts/client/Client.js +34 -34
- package/api/types/AggregateExprArg.d.ts +1 -1
- package/api/types/AsleepAtValueMacroExpr.d.ts +7 -0
- package/api/types/AsleepAtValueMacroExpr.js +5 -0
- package/api/types/AwakeAtValueMacroExpr.d.ts +7 -0
- package/api/types/AwakeAtValueMacroExpr.js +5 -0
- package/api/types/QueryGroupByItem.d.ts +1 -1
- package/api/types/QuerySelectItem.d.ts +1 -1
- package/api/types/SleepColumnExprSleep.d.ts +2 -1
- package/api/types/SleepColumnExprSleep.js +1 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.d.ts +18 -18
- package/dist/Client.js +54 -54
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.d.ts +1 -1
- package/dist/api/resources/aggregate/client/Client.js +4 -4
- package/dist/api/resources/aggregate/client/requests/QueryBatch.d.ts +1 -1
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +13 -13
- package/dist/api/resources/index.js +14 -14
- 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 +0 -1
- package/dist/api/resources/labTests/client/Client.js +41 -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.d.ts +12 -12
- package/dist/api/resources/sleep/client/Client.js +34 -34
- 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 +18 -18
- package/dist/api/resources/vitals/client/Client.js +78 -78
- package/dist/api/resources/workouts/client/Client.d.ts +10 -10
- package/dist/api/resources/workouts/client/Client.js +34 -34
- package/dist/api/types/AggregateExprArg.d.ts +1 -1
- package/dist/api/types/AsleepAtValueMacroExpr.d.ts +7 -0
- package/dist/api/types/AsleepAtValueMacroExpr.js +5 -0
- package/dist/api/types/AwakeAtValueMacroExpr.d.ts +7 -0
- package/dist/api/types/AwakeAtValueMacroExpr.js +5 -0
- package/dist/api/types/QueryGroupByItem.d.ts +1 -1
- package/dist/api/types/QuerySelectItem.d.ts +1 -1
- package/dist/api/types/SleepColumnExprSleep.d.ts +2 -1
- package/dist/api/types/SleepColumnExprSleep.js +1 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/index.d.ts +5 -5
- package/dist/serialization/resources/index.js +6 -6
- package/dist/serialization/types/AggregateExprArg.d.ts +3 -1
- package/dist/serialization/types/AggregateExprArg.js +4 -0
- package/dist/serialization/types/AsleepAtValueMacroExpr.d.ts +13 -0
- package/dist/serialization/types/AsleepAtValueMacroExpr.js +34 -0
- package/dist/serialization/types/AwakeAtValueMacroExpr.d.ts +13 -0
- package/dist/serialization/types/AwakeAtValueMacroExpr.js +34 -0
- package/dist/serialization/types/QueryGroupByItem.d.ts +3 -1
- package/dist/serialization/types/QueryGroupByItem.js +4 -0
- package/dist/serialization/types/QuerySelectItem.d.ts +3 -1
- package/dist/serialization/types/QuerySelectItem.js +4 -0
- package/dist/serialization/types/SleepColumnExprSleep.d.ts +1 -1
- package/dist/serialization/types/SleepColumnExprSleep.js +1 -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/reference.md +1947 -1947
- package/serialization/resources/index.d.ts +5 -5
- package/serialization/resources/index.js +6 -6
- package/serialization/types/AggregateExprArg.d.ts +3 -1
- package/serialization/types/AggregateExprArg.js +4 -0
- package/serialization/types/AsleepAtValueMacroExpr.d.ts +13 -0
- package/serialization/types/AsleepAtValueMacroExpr.js +34 -0
- package/serialization/types/AwakeAtValueMacroExpr.d.ts +13 -0
- package/serialization/types/AwakeAtValueMacroExpr.js +34 -0
- package/serialization/types/QueryGroupByItem.d.ts +3 -1
- package/serialization/types/QueryGroupByItem.js +4 -0
- package/serialization/types/QuerySelectItem.d.ts +3 -1
- package/serialization/types/QuerySelectItem.js +4 -0
- package/serialization/types/SleepColumnExprSleep.d.ts +1 -1
- package/serialization/types/SleepColumnExprSleep.js +1 -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
|
@@ -21,16 +21,6 @@ export declare namespace Workouts {
|
|
|
21
21
|
export declare class Workouts {
|
|
22
22
|
protected readonly _options: Workouts.Options;
|
|
23
23
|
constructor(_options?: Workouts.Options);
|
|
24
|
-
/**
|
|
25
|
-
* @param {string} workoutId - The Vital ID for the workout
|
|
26
|
-
* @param {Workouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
-
*
|
|
28
|
-
* @throws {@link Vital.UnprocessableEntityError}
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* await client.workouts.getByWorkoutId("workout_id")
|
|
32
|
-
*/
|
|
33
|
-
getByWorkoutId(workoutId: string, requestOptions?: Workouts.RequestOptions): Promise<Vital.ClientFacingStream>;
|
|
34
24
|
/**
|
|
35
25
|
* Get workout summary for user_id
|
|
36
26
|
*
|
|
@@ -61,6 +51,16 @@ export declare class Workouts {
|
|
|
61
51
|
* })
|
|
62
52
|
*/
|
|
63
53
|
getRaw(userId: string, request: Vital.WorkoutsGetRawRequest, requestOptions?: Workouts.RequestOptions): Promise<Vital.RawWorkout>;
|
|
54
|
+
/**
|
|
55
|
+
* @param {string} workoutId - The Vital ID for the workout
|
|
56
|
+
* @param {Workouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await client.workouts.getByWorkoutId("workout_id")
|
|
62
|
+
*/
|
|
63
|
+
getByWorkoutId(workoutId: string, requestOptions?: Workouts.RequestOptions): Promise<Vital.ClientFacingStream>;
|
|
64
64
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
65
65
|
"x-vital-api-key": string | undefined;
|
|
66
66
|
}>;
|
|
@@ -50,29 +50,44 @@ class Workouts {
|
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Get workout summary for user_id
|
|
54
|
+
*
|
|
55
|
+
* @param {string} userId
|
|
56
|
+
* @param {Vital.WorkoutsGetRequest} request
|
|
54
57
|
* @param {Workouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
58
|
*
|
|
56
59
|
* @throws {@link Vital.UnprocessableEntityError}
|
|
57
60
|
*
|
|
58
61
|
* @example
|
|
59
|
-
* await client.workouts.
|
|
62
|
+
* await client.workouts.get("user_id", {
|
|
63
|
+
* startDate: "start_date"
|
|
64
|
+
* })
|
|
60
65
|
*/
|
|
61
|
-
|
|
66
|
+
get(userId, request, requestOptions) {
|
|
62
67
|
var _a;
|
|
63
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const { provider, startDate, endDate } = request;
|
|
70
|
+
const _queryParams = {};
|
|
71
|
+
if (provider != null) {
|
|
72
|
+
_queryParams["provider"] = provider;
|
|
73
|
+
}
|
|
74
|
+
_queryParams["start_date"] = startDate;
|
|
75
|
+
if (endDate != null) {
|
|
76
|
+
_queryParams["end_date"] = endDate;
|
|
77
|
+
}
|
|
64
78
|
const _response = yield core.fetcher({
|
|
65
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/
|
|
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)}`),
|
|
66
80
|
method: "GET",
|
|
67
|
-
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.382", "User-Agent": "@tryvital/vital-node/3.1.382", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
82
|
contentType: "application/json",
|
|
83
|
+
queryParameters: _queryParams,
|
|
69
84
|
requestType: "json",
|
|
70
85
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
71
86
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
72
87
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
73
88
|
});
|
|
74
89
|
if (_response.ok) {
|
|
75
|
-
return serializers.
|
|
90
|
+
return serializers.ClientWorkoutResponse.parseOrThrow(_response.body, {
|
|
76
91
|
unrecognizedObjectKeys: "passthrough",
|
|
77
92
|
allowUnrecognizedUnionMembers: true,
|
|
78
93
|
allowUnrecognizedEnumValues: true,
|
|
@@ -111,20 +126,20 @@ class Workouts {
|
|
|
111
126
|
});
|
|
112
127
|
}
|
|
113
128
|
/**
|
|
114
|
-
* Get workout summary for user_id
|
|
129
|
+
* Get raw workout summary for user_id
|
|
115
130
|
*
|
|
116
131
|
* @param {string} userId
|
|
117
|
-
* @param {Vital.
|
|
132
|
+
* @param {Vital.WorkoutsGetRawRequest} request
|
|
118
133
|
* @param {Workouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
134
|
*
|
|
120
135
|
* @throws {@link Vital.UnprocessableEntityError}
|
|
121
136
|
*
|
|
122
137
|
* @example
|
|
123
|
-
* await client.workouts.
|
|
138
|
+
* await client.workouts.getRaw("user_id", {
|
|
124
139
|
* startDate: "start_date"
|
|
125
140
|
* })
|
|
126
141
|
*/
|
|
127
|
-
|
|
142
|
+
getRaw(userId, request, requestOptions) {
|
|
128
143
|
var _a;
|
|
129
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
130
145
|
const { provider, startDate, endDate } = request;
|
|
@@ -137,9 +152,9 @@ class Workouts {
|
|
|
137
152
|
_queryParams["end_date"] = endDate;
|
|
138
153
|
}
|
|
139
154
|
const _response = yield core.fetcher({
|
|
140
|
-
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)}`),
|
|
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`),
|
|
141
156
|
method: "GET",
|
|
142
|
-
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.382", "User-Agent": "@tryvital/vital-node/3.1.382", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
143
158
|
contentType: "application/json",
|
|
144
159
|
queryParameters: _queryParams,
|
|
145
160
|
requestType: "json",
|
|
@@ -148,7 +163,7 @@ class Workouts {
|
|
|
148
163
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
149
164
|
});
|
|
150
165
|
if (_response.ok) {
|
|
151
|
-
return serializers.
|
|
166
|
+
return serializers.RawWorkout.parseOrThrow(_response.body, {
|
|
152
167
|
unrecognizedObjectKeys: "passthrough",
|
|
153
168
|
allowUnrecognizedUnionMembers: true,
|
|
154
169
|
allowUnrecognizedEnumValues: true,
|
|
@@ -187,44 +202,29 @@ class Workouts {
|
|
|
187
202
|
});
|
|
188
203
|
}
|
|
189
204
|
/**
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
* @param {string} userId
|
|
193
|
-
* @param {Vital.WorkoutsGetRawRequest} request
|
|
205
|
+
* @param {string} workoutId - The Vital ID for the workout
|
|
194
206
|
* @param {Workouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
207
|
*
|
|
196
208
|
* @throws {@link Vital.UnprocessableEntityError}
|
|
197
209
|
*
|
|
198
210
|
* @example
|
|
199
|
-
* await client.workouts.
|
|
200
|
-
* startDate: "start_date"
|
|
201
|
-
* })
|
|
211
|
+
* await client.workouts.getByWorkoutId("workout_id")
|
|
202
212
|
*/
|
|
203
|
-
|
|
213
|
+
getByWorkoutId(workoutId, requestOptions) {
|
|
204
214
|
var _a;
|
|
205
215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
-
const { provider, startDate, endDate } = request;
|
|
207
|
-
const _queryParams = {};
|
|
208
|
-
if (provider != null) {
|
|
209
|
-
_queryParams["provider"] = provider;
|
|
210
|
-
}
|
|
211
|
-
_queryParams["start_date"] = startDate;
|
|
212
|
-
if (endDate != null) {
|
|
213
|
-
_queryParams["end_date"] = endDate;
|
|
214
|
-
}
|
|
215
216
|
const _response = yield core.fetcher({
|
|
216
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/
|
|
217
|
+
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`),
|
|
217
218
|
method: "GET",
|
|
218
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
|
219
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.382", "User-Agent": "@tryvital/vital-node/3.1.382", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
219
220
|
contentType: "application/json",
|
|
220
|
-
queryParameters: _queryParams,
|
|
221
221
|
requestType: "json",
|
|
222
222
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
223
223
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
224
224
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
225
225
|
});
|
|
226
226
|
if (_response.ok) {
|
|
227
|
-
return serializers.
|
|
227
|
+
return serializers.ClientFacingStream.parseOrThrow(_response.body, {
|
|
228
228
|
unrecognizedObjectKeys: "passthrough",
|
|
229
229
|
allowUnrecognizedUnionMembers: true,
|
|
230
230
|
allowUnrecognizedEnumValues: true,
|
|
@@ -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.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.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.AsleepAtValueMacroExpr | Vital.AwakeAtValueMacroExpr | Vital.UnrecognizedValueMacroExpr | Vital.DiscreteTimeseriesExpr | Vital.IntervalTimeseriesExpr | Vital.BloodPressureTimeseriesExpr | Vital.TemperatureTimeseriesExpr | Vital.WorkoutDurationTimeseriesExpr | Vital.NoteTimeseriesExpr | Vital.IndexColumnExpr;
|
|
@@ -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.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.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.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.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;
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* ℹ️ This enum is non-exhaustive.
|
|
6
6
|
*/
|
|
7
|
-
export declare type SleepColumnExprSleep = "session_start" | "session_end" | "state" | "type" | "duration_second" | "stage_asleep_second" | "stage_awake_second" | "stage_light_second" | "stage_rem_second" | "stage_deep_second" | "stage_unknown_second" | "latency_second" | "heart_rate_minimum" | "heart_rate_mean" | "heart_rate_maximum" | "heart_rate_dip" | "heart_rate_resting" | "efficiency" | "hrv_mean_rmssd" | "hrv_mean_sdnn" | "skin_temperature" | "skin_temperature_delta" | "respiratory_rate" | "score" | "source_type" | "source_provider" | "source_app_id" | "source_device_id" | "time_zone";
|
|
7
|
+
export declare type SleepColumnExprSleep = "id" | "session_start" | "session_end" | "state" | "type" | "duration_second" | "stage_asleep_second" | "stage_awake_second" | "stage_light_second" | "stage_rem_second" | "stage_deep_second" | "stage_unknown_second" | "latency_second" | "heart_rate_minimum" | "heart_rate_mean" | "heart_rate_maximum" | "heart_rate_dip" | "heart_rate_resting" | "efficiency" | "hrv_mean_rmssd" | "hrv_mean_sdnn" | "skin_temperature" | "skin_temperature_delta" | "respiratory_rate" | "score" | "source_type" | "source_provider" | "source_app_id" | "source_device_id" | "time_zone";
|
|
8
8
|
export declare const SleepColumnExprSleep: {
|
|
9
|
+
readonly Id: "id";
|
|
9
10
|
readonly SessionStart: "session_start";
|
|
10
11
|
readonly SessionEnd: "session_end";
|
|
11
12
|
readonly State: "state";
|
|
@@ -23,9 +23,11 @@ export * from "./AppointmentServiceType";
|
|
|
23
23
|
export * from "./AppointmentStatus";
|
|
24
24
|
export * from "./AppointmentType";
|
|
25
25
|
export * from "./AreaInfo";
|
|
26
|
+
export * from "./AsleepAtValueMacroExpr";
|
|
26
27
|
export * from "./AttemptStatus";
|
|
27
28
|
export * from "./AuthType";
|
|
28
29
|
export * from "./Availability";
|
|
30
|
+
export * from "./AwakeAtValueMacroExpr";
|
|
29
31
|
export * from "./BasalBodyTemperatureEntry";
|
|
30
32
|
export * from "./Billing";
|
|
31
33
|
export * from "./BiomarkerResult";
|
package/dist/api/types/index.js
CHANGED
|
@@ -39,9 +39,11 @@ __exportStar(require("./AppointmentServiceType"), exports);
|
|
|
39
39
|
__exportStar(require("./AppointmentStatus"), exports);
|
|
40
40
|
__exportStar(require("./AppointmentType"), exports);
|
|
41
41
|
__exportStar(require("./AreaInfo"), exports);
|
|
42
|
+
__exportStar(require("./AsleepAtValueMacroExpr"), exports);
|
|
42
43
|
__exportStar(require("./AttemptStatus"), exports);
|
|
43
44
|
__exportStar(require("./AuthType"), exports);
|
|
44
45
|
__exportStar(require("./Availability"), exports);
|
|
46
|
+
__exportStar(require("./AwakeAtValueMacroExpr"), exports);
|
|
45
47
|
__exportStar(require("./BasalBodyTemperatureEntry"), exports);
|
|
46
48
|
__exportStar(require("./Billing"), exports);
|
|
47
49
|
__exportStar(require("./BiomarkerResult"), exports);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export * as labTests from "./labTests";
|
|
2
|
-
export * from "./labTests/types";
|
|
3
1
|
export * as link from "./link";
|
|
4
2
|
export * from "./link/types";
|
|
3
|
+
export * as labTests from "./labTests";
|
|
4
|
+
export * from "./labTests/types";
|
|
5
5
|
export * as aggregate from "./aggregate";
|
|
6
6
|
export * from "./aggregate/types";
|
|
7
|
-
export * as vitals from "./vitals";
|
|
8
7
|
export * as user from "./user";
|
|
9
8
|
export * as providers from "./providers";
|
|
10
9
|
export * as team from "./team";
|
|
10
|
+
export * as vitals from "./vitals";
|
|
11
11
|
export * as insurance from "./insurance";
|
|
12
|
+
export * from "./link/client/requests";
|
|
13
|
+
export * from "./user/client/requests";
|
|
12
14
|
export * as testkit from "./testkit";
|
|
13
15
|
export * from "./testkit/client/requests";
|
|
14
16
|
export * from "./labTests/client/requests";
|
|
15
17
|
export * as order from "./order";
|
|
16
18
|
export * from "./order/client/requests";
|
|
17
|
-
export * from "./link/client/requests";
|
|
18
|
-
export * from "./user/client/requests";
|
|
19
19
|
export * from "./insurance/client/requests";
|
|
20
20
|
export * as payor from "./payor";
|
|
21
21
|
export * from "./payor/client/requests";
|
|
@@ -26,25 +26,25 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.payor = exports.order = exports.testkit = exports.insurance = exports.
|
|
30
|
-
exports.labTests = __importStar(require("./labTests"));
|
|
31
|
-
__exportStar(require("./labTests/types"), exports);
|
|
29
|
+
exports.payor = exports.order = exports.testkit = exports.insurance = exports.vitals = exports.team = exports.providers = exports.user = exports.aggregate = exports.labTests = exports.link = void 0;
|
|
32
30
|
exports.link = __importStar(require("./link"));
|
|
33
31
|
__exportStar(require("./link/types"), exports);
|
|
32
|
+
exports.labTests = __importStar(require("./labTests"));
|
|
33
|
+
__exportStar(require("./labTests/types"), exports);
|
|
34
34
|
exports.aggregate = __importStar(require("./aggregate"));
|
|
35
35
|
__exportStar(require("./aggregate/types"), exports);
|
|
36
|
-
exports.vitals = __importStar(require("./vitals"));
|
|
37
36
|
exports.user = __importStar(require("./user"));
|
|
38
37
|
exports.providers = __importStar(require("./providers"));
|
|
39
38
|
exports.team = __importStar(require("./team"));
|
|
39
|
+
exports.vitals = __importStar(require("./vitals"));
|
|
40
40
|
exports.insurance = __importStar(require("./insurance"));
|
|
41
|
+
__exportStar(require("./link/client/requests"), exports);
|
|
42
|
+
__exportStar(require("./user/client/requests"), exports);
|
|
41
43
|
exports.testkit = __importStar(require("./testkit"));
|
|
42
44
|
__exportStar(require("./testkit/client/requests"), exports);
|
|
43
45
|
__exportStar(require("./labTests/client/requests"), exports);
|
|
44
46
|
exports.order = __importStar(require("./order"));
|
|
45
47
|
__exportStar(require("./order/client/requests"), exports);
|
|
46
|
-
__exportStar(require("./link/client/requests"), exports);
|
|
47
|
-
__exportStar(require("./user/client/requests"), exports);
|
|
48
48
|
__exportStar(require("./insurance/client/requests"), exports);
|
|
49
49
|
exports.payor = __importStar(require("./payor"));
|
|
50
50
|
__exportStar(require("./payor/client/requests"), exports);
|
|
@@ -11,6 +11,8 @@ import { BodyColumnExpr } from "./BodyColumnExpr";
|
|
|
11
11
|
import { MealColumnExpr } from "./MealColumnExpr";
|
|
12
12
|
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
|
13
13
|
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
|
14
|
+
import { AsleepAtValueMacroExpr } from "./AsleepAtValueMacroExpr";
|
|
15
|
+
import { AwakeAtValueMacroExpr } from "./AwakeAtValueMacroExpr";
|
|
14
16
|
import { UnrecognizedValueMacroExpr } from "./UnrecognizedValueMacroExpr";
|
|
15
17
|
import { DiscreteTimeseriesExpr } from "./DiscreteTimeseriesExpr";
|
|
16
18
|
import { IntervalTimeseriesExpr } from "./IntervalTimeseriesExpr";
|
|
@@ -21,5 +23,5 @@ import { NoteTimeseriesExpr } from "./NoteTimeseriesExpr";
|
|
|
21
23
|
import { IndexColumnExpr } from "./IndexColumnExpr";
|
|
22
24
|
export declare const AggregateExprArg: core.serialization.Schema<serializers.AggregateExprArg.Raw, Vital.AggregateExprArg>;
|
|
23
25
|
export declare namespace AggregateExprArg {
|
|
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;
|
|
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;
|
|
25
27
|
}
|
|
@@ -35,6 +35,8 @@ const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
|
|
35
35
|
const MealColumnExpr_1 = require("./MealColumnExpr");
|
|
36
36
|
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
|
37
37
|
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
|
38
|
+
const AsleepAtValueMacroExpr_1 = require("./AsleepAtValueMacroExpr");
|
|
39
|
+
const AwakeAtValueMacroExpr_1 = require("./AwakeAtValueMacroExpr");
|
|
38
40
|
const UnrecognizedValueMacroExpr_1 = require("./UnrecognizedValueMacroExpr");
|
|
39
41
|
const DiscreteTimeseriesExpr_1 = require("./DiscreteTimeseriesExpr");
|
|
40
42
|
const IntervalTimeseriesExpr_1 = require("./IntervalTimeseriesExpr");
|
|
@@ -51,6 +53,8 @@ exports.AggregateExprArg = core.serialization.undiscriminatedUnion([
|
|
|
51
53
|
MealColumnExpr_1.MealColumnExpr,
|
|
52
54
|
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
|
53
55
|
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
|
56
|
+
AsleepAtValueMacroExpr_1.AsleepAtValueMacroExpr,
|
|
57
|
+
AwakeAtValueMacroExpr_1.AwakeAtValueMacroExpr,
|
|
54
58
|
UnrecognizedValueMacroExpr_1.UnrecognizedValueMacroExpr,
|
|
55
59
|
DiscreteTimeseriesExpr_1.DiscreteTimeseriesExpr,
|
|
56
60
|
IntervalTimeseriesExpr_1.IntervalTimeseriesExpr,
|
|
@@ -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
|
+
export declare const AsleepAtValueMacroExpr: core.serialization.ObjectSchema<serializers.AsleepAtValueMacroExpr.Raw, Vital.AsleepAtValueMacroExpr>;
|
|
8
|
+
export declare namespace AsleepAtValueMacroExpr {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value_macro: "asleep_at";
|
|
11
|
+
version?: "automatic" | null;
|
|
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.AsleepAtValueMacroExpr = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.AsleepAtValueMacroExpr = core.serialization.object({
|
|
32
|
+
valueMacro: core.serialization.property("value_macro", core.serialization.stringLiteral("asleep_at")),
|
|
33
|
+
version: core.serialization.stringLiteral("automatic").optional(),
|
|
34
|
+
});
|
|
@@ -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
|
+
export declare const AwakeAtValueMacroExpr: core.serialization.ObjectSchema<serializers.AwakeAtValueMacroExpr.Raw, Vital.AwakeAtValueMacroExpr>;
|
|
8
|
+
export declare namespace AwakeAtValueMacroExpr {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value_macro: "awake_at";
|
|
11
|
+
version?: "automatic" | null;
|
|
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.AwakeAtValueMacroExpr = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.AwakeAtValueMacroExpr = core.serialization.object({
|
|
32
|
+
valueMacro: core.serialization.property("value_macro", core.serialization.stringLiteral("awake_at")),
|
|
33
|
+
version: core.serialization.stringLiteral("automatic").optional(),
|
|
34
|
+
});
|
|
@@ -13,6 +13,8 @@ import { BodyColumnExpr } from "./BodyColumnExpr";
|
|
|
13
13
|
import { MealColumnExpr } from "./MealColumnExpr";
|
|
14
14
|
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
|
15
15
|
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
|
16
|
+
import { AsleepAtValueMacroExpr } from "./AsleepAtValueMacroExpr";
|
|
17
|
+
import { AwakeAtValueMacroExpr } from "./AwakeAtValueMacroExpr";
|
|
16
18
|
import { UnrecognizedValueMacroExpr } from "./UnrecognizedValueMacroExpr";
|
|
17
19
|
import { DiscreteTimeseriesExpr } from "./DiscreteTimeseriesExpr";
|
|
18
20
|
import { IntervalTimeseriesExpr } from "./IntervalTimeseriesExpr";
|
|
@@ -23,5 +25,5 @@ import { NoteTimeseriesExpr } from "./NoteTimeseriesExpr";
|
|
|
23
25
|
import { SourceColumnExpr } from "./SourceColumnExpr";
|
|
24
26
|
export declare const QueryGroupByItem: core.serialization.Schema<serializers.QueryGroupByItem.Raw, Vital.QueryGroupByItem>;
|
|
25
27
|
export declare namespace QueryGroupByItem {
|
|
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;
|
|
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;
|
|
27
29
|
}
|
|
@@ -37,6 +37,8 @@ const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
|
|
37
37
|
const MealColumnExpr_1 = require("./MealColumnExpr");
|
|
38
38
|
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
|
39
39
|
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
|
40
|
+
const AsleepAtValueMacroExpr_1 = require("./AsleepAtValueMacroExpr");
|
|
41
|
+
const AwakeAtValueMacroExpr_1 = require("./AwakeAtValueMacroExpr");
|
|
40
42
|
const UnrecognizedValueMacroExpr_1 = require("./UnrecognizedValueMacroExpr");
|
|
41
43
|
const DiscreteTimeseriesExpr_1 = require("./DiscreteTimeseriesExpr");
|
|
42
44
|
const IntervalTimeseriesExpr_1 = require("./IntervalTimeseriesExpr");
|
|
@@ -55,6 +57,8 @@ exports.QueryGroupByItem = core.serialization.undiscriminatedUnion([
|
|
|
55
57
|
MealColumnExpr_1.MealColumnExpr,
|
|
56
58
|
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
|
57
59
|
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
|
60
|
+
AsleepAtValueMacroExpr_1.AsleepAtValueMacroExpr,
|
|
61
|
+
AwakeAtValueMacroExpr_1.AwakeAtValueMacroExpr,
|
|
58
62
|
UnrecognizedValueMacroExpr_1.UnrecognizedValueMacroExpr,
|
|
59
63
|
DiscreteTimeseriesExpr_1.DiscreteTimeseriesExpr,
|
|
60
64
|
IntervalTimeseriesExpr_1.IntervalTimeseriesExpr,
|
|
@@ -13,6 +13,8 @@ import { BodyColumnExpr } from "./BodyColumnExpr";
|
|
|
13
13
|
import { MealColumnExpr } from "./MealColumnExpr";
|
|
14
14
|
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
|
15
15
|
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
|
16
|
+
import { AsleepAtValueMacroExpr } from "./AsleepAtValueMacroExpr";
|
|
17
|
+
import { AwakeAtValueMacroExpr } from "./AwakeAtValueMacroExpr";
|
|
16
18
|
import { UnrecognizedValueMacroExpr } from "./UnrecognizedValueMacroExpr";
|
|
17
19
|
import { DiscreteTimeseriesExpr } from "./DiscreteTimeseriesExpr";
|
|
18
20
|
import { IntervalTimeseriesExpr } from "./IntervalTimeseriesExpr";
|
|
@@ -24,5 +26,5 @@ import { IndexColumnExpr } from "./IndexColumnExpr";
|
|
|
24
26
|
import { SourceColumnExpr } from "./SourceColumnExpr";
|
|
25
27
|
export declare const QuerySelectItem: core.serialization.Schema<serializers.QuerySelectItem.Raw, Vital.QuerySelectItem>;
|
|
26
28
|
export declare namespace QuerySelectItem {
|
|
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;
|
|
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;
|
|
28
30
|
}
|
|
@@ -37,6 +37,8 @@ const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
|
|
37
37
|
const MealColumnExpr_1 = require("./MealColumnExpr");
|
|
38
38
|
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
|
39
39
|
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
|
40
|
+
const AsleepAtValueMacroExpr_1 = require("./AsleepAtValueMacroExpr");
|
|
41
|
+
const AwakeAtValueMacroExpr_1 = require("./AwakeAtValueMacroExpr");
|
|
40
42
|
const UnrecognizedValueMacroExpr_1 = require("./UnrecognizedValueMacroExpr");
|
|
41
43
|
const DiscreteTimeseriesExpr_1 = require("./DiscreteTimeseriesExpr");
|
|
42
44
|
const IntervalTimeseriesExpr_1 = require("./IntervalTimeseriesExpr");
|
|
@@ -56,6 +58,8 @@ exports.QuerySelectItem = core.serialization.undiscriminatedUnion([
|
|
|
56
58
|
MealColumnExpr_1.MealColumnExpr,
|
|
57
59
|
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
|
58
60
|
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
|
61
|
+
AsleepAtValueMacroExpr_1.AsleepAtValueMacroExpr,
|
|
62
|
+
AwakeAtValueMacroExpr_1.AwakeAtValueMacroExpr,
|
|
59
63
|
UnrecognizedValueMacroExpr_1.UnrecognizedValueMacroExpr,
|
|
60
64
|
DiscreteTimeseriesExpr_1.DiscreteTimeseriesExpr,
|
|
61
65
|
IntervalTimeseriesExpr_1.IntervalTimeseriesExpr,
|
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const SleepColumnExprSleep: core.serialization.Schema<serializers.SleepColumnExprSleep.Raw, Vital.SleepColumnExprSleep>;
|
|
8
8
|
export declare namespace SleepColumnExprSleep {
|
|
9
|
-
type Raw = "session_start" | "session_end" | "state" | "type" | "duration_second" | "stage_asleep_second" | "stage_awake_second" | "stage_light_second" | "stage_rem_second" | "stage_deep_second" | "stage_unknown_second" | "latency_second" | "heart_rate_minimum" | "heart_rate_mean" | "heart_rate_maximum" | "heart_rate_dip" | "heart_rate_resting" | "efficiency" | "hrv_mean_rmssd" | "hrv_mean_sdnn" | "skin_temperature" | "skin_temperature_delta" | "respiratory_rate" | "score" | "source_type" | "source_provider" | "source_app_id" | "source_device_id" | "time_zone";
|
|
9
|
+
type Raw = "id" | "session_start" | "session_end" | "state" | "type" | "duration_second" | "stage_asleep_second" | "stage_awake_second" | "stage_light_second" | "stage_rem_second" | "stage_deep_second" | "stage_unknown_second" | "latency_second" | "heart_rate_minimum" | "heart_rate_mean" | "heart_rate_maximum" | "heart_rate_dip" | "heart_rate_resting" | "efficiency" | "hrv_mean_rmssd" | "hrv_mean_sdnn" | "skin_temperature" | "skin_temperature_delta" | "respiratory_rate" | "score" | "source_type" | "source_provider" | "source_app_id" | "source_device_id" | "time_zone";
|
|
10
10
|
}
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.SleepColumnExprSleep = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.SleepColumnExprSleep = core.serialization.enum_([
|
|
32
|
+
"id",
|
|
32
33
|
"session_start",
|
|
33
34
|
"session_end",
|
|
34
35
|
"state",
|
|
@@ -23,9 +23,11 @@ export * from "./AppointmentServiceType";
|
|
|
23
23
|
export * from "./AppointmentStatus";
|
|
24
24
|
export * from "./AppointmentType";
|
|
25
25
|
export * from "./AreaInfo";
|
|
26
|
+
export * from "./AsleepAtValueMacroExpr";
|
|
26
27
|
export * from "./AttemptStatus";
|
|
27
28
|
export * from "./AuthType";
|
|
28
29
|
export * from "./Availability";
|
|
30
|
+
export * from "./AwakeAtValueMacroExpr";
|
|
29
31
|
export * from "./BasalBodyTemperatureEntry";
|
|
30
32
|
export * from "./Billing";
|
|
31
33
|
export * from "./BiomarkerResult";
|
|
@@ -39,9 +39,11 @@ __exportStar(require("./AppointmentServiceType"), exports);
|
|
|
39
39
|
__exportStar(require("./AppointmentStatus"), exports);
|
|
40
40
|
__exportStar(require("./AppointmentType"), exports);
|
|
41
41
|
__exportStar(require("./AreaInfo"), exports);
|
|
42
|
+
__exportStar(require("./AsleepAtValueMacroExpr"), exports);
|
|
42
43
|
__exportStar(require("./AttemptStatus"), exports);
|
|
43
44
|
__exportStar(require("./AuthType"), exports);
|
|
44
45
|
__exportStar(require("./Availability"), exports);
|
|
46
|
+
__exportStar(require("./AwakeAtValueMacroExpr"), exports);
|
|
45
47
|
__exportStar(require("./BasalBodyTemperatureEntry"), exports);
|
|
46
48
|
__exportStar(require("./Billing"), exports);
|
|
47
49
|
__exportStar(require("./BiomarkerResult"), 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.382";
|
package/dist/version.js
CHANGED