@tryvital/vital-node 3.1.174 → 3.1.176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/aggregate/client/Client.js +1 -1
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/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.js +34 -34
- package/api/resources/link/client/Client.js +14 -14
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/sleepCycle/client/Client.js +1 -1
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +16 -16
- package/api/resources/vitals/client/Client.js +58 -58
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ClientFacingWorkout.d.ts +2 -2
- package/api/types/ClientFacingWorkoutMap.d.ts +9 -0
- package/api/types/ClientFacingWorkoutMap.js +5 -0
- package/api/types/WorkoutColumnExprWorkout.d.ts +3 -2
- package/api/types/WorkoutColumnExprWorkout.js +2 -1
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +1 -1
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/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.js +34 -34
- package/dist/api/resources/link/client/Client.js +14 -14
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/sleepCycle/client/Client.js +1 -1
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +16 -16
- package/dist/api/resources/vitals/client/Client.js +58 -58
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ClientFacingWorkout.d.ts +2 -2
- package/dist/api/types/ClientFacingWorkoutMap.d.ts +9 -0
- package/dist/api/types/ClientFacingWorkoutMap.js +5 -0
- package/dist/api/types/WorkoutColumnExprWorkout.d.ts +3 -2
- package/dist/api/types/WorkoutColumnExprWorkout.js +2 -1
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/types/ClientFacingWorkout.d.ts +2 -1
- package/dist/serialization/types/ClientFacingWorkout.js +2 -1
- package/dist/serialization/types/ClientFacingWorkoutMap.d.ts +13 -0
- package/dist/serialization/types/ClientFacingWorkoutMap.js +34 -0
- package/dist/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
- package/dist/serialization/types/WorkoutColumnExprWorkout.js +2 -1
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/ClientFacingWorkout.d.ts +2 -1
- package/serialization/types/ClientFacingWorkout.js +2 -1
- package/serialization/types/ClientFacingWorkoutMap.d.ts +13 -0
- package/serialization/types/ClientFacingWorkoutMap.js +34 -0
- package/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
- package/serialization/types/WorkoutColumnExprWorkout.js +2 -1
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
@@ -78,7 +78,7 @@ class Workouts {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.176", "User-Agent": "@tryvital/vital-node/3.1.176", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -154,7 +154,7 @@ class Workouts {
|
|
154
154
|
const _response = yield core.fetcher({
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}/raw`),
|
156
156
|
method: "GET",
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.176", "User-Agent": "@tryvital/vital-node/3.1.176", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
158
158
|
contentType: "application/json",
|
159
159
|
queryParameters: _queryParams,
|
160
160
|
requestType: "json",
|
@@ -216,7 +216,7 @@ class Workouts {
|
|
216
216
|
const _response = yield core.fetcher({
|
217
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`),
|
218
218
|
method: "GET",
|
219
|
-
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.176", "User-Agent": "@tryvital/vital-node/3.1.176", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
220
220
|
contentType: "application/json",
|
221
221
|
requestType: "json",
|
222
222
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -50,8 +50,8 @@ export interface ClientFacingWorkout {
|
|
50
50
|
weightedAverageWatts?: number;
|
51
51
|
/** Number of steps accumulated during this workout::count */
|
52
52
|
steps?: number;
|
53
|
-
/** Map of
|
54
|
-
map?:
|
53
|
+
/** Map of the workout */
|
54
|
+
map?: Vital.ClientFacingWorkoutMap;
|
55
55
|
/** Provider ID given for that specific workout */
|
56
56
|
providerId: string;
|
57
57
|
/** Source the data has come from. */
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export declare type WorkoutColumnExprWorkout = "session_start" | "session_end" | "title" | "sport_name" | "sport_slug" | "duration_active_second" | "heart_rate_mean" | "heart_rate_minimum" | "heart_rate_maximum" | "heart_rate_zone_1" | "heart_rate_zone_2" | "heart_rate_zone_3" | "heart_rate_zone_4" | "heart_rate_zone_5" | "heart_rate_zone_6" | "distance_meter" | "calories" | "elevation_gain_meter" | "elevation_maximum_meter" | "elevation_minimum_meter" | "speed_mean" | "speed_maximum" | "power_source" | "power_mean" | "power_maximum" | "power_weighted_mean" | "steps" | "
|
4
|
+
export declare type WorkoutColumnExprWorkout = "session_start" | "session_end" | "title" | "sport_name" | "sport_slug" | "duration_active_second" | "heart_rate_mean" | "heart_rate_minimum" | "heart_rate_maximum" | "heart_rate_zone_1" | "heart_rate_zone_2" | "heart_rate_zone_3" | "heart_rate_zone_4" | "heart_rate_zone_5" | "heart_rate_zone_6" | "distance_meter" | "calories" | "elevation_gain_meter" | "elevation_maximum_meter" | "elevation_minimum_meter" | "speed_mean" | "speed_maximum" | "power_source" | "power_mean" | "power_maximum" | "power_weighted_mean" | "steps" | "map_polyline" | "map_summary_polyline" | "source_type" | "source_provider" | "source_app_id";
|
5
5
|
export declare const WorkoutColumnExprWorkout: {
|
6
6
|
readonly SessionStart: "session_start";
|
7
7
|
readonly SessionEnd: "session_end";
|
@@ -30,7 +30,8 @@ export declare const WorkoutColumnExprWorkout: {
|
|
30
30
|
readonly PowerMaximum: "power_maximum";
|
31
31
|
readonly PowerWeightedMean: "power_weighted_mean";
|
32
32
|
readonly Steps: "steps";
|
33
|
-
readonly
|
33
|
+
readonly MapPolyline: "map_polyline";
|
34
|
+
readonly MapSummaryPolyline: "map_summary_polyline";
|
34
35
|
readonly SourceType: "source_type";
|
35
36
|
readonly SourceProvider: "source_provider";
|
36
37
|
readonly SourceAppId: "source_app_id";
|
@@ -32,7 +32,8 @@ exports.WorkoutColumnExprWorkout = {
|
|
32
32
|
PowerMaximum: "power_maximum",
|
33
33
|
PowerWeightedMean: "power_weighted_mean",
|
34
34
|
Steps: "steps",
|
35
|
-
|
35
|
+
MapPolyline: "map_polyline",
|
36
|
+
MapSummaryPolyline: "map_summary_polyline",
|
36
37
|
SourceType: "source_type",
|
37
38
|
SourceProvider: "source_provider",
|
38
39
|
SourceAppId: "source_app_id",
|
@@ -165,6 +165,7 @@ export * from "./ClientFacingWaterTimeseries";
|
|
165
165
|
export * from "./ClientFacingWorkout";
|
166
166
|
export * from "./ClientFacingWorkoutDurationSampleIntensity";
|
167
167
|
export * from "./ClientFacingWorkoutDurationSample";
|
168
|
+
export * from "./ClientFacingWorkoutMap";
|
168
169
|
export * from "./ClientSleepCycleResponse";
|
169
170
|
export * from "./ClientSleepResponse";
|
170
171
|
export * from "./ClientUserIdConflict";
|
package/dist/api/types/index.js
CHANGED
@@ -181,6 +181,7 @@ __exportStar(require("./ClientFacingWaterTimeseries"), exports);
|
|
181
181
|
__exportStar(require("./ClientFacingWorkout"), exports);
|
182
182
|
__exportStar(require("./ClientFacingWorkoutDurationSampleIntensity"), exports);
|
183
183
|
__exportStar(require("./ClientFacingWorkoutDurationSample"), exports);
|
184
|
+
__exportStar(require("./ClientFacingWorkoutMap"), exports);
|
184
185
|
__exportStar(require("./ClientSleepCycleResponse"), exports);
|
185
186
|
__exportStar(require("./ClientSleepResponse"), exports);
|
186
187
|
__exportStar(require("./ClientUserIdConflict"), exports);
|
@@ -5,6 +5,7 @@ import * as serializers from "../index";
|
|
5
5
|
import * as Vital from "../../api/index";
|
6
6
|
import * as core from "../../core";
|
7
7
|
import { ClientFacingSport } from "./ClientFacingSport";
|
8
|
+
import { ClientFacingWorkoutMap } from "./ClientFacingWorkoutMap";
|
8
9
|
import { ClientFacingSource } from "./ClientFacingSource";
|
9
10
|
export declare const ClientFacingWorkout: core.serialization.ObjectSchema<serializers.ClientFacingWorkout.Raw, Vital.ClientFacingWorkout>;
|
10
11
|
export declare namespace ClientFacingWorkout {
|
@@ -33,7 +34,7 @@ export declare namespace ClientFacingWorkout {
|
|
33
34
|
max_watts?: number | null;
|
34
35
|
weighted_average_watts?: number | null;
|
35
36
|
steps?: number | null;
|
36
|
-
map?:
|
37
|
+
map?: ClientFacingWorkoutMap.Raw | null;
|
37
38
|
provider_id: string;
|
38
39
|
source: ClientFacingSource.Raw;
|
39
40
|
}
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ClientFacingWorkout = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const ClientFacingSport_1 = require("./ClientFacingSport");
|
32
|
+
const ClientFacingWorkoutMap_1 = require("./ClientFacingWorkoutMap");
|
32
33
|
const ClientFacingSource_1 = require("./ClientFacingSource");
|
33
34
|
exports.ClientFacingWorkout = core.serialization.object({
|
34
35
|
userId: core.serialization.property("user_id", core.serialization.string()),
|
@@ -55,7 +56,7 @@ exports.ClientFacingWorkout = core.serialization.object({
|
|
55
56
|
maxWatts: core.serialization.property("max_watts", core.serialization.number().optional()),
|
56
57
|
weightedAverageWatts: core.serialization.property("weighted_average_watts", core.serialization.number().optional()),
|
57
58
|
steps: core.serialization.number().optional(),
|
58
|
-
map:
|
59
|
+
map: ClientFacingWorkoutMap_1.ClientFacingWorkoutMap.optional(),
|
59
60
|
providerId: core.serialization.property("provider_id", core.serialization.string()),
|
60
61
|
source: ClientFacingSource_1.ClientFacingSource,
|
61
62
|
});
|
@@ -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 ClientFacingWorkoutMap: core.serialization.ObjectSchema<serializers.ClientFacingWorkoutMap.Raw, Vital.ClientFacingWorkoutMap>;
|
8
|
+
export declare namespace ClientFacingWorkoutMap {
|
9
|
+
interface Raw {
|
10
|
+
polyline?: string | null;
|
11
|
+
summary_polyline?: string | 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.ClientFacingWorkoutMap = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.ClientFacingWorkoutMap = core.serialization.object({
|
32
|
+
polyline: core.serialization.string().optional(),
|
33
|
+
summaryPolyline: core.serialization.property("summary_polyline", core.serialization.string().optional()),
|
34
|
+
});
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
7
7
|
export declare const WorkoutColumnExprWorkout: core.serialization.Schema<serializers.WorkoutColumnExprWorkout.Raw, Vital.WorkoutColumnExprWorkout>;
|
8
8
|
export declare namespace WorkoutColumnExprWorkout {
|
9
|
-
type Raw = "session_start" | "session_end" | "title" | "sport_name" | "sport_slug" | "duration_active_second" | "heart_rate_mean" | "heart_rate_minimum" | "heart_rate_maximum" | "heart_rate_zone_1" | "heart_rate_zone_2" | "heart_rate_zone_3" | "heart_rate_zone_4" | "heart_rate_zone_5" | "heart_rate_zone_6" | "distance_meter" | "calories" | "elevation_gain_meter" | "elevation_maximum_meter" | "elevation_minimum_meter" | "speed_mean" | "speed_maximum" | "power_source" | "power_mean" | "power_maximum" | "power_weighted_mean" | "steps" | "
|
9
|
+
type Raw = "session_start" | "session_end" | "title" | "sport_name" | "sport_slug" | "duration_active_second" | "heart_rate_mean" | "heart_rate_minimum" | "heart_rate_maximum" | "heart_rate_zone_1" | "heart_rate_zone_2" | "heart_rate_zone_3" | "heart_rate_zone_4" | "heart_rate_zone_5" | "heart_rate_zone_6" | "distance_meter" | "calories" | "elevation_gain_meter" | "elevation_maximum_meter" | "elevation_minimum_meter" | "speed_mean" | "speed_maximum" | "power_source" | "power_mean" | "power_maximum" | "power_weighted_mean" | "steps" | "map_polyline" | "map_summary_polyline" | "source_type" | "source_provider" | "source_app_id";
|
10
10
|
}
|
@@ -165,6 +165,7 @@ export * from "./ClientFacingWaterTimeseries";
|
|
165
165
|
export * from "./ClientFacingWorkout";
|
166
166
|
export * from "./ClientFacingWorkoutDurationSampleIntensity";
|
167
167
|
export * from "./ClientFacingWorkoutDurationSample";
|
168
|
+
export * from "./ClientFacingWorkoutMap";
|
168
169
|
export * from "./ClientSleepCycleResponse";
|
169
170
|
export * from "./ClientSleepResponse";
|
170
171
|
export * from "./ClientUserIdConflict";
|
@@ -181,6 +181,7 @@ __exportStar(require("./ClientFacingWaterTimeseries"), exports);
|
|
181
181
|
__exportStar(require("./ClientFacingWorkout"), exports);
|
182
182
|
__exportStar(require("./ClientFacingWorkoutDurationSampleIntensity"), exports);
|
183
183
|
__exportStar(require("./ClientFacingWorkoutDurationSample"), exports);
|
184
|
+
__exportStar(require("./ClientFacingWorkoutMap"), exports);
|
184
185
|
__exportStar(require("./ClientSleepCycleResponse"), exports);
|
185
186
|
__exportStar(require("./ClientSleepResponse"), exports);
|
186
187
|
__exportStar(require("./ClientUserIdConflict"), 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.176";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
@@ -5,6 +5,7 @@ import * as serializers from "../index";
|
|
5
5
|
import * as Vital from "../../api/index";
|
6
6
|
import * as core from "../../core";
|
7
7
|
import { ClientFacingSport } from "./ClientFacingSport";
|
8
|
+
import { ClientFacingWorkoutMap } from "./ClientFacingWorkoutMap";
|
8
9
|
import { ClientFacingSource } from "./ClientFacingSource";
|
9
10
|
export declare const ClientFacingWorkout: core.serialization.ObjectSchema<serializers.ClientFacingWorkout.Raw, Vital.ClientFacingWorkout>;
|
10
11
|
export declare namespace ClientFacingWorkout {
|
@@ -33,7 +34,7 @@ export declare namespace ClientFacingWorkout {
|
|
33
34
|
max_watts?: number | null;
|
34
35
|
weighted_average_watts?: number | null;
|
35
36
|
steps?: number | null;
|
36
|
-
map?:
|
37
|
+
map?: ClientFacingWorkoutMap.Raw | null;
|
37
38
|
provider_id: string;
|
38
39
|
source: ClientFacingSource.Raw;
|
39
40
|
}
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ClientFacingWorkout = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const ClientFacingSport_1 = require("./ClientFacingSport");
|
32
|
+
const ClientFacingWorkoutMap_1 = require("./ClientFacingWorkoutMap");
|
32
33
|
const ClientFacingSource_1 = require("./ClientFacingSource");
|
33
34
|
exports.ClientFacingWorkout = core.serialization.object({
|
34
35
|
userId: core.serialization.property("user_id", core.serialization.string()),
|
@@ -55,7 +56,7 @@ exports.ClientFacingWorkout = core.serialization.object({
|
|
55
56
|
maxWatts: core.serialization.property("max_watts", core.serialization.number().optional()),
|
56
57
|
weightedAverageWatts: core.serialization.property("weighted_average_watts", core.serialization.number().optional()),
|
57
58
|
steps: core.serialization.number().optional(),
|
58
|
-
map:
|
59
|
+
map: ClientFacingWorkoutMap_1.ClientFacingWorkoutMap.optional(),
|
59
60
|
providerId: core.serialization.property("provider_id", core.serialization.string()),
|
60
61
|
source: ClientFacingSource_1.ClientFacingSource,
|
61
62
|
});
|
@@ -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 ClientFacingWorkoutMap: core.serialization.ObjectSchema<serializers.ClientFacingWorkoutMap.Raw, Vital.ClientFacingWorkoutMap>;
|
8
|
+
export declare namespace ClientFacingWorkoutMap {
|
9
|
+
interface Raw {
|
10
|
+
polyline?: string | null;
|
11
|
+
summary_polyline?: string | 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.ClientFacingWorkoutMap = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.ClientFacingWorkoutMap = core.serialization.object({
|
32
|
+
polyline: core.serialization.string().optional(),
|
33
|
+
summaryPolyline: core.serialization.property("summary_polyline", core.serialization.string().optional()),
|
34
|
+
});
|
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
7
7
|
export declare const WorkoutColumnExprWorkout: core.serialization.Schema<serializers.WorkoutColumnExprWorkout.Raw, Vital.WorkoutColumnExprWorkout>;
|
8
8
|
export declare namespace WorkoutColumnExprWorkout {
|
9
|
-
type Raw = "session_start" | "session_end" | "title" | "sport_name" | "sport_slug" | "duration_active_second" | "heart_rate_mean" | "heart_rate_minimum" | "heart_rate_maximum" | "heart_rate_zone_1" | "heart_rate_zone_2" | "heart_rate_zone_3" | "heart_rate_zone_4" | "heart_rate_zone_5" | "heart_rate_zone_6" | "distance_meter" | "calories" | "elevation_gain_meter" | "elevation_maximum_meter" | "elevation_minimum_meter" | "speed_mean" | "speed_maximum" | "power_source" | "power_mean" | "power_maximum" | "power_weighted_mean" | "steps" | "
|
9
|
+
type Raw = "session_start" | "session_end" | "title" | "sport_name" | "sport_slug" | "duration_active_second" | "heart_rate_mean" | "heart_rate_minimum" | "heart_rate_maximum" | "heart_rate_zone_1" | "heart_rate_zone_2" | "heart_rate_zone_3" | "heart_rate_zone_4" | "heart_rate_zone_5" | "heart_rate_zone_6" | "distance_meter" | "calories" | "elevation_gain_meter" | "elevation_maximum_meter" | "elevation_minimum_meter" | "speed_mean" | "speed_maximum" | "power_source" | "power_mean" | "power_maximum" | "power_weighted_mean" | "steps" | "map_polyline" | "map_summary_polyline" | "source_type" | "source_provider" | "source_app_id";
|
10
10
|
}
|
@@ -165,6 +165,7 @@ export * from "./ClientFacingWaterTimeseries";
|
|
165
165
|
export * from "./ClientFacingWorkout";
|
166
166
|
export * from "./ClientFacingWorkoutDurationSampleIntensity";
|
167
167
|
export * from "./ClientFacingWorkoutDurationSample";
|
168
|
+
export * from "./ClientFacingWorkoutMap";
|
168
169
|
export * from "./ClientSleepCycleResponse";
|
169
170
|
export * from "./ClientSleepResponse";
|
170
171
|
export * from "./ClientUserIdConflict";
|
@@ -181,6 +181,7 @@ __exportStar(require("./ClientFacingWaterTimeseries"), exports);
|
|
181
181
|
__exportStar(require("./ClientFacingWorkout"), exports);
|
182
182
|
__exportStar(require("./ClientFacingWorkoutDurationSampleIntensity"), exports);
|
183
183
|
__exportStar(require("./ClientFacingWorkoutDurationSample"), exports);
|
184
|
+
__exportStar(require("./ClientFacingWorkoutMap"), exports);
|
184
185
|
__exportStar(require("./ClientSleepCycleResponse"), exports);
|
185
186
|
__exportStar(require("./ClientSleepResponse"), exports);
|
186
187
|
__exportStar(require("./ClientUserIdConflict"), exports);
|
package/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
1
|
+
export declare const SDK_VERSION = "3.1.176";
|
package/version.js
CHANGED