@tryvital/vital-node 3.1.444 → 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.444", "User-Agent": "@tryvital/vital-node/3.1.444", "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.444", "User-Agent": "@tryvital/vital-node/3.1.444", "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.444", "User-Agent": "@tryvital/vital-node/3.1.444", "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);
@@ -13,7 +13,7 @@ import { Consent } from "../../../../types/Consent";
13
13
  import { AoEAnswer } from "../../../../types/AoEAnswer";
14
14
  import { PatientDetailsWithValidation } from "../../../../types/PatientDetailsWithValidation";
15
15
  import { PatientAddressWithValidation } from "../../../../types/PatientAddressWithValidation";
16
- export declare const CreateOrderRequestCompatible: core.serialization.Schema<serializers.CreateOrderRequestCompatible.Raw, Omit<Vital.CreateOrderRequestCompatible, "idempotencyKey">>;
16
+ export declare const CreateOrderRequestCompatible: core.serialization.Schema<serializers.CreateOrderRequestCompatible.Raw, Omit<Vital.CreateOrderRequestCompatible, "idempotencyKey" | "idempotencyError">>;
17
17
  export declare namespace CreateOrderRequestCompatible {
18
18
  interface Raw {
19
19
  user_id: string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Vital from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ export declare const ValidateIcdCodesBody: core.serialization.Schema<serializers.ValidateIcdCodesBody.Raw, Vital.ValidateIcdCodesBody>;
8
+ export declare namespace ValidateIcdCodesBody {
9
+ interface Raw {
10
+ codes: string[];
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ValidateIcdCodesBody = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.ValidateIcdCodesBody = core.serialization.object({
32
+ codes: core.serialization.list(core.serialization.string()),
33
+ });
@@ -5,3 +5,4 @@ export { ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelReques
5
5
  export { VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest } from "./VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest";
6
6
  export { CreateOrderRequestCompatible } from "./CreateOrderRequestCompatible";
7
7
  export { ImportOrderBody } from "./ImportOrderBody";
8
+ export { ValidateIcdCodesBody } from "./ValidateIcdCodesBody";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportOrderBody = exports.CreateOrderRequestCompatible = exports.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest = exports.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest = exports.RequestAppointmentRequest = exports.UpdateLabTestRequest = exports.CreateLabTestRequest = void 0;
3
+ exports.ValidateIcdCodesBody = exports.ImportOrderBody = exports.CreateOrderRequestCompatible = exports.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest = exports.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest = exports.RequestAppointmentRequest = exports.UpdateLabTestRequest = exports.CreateLabTestRequest = void 0;
4
4
  var CreateLabTestRequest_1 = require("./CreateLabTestRequest");
5
5
  Object.defineProperty(exports, "CreateLabTestRequest", { enumerable: true, get: function () { return CreateLabTestRequest_1.CreateLabTestRequest; } });
6
6
  var UpdateLabTestRequest_1 = require("./UpdateLabTestRequest");
@@ -15,3 +15,5 @@ var CreateOrderRequestCompatible_1 = require("./CreateOrderRequestCompatible");
15
15
  Object.defineProperty(exports, "CreateOrderRequestCompatible", { enumerable: true, get: function () { return CreateOrderRequestCompatible_1.CreateOrderRequestCompatible; } });
16
16
  var ImportOrderBody_1 = require("./ImportOrderBody");
17
17
  Object.defineProperty(exports, "ImportOrderBody", { enumerable: true, get: function () { return ImportOrderBody_1.ImportOrderBody; } });
18
+ var ValidateIcdCodesBody_1 = require("./ValidateIcdCodesBody");
19
+ Object.defineProperty(exports, "ValidateIcdCodesBody", { enumerable: true, get: function () { return ValidateIcdCodesBody_1.ValidateIcdCodesBody; } });
@@ -9,5 +9,6 @@ export declare namespace ClientFacingDiagnosisInformation {
9
9
  interface Raw {
10
10
  diagnosis_code: string;
11
11
  description: string;
12
+ is_secondary?: boolean | null;
12
13
  }
13
14
  }
@@ -31,4 +31,5 @@ const core = __importStar(require("../../core"));
31
31
  exports.ClientFacingDiagnosisInformation = core.serialization.object({
32
32
  diagnosisCode: core.serialization.property("diagnosis_code", core.serialization.string()),
33
33
  description: core.serialization.string(),
34
+ isSecondary: core.serialization.property("is_secondary", core.serialization.boolean().optional()),
34
35
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const IcdExcludesViolation: core.serialization.ObjectSchema<serializers.IcdExcludesViolation.Raw, Vital.IcdExcludesViolation>;
8
+ export declare namespace IcdExcludesViolation {
9
+ interface Raw {
10
+ code: string;
11
+ conflicts_with: string;
12
+ type: string;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.IcdExcludesViolation = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.IcdExcludesViolation = core.serialization.object({
32
+ code: core.serialization.string(),
33
+ conflictsWith: core.serialization.property("conflicts_with", core.serialization.string()),
34
+ type: core.serialization.string(),
35
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const IcdExcludesWarning: core.serialization.ObjectSchema<serializers.IcdExcludesWarning.Raw, Vital.IcdExcludesWarning>;
8
+ export declare namespace IcdExcludesWarning {
9
+ interface Raw {
10
+ code: string;
11
+ overlaps_with: string;
12
+ type: string;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.IcdExcludesWarning = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.IcdExcludesWarning = core.serialization.object({
32
+ code: core.serialization.string(),
33
+ overlapsWith: core.serialization.property("overlaps_with", core.serialization.string()),
34
+ type: core.serialization.string(),
35
+ });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { IcdExcludesViolation } from "./IcdExcludesViolation";
8
+ import { IcdExcludesWarning } from "./IcdExcludesWarning";
9
+ export declare const ValidateIcdCodesResponse: core.serialization.ObjectSchema<serializers.ValidateIcdCodesResponse.Raw, Vital.ValidateIcdCodesResponse>;
10
+ export declare namespace ValidateIcdCodesResponse {
11
+ interface Raw {
12
+ valid: boolean;
13
+ errors: string[];
14
+ violations: IcdExcludesViolation.Raw[];
15
+ warnings: IcdExcludesWarning.Raw[];
16
+ }
17
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ValidateIcdCodesResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const IcdExcludesViolation_1 = require("./IcdExcludesViolation");
32
+ const IcdExcludesWarning_1 = require("./IcdExcludesWarning");
33
+ exports.ValidateIcdCodesResponse = core.serialization.object({
34
+ valid: core.serialization.boolean(),
35
+ errors: core.serialization.list(core.serialization.string()),
36
+ violations: core.serialization.list(IcdExcludesViolation_1.IcdExcludesViolation),
37
+ warnings: core.serialization.list(IcdExcludesWarning_1.IcdExcludesWarning),
38
+ });
@@ -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);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.444";
1
+ export declare const SDK_VERSION = "3.1.445";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.1.444";
4
+ exports.SDK_VERSION = "3.1.445";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.444",
3
+ "version": "3.1.445",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -10757,6 +10757,56 @@ await client.labTests.updateOnSiteCollectionOrderDrawCompleted("order_id");
10757
10757
  </dl>
10758
10758
  </details>
10759
10759
 
10760
+ <details><summary><code>client.labTests.<a href="/src/api/resources/labTests/client/Client.ts">validateIcdCodes</a>({ ...params }) -> Vital.ValidateIcdCodesResponse</code></summary>
10761
+ <dl>
10762
+ <dd>
10763
+
10764
+ #### 🔌 Usage
10765
+
10766
+ <dl>
10767
+ <dd>
10768
+
10769
+ <dl>
10770
+ <dd>
10771
+
10772
+ ```typescript
10773
+ await client.labTests.validateIcdCodes({
10774
+ codes: ["codes"],
10775
+ });
10776
+ ```
10777
+
10778
+ </dd>
10779
+ </dl>
10780
+ </dd>
10781
+ </dl>
10782
+
10783
+ #### ⚙️ Parameters
10784
+
10785
+ <dl>
10786
+ <dd>
10787
+
10788
+ <dl>
10789
+ <dd>
10790
+
10791
+ **request:** `Vital.ValidateIcdCodesBody`
10792
+
10793
+ </dd>
10794
+ </dl>
10795
+
10796
+ <dl>
10797
+ <dd>
10798
+
10799
+ **requestOptions:** `LabTests.RequestOptions`
10800
+
10801
+ </dd>
10802
+ </dl>
10803
+ </dd>
10804
+ </dl>
10805
+
10806
+ </dd>
10807
+ </dl>
10808
+ </details>
10809
+
10760
10810
  ## Testkit
10761
10811
 
10762
10812
  <details><summary><code>client.testkit.<a href="/src/api/resources/testkit/client/Client.ts">register</a>({ ...params }) -> Vital.PostOrderResponse</code></summary>
@@ -13,7 +13,7 @@ import { Consent } from "../../../../types/Consent";
13
13
  import { AoEAnswer } from "../../../../types/AoEAnswer";
14
14
  import { PatientDetailsWithValidation } from "../../../../types/PatientDetailsWithValidation";
15
15
  import { PatientAddressWithValidation } from "../../../../types/PatientAddressWithValidation";
16
- export declare const CreateOrderRequestCompatible: core.serialization.Schema<serializers.CreateOrderRequestCompatible.Raw, Omit<Vital.CreateOrderRequestCompatible, "idempotencyKey">>;
16
+ export declare const CreateOrderRequestCompatible: core.serialization.Schema<serializers.CreateOrderRequestCompatible.Raw, Omit<Vital.CreateOrderRequestCompatible, "idempotencyKey" | "idempotencyError">>;
17
17
  export declare namespace CreateOrderRequestCompatible {
18
18
  interface Raw {
19
19
  user_id: string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Vital from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ export declare const ValidateIcdCodesBody: core.serialization.Schema<serializers.ValidateIcdCodesBody.Raw, Vital.ValidateIcdCodesBody>;
8
+ export declare namespace ValidateIcdCodesBody {
9
+ interface Raw {
10
+ codes: string[];
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ValidateIcdCodesBody = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.ValidateIcdCodesBody = core.serialization.object({
32
+ codes: core.serialization.list(core.serialization.string()),
33
+ });
@@ -5,3 +5,4 @@ export { ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelReques
5
5
  export { VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest } from "./VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest";
6
6
  export { CreateOrderRequestCompatible } from "./CreateOrderRequestCompatible";
7
7
  export { ImportOrderBody } from "./ImportOrderBody";
8
+ export { ValidateIcdCodesBody } from "./ValidateIcdCodesBody";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportOrderBody = exports.CreateOrderRequestCompatible = exports.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest = exports.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest = exports.RequestAppointmentRequest = exports.UpdateLabTestRequest = exports.CreateLabTestRequest = void 0;
3
+ exports.ValidateIcdCodesBody = exports.ImportOrderBody = exports.CreateOrderRequestCompatible = exports.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest = exports.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest = exports.RequestAppointmentRequest = exports.UpdateLabTestRequest = exports.CreateLabTestRequest = void 0;
4
4
  var CreateLabTestRequest_1 = require("./CreateLabTestRequest");
5
5
  Object.defineProperty(exports, "CreateLabTestRequest", { enumerable: true, get: function () { return CreateLabTestRequest_1.CreateLabTestRequest; } });
6
6
  var UpdateLabTestRequest_1 = require("./UpdateLabTestRequest");
@@ -15,3 +15,5 @@ var CreateOrderRequestCompatible_1 = require("./CreateOrderRequestCompatible");
15
15
  Object.defineProperty(exports, "CreateOrderRequestCompatible", { enumerable: true, get: function () { return CreateOrderRequestCompatible_1.CreateOrderRequestCompatible; } });
16
16
  var ImportOrderBody_1 = require("./ImportOrderBody");
17
17
  Object.defineProperty(exports, "ImportOrderBody", { enumerable: true, get: function () { return ImportOrderBody_1.ImportOrderBody; } });
18
+ var ValidateIcdCodesBody_1 = require("./ValidateIcdCodesBody");
19
+ Object.defineProperty(exports, "ValidateIcdCodesBody", { enumerable: true, get: function () { return ValidateIcdCodesBody_1.ValidateIcdCodesBody; } });
@@ -9,5 +9,6 @@ export declare namespace ClientFacingDiagnosisInformation {
9
9
  interface Raw {
10
10
  diagnosis_code: string;
11
11
  description: string;
12
+ is_secondary?: boolean | null;
12
13
  }
13
14
  }
@@ -31,4 +31,5 @@ const core = __importStar(require("../../core"));
31
31
  exports.ClientFacingDiagnosisInformation = core.serialization.object({
32
32
  diagnosisCode: core.serialization.property("diagnosis_code", core.serialization.string()),
33
33
  description: core.serialization.string(),
34
+ isSecondary: core.serialization.property("is_secondary", core.serialization.boolean().optional()),
34
35
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const IcdExcludesViolation: core.serialization.ObjectSchema<serializers.IcdExcludesViolation.Raw, Vital.IcdExcludesViolation>;
8
+ export declare namespace IcdExcludesViolation {
9
+ interface Raw {
10
+ code: string;
11
+ conflicts_with: string;
12
+ type: string;
13
+ }
14
+ }