@tryvital/vital-node 3.1.302 → 3.1.304

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 (212) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +7 -2
  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 +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 +1 -1
  13. package/api/resources/labTests/client/Client.js +42 -42
  14. package/api/resources/link/client/Client.js +19 -19
  15. package/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
  16. package/api/resources/meal/client/Client.js +1 -1
  17. package/api/resources/menstrualCycle/client/Client.js +1 -1
  18. package/api/resources/order/client/Client.js +1 -1
  19. package/api/resources/payor/client/Client.d.ts +46 -0
  20. package/api/resources/payor/client/Client.js +130 -0
  21. package/api/resources/payor/client/index.d.ts +1 -0
  22. package/api/resources/payor/client/index.js +17 -0
  23. package/api/resources/payor/client/requests/CreatePayorBody.d.ts +23 -0
  24. package/api/resources/payor/client/requests/CreatePayorBody.js +5 -0
  25. package/api/resources/payor/client/requests/index.d.ts +1 -0
  26. package/api/resources/payor/client/requests/index.js +2 -0
  27. package/api/resources/payor/index.d.ts +1 -0
  28. package/api/resources/payor/index.js +17 -0
  29. package/api/resources/profile/client/Client.js +2 -2
  30. package/api/resources/providers/client/Client.js +1 -1
  31. package/api/resources/sleep/client/Client.js +4 -4
  32. package/api/resources/sleepCycle/client/Client.js +1 -1
  33. package/api/resources/team/client/Client.js +7 -7
  34. package/api/resources/testkit/client/Client.js +2 -2
  35. package/api/resources/user/client/Client.js +16 -16
  36. package/api/resources/vitals/client/Client.js +78 -78
  37. package/api/resources/workouts/client/Client.js +3 -3
  38. package/api/types/BloodPressureTimeseriesExpr.d.ts +1 -0
  39. package/api/types/BloodPressureTimeseriesExprField.d.ts +3 -0
  40. package/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
  41. package/api/types/ClientFacingBodyTemperatureSample.d.ts +1 -1
  42. package/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +2 -1
  43. package/api/types/ClientFacingConnectionErrorDetailsErrorType.js +1 -0
  44. package/api/types/ClientFacingElectrocardiogram.d.ts +2 -0
  45. package/api/types/ClientFacingPayor.d.ts +14 -0
  46. package/api/types/ClientFacingPayor.js +5 -0
  47. package/api/types/ClientFacingProfile.d.ts +2 -0
  48. package/api/types/ClientFacingSleepBreathingDisturbanceSample.d.ts +1 -0
  49. package/api/types/ClientFacingSleepCycle.d.ts +1 -0
  50. package/api/types/ClientFacingWorkoutDurationSample.d.ts +1 -1
  51. package/api/types/DatePartExpr.d.ts +1 -0
  52. package/api/types/DatePartExprDatePart.d.ts +3 -0
  53. package/api/types/DiscreteTimeseriesExpr.d.ts +1 -0
  54. package/api/types/DiscreteTimeseriesExprField.d.ts +3 -0
  55. package/api/types/IntervalTimeseriesExpr.d.ts +1 -0
  56. package/api/types/IntervalTimeseriesExprField.d.ts +3 -0
  57. package/api/types/NoteTimeseriesExpr.d.ts +1 -0
  58. package/api/types/NoteTimeseriesExprField.d.ts +3 -0
  59. package/api/types/ProviderConnectionErrorErrorType.d.ts +2 -1
  60. package/api/types/ProviderConnectionErrorErrorType.js +1 -0
  61. package/api/types/ProviderLinkResponse.d.ts +5 -1
  62. package/api/types/ProviderLinkResponseErrorType.d.ts +18 -0
  63. package/api/types/ProviderLinkResponseErrorType.js +20 -0
  64. package/api/types/ProviderMfaRequest.d.ts +2 -1
  65. package/api/types/ProviderMfaRequestMethod.d.ts +1 -1
  66. package/api/types/Sex.d.ts +12 -0
  67. package/api/types/Sex.js +11 -0
  68. package/api/types/SourceColumnExpr.d.ts +1 -0
  69. package/api/types/SourceColumnExprSource.d.ts +3 -0
  70. package/api/types/TemperatureTimeseriesExpr.d.ts +1 -0
  71. package/api/types/TemperatureTimeseriesExprField.d.ts +3 -0
  72. package/api/types/WorkoutDurationTimeseriesExpr.d.ts +1 -0
  73. package/api/types/WorkoutDurationTimeseriesExprField.d.ts +3 -0
  74. package/api/types/index.d.ts +3 -0
  75. package/api/types/index.js +3 -0
  76. package/dist/Client.d.ts +3 -0
  77. package/dist/Client.js +7 -2
  78. package/dist/api/resources/activity/client/Client.js +2 -2
  79. package/dist/api/resources/aggregate/client/Client.js +3 -3
  80. package/dist/api/resources/body/client/Client.js +2 -2
  81. package/dist/api/resources/devices/client/Client.js +1 -1
  82. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  83. package/dist/api/resources/index.d.ts +2 -0
  84. package/dist/api/resources/index.js +3 -1
  85. package/dist/api/resources/insurance/client/Client.js +3 -3
  86. package/dist/api/resources/introspect/client/Client.js +2 -2
  87. package/dist/api/resources/labTests/client/Client.d.ts +1 -1
  88. package/dist/api/resources/labTests/client/Client.js +42 -42
  89. package/dist/api/resources/link/client/Client.js +19 -19
  90. package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
  91. package/dist/api/resources/meal/client/Client.js +1 -1
  92. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  93. package/dist/api/resources/order/client/Client.js +1 -1
  94. package/dist/api/resources/payor/client/Client.d.ts +46 -0
  95. package/dist/api/resources/payor/client/Client.js +130 -0
  96. package/dist/api/resources/payor/client/index.d.ts +1 -0
  97. package/dist/api/resources/payor/client/index.js +17 -0
  98. package/dist/api/resources/payor/client/requests/CreatePayorBody.d.ts +23 -0
  99. package/dist/api/resources/payor/client/requests/CreatePayorBody.js +5 -0
  100. package/dist/api/resources/payor/client/requests/index.d.ts +1 -0
  101. package/dist/api/resources/payor/client/requests/index.js +2 -0
  102. package/dist/api/resources/payor/index.d.ts +1 -0
  103. package/dist/api/resources/payor/index.js +17 -0
  104. package/dist/api/resources/profile/client/Client.js +2 -2
  105. package/dist/api/resources/providers/client/Client.js +1 -1
  106. package/dist/api/resources/sleep/client/Client.js +4 -4
  107. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  108. package/dist/api/resources/team/client/Client.js +7 -7
  109. package/dist/api/resources/testkit/client/Client.js +2 -2
  110. package/dist/api/resources/user/client/Client.js +16 -16
  111. package/dist/api/resources/vitals/client/Client.js +78 -78
  112. package/dist/api/resources/workouts/client/Client.js +3 -3
  113. package/dist/api/types/BloodPressureTimeseriesExpr.d.ts +1 -0
  114. package/dist/api/types/BloodPressureTimeseriesExprField.d.ts +3 -0
  115. package/dist/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
  116. package/dist/api/types/ClientFacingBodyTemperatureSample.d.ts +1 -1
  117. package/dist/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +2 -1
  118. package/dist/api/types/ClientFacingConnectionErrorDetailsErrorType.js +1 -0
  119. package/dist/api/types/ClientFacingElectrocardiogram.d.ts +2 -0
  120. package/dist/api/types/ClientFacingPayor.d.ts +14 -0
  121. package/dist/api/types/ClientFacingPayor.js +5 -0
  122. package/dist/api/types/ClientFacingProfile.d.ts +2 -0
  123. package/dist/api/types/ClientFacingSleepBreathingDisturbanceSample.d.ts +1 -0
  124. package/dist/api/types/ClientFacingSleepCycle.d.ts +1 -0
  125. package/dist/api/types/ClientFacingWorkoutDurationSample.d.ts +1 -1
  126. package/dist/api/types/DatePartExpr.d.ts +1 -0
  127. package/dist/api/types/DatePartExprDatePart.d.ts +3 -0
  128. package/dist/api/types/DiscreteTimeseriesExpr.d.ts +1 -0
  129. package/dist/api/types/DiscreteTimeseriesExprField.d.ts +3 -0
  130. package/dist/api/types/IntervalTimeseriesExpr.d.ts +1 -0
  131. package/dist/api/types/IntervalTimeseriesExprField.d.ts +3 -0
  132. package/dist/api/types/NoteTimeseriesExpr.d.ts +1 -0
  133. package/dist/api/types/NoteTimeseriesExprField.d.ts +3 -0
  134. package/dist/api/types/ProviderConnectionErrorErrorType.d.ts +2 -1
  135. package/dist/api/types/ProviderConnectionErrorErrorType.js +1 -0
  136. package/dist/api/types/ProviderLinkResponse.d.ts +5 -1
  137. package/dist/api/types/ProviderLinkResponseErrorType.d.ts +18 -0
  138. package/dist/api/types/ProviderLinkResponseErrorType.js +20 -0
  139. package/dist/api/types/ProviderMfaRequest.d.ts +2 -1
  140. package/dist/api/types/ProviderMfaRequestMethod.d.ts +1 -1
  141. package/dist/api/types/Sex.d.ts +12 -0
  142. package/dist/api/types/Sex.js +11 -0
  143. package/dist/api/types/SourceColumnExpr.d.ts +1 -0
  144. package/dist/api/types/SourceColumnExprSource.d.ts +3 -0
  145. package/dist/api/types/TemperatureTimeseriesExpr.d.ts +1 -0
  146. package/dist/api/types/TemperatureTimeseriesExprField.d.ts +3 -0
  147. package/dist/api/types/WorkoutDurationTimeseriesExpr.d.ts +1 -0
  148. package/dist/api/types/WorkoutDurationTimeseriesExprField.d.ts +3 -0
  149. package/dist/api/types/index.d.ts +3 -0
  150. package/dist/api/types/index.js +3 -0
  151. package/dist/serialization/resources/index.d.ts +2 -0
  152. package/dist/serialization/resources/index.js +3 -1
  153. package/dist/serialization/resources/payor/client/index.d.ts +1 -0
  154. package/dist/serialization/resources/payor/client/index.js +17 -0
  155. package/dist/serialization/resources/payor/client/requests/CreatePayorBody.d.ts +17 -0
  156. package/dist/serialization/resources/payor/client/requests/CreatePayorBody.js +38 -0
  157. package/dist/serialization/resources/payor/client/requests/index.d.ts +1 -0
  158. package/dist/serialization/resources/payor/client/requests/index.js +5 -0
  159. package/dist/serialization/resources/payor/index.d.ts +1 -0
  160. package/dist/serialization/resources/payor/index.js +17 -0
  161. package/dist/serialization/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +1 -1
  162. package/dist/serialization/types/ClientFacingConnectionErrorDetailsErrorType.js +1 -0
  163. package/dist/serialization/types/ClientFacingPayor.d.ts +16 -0
  164. package/dist/serialization/types/ClientFacingPayor.js +37 -0
  165. package/dist/serialization/types/ClientFacingProfile.d.ts +4 -0
  166. package/dist/serialization/types/ClientFacingProfile.js +4 -0
  167. package/dist/serialization/types/ClientFacingSleepCycle.d.ts +1 -0
  168. package/dist/serialization/types/ClientFacingSleepCycle.js +1 -0
  169. package/dist/serialization/types/ProviderConnectionErrorErrorType.d.ts +1 -1
  170. package/dist/serialization/types/ProviderConnectionErrorErrorType.js +1 -0
  171. package/dist/serialization/types/ProviderLinkResponse.d.ts +2 -1
  172. package/dist/serialization/types/ProviderLinkResponse.js +2 -1
  173. package/dist/serialization/types/ProviderLinkResponseErrorType.d.ts +10 -0
  174. package/dist/serialization/types/ProviderLinkResponseErrorType.js +44 -0
  175. package/dist/serialization/types/Sex.d.ts +10 -0
  176. package/dist/serialization/types/Sex.js +35 -0
  177. package/dist/serialization/types/index.d.ts +3 -0
  178. package/dist/serialization/types/index.js +3 -0
  179. package/dist/version.d.ts +1 -1
  180. package/dist/version.js +1 -1
  181. package/package.json +1 -1
  182. package/reference.md +59 -0
  183. package/serialization/resources/index.d.ts +2 -0
  184. package/serialization/resources/index.js +3 -1
  185. package/serialization/resources/payor/client/index.d.ts +1 -0
  186. package/serialization/resources/payor/client/index.js +17 -0
  187. package/serialization/resources/payor/client/requests/CreatePayorBody.d.ts +17 -0
  188. package/serialization/resources/payor/client/requests/CreatePayorBody.js +38 -0
  189. package/serialization/resources/payor/client/requests/index.d.ts +1 -0
  190. package/serialization/resources/payor/client/requests/index.js +5 -0
  191. package/serialization/resources/payor/index.d.ts +1 -0
  192. package/serialization/resources/payor/index.js +17 -0
  193. package/serialization/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +1 -1
  194. package/serialization/types/ClientFacingConnectionErrorDetailsErrorType.js +1 -0
  195. package/serialization/types/ClientFacingPayor.d.ts +16 -0
  196. package/serialization/types/ClientFacingPayor.js +37 -0
  197. package/serialization/types/ClientFacingProfile.d.ts +4 -0
  198. package/serialization/types/ClientFacingProfile.js +4 -0
  199. package/serialization/types/ClientFacingSleepCycle.d.ts +1 -0
  200. package/serialization/types/ClientFacingSleepCycle.js +1 -0
  201. package/serialization/types/ProviderConnectionErrorErrorType.d.ts +1 -1
  202. package/serialization/types/ProviderConnectionErrorErrorType.js +1 -0
  203. package/serialization/types/ProviderLinkResponse.d.ts +2 -1
  204. package/serialization/types/ProviderLinkResponse.js +2 -1
  205. package/serialization/types/ProviderLinkResponseErrorType.d.ts +10 -0
  206. package/serialization/types/ProviderLinkResponseErrorType.js +44 -0
  207. package/serialization/types/Sex.d.ts +10 -0
  208. package/serialization/types/Sex.js +35 -0
  209. package/serialization/types/index.d.ts +3 -0
  210. package/serialization/types/index.js +3 -0
  211. package/version.d.ts +1 -1
  212. package/version.js +1 -1
package/Client.d.ts CHANGED
@@ -23,6 +23,7 @@ import { LabTests } from "./api/resources/labTests/client/Client";
23
23
  import { Testkit } from "./api/resources/testkit/client/Client";
24
24
  import { Order } from "./api/resources/order/client/Client";
25
25
  import { Insurance } from "./api/resources/insurance/client/Client";
26
+ import { Payor } from "./api/resources/payor/client/Client";
26
27
  import { Aggregate } from "./api/resources/aggregate/client/Client";
27
28
  export declare namespace VitalClient {
28
29
  interface Options {
@@ -81,6 +82,8 @@ export declare class VitalClient {
81
82
  get order(): Order;
82
83
  protected _insurance: Insurance | undefined;
83
84
  get insurance(): Insurance;
85
+ protected _payor: Payor | undefined;
86
+ get payor(): Payor;
84
87
  protected _aggregate: Aggregate | undefined;
85
88
  get aggregate(): Aggregate;
86
89
  }
package/Client.js CHANGED
@@ -24,7 +24,8 @@ const Client_17 = require("./api/resources/labTests/client/Client");
24
24
  const Client_18 = require("./api/resources/testkit/client/Client");
25
25
  const Client_19 = require("./api/resources/order/client/Client");
26
26
  const Client_20 = require("./api/resources/insurance/client/Client");
27
- const Client_21 = require("./api/resources/aggregate/client/Client");
27
+ const Client_21 = require("./api/resources/payor/client/Client");
28
+ const Client_22 = require("./api/resources/aggregate/client/Client");
28
29
  class VitalClient {
29
30
  constructor(_options = {}) {
30
31
  this._options = _options;
@@ -109,9 +110,13 @@ class VitalClient {
109
110
  var _a;
110
111
  return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_20.Insurance(this._options)));
111
112
  }
113
+ get payor() {
114
+ var _a;
115
+ return ((_a = this._payor) !== null && _a !== void 0 ? _a : (this._payor = new Client_21.Payor(this._options)));
116
+ }
112
117
  get aggregate() {
113
118
  var _a;
114
- return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_21.Aggregate(this._options)));
119
+ return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_22.Aggregate(this._options)));
115
120
  }
116
121
  }
117
122
  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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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",
@@ -22,6 +22,7 @@ export * as introspect from "./introspect";
22
22
  export * as testkit from "./testkit";
23
23
  export * as order from "./order";
24
24
  export * as insurance from "./insurance";
25
+ export * as payor from "./payor";
25
26
  export * from "./link/client/requests";
26
27
  export * from "./electrocardiogram/client/requests";
27
28
  export * from "./sleepCycle/client/requests";
@@ -42,4 +43,5 @@ export * from "./labTests/client/requests";
42
43
  export * from "./testkit/client/requests";
43
44
  export * from "./order/client/requests";
44
45
  export * from "./insurance/client/requests";
46
+ export * from "./payor/client/requests";
45
47
  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.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.aggregate = exports.labTests = exports.link = void 0;
29
+ exports.payor = 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.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"));
@@ -51,6 +51,7 @@ exports.introspect = __importStar(require("./introspect"));
51
51
  exports.testkit = __importStar(require("./testkit"));
52
52
  exports.order = __importStar(require("./order"));
53
53
  exports.insurance = __importStar(require("./insurance"));
54
+ exports.payor = __importStar(require("./payor"));
54
55
  __exportStar(require("./link/client/requests"), exports);
55
56
  __exportStar(require("./electrocardiogram/client/requests"), exports);
56
57
  __exportStar(require("./sleepCycle/client/requests"), exports);
@@ -71,4 +72,5 @@ __exportStar(require("./labTests/client/requests"), exports);
71
72
  __exportStar(require("./testkit/client/requests"), exports);
72
73
  __exportStar(require("./order/client/requests"), exports);
73
74
  __exportStar(require("./insurance/client/requests"), exports);
75
+ __exportStar(require("./payor/client/requests"), exports);
74
76
  __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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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",
@@ -411,7 +411,7 @@ export declare class LabTests {
411
411
  */
412
412
  getOrderRequistionPdf(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
413
413
  /**
414
- * GET requisition pdf for an order
414
+ * GET ABN pdf for an order
415
415
  * @throws {@link Vital.UnprocessableEntityError}
416
416
  */
417
417
  getOrderAbnPdf(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;