@tryvital/vital-node 3.1.387 → 3.1.388

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 (72) hide show
  1. package/Client.d.ts +9 -9
  2. package/Client.js +41 -41
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/aggregate/client/Client.js +3 -3
  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.js +1 -1
  8. package/api/resources/index.d.ts +5 -5
  9. package/api/resources/index.js +6 -6
  10. package/api/resources/insurance/client/Client.js +3 -3
  11. package/api/resources/introspect/client/Client.js +2 -2
  12. package/api/resources/labTests/client/Client.js +41 -41
  13. package/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.d.ts +1 -1
  14. package/api/resources/link/client/Client.js +19 -19
  15. package/api/resources/meal/client/Client.js +1 -1
  16. package/api/resources/menstrualCycle/client/Client.js +1 -1
  17. package/api/resources/order/client/Client.js +1 -1
  18. package/api/resources/payor/client/Client.js +1 -1
  19. package/api/resources/profile/client/Client.js +2 -2
  20. package/api/resources/providers/client/Client.js +1 -1
  21. package/api/resources/sleep/client/Client.js +3 -3
  22. package/api/resources/sleepCycle/client/Client.js +1 -1
  23. package/api/resources/team/client/Client.js +7 -7
  24. package/api/resources/testkit/client/Client.js +2 -2
  25. package/api/resources/user/client/Client.js +18 -18
  26. package/api/resources/vitals/client/Client.js +78 -78
  27. package/api/resources/workouts/client/Client.js +3 -3
  28. package/api/types/AllowedRadius.d.ts +2 -1
  29. package/api/types/AllowedRadius.js +1 -0
  30. package/dist/Client.d.ts +9 -9
  31. package/dist/Client.js +41 -41
  32. package/dist/api/resources/activity/client/Client.js +2 -2
  33. package/dist/api/resources/aggregate/client/Client.js +3 -3
  34. package/dist/api/resources/body/client/Client.js +2 -2
  35. package/dist/api/resources/devices/client/Client.js +1 -1
  36. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  37. package/dist/api/resources/index.d.ts +5 -5
  38. package/dist/api/resources/index.js +6 -6
  39. package/dist/api/resources/insurance/client/Client.js +3 -3
  40. package/dist/api/resources/introspect/client/Client.js +2 -2
  41. package/dist/api/resources/labTests/client/Client.js +41 -41
  42. package/dist/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.d.ts +1 -1
  43. package/dist/api/resources/link/client/Client.js +19 -19
  44. package/dist/api/resources/meal/client/Client.js +1 -1
  45. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  46. package/dist/api/resources/order/client/Client.js +1 -1
  47. package/dist/api/resources/payor/client/Client.js +1 -1
  48. package/dist/api/resources/profile/client/Client.js +2 -2
  49. package/dist/api/resources/providers/client/Client.js +1 -1
  50. package/dist/api/resources/sleep/client/Client.js +3 -3
  51. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  52. package/dist/api/resources/team/client/Client.js +7 -7
  53. package/dist/api/resources/testkit/client/Client.js +2 -2
  54. package/dist/api/resources/user/client/Client.js +18 -18
  55. package/dist/api/resources/vitals/client/Client.js +78 -78
  56. package/dist/api/resources/workouts/client/Client.js +3 -3
  57. package/dist/api/types/AllowedRadius.d.ts +2 -1
  58. package/dist/api/types/AllowedRadius.js +1 -0
  59. package/dist/serialization/resources/index.d.ts +1 -1
  60. package/dist/serialization/resources/index.js +1 -1
  61. package/dist/serialization/types/AllowedRadius.d.ts +1 -1
  62. package/dist/serialization/types/AllowedRadius.js +1 -1
  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 +1570 -1570
  67. package/serialization/resources/index.d.ts +1 -1
  68. package/serialization/resources/index.js +1 -1
  69. package/serialization/types/AllowedRadius.d.ts +1 -1
  70. package/serialization/types/AllowedRadius.js +1 -1
  71. package/version.d.ts +1 -1
  72. package/version.js +1 -1
package/Client.d.ts CHANGED
@@ -3,6 +3,8 @@
3
3
  */
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
+ import { Link } from "./api/resources/link/client/Client";
7
+ import { User } from "./api/resources/user/client/Client";
6
8
  import { Electrocardiogram } from "./api/resources/electrocardiogram/client/Client";
7
9
  import { SleepCycle } from "./api/resources/sleepCycle/client/Client";
8
10
  import { Profile } from "./api/resources/profile/client/Client";
@@ -13,13 +15,11 @@ import { Sleep } from "./api/resources/sleep/client/Client";
13
15
  import { Body } from "./api/resources/body/client/Client";
14
16
  import { Meal } from "./api/resources/meal/client/Client";
15
17
  import { MenstrualCycle } from "./api/resources/menstrualCycle/client/Client";
16
- import { User } from "./api/resources/user/client/Client";
17
- import { Link } from "./api/resources/link/client/Client";
18
18
  import { Providers } from "./api/resources/providers/client/Client";
19
+ import { Vitals } from "./api/resources/vitals/client/Client";
19
20
  import { Testkit } from "./api/resources/testkit/client/Client";
20
21
  import { LabTests } from "./api/resources/labTests/client/Client";
21
22
  import { Order } from "./api/resources/order/client/Client";
22
- import { Vitals } from "./api/resources/vitals/client/Client";
23
23
  import { Team } from "./api/resources/team/client/Client";
24
24
  import { Introspect } from "./api/resources/introspect/client/Client";
25
25
  import { Insurance } from "./api/resources/insurance/client/Client";
@@ -42,6 +42,10 @@ export declare namespace VitalClient {
42
42
  export declare class VitalClient {
43
43
  protected readonly _options: VitalClient.Options;
44
44
  constructor(_options?: VitalClient.Options);
45
+ protected _link: Link | undefined;
46
+ get link(): Link;
47
+ protected _user: User | undefined;
48
+ get user(): User;
45
49
  protected _electrocardiogram: Electrocardiogram | undefined;
46
50
  get electrocardiogram(): Electrocardiogram;
47
51
  protected _sleepCycle: SleepCycle | undefined;
@@ -62,20 +66,16 @@ export declare class VitalClient {
62
66
  get meal(): Meal;
63
67
  protected _menstrualCycle: MenstrualCycle | undefined;
64
68
  get menstrualCycle(): MenstrualCycle;
65
- protected _user: User | undefined;
66
- get user(): User;
67
- protected _link: Link | undefined;
68
- get link(): Link;
69
69
  protected _providers: Providers | undefined;
70
70
  get providers(): Providers;
71
+ protected _vitals: Vitals | undefined;
72
+ get vitals(): Vitals;
71
73
  protected _testkit: Testkit | undefined;
72
74
  get testkit(): Testkit;
73
75
  protected _labTests: LabTests | undefined;
74
76
  get labTests(): LabTests;
75
77
  protected _order: Order | undefined;
76
78
  get order(): Order;
77
- protected _vitals: Vitals | undefined;
78
- get vitals(): Vitals;
79
79
  protected _team: Team | undefined;
80
80
  get team(): Team;
81
81
  protected _introspect: Introspect | undefined;
package/Client.js CHANGED
@@ -4,23 +4,23 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.VitalClient = void 0;
7
- const Client_1 = require("./api/resources/electrocardiogram/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/user/client/Client");
18
- const Client_12 = require("./api/resources/link/client/Client");
7
+ const Client_1 = require("./api/resources/link/client/Client");
8
+ const Client_2 = require("./api/resources/user/client/Client");
9
+ const Client_3 = require("./api/resources/electrocardiogram/client/Client");
10
+ const Client_4 = require("./api/resources/sleepCycle/client/Client");
11
+ const Client_5 = require("./api/resources/profile/client/Client");
12
+ const Client_6 = require("./api/resources/devices/client/Client");
13
+ const Client_7 = require("./api/resources/activity/client/Client");
14
+ const Client_8 = require("./api/resources/workouts/client/Client");
15
+ const Client_9 = require("./api/resources/sleep/client/Client");
16
+ const Client_10 = require("./api/resources/body/client/Client");
17
+ const Client_11 = require("./api/resources/meal/client/Client");
18
+ const Client_12 = require("./api/resources/menstrualCycle/client/Client");
19
19
  const Client_13 = require("./api/resources/providers/client/Client");
20
- const Client_14 = require("./api/resources/testkit/client/Client");
21
- const Client_15 = require("./api/resources/labTests/client/Client");
22
- const Client_16 = require("./api/resources/order/client/Client");
23
- const Client_17 = require("./api/resources/vitals/client/Client");
20
+ const Client_14 = require("./api/resources/vitals/client/Client");
21
+ const Client_15 = require("./api/resources/testkit/client/Client");
22
+ const Client_16 = require("./api/resources/labTests/client/Client");
23
+ const Client_17 = require("./api/resources/order/client/Client");
24
24
  const Client_18 = require("./api/resources/team/client/Client");
25
25
  const Client_19 = require("./api/resources/introspect/client/Client");
26
26
  const Client_20 = require("./api/resources/insurance/client/Client");
@@ -30,73 +30,73 @@ class VitalClient {
30
30
  constructor(_options = {}) {
31
31
  this._options = _options;
32
32
  }
33
+ get link() {
34
+ var _a;
35
+ return ((_a = this._link) !== null && _a !== void 0 ? _a : (this._link = new Client_1.Link(this._options)));
36
+ }
37
+ get user() {
38
+ var _a;
39
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_2.User(this._options)));
40
+ }
33
41
  get electrocardiogram() {
34
42
  var _a;
35
- return ((_a = this._electrocardiogram) !== null && _a !== void 0 ? _a : (this._electrocardiogram = new Client_1.Electrocardiogram(this._options)));
43
+ return ((_a = this._electrocardiogram) !== null && _a !== void 0 ? _a : (this._electrocardiogram = new Client_3.Electrocardiogram(this._options)));
36
44
  }
37
45
  get sleepCycle() {
38
46
  var _a;
39
- return ((_a = this._sleepCycle) !== null && _a !== void 0 ? _a : (this._sleepCycle = new Client_2.SleepCycle(this._options)));
47
+ return ((_a = this._sleepCycle) !== null && _a !== void 0 ? _a : (this._sleepCycle = new Client_4.SleepCycle(this._options)));
40
48
  }
41
49
  get profile() {
42
50
  var _a;
43
- return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new Client_3.Profile(this._options)));
51
+ return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new Client_5.Profile(this._options)));
44
52
  }
45
53
  get devices() {
46
54
  var _a;
47
- return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new Client_4.Devices(this._options)));
55
+ return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new Client_6.Devices(this._options)));
48
56
  }
49
57
  get activity() {
50
58
  var _a;
51
- return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new Client_5.Activity(this._options)));
59
+ return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new Client_7.Activity(this._options)));
52
60
  }
53
61
  get workouts() {
54
62
  var _a;
55
- return ((_a = this._workouts) !== null && _a !== void 0 ? _a : (this._workouts = new Client_6.Workouts(this._options)));
63
+ return ((_a = this._workouts) !== null && _a !== void 0 ? _a : (this._workouts = new Client_8.Workouts(this._options)));
56
64
  }
57
65
  get sleep() {
58
66
  var _a;
59
- return ((_a = this._sleep) !== null && _a !== void 0 ? _a : (this._sleep = new Client_7.Sleep(this._options)));
67
+ return ((_a = this._sleep) !== null && _a !== void 0 ? _a : (this._sleep = new Client_9.Sleep(this._options)));
60
68
  }
61
69
  get body() {
62
70
  var _a;
63
- return ((_a = this._body) !== null && _a !== void 0 ? _a : (this._body = new Client_8.Body(this._options)));
71
+ return ((_a = this._body) !== null && _a !== void 0 ? _a : (this._body = new Client_10.Body(this._options)));
64
72
  }
65
73
  get meal() {
66
74
  var _a;
67
- return ((_a = this._meal) !== null && _a !== void 0 ? _a : (this._meal = new Client_9.Meal(this._options)));
75
+ return ((_a = this._meal) !== null && _a !== void 0 ? _a : (this._meal = new Client_11.Meal(this._options)));
68
76
  }
69
77
  get menstrualCycle() {
70
78
  var _a;
71
- return ((_a = this._menstrualCycle) !== null && _a !== void 0 ? _a : (this._menstrualCycle = new Client_10.MenstrualCycle(this._options)));
72
- }
73
- get user() {
74
- var _a;
75
- return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_11.User(this._options)));
76
- }
77
- get link() {
78
- var _a;
79
- return ((_a = this._link) !== null && _a !== void 0 ? _a : (this._link = new Client_12.Link(this._options)));
79
+ return ((_a = this._menstrualCycle) !== null && _a !== void 0 ? _a : (this._menstrualCycle = new Client_12.MenstrualCycle(this._options)));
80
80
  }
81
81
  get providers() {
82
82
  var _a;
83
83
  return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_13.Providers(this._options)));
84
84
  }
85
+ get vitals() {
86
+ var _a;
87
+ return ((_a = this._vitals) !== null && _a !== void 0 ? _a : (this._vitals = new Client_14.Vitals(this._options)));
88
+ }
85
89
  get testkit() {
86
90
  var _a;
87
- return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_14.Testkit(this._options)));
91
+ return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_15.Testkit(this._options)));
88
92
  }
89
93
  get labTests() {
90
94
  var _a;
91
- return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new Client_15.LabTests(this._options)));
95
+ return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new Client_16.LabTests(this._options)));
92
96
  }
93
97
  get order() {
94
98
  var _a;
95
- return ((_a = this._order) !== null && _a !== void 0 ? _a : (this._order = new Client_16.Order(this._options)));
96
- }
97
- get vitals() {
98
- var _a;
99
- return ((_a = this._vitals) !== null && _a !== void 0 ? _a : (this._vitals = new Client_17.Vitals(this._options)));
99
+ return ((_a = this._order) !== null && _a !== void 0 ? _a : (this._order = new Client_17.Order(this._options)));
100
100
  }
101
101
  get team() {
102
102
  var _a;
@@ -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.387", "User-Agent": "@tryvital/vital-node/3.1.387", "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.388", "User-Agent": "@tryvital/vital-node/3.1.388", "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.387", "User-Agent": "@tryvital/vital-node/3.1.387", "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.388", "User-Agent": "@tryvital/vital-node/3.1.388", "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.387", "User-Agent": "@tryvital/vital-node/3.1.387", "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.388", "User-Agent": "@tryvital/vital-node/3.1.388", "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" }),
@@ -144,7 +144,7 @@ class Aggregate {
144
144
  const _response = yield core.fetcher({
145
145
  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)}/continuous_query/${encodeURIComponent(queryIdOrSlug)}/result_table`),
146
146
  method: "GET",
147
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.387", "User-Agent": "@tryvital/vital-node/3.1.387", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
147
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.388", "User-Agent": "@tryvital/vital-node/3.1.388", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
148
148
  contentType: "application/json",
149
149
  requestType: "json",
150
150
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -215,7 +215,7 @@ class Aggregate {
215
215
  const _response = yield core.fetcher({
216
216
  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)}/continuous_query/${encodeURIComponent(queryIdOrSlug)}/task_history`),
217
217
  method: "GET",
218
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.387", "User-Agent": "@tryvital/vital-node/3.1.387", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
218
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.388", "User-Agent": "@tryvital/vital-node/3.1.388", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
219
219
  contentType: "application/json",
220
220
  queryParameters: _queryParams,
221
221
  requestType: "json",
@@ -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.387", "User-Agent": "@tryvital/vital-node/3.1.387", "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.388", "User-Agent": "@tryvital/vital-node/3.1.388", "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.387", "User-Agent": "@tryvital/vital-node/3.1.387", "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.388", "User-Agent": "@tryvital/vital-node/3.1.388", "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.387", "User-Agent": "@tryvital/vital-node/3.1.387", "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.388", "User-Agent": "@tryvital/vital-node/3.1.388", "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.387", "User-Agent": "@tryvital/vital-node/3.1.387", "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.388", "User-Agent": "@tryvital/vital-node/3.1.388", "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",
@@ -4,6 +4,7 @@ export * as labTests from "./labTests";
4
4
  export * from "./labTests/types";
5
5
  export * as aggregate from "./aggregate";
6
6
  export * from "./aggregate/types";
7
+ export * as user from "./user";
7
8
  export * as electrocardiogram from "./electrocardiogram";
8
9
  export * as sleepCycle from "./sleepCycle";
9
10
  export * as profile from "./profile";
@@ -14,15 +15,16 @@ export * as sleep from "./sleep";
14
15
  export * as body from "./body";
15
16
  export * as meal from "./meal";
16
17
  export * as menstrualCycle from "./menstrualCycle";
17
- export * as user from "./user";
18
18
  export * as providers from "./providers";
19
+ export * as vitals from "./vitals";
19
20
  export * as testkit from "./testkit";
20
21
  export * as order from "./order";
21
- export * as vitals from "./vitals";
22
22
  export * as team from "./team";
23
23
  export * as introspect from "./introspect";
24
24
  export * as insurance from "./insurance";
25
25
  export * as payor from "./payor";
26
+ export * from "./link/client/requests";
27
+ export * from "./user/client/requests";
26
28
  export * from "./electrocardiogram/client/requests";
27
29
  export * from "./sleepCycle/client/requests";
28
30
  export * from "./profile/client/requests";
@@ -33,13 +35,11 @@ export * from "./sleep/client/requests";
33
35
  export * from "./body/client/requests";
34
36
  export * from "./meal/client/requests";
35
37
  export * from "./menstrualCycle/client/requests";
36
- export * from "./user/client/requests";
37
- export * from "./link/client/requests";
38
38
  export * from "./providers/client/requests";
39
+ export * from "./vitals/client/requests";
39
40
  export * from "./testkit/client/requests";
40
41
  export * from "./labTests/client/requests";
41
42
  export * from "./order/client/requests";
42
- export * from "./vitals/client/requests";
43
43
  export * from "./team/client/requests";
44
44
  export * from "./introspect/client/requests";
45
45
  export * from "./insurance/client/requests";
@@ -26,13 +26,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.payor = exports.insurance = exports.introspect = exports.team = exports.vitals = exports.order = exports.testkit = exports.providers = exports.user = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.sleepCycle = exports.electrocardiogram = exports.aggregate = exports.labTests = exports.link = void 0;
29
+ exports.payor = exports.insurance = exports.introspect = exports.team = exports.order = exports.testkit = exports.vitals = exports.providers = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.sleepCycle = exports.electrocardiogram = exports.user = exports.aggregate = exports.labTests = exports.link = void 0;
30
30
  exports.link = __importStar(require("./link"));
31
31
  __exportStar(require("./link/types"), exports);
32
32
  exports.labTests = __importStar(require("./labTests"));
33
33
  __exportStar(require("./labTests/types"), exports);
34
34
  exports.aggregate = __importStar(require("./aggregate"));
35
35
  __exportStar(require("./aggregate/types"), exports);
36
+ exports.user = __importStar(require("./user"));
36
37
  exports.electrocardiogram = __importStar(require("./electrocardiogram"));
37
38
  exports.sleepCycle = __importStar(require("./sleepCycle"));
38
39
  exports.profile = __importStar(require("./profile"));
@@ -43,15 +44,16 @@ exports.sleep = __importStar(require("./sleep"));
43
44
  exports.body = __importStar(require("./body"));
44
45
  exports.meal = __importStar(require("./meal"));
45
46
  exports.menstrualCycle = __importStar(require("./menstrualCycle"));
46
- exports.user = __importStar(require("./user"));
47
47
  exports.providers = __importStar(require("./providers"));
48
+ exports.vitals = __importStar(require("./vitals"));
48
49
  exports.testkit = __importStar(require("./testkit"));
49
50
  exports.order = __importStar(require("./order"));
50
- exports.vitals = __importStar(require("./vitals"));
51
51
  exports.team = __importStar(require("./team"));
52
52
  exports.introspect = __importStar(require("./introspect"));
53
53
  exports.insurance = __importStar(require("./insurance"));
54
54
  exports.payor = __importStar(require("./payor"));
55
+ __exportStar(require("./link/client/requests"), exports);
56
+ __exportStar(require("./user/client/requests"), exports);
55
57
  __exportStar(require("./electrocardiogram/client/requests"), exports);
56
58
  __exportStar(require("./sleepCycle/client/requests"), exports);
57
59
  __exportStar(require("./profile/client/requests"), exports);
@@ -62,13 +64,11 @@ __exportStar(require("./sleep/client/requests"), exports);
62
64
  __exportStar(require("./body/client/requests"), exports);
63
65
  __exportStar(require("./meal/client/requests"), exports);
64
66
  __exportStar(require("./menstrualCycle/client/requests"), exports);
65
- __exportStar(require("./user/client/requests"), exports);
66
- __exportStar(require("./link/client/requests"), exports);
67
67
  __exportStar(require("./providers/client/requests"), exports);
68
+ __exportStar(require("./vitals/client/requests"), exports);
68
69
  __exportStar(require("./testkit/client/requests"), exports);
69
70
  __exportStar(require("./labTests/client/requests"), exports);
70
71
  __exportStar(require("./order/client/requests"), exports);
71
- __exportStar(require("./vitals/client/requests"), exports);
72
72
  __exportStar(require("./team/client/requests"), exports);
73
73
  __exportStar(require("./introspect/client/requests"), exports);
74
74
  __exportStar(require("./insurance/client/requests"), exports);
@@ -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.387", "User-Agent": "@tryvital/vital-node/3.1.387", "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.388", "User-Agent": "@tryvital/vital-node/3.1.388", "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.387", "User-Agent": "@tryvital/vital-node/3.1.387", "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.388", "User-Agent": "@tryvital/vital-node/3.1.388", "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.387", "User-Agent": "@tryvital/vital-node/3.1.387", "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.388", "User-Agent": "@tryvital/vital-node/3.1.388", "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.387", "User-Agent": "@tryvital/vital-node/3.1.387", "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.388", "User-Agent": "@tryvital/vital-node/3.1.388", "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.387", "User-Agent": "@tryvital/vital-node/3.1.387", "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.388", "User-Agent": "@tryvital/vital-node/3.1.388", "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",