@tryvital/vital-node 3.1.135 → 3.1.137

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.
Files changed (164) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +1 -1
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/insurance/client/Client.js +2 -2
  6. package/api/resources/introspect/client/Client.js +2 -2
  7. package/api/resources/labTests/client/Client.js +34 -34
  8. package/api/resources/link/client/Client.js +14 -14
  9. package/api/resources/meal/client/Client.js +1 -1
  10. package/api/resources/menstrualCycle/client/Client.js +1 -1
  11. package/api/resources/profile/client/Client.js +2 -2
  12. package/api/resources/providers/client/Client.js +1 -1
  13. package/api/resources/sleep/client/Client.js +4 -4
  14. package/api/resources/sleepCycle/client/Client.js +1 -1
  15. package/api/resources/team/client/Client.js +7 -7
  16. package/api/resources/testkit/client/Client.js +2 -2
  17. package/api/resources/user/client/Client.js +16 -16
  18. package/api/resources/vitals/client/Client.d.ts +26 -0
  19. package/api/resources/vitals/client/Client.js +216 -56
  20. package/api/resources/vitals/client/requests/VitalsAfibBurdenGroupedRequest.d.ts +31 -0
  21. package/api/resources/vitals/client/requests/VitalsAfibBurdenGroupedRequest.js +5 -0
  22. package/api/resources/vitals/client/requests/VitalsHeartRateAlertGroupedRequest.d.ts +31 -0
  23. package/api/resources/vitals/client/requests/VitalsHeartRateAlertGroupedRequest.js +5 -0
  24. package/api/resources/vitals/client/requests/index.d.ts +2 -0
  25. package/api/resources/workouts/client/Client.js +3 -3
  26. package/api/types/AggregateExprArg.d.ts +1 -1
  27. package/api/types/ChronotypeValueMacroExpr.d.ts +7 -0
  28. package/api/types/ChronotypeValueMacroExpr.js +5 -0
  29. package/api/types/ClientFacingAFibBurdenSample.d.ts +20 -0
  30. package/api/types/ClientFacingAFibBurdenSample.js +5 -0
  31. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.d.ts +12 -0
  32. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.js +5 -0
  33. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.d.ts +12 -0
  34. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.js +5 -0
  35. package/api/types/ClientFacingHeartRateAlertSample.d.ts +19 -0
  36. package/api/types/ClientFacingHeartRateAlertSample.js +5 -0
  37. package/api/types/ClientFacingHeartRateAlertSampleType.d.ts +9 -0
  38. package/api/types/ClientFacingHeartRateAlertSampleType.js +11 -0
  39. package/api/types/ClientFacingResource.d.ts +3 -1
  40. package/api/types/ClientFacingResource.js +2 -0
  41. package/api/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.d.ts +8 -0
  42. package/api/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.js +5 -0
  43. package/api/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.d.ts +8 -0
  44. package/api/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.js +5 -0
  45. package/api/types/Minerals.d.ts +1 -30
  46. package/api/types/Minerals.js +0 -29
  47. package/api/types/QueryInstructionSelectItem.d.ts +1 -1
  48. package/api/types/TimeseriesResource.d.ts +3 -1
  49. package/api/types/TimeseriesResource.js +2 -0
  50. package/api/types/index.d.ts +8 -0
  51. package/api/types/index.js +8 -0
  52. package/dist/api/resources/activity/client/Client.js +2 -2
  53. package/dist/api/resources/aggregate/client/Client.js +1 -1
  54. package/dist/api/resources/body/client/Client.js +2 -2
  55. package/dist/api/resources/devices/client/Client.js +1 -1
  56. package/dist/api/resources/insurance/client/Client.js +2 -2
  57. package/dist/api/resources/introspect/client/Client.js +2 -2
  58. package/dist/api/resources/labTests/client/Client.js +34 -34
  59. package/dist/api/resources/link/client/Client.js +14 -14
  60. package/dist/api/resources/meal/client/Client.js +1 -1
  61. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  62. package/dist/api/resources/profile/client/Client.js +2 -2
  63. package/dist/api/resources/providers/client/Client.js +1 -1
  64. package/dist/api/resources/sleep/client/Client.js +4 -4
  65. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  66. package/dist/api/resources/team/client/Client.js +7 -7
  67. package/dist/api/resources/testkit/client/Client.js +2 -2
  68. package/dist/api/resources/user/client/Client.js +16 -16
  69. package/dist/api/resources/vitals/client/Client.d.ts +26 -0
  70. package/dist/api/resources/vitals/client/Client.js +216 -56
  71. package/dist/api/resources/vitals/client/requests/VitalsAfibBurdenGroupedRequest.d.ts +31 -0
  72. package/dist/api/resources/vitals/client/requests/VitalsAfibBurdenGroupedRequest.js +5 -0
  73. package/dist/api/resources/vitals/client/requests/VitalsHeartRateAlertGroupedRequest.d.ts +31 -0
  74. package/dist/api/resources/vitals/client/requests/VitalsHeartRateAlertGroupedRequest.js +5 -0
  75. package/dist/api/resources/vitals/client/requests/index.d.ts +2 -0
  76. package/dist/api/resources/workouts/client/Client.js +3 -3
  77. package/dist/api/types/AggregateExprArg.d.ts +1 -1
  78. package/dist/api/types/ChronotypeValueMacroExpr.d.ts +7 -0
  79. package/dist/api/types/ChronotypeValueMacroExpr.js +5 -0
  80. package/dist/api/types/ClientFacingAFibBurdenSample.d.ts +20 -0
  81. package/dist/api/types/ClientFacingAFibBurdenSample.js +5 -0
  82. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.d.ts +12 -0
  83. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.js +5 -0
  84. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.d.ts +12 -0
  85. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.js +5 -0
  86. package/dist/api/types/ClientFacingHeartRateAlertSample.d.ts +19 -0
  87. package/dist/api/types/ClientFacingHeartRateAlertSample.js +5 -0
  88. package/dist/api/types/ClientFacingHeartRateAlertSampleType.d.ts +9 -0
  89. package/dist/api/types/ClientFacingHeartRateAlertSampleType.js +11 -0
  90. package/dist/api/types/ClientFacingResource.d.ts +3 -1
  91. package/dist/api/types/ClientFacingResource.js +2 -0
  92. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.d.ts +8 -0
  93. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.js +5 -0
  94. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.d.ts +8 -0
  95. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.js +5 -0
  96. package/dist/api/types/Minerals.d.ts +1 -30
  97. package/dist/api/types/Minerals.js +0 -29
  98. package/dist/api/types/QueryInstructionSelectItem.d.ts +1 -1
  99. package/dist/api/types/TimeseriesResource.d.ts +3 -1
  100. package/dist/api/types/TimeseriesResource.js +2 -0
  101. package/dist/api/types/index.d.ts +8 -0
  102. package/dist/api/types/index.js +8 -0
  103. package/dist/serialization/types/AggregateExprArg.d.ts +2 -1
  104. package/dist/serialization/types/AggregateExprArg.js +2 -0
  105. package/dist/serialization/types/ChronotypeValueMacroExpr.d.ts +13 -0
  106. package/dist/serialization/types/ChronotypeValueMacroExpr.js +34 -0
  107. package/dist/serialization/types/ClientFacingAFibBurdenSample.d.ts +19 -0
  108. package/dist/serialization/types/ClientFacingAFibBurdenSample.js +40 -0
  109. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.d.ts +15 -0
  110. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.js +36 -0
  111. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.d.ts +15 -0
  112. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.js +36 -0
  113. package/dist/serialization/types/ClientFacingHeartRateAlertSample.d.ts +20 -0
  114. package/dist/serialization/types/ClientFacingHeartRateAlertSample.js +41 -0
  115. package/dist/serialization/types/ClientFacingHeartRateAlertSampleType.d.ts +10 -0
  116. package/dist/serialization/types/ClientFacingHeartRateAlertSampleType.js +31 -0
  117. package/dist/serialization/types/ClientFacingResource.d.ts +1 -1
  118. package/dist/serialization/types/ClientFacingResource.js +2 -0
  119. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.d.ts +15 -0
  120. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.js +36 -0
  121. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.d.ts +15 -0
  122. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.js +36 -0
  123. package/dist/serialization/types/Minerals.d.ts +1 -1
  124. package/dist/serialization/types/Minerals.js +0 -29
  125. package/dist/serialization/types/QueryInstructionSelectItem.d.ts +2 -1
  126. package/dist/serialization/types/QueryInstructionSelectItem.js +2 -0
  127. package/dist/serialization/types/TimeseriesResource.d.ts +1 -1
  128. package/dist/serialization/types/TimeseriesResource.js +2 -0
  129. package/dist/serialization/types/index.d.ts +8 -0
  130. package/dist/serialization/types/index.js +8 -0
  131. package/dist/version.d.ts +1 -1
  132. package/dist/version.js +1 -1
  133. package/package.json +1 -1
  134. package/reference.md +116 -0
  135. package/serialization/types/AggregateExprArg.d.ts +2 -1
  136. package/serialization/types/AggregateExprArg.js +2 -0
  137. package/serialization/types/ChronotypeValueMacroExpr.d.ts +13 -0
  138. package/serialization/types/ChronotypeValueMacroExpr.js +34 -0
  139. package/serialization/types/ClientFacingAFibBurdenSample.d.ts +19 -0
  140. package/serialization/types/ClientFacingAFibBurdenSample.js +40 -0
  141. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.d.ts +15 -0
  142. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.js +36 -0
  143. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.d.ts +15 -0
  144. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.js +36 -0
  145. package/serialization/types/ClientFacingHeartRateAlertSample.d.ts +20 -0
  146. package/serialization/types/ClientFacingHeartRateAlertSample.js +41 -0
  147. package/serialization/types/ClientFacingHeartRateAlertSampleType.d.ts +10 -0
  148. package/serialization/types/ClientFacingHeartRateAlertSampleType.js +31 -0
  149. package/serialization/types/ClientFacingResource.d.ts +1 -1
  150. package/serialization/types/ClientFacingResource.js +2 -0
  151. package/serialization/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.d.ts +15 -0
  152. package/serialization/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.js +36 -0
  153. package/serialization/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.d.ts +15 -0
  154. package/serialization/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.js +36 -0
  155. package/serialization/types/Minerals.d.ts +1 -1
  156. package/serialization/types/Minerals.js +0 -29
  157. package/serialization/types/QueryInstructionSelectItem.d.ts +2 -1
  158. package/serialization/types/QueryInstructionSelectItem.js +2 -0
  159. package/serialization/types/TimeseriesResource.d.ts +1 -1
  160. package/serialization/types/TimeseriesResource.js +2 -0
  161. package/serialization/types/index.d.ts +8 -0
  162. package/serialization/types/index.js +8 -0
  163. package/version.d.ts +1 -1
  164. package/version.js +1 -1
package/reference.md CHANGED
@@ -2136,6 +2136,122 @@ await client.menstrualCycle.get("user_id", {
2136
2136
 
2137
2137
  ## Vitals
2138
2138
 
2139
+ <details><summary><code>client.vitals.<a href="/src/api/resources/vitals/client/Client.ts">heartRateAlertGrouped</a>(userId, { ...params }) -> Vital.ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample</code></summary>
2140
+ <dl>
2141
+ <dd>
2142
+
2143
+ #### 🔌 Usage
2144
+
2145
+ <dl>
2146
+ <dd>
2147
+
2148
+ <dl>
2149
+ <dd>
2150
+
2151
+ ```typescript
2152
+ await client.vitals.heartRateAlertGrouped("user_id", {
2153
+ startDate: "start_date",
2154
+ });
2155
+ ```
2156
+
2157
+ </dd>
2158
+ </dl>
2159
+ </dd>
2160
+ </dl>
2161
+
2162
+ #### ⚙️ Parameters
2163
+
2164
+ <dl>
2165
+ <dd>
2166
+
2167
+ <dl>
2168
+ <dd>
2169
+
2170
+ **userId:** `string`
2171
+
2172
+ </dd>
2173
+ </dl>
2174
+
2175
+ <dl>
2176
+ <dd>
2177
+
2178
+ **request:** `Vital.VitalsHeartRateAlertGroupedRequest`
2179
+
2180
+ </dd>
2181
+ </dl>
2182
+
2183
+ <dl>
2184
+ <dd>
2185
+
2186
+ **requestOptions:** `Vitals.RequestOptions`
2187
+
2188
+ </dd>
2189
+ </dl>
2190
+ </dd>
2191
+ </dl>
2192
+
2193
+ </dd>
2194
+ </dl>
2195
+ </details>
2196
+
2197
+ <details><summary><code>client.vitals.<a href="/src/api/resources/vitals/client/Client.ts">afibBurdenGrouped</a>(userId, { ...params }) -> Vital.ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample</code></summary>
2198
+ <dl>
2199
+ <dd>
2200
+
2201
+ #### 🔌 Usage
2202
+
2203
+ <dl>
2204
+ <dd>
2205
+
2206
+ <dl>
2207
+ <dd>
2208
+
2209
+ ```typescript
2210
+ await client.vitals.afibBurdenGrouped("user_id", {
2211
+ startDate: "start_date",
2212
+ });
2213
+ ```
2214
+
2215
+ </dd>
2216
+ </dl>
2217
+ </dd>
2218
+ </dl>
2219
+
2220
+ #### ⚙️ Parameters
2221
+
2222
+ <dl>
2223
+ <dd>
2224
+
2225
+ <dl>
2226
+ <dd>
2227
+
2228
+ **userId:** `string`
2229
+
2230
+ </dd>
2231
+ </dl>
2232
+
2233
+ <dl>
2234
+ <dd>
2235
+
2236
+ **request:** `Vital.VitalsAfibBurdenGroupedRequest`
2237
+
2238
+ </dd>
2239
+ </dl>
2240
+
2241
+ <dl>
2242
+ <dd>
2243
+
2244
+ **requestOptions:** `Vitals.RequestOptions`
2245
+
2246
+ </dd>
2247
+ </dl>
2248
+ </dd>
2249
+ </dl>
2250
+
2251
+ </dd>
2252
+ </dl>
2253
+ </details>
2254
+
2139
2255
  <details><summary><code>client.vitals.<a href="/src/api/resources/vitals/client/Client.ts">workoutDurationGrouped</a>(userId, { ...params }) -> Vital.ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample</code></summary>
2140
2256
  <dl>
2141
2257
  <dd>
@@ -11,8 +11,9 @@ import { BodyColumnExpr } from "./BodyColumnExpr";
11
11
  import { IndexColumnExpr } from "./IndexColumnExpr";
12
12
  import { GroupKeyColumnExpr } from "./GroupKeyColumnExpr";
13
13
  import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
14
+ import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
14
15
  import { UnrecognizedValueMacroExpr } from "./UnrecognizedValueMacroExpr";
15
16
  export declare const AggregateExprArg: core.serialization.Schema<serializers.AggregateExprArg.Raw, Vital.AggregateExprArg>;
16
17
  export declare namespace AggregateExprArg {
17
- type Raw = SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | IndexColumnExpr.Raw | GroupKeyColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw;
18
+ type Raw = SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | IndexColumnExpr.Raw | GroupKeyColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw;
18
19
  }
@@ -35,6 +35,7 @@ const BodyColumnExpr_1 = require("./BodyColumnExpr");
35
35
  const IndexColumnExpr_1 = require("./IndexColumnExpr");
36
36
  const GroupKeyColumnExpr_1 = require("./GroupKeyColumnExpr");
37
37
  const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
38
+ const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
38
39
  const UnrecognizedValueMacroExpr_1 = require("./UnrecognizedValueMacroExpr");
39
40
  exports.AggregateExprArg = core.serialization.undiscriminatedUnion([
40
41
  SleepColumnExpr_1.SleepColumnExpr,
@@ -44,5 +45,6 @@ exports.AggregateExprArg = core.serialization.undiscriminatedUnion([
44
45
  IndexColumnExpr_1.IndexColumnExpr,
45
46
  GroupKeyColumnExpr_1.GroupKeyColumnExpr,
46
47
  SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
48
+ ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
47
49
  UnrecognizedValueMacroExpr_1.UnrecognizedValueMacroExpr,
48
50
  ]);
@@ -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 ChronotypeValueMacroExpr: core.serialization.ObjectSchema<serializers.ChronotypeValueMacroExpr.Raw, Vital.ChronotypeValueMacroExpr>;
8
+ export declare namespace ChronotypeValueMacroExpr {
9
+ interface Raw {
10
+ value_macro: "chronotype";
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.ChronotypeValueMacroExpr = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ChronotypeValueMacroExpr = core.serialization.object({
32
+ valueMacro: core.serialization.property("value_macro", core.serialization.stringLiteral("chronotype")),
33
+ version: core.serialization.stringLiteral("automatic").optional(),
34
+ });
@@ -0,0 +1,19 @@
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 ClientFacingAFibBurdenSample: core.serialization.ObjectSchema<serializers.ClientFacingAFibBurdenSample.Raw, Vital.ClientFacingAFibBurdenSample>;
8
+ export declare namespace ClientFacingAFibBurdenSample {
9
+ interface Raw {
10
+ id?: number | null;
11
+ timezone_offset?: number | null;
12
+ type?: string | null;
13
+ unit: "%";
14
+ timestamp: string;
15
+ start: string;
16
+ end: string;
17
+ value: number;
18
+ }
19
+ }
@@ -0,0 +1,40 @@
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.ClientFacingAFibBurdenSample = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ClientFacingAFibBurdenSample = core.serialization.object({
32
+ id: core.serialization.number().optional(),
33
+ timezoneOffset: core.serialization.property("timezone_offset", core.serialization.number().optional()),
34
+ type: core.serialization.string().optional(),
35
+ unit: core.serialization.stringLiteral("%"),
36
+ timestamp: core.serialization.string(),
37
+ start: core.serialization.string(),
38
+ end: core.serialization.string(),
39
+ value: core.serialization.number(),
40
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ClientFacingTimeseriesGroupClientFacingAFibBurdenSample } from "./ClientFacingTimeseriesGroupClientFacingAFibBurdenSample";
8
+ export declare const ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample: core.serialization.ObjectSchema<serializers.ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.Raw, Vital.ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample>;
9
+ export declare namespace ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample {
10
+ interface Raw {
11
+ groups: Record<string, ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.Raw[]>;
12
+ next?: string | null;
13
+ next_cursor?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ClientFacingTimeseriesGroupClientFacingAFibBurdenSample_1 = require("./ClientFacingTimeseriesGroupClientFacingAFibBurdenSample");
32
+ exports.ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample = core.serialization.object({
33
+ groups: core.serialization.record(core.serialization.string(), core.serialization.list(ClientFacingTimeseriesGroupClientFacingAFibBurdenSample_1.ClientFacingTimeseriesGroupClientFacingAFibBurdenSample)),
34
+ next: core.serialization.string().optional(),
35
+ nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()),
36
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample } from "./ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample";
8
+ export declare const ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample: core.serialization.ObjectSchema<serializers.ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.Raw, Vital.ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample>;
9
+ export declare namespace ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample {
10
+ interface Raw {
11
+ groups: Record<string, ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.Raw[]>;
12
+ next?: string | null;
13
+ next_cursor?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample_1 = require("./ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample");
32
+ exports.ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample = core.serialization.object({
33
+ groups: core.serialization.record(core.serialization.string(), core.serialization.list(ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample_1.ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample)),
34
+ next: core.serialization.string().optional(),
35
+ nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()),
36
+ });
@@ -0,0 +1,20 @@
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 { ClientFacingHeartRateAlertSampleType } from "./ClientFacingHeartRateAlertSampleType";
8
+ export declare const ClientFacingHeartRateAlertSample: core.serialization.ObjectSchema<serializers.ClientFacingHeartRateAlertSample.Raw, Vital.ClientFacingHeartRateAlertSample>;
9
+ export declare namespace ClientFacingHeartRateAlertSample {
10
+ interface Raw {
11
+ id?: number | null;
12
+ timezone_offset?: number | null;
13
+ type: ClientFacingHeartRateAlertSampleType.Raw;
14
+ unit: "count";
15
+ timestamp: string;
16
+ start: string;
17
+ end: string;
18
+ value: number;
19
+ }
20
+ }
@@ -0,0 +1,41 @@
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.ClientFacingHeartRateAlertSample = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ClientFacingHeartRateAlertSampleType_1 = require("./ClientFacingHeartRateAlertSampleType");
32
+ exports.ClientFacingHeartRateAlertSample = core.serialization.object({
33
+ id: core.serialization.number().optional(),
34
+ timezoneOffset: core.serialization.property("timezone_offset", core.serialization.number().optional()),
35
+ type: ClientFacingHeartRateAlertSampleType_1.ClientFacingHeartRateAlertSampleType,
36
+ unit: core.serialization.stringLiteral("count"),
37
+ timestamp: core.serialization.string(),
38
+ start: core.serialization.string(),
39
+ end: core.serialization.string(),
40
+ value: core.serialization.number(),
41
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ClientFacingHeartRateAlertSampleType: core.serialization.Schema<serializers.ClientFacingHeartRateAlertSampleType.Raw, Vital.ClientFacingHeartRateAlertSampleType>;
8
+ export declare namespace ClientFacingHeartRateAlertSampleType {
9
+ type Raw = "low_heart_rate" | "high_heart_rate" | "irregular_rhythm";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ClientFacingHeartRateAlertSampleType = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ClientFacingHeartRateAlertSampleType = core.serialization.enum_(["low_heart_rate", "high_heart_rate", "irregular_rhythm"]);
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ClientFacingResource: core.serialization.Schema<serializers.ClientFacingResource.Raw, Vital.ClientFacingResource>;
8
8
  export declare namespace ClientFacingResource {
9
- type Raw = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "sleep_cycle" | "electrocardiogram_voltage" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
9
+ type Raw = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "sleep_cycle" | "electrocardiogram_voltage" | "afib_burden" | "heart_rate_alert" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
10
10
  }
@@ -68,6 +68,8 @@ exports.ClientFacingResource = core.serialization.enum_([
68
68
  "menstrual_cycle",
69
69
  "sleep_cycle",
70
70
  "electrocardiogram_voltage",
71
+ "afib_burden",
72
+ "heart_rate_alert",
71
73
  "workout_duration",
72
74
  "insulin_injection",
73
75
  "carbohydrates",
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ClientFacingSource } from "./ClientFacingSource";
8
+ import { ClientFacingAFibBurdenSample } from "./ClientFacingAFibBurdenSample";
9
+ export declare const ClientFacingTimeseriesGroupClientFacingAFibBurdenSample: core.serialization.ObjectSchema<serializers.ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.Raw, Vital.ClientFacingTimeseriesGroupClientFacingAFibBurdenSample>;
10
+ export declare namespace ClientFacingTimeseriesGroupClientFacingAFibBurdenSample {
11
+ interface Raw {
12
+ source: ClientFacingSource.Raw;
13
+ data: ClientFacingAFibBurdenSample.Raw[];
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ClientFacingTimeseriesGroupClientFacingAFibBurdenSample = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ClientFacingSource_1 = require("./ClientFacingSource");
32
+ const ClientFacingAFibBurdenSample_1 = require("./ClientFacingAFibBurdenSample");
33
+ exports.ClientFacingTimeseriesGroupClientFacingAFibBurdenSample = core.serialization.object({
34
+ source: ClientFacingSource_1.ClientFacingSource,
35
+ data: core.serialization.list(ClientFacingAFibBurdenSample_1.ClientFacingAFibBurdenSample),
36
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ClientFacingSource } from "./ClientFacingSource";
8
+ import { ClientFacingHeartRateAlertSample } from "./ClientFacingHeartRateAlertSample";
9
+ export declare const ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample: core.serialization.ObjectSchema<serializers.ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.Raw, Vital.ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample>;
10
+ export declare namespace ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample {
11
+ interface Raw {
12
+ source: ClientFacingSource.Raw;
13
+ data: ClientFacingHeartRateAlertSample.Raw[];
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ClientFacingSource_1 = require("./ClientFacingSource");
32
+ const ClientFacingHeartRateAlertSample_1 = require("./ClientFacingHeartRateAlertSample");
33
+ exports.ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample = core.serialization.object({
34
+ source: ClientFacingSource_1.ClientFacingSource,
35
+ data: core.serialization.list(ClientFacingHeartRateAlertSample_1.ClientFacingHeartRateAlertSample),
36
+ });
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const Minerals: core.serialization.Schema<serializers.Minerals.Raw, Vital.Minerals>;
8
8
  export declare namespace Minerals {
9
- type Raw = "sodium" | "potassium" | "calcium" | "phosphorus" | "magnesium" | "iron" | "zinc" | "fluoride" | "chloride" | "boron" | "cobalt" | "nickel" | "silicon" | "vanadium" | "lithium" | "rubidium" | "strontium" | "aluminum" | "arsenic" | "barium" | "beryllium" | "bismuth" | "cadmium" | "cesium" | "germanium" | "gold" | "lead" | "mercury" | "palladium" | "platinum" | "silver" | "thallium" | "thorium" | "tin" | "titanium" | "tungsten" | "uranium" | "zirconium";
9
+ type Raw = "sodium" | "potassium" | "calcium" | "phosphorus" | "magnesium" | "iron" | "zinc" | "fluoride" | "chloride";
10
10
  }
@@ -38,33 +38,4 @@ exports.Minerals = core.serialization.enum_([
38
38
  "zinc",
39
39
  "fluoride",
40
40
  "chloride",
41
- "boron",
42
- "cobalt",
43
- "nickel",
44
- "silicon",
45
- "vanadium",
46
- "lithium",
47
- "rubidium",
48
- "strontium",
49
- "aluminum",
50
- "arsenic",
51
- "barium",
52
- "beryllium",
53
- "bismuth",
54
- "cadmium",
55
- "cesium",
56
- "germanium",
57
- "gold",
58
- "lead",
59
- "mercury",
60
- "palladium",
61
- "platinum",
62
- "silver",
63
- "thallium",
64
- "thorium",
65
- "tin",
66
- "titanium",
67
- "tungsten",
68
- "uranium",
69
- "zirconium",
70
41
  ]);