@tryvital/vital-node 3.1.74 → 3.1.76

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 (78) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +1 -1
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/insurance/client/Client.js +2 -2
  6. package/api/resources/introspect/client/Client.js +2 -2
  7. package/api/resources/labTests/client/Client.d.ts +12 -0
  8. package/api/resources/labTests/client/Client.js +100 -27
  9. package/api/resources/labTests/client/requests/LabTestsGetMarkersForOrderSetRequest.d.ts +15 -0
  10. package/api/resources/labTests/client/requests/LabTestsGetMarkersForOrderSetRequest.js +5 -0
  11. package/api/resources/labTests/client/requests/index.d.ts +1 -0
  12. package/api/resources/link/client/Client.js +14 -14
  13. package/api/resources/meal/client/Client.js +1 -1
  14. package/api/resources/menstrualCycle/client/Client.js +1 -1
  15. package/api/resources/profile/client/Client.js +2 -2
  16. package/api/resources/providers/client/Client.js +1 -1
  17. package/api/resources/sleep/client/Client.js +4 -4
  18. package/api/resources/team/client/Client.js +7 -7
  19. package/api/resources/testkit/client/Client.js +2 -2
  20. package/api/resources/user/client/Client.js +16 -16
  21. package/api/resources/vitals/client/Client.js +56 -56
  22. package/api/resources/workouts/client/Client.js +3 -3
  23. package/api/types/GroupKeyColumnExprGroupKey.d.ts +2 -1
  24. package/api/types/MissingBiomarkerResult.d.ts +2 -1
  25. package/api/types/Select.d.ts +7 -0
  26. package/api/types/Select.js +9 -0
  27. package/api/types/index.d.ts +1 -0
  28. package/api/types/index.js +1 -0
  29. package/dist/api/resources/activity/client/Client.js +2 -2
  30. package/dist/api/resources/aggregate/client/Client.js +1 -1
  31. package/dist/api/resources/body/client/Client.js +2 -2
  32. package/dist/api/resources/devices/client/Client.js +1 -1
  33. package/dist/api/resources/insurance/client/Client.js +2 -2
  34. package/dist/api/resources/introspect/client/Client.js +2 -2
  35. package/dist/api/resources/labTests/client/Client.d.ts +12 -0
  36. package/dist/api/resources/labTests/client/Client.js +100 -27
  37. package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersForOrderSetRequest.d.ts +15 -0
  38. package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersForOrderSetRequest.js +5 -0
  39. package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
  40. package/dist/api/resources/link/client/Client.js +14 -14
  41. package/dist/api/resources/meal/client/Client.js +1 -1
  42. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  43. package/dist/api/resources/profile/client/Client.js +2 -2
  44. package/dist/api/resources/providers/client/Client.js +1 -1
  45. package/dist/api/resources/sleep/client/Client.js +4 -4
  46. package/dist/api/resources/team/client/Client.js +7 -7
  47. package/dist/api/resources/testkit/client/Client.js +2 -2
  48. package/dist/api/resources/user/client/Client.js +16 -16
  49. package/dist/api/resources/vitals/client/Client.js +56 -56
  50. package/dist/api/resources/workouts/client/Client.js +3 -3
  51. package/dist/api/types/GroupKeyColumnExprGroupKey.d.ts +2 -1
  52. package/dist/api/types/MissingBiomarkerResult.d.ts +2 -1
  53. package/dist/api/types/Select.d.ts +7 -0
  54. package/dist/api/types/Select.js +9 -0
  55. package/dist/api/types/index.d.ts +1 -0
  56. package/dist/api/types/index.js +1 -0
  57. package/dist/serialization/types/GroupKeyColumnExprGroupKey.d.ts +2 -1
  58. package/dist/serialization/types/GroupKeyColumnExprGroupKey.js +2 -1
  59. package/dist/serialization/types/MissingBiomarkerResult.d.ts +2 -1
  60. package/dist/serialization/types/MissingBiomarkerResult.js +2 -1
  61. package/dist/serialization/types/Select.d.ts +10 -0
  62. package/dist/serialization/types/Select.js +31 -0
  63. package/dist/serialization/types/index.d.ts +1 -0
  64. package/dist/serialization/types/index.js +1 -0
  65. package/dist/version.d.ts +1 -1
  66. package/dist/version.js +1 -1
  67. package/package.json +1 -1
  68. package/reference.md +50 -0
  69. package/serialization/types/GroupKeyColumnExprGroupKey.d.ts +2 -1
  70. package/serialization/types/GroupKeyColumnExprGroupKey.js +2 -1
  71. package/serialization/types/MissingBiomarkerResult.d.ts +2 -1
  72. package/serialization/types/MissingBiomarkerResult.js +2 -1
  73. package/serialization/types/Select.d.ts +10 -0
  74. package/serialization/types/Select.js +31 -0
  75. package/serialization/types/index.d.ts +1 -0
  76. package/serialization/types/index.js +1 -0
  77. package/version.d.ts +1 -1
  78. package/version.js +1 -1
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type GroupKeyColumnExprGroupKey = number | "*";
4
+ import * as Vital from "../index";
5
+ export declare type GroupKeyColumnExprGroupKey = number | Vital.Select;
@@ -5,7 +5,8 @@ import * as Vital from "../index";
5
5
  export interface MissingBiomarkerResult {
6
6
  name: string;
7
7
  slug: string;
8
- reason: Vital.FailureType;
8
+ inferredFailureType: Vital.FailureType;
9
+ note?: string;
9
10
  loinc?: string;
10
11
  loincSlug?: string;
11
12
  providerId?: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type Select = "*";
5
+ export declare const Select: {
6
+ readonly SelectAll: "*";
7
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Select = void 0;
7
+ exports.Select = {
8
+ SelectAll: "*",
9
+ };
@@ -339,3 +339,4 @@ export * from "./GroupedBodyFat";
339
339
  export * from "./GroupedBloodOxygen";
340
340
  export * from "./GroupedElectrocardiogramVoltage";
341
341
  export * from "./GroupedBloodPressure";
342
+ export * from "./Select";
@@ -355,3 +355,4 @@ __exportStar(require("./GroupedBodyFat"), exports);
355
355
  __exportStar(require("./GroupedBloodOxygen"), exports);
356
356
  __exportStar(require("./GroupedElectrocardiogramVoltage"), exports);
357
357
  __exportStar(require("./GroupedBloodPressure"), exports);
358
+ __exportStar(require("./Select"), exports);
@@ -4,7 +4,8 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { Select } from "./Select";
7
8
  export declare const GroupKeyColumnExprGroupKey: core.serialization.Schema<serializers.GroupKeyColumnExprGroupKey.Raw, Vital.GroupKeyColumnExprGroupKey>;
8
9
  export declare namespace GroupKeyColumnExprGroupKey {
9
- type Raw = number | "*";
10
+ type Raw = number | Select.Raw;
10
11
  }
@@ -28,4 +28,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.GroupKeyColumnExprGroupKey = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.GroupKeyColumnExprGroupKey = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.stringLiteral("*")]);
31
+ const Select_1 = require("./Select");
32
+ exports.GroupKeyColumnExprGroupKey = core.serialization.undiscriminatedUnion([core.serialization.number(), Select_1.Select]);
@@ -10,7 +10,8 @@ export declare namespace MissingBiomarkerResult {
10
10
  interface Raw {
11
11
  name: string;
12
12
  slug: string;
13
- reason: FailureType.Raw;
13
+ inferred_failure_type: FailureType.Raw;
14
+ note?: string | null;
14
15
  loinc?: string | null;
15
16
  loinc_slug?: string | null;
16
17
  provider_id?: string | null;
@@ -32,7 +32,8 @@ const FailureType_1 = require("./FailureType");
32
32
  exports.MissingBiomarkerResult = core.serialization.object({
33
33
  name: core.serialization.string(),
34
34
  slug: core.serialization.string(),
35
- reason: FailureType_1.FailureType,
35
+ inferredFailureType: core.serialization.property("inferred_failure_type", FailureType_1.FailureType),
36
+ note: core.serialization.string().optional(),
36
37
  loinc: core.serialization.string().optional(),
37
38
  loincSlug: core.serialization.property("loinc_slug", core.serialization.string().optional()),
38
39
  providerId: core.serialization.property("provider_id", core.serialization.string().optional()),
@@ -0,0 +1,10 @@
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 Select: core.serialization.Schema<serializers.Select.Raw, Vital.Select>;
8
+ export declare namespace Select {
9
+ type Raw = "*";
10
+ }
@@ -0,0 +1,31 @@
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.Select = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.Select = core.serialization.enum_(["*"]);
@@ -339,3 +339,4 @@ export * from "./GroupedBodyFat";
339
339
  export * from "./GroupedBloodOxygen";
340
340
  export * from "./GroupedElectrocardiogramVoltage";
341
341
  export * from "./GroupedBloodPressure";
342
+ export * from "./Select";
@@ -355,3 +355,4 @@ __exportStar(require("./GroupedBodyFat"), exports);
355
355
  __exportStar(require("./GroupedBloodOxygen"), exports);
356
356
  __exportStar(require("./GroupedElectrocardiogramVoltage"), exports);
357
357
  __exportStar(require("./GroupedBloodPressure"), exports);
358
+ __exportStar(require("./Select"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.74";
1
+ export declare const SDK_VERSION = "3.1.76";
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.74";
4
+ exports.SDK_VERSION = "3.1.76";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.74",
3
+ "version": "3.1.76",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -6983,6 +6983,56 @@ await client.labTests.getMarkers();
6983
6983
  </dl>
6984
6984
  </details>
6985
6985
 
6986
+ <details><summary><code>client.labTests.<a href="/src/api/resources/labTests/client/Client.ts">getMarkersForOrderSet</a>({ ...params }) -> Vital.GetMarkersResponse</code></summary>
6987
+ <dl>
6988
+ <dd>
6989
+
6990
+ #### 🔌 Usage
6991
+
6992
+ <dl>
6993
+ <dd>
6994
+
6995
+ <dl>
6996
+ <dd>
6997
+
6998
+ ```typescript
6999
+ await client.labTests.getMarkersForOrderSet({
7000
+ body: {},
7001
+ });
7002
+ ```
7003
+
7004
+ </dd>
7005
+ </dl>
7006
+ </dd>
7007
+ </dl>
7008
+
7009
+ #### ⚙️ Parameters
7010
+
7011
+ <dl>
7012
+ <dd>
7013
+
7014
+ <dl>
7015
+ <dd>
7016
+
7017
+ **request:** `Vital.LabTestsGetMarkersForOrderSetRequest`
7018
+
7019
+ </dd>
7020
+ </dl>
7021
+
7022
+ <dl>
7023
+ <dd>
7024
+
7025
+ **requestOptions:** `LabTests.RequestOptions`
7026
+
7027
+ </dd>
7028
+ </dl>
7029
+ </dd>
7030
+ </dl>
7031
+
7032
+ </dd>
7033
+ </dl>
7034
+ </details>
7035
+
6986
7036
  <details><summary><code>client.labTests.<a href="/src/api/resources/labTests/client/Client.ts">getMarkersForLabTest</a>(labTestId, { ...params }) -> Vital.GetMarkersResponse</code></summary>
6987
7037
  <dl>
6988
7038
  <dd>
@@ -4,7 +4,8 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { Select } from "./Select";
7
8
  export declare const GroupKeyColumnExprGroupKey: core.serialization.Schema<serializers.GroupKeyColumnExprGroupKey.Raw, Vital.GroupKeyColumnExprGroupKey>;
8
9
  export declare namespace GroupKeyColumnExprGroupKey {
9
- type Raw = number | "*";
10
+ type Raw = number | Select.Raw;
10
11
  }
@@ -28,4 +28,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.GroupKeyColumnExprGroupKey = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.GroupKeyColumnExprGroupKey = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.stringLiteral("*")]);
31
+ const Select_1 = require("./Select");
32
+ exports.GroupKeyColumnExprGroupKey = core.serialization.undiscriminatedUnion([core.serialization.number(), Select_1.Select]);
@@ -10,7 +10,8 @@ export declare namespace MissingBiomarkerResult {
10
10
  interface Raw {
11
11
  name: string;
12
12
  slug: string;
13
- reason: FailureType.Raw;
13
+ inferred_failure_type: FailureType.Raw;
14
+ note?: string | null;
14
15
  loinc?: string | null;
15
16
  loinc_slug?: string | null;
16
17
  provider_id?: string | null;
@@ -32,7 +32,8 @@ const FailureType_1 = require("./FailureType");
32
32
  exports.MissingBiomarkerResult = core.serialization.object({
33
33
  name: core.serialization.string(),
34
34
  slug: core.serialization.string(),
35
- reason: FailureType_1.FailureType,
35
+ inferredFailureType: core.serialization.property("inferred_failure_type", FailureType_1.FailureType),
36
+ note: core.serialization.string().optional(),
36
37
  loinc: core.serialization.string().optional(),
37
38
  loincSlug: core.serialization.property("loinc_slug", core.serialization.string().optional()),
38
39
  providerId: core.serialization.property("provider_id", core.serialization.string().optional()),
@@ -0,0 +1,10 @@
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 Select: core.serialization.Schema<serializers.Select.Raw, Vital.Select>;
8
+ export declare namespace Select {
9
+ type Raw = "*";
10
+ }
@@ -0,0 +1,31 @@
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.Select = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.Select = core.serialization.enum_(["*"]);
@@ -339,3 +339,4 @@ export * from "./GroupedBodyFat";
339
339
  export * from "./GroupedBloodOxygen";
340
340
  export * from "./GroupedElectrocardiogramVoltage";
341
341
  export * from "./GroupedBloodPressure";
342
+ export * from "./Select";
@@ -355,3 +355,4 @@ __exportStar(require("./GroupedBodyFat"), exports);
355
355
  __exportStar(require("./GroupedBloodOxygen"), exports);
356
356
  __exportStar(require("./GroupedElectrocardiogramVoltage"), exports);
357
357
  __exportStar(require("./GroupedBloodPressure"), exports);
358
+ __exportStar(require("./Select"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.74";
1
+ export declare const SDK_VERSION = "3.1.76";
package/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.74";
4
+ exports.SDK_VERSION = "3.1.76";