@tryvital/vital-node 3.1.379 → 3.1.380

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 (82) hide show
  1. package/Client.d.ts +6 -6
  2. package/Client.js +15 -15
  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 +3 -3
  9. package/api/resources/index.js +4 -4
  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.d.ts +102 -102
  13. package/api/resources/labTests/client/Client.js +736 -736
  14. package/api/resources/labTests/client/requests/index.d.ts +7 -7
  15. package/api/resources/labTests/types/index.d.ts +2 -2
  16. package/api/resources/labTests/types/index.js +2 -2
  17. package/api/resources/link/client/Client.js +19 -19
  18. package/api/resources/meal/client/Client.js +1 -1
  19. package/api/resources/menstrualCycle/client/Client.js +1 -1
  20. package/api/resources/order/client/Client.js +1 -1
  21. package/api/resources/payor/client/Client.js +1 -1
  22. package/api/resources/profile/client/Client.js +2 -2
  23. package/api/resources/providers/client/Client.js +1 -1
  24. package/api/resources/sleep/client/Client.js +3 -3
  25. package/api/resources/sleepCycle/client/Client.js +1 -1
  26. package/api/resources/team/client/Client.js +7 -7
  27. package/api/resources/testkit/client/Client.js +2 -2
  28. package/api/resources/user/client/Client.js +18 -18
  29. package/api/resources/vitals/client/Client.js +78 -78
  30. package/api/resources/workouts/client/Client.js +3 -3
  31. package/dist/Client.d.ts +6 -6
  32. package/dist/Client.js +15 -15
  33. package/dist/api/resources/activity/client/Client.js +2 -2
  34. package/dist/api/resources/aggregate/client/Client.js +3 -3
  35. package/dist/api/resources/body/client/Client.js +2 -2
  36. package/dist/api/resources/devices/client/Client.js +1 -1
  37. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  38. package/dist/api/resources/index.d.ts +3 -3
  39. package/dist/api/resources/index.js +4 -4
  40. package/dist/api/resources/insurance/client/Client.js +3 -3
  41. package/dist/api/resources/introspect/client/Client.js +2 -2
  42. package/dist/api/resources/labTests/client/Client.d.ts +102 -102
  43. package/dist/api/resources/labTests/client/Client.js +736 -736
  44. package/dist/api/resources/labTests/client/requests/index.d.ts +7 -7
  45. package/dist/api/resources/labTests/types/index.d.ts +2 -2
  46. package/dist/api/resources/labTests/types/index.js +2 -2
  47. package/dist/api/resources/link/client/Client.js +19 -19
  48. package/dist/api/resources/meal/client/Client.js +1 -1
  49. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  50. package/dist/api/resources/order/client/Client.js +1 -1
  51. package/dist/api/resources/payor/client/Client.js +1 -1
  52. package/dist/api/resources/profile/client/Client.js +2 -2
  53. package/dist/api/resources/providers/client/Client.js +1 -1
  54. package/dist/api/resources/sleep/client/Client.js +3 -3
  55. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  56. package/dist/api/resources/team/client/Client.js +7 -7
  57. package/dist/api/resources/testkit/client/Client.js +2 -2
  58. package/dist/api/resources/user/client/Client.js +18 -18
  59. package/dist/api/resources/vitals/client/Client.js +78 -78
  60. package/dist/api/resources/workouts/client/Client.js +3 -3
  61. package/dist/serialization/resources/index.d.ts +1 -1
  62. package/dist/serialization/resources/index.js +1 -1
  63. package/dist/serialization/resources/labTests/client/index.d.ts +2 -2
  64. package/dist/serialization/resources/labTests/client/index.js +3 -3
  65. package/dist/serialization/resources/labTests/client/requests/index.d.ts +2 -2
  66. package/dist/serialization/resources/labTests/client/requests/index.js +5 -5
  67. package/dist/serialization/resources/labTests/types/index.d.ts +2 -2
  68. package/dist/serialization/resources/labTests/types/index.js +2 -2
  69. package/dist/version.d.ts +1 -1
  70. package/dist/version.js +1 -1
  71. package/package.json +1 -1
  72. package/reference.md +1003 -1003
  73. package/serialization/resources/index.d.ts +1 -1
  74. package/serialization/resources/index.js +1 -1
  75. package/serialization/resources/labTests/client/index.d.ts +2 -2
  76. package/serialization/resources/labTests/client/index.js +3 -3
  77. package/serialization/resources/labTests/client/requests/index.d.ts +2 -2
  78. package/serialization/resources/labTests/client/requests/index.js +5 -5
  79. package/serialization/resources/labTests/types/index.d.ts +2 -2
  80. package/serialization/resources/labTests/types/index.js +2 -2
  81. package/version.d.ts +1 -1
  82. package/version.js +1 -1
package/Client.d.ts CHANGED
@@ -3,8 +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
6
  import { User } from "./api/resources/user/client/Client";
7
+ import { Link } from "./api/resources/link/client/Client";
8
8
  import { Providers } from "./api/resources/providers/client/Client";
9
9
  import { Electrocardiogram } from "./api/resources/electrocardiogram/client/Client";
10
10
  import { SleepCycle } from "./api/resources/sleepCycle/client/Client";
@@ -17,9 +17,9 @@ import { Body } from "./api/resources/body/client/Client";
17
17
  import { Meal } from "./api/resources/meal/client/Client";
18
18
  import { MenstrualCycle } from "./api/resources/menstrualCycle/client/Client";
19
19
  import { LabTests } from "./api/resources/labTests/client/Client";
20
+ import { Team } from "./api/resources/team/client/Client";
20
21
  import { Testkit } from "./api/resources/testkit/client/Client";
21
22
  import { Order } from "./api/resources/order/client/Client";
22
- import { Team } from "./api/resources/team/client/Client";
23
23
  import { Vitals } from "./api/resources/vitals/client/Client";
24
24
  import { Introspect } from "./api/resources/introspect/client/Client";
25
25
  import { Insurance } from "./api/resources/insurance/client/Client";
@@ -42,10 +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
45
  protected _user: User | undefined;
48
46
  get user(): User;
47
+ protected _link: Link | undefined;
48
+ get link(): Link;
49
49
  protected _providers: Providers | undefined;
50
50
  get providers(): Providers;
51
51
  protected _electrocardiogram: Electrocardiogram | undefined;
@@ -70,12 +70,12 @@ export declare class VitalClient {
70
70
  get menstrualCycle(): MenstrualCycle;
71
71
  protected _labTests: LabTests | undefined;
72
72
  get labTests(): LabTests;
73
+ protected _team: Team | undefined;
74
+ get team(): Team;
73
75
  protected _testkit: Testkit | undefined;
74
76
  get testkit(): Testkit;
75
77
  protected _order: Order | undefined;
76
78
  get order(): Order;
77
- protected _team: Team | undefined;
78
- get team(): Team;
79
79
  protected _vitals: Vitals | undefined;
80
80
  get vitals(): Vitals;
81
81
  protected _introspect: Introspect | undefined;
package/Client.js CHANGED
@@ -4,8 +4,8 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.VitalClient = void 0;
7
- const Client_1 = require("./api/resources/link/client/Client");
8
- const Client_2 = require("./api/resources/user/client/Client");
7
+ const Client_1 = require("./api/resources/user/client/Client");
8
+ const Client_2 = require("./api/resources/link/client/Client");
9
9
  const Client_3 = require("./api/resources/providers/client/Client");
10
10
  const Client_4 = require("./api/resources/electrocardiogram/client/Client");
11
11
  const Client_5 = require("./api/resources/sleepCycle/client/Client");
@@ -18,9 +18,9 @@ const Client_11 = require("./api/resources/body/client/Client");
18
18
  const Client_12 = require("./api/resources/meal/client/Client");
19
19
  const Client_13 = require("./api/resources/menstrualCycle/client/Client");
20
20
  const Client_14 = require("./api/resources/labTests/client/Client");
21
- const Client_15 = require("./api/resources/testkit/client/Client");
22
- const Client_16 = require("./api/resources/order/client/Client");
23
- const Client_17 = require("./api/resources/team/client/Client");
21
+ const Client_15 = require("./api/resources/team/client/Client");
22
+ const Client_16 = require("./api/resources/testkit/client/Client");
23
+ const Client_17 = require("./api/resources/order/client/Client");
24
24
  const Client_18 = require("./api/resources/vitals/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,13 +30,13 @@ class VitalClient {
30
30
  constructor(_options = {}) {
31
31
  this._options = _options;
32
32
  }
33
- get link() {
33
+ get user() {
34
34
  var _a;
35
- return ((_a = this._link) !== null && _a !== void 0 ? _a : (this._link = new Client_1.Link(this._options)));
35
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_1.User(this._options)));
36
36
  }
37
- get user() {
37
+ get link() {
38
38
  var _a;
39
- return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_2.User(this._options)));
39
+ return ((_a = this._link) !== null && _a !== void 0 ? _a : (this._link = new Client_2.Link(this._options)));
40
40
  }
41
41
  get providers() {
42
42
  var _a;
@@ -86,17 +86,17 @@ class VitalClient {
86
86
  var _a;
87
87
  return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new Client_14.LabTests(this._options)));
88
88
  }
89
- get testkit() {
89
+ get team() {
90
90
  var _a;
91
- return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_15.Testkit(this._options)));
91
+ return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new Client_15.Team(this._options)));
92
92
  }
93
- get order() {
93
+ get testkit() {
94
94
  var _a;
95
- return ((_a = this._order) !== null && _a !== void 0 ? _a : (this._order = new Client_16.Order(this._options)));
95
+ return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_16.Testkit(this._options)));
96
96
  }
97
- get team() {
97
+ get order() {
98
98
  var _a;
99
- return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new Client_17.Team(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 vitals() {
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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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",
@@ -16,15 +16,15 @@ export * as sleep from "./sleep";
16
16
  export * as body from "./body";
17
17
  export * as meal from "./meal";
18
18
  export * as menstrualCycle from "./menstrualCycle";
19
+ export * as team from "./team";
19
20
  export * as testkit from "./testkit";
20
21
  export * as order from "./order";
21
- export * as team from "./team";
22
22
  export * as vitals from "./vitals";
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
26
  export * from "./user/client/requests";
27
+ export * from "./link/client/requests";
28
28
  export * from "./providers/client/requests";
29
29
  export * from "./electrocardiogram/client/requests";
30
30
  export * from "./sleepCycle/client/requests";
@@ -37,9 +37,9 @@ export * from "./body/client/requests";
37
37
  export * from "./meal/client/requests";
38
38
  export * from "./menstrualCycle/client/requests";
39
39
  export * from "./labTests/client/requests";
40
+ export * from "./team/client/requests";
40
41
  export * from "./testkit/client/requests";
41
42
  export * from "./order/client/requests";
42
- export * from "./team/client/requests";
43
43
  export * from "./vitals/client/requests";
44
44
  export * from "./introspect/client/requests";
45
45
  export * from "./insurance/client/requests";
@@ -26,7 +26,7 @@ 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.vitals = exports.team = exports.order = exports.testkit = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.sleepCycle = exports.electrocardiogram = exports.providers = exports.user = exports.aggregate = exports.labTests = exports.link = void 0;
29
+ exports.payor = exports.insurance = exports.introspect = exports.vitals = exports.order = exports.testkit = exports.team = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.sleepCycle = exports.electrocardiogram = exports.providers = 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"));
@@ -45,15 +45,15 @@ exports.sleep = __importStar(require("./sleep"));
45
45
  exports.body = __importStar(require("./body"));
46
46
  exports.meal = __importStar(require("./meal"));
47
47
  exports.menstrualCycle = __importStar(require("./menstrualCycle"));
48
+ exports.team = __importStar(require("./team"));
48
49
  exports.testkit = __importStar(require("./testkit"));
49
50
  exports.order = __importStar(require("./order"));
50
- exports.team = __importStar(require("./team"));
51
51
  exports.vitals = __importStar(require("./vitals"));
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
55
  __exportStar(require("./user/client/requests"), exports);
56
+ __exportStar(require("./link/client/requests"), exports);
57
57
  __exportStar(require("./providers/client/requests"), exports);
58
58
  __exportStar(require("./electrocardiogram/client/requests"), exports);
59
59
  __exportStar(require("./sleepCycle/client/requests"), exports);
@@ -66,9 +66,9 @@ __exportStar(require("./body/client/requests"), exports);
66
66
  __exportStar(require("./meal/client/requests"), exports);
67
67
  __exportStar(require("./menstrualCycle/client/requests"), exports);
68
68
  __exportStar(require("./labTests/client/requests"), exports);
69
+ __exportStar(require("./team/client/requests"), exports);
69
70
  __exportStar(require("./testkit/client/requests"), exports);
70
71
  __exportStar(require("./order/client/requests"), exports);
71
- __exportStar(require("./team/client/requests"), exports);
72
72
  __exportStar(require("./vitals/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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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.379", "User-Agent": "@tryvital/vital-node/3.1.379", "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.380", "User-Agent": "@tryvital/vital-node/3.1.380", "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",
@@ -24,17 +24,111 @@ export declare class LabTests {
24
24
  protected readonly _options: LabTests.Options;
25
25
  constructor(_options?: LabTests.Options);
26
26
  /**
27
- * GET many orders with filters.
27
+ * GET all the lab tests the team has access to.
28
28
  *
29
- * @param {Vital.LabTestsGetOrdersRequest} request
29
+ * @param {Vital.LabTestsGetRequest} request
30
30
  * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
31
31
  *
32
32
  * @throws {@link Vital.UnprocessableEntityError}
33
33
  *
34
34
  * @example
35
- * await client.labTests.getOrders()
35
+ * await client.labTests.get()
36
36
  */
37
- getOrders(request?: Vital.LabTestsGetOrdersRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetOrdersResponse>;
37
+ get(request?: Vital.LabTestsGetRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest[]>;
38
+ /**
39
+ * @param {Vital.CreateLabTestRequest} request
40
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
41
+ *
42
+ * @throws {@link Vital.UnprocessableEntityError}
43
+ *
44
+ * @example
45
+ * await client.labTests.create({
46
+ * name: "name",
47
+ * method: "testkit",
48
+ * description: "description"
49
+ * })
50
+ */
51
+ create(request: Vital.CreateLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
52
+ /**
53
+ * GET all the lab tests the team has access to.
54
+ *
55
+ * @param {string} labTestId
56
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @throws {@link Vital.UnprocessableEntityError}
59
+ *
60
+ * @example
61
+ * await client.labTests.getById("lab_test_id")
62
+ */
63
+ getById(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
64
+ /**
65
+ * @param {string} labTestId
66
+ * @param {Vital.UpdateLabTestRequest} request
67
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link Vital.UnprocessableEntityError}
70
+ *
71
+ * @example
72
+ * await client.labTests.updateLabTest("lab_test_id")
73
+ */
74
+ updateLabTest(labTestId: string, request?: Vital.UpdateLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
75
+ /**
76
+ * GET all the markers for the given lab.
77
+ *
78
+ * @param {Vital.LabTestsGetMarkersRequest} request
79
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
80
+ *
81
+ * @throws {@link Vital.UnprocessableEntityError}
82
+ *
83
+ * @example
84
+ * await client.labTests.getMarkers()
85
+ */
86
+ getMarkers(request?: Vital.LabTestsGetMarkersRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
87
+ /**
88
+ * @param {Vital.LabTestsGetMarkersForOrderSetRequest} request
89
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
90
+ *
91
+ * @throws {@link Vital.UnprocessableEntityError}
92
+ *
93
+ * @example
94
+ * await client.labTests.getMarkersForOrderSet({
95
+ * body: {}
96
+ * })
97
+ */
98
+ getMarkersForOrderSet(request: Vital.LabTestsGetMarkersForOrderSetRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
99
+ /**
100
+ * @param {string} labTestId
101
+ * @param {Vital.LabTestsGetMarkersForLabTestRequest} request
102
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
103
+ *
104
+ * @throws {@link Vital.UnprocessableEntityError}
105
+ *
106
+ * @example
107
+ * await client.labTests.getMarkersForLabTest("lab_test_id")
108
+ */
109
+ getMarkersForLabTest(labTestId: string, request?: Vital.LabTestsGetMarkersForLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
110
+ /**
111
+ * GET a specific marker for the given lab and provider_id
112
+ *
113
+ * @param {string} providerId
114
+ * @param {number} labId
115
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
116
+ *
117
+ * @throws {@link Vital.UnprocessableEntityError}
118
+ *
119
+ * @example
120
+ * await client.labTests.getMarkersByLabAndProviderId("provider_id", 1)
121
+ */
122
+ getMarkersByLabAndProviderId(providerId: string, labId: number, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingMarker>;
123
+ /**
124
+ * GET all the labs.
125
+ *
126
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
127
+ *
128
+ * @example
129
+ * await client.labTests.getLabs()
130
+ */
131
+ getLabs(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLab[]>;
38
132
  /**
39
133
  * Return the available time slots to book an appointment with a phlebotomist
40
134
  * for the given address and order.
@@ -415,111 +509,17 @@ export declare class LabTests {
415
509
  */
416
510
  updateOnSiteCollectionOrderDrawCompleted(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.PostOrderResponse>;
417
511
  /**
418
- * GET all the lab tests the team has access to.
419
- *
420
- * @param {Vital.LabTestsGetRequest} request
421
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
422
- *
423
- * @throws {@link Vital.UnprocessableEntityError}
424
- *
425
- * @example
426
- * await client.labTests.get()
427
- */
428
- get(request?: Vital.LabTestsGetRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest[]>;
429
- /**
430
- * @param {Vital.CreateLabTestRequest} request
431
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
432
- *
433
- * @throws {@link Vital.UnprocessableEntityError}
434
- *
435
- * @example
436
- * await client.labTests.create({
437
- * name: "name",
438
- * method: "testkit",
439
- * description: "description"
440
- * })
441
- */
442
- create(request: Vital.CreateLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
443
- /**
444
- * GET all the lab tests the team has access to.
445
- *
446
- * @param {string} labTestId
447
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
448
- *
449
- * @throws {@link Vital.UnprocessableEntityError}
450
- *
451
- * @example
452
- * await client.labTests.getById("lab_test_id")
453
- */
454
- getById(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
455
- /**
456
- * @param {string} labTestId
457
- * @param {Vital.UpdateLabTestRequest} request
458
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
459
- *
460
- * @throws {@link Vital.UnprocessableEntityError}
461
- *
462
- * @example
463
- * await client.labTests.updateLabTest("lab_test_id")
464
- */
465
- updateLabTest(labTestId: string, request?: Vital.UpdateLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
466
- /**
467
- * GET all the markers for the given lab.
468
- *
469
- * @param {Vital.LabTestsGetMarkersRequest} request
470
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
471
- *
472
- * @throws {@link Vital.UnprocessableEntityError}
473
- *
474
- * @example
475
- * await client.labTests.getMarkers()
476
- */
477
- getMarkers(request?: Vital.LabTestsGetMarkersRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
478
- /**
479
- * @param {Vital.LabTestsGetMarkersForOrderSetRequest} request
480
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
481
- *
482
- * @throws {@link Vital.UnprocessableEntityError}
483
- *
484
- * @example
485
- * await client.labTests.getMarkersForOrderSet({
486
- * body: {}
487
- * })
488
- */
489
- getMarkersForOrderSet(request: Vital.LabTestsGetMarkersForOrderSetRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
490
- /**
491
- * @param {string} labTestId
492
- * @param {Vital.LabTestsGetMarkersForLabTestRequest} request
493
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
494
- *
495
- * @throws {@link Vital.UnprocessableEntityError}
496
- *
497
- * @example
498
- * await client.labTests.getMarkersForLabTest("lab_test_id")
499
- */
500
- getMarkersForLabTest(labTestId: string, request?: Vital.LabTestsGetMarkersForLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
501
- /**
502
- * GET a specific marker for the given lab and provider_id
512
+ * GET many orders with filters.
503
513
  *
504
- * @param {string} providerId
505
- * @param {number} labId
514
+ * @param {Vital.LabTestsGetOrdersRequest} request
506
515
  * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
507
516
  *
508
517
  * @throws {@link Vital.UnprocessableEntityError}
509
518
  *
510
519
  * @example
511
- * await client.labTests.getMarkersByLabAndProviderId("provider_id", 1)
512
- */
513
- getMarkersByLabAndProviderId(providerId: string, labId: number, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingMarker>;
514
- /**
515
- * GET all the labs.
516
- *
517
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
518
- *
519
- * @example
520
- * await client.labTests.getLabs()
520
+ * await client.labTests.getOrders()
521
521
  */
522
- getLabs(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLab[]>;
522
+ getOrders(request?: Vital.LabTestsGetOrdersRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetOrdersResponse>;
523
523
  /**
524
524
  * GET lab tests the team has access to as a paginated list.
525
525
  *