@tryvital/vital-node 3.1.443 → 3.1.445

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 (108) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +3 -3
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/electrocardiogram/client/Client.js +1 -1
  6. package/api/resources/insurance/client/Client.js +3 -3
  7. package/api/resources/introspect/client/Client.js +2 -2
  8. package/api/resources/labTests/client/Client.d.ts +12 -0
  9. package/api/resources/labTests/client/Client.js +106 -42
  10. package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -0
  11. package/api/resources/labTests/client/requests/ValidateIcdCodesBody.d.ts +12 -0
  12. package/api/resources/labTests/client/requests/ValidateIcdCodesBody.js +5 -0
  13. package/api/resources/labTests/client/requests/index.d.ts +1 -0
  14. package/api/resources/link/client/Client.js +19 -19
  15. package/api/resources/meal/client/Client.js +1 -1
  16. package/api/resources/menstrualCycle/client/Client.js +1 -1
  17. package/api/resources/order/client/Client.js +1 -1
  18. package/api/resources/payor/client/Client.js +1 -1
  19. package/api/resources/profile/client/Client.js +2 -2
  20. package/api/resources/providers/client/Client.js +1 -1
  21. package/api/resources/sleep/client/Client.js +3 -3
  22. package/api/resources/sleepCycle/client/Client.js +1 -1
  23. package/api/resources/team/client/Client.js +7 -7
  24. package/api/resources/testkit/client/Client.js +2 -2
  25. package/api/resources/user/client/Client.js +19 -19
  26. package/api/resources/vitals/client/Client.js +78 -78
  27. package/api/resources/workouts/client/Client.js +3 -3
  28. package/api/types/ClientFacingDiagnosisInformation.d.ts +1 -0
  29. package/api/types/IcdExcludesViolation.d.ts +8 -0
  30. package/api/types/IcdExcludesViolation.js +5 -0
  31. package/api/types/IcdExcludesWarning.d.ts +8 -0
  32. package/api/types/IcdExcludesWarning.js +5 -0
  33. package/api/types/ValidateIcdCodesResponse.d.ts +10 -0
  34. package/api/types/ValidateIcdCodesResponse.js +5 -0
  35. package/api/types/index.d.ts +3 -0
  36. package/api/types/index.js +3 -0
  37. package/dist/api/resources/activity/client/Client.js +2 -2
  38. package/dist/api/resources/aggregate/client/Client.js +3 -3
  39. package/dist/api/resources/body/client/Client.js +2 -2
  40. package/dist/api/resources/devices/client/Client.js +1 -1
  41. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  42. package/dist/api/resources/insurance/client/Client.js +3 -3
  43. package/dist/api/resources/introspect/client/Client.js +2 -2
  44. package/dist/api/resources/labTests/client/Client.d.ts +12 -0
  45. package/dist/api/resources/labTests/client/Client.js +106 -42
  46. package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -0
  47. package/dist/api/resources/labTests/client/requests/ValidateIcdCodesBody.d.ts +12 -0
  48. package/dist/api/resources/labTests/client/requests/ValidateIcdCodesBody.js +5 -0
  49. package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
  50. package/dist/api/resources/link/client/Client.js +19 -19
  51. package/dist/api/resources/meal/client/Client.js +1 -1
  52. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  53. package/dist/api/resources/order/client/Client.js +1 -1
  54. package/dist/api/resources/payor/client/Client.js +1 -1
  55. package/dist/api/resources/profile/client/Client.js +2 -2
  56. package/dist/api/resources/providers/client/Client.js +1 -1
  57. package/dist/api/resources/sleep/client/Client.js +3 -3
  58. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  59. package/dist/api/resources/team/client/Client.js +7 -7
  60. package/dist/api/resources/testkit/client/Client.js +2 -2
  61. package/dist/api/resources/user/client/Client.js +19 -19
  62. package/dist/api/resources/vitals/client/Client.js +78 -78
  63. package/dist/api/resources/workouts/client/Client.js +3 -3
  64. package/dist/api/types/ClientFacingDiagnosisInformation.d.ts +1 -0
  65. package/dist/api/types/IcdExcludesViolation.d.ts +8 -0
  66. package/dist/api/types/IcdExcludesViolation.js +5 -0
  67. package/dist/api/types/IcdExcludesWarning.d.ts +8 -0
  68. package/dist/api/types/IcdExcludesWarning.js +5 -0
  69. package/dist/api/types/ValidateIcdCodesResponse.d.ts +10 -0
  70. package/dist/api/types/ValidateIcdCodesResponse.js +5 -0
  71. package/dist/api/types/index.d.ts +3 -0
  72. package/dist/api/types/index.js +3 -0
  73. package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
  74. package/dist/serialization/resources/labTests/client/requests/ValidateIcdCodesBody.d.ts +12 -0
  75. package/dist/serialization/resources/labTests/client/requests/ValidateIcdCodesBody.js +33 -0
  76. package/dist/serialization/resources/labTests/client/requests/index.d.ts +1 -0
  77. package/dist/serialization/resources/labTests/client/requests/index.js +3 -1
  78. package/dist/serialization/types/ClientFacingDiagnosisInformation.d.ts +1 -0
  79. package/dist/serialization/types/ClientFacingDiagnosisInformation.js +1 -0
  80. package/dist/serialization/types/IcdExcludesViolation.d.ts +14 -0
  81. package/dist/serialization/types/IcdExcludesViolation.js +35 -0
  82. package/dist/serialization/types/IcdExcludesWarning.d.ts +14 -0
  83. package/dist/serialization/types/IcdExcludesWarning.js +35 -0
  84. package/dist/serialization/types/ValidateIcdCodesResponse.d.ts +17 -0
  85. package/dist/serialization/types/ValidateIcdCodesResponse.js +38 -0
  86. package/dist/serialization/types/index.d.ts +3 -0
  87. package/dist/serialization/types/index.js +3 -0
  88. package/dist/version.d.ts +1 -1
  89. package/dist/version.js +1 -1
  90. package/package.json +1 -1
  91. package/reference.md +50 -0
  92. package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
  93. package/serialization/resources/labTests/client/requests/ValidateIcdCodesBody.d.ts +12 -0
  94. package/serialization/resources/labTests/client/requests/ValidateIcdCodesBody.js +33 -0
  95. package/serialization/resources/labTests/client/requests/index.d.ts +1 -0
  96. package/serialization/resources/labTests/client/requests/index.js +3 -1
  97. package/serialization/types/ClientFacingDiagnosisInformation.d.ts +1 -0
  98. package/serialization/types/ClientFacingDiagnosisInformation.js +1 -0
  99. package/serialization/types/IcdExcludesViolation.d.ts +14 -0
  100. package/serialization/types/IcdExcludesViolation.js +35 -0
  101. package/serialization/types/IcdExcludesWarning.d.ts +14 -0
  102. package/serialization/types/IcdExcludesWarning.js +35 -0
  103. package/serialization/types/ValidateIcdCodesResponse.d.ts +17 -0
  104. package/serialization/types/ValidateIcdCodesResponse.js +38 -0
  105. package/serialization/types/index.d.ts +3 -0
  106. package/serialization/types/index.js +3 -0
  107. package/version.d.ts +1 -1
  108. package/version.js +1 -1
@@ -78,7 +78,7 @@ class Workouts {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}`),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -154,7 +154,7 @@ class Workouts {
154
154
  const _response = yield core.fetcher({
155
155
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}/raw`),
156
156
  method: "GET",
157
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -216,7 +216,7 @@ class Workouts {
216
216
  const _response = yield core.fetcher({
217
217
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/workouts/${encodeURIComponent(workoutId)}/stream`),
218
218
  method: "GET",
219
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.443", "User-Agent": "@tryvital/vital-node/3.1.443", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
219
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.445", "User-Agent": "@tryvital/vital-node/3.1.445", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -6,4 +6,5 @@ export interface ClientFacingDiagnosisInformation {
6
6
  diagnosisCode: string;
7
7
  /** Diagnosis description insurance information. */
8
8
  description: string;
9
+ isSecondary?: boolean;
9
10
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface IcdExcludesViolation {
5
+ code: string;
6
+ conflictsWith: string;
7
+ type: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface IcdExcludesWarning {
5
+ code: string;
6
+ overlapsWith: string;
7
+ type: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ValidateIcdCodesResponse {
6
+ valid: boolean;
7
+ errors: string[];
8
+ violations: Vital.IcdExcludesViolation[];
9
+ warnings: Vital.IcdExcludesWarning[];
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -250,6 +250,8 @@ export * from "./HomePregnancyTestEntryTestResult";
250
250
  export * from "./HomePregnancyTestEntry";
251
251
  export * from "./HomeProgesteroneTestEntryTestResult";
252
252
  export * from "./HomeProgesteroneTestEntry";
253
+ export * from "./IcdExcludesViolation";
254
+ export * from "./IcdExcludesWarning";
253
255
  export * from "./IndexColumnExprIndex";
254
256
  export * from "./IndexColumnExpr";
255
257
  export * from "./IntermenstrualBleedingEntry";
@@ -398,6 +400,7 @@ export * from "./UserRefreshSuccessResponse";
398
400
  export * from "./UserResourcesResponse";
399
401
  export * from "./UserSignInTokenResponse";
400
402
  export * from "./UserSuccessResponse";
403
+ export * from "./ValidateIcdCodesResponse";
401
404
  export * from "./ValidationErrorLocItem";
402
405
  export * from "./ValidationError";
403
406
  export * from "./VitalSleepStage";
@@ -266,6 +266,8 @@ __exportStar(require("./HomePregnancyTestEntryTestResult"), exports);
266
266
  __exportStar(require("./HomePregnancyTestEntry"), exports);
267
267
  __exportStar(require("./HomeProgesteroneTestEntryTestResult"), exports);
268
268
  __exportStar(require("./HomeProgesteroneTestEntry"), exports);
269
+ __exportStar(require("./IcdExcludesViolation"), exports);
270
+ __exportStar(require("./IcdExcludesWarning"), exports);
269
271
  __exportStar(require("./IndexColumnExprIndex"), exports);
270
272
  __exportStar(require("./IndexColumnExpr"), exports);
271
273
  __exportStar(require("./IntermenstrualBleedingEntry"), exports);
@@ -414,6 +416,7 @@ __exportStar(require("./UserRefreshSuccessResponse"), exports);
414
416
  __exportStar(require("./UserResourcesResponse"), exports);
415
417
  __exportStar(require("./UserSignInTokenResponse"), exports);
416
418
  __exportStar(require("./UserSuccessResponse"), exports);
419
+ __exportStar(require("./ValidateIcdCodesResponse"), exports);
417
420
  __exportStar(require("./ValidationErrorLocItem"), exports);
418
421
  __exportStar(require("./ValidationError"), exports);
419
422
  __exportStar(require("./VitalSleepStage"), exports);
@@ -78,7 +78,7 @@ class Activity {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}`),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -75,7 +75,7 @@ class Insurance {
75
75
  const _response = yield core.fetcher({
76
76
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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.443", "User-Agent": "@tryvital/vital-node/3.1.443", "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.445", "User-Agent": "@tryvital/vital-node/3.1.445", "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",
@@ -539,6 +539,18 @@ export declare class LabTests {
539
539
  * await client.labTests.updateOnSiteCollectionOrderDrawCompleted("order_id")
540
540
  */
541
541
  updateOnSiteCollectionOrderDrawCompleted(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.PostOrderResponse>;
542
+ /**
543
+ * @param {Vital.ValidateIcdCodesBody} request
544
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
545
+ *
546
+ * @throws {@link Vital.UnprocessableEntityError}
547
+ *
548
+ * @example
549
+ * await client.labTests.validateIcdCodes({
550
+ * codes: ["codes"]
551
+ * })
552
+ */
553
+ validateIcdCodes(request: Vital.ValidateIcdCodesBody, requestOptions?: LabTests.RequestOptions): Promise<Vital.ValidateIcdCodesResponse>;
542
554
  protected _getCustomAuthorizationHeaders(): Promise<{
543
555
  "x-vital-api-key": string | undefined;
544
556
  }>;