@tryvital/vital-node 3.1.144 → 3.1.146

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 (174) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +41 -36
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/aggregate/client/Client.js +1 -1
  5. package/api/resources/body/client/Client.js +2 -2
  6. package/api/resources/devices/client/Client.js +1 -1
  7. package/api/resources/electrocardiogram/client/Client.d.ts +42 -0
  8. package/api/resources/electrocardiogram/client/Client.js +135 -0
  9. package/api/resources/electrocardiogram/client/index.d.ts +1 -0
  10. package/api/resources/electrocardiogram/client/index.js +17 -0
  11. package/api/resources/electrocardiogram/client/requests/ElectrocardiogramGetRequest.d.ts +17 -0
  12. package/api/resources/electrocardiogram/client/requests/index.d.ts +1 -0
  13. package/api/resources/electrocardiogram/client/requests/index.js +2 -0
  14. package/api/resources/electrocardiogram/index.d.ts +1 -0
  15. package/api/resources/electrocardiogram/index.js +17 -0
  16. package/api/resources/index.d.ts +2 -0
  17. package/api/resources/index.js +3 -1
  18. package/api/resources/insurance/client/Client.js +2 -2
  19. package/api/resources/introspect/client/Client.js +2 -2
  20. package/api/resources/labTests/client/Client.js +34 -34
  21. package/api/resources/link/client/Client.js +14 -14
  22. package/api/resources/meal/client/Client.js +1 -1
  23. package/api/resources/menstrualCycle/client/Client.js +1 -1
  24. package/api/resources/profile/client/Client.js +2 -2
  25. package/api/resources/providers/client/Client.js +1 -1
  26. package/api/resources/sleep/client/Client.js +4 -4
  27. package/api/resources/sleepCycle/client/Client.js +1 -1
  28. package/api/resources/team/client/Client.js +7 -7
  29. package/api/resources/testkit/client/Client.js +2 -2
  30. package/api/resources/user/client/Client.js +16 -16
  31. package/api/resources/vitals/client/Client.js +58 -58
  32. package/api/resources/workouts/client/Client.js +3 -3
  33. package/api/types/ClientFacingElectrocardiogram.d.ts +22 -0
  34. package/api/types/ClientFacingElectrocardiogramClassification.d.ts +9 -0
  35. package/api/types/ClientFacingElectrocardiogramClassification.js +11 -0
  36. package/api/types/ClientFacingElectrocardiogramInconclusiveCause.d.ts +9 -0
  37. package/api/types/ClientFacingElectrocardiogramInconclusiveCause.js +11 -0
  38. package/api/types/ClientFacingElectrocardiogramResponse.d.ts +7 -0
  39. package/api/types/ClientFacingElectrocardiogramResponse.js +5 -0
  40. package/api/types/ClientFacingElectrocardiogramSourceProvider.d.ts +5 -0
  41. package/api/types/ClientFacingElectrocardiogramSourceProvider.js +5 -0
  42. package/api/types/ClientFacingElectrocardiogramSourceType.d.ts +19 -0
  43. package/api/types/ClientFacingElectrocardiogramSourceType.js +21 -0
  44. package/api/types/ClientFacingLabLocation.d.ts +1 -0
  45. package/api/types/{MenstrualCycle.d.ts → ClientFacingMenstrualCycle.d.ts} +6 -1
  46. package/api/types/ClientFacingMenstrualCycle.js +5 -0
  47. package/api/types/ClientFacingMenstrualCycleSourceProvider.d.ts +5 -0
  48. package/api/types/ClientFacingMenstrualCycleSourceProvider.js +5 -0
  49. package/api/types/ClientFacingMenstrualCycleSourceType.d.ts +19 -0
  50. package/api/types/ClientFacingMenstrualCycleSourceType.js +21 -0
  51. package/api/types/ClientFacingSport.d.ts +1 -0
  52. package/api/types/MenstrualCycleResponse.d.ts +1 -1
  53. package/api/types/WorkoutColumnExprWorkout.d.ts +1 -2
  54. package/api/types/WorkoutColumnExprWorkout.js +0 -1
  55. package/api/types/index.d.ts +9 -1
  56. package/api/types/index.js +9 -1
  57. package/dist/Client.d.ts +3 -0
  58. package/dist/Client.js +41 -36
  59. package/dist/api/resources/activity/client/Client.js +2 -2
  60. package/dist/api/resources/aggregate/client/Client.js +1 -1
  61. package/dist/api/resources/body/client/Client.js +2 -2
  62. package/dist/api/resources/devices/client/Client.js +1 -1
  63. package/dist/api/resources/electrocardiogram/client/Client.d.ts +42 -0
  64. package/dist/api/resources/electrocardiogram/client/Client.js +135 -0
  65. package/dist/api/resources/electrocardiogram/client/index.d.ts +1 -0
  66. package/dist/api/resources/electrocardiogram/client/index.js +17 -0
  67. package/dist/api/resources/electrocardiogram/client/requests/ElectrocardiogramGetRequest.d.ts +17 -0
  68. package/dist/api/resources/electrocardiogram/client/requests/ElectrocardiogramGetRequest.js +5 -0
  69. package/dist/api/resources/electrocardiogram/client/requests/index.d.ts +1 -0
  70. package/dist/api/resources/electrocardiogram/client/requests/index.js +2 -0
  71. package/dist/api/resources/electrocardiogram/index.d.ts +1 -0
  72. package/dist/api/resources/electrocardiogram/index.js +17 -0
  73. package/dist/api/resources/index.d.ts +2 -0
  74. package/dist/api/resources/index.js +3 -1
  75. package/dist/api/resources/insurance/client/Client.js +2 -2
  76. package/dist/api/resources/introspect/client/Client.js +2 -2
  77. package/dist/api/resources/labTests/client/Client.js +34 -34
  78. package/dist/api/resources/link/client/Client.js +14 -14
  79. package/dist/api/resources/meal/client/Client.js +1 -1
  80. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  81. package/dist/api/resources/profile/client/Client.js +2 -2
  82. package/dist/api/resources/providers/client/Client.js +1 -1
  83. package/dist/api/resources/sleep/client/Client.js +4 -4
  84. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  85. package/dist/api/resources/team/client/Client.js +7 -7
  86. package/dist/api/resources/testkit/client/Client.js +2 -2
  87. package/dist/api/resources/user/client/Client.js +16 -16
  88. package/dist/api/resources/vitals/client/Client.js +58 -58
  89. package/dist/api/resources/workouts/client/Client.js +3 -3
  90. package/dist/api/types/ClientFacingElectrocardiogram.d.ts +22 -0
  91. package/dist/api/types/ClientFacingElectrocardiogram.js +5 -0
  92. package/dist/api/types/ClientFacingElectrocardiogramClassification.d.ts +9 -0
  93. package/dist/api/types/ClientFacingElectrocardiogramClassification.js +11 -0
  94. package/dist/api/types/ClientFacingElectrocardiogramInconclusiveCause.d.ts +9 -0
  95. package/dist/api/types/ClientFacingElectrocardiogramInconclusiveCause.js +11 -0
  96. package/dist/api/types/ClientFacingElectrocardiogramResponse.d.ts +7 -0
  97. package/dist/api/types/ClientFacingElectrocardiogramResponse.js +5 -0
  98. package/dist/api/types/ClientFacingElectrocardiogramSourceProvider.d.ts +5 -0
  99. package/dist/api/types/ClientFacingElectrocardiogramSourceProvider.js +5 -0
  100. package/dist/api/types/ClientFacingElectrocardiogramSourceType.d.ts +19 -0
  101. package/dist/api/types/ClientFacingElectrocardiogramSourceType.js +21 -0
  102. package/dist/api/types/ClientFacingLabLocation.d.ts +1 -0
  103. package/dist/api/types/{MenstrualCycle.d.ts → ClientFacingMenstrualCycle.d.ts} +6 -1
  104. package/dist/api/types/ClientFacingMenstrualCycle.js +5 -0
  105. package/dist/api/types/ClientFacingMenstrualCycleSourceProvider.d.ts +5 -0
  106. package/dist/api/types/ClientFacingMenstrualCycleSourceProvider.js +5 -0
  107. package/dist/api/types/ClientFacingMenstrualCycleSourceType.d.ts +19 -0
  108. package/dist/api/types/ClientFacingMenstrualCycleSourceType.js +21 -0
  109. package/dist/api/types/ClientFacingSport.d.ts +1 -0
  110. package/dist/api/types/MenstrualCycleResponse.d.ts +1 -1
  111. package/dist/api/types/WorkoutColumnExprWorkout.d.ts +1 -2
  112. package/dist/api/types/WorkoutColumnExprWorkout.js +0 -1
  113. package/dist/api/types/index.d.ts +9 -1
  114. package/dist/api/types/index.js +9 -1
  115. package/dist/serialization/types/ClientFacingElectrocardiogram.d.ts +32 -0
  116. package/dist/serialization/types/ClientFacingElectrocardiogram.js +53 -0
  117. package/dist/serialization/types/ClientFacingElectrocardiogramClassification.d.ts +10 -0
  118. package/dist/serialization/types/ClientFacingElectrocardiogramClassification.js +31 -0
  119. package/dist/serialization/types/ClientFacingElectrocardiogramInconclusiveCause.d.ts +10 -0
  120. package/dist/serialization/types/ClientFacingElectrocardiogramInconclusiveCause.js +31 -0
  121. package/dist/serialization/types/ClientFacingElectrocardiogramResponse.d.ts +13 -0
  122. package/dist/serialization/types/ClientFacingElectrocardiogramResponse.js +34 -0
  123. package/dist/serialization/types/ClientFacingElectrocardiogramSourceProvider.d.ts +12 -0
  124. package/dist/serialization/types/ClientFacingElectrocardiogramSourceProvider.js +33 -0
  125. package/dist/serialization/types/ClientFacingElectrocardiogramSourceType.d.ts +10 -0
  126. package/dist/serialization/types/ClientFacingElectrocardiogramSourceType.js +45 -0
  127. package/dist/serialization/types/ClientFacingLabLocation.d.ts +2 -0
  128. package/dist/serialization/types/ClientFacingLabLocation.js +2 -0
  129. package/dist/serialization/types/{MenstrualCycle.d.ts → ClientFacingMenstrualCycle.d.ts} +9 -2
  130. package/dist/serialization/types/{MenstrualCycle.js → ClientFacingMenstrualCycle.js} +9 -2
  131. package/dist/serialization/types/ClientFacingMenstrualCycleSourceProvider.d.ts +12 -0
  132. package/dist/serialization/types/ClientFacingMenstrualCycleSourceProvider.js +33 -0
  133. package/dist/serialization/types/ClientFacingMenstrualCycleSourceType.d.ts +10 -0
  134. package/dist/serialization/types/ClientFacingMenstrualCycleSourceType.js +45 -0
  135. package/dist/serialization/types/MenstrualCycleResponse.d.ts +2 -2
  136. package/dist/serialization/types/MenstrualCycleResponse.js +2 -2
  137. package/dist/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
  138. package/dist/serialization/types/WorkoutColumnExprWorkout.js +0 -1
  139. package/dist/serialization/types/index.d.ts +9 -1
  140. package/dist/serialization/types/index.js +9 -1
  141. package/dist/version.d.ts +1 -1
  142. package/dist/version.js +1 -1
  143. package/package.json +1 -1
  144. package/reference.md +75 -1051
  145. package/serialization/types/ClientFacingElectrocardiogram.d.ts +32 -0
  146. package/serialization/types/ClientFacingElectrocardiogram.js +53 -0
  147. package/serialization/types/ClientFacingElectrocardiogramClassification.d.ts +10 -0
  148. package/serialization/types/ClientFacingElectrocardiogramClassification.js +31 -0
  149. package/serialization/types/ClientFacingElectrocardiogramInconclusiveCause.d.ts +10 -0
  150. package/serialization/types/ClientFacingElectrocardiogramInconclusiveCause.js +31 -0
  151. package/serialization/types/ClientFacingElectrocardiogramResponse.d.ts +13 -0
  152. package/serialization/types/ClientFacingElectrocardiogramResponse.js +34 -0
  153. package/serialization/types/ClientFacingElectrocardiogramSourceProvider.d.ts +12 -0
  154. package/serialization/types/ClientFacingElectrocardiogramSourceProvider.js +33 -0
  155. package/serialization/types/ClientFacingElectrocardiogramSourceType.d.ts +10 -0
  156. package/serialization/types/ClientFacingElectrocardiogramSourceType.js +45 -0
  157. package/serialization/types/ClientFacingLabLocation.d.ts +2 -0
  158. package/serialization/types/ClientFacingLabLocation.js +2 -0
  159. package/serialization/types/{MenstrualCycle.d.ts → ClientFacingMenstrualCycle.d.ts} +9 -2
  160. package/serialization/types/{MenstrualCycle.js → ClientFacingMenstrualCycle.js} +9 -2
  161. package/serialization/types/ClientFacingMenstrualCycleSourceProvider.d.ts +12 -0
  162. package/serialization/types/ClientFacingMenstrualCycleSourceProvider.js +33 -0
  163. package/serialization/types/ClientFacingMenstrualCycleSourceType.d.ts +10 -0
  164. package/serialization/types/ClientFacingMenstrualCycleSourceType.js +45 -0
  165. package/serialization/types/MenstrualCycleResponse.d.ts +2 -2
  166. package/serialization/types/MenstrualCycleResponse.js +2 -2
  167. package/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
  168. package/serialization/types/WorkoutColumnExprWorkout.js +0 -1
  169. package/serialization/types/index.d.ts +9 -1
  170. package/serialization/types/index.js +9 -1
  171. package/version.d.ts +1 -1
  172. package/version.js +1 -1
  173. /package/api/{types/MenstrualCycle.js → resources/electrocardiogram/client/requests/ElectrocardiogramGetRequest.js} +0 -0
  174. /package/{dist/api/types/MenstrualCycle.js → api/types/ClientFacingElectrocardiogram.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.144", "User-Agent": "@tryvital/vital-node/3.1.144", "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.146", "User-Agent": "@tryvital/vital-node/3.1.146", "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.144", "User-Agent": "@tryvital/vital-node/3.1.144", "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.146", "User-Agent": "@tryvital/vital-node/3.1.146", "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.144", "User-Agent": "@tryvital/vital-node/3.1.144", "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.146", "User-Agent": "@tryvital/vital-node/3.1.146", "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,
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ClientFacingElectrocardiogram {
6
+ id: string;
7
+ sessionStart: Date;
8
+ sessionEnd: Date;
9
+ voltageSampleCount: number;
10
+ heartRateMean?: number;
11
+ samplingFrequencyHz?: number;
12
+ classification?: Vital.ClientFacingElectrocardiogramClassification;
13
+ inconclusiveCause?: Vital.ClientFacingElectrocardiogramInconclusiveCause;
14
+ algorithmVersion?: string;
15
+ timeZone?: string;
16
+ sourceProvider: Vital.ClientFacingElectrocardiogramSourceProvider;
17
+ sourceType: Vital.ClientFacingElectrocardiogramSourceType;
18
+ sourceAppId?: string;
19
+ sourceDeviceModel?: string;
20
+ userId: string;
21
+ source: Vital.ClientFacingSource;
22
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ClientFacingElectrocardiogramClassification = "sinus_rhythm" | "atrial_fibrillation" | "inconclusive";
5
+ export declare const ClientFacingElectrocardiogramClassification: {
6
+ readonly SinusRhythm: "sinus_rhythm";
7
+ readonly AtrialFibrillation: "atrial_fibrillation";
8
+ readonly Inconclusive: "inconclusive";
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.ClientFacingElectrocardiogramClassification = void 0;
7
+ exports.ClientFacingElectrocardiogramClassification = {
8
+ SinusRhythm: "sinus_rhythm",
9
+ AtrialFibrillation: "atrial_fibrillation",
10
+ Inconclusive: "inconclusive",
11
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ClientFacingElectrocardiogramInconclusiveCause = "high_heart_rate" | "low_heart_rate" | "poor_reading";
5
+ export declare const ClientFacingElectrocardiogramInconclusiveCause: {
6
+ readonly HighHeartRate: "high_heart_rate";
7
+ readonly LowHeartRate: "low_heart_rate";
8
+ readonly PoorReading: "poor_reading";
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.ClientFacingElectrocardiogramInconclusiveCause = void 0;
7
+ exports.ClientFacingElectrocardiogramInconclusiveCause = {
8
+ HighHeartRate: "high_heart_rate",
9
+ LowHeartRate: "low_heart_rate",
10
+ PoorReading: "poor_reading",
11
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ClientFacingElectrocardiogramResponse {
6
+ electrocardiogram: Vital.ClientFacingElectrocardiogram[];
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,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export declare type ClientFacingElectrocardiogramSourceProvider = Vital.Providers | Vital.Labs;
@@ -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
+ export declare type ClientFacingElectrocardiogramSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
5
+ export declare const ClientFacingElectrocardiogramSourceType: {
6
+ readonly Unknown: "unknown";
7
+ readonly Phone: "phone";
8
+ readonly Watch: "watch";
9
+ readonly App: "app";
10
+ readonly MultipleSources: "multiple_sources";
11
+ readonly Fingerprick: "fingerprick";
12
+ readonly Cuff: "cuff";
13
+ readonly ManualScan: "manual_scan";
14
+ readonly Automatic: "automatic";
15
+ readonly Scale: "scale";
16
+ readonly ChestStrap: "chest_strap";
17
+ readonly Ring: "ring";
18
+ readonly Lab: "lab";
19
+ };
@@ -0,0 +1,21 @@
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.ClientFacingElectrocardiogramSourceType = void 0;
7
+ exports.ClientFacingElectrocardiogramSourceType = {
8
+ Unknown: "unknown",
9
+ Phone: "phone",
10
+ Watch: "watch",
11
+ App: "app",
12
+ MultipleSources: "multiple_sources",
13
+ Fingerprick: "fingerprick",
14
+ Cuff: "cuff",
15
+ ManualScan: "manual_scan",
16
+ Automatic: "automatic",
17
+ Scale: "scale",
18
+ ChestStrap: "chest_strap",
19
+ Ring: "ring",
20
+ Lab: "lab",
21
+ };
@@ -7,4 +7,5 @@ export interface ClientFacingLabLocation {
7
7
  distance: number;
8
8
  siteCode: string;
9
9
  supportedBillTypes: Vital.Billing[];
10
+ location: Vital.LngLat;
10
11
  }
@@ -2,7 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vital from "../index";
5
- export interface MenstrualCycle {
5
+ export interface ClientFacingMenstrualCycle {
6
+ id: string;
6
7
  periodStart: string;
7
8
  periodEnd?: string;
8
9
  cycleEnd?: string;
@@ -17,5 +18,9 @@ export interface MenstrualCycle {
17
18
  homeProgesteroneTest?: Vital.HomeProgesteroneTestEntry[];
18
19
  sexualActivity?: Vital.SexualActivityEntry[];
19
20
  basalBodyTemperature?: Vital.BasalBodyTemperatureEntry[];
21
+ sourceProvider: Vital.ClientFacingMenstrualCycleSourceProvider;
22
+ sourceType: Vital.ClientFacingMenstrualCycleSourceType;
23
+ sourceAppId?: string;
24
+ userId: string;
20
25
  source: Vital.ClientFacingSource;
21
26
  }
@@ -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,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export declare type ClientFacingMenstrualCycleSourceProvider = Vital.Providers | Vital.Labs;
@@ -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
+ export declare type ClientFacingMenstrualCycleSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
5
+ export declare const ClientFacingMenstrualCycleSourceType: {
6
+ readonly Unknown: "unknown";
7
+ readonly Phone: "phone";
8
+ readonly Watch: "watch";
9
+ readonly App: "app";
10
+ readonly MultipleSources: "multiple_sources";
11
+ readonly Fingerprick: "fingerprick";
12
+ readonly Cuff: "cuff";
13
+ readonly ManualScan: "manual_scan";
14
+ readonly Automatic: "automatic";
15
+ readonly Scale: "scale";
16
+ readonly ChestStrap: "chest_strap";
17
+ readonly Ring: "ring";
18
+ readonly Lab: "lab";
19
+ };
@@ -0,0 +1,21 @@
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.ClientFacingMenstrualCycleSourceType = void 0;
7
+ exports.ClientFacingMenstrualCycleSourceType = {
8
+ Unknown: "unknown",
9
+ Phone: "phone",
10
+ Watch: "watch",
11
+ App: "app",
12
+ MultipleSources: "multiple_sources",
13
+ Fingerprick: "fingerprick",
14
+ Cuff: "cuff",
15
+ ManualScan: "manual_scan",
16
+ Automatic: "automatic",
17
+ Scale: "scale",
18
+ ChestStrap: "chest_strap",
19
+ Ring: "ring",
20
+ Lab: "lab",
21
+ };
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ClientFacingSport {
5
+ /** This ID is unstable across environments. Use the slug instead. */
5
6
  id: number;
6
7
  /** Sport's name */
7
8
  name: string;
@@ -3,5 +3,5 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface MenstrualCycleResponse {
6
- menstrualCycle: Vital.MenstrualCycle[];
6
+ menstrualCycle: Vital.ClientFacingMenstrualCycle[];
7
7
  }
@@ -1,12 +1,11 @@
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_id" | "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" | "source_type" | "source_provider" | "source_app_id";
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" | "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";
8
8
  readonly Title: "title";
9
- readonly SportId: "sport_id";
10
9
  readonly SportName: "sport_name";
11
10
  readonly SportSlug: "sport_slug";
12
11
  readonly DurationActiveSecond: "duration_active_second";
@@ -8,7 +8,6 @@ exports.WorkoutColumnExprWorkout = {
8
8
  SessionStart: "session_start",
9
9
  SessionEnd: "session_end",
10
10
  Title: "title",
11
- SportId: "sport_id",
12
11
  SportName: "sport_name",
13
12
  SportSlug: "sport_slug",
14
13
  DurationActiveSecond: "duration_active_second",
@@ -61,6 +61,12 @@ export * from "./ClientFacingCarbohydratesSample";
61
61
  export * from "./ClientFacingCholesterolTimeseries";
62
62
  export * from "./ClientFacingDiagnosisInformation";
63
63
  export * from "./ClientFacingDistanceTimeseries";
64
+ export * from "./ClientFacingElectrocardiogramClassification";
65
+ export * from "./ClientFacingElectrocardiogramInconclusiveCause";
66
+ export * from "./ClientFacingElectrocardiogramSourceProvider";
67
+ export * from "./ClientFacingElectrocardiogramSourceType";
68
+ export * from "./ClientFacingElectrocardiogram";
69
+ export * from "./ClientFacingElectrocardiogramResponse";
64
70
  export * from "./ClientFacingElectrocardiogramVoltageTimeseries";
65
71
  export * from "./ClientFacingFloorsClimbedTimeseries";
66
72
  export * from "./ClientFacingFood";
@@ -92,6 +98,9 @@ export * from "./ClientFacingLoinc";
92
98
  export * from "./ClientFacingMarker";
93
99
  export * from "./ClientFacingMarkerComplete";
94
100
  export * from "./ClientFacingMealResponse";
101
+ export * from "./ClientFacingMenstrualCycleSourceProvider";
102
+ export * from "./ClientFacingMenstrualCycleSourceType";
103
+ export * from "./ClientFacingMenstrualCycle";
95
104
  export * from "./ClientFacingMindfulnessMinutesTimeseries";
96
105
  export * from "./ClientFacingNoteSampleTagsItem";
97
106
  export * from "./ClientFacingNoteSample";
@@ -219,7 +228,6 @@ export * from "./Macros";
219
228
  export * from "./ManualProviders";
220
229
  export * from "./MarkerType";
221
230
  export * from "./MealInDbBaseClientFacingSource";
222
- export * from "./MenstrualCycle";
223
231
  export * from "./MenstrualCycleResponse";
224
232
  export * from "./MenstrualFlowEntryFlow";
225
233
  export * from "./MenstrualFlowEntry";
@@ -77,6 +77,12 @@ __exportStar(require("./ClientFacingCarbohydratesSample"), exports);
77
77
  __exportStar(require("./ClientFacingCholesterolTimeseries"), exports);
78
78
  __exportStar(require("./ClientFacingDiagnosisInformation"), exports);
79
79
  __exportStar(require("./ClientFacingDistanceTimeseries"), exports);
80
+ __exportStar(require("./ClientFacingElectrocardiogramClassification"), exports);
81
+ __exportStar(require("./ClientFacingElectrocardiogramInconclusiveCause"), exports);
82
+ __exportStar(require("./ClientFacingElectrocardiogramSourceProvider"), exports);
83
+ __exportStar(require("./ClientFacingElectrocardiogramSourceType"), exports);
84
+ __exportStar(require("./ClientFacingElectrocardiogram"), exports);
85
+ __exportStar(require("./ClientFacingElectrocardiogramResponse"), exports);
80
86
  __exportStar(require("./ClientFacingElectrocardiogramVoltageTimeseries"), exports);
81
87
  __exportStar(require("./ClientFacingFloorsClimbedTimeseries"), exports);
82
88
  __exportStar(require("./ClientFacingFood"), exports);
@@ -108,6 +114,9 @@ __exportStar(require("./ClientFacingLoinc"), exports);
108
114
  __exportStar(require("./ClientFacingMarker"), exports);
109
115
  __exportStar(require("./ClientFacingMarkerComplete"), exports);
110
116
  __exportStar(require("./ClientFacingMealResponse"), exports);
117
+ __exportStar(require("./ClientFacingMenstrualCycleSourceProvider"), exports);
118
+ __exportStar(require("./ClientFacingMenstrualCycleSourceType"), exports);
119
+ __exportStar(require("./ClientFacingMenstrualCycle"), exports);
111
120
  __exportStar(require("./ClientFacingMindfulnessMinutesTimeseries"), exports);
112
121
  __exportStar(require("./ClientFacingNoteSampleTagsItem"), exports);
113
122
  __exportStar(require("./ClientFacingNoteSample"), exports);
@@ -235,7 +244,6 @@ __exportStar(require("./Macros"), exports);
235
244
  __exportStar(require("./ManualProviders"), exports);
236
245
  __exportStar(require("./MarkerType"), exports);
237
246
  __exportStar(require("./MealInDbBaseClientFacingSource"), exports);
238
- __exportStar(require("./MenstrualCycle"), exports);
239
247
  __exportStar(require("./MenstrualCycleResponse"), exports);
240
248
  __exportStar(require("./MenstrualFlowEntryFlow"), exports);
241
249
  __exportStar(require("./MenstrualFlowEntry"), exports);
package/dist/Client.d.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Link } from "./api/resources/link/client/Client";
7
+ import { Electrocardiogram } from "./api/resources/electrocardiogram/client/Client";
7
8
  import { SleepCycle } from "./api/resources/sleepCycle/client/Client";
8
9
  import { Profile } from "./api/resources/profile/client/Client";
9
10
  import { Devices } from "./api/resources/devices/client/Client";
@@ -41,6 +42,8 @@ export declare class VitalClient {
41
42
  constructor(_options?: VitalClient.Options);
42
43
  protected _link: Link | undefined;
43
44
  get link(): Link;
45
+ protected _electrocardiogram: Electrocardiogram | undefined;
46
+ get electrocardiogram(): Electrocardiogram;
44
47
  protected _sleepCycle: SleepCycle | undefined;
45
48
  get sleepCycle(): SleepCycle;
46
49
  protected _profile: Profile | undefined;
package/dist/Client.js CHANGED
@@ -5,24 +5,25 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.VitalClient = void 0;
7
7
  const Client_1 = require("./api/resources/link/client/Client");
8
- const Client_2 = require("./api/resources/sleepCycle/client/Client");
9
- const Client_3 = require("./api/resources/profile/client/Client");
10
- const Client_4 = require("./api/resources/devices/client/Client");
11
- const Client_5 = require("./api/resources/activity/client/Client");
12
- const Client_6 = require("./api/resources/workouts/client/Client");
13
- const Client_7 = require("./api/resources/sleep/client/Client");
14
- const Client_8 = require("./api/resources/body/client/Client");
15
- const Client_9 = require("./api/resources/meal/client/Client");
16
- const Client_10 = require("./api/resources/menstrualCycle/client/Client");
17
- const Client_11 = require("./api/resources/vitals/client/Client");
18
- const Client_12 = require("./api/resources/user/client/Client");
19
- const Client_13 = require("./api/resources/team/client/Client");
20
- const Client_14 = require("./api/resources/providers/client/Client");
21
- const Client_15 = require("./api/resources/introspect/client/Client");
22
- const Client_16 = require("./api/resources/labTests/client/Client");
23
- const Client_17 = require("./api/resources/testkit/client/Client");
24
- const Client_18 = require("./api/resources/insurance/client/Client");
25
- const Client_19 = require("./api/resources/aggregate/client/Client");
8
+ const Client_2 = require("./api/resources/electrocardiogram/client/Client");
9
+ const Client_3 = require("./api/resources/sleepCycle/client/Client");
10
+ const Client_4 = require("./api/resources/profile/client/Client");
11
+ const Client_5 = require("./api/resources/devices/client/Client");
12
+ const Client_6 = require("./api/resources/activity/client/Client");
13
+ const Client_7 = require("./api/resources/workouts/client/Client");
14
+ const Client_8 = require("./api/resources/sleep/client/Client");
15
+ const Client_9 = require("./api/resources/body/client/Client");
16
+ const Client_10 = require("./api/resources/meal/client/Client");
17
+ const Client_11 = require("./api/resources/menstrualCycle/client/Client");
18
+ const Client_12 = require("./api/resources/vitals/client/Client");
19
+ const Client_13 = require("./api/resources/user/client/Client");
20
+ const Client_14 = require("./api/resources/team/client/Client");
21
+ const Client_15 = require("./api/resources/providers/client/Client");
22
+ const Client_16 = require("./api/resources/introspect/client/Client");
23
+ const Client_17 = require("./api/resources/labTests/client/Client");
24
+ const Client_18 = require("./api/resources/testkit/client/Client");
25
+ const Client_19 = require("./api/resources/insurance/client/Client");
26
+ const Client_20 = require("./api/resources/aggregate/client/Client");
26
27
  class VitalClient {
27
28
  constructor(_options = {}) {
28
29
  this._options = _options;
@@ -31,77 +32,81 @@ class VitalClient {
31
32
  var _a;
32
33
  return ((_a = this._link) !== null && _a !== void 0 ? _a : (this._link = new Client_1.Link(this._options)));
33
34
  }
35
+ get electrocardiogram() {
36
+ var _a;
37
+ return ((_a = this._electrocardiogram) !== null && _a !== void 0 ? _a : (this._electrocardiogram = new Client_2.Electrocardiogram(this._options)));
38
+ }
34
39
  get sleepCycle() {
35
40
  var _a;
36
- return ((_a = this._sleepCycle) !== null && _a !== void 0 ? _a : (this._sleepCycle = new Client_2.SleepCycle(this._options)));
41
+ return ((_a = this._sleepCycle) !== null && _a !== void 0 ? _a : (this._sleepCycle = new Client_3.SleepCycle(this._options)));
37
42
  }
38
43
  get profile() {
39
44
  var _a;
40
- return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new Client_3.Profile(this._options)));
45
+ return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new Client_4.Profile(this._options)));
41
46
  }
42
47
  get devices() {
43
48
  var _a;
44
- return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new Client_4.Devices(this._options)));
49
+ return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new Client_5.Devices(this._options)));
45
50
  }
46
51
  get activity() {
47
52
  var _a;
48
- return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new Client_5.Activity(this._options)));
53
+ return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new Client_6.Activity(this._options)));
49
54
  }
50
55
  get workouts() {
51
56
  var _a;
52
- return ((_a = this._workouts) !== null && _a !== void 0 ? _a : (this._workouts = new Client_6.Workouts(this._options)));
57
+ return ((_a = this._workouts) !== null && _a !== void 0 ? _a : (this._workouts = new Client_7.Workouts(this._options)));
53
58
  }
54
59
  get sleep() {
55
60
  var _a;
56
- return ((_a = this._sleep) !== null && _a !== void 0 ? _a : (this._sleep = new Client_7.Sleep(this._options)));
61
+ return ((_a = this._sleep) !== null && _a !== void 0 ? _a : (this._sleep = new Client_8.Sleep(this._options)));
57
62
  }
58
63
  get body() {
59
64
  var _a;
60
- return ((_a = this._body) !== null && _a !== void 0 ? _a : (this._body = new Client_8.Body(this._options)));
65
+ return ((_a = this._body) !== null && _a !== void 0 ? _a : (this._body = new Client_9.Body(this._options)));
61
66
  }
62
67
  get meal() {
63
68
  var _a;
64
- return ((_a = this._meal) !== null && _a !== void 0 ? _a : (this._meal = new Client_9.Meal(this._options)));
69
+ return ((_a = this._meal) !== null && _a !== void 0 ? _a : (this._meal = new Client_10.Meal(this._options)));
65
70
  }
66
71
  get menstrualCycle() {
67
72
  var _a;
68
- return ((_a = this._menstrualCycle) !== null && _a !== void 0 ? _a : (this._menstrualCycle = new Client_10.MenstrualCycle(this._options)));
73
+ return ((_a = this._menstrualCycle) !== null && _a !== void 0 ? _a : (this._menstrualCycle = new Client_11.MenstrualCycle(this._options)));
69
74
  }
70
75
  get vitals() {
71
76
  var _a;
72
- return ((_a = this._vitals) !== null && _a !== void 0 ? _a : (this._vitals = new Client_11.Vitals(this._options)));
77
+ return ((_a = this._vitals) !== null && _a !== void 0 ? _a : (this._vitals = new Client_12.Vitals(this._options)));
73
78
  }
74
79
  get user() {
75
80
  var _a;
76
- return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_12.User(this._options)));
81
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_13.User(this._options)));
77
82
  }
78
83
  get team() {
79
84
  var _a;
80
- return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new Client_13.Team(this._options)));
85
+ return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new Client_14.Team(this._options)));
81
86
  }
82
87
  get providers() {
83
88
  var _a;
84
- return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_14.Providers(this._options)));
89
+ return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_15.Providers(this._options)));
85
90
  }
86
91
  get introspect() {
87
92
  var _a;
88
- return ((_a = this._introspect) !== null && _a !== void 0 ? _a : (this._introspect = new Client_15.Introspect(this._options)));
93
+ return ((_a = this._introspect) !== null && _a !== void 0 ? _a : (this._introspect = new Client_16.Introspect(this._options)));
89
94
  }
90
95
  get labTests() {
91
96
  var _a;
92
- return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new Client_16.LabTests(this._options)));
97
+ return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new Client_17.LabTests(this._options)));
93
98
  }
94
99
  get testkit() {
95
100
  var _a;
96
- return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_17.Testkit(this._options)));
101
+ return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_18.Testkit(this._options)));
97
102
  }
98
103
  get insurance() {
99
104
  var _a;
100
- return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_18.Insurance(this._options)));
105
+ return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_19.Insurance(this._options)));
101
106
  }
102
107
  get aggregate() {
103
108
  var _a;
104
- return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_19.Aggregate(this._options)));
109
+ return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_20.Aggregate(this._options)));
105
110
  }
106
111
  }
107
112
  exports.VitalClient = VitalClient;
@@ -78,7 +78,7 @@ class Activity {
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/activity/${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.144", "User-Agent": "@tryvital/vital-node/3.1.144", "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.146", "User-Agent": "@tryvital/vital-node/3.1.146", "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 Activity {
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/activity/${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.144", "User-Agent": "@tryvital/vital-node/3.1.144", "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.146", "User-Agent": "@tryvital/vital-node/3.1.146", "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",
@@ -81,7 +81,7 @@ class Aggregate {
81
81
  const _response = yield core.fetcher({
82
82
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/query`),
83
83
  method: "POST",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.144", "User-Agent": "@tryvital/vital-node/3.1.144", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.146", "User-Agent": "@tryvital/vital-node/3.1.146", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.QueryBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -78,7 +78,7 @@ class Body {
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/body/${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.144", "User-Agent": "@tryvital/vital-node/3.1.144", "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.146", "User-Agent": "@tryvital/vital-node/3.1.146", "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 Body {
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/body/${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.144", "User-Agent": "@tryvital/vital-node/3.1.144", "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.146", "User-Agent": "@tryvital/vital-node/3.1.146", "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",
@@ -72,7 +72,7 @@ class Devices {
72
72
  const _response = yield core.fetcher({
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${encodeURIComponent(userId)}/raw`),
74
74
  method: "GET",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.144", "User-Agent": "@tryvital/vital-node/3.1.144", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.146", "User-Agent": "@tryvital/vital-node/3.1.146", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  queryParameters: _queryParams,
78
78
  requestType: "json",