@tryvital/vital-node 3.1.183 → 3.1.185

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 (166) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +9 -4
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/aggregate/client/Client.js +2 -2
  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 +2 -0
  9. package/api/resources/index.js +3 -1
  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 +27 -13
  13. package/api/resources/labTests/client/Client.js +192 -101
  14. package/api/resources/labTests/client/requests/LabTestsGetRequest.d.ts +26 -0
  15. package/api/resources/labTests/client/requests/UpdateLabTestRequest.d.ts +11 -0
  16. package/api/resources/labTests/client/requests/index.d.ts +2 -0
  17. package/api/resources/link/client/Client.d.ts +25 -0
  18. package/api/resources/link/client/Client.js +140 -16
  19. package/api/{types → resources/link/client/requests}/BulkExportConnectionsBody.d.ts +8 -1
  20. package/api/{types → resources/link/client/requests}/BulkPauseConnectionsBody.d.ts +8 -1
  21. package/api/resources/link/client/requests/index.d.ts +2 -0
  22. package/api/resources/meal/client/Client.js +1 -1
  23. package/api/resources/menstrualCycle/client/Client.js +1 -1
  24. package/api/resources/order/client/Client.d.ts +39 -0
  25. package/api/resources/order/client/Client.js +123 -0
  26. package/api/resources/order/client/index.d.ts +1 -0
  27. package/api/resources/order/client/index.js +17 -0
  28. package/api/resources/order/client/requests/ResendWebhookBody.d.ts +12 -0
  29. package/api/resources/order/client/requests/ResendWebhookBody.js +5 -0
  30. package/api/resources/order/client/requests/index.d.ts +1 -0
  31. package/api/resources/order/client/requests/index.js +2 -0
  32. package/api/resources/order/index.d.ts +1 -0
  33. package/api/resources/order/index.js +17 -0
  34. package/api/resources/profile/client/Client.js +2 -2
  35. package/api/resources/providers/client/Client.js +1 -1
  36. package/api/resources/sleep/client/Client.js +4 -4
  37. package/api/resources/sleepCycle/client/Client.js +1 -1
  38. package/api/resources/team/client/Client.js +7 -7
  39. package/api/resources/testkit/client/Client.js +2 -2
  40. package/api/resources/user/client/Client.js +16 -16
  41. package/api/resources/vitals/client/Client.js +58 -58
  42. package/api/resources/workouts/client/Client.js +3 -3
  43. package/api/types/LabTestGenerationMethodFilter.d.ts +9 -0
  44. package/api/types/LabTestGenerationMethodFilter.js +11 -0
  45. package/api/types/ResendWebhookResponse.d.ts +6 -0
  46. package/api/types/ResendWebhookResponse.js +5 -0
  47. package/api/types/index.d.ts +2 -2
  48. package/api/types/index.js +2 -2
  49. package/dist/Client.d.ts +3 -0
  50. package/dist/Client.js +9 -4
  51. package/dist/api/resources/activity/client/Client.js +2 -2
  52. package/dist/api/resources/aggregate/client/Client.js +2 -2
  53. package/dist/api/resources/body/client/Client.js +2 -2
  54. package/dist/api/resources/devices/client/Client.js +1 -1
  55. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  56. package/dist/api/resources/index.d.ts +2 -0
  57. package/dist/api/resources/index.js +3 -1
  58. package/dist/api/resources/insurance/client/Client.js +3 -3
  59. package/dist/api/resources/introspect/client/Client.js +2 -2
  60. package/dist/api/resources/labTests/client/Client.d.ts +27 -13
  61. package/dist/api/resources/labTests/client/Client.js +192 -101
  62. package/dist/api/resources/labTests/client/requests/LabTestsGetRequest.d.ts +26 -0
  63. package/dist/api/resources/labTests/client/requests/LabTestsGetRequest.js +5 -0
  64. package/dist/api/resources/labTests/client/requests/UpdateLabTestRequest.d.ts +11 -0
  65. package/dist/api/resources/labTests/client/requests/UpdateLabTestRequest.js +5 -0
  66. package/dist/api/resources/labTests/client/requests/index.d.ts +2 -0
  67. package/dist/api/resources/link/client/Client.d.ts +25 -0
  68. package/dist/api/resources/link/client/Client.js +140 -16
  69. package/dist/api/{types → resources/link/client/requests}/BulkExportConnectionsBody.d.ts +8 -1
  70. package/dist/api/resources/link/client/requests/BulkExportConnectionsBody.js +5 -0
  71. package/dist/api/{types → resources/link/client/requests}/BulkPauseConnectionsBody.d.ts +8 -1
  72. package/dist/api/resources/link/client/requests/BulkPauseConnectionsBody.js +5 -0
  73. package/dist/api/resources/link/client/requests/index.d.ts +2 -0
  74. package/dist/api/resources/meal/client/Client.js +1 -1
  75. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  76. package/dist/api/resources/order/client/Client.d.ts +39 -0
  77. package/dist/api/resources/order/client/Client.js +123 -0
  78. package/dist/api/resources/order/client/index.d.ts +1 -0
  79. package/dist/api/resources/order/client/index.js +17 -0
  80. package/dist/api/resources/order/client/requests/ResendWebhookBody.d.ts +12 -0
  81. package/dist/api/resources/order/client/requests/ResendWebhookBody.js +5 -0
  82. package/dist/api/resources/order/client/requests/index.d.ts +1 -0
  83. package/dist/api/resources/order/client/requests/index.js +2 -0
  84. package/dist/api/resources/order/index.d.ts +1 -0
  85. package/dist/api/resources/order/index.js +17 -0
  86. package/dist/api/resources/profile/client/Client.js +2 -2
  87. package/dist/api/resources/providers/client/Client.js +1 -1
  88. package/dist/api/resources/sleep/client/Client.js +4 -4
  89. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  90. package/dist/api/resources/team/client/Client.js +7 -7
  91. package/dist/api/resources/testkit/client/Client.js +2 -2
  92. package/dist/api/resources/user/client/Client.js +16 -16
  93. package/dist/api/resources/vitals/client/Client.js +58 -58
  94. package/dist/api/resources/workouts/client/Client.js +3 -3
  95. package/dist/api/types/LabTestGenerationMethodFilter.d.ts +9 -0
  96. package/dist/api/types/LabTestGenerationMethodFilter.js +11 -0
  97. package/dist/api/types/ResendWebhookResponse.d.ts +6 -0
  98. package/dist/api/types/ResendWebhookResponse.js +5 -0
  99. package/dist/api/types/index.d.ts +2 -2
  100. package/dist/api/types/index.js +2 -2
  101. package/dist/serialization/resources/index.d.ts +2 -0
  102. package/dist/serialization/resources/index.js +3 -1
  103. package/dist/serialization/resources/labTests/client/requests/UpdateLabTestRequest.d.ts +13 -0
  104. package/dist/serialization/resources/labTests/client/requests/UpdateLabTestRequest.js +34 -0
  105. package/dist/serialization/resources/labTests/client/requests/index.d.ts +1 -0
  106. package/dist/serialization/resources/labTests/client/requests/index.js +3 -1
  107. package/dist/serialization/resources/link/client/requests/BulkExportConnectionsBody.d.ts +15 -0
  108. package/{serialization/types → dist/serialization/resources/link/client/requests}/BulkExportConnectionsBody.js +3 -2
  109. package/dist/serialization/resources/link/client/requests/BulkPauseConnectionsBody.d.ts +14 -0
  110. package/dist/serialization/{types → resources/link/client/requests}/BulkPauseConnectionsBody.js +2 -2
  111. package/dist/serialization/resources/link/client/requests/index.d.ts +2 -0
  112. package/dist/serialization/resources/link/client/requests/index.js +5 -1
  113. package/dist/serialization/resources/order/client/index.d.ts +1 -0
  114. package/dist/serialization/resources/order/client/index.js +17 -0
  115. package/dist/serialization/resources/order/client/requests/ResendWebhookBody.d.ts +14 -0
  116. package/dist/serialization/resources/order/client/requests/ResendWebhookBody.js +35 -0
  117. package/dist/serialization/resources/order/client/requests/index.d.ts +1 -0
  118. package/dist/serialization/resources/order/client/requests/index.js +5 -0
  119. package/dist/serialization/resources/order/index.d.ts +1 -0
  120. package/dist/serialization/resources/order/index.js +17 -0
  121. package/dist/serialization/types/LabTestGenerationMethodFilter.d.ts +10 -0
  122. package/dist/serialization/types/LabTestGenerationMethodFilter.js +31 -0
  123. package/dist/serialization/types/ResendWebhookResponse.d.ts +12 -0
  124. package/dist/serialization/types/ResendWebhookResponse.js +33 -0
  125. package/dist/serialization/types/index.d.ts +2 -2
  126. package/dist/serialization/types/index.js +2 -2
  127. package/dist/version.d.ts +1 -1
  128. package/dist/version.js +1 -1
  129. package/package.json +1 -1
  130. package/reference.md +268 -38
  131. package/serialization/resources/index.d.ts +2 -0
  132. package/serialization/resources/index.js +3 -1
  133. package/serialization/resources/labTests/client/requests/UpdateLabTestRequest.d.ts +13 -0
  134. package/serialization/resources/labTests/client/requests/UpdateLabTestRequest.js +34 -0
  135. package/serialization/resources/labTests/client/requests/index.d.ts +1 -0
  136. package/serialization/resources/labTests/client/requests/index.js +3 -1
  137. package/serialization/resources/link/client/requests/BulkExportConnectionsBody.d.ts +15 -0
  138. package/{dist/serialization/types → serialization/resources/link/client/requests}/BulkExportConnectionsBody.js +3 -2
  139. package/serialization/resources/link/client/requests/BulkPauseConnectionsBody.d.ts +14 -0
  140. package/serialization/{types → resources/link/client/requests}/BulkPauseConnectionsBody.js +2 -2
  141. package/serialization/resources/link/client/requests/index.d.ts +2 -0
  142. package/serialization/resources/link/client/requests/index.js +5 -1
  143. package/serialization/resources/order/client/index.d.ts +1 -0
  144. package/serialization/resources/order/client/index.js +17 -0
  145. package/serialization/resources/order/client/requests/ResendWebhookBody.d.ts +14 -0
  146. package/serialization/resources/order/client/requests/ResendWebhookBody.js +35 -0
  147. package/serialization/resources/order/client/requests/index.d.ts +1 -0
  148. package/serialization/resources/order/client/requests/index.js +5 -0
  149. package/serialization/resources/order/index.d.ts +1 -0
  150. package/serialization/resources/order/index.js +17 -0
  151. package/serialization/types/LabTestGenerationMethodFilter.d.ts +10 -0
  152. package/serialization/types/LabTestGenerationMethodFilter.js +31 -0
  153. package/serialization/types/ResendWebhookResponse.d.ts +12 -0
  154. package/serialization/types/ResendWebhookResponse.js +33 -0
  155. package/serialization/types/index.d.ts +2 -2
  156. package/serialization/types/index.js +2 -2
  157. package/version.d.ts +1 -1
  158. package/version.js +1 -1
  159. package/dist/serialization/types/BulkExportConnectionsBody.d.ts +0 -14
  160. package/dist/serialization/types/BulkPauseConnectionsBody.d.ts +0 -14
  161. package/serialization/types/BulkExportConnectionsBody.d.ts +0 -14
  162. package/serialization/types/BulkPauseConnectionsBody.d.ts +0 -14
  163. /package/api/{types/BulkExportConnectionsBody.js → resources/labTests/client/requests/LabTestsGetRequest.js} +0 -0
  164. /package/api/{types/BulkPauseConnectionsBody.js → resources/labTests/client/requests/UpdateLabTestRequest.js} +0 -0
  165. /package/{dist/api/types → api/resources/link/client/requests}/BulkExportConnectionsBody.js +0 -0
  166. /package/{dist/api/types → api/resources/link/client/requests}/BulkPauseConnectionsBody.js +0 -0
package/Client.d.ts CHANGED
@@ -21,6 +21,7 @@ import { Providers } from "./api/resources/providers/client/Client";
21
21
  import { Introspect } from "./api/resources/introspect/client/Client";
22
22
  import { LabTests } from "./api/resources/labTests/client/Client";
23
23
  import { Testkit } from "./api/resources/testkit/client/Client";
24
+ import { Order } from "./api/resources/order/client/Client";
24
25
  import { Insurance } from "./api/resources/insurance/client/Client";
25
26
  import { Aggregate } from "./api/resources/aggregate/client/Client";
26
27
  export declare namespace VitalClient {
@@ -76,6 +77,8 @@ export declare class VitalClient {
76
77
  get labTests(): LabTests;
77
78
  protected _testkit: Testkit | undefined;
78
79
  get testkit(): Testkit;
80
+ protected _order: Order | undefined;
81
+ get order(): Order;
79
82
  protected _insurance: Insurance | undefined;
80
83
  get insurance(): Insurance;
81
84
  protected _aggregate: Aggregate | undefined;
package/Client.js CHANGED
@@ -22,8 +22,9 @@ const Client_15 = require("./api/resources/providers/client/Client");
22
22
  const Client_16 = require("./api/resources/introspect/client/Client");
23
23
  const Client_17 = require("./api/resources/labTests/client/Client");
24
24
  const Client_18 = require("./api/resources/testkit/client/Client");
25
- const Client_19 = require("./api/resources/insurance/client/Client");
26
- const Client_20 = require("./api/resources/aggregate/client/Client");
25
+ const Client_19 = require("./api/resources/order/client/Client");
26
+ const Client_20 = require("./api/resources/insurance/client/Client");
27
+ const Client_21 = require("./api/resources/aggregate/client/Client");
27
28
  class VitalClient {
28
29
  constructor(_options = {}) {
29
30
  this._options = _options;
@@ -100,13 +101,17 @@ class VitalClient {
100
101
  var _a;
101
102
  return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_18.Testkit(this._options)));
102
103
  }
104
+ get order() {
105
+ var _a;
106
+ return ((_a = this._order) !== null && _a !== void 0 ? _a : (this._order = new Client_19.Order(this._options)));
107
+ }
103
108
  get insurance() {
104
109
  var _a;
105
- return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_19.Insurance(this._options)));
110
+ return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_20.Insurance(this._options)));
106
111
  }
107
112
  get aggregate() {
108
113
  var _a;
109
- return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_20.Aggregate(this._options)));
114
+ return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_21.Aggregate(this._options)));
110
115
  }
111
116
  }
112
117
  exports.VitalClient = VitalClient;
@@ -78,7 +78,7 @@ class Activity {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}`),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.183", "User-Agent": "@tryvital/vital-node/3.1.183", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.183", "User-Agent": "@tryvital/vital-node/3.1.183", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.183", "User-Agent": "@tryvital/vital-node/3.1.183", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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(queryId)}/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.183", "User-Agent": "@tryvital/vital-node/3.1.183", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
147
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (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,
@@ -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.183", "User-Agent": "@tryvital/vital-node/3.1.183", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.183", "User-Agent": "@tryvital/vital-node/3.1.183", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.183", "User-Agent": "@tryvital/vital-node/3.1.183", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.183", "User-Agent": "@tryvital/vital-node/3.1.183", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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",
@@ -19,6 +19,7 @@ export * as team from "./team";
19
19
  export * as providers from "./providers";
20
20
  export * as introspect from "./introspect";
21
21
  export * as testkit from "./testkit";
22
+ export * as order from "./order";
22
23
  export * as insurance from "./insurance";
23
24
  export * from "./link/client/requests";
24
25
  export * from "./electrocardiogram/client/requests";
@@ -38,5 +39,6 @@ export * from "./providers/client/requests";
38
39
  export * from "./introspect/client/requests";
39
40
  export * from "./labTests/client/requests";
40
41
  export * from "./testkit/client/requests";
42
+ export * from "./order/client/requests";
41
43
  export * from "./insurance/client/requests";
42
44
  export * from "./aggregate/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.insurance = exports.testkit = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.sleepCycle = exports.electrocardiogram = exports.link = exports.aggregate = exports.labTests = void 0;
29
+ exports.insurance = exports.order = exports.testkit = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.sleepCycle = exports.electrocardiogram = exports.link = exports.aggregate = exports.labTests = void 0;
30
30
  exports.labTests = __importStar(require("./labTests"));
31
31
  __exportStar(require("./labTests/types"), exports);
32
32
  exports.aggregate = __importStar(require("./aggregate"));
@@ -48,6 +48,7 @@ exports.team = __importStar(require("./team"));
48
48
  exports.providers = __importStar(require("./providers"));
49
49
  exports.introspect = __importStar(require("./introspect"));
50
50
  exports.testkit = __importStar(require("./testkit"));
51
+ exports.order = __importStar(require("./order"));
51
52
  exports.insurance = __importStar(require("./insurance"));
52
53
  __exportStar(require("./link/client/requests"), exports);
53
54
  __exportStar(require("./electrocardiogram/client/requests"), exports);
@@ -67,5 +68,6 @@ __exportStar(require("./providers/client/requests"), exports);
67
68
  __exportStar(require("./introspect/client/requests"), exports);
68
69
  __exportStar(require("./labTests/client/requests"), exports);
69
70
  __exportStar(require("./testkit/client/requests"), exports);
71
+ __exportStar(require("./order/client/requests"), exports);
70
72
  __exportStar(require("./insurance/client/requests"), exports);
71
73
  __exportStar(require("./aggregate/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.183", "User-Agent": "@tryvital/vital-node/3.1.183", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.183", "User-Agent": "@tryvital/vital-node/3.1.183", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.183", "User-Agent": "@tryvital/vital-node/3.1.183", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.183", "User-Agent": "@tryvital/vital-node/3.1.183", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.183", "User-Agent": "@tryvital/vital-node/3.1.183", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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",
@@ -26,12 +26,15 @@ export declare class LabTests {
26
26
  /**
27
27
  * GET all the lab tests the team has access to.
28
28
  *
29
+ * @param {Vital.LabTestsGetRequest} request
29
30
  * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
30
31
  *
32
+ * @throws {@link Vital.UnprocessableEntityError}
33
+ *
31
34
  * @example
32
35
  * await client.labTests.get()
33
36
  */
34
- get(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest[]>;
37
+ get(request?: Vital.LabTestsGetRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest[]>;
35
38
  /**
36
39
  * @param {Vital.CreateLabTestRequest} request
37
40
  * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
@@ -46,6 +49,29 @@ export declare class LabTests {
46
49
  * })
47
50
  */
48
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>;
49
75
  /**
50
76
  * GET all the markers for the given lab.
51
77
  *
@@ -103,18 +129,6 @@ export declare class LabTests {
103
129
  * await client.labTests.getLabs()
104
130
  */
105
131
  getLabs(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLab[]>;
106
- /**
107
- * GET all the lab tests the team has access to.
108
- *
109
- * @param {string} labTestId
110
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
111
- *
112
- * @throws {@link Vital.UnprocessableEntityError}
113
- *
114
- * @example
115
- * await client.labTests.getById("lab_test_id")
116
- */
117
- getById(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
118
132
  /**
119
133
  * Return the available time slots to book an appointment with a phlebotomist
120
134
  * for the given address and order.