@tryvital/vital-node 3.1.281 → 3.1.282

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 (71) 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.js +41 -41
  9. package/api/resources/link/client/Client.js +19 -19
  10. package/api/resources/meal/client/Client.js +1 -1
  11. package/api/resources/menstrualCycle/client/Client.js +1 -1
  12. package/api/resources/order/client/Client.js +1 -1
  13. package/api/resources/profile/client/Client.js +2 -2
  14. package/api/resources/providers/client/Client.js +1 -1
  15. package/api/resources/sleep/client/Client.js +4 -4
  16. package/api/resources/sleepCycle/client/Client.js +1 -1
  17. package/api/resources/team/client/Client.js +7 -7
  18. package/api/resources/testkit/client/Client.js +2 -2
  19. package/api/resources/user/client/Client.js +16 -16
  20. package/api/resources/vitals/client/Client.js +78 -78
  21. package/api/resources/workouts/client/Client.js +3 -3
  22. package/api/types/ClientFacingLabTest.d.ts +4 -0
  23. package/api/types/ClientFacingMarker.d.ts +2 -0
  24. package/api/types/ClientFacingMarkerComplete.d.ts +2 -0
  25. package/api/types/ClientFacingOrder.d.ts +4 -0
  26. package/dist/api/resources/activity/client/Client.js +2 -2
  27. package/dist/api/resources/aggregate/client/Client.js +3 -3
  28. package/dist/api/resources/body/client/Client.js +2 -2
  29. package/dist/api/resources/devices/client/Client.js +1 -1
  30. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  31. package/dist/api/resources/insurance/client/Client.js +3 -3
  32. package/dist/api/resources/introspect/client/Client.js +2 -2
  33. package/dist/api/resources/labTests/client/Client.js +41 -41
  34. package/dist/api/resources/link/client/Client.js +19 -19
  35. package/dist/api/resources/meal/client/Client.js +1 -1
  36. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  37. package/dist/api/resources/order/client/Client.js +1 -1
  38. package/dist/api/resources/profile/client/Client.js +2 -2
  39. package/dist/api/resources/providers/client/Client.js +1 -1
  40. package/dist/api/resources/sleep/client/Client.js +4 -4
  41. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  42. package/dist/api/resources/team/client/Client.js +7 -7
  43. package/dist/api/resources/testkit/client/Client.js +2 -2
  44. package/dist/api/resources/user/client/Client.js +16 -16
  45. package/dist/api/resources/vitals/client/Client.js +78 -78
  46. package/dist/api/resources/workouts/client/Client.js +3 -3
  47. package/dist/api/types/ClientFacingLabTest.d.ts +4 -0
  48. package/dist/api/types/ClientFacingMarker.d.ts +2 -0
  49. package/dist/api/types/ClientFacingMarkerComplete.d.ts +2 -0
  50. package/dist/api/types/ClientFacingOrder.d.ts +4 -0
  51. package/dist/serialization/types/ClientFacingLabTest.d.ts +2 -0
  52. package/dist/serialization/types/ClientFacingLabTest.js +2 -0
  53. package/dist/serialization/types/ClientFacingMarker.d.ts +2 -0
  54. package/dist/serialization/types/ClientFacingMarker.js +2 -0
  55. package/dist/serialization/types/ClientFacingMarkerComplete.d.ts +2 -0
  56. package/dist/serialization/types/ClientFacingMarkerComplete.js +2 -0
  57. package/dist/serialization/types/ClientFacingOrder.d.ts +2 -0
  58. package/dist/serialization/types/ClientFacingOrder.js +2 -0
  59. package/dist/version.d.ts +1 -1
  60. package/dist/version.js +1 -1
  61. package/package.json +1 -1
  62. package/serialization/types/ClientFacingLabTest.d.ts +2 -0
  63. package/serialization/types/ClientFacingLabTest.js +2 -0
  64. package/serialization/types/ClientFacingMarker.d.ts +2 -0
  65. package/serialization/types/ClientFacingMarker.js +2 -0
  66. package/serialization/types/ClientFacingMarkerComplete.d.ts +2 -0
  67. package/serialization/types/ClientFacingMarkerComplete.js +2 -0
  68. package/serialization/types/ClientFacingOrder.d.ts +2 -0
  69. package/serialization/types/ClientFacingOrder.js +2 -0
  70. package/version.d.ts +1 -1
  71. 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.281", "User-Agent": "@tryvital/vital-node/3.1.281", "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.282", "User-Agent": "@tryvital/vital-node/3.1.282", "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.281", "User-Agent": "@tryvital/vital-node/3.1.281", "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.282", "User-Agent": "@tryvital/vital-node/3.1.282", "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.281", "User-Agent": "@tryvital/vital-node/3.1.281", "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.282", "User-Agent": "@tryvital/vital-node/3.1.282", "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,
@@ -31,4 +31,8 @@ export interface ClientFacingLabTest {
31
31
  autoGenerated?: boolean;
32
32
  /** Whether or not the lab test has collection instructions. */
33
33
  hasCollectionInstructions?: boolean;
34
+ /** The common turnaround time in days for the lab test. This is the expected time for the lab to process the test and return results. */
35
+ commonTatDays?: number;
36
+ /** The worst-case turnaround time in days for the lab test. This is the maximum time the lab may take to process the test and return results. */
37
+ worstCaseTatDays?: number;
34
38
  }
@@ -14,4 +14,6 @@ export interface ClientFacingMarker {
14
14
  price?: string;
15
15
  aoe?: Vital.AoE;
16
16
  aLaCarteEnabled?: boolean;
17
+ commonTatDays?: number;
18
+ worstCaseTatDays?: number;
17
19
  }
@@ -14,5 +14,7 @@ export interface ClientFacingMarkerComplete {
14
14
  price?: string;
15
15
  aoe?: Vital.AoE;
16
16
  aLaCarteEnabled?: boolean;
17
+ commonTatDays?: number;
18
+ worstCaseTatDays?: number;
17
19
  expectedResults: Vital.ClientFacingResult[];
18
20
  }
@@ -44,4 +44,8 @@ export interface ClientFacingOrder {
44
44
  hasAbn: boolean;
45
45
  /** Interpretation of the order result. Can be one of (normal, abnormal, critical). */
46
46
  interpretation?: Vital.Interpretation;
47
+ /** The common-case date by which the order result is expected to be available. */
48
+ expectedResultByDate?: string;
49
+ /** The latest date by which the order result is expected to be available. */
50
+ worstCaseResultByDate?: string;
47
51
  }
@@ -26,5 +26,7 @@ export declare namespace ClientFacingLabTest {
26
26
  is_delegated?: boolean | null;
27
27
  auto_generated?: boolean | null;
28
28
  has_collection_instructions?: boolean | null;
29
+ common_tat_days?: number | null;
30
+ worst_case_tat_days?: number | null;
29
31
  }
30
32
  }
@@ -48,4 +48,6 @@ exports.ClientFacingLabTest = core.serialization.object({
48
48
  isDelegated: core.serialization.property("is_delegated", core.serialization.boolean().optional()),
49
49
  autoGenerated: core.serialization.property("auto_generated", core.serialization.boolean().optional()),
50
50
  hasCollectionInstructions: core.serialization.property("has_collection_instructions", core.serialization.boolean().optional()),
51
+ commonTatDays: core.serialization.property("common_tat_days", core.serialization.number().optional()),
52
+ worstCaseTatDays: core.serialization.property("worst_case_tat_days", core.serialization.number().optional()),
51
53
  });
@@ -20,5 +20,7 @@ export declare namespace ClientFacingMarker {
20
20
  price?: string | null;
21
21
  aoe?: AoE.Raw | null;
22
22
  a_la_carte_enabled?: boolean | null;
23
+ common_tat_days?: number | null;
24
+ worst_case_tat_days?: number | null;
23
25
  }
24
26
  }
@@ -42,4 +42,6 @@ exports.ClientFacingMarker = core.serialization.object({
42
42
  price: core.serialization.string().optional(),
43
43
  aoe: AoE_1.AoE.optional(),
44
44
  aLaCarteEnabled: core.serialization.property("a_la_carte_enabled", core.serialization.boolean().optional()),
45
+ commonTatDays: core.serialization.property("common_tat_days", core.serialization.number().optional()),
46
+ worstCaseTatDays: core.serialization.property("worst_case_tat_days", core.serialization.number().optional()),
45
47
  });
@@ -21,6 +21,8 @@ export declare namespace ClientFacingMarkerComplete {
21
21
  price?: string | null;
22
22
  aoe?: AoE.Raw | null;
23
23
  a_la_carte_enabled?: boolean | null;
24
+ common_tat_days?: number | null;
25
+ worst_case_tat_days?: number | null;
24
26
  expected_results: ClientFacingResult.Raw[];
25
27
  }
26
28
  }
@@ -43,5 +43,7 @@ exports.ClientFacingMarkerComplete = core.serialization.object({
43
43
  price: core.serialization.string().optional(),
44
44
  aoe: AoE_1.AoE.optional(),
45
45
  aLaCarteEnabled: core.serialization.property("a_la_carte_enabled", core.serialization.boolean().optional()),
46
+ commonTatDays: core.serialization.property("common_tat_days", core.serialization.number().optional()),
47
+ worstCaseTatDays: core.serialization.property("worst_case_tat_days", core.serialization.number().optional()),
46
48
  expectedResults: core.serialization.property("expected_results", core.serialization.list(ClientFacingResult_1.ClientFacingResult)),
47
49
  });
@@ -41,5 +41,7 @@ export declare namespace ClientFacingOrder {
41
41
  icd_codes?: string[] | null;
42
42
  has_abn: boolean;
43
43
  interpretation?: Interpretation.Raw | null;
44
+ expected_result_by_date?: string | null;
45
+ worst_case_result_by_date?: string | null;
44
46
  }
45
47
  }
@@ -63,4 +63,6 @@ exports.ClientFacingOrder = core.serialization.object({
63
63
  icdCodes: core.serialization.property("icd_codes", core.serialization.list(core.serialization.string()).optional()),
64
64
  hasAbn: core.serialization.property("has_abn", core.serialization.boolean()),
65
65
  interpretation: Interpretation_1.Interpretation.optional(),
66
+ expectedResultByDate: core.serialization.property("expected_result_by_date", core.serialization.string().optional()),
67
+ worstCaseResultByDate: core.serialization.property("worst_case_result_by_date", core.serialization.string().optional()),
66
68
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.281";
1
+ export declare const SDK_VERSION = "3.1.282";
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.281";
4
+ exports.SDK_VERSION = "3.1.282";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.281",
3
+ "version": "3.1.282",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
@@ -26,5 +26,7 @@ export declare namespace ClientFacingLabTest {
26
26
  is_delegated?: boolean | null;
27
27
  auto_generated?: boolean | null;
28
28
  has_collection_instructions?: boolean | null;
29
+ common_tat_days?: number | null;
30
+ worst_case_tat_days?: number | null;
29
31
  }
30
32
  }
@@ -48,4 +48,6 @@ exports.ClientFacingLabTest = core.serialization.object({
48
48
  isDelegated: core.serialization.property("is_delegated", core.serialization.boolean().optional()),
49
49
  autoGenerated: core.serialization.property("auto_generated", core.serialization.boolean().optional()),
50
50
  hasCollectionInstructions: core.serialization.property("has_collection_instructions", core.serialization.boolean().optional()),
51
+ commonTatDays: core.serialization.property("common_tat_days", core.serialization.number().optional()),
52
+ worstCaseTatDays: core.serialization.property("worst_case_tat_days", core.serialization.number().optional()),
51
53
  });
@@ -20,5 +20,7 @@ export declare namespace ClientFacingMarker {
20
20
  price?: string | null;
21
21
  aoe?: AoE.Raw | null;
22
22
  a_la_carte_enabled?: boolean | null;
23
+ common_tat_days?: number | null;
24
+ worst_case_tat_days?: number | null;
23
25
  }
24
26
  }
@@ -42,4 +42,6 @@ exports.ClientFacingMarker = core.serialization.object({
42
42
  price: core.serialization.string().optional(),
43
43
  aoe: AoE_1.AoE.optional(),
44
44
  aLaCarteEnabled: core.serialization.property("a_la_carte_enabled", core.serialization.boolean().optional()),
45
+ commonTatDays: core.serialization.property("common_tat_days", core.serialization.number().optional()),
46
+ worstCaseTatDays: core.serialization.property("worst_case_tat_days", core.serialization.number().optional()),
45
47
  });
@@ -21,6 +21,8 @@ export declare namespace ClientFacingMarkerComplete {
21
21
  price?: string | null;
22
22
  aoe?: AoE.Raw | null;
23
23
  a_la_carte_enabled?: boolean | null;
24
+ common_tat_days?: number | null;
25
+ worst_case_tat_days?: number | null;
24
26
  expected_results: ClientFacingResult.Raw[];
25
27
  }
26
28
  }
@@ -43,5 +43,7 @@ exports.ClientFacingMarkerComplete = core.serialization.object({
43
43
  price: core.serialization.string().optional(),
44
44
  aoe: AoE_1.AoE.optional(),
45
45
  aLaCarteEnabled: core.serialization.property("a_la_carte_enabled", core.serialization.boolean().optional()),
46
+ commonTatDays: core.serialization.property("common_tat_days", core.serialization.number().optional()),
47
+ worstCaseTatDays: core.serialization.property("worst_case_tat_days", core.serialization.number().optional()),
46
48
  expectedResults: core.serialization.property("expected_results", core.serialization.list(ClientFacingResult_1.ClientFacingResult)),
47
49
  });
@@ -41,5 +41,7 @@ export declare namespace ClientFacingOrder {
41
41
  icd_codes?: string[] | null;
42
42
  has_abn: boolean;
43
43
  interpretation?: Interpretation.Raw | null;
44
+ expected_result_by_date?: string | null;
45
+ worst_case_result_by_date?: string | null;
44
46
  }
45
47
  }
@@ -63,4 +63,6 @@ exports.ClientFacingOrder = core.serialization.object({
63
63
  icdCodes: core.serialization.property("icd_codes", core.serialization.list(core.serialization.string()).optional()),
64
64
  hasAbn: core.serialization.property("has_abn", core.serialization.boolean()),
65
65
  interpretation: Interpretation_1.Interpretation.optional(),
66
+ expectedResultByDate: core.serialization.property("expected_result_by_date", core.serialization.string().optional()),
67
+ worstCaseResultByDate: core.serialization.property("worst_case_result_by_date", core.serialization.string().optional()),
66
68
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.281";
1
+ export declare const SDK_VERSION = "3.1.282";
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.281";
4
+ exports.SDK_VERSION = "3.1.282";