@tryvital/vital-node 3.1.173 → 3.1.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) 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/electrocardiogram/client/Client.js +1 -1
  6. package/api/resources/insurance/client/Client.js +3 -3
  7. package/api/resources/introspect/client/Client.js +2 -2
  8. package/api/resources/labTests/client/Client.js +34 -34
  9. package/api/resources/link/client/Client.d.ts +3 -3
  10. package/api/resources/link/client/Client.js +17 -32
  11. package/api/resources/meal/client/Client.js +1 -1
  12. package/api/resources/menstrualCycle/client/Client.js +1 -1
  13. package/api/resources/profile/client/Client.js +2 -2
  14. package/api/resources/providers/client/Client.js +1 -1
  15. package/api/resources/sleep/client/Client.js +4 -4
  16. package/api/resources/sleepCycle/client/Client.js +1 -1
  17. package/api/resources/team/client/Client.js +7 -7
  18. package/api/resources/testkit/client/Client.js +2 -2
  19. package/api/resources/user/client/Client.js +16 -16
  20. package/api/resources/vitals/client/Client.js +58 -58
  21. package/api/resources/workouts/client/Client.js +3 -3
  22. package/api/types/ClientFacingWorkout.d.ts +2 -2
  23. package/api/types/ClientFacingWorkoutMap.d.ts +9 -0
  24. package/api/types/WorkoutColumnExprWorkout.d.ts +3 -2
  25. package/api/types/WorkoutColumnExprWorkout.js +2 -1
  26. package/api/types/index.d.ts +1 -2
  27. package/api/types/index.js +1 -2
  28. package/dist/api/resources/activity/client/Client.js +2 -2
  29. package/dist/api/resources/aggregate/client/Client.js +1 -1
  30. package/dist/api/resources/body/client/Client.js +2 -2
  31. package/dist/api/resources/devices/client/Client.js +1 -1
  32. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  33. package/dist/api/resources/insurance/client/Client.js +3 -3
  34. package/dist/api/resources/introspect/client/Client.js +2 -2
  35. package/dist/api/resources/labTests/client/Client.js +34 -34
  36. package/dist/api/resources/link/client/Client.d.ts +3 -3
  37. package/dist/api/resources/link/client/Client.js +17 -32
  38. package/dist/api/resources/meal/client/Client.js +1 -1
  39. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  40. package/dist/api/resources/profile/client/Client.js +2 -2
  41. package/dist/api/resources/providers/client/Client.js +1 -1
  42. package/dist/api/resources/sleep/client/Client.js +4 -4
  43. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  44. package/dist/api/resources/team/client/Client.js +7 -7
  45. package/dist/api/resources/testkit/client/Client.js +2 -2
  46. package/dist/api/resources/user/client/Client.js +16 -16
  47. package/dist/api/resources/vitals/client/Client.js +58 -58
  48. package/dist/api/resources/workouts/client/Client.js +3 -3
  49. package/dist/api/types/ClientFacingWorkout.d.ts +2 -2
  50. package/dist/api/types/ClientFacingWorkoutMap.d.ts +9 -0
  51. package/dist/api/types/WorkoutColumnExprWorkout.d.ts +3 -2
  52. package/dist/api/types/WorkoutColumnExprWorkout.js +2 -1
  53. package/dist/api/types/index.d.ts +1 -2
  54. package/dist/api/types/index.js +1 -2
  55. package/dist/serialization/types/ClientFacingWorkout.d.ts +2 -1
  56. package/dist/serialization/types/ClientFacingWorkout.js +2 -1
  57. package/dist/serialization/types/ClientFacingWorkoutMap.d.ts +13 -0
  58. package/dist/serialization/types/{ConnectionStatusState.js → ClientFacingWorkoutMap.js} +5 -2
  59. package/dist/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
  60. package/dist/serialization/types/WorkoutColumnExprWorkout.js +2 -1
  61. package/dist/serialization/types/index.d.ts +1 -2
  62. package/dist/serialization/types/index.js +1 -2
  63. package/dist/version.d.ts +1 -1
  64. package/dist/version.js +1 -1
  65. package/package.json +1 -1
  66. package/reference.md +3 -3
  67. package/serialization/types/ClientFacingWorkout.d.ts +2 -1
  68. package/serialization/types/ClientFacingWorkout.js +2 -1
  69. package/serialization/types/ClientFacingWorkoutMap.d.ts +13 -0
  70. package/serialization/types/{ConnectionStatusState.js → ClientFacingWorkoutMap.js} +5 -2
  71. package/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
  72. package/serialization/types/WorkoutColumnExprWorkout.js +2 -1
  73. package/serialization/types/index.d.ts +1 -2
  74. package/serialization/types/index.js +1 -2
  75. package/version.d.ts +1 -1
  76. package/version.js +1 -1
  77. package/api/types/ConnectionStatus.d.ts +0 -12
  78. package/api/types/ConnectionStatusState.d.ts +0 -9
  79. package/api/types/ConnectionStatusState.js +0 -11
  80. package/dist/api/types/ConnectionStatus.d.ts +0 -12
  81. package/dist/api/types/ConnectionStatusState.d.ts +0 -9
  82. package/dist/api/types/ConnectionStatusState.js +0 -11
  83. package/dist/serialization/types/ConnectionStatus.d.ts +0 -19
  84. package/dist/serialization/types/ConnectionStatus.js +0 -40
  85. package/dist/serialization/types/ConnectionStatusState.d.ts +0 -10
  86. package/serialization/types/ConnectionStatus.d.ts +0 -19
  87. package/serialization/types/ConnectionStatus.js +0 -40
  88. package/serialization/types/ConnectionStatusState.d.ts +0 -10
  89. /package/api/types/{ConnectionStatus.js → ClientFacingWorkoutMap.js} +0 -0
  90. /package/dist/api/types/{ConnectionStatus.js → ClientFacingWorkoutMap.js} +0 -0
@@ -78,7 +78,7 @@ class Workouts {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}`),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -154,7 +154,7 @@ class Workouts {
154
154
  const _response = yield core.fetcher({
155
155
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}/raw`),
156
156
  method: "GET",
157
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -216,7 +216,7 @@ class Workouts {
216
216
  const _response = yield core.fetcher({
217
217
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/workouts/${encodeURIComponent(workoutId)}/stream`),
218
218
  method: "GET",
219
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -50,8 +50,8 @@ export interface ClientFacingWorkout {
50
50
  weightedAverageWatts?: number;
51
51
  /** Number of steps accumulated during this workout::count */
52
52
  steps?: number;
53
- /** Map of workouts encoded as polyline */
54
- map?: Record<string, unknown>;
53
+ /** Map of the workout */
54
+ map?: Vital.ClientFacingWorkoutMap;
55
55
  /** Provider ID given for that specific workout */
56
56
  providerId: string;
57
57
  /** Source the data has come from. */
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ClientFacingWorkoutMap {
5
+ /** Polyline of the map */
6
+ polyline?: string;
7
+ /** A lower resolution summary of the polyline */
8
+ summaryPolyline?: string;
9
+ }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type WorkoutColumnExprWorkout = "session_start" | "session_end" | "title" | "sport_name" | "sport_slug" | "duration_active_second" | "heart_rate_mean" | "heart_rate_minimum" | "heart_rate_maximum" | "heart_rate_zone_1" | "heart_rate_zone_2" | "heart_rate_zone_3" | "heart_rate_zone_4" | "heart_rate_zone_5" | "heart_rate_zone_6" | "distance_meter" | "calories" | "elevation_gain_meter" | "elevation_maximum_meter" | "elevation_minimum_meter" | "speed_mean" | "speed_maximum" | "power_source" | "power_mean" | "power_maximum" | "power_weighted_mean" | "steps" | "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_polyline" | "map_summary_polyline" | "source_type" | "source_provider" | "source_app_id";
5
5
  export declare const WorkoutColumnExprWorkout: {
6
6
  readonly SessionStart: "session_start";
7
7
  readonly SessionEnd: "session_end";
@@ -30,7 +30,8 @@ export declare const WorkoutColumnExprWorkout: {
30
30
  readonly PowerMaximum: "power_maximum";
31
31
  readonly PowerWeightedMean: "power_weighted_mean";
32
32
  readonly Steps: "steps";
33
- readonly Map: "map";
33
+ readonly MapPolyline: "map_polyline";
34
+ readonly MapSummaryPolyline: "map_summary_polyline";
34
35
  readonly SourceType: "source_type";
35
36
  readonly SourceProvider: "source_provider";
36
37
  readonly SourceAppId: "source_app_id";
@@ -32,7 +32,8 @@ exports.WorkoutColumnExprWorkout = {
32
32
  PowerMaximum: "power_maximum",
33
33
  PowerWeightedMean: "power_weighted_mean",
34
34
  Steps: "steps",
35
- Map: "map",
35
+ MapPolyline: "map_polyline",
36
+ MapSummaryPolyline: "map_summary_polyline",
36
37
  SourceType: "source_type",
37
38
  SourceProvider: "source_provider",
38
39
  SourceAppId: "source_app_id",
@@ -165,6 +165,7 @@ export * from "./ClientFacingWaterTimeseries";
165
165
  export * from "./ClientFacingWorkout";
166
166
  export * from "./ClientFacingWorkoutDurationSampleIntensity";
167
167
  export * from "./ClientFacingWorkoutDurationSample";
168
+ export * from "./ClientFacingWorkoutMap";
168
169
  export * from "./ClientSleepCycleResponse";
169
170
  export * from "./ClientSleepResponse";
170
171
  export * from "./ClientUserIdConflict";
@@ -172,8 +173,6 @@ export * from "./ClientWorkoutResponse";
172
173
  export * from "./CompanyDetails";
173
174
  export * from "./ConnectedSourceClientFacing";
174
175
  export * from "./ConnectionRecipe";
175
- export * from "./ConnectionStatusState";
176
- export * from "./ConnectionStatus";
177
176
  export * from "./Consent";
178
177
  export * from "./ConsentType";
179
178
  export * from "./ContraceptiveEntryType";
@@ -181,6 +181,7 @@ __exportStar(require("./ClientFacingWaterTimeseries"), exports);
181
181
  __exportStar(require("./ClientFacingWorkout"), exports);
182
182
  __exportStar(require("./ClientFacingWorkoutDurationSampleIntensity"), exports);
183
183
  __exportStar(require("./ClientFacingWorkoutDurationSample"), exports);
184
+ __exportStar(require("./ClientFacingWorkoutMap"), exports);
184
185
  __exportStar(require("./ClientSleepCycleResponse"), exports);
185
186
  __exportStar(require("./ClientSleepResponse"), exports);
186
187
  __exportStar(require("./ClientUserIdConflict"), exports);
@@ -188,8 +189,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
188
189
  __exportStar(require("./CompanyDetails"), exports);
189
190
  __exportStar(require("./ConnectedSourceClientFacing"), exports);
190
191
  __exportStar(require("./ConnectionRecipe"), exports);
191
- __exportStar(require("./ConnectionStatusState"), exports);
192
- __exportStar(require("./ConnectionStatus"), exports);
193
192
  __exportStar(require("./Consent"), exports);
194
193
  __exportStar(require("./ConsentType"), exports);
195
194
  __exportStar(require("./ContraceptiveEntryType"), exports);
@@ -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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -154,7 +154,7 @@ class 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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -154,7 +154,7 @@ class 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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  queryParameters: _queryParams,
78
78
  requestType: "json",
@@ -78,7 +78,7 @@ class Electrocardiogram {
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/electrocardiogram/${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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -75,7 +75,7 @@ class Insurance {
75
75
  const _response = yield core.fetcher({
76
76
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.173", "User-Agent": "@tryvital/vital-node/3.1.173", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  requestType: "json",
@@ -137,7 +137,7 @@ class Insurance {
137
137
  const _response = yield core.fetcher({
138
138
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
139
139
  method: "POST",
140
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.173", "User-Agent": "@tryvital/vital-node/3.1.173", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
140
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
141
141
  contentType: "application/json",
142
142
  requestType: "json",
143
143
  body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -204,7 +204,7 @@ class Insurance {
204
204
  const _response = yield core.fetcher({
205
205
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
206
206
  method: "GET",
207
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.173", "User-Agent": "@tryvital/vital-node/3.1.173", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
207
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
208
  contentType: "application/json",
209
209
  queryParameters: _queryParams,
210
210
  requestType: "json",
@@ -81,7 +81,7 @@ class Introspect {
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, "v2/introspect/resources"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.173", "User-Agent": "@tryvital/vital-node/3.1.173", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -160,7 +160,7 @@ class Introspect {
160
160
  const _response = yield core.fetcher({
161
161
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
162
162
  method: "GET",
163
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.173", "User-Agent": "@tryvital/vital-node/3.1.173", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
163
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.175", "User-Agent": "@tryvital/vital-node/3.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
164
164
  contentType: "application/json",
165
165
  queryParameters: _queryParams,
166
166
  requestType: "json",