@tryvital/vital-node 3.1.134 → 3.1.136

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 (158) 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/ClientFacingSleepCycle.d.ts +9 -0
  42. package/api/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.d.ts +8 -0
  43. package/api/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.js +5 -0
  44. package/api/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.d.ts +8 -0
  45. package/api/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.js +5 -0
  46. package/api/types/QueryInstructionSelectItem.d.ts +1 -1
  47. package/api/types/TimeseriesResource.d.ts +3 -1
  48. package/api/types/TimeseriesResource.js +2 -0
  49. package/api/types/index.d.ts +8 -0
  50. package/api/types/index.js +8 -0
  51. package/dist/api/resources/activity/client/Client.js +2 -2
  52. package/dist/api/resources/aggregate/client/Client.js +1 -1
  53. package/dist/api/resources/body/client/Client.js +2 -2
  54. package/dist/api/resources/devices/client/Client.js +1 -1
  55. package/dist/api/resources/insurance/client/Client.js +2 -2
  56. package/dist/api/resources/introspect/client/Client.js +2 -2
  57. package/dist/api/resources/labTests/client/Client.js +34 -34
  58. package/dist/api/resources/link/client/Client.js +14 -14
  59. package/dist/api/resources/meal/client/Client.js +1 -1
  60. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  61. package/dist/api/resources/profile/client/Client.js +2 -2
  62. package/dist/api/resources/providers/client/Client.js +1 -1
  63. package/dist/api/resources/sleep/client/Client.js +4 -4
  64. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  65. package/dist/api/resources/team/client/Client.js +7 -7
  66. package/dist/api/resources/testkit/client/Client.js +2 -2
  67. package/dist/api/resources/user/client/Client.js +16 -16
  68. package/dist/api/resources/vitals/client/Client.d.ts +26 -0
  69. package/dist/api/resources/vitals/client/Client.js +216 -56
  70. package/dist/api/resources/vitals/client/requests/VitalsAfibBurdenGroupedRequest.d.ts +31 -0
  71. package/dist/api/resources/vitals/client/requests/VitalsAfibBurdenGroupedRequest.js +5 -0
  72. package/dist/api/resources/vitals/client/requests/VitalsHeartRateAlertGroupedRequest.d.ts +31 -0
  73. package/dist/api/resources/vitals/client/requests/VitalsHeartRateAlertGroupedRequest.js +5 -0
  74. package/dist/api/resources/vitals/client/requests/index.d.ts +2 -0
  75. package/dist/api/resources/workouts/client/Client.js +3 -3
  76. package/dist/api/types/AggregateExprArg.d.ts +1 -1
  77. package/dist/api/types/ChronotypeValueMacroExpr.d.ts +7 -0
  78. package/dist/api/types/ChronotypeValueMacroExpr.js +5 -0
  79. package/dist/api/types/ClientFacingAFibBurdenSample.d.ts +20 -0
  80. package/dist/api/types/ClientFacingAFibBurdenSample.js +5 -0
  81. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.d.ts +12 -0
  82. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.js +5 -0
  83. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.d.ts +12 -0
  84. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.js +5 -0
  85. package/dist/api/types/ClientFacingHeartRateAlertSample.d.ts +19 -0
  86. package/dist/api/types/ClientFacingHeartRateAlertSample.js +5 -0
  87. package/dist/api/types/ClientFacingHeartRateAlertSampleType.d.ts +9 -0
  88. package/dist/api/types/ClientFacingHeartRateAlertSampleType.js +11 -0
  89. package/dist/api/types/ClientFacingResource.d.ts +3 -1
  90. package/dist/api/types/ClientFacingResource.js +2 -0
  91. package/dist/api/types/ClientFacingSleepCycle.d.ts +9 -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/QueryInstructionSelectItem.d.ts +1 -1
  97. package/dist/api/types/TimeseriesResource.d.ts +3 -1
  98. package/dist/api/types/TimeseriesResource.js +2 -0
  99. package/dist/api/types/index.d.ts +8 -0
  100. package/dist/api/types/index.js +8 -0
  101. package/dist/serialization/types/AggregateExprArg.d.ts +2 -1
  102. package/dist/serialization/types/AggregateExprArg.js +2 -0
  103. package/dist/serialization/types/ChronotypeValueMacroExpr.d.ts +13 -0
  104. package/dist/serialization/types/ChronotypeValueMacroExpr.js +34 -0
  105. package/dist/serialization/types/ClientFacingAFibBurdenSample.d.ts +19 -0
  106. package/dist/serialization/types/ClientFacingAFibBurdenSample.js +40 -0
  107. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.d.ts +15 -0
  108. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.js +36 -0
  109. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.d.ts +15 -0
  110. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.js +36 -0
  111. package/dist/serialization/types/ClientFacingHeartRateAlertSample.d.ts +20 -0
  112. package/dist/serialization/types/ClientFacingHeartRateAlertSample.js +41 -0
  113. package/dist/serialization/types/ClientFacingHeartRateAlertSampleType.d.ts +10 -0
  114. package/dist/serialization/types/ClientFacingHeartRateAlertSampleType.js +31 -0
  115. package/dist/serialization/types/ClientFacingResource.d.ts +1 -1
  116. package/dist/serialization/types/ClientFacingResource.js +2 -0
  117. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.d.ts +15 -0
  118. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.js +36 -0
  119. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.d.ts +15 -0
  120. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.js +36 -0
  121. package/dist/serialization/types/QueryInstructionSelectItem.d.ts +2 -1
  122. package/dist/serialization/types/QueryInstructionSelectItem.js +2 -0
  123. package/dist/serialization/types/TimeseriesResource.d.ts +1 -1
  124. package/dist/serialization/types/TimeseriesResource.js +2 -0
  125. package/dist/serialization/types/index.d.ts +8 -0
  126. package/dist/serialization/types/index.js +8 -0
  127. package/dist/version.d.ts +1 -1
  128. package/dist/version.js +1 -1
  129. package/package.json +1 -1
  130. package/reference.md +116 -0
  131. package/serialization/types/AggregateExprArg.d.ts +2 -1
  132. package/serialization/types/AggregateExprArg.js +2 -0
  133. package/serialization/types/ChronotypeValueMacroExpr.d.ts +13 -0
  134. package/serialization/types/ChronotypeValueMacroExpr.js +34 -0
  135. package/serialization/types/ClientFacingAFibBurdenSample.d.ts +19 -0
  136. package/serialization/types/ClientFacingAFibBurdenSample.js +40 -0
  137. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.d.ts +15 -0
  138. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.js +36 -0
  139. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.d.ts +15 -0
  140. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.js +36 -0
  141. package/serialization/types/ClientFacingHeartRateAlertSample.d.ts +20 -0
  142. package/serialization/types/ClientFacingHeartRateAlertSample.js +41 -0
  143. package/serialization/types/ClientFacingHeartRateAlertSampleType.d.ts +10 -0
  144. package/serialization/types/ClientFacingHeartRateAlertSampleType.js +31 -0
  145. package/serialization/types/ClientFacingResource.d.ts +1 -1
  146. package/serialization/types/ClientFacingResource.js +2 -0
  147. package/serialization/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.d.ts +15 -0
  148. package/serialization/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.js +36 -0
  149. package/serialization/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.d.ts +15 -0
  150. package/serialization/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.js +36 -0
  151. package/serialization/types/QueryInstructionSelectItem.d.ts +2 -1
  152. package/serialization/types/QueryInstructionSelectItem.js +2 -0
  153. package/serialization/types/TimeseriesResource.d.ts +1 -1
  154. package/serialization/types/TimeseriesResource.js +2 -0
  155. package/serialization/types/index.d.ts +8 -0
  156. package/serialization/types/index.js +8 -0
  157. package/version.d.ts +1 -1
  158. package/version.js +1 -1
@@ -0,0 +1,31 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start_date"
8
+ * }
9
+ */
10
+ export interface VitalsAfibBurdenGroupedRequest {
11
+ /**
12
+ * The cursor for fetching the next page, or `null` to fetch the first page.
13
+ */
14
+ cursor?: string;
15
+ /**
16
+ * The cursor for fetching the next page, or `null` to fetch the first page.
17
+ */
18
+ nextCursor?: string;
19
+ /**
20
+ * Provider oura/strava etc
21
+ */
22
+ provider?: string;
23
+ /**
24
+ * Date from in YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 00:00:00
25
+ */
26
+ startDate: string;
27
+ /**
28
+ * Date to YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 23:59:59
29
+ */
30
+ endDate?: string;
31
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start_date"
8
+ * }
9
+ */
10
+ export interface VitalsHeartRateAlertGroupedRequest {
11
+ /**
12
+ * The cursor for fetching the next page, or `null` to fetch the first page.
13
+ */
14
+ cursor?: string;
15
+ /**
16
+ * The cursor for fetching the next page, or `null` to fetch the first page.
17
+ */
18
+ nextCursor?: string;
19
+ /**
20
+ * Provider oura/strava etc
21
+ */
22
+ provider?: string;
23
+ /**
24
+ * Date from in YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 00:00:00
25
+ */
26
+ startDate: string;
27
+ /**
28
+ * Date to YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 23:59:59
29
+ */
30
+ endDate?: string;
31
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,5 @@
1
+ export { type VitalsHeartRateAlertGroupedRequest } from "./VitalsHeartRateAlertGroupedRequest";
2
+ export { type VitalsAfibBurdenGroupedRequest } from "./VitalsAfibBurdenGroupedRequest";
1
3
  export { type VitalsWorkoutDurationGroupedRequest } from "./VitalsWorkoutDurationGroupedRequest";
2
4
  export { type VitalsVo2MaxGroupedRequest } from "./VitalsVo2MaxGroupedRequest";
3
5
  export { type VitalsStressLevelGroupedRequest } from "./VitalsStressLevelGroupedRequest";
@@ -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.134", "User-Agent": "@tryvital/vital-node/3.1.134", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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.134", "User-Agent": "@tryvital/vital-node/3.1.134", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
157
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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.134", "User-Agent": "@tryvital/vital-node/3.1.134", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
219
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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,
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vital from "../index";
5
- export declare type AggregateExprArg = Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
5
+ export declare type AggregateExprArg = Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ChronotypeValueMacroExpr {
5
+ valueMacro: "chronotype";
6
+ version?: "automatic";
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ClientFacingAFibBurdenSample {
5
+ /** Deprecated */
6
+ id?: number;
7
+ /** Time zone UTC offset in seconds. Positive offset indicates east of UTC; negative offset indicates west of UTC; and null indicates the time zone information is unavailable at source. */
8
+ timezoneOffset?: number;
9
+ /** The reading type of the measurement. This is applicable only to Cholesterol, IGG, IGE and InsulinInjection. */
10
+ type?: string;
11
+ unit: "%";
12
+ /** Depracated. The start time (inclusive) of the interval. */
13
+ timestamp: string;
14
+ /** The start time (inclusive) of the interval. */
15
+ start: string;
16
+ /** The end time (exclusive) of the interval. */
17
+ end: string;
18
+ /** The recorded value for the interval. */
19
+ value: number;
20
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample {
6
+ /** For each matching provider or lab, a list of grouped timeseries values. */
7
+ groups: Record<string, Vital.ClientFacingTimeseriesGroupClientFacingAFibBurdenSample[]>;
8
+ /** The cursor for fetching the next page, or `null` if there is no more data. */
9
+ next?: string;
10
+ /** The cursor for fetching the next page, or `null` if there is no more data. */
11
+ nextCursor?: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample {
6
+ /** For each matching provider or lab, a list of grouped timeseries values. */
7
+ groups: Record<string, Vital.ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample[]>;
8
+ /** The cursor for fetching the next page, or `null` if there is no more data. */
9
+ next?: string;
10
+ /** The cursor for fetching the next page, or `null` if there is no more data. */
11
+ nextCursor?: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ClientFacingHeartRateAlertSample {
6
+ /** Deprecated */
7
+ id?: number;
8
+ /** Time zone UTC offset in seconds. Positive offset indicates east of UTC; negative offset indicates west of UTC; and null indicates the time zone information is unavailable at source. */
9
+ timezoneOffset?: number;
10
+ type: Vital.ClientFacingHeartRateAlertSampleType;
11
+ unit: "count";
12
+ /** Depracated. The start time (inclusive) of the interval. */
13
+ timestamp: string;
14
+ /** The start time (inclusive) of the interval. */
15
+ start: string;
16
+ /** The end time (exclusive) of the interval. */
17
+ end: string;
18
+ value: number;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ClientFacingHeartRateAlertSampleType = "low_heart_rate" | "high_heart_rate" | "irregular_rhythm";
5
+ export declare const ClientFacingHeartRateAlertSampleType: {
6
+ readonly LowHeartRate: "low_heart_rate";
7
+ readonly HighHeartRate: "high_heart_rate";
8
+ readonly IrregularRhythm: "irregular_rhythm";
9
+ };
@@ -0,0 +1,11 @@
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.ClientFacingHeartRateAlertSampleType = void 0;
7
+ exports.ClientFacingHeartRateAlertSampleType = {
8
+ LowHeartRate: "low_heart_rate",
9
+ HighHeartRate: "high_heart_rate",
10
+ IrregularRhythm: "irregular_rhythm",
11
+ };
@@ -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 ClientFacingResource = "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";
4
+ export declare type ClientFacingResource = "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";
5
5
  export declare const ClientFacingResource: {
6
6
  readonly Profile: "profile";
7
7
  readonly Activity: "activity";
@@ -42,6 +42,8 @@ export declare const ClientFacingResource: {
42
42
  readonly MenstrualCycle: "menstrual_cycle";
43
43
  readonly SleepCycle: "sleep_cycle";
44
44
  readonly ElectrocardiogramVoltage: "electrocardiogram_voltage";
45
+ readonly AfibBurden: "afib_burden";
46
+ readonly HeartRateAlert: "heart_rate_alert";
45
47
  readonly WorkoutDuration: "workout_duration";
46
48
  readonly InsulinInjection: "insulin_injection";
47
49
  readonly Carbohydrates: "carbohydrates";
@@ -44,6 +44,8 @@ exports.ClientFacingResource = {
44
44
  MenstrualCycle: "menstrual_cycle",
45
45
  SleepCycle: "sleep_cycle",
46
46
  ElectrocardiogramVoltage: "electrocardiogram_voltage",
47
+ AfibBurden: "afib_burden",
48
+ HeartRateAlert: "heart_rate_alert",
47
49
  WorkoutDuration: "workout_duration",
48
50
  InsulinInjection: "insulin_injection",
49
51
  Carbohydrates: "carbohydrates",
@@ -9,6 +9,15 @@ export interface ClientFacingSleepCycle {
9
9
  sessionEnd: Date;
10
10
  stageStartOffsetSecond: number[];
11
11
  stageEndOffsetSecond: number[];
12
+ /**
13
+ * Sleep stage classification:
14
+ * `-1`: Unknown or unclassified sleep stage;
15
+ * `1`: Deep sleep;
16
+ * `2`: Light/non-REM sleep;
17
+ * `3`: Rapid Eye Movement sleep;
18
+ * `4`: Awake period;
19
+ * `5`: Manually classified stage.
20
+ */
12
21
  stageType: Vital.VitalSleepStage[];
13
22
  timeZone?: string;
14
23
  sourceProvider: Vital.ClientFacingSleepCycleSourceProvider;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ClientFacingTimeseriesGroupClientFacingAFibBurdenSample {
6
+ source: Vital.ClientFacingSource;
7
+ data: Vital.ClientFacingAFibBurdenSample[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample {
6
+ source: Vital.ClientFacingSource;
7
+ data: Vital.ClientFacingHeartRateAlertSample[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vital from "../index";
5
- export declare type QueryInstructionSelectItem = Vital.AggregateExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
5
+ export declare type QueryInstructionSelectItem = Vital.AggregateExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
@@ -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 TimeseriesResource = "calories_active" | "calories_basal" | "distance" | "blood_oxygen" | "blood_pressure" | "body_fat" | "body_weight" | "body_temperature" | "body_temperature_delta" | "cholesterol" | "cholesterol/ldl" | "cholesterol/hdl" | "cholesterol/total" | "cholesterol/triglycerides" | "electrocardiogram_voltage" | "floors_climbed" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "respiratory_rate" | "steps" | "stress_level" | "vo2_max" | "water" | "caffeine" | "mindfulness_minutes" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note";
4
+ export declare type TimeseriesResource = "calories_active" | "calories_basal" | "distance" | "blood_oxygen" | "blood_pressure" | "body_fat" | "body_weight" | "body_temperature" | "body_temperature_delta" | "cholesterol" | "cholesterol/ldl" | "cholesterol/hdl" | "cholesterol/total" | "cholesterol/triglycerides" | "electrocardiogram_voltage" | "floors_climbed" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "respiratory_rate" | "steps" | "stress_level" | "vo2_max" | "water" | "caffeine" | "mindfulness_minutes" | "afib_burden" | "heart_rate_alert" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note";
5
5
  export declare const TimeseriesResource: {
6
6
  readonly CaloriesActive: "calories_active";
7
7
  readonly CaloriesBasal: "calories_basal";
@@ -32,6 +32,8 @@ export declare const TimeseriesResource: {
32
32
  readonly Water: "water";
33
33
  readonly Caffeine: "caffeine";
34
34
  readonly MindfulnessMinutes: "mindfulness_minutes";
35
+ readonly AfibBurden: "afib_burden";
36
+ readonly HeartRateAlert: "heart_rate_alert";
35
37
  readonly WorkoutDuration: "workout_duration";
36
38
  readonly InsulinInjection: "insulin_injection";
37
39
  readonly Carbohydrates: "carbohydrates";
@@ -34,6 +34,8 @@ exports.TimeseriesResource = {
34
34
  Water: "water",
35
35
  Caffeine: "caffeine",
36
36
  MindfulnessMinutes: "mindfulness_minutes",
37
+ AfibBurden: "afib_burden",
38
+ HeartRateAlert: "heart_rate_alert",
37
39
  WorkoutDuration: "workout_duration",
38
40
  InsulinInjection: "insulin_injection",
39
41
  Carbohydrates: "carbohydrates",
@@ -32,8 +32,10 @@ export * from "./BodyColumnExpr";
32
32
  export * from "./BodyV2InDb";
33
33
  export * from "./CervicalMucusEntryQuality";
34
34
  export * from "./CervicalMucusEntry";
35
+ export * from "./ChronotypeValueMacroExpr";
35
36
  export * from "./ClientActivityResponse";
36
37
  export * from "./ClientBodyResponse";
38
+ export * from "./ClientFacingAFibBurdenSample";
37
39
  export * from "./ClientFacingActivity";
38
40
  export * from "./ClientFacingApiKey";
39
41
  export * from "./ClientFacingAppointment";
@@ -61,14 +63,18 @@ export * from "./ClientFacingElectrocardiogramVoltageTimeseries";
61
63
  export * from "./ClientFacingFloorsClimbedTimeseries";
62
64
  export * from "./ClientFacingFood";
63
65
  export * from "./ClientFacingGlucoseTimeseries";
66
+ export * from "./ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample";
64
67
  export * from "./ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample";
65
68
  export * from "./ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample";
66
69
  export * from "./ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample";
70
+ export * from "./ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample";
67
71
  export * from "./ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample";
68
72
  export * from "./ClientFacingGroupedTimeseriesResponseClientFacingNoteSample";
69
73
  export * from "./ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample";
70
74
  export * from "./ClientFacingHrvTimeseries";
71
75
  export * from "./ClientFacingHeartRate";
76
+ export * from "./ClientFacingHeartRateAlertSampleType";
77
+ export * from "./ClientFacingHeartRateAlertSample";
72
78
  export * from "./ClientFacingHeartRateTimeseries";
73
79
  export * from "./ClientFacingHypnogramTimeseries";
74
80
  export * from "./ClientFacingIgeTimeseries";
@@ -124,9 +130,11 @@ export * from "./ClientFacingStressLevelTimeseries";
124
130
  export * from "./ClientFacingTeam";
125
131
  export * from "./ClientFacingTestKitOrderDetails";
126
132
  export * from "./ClientFacingTestkitOrder";
133
+ export * from "./ClientFacingTimeseriesGroupClientFacingAFibBurdenSample";
127
134
  export * from "./ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample";
128
135
  export * from "./ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample";
129
136
  export * from "./ClientFacingTimeseriesGroupClientFacingCarbohydratesSample";
137
+ export * from "./ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample";
130
138
  export * from "./ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample";
131
139
  export * from "./ClientFacingTimeseriesGroupClientFacingNoteSample";
132
140
  export * from "./ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample";
@@ -48,8 +48,10 @@ __exportStar(require("./BodyColumnExpr"), exports);
48
48
  __exportStar(require("./BodyV2InDb"), exports);
49
49
  __exportStar(require("./CervicalMucusEntryQuality"), exports);
50
50
  __exportStar(require("./CervicalMucusEntry"), exports);
51
+ __exportStar(require("./ChronotypeValueMacroExpr"), exports);
51
52
  __exportStar(require("./ClientActivityResponse"), exports);
52
53
  __exportStar(require("./ClientBodyResponse"), exports);
54
+ __exportStar(require("./ClientFacingAFibBurdenSample"), exports);
53
55
  __exportStar(require("./ClientFacingActivity"), exports);
54
56
  __exportStar(require("./ClientFacingApiKey"), exports);
55
57
  __exportStar(require("./ClientFacingAppointment"), exports);
@@ -77,14 +79,18 @@ __exportStar(require("./ClientFacingElectrocardiogramVoltageTimeseries"), export
77
79
  __exportStar(require("./ClientFacingFloorsClimbedTimeseries"), exports);
78
80
  __exportStar(require("./ClientFacingFood"), exports);
79
81
  __exportStar(require("./ClientFacingGlucoseTimeseries"), exports);
82
+ __exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample"), exports);
80
83
  __exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample"), exports);
81
84
  __exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample"), exports);
82
85
  __exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample"), exports);
86
+ __exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample"), exports);
83
87
  __exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample"), exports);
84
88
  __exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingNoteSample"), exports);
85
89
  __exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample"), exports);
86
90
  __exportStar(require("./ClientFacingHrvTimeseries"), exports);
87
91
  __exportStar(require("./ClientFacingHeartRate"), exports);
92
+ __exportStar(require("./ClientFacingHeartRateAlertSampleType"), exports);
93
+ __exportStar(require("./ClientFacingHeartRateAlertSample"), exports);
88
94
  __exportStar(require("./ClientFacingHeartRateTimeseries"), exports);
89
95
  __exportStar(require("./ClientFacingHypnogramTimeseries"), exports);
90
96
  __exportStar(require("./ClientFacingIgeTimeseries"), exports);
@@ -140,9 +146,11 @@ __exportStar(require("./ClientFacingStressLevelTimeseries"), exports);
140
146
  __exportStar(require("./ClientFacingTeam"), exports);
141
147
  __exportStar(require("./ClientFacingTestKitOrderDetails"), exports);
142
148
  __exportStar(require("./ClientFacingTestkitOrder"), exports);
149
+ __exportStar(require("./ClientFacingTimeseriesGroupClientFacingAFibBurdenSample"), exports);
143
150
  __exportStar(require("./ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample"), exports);
144
151
  __exportStar(require("./ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample"), exports);
145
152
  __exportStar(require("./ClientFacingTimeseriesGroupClientFacingCarbohydratesSample"), exports);
153
+ __exportStar(require("./ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample"), exports);
146
154
  __exportStar(require("./ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample"), exports);
147
155
  __exportStar(require("./ClientFacingTimeseriesGroupClientFacingNoteSample"), exports);
148
156
  __exportStar(require("./ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample"), exports);
@@ -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
+ }