@tryvital/vital-node 3.1.173 → 3.1.175
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.d.ts +3 -3
- package/api/resources/link/client/Client.js +17 -32
- 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/WorkoutColumnExprWorkout.d.ts +3 -2
- package/api/types/WorkoutColumnExprWorkout.js +2 -1
- package/api/types/index.d.ts +1 -2
- package/api/types/index.js +1 -2
- 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.d.ts +3 -3
- package/dist/api/resources/link/client/Client.js +17 -32
- 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/WorkoutColumnExprWorkout.d.ts +3 -2
- package/dist/api/types/WorkoutColumnExprWorkout.js +2 -1
- package/dist/api/types/index.d.ts +1 -2
- package/dist/api/types/index.js +1 -2
- 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/{ConnectionStatusState.js → ClientFacingWorkoutMap.js} +5 -2
- 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 -2
- package/dist/serialization/types/index.js +1 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +3 -3
- 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/{ConnectionStatusState.js → ClientFacingWorkoutMap.js} +5 -2
- package/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
- package/serialization/types/WorkoutColumnExprWorkout.js +2 -1
- package/serialization/types/index.d.ts +1 -2
- package/serialization/types/index.js +1 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/ConnectionStatus.d.ts +0 -12
- package/api/types/ConnectionStatusState.d.ts +0 -9
- package/api/types/ConnectionStatusState.js +0 -11
- package/dist/api/types/ConnectionStatus.d.ts +0 -12
- package/dist/api/types/ConnectionStatusState.d.ts +0 -9
- package/dist/api/types/ConnectionStatusState.js +0 -11
- package/dist/serialization/types/ConnectionStatus.d.ts +0 -19
- package/dist/serialization/types/ConnectionStatus.js +0 -40
- package/dist/serialization/types/ConnectionStatusState.d.ts +0 -10
- package/serialization/types/ConnectionStatus.d.ts +0 -19
- package/serialization/types/ConnectionStatus.js +0 -40
- package/serialization/types/ConnectionStatusState.d.ts +0 -10
- /package/api/types/{ConnectionStatus.js → ClientFacingWorkoutMap.js} +0 -0
- /package/dist/api/types/{ConnectionStatus.js → ClientFacingWorkoutMap.js} +0 -0
@@ -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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "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";
|
@@ -172,8 +173,6 @@ export * from "./ClientWorkoutResponse";
|
|
172
173
|
export * from "./CompanyDetails";
|
173
174
|
export * from "./ConnectedSourceClientFacing";
|
174
175
|
export * from "./ConnectionRecipe";
|
175
|
-
export * from "./ConnectionStatusState";
|
176
|
-
export * from "./ConnectionStatus";
|
177
176
|
export * from "./Consent";
|
178
177
|
export * from "./ConsentType";
|
179
178
|
export * from "./ContraceptiveEntryType";
|
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);
|
@@ -188,8 +189,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
|
|
188
189
|
__exportStar(require("./CompanyDetails"), exports);
|
189
190
|
__exportStar(require("./ConnectedSourceClientFacing"), exports);
|
190
191
|
__exportStar(require("./ConnectionRecipe"), exports);
|
191
|
-
__exportStar(require("./ConnectionStatusState"), exports);
|
192
|
-
__exportStar(require("./ConnectionStatus"), exports);
|
193
192
|
__exportStar(require("./Consent"), exports);
|
194
193
|
__exportStar(require("./ConsentType"), exports);
|
195
194
|
__exportStar(require("./ContraceptiveEntryType"), 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
|
+
}
|
@@ -26,6 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
26
|
return result;
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.
|
29
|
+
exports.ClientFacingWorkoutMap = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
exports.
|
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";
|
@@ -172,8 +173,6 @@ export * from "./ClientWorkoutResponse";
|
|
172
173
|
export * from "./CompanyDetails";
|
173
174
|
export * from "./ConnectedSourceClientFacing";
|
174
175
|
export * from "./ConnectionRecipe";
|
175
|
-
export * from "./ConnectionStatusState";
|
176
|
-
export * from "./ConnectionStatus";
|
177
176
|
export * from "./Consent";
|
178
177
|
export * from "./ConsentType";
|
179
178
|
export * from "./ContraceptiveEntryType";
|
@@ -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);
|
@@ -188,8 +189,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
|
|
188
189
|
__exportStar(require("./CompanyDetails"), exports);
|
189
190
|
__exportStar(require("./ConnectedSourceClientFacing"), exports);
|
190
191
|
__exportStar(require("./ConnectionRecipe"), exports);
|
191
|
-
__exportStar(require("./ConnectionStatusState"), exports);
|
192
|
-
__exportStar(require("./ConnectionStatus"), exports);
|
193
192
|
__exportStar(require("./Consent"), exports);
|
194
193
|
__exportStar(require("./ConsentType"), exports);
|
195
194
|
__exportStar(require("./ContraceptiveEntryType"), 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.175";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
@@ -318,7 +318,7 @@ await client.link.tokenState();
|
|
318
318
|
</dl>
|
319
319
|
</details>
|
320
320
|
|
321
|
-
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">emailAuth</a>({ ...params }) ->
|
321
|
+
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">emailAuth</a>({ ...params }) -> unknown</code></summary>
|
322
322
|
<dl>
|
323
323
|
<dd>
|
324
324
|
|
@@ -385,7 +385,7 @@ await client.link.emailAuth({
|
|
385
385
|
</dl>
|
386
386
|
</details>
|
387
387
|
|
388
|
-
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">passwordAuth</a>({ ...params }) ->
|
388
|
+
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">passwordAuth</a>({ ...params }) -> unknown</code></summary>
|
389
389
|
<dl>
|
390
390
|
<dd>
|
391
391
|
|
@@ -671,7 +671,7 @@ await client.link.completePasswordProviderMfa("whoop", {
|
|
671
671
|
</dl>
|
672
672
|
</details>
|
673
673
|
|
674
|
-
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">connectEmailAuthProvider</a>(provider, { ...params }) ->
|
674
|
+
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">connectEmailAuthProvider</a>(provider, { ...params }) -> unknown</code></summary>
|
675
675
|
<dl>
|
676
676
|
<dd>
|
677
677
|
|
@@ -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
|
+
}
|
@@ -26,6 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
26
|
return result;
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.
|
29
|
+
exports.ClientFacingWorkoutMap = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
exports.
|
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";
|
@@ -172,8 +173,6 @@ export * from "./ClientWorkoutResponse";
|
|
172
173
|
export * from "./CompanyDetails";
|
173
174
|
export * from "./ConnectedSourceClientFacing";
|
174
175
|
export * from "./ConnectionRecipe";
|
175
|
-
export * from "./ConnectionStatusState";
|
176
|
-
export * from "./ConnectionStatus";
|
177
176
|
export * from "./Consent";
|
178
177
|
export * from "./ConsentType";
|
179
178
|
export * from "./ContraceptiveEntryType";
|
@@ -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);
|
@@ -188,8 +189,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
|
|
188
189
|
__exportStar(require("./CompanyDetails"), exports);
|
189
190
|
__exportStar(require("./ConnectedSourceClientFacing"), exports);
|
190
191
|
__exportStar(require("./ConnectionRecipe"), exports);
|
191
|
-
__exportStar(require("./ConnectionStatusState"), exports);
|
192
|
-
__exportStar(require("./ConnectionStatus"), exports);
|
193
192
|
__exportStar(require("./Consent"), exports);
|
194
193
|
__exportStar(require("./ConsentType"), exports);
|
195
194
|
__exportStar(require("./ContraceptiveEntryType"), exports);
|
package/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
1
|
+
export declare const SDK_VERSION = "3.1.175";
|
package/version.js
CHANGED
@@ -1,12 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
import * as Vital from "../index";
|
5
|
-
export interface ConnectionStatus {
|
6
|
-
state: Vital.ConnectionStatusState;
|
7
|
-
redirectUrl?: string;
|
8
|
-
errorType?: string;
|
9
|
-
error?: string;
|
10
|
-
providerMfa?: Vital.ProviderMfaRequest;
|
11
|
-
success: boolean;
|
12
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
export declare type ConnectionStatusState = "success" | "error" | "pending_provider_mfa";
|
5
|
-
export declare const ConnectionStatusState: {
|
6
|
-
readonly Success: "success";
|
7
|
-
readonly Error: "error";
|
8
|
-
readonly PendingProviderMfa: "pending_provider_mfa";
|
9
|
-
};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
4
|
-
*/
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.ConnectionStatusState = void 0;
|
7
|
-
exports.ConnectionStatusState = {
|
8
|
-
Success: "success",
|
9
|
-
Error: "error",
|
10
|
-
PendingProviderMfa: "pending_provider_mfa",
|
11
|
-
};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
import * as Vital from "../index";
|
5
|
-
export interface ConnectionStatus {
|
6
|
-
state: Vital.ConnectionStatusState;
|
7
|
-
redirectUrl?: string;
|
8
|
-
errorType?: string;
|
9
|
-
error?: string;
|
10
|
-
providerMfa?: Vital.ProviderMfaRequest;
|
11
|
-
success: boolean;
|
12
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
export declare type ConnectionStatusState = "success" | "error" | "pending_provider_mfa";
|
5
|
-
export declare const ConnectionStatusState: {
|
6
|
-
readonly Success: "success";
|
7
|
-
readonly Error: "error";
|
8
|
-
readonly PendingProviderMfa: "pending_provider_mfa";
|
9
|
-
};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
4
|
-
*/
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.ConnectionStatusState = void 0;
|
7
|
-
exports.ConnectionStatusState = {
|
8
|
-
Success: "success",
|
9
|
-
Error: "error",
|
10
|
-
PendingProviderMfa: "pending_provider_mfa",
|
11
|
-
};
|
@@ -1,19 +0,0 @@
|
|
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 { ConnectionStatusState } from "./ConnectionStatusState";
|
8
|
-
import { ProviderMfaRequest } from "./ProviderMfaRequest";
|
9
|
-
export declare const ConnectionStatus: core.serialization.ObjectSchema<serializers.ConnectionStatus.Raw, Vital.ConnectionStatus>;
|
10
|
-
export declare namespace ConnectionStatus {
|
11
|
-
interface Raw {
|
12
|
-
state: ConnectionStatusState.Raw;
|
13
|
-
redirect_url?: string | null;
|
14
|
-
error_type?: string | null;
|
15
|
-
error?: string | null;
|
16
|
-
provider_mfa?: ProviderMfaRequest.Raw | null;
|
17
|
-
success: boolean;
|
18
|
-
}
|
19
|
-
}
|
@@ -1,40 +0,0 @@
|
|
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.ConnectionStatus = void 0;
|
30
|
-
const core = __importStar(require("../../core"));
|
31
|
-
const ConnectionStatusState_1 = require("./ConnectionStatusState");
|
32
|
-
const ProviderMfaRequest_1 = require("./ProviderMfaRequest");
|
33
|
-
exports.ConnectionStatus = core.serialization.object({
|
34
|
-
state: ConnectionStatusState_1.ConnectionStatusState,
|
35
|
-
redirectUrl: core.serialization.property("redirect_url", core.serialization.string().optional()),
|
36
|
-
errorType: core.serialization.property("error_type", core.serialization.string().optional()),
|
37
|
-
error: core.serialization.string().optional(),
|
38
|
-
providerMfa: core.serialization.property("provider_mfa", ProviderMfaRequest_1.ProviderMfaRequest.optional()),
|
39
|
-
success: core.serialization.boolean(),
|
40
|
-
});
|
@@ -1,10 +0,0 @@
|
|
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 ConnectionStatusState: core.serialization.Schema<serializers.ConnectionStatusState.Raw, Vital.ConnectionStatusState>;
|
8
|
-
export declare namespace ConnectionStatusState {
|
9
|
-
type Raw = "success" | "error" | "pending_provider_mfa";
|
10
|
-
}
|
@@ -1,19 +0,0 @@
|
|
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 { ConnectionStatusState } from "./ConnectionStatusState";
|
8
|
-
import { ProviderMfaRequest } from "./ProviderMfaRequest";
|
9
|
-
export declare const ConnectionStatus: core.serialization.ObjectSchema<serializers.ConnectionStatus.Raw, Vital.ConnectionStatus>;
|
10
|
-
export declare namespace ConnectionStatus {
|
11
|
-
interface Raw {
|
12
|
-
state: ConnectionStatusState.Raw;
|
13
|
-
redirect_url?: string | null;
|
14
|
-
error_type?: string | null;
|
15
|
-
error?: string | null;
|
16
|
-
provider_mfa?: ProviderMfaRequest.Raw | null;
|
17
|
-
success: boolean;
|
18
|
-
}
|
19
|
-
}
|