@tryvital/vital-node 3.1.504 → 3.1.506

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 (62) 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/labReport/client/Client.d.ts +3 -1
  9. package/api/resources/labReport/client/Client.js +6 -3
  10. package/api/resources/labReport/client/requests/BodyCreateLabReportParserJob.d.ts +4 -1
  11. package/api/resources/labTests/client/Client.js +42 -42
  12. package/api/resources/link/client/Client.js +19 -19
  13. package/api/resources/meal/client/Client.js +1 -1
  14. package/api/resources/menstrualCycle/client/Client.js +1 -1
  15. package/api/resources/order/client/Client.js +1 -1
  16. package/api/resources/payor/client/Client.js +1 -1
  17. package/api/resources/profile/client/Client.js +2 -2
  18. package/api/resources/providers/client/Client.js +1 -1
  19. package/api/resources/sleep/client/Client.js +3 -3
  20. package/api/resources/sleepCycle/client/Client.js +1 -1
  21. package/api/resources/team/client/Client.js +7 -7
  22. package/api/resources/testkit/client/Client.js +2 -2
  23. package/api/resources/user/client/Client.js +19 -19
  24. package/api/resources/vitals/client/Client.js +78 -78
  25. package/api/resources/workouts/client/Client.js +3 -3
  26. package/api/types/ParsingJob.d.ts +1 -0
  27. package/dist/api/resources/activity/client/Client.js +2 -2
  28. package/dist/api/resources/aggregate/client/Client.js +3 -3
  29. package/dist/api/resources/body/client/Client.js +2 -2
  30. package/dist/api/resources/devices/client/Client.js +1 -1
  31. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  32. package/dist/api/resources/insurance/client/Client.js +3 -3
  33. package/dist/api/resources/introspect/client/Client.js +2 -2
  34. package/dist/api/resources/labReport/client/Client.d.ts +3 -1
  35. package/dist/api/resources/labReport/client/Client.js +6 -3
  36. package/dist/api/resources/labReport/client/requests/BodyCreateLabReportParserJob.d.ts +4 -1
  37. package/dist/api/resources/labTests/client/Client.js +42 -42
  38. package/dist/api/resources/link/client/Client.js +19 -19
  39. package/dist/api/resources/meal/client/Client.js +1 -1
  40. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  41. package/dist/api/resources/order/client/Client.js +1 -1
  42. package/dist/api/resources/payor/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 +3 -3
  46. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  47. package/dist/api/resources/team/client/Client.js +7 -7
  48. package/dist/api/resources/testkit/client/Client.js +2 -2
  49. package/dist/api/resources/user/client/Client.js +19 -19
  50. package/dist/api/resources/vitals/client/Client.js +78 -78
  51. package/dist/api/resources/workouts/client/Client.js +3 -3
  52. package/dist/api/types/ParsingJob.d.ts +1 -0
  53. package/dist/serialization/types/ParsingJob.d.ts +1 -0
  54. package/dist/serialization/types/ParsingJob.js +1 -0
  55. package/dist/version.d.ts +1 -1
  56. package/dist/version.js +1 -1
  57. package/package.json +1 -1
  58. package/reference.md +3 -1
  59. package/serialization/types/ParsingJob.d.ts +1 -0
  60. package/serialization/types/ParsingJob.js +1 -0
  61. package/version.d.ts +1 -1
  62. 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.504", "User-Agent": "@tryvital/vital-node/3.1.504", "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.506", "User-Agent": "@tryvital/vital-node/3.1.506", "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.504", "User-Agent": "@tryvital/vital-node/3.1.504", "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.506", "User-Agent": "@tryvital/vital-node/3.1.506", "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",
@@ -217,7 +217,7 @@ class Workouts {
217
217
  const _response = yield core.fetcher({
218
218
  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`),
219
219
  method: "GET",
220
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.504", "User-Agent": "@tryvital/vital-node/3.1.504", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
220
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.506", "User-Agent": "@tryvital/vital-node/3.1.506", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
221
221
  contentType: "application/json",
222
222
  requestType: "json",
223
223
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface ParsingJob {
6
+ id: string;
6
7
  jobId: string;
7
8
  status: Vital.ParsingJobStatus;
8
9
  data?: Vital.ParsedLabReportData;
@@ -9,6 +9,7 @@ import { ParsedLabReportData } from "./ParsedLabReportData";
9
9
  export declare const ParsingJob: core.serialization.ObjectSchema<serializers.ParsingJob.Raw, Vital.ParsingJob>;
10
10
  export declare namespace ParsingJob {
11
11
  interface Raw {
12
+ id: string;
12
13
  job_id: string;
13
14
  status: ParsingJobStatus.Raw;
14
15
  data?: ParsedLabReportData.Raw | null;
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
31
31
  const ParsingJobStatus_1 = require("./ParsingJobStatus");
32
32
  const ParsedLabReportData_1 = require("./ParsedLabReportData");
33
33
  exports.ParsingJob = core.serialization.object({
34
+ id: core.serialization.string(),
34
35
  jobId: core.serialization.property("job_id", core.serialization.string()),
35
36
  status: ParsingJobStatus_1.ParsingJobStatus,
36
37
  data: ParsedLabReportData_1.ParsedLabReportData.optional(),
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.504";
1
+ export declare const SDK_VERSION = "3.1.506";
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.504";
4
+ exports.SDK_VERSION = "3.1.506";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.504",
3
+ "version": "3.1.506",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -11841,7 +11841,9 @@ and starts the ParseLabReport. Returns a generated job_id.
11841
11841
  <dd>
11842
11842
 
11843
11843
  ```typescript
11844
- await client.labReport.parserCreateJob(fs.createReadStream("/path/to/your/file"), {});
11844
+ await client.labReport.parserCreateJob(fs.createReadStream("/path/to/your/file"), {
11845
+ userId: "user_id",
11846
+ });
11845
11847
  ```
11846
11848
 
11847
11849
  </dd>
@@ -9,6 +9,7 @@ import { ParsedLabReportData } from "./ParsedLabReportData";
9
9
  export declare const ParsingJob: core.serialization.ObjectSchema<serializers.ParsingJob.Raw, Vital.ParsingJob>;
10
10
  export declare namespace ParsingJob {
11
11
  interface Raw {
12
+ id: string;
12
13
  job_id: string;
13
14
  status: ParsingJobStatus.Raw;
14
15
  data?: ParsedLabReportData.Raw | null;
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
31
31
  const ParsingJobStatus_1 = require("./ParsingJobStatus");
32
32
  const ParsedLabReportData_1 = require("./ParsedLabReportData");
33
33
  exports.ParsingJob = core.serialization.object({
34
+ id: core.serialization.string(),
34
35
  jobId: core.serialization.property("job_id", core.serialization.string()),
35
36
  status: ParsingJobStatus_1.ParsingJobStatus,
36
37
  data: ParsedLabReportData_1.ParsedLabReportData.optional(),
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.504";
1
+ export declare const SDK_VERSION = "3.1.506";
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.504";
4
+ exports.SDK_VERSION = "3.1.506";