@tryvital/vital-node 3.1.264 → 3.1.266

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 (93) 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 +40 -40
  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/ClientFacingOnSiteCollectionOrder.d.ts +13 -0
  23. package/api/types/ClientFacingOnSiteCollectionOrder.js +5 -0
  24. package/api/types/ClientFacingOnSiteCollectionOrderDetails.d.ts +7 -0
  25. package/api/types/ClientFacingOnSiteCollectionOrderDetails.js +5 -0
  26. package/api/types/ClientFacingOrderDetails.d.ts +4 -1
  27. package/api/types/LabTestCollectionMethod.d.ts +2 -1
  28. package/api/types/LabTestCollectionMethod.js +1 -0
  29. package/api/types/OrderStatus.d.ts +9 -1
  30. package/api/types/OrderStatus.js +8 -0
  31. package/api/types/index.d.ts +2 -0
  32. package/api/types/index.js +2 -0
  33. package/dist/api/resources/activity/client/Client.js +2 -2
  34. package/dist/api/resources/aggregate/client/Client.js +3 -3
  35. package/dist/api/resources/body/client/Client.js +2 -2
  36. package/dist/api/resources/devices/client/Client.js +1 -1
  37. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  38. package/dist/api/resources/insurance/client/Client.js +3 -3
  39. package/dist/api/resources/introspect/client/Client.js +2 -2
  40. package/dist/api/resources/labTests/client/Client.js +40 -40
  41. package/dist/api/resources/link/client/Client.js +19 -19
  42. package/dist/api/resources/meal/client/Client.js +1 -1
  43. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  44. package/dist/api/resources/order/client/Client.js +1 -1
  45. package/dist/api/resources/profile/client/Client.js +2 -2
  46. package/dist/api/resources/providers/client/Client.js +1 -1
  47. package/dist/api/resources/sleep/client/Client.js +4 -4
  48. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  49. package/dist/api/resources/team/client/Client.js +7 -7
  50. package/dist/api/resources/testkit/client/Client.js +2 -2
  51. package/dist/api/resources/user/client/Client.js +16 -16
  52. package/dist/api/resources/vitals/client/Client.js +78 -78
  53. package/dist/api/resources/workouts/client/Client.js +3 -3
  54. package/dist/api/types/ClientFacingOnSiteCollectionOrder.d.ts +13 -0
  55. package/dist/api/types/ClientFacingOnSiteCollectionOrder.js +5 -0
  56. package/dist/api/types/ClientFacingOnSiteCollectionOrderDetails.d.ts +7 -0
  57. package/dist/api/types/ClientFacingOnSiteCollectionOrderDetails.js +5 -0
  58. package/dist/api/types/ClientFacingOrderDetails.d.ts +4 -1
  59. package/dist/api/types/LabTestCollectionMethod.d.ts +2 -1
  60. package/dist/api/types/LabTestCollectionMethod.js +1 -0
  61. package/dist/api/types/OrderStatus.d.ts +9 -1
  62. package/dist/api/types/OrderStatus.js +8 -0
  63. package/dist/api/types/index.d.ts +2 -0
  64. package/dist/api/types/index.js +2 -0
  65. package/dist/serialization/types/ClientFacingOnSiteCollectionOrder.d.ts +14 -0
  66. package/dist/serialization/types/ClientFacingOnSiteCollectionOrder.js +35 -0
  67. package/dist/serialization/types/ClientFacingOnSiteCollectionOrderDetails.d.ts +13 -0
  68. package/dist/serialization/types/ClientFacingOnSiteCollectionOrderDetails.js +34 -0
  69. package/dist/serialization/types/ClientFacingOrderDetails.d.ts +5 -1
  70. package/dist/serialization/types/ClientFacingOrderDetails.js +2 -0
  71. package/dist/serialization/types/LabTestCollectionMethod.d.ts +1 -1
  72. package/dist/serialization/types/LabTestCollectionMethod.js +1 -1
  73. package/dist/serialization/types/OrderStatus.d.ts +1 -1
  74. package/dist/serialization/types/OrderStatus.js +8 -0
  75. package/dist/serialization/types/index.d.ts +2 -0
  76. package/dist/serialization/types/index.js +2 -0
  77. package/dist/version.d.ts +1 -1
  78. package/dist/version.js +1 -1
  79. package/package.json +1 -1
  80. package/serialization/types/ClientFacingOnSiteCollectionOrder.d.ts +14 -0
  81. package/serialization/types/ClientFacingOnSiteCollectionOrder.js +35 -0
  82. package/serialization/types/ClientFacingOnSiteCollectionOrderDetails.d.ts +13 -0
  83. package/serialization/types/ClientFacingOnSiteCollectionOrderDetails.js +34 -0
  84. package/serialization/types/ClientFacingOrderDetails.d.ts +5 -1
  85. package/serialization/types/ClientFacingOrderDetails.js +2 -0
  86. package/serialization/types/LabTestCollectionMethod.d.ts +1 -1
  87. package/serialization/types/LabTestCollectionMethod.js +1 -1
  88. package/serialization/types/OrderStatus.d.ts +1 -1
  89. package/serialization/types/OrderStatus.js +8 -0
  90. package/serialization/types/index.d.ts +2 -0
  91. package/serialization/types/index.js +2 -0
  92. package/version.d.ts +1 -1
  93. 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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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,
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Schema for an on-site collection order in the client facing API.
6
+ * To be used as part of a ClientFacingOrder.
7
+ */
8
+ export interface ClientFacingOnSiteCollectionOrder {
9
+ /** The Junction on-site collection Order ID */
10
+ id: string;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ClientFacingOnSiteCollectionOrderDetails {
6
+ data?: Vital.ClientFacingOnSiteCollectionOrder;
7
+ }
@@ -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 });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vital from "../index";
5
- export declare type ClientFacingOrderDetails = Vital.ClientFacingOrderDetails.WalkInTest | Vital.ClientFacingOrderDetails.Testkit | Vital.ClientFacingOrderDetails.AtHomePhlebotomy;
5
+ export declare type ClientFacingOrderDetails = Vital.ClientFacingOrderDetails.WalkInTest | Vital.ClientFacingOrderDetails.Testkit | Vital.ClientFacingOrderDetails.AtHomePhlebotomy | Vital.ClientFacingOrderDetails.OnSiteCollection;
6
6
  export declare namespace ClientFacingOrderDetails {
7
7
  interface WalkInTest extends Vital.ClientFacingWalkInOrderDetails {
8
8
  type: "walk_in_test";
@@ -13,4 +13,7 @@ export declare namespace ClientFacingOrderDetails {
13
13
  interface AtHomePhlebotomy extends Vital.ClientFacingAtHomePhlebotomyOrderDetails {
14
14
  type: "at_home_phlebotomy";
15
15
  }
16
+ interface OnSiteCollection extends Vital.ClientFacingOnSiteCollectionOrderDetails {
17
+ type: "on_site_collection";
18
+ }
16
19
  }
@@ -4,9 +4,10 @@
4
4
  /**
5
5
  * The method used to perform a lab test. ℹ️ This enum is non-exhaustive.
6
6
  */
7
- export declare type LabTestCollectionMethod = "testkit" | "walk_in_test" | "at_home_phlebotomy";
7
+ export declare type LabTestCollectionMethod = "testkit" | "walk_in_test" | "at_home_phlebotomy" | "on_site_collection";
8
8
  export declare const LabTestCollectionMethod: {
9
9
  readonly Testkit: "testkit";
10
10
  readonly WalkInTest: "walk_in_test";
11
11
  readonly AtHomePhlebotomy: "at_home_phlebotomy";
12
+ readonly OnSiteCollection: "on_site_collection";
12
13
  };
@@ -8,4 +8,5 @@ exports.LabTestCollectionMethod = {
8
8
  Testkit: "testkit",
9
9
  WalkInTest: "walk_in_test",
10
10
  AtHomePhlebotomy: "at_home_phlebotomy",
11
+ OnSiteCollection: "on_site_collection",
11
12
  };
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * ℹ️ This enum is non-exhaustive.
6
6
  */
7
- export declare type OrderStatus = "received.walk_in_test.ordered" | "received.walk_in_test.requisition_created" | "received.walk_in_test.requisition_bypassed" | "completed.walk_in_test.completed" | "sample_with_lab.walk_in_test.partial_results" | "failed.walk_in_test.sample_error" | "cancelled.walk_in_test.cancelled" | "collecting_sample.walk_in_test.appointment_pending" | "collecting_sample.walk_in_test.appointment_scheduled" | "collecting_sample.walk_in_test.appointment_cancelled" | "received.at_home_phlebotomy.ordered" | "received.at_home_phlebotomy.requisition_created" | "received.at_home_phlebotomy.requisition_bypassed" | "collecting_sample.at_home_phlebotomy.appointment_pending" | "collecting_sample.at_home_phlebotomy.appointment_scheduled" | "collecting_sample.at_home_phlebotomy.draw_completed" | "collecting_sample.at_home_phlebotomy.appointment_cancelled" | "completed.at_home_phlebotomy.completed" | "sample_with_lab.at_home_phlebotomy.partial_results" | "cancelled.at_home_phlebotomy.cancelled" | "failed.at_home_phlebotomy.sample_error" | "received.testkit.ordered" | "received.testkit.awaiting_registration" | "received.testkit.requisition_created" | "received.testkit.requisition_bypassed" | "received.testkit.registered" | "collecting_sample.testkit.transit_customer" | "collecting_sample.testkit.out_for_delivery" | "collecting_sample.testkit.with_customer" | "collecting_sample.testkit.transit_lab" | "sample_with_lab.testkit.delivered_to_lab" | "completed.testkit.completed" | "failed.testkit.failure_to_deliver_to_customer" | "failed.testkit.failure_to_deliver_to_lab" | "failed.testkit.sample_error" | "failed.testkit.lost" | "cancelled.testkit.cancelled" | "cancelled.testkit.do_not_process" | "collecting_sample.testkit.problem_in_transit_customer" | "collecting_sample.testkit.problem_in_transit_lab";
7
+ export declare type OrderStatus = "received.walk_in_test.ordered" | "received.walk_in_test.requisition_created" | "received.walk_in_test.requisition_bypassed" | "completed.walk_in_test.completed" | "sample_with_lab.walk_in_test.partial_results" | "failed.walk_in_test.sample_error" | "cancelled.walk_in_test.cancelled" | "collecting_sample.walk_in_test.appointment_pending" | "collecting_sample.walk_in_test.appointment_scheduled" | "collecting_sample.walk_in_test.appointment_cancelled" | "received.at_home_phlebotomy.ordered" | "received.at_home_phlebotomy.requisition_created" | "received.at_home_phlebotomy.requisition_bypassed" | "collecting_sample.at_home_phlebotomy.appointment_pending" | "collecting_sample.at_home_phlebotomy.appointment_scheduled" | "collecting_sample.at_home_phlebotomy.draw_completed" | "collecting_sample.at_home_phlebotomy.appointment_cancelled" | "completed.at_home_phlebotomy.completed" | "sample_with_lab.at_home_phlebotomy.partial_results" | "cancelled.at_home_phlebotomy.cancelled" | "failed.at_home_phlebotomy.sample_error" | "received.testkit.ordered" | "received.testkit.awaiting_registration" | "received.testkit.requisition_created" | "received.testkit.requisition_bypassed" | "received.testkit.registered" | "collecting_sample.testkit.transit_customer" | "collecting_sample.testkit.out_for_delivery" | "collecting_sample.testkit.with_customer" | "collecting_sample.testkit.transit_lab" | "sample_with_lab.testkit.delivered_to_lab" | "completed.testkit.completed" | "failed.testkit.failure_to_deliver_to_customer" | "failed.testkit.failure_to_deliver_to_lab" | "failed.testkit.sample_error" | "failed.testkit.lost" | "cancelled.testkit.cancelled" | "cancelled.testkit.do_not_process" | "collecting_sample.testkit.problem_in_transit_customer" | "collecting_sample.testkit.problem_in_transit_lab" | "received.on_site_collection.ordered" | "received.on_site_collection.requisition_created" | "received.on_site_collection.requisition_bypassed" | "sample_with_lab.on_site_collection.draw_completed" | "completed.on_site_collection.completed" | "cancelled.on_site_collection.cancelled" | "sample_with_lab.on_site_collection.partial_results" | "failed.on_site_collection.sample_error";
8
8
  export declare const OrderStatus: {
9
9
  readonly ReceivedWalkInTestOrdered: "received.walk_in_test.ordered";
10
10
  readonly ReceivedWalkInTestRequisitionCreated: "received.walk_in_test.requisition_created";
@@ -46,4 +46,12 @@ export declare const OrderStatus: {
46
46
  readonly CancelledTestkitDoNotProcess: "cancelled.testkit.do_not_process";
47
47
  readonly CollectingSampleTestkitProblemInTransitCustomer: "collecting_sample.testkit.problem_in_transit_customer";
48
48
  readonly CollectingSampleTestkitProblemInTransitLab: "collecting_sample.testkit.problem_in_transit_lab";
49
+ readonly ReceivedOnSiteCollectionOrdered: "received.on_site_collection.ordered";
50
+ readonly ReceivedOnSiteCollectionRequisitionCreated: "received.on_site_collection.requisition_created";
51
+ readonly ReceivedOnSiteCollectionRequisitionBypassed: "received.on_site_collection.requisition_bypassed";
52
+ readonly SampleWithLabOnSiteCollectionDrawCompleted: "sample_with_lab.on_site_collection.draw_completed";
53
+ readonly CompletedOnSiteCollectionCompleted: "completed.on_site_collection.completed";
54
+ readonly CancelledOnSiteCollectionCancelled: "cancelled.on_site_collection.cancelled";
55
+ readonly SampleWithLabOnSiteCollectionPartialResults: "sample_with_lab.on_site_collection.partial_results";
56
+ readonly FailedOnSiteCollectionSampleError: "failed.on_site_collection.sample_error";
49
57
  };
@@ -45,4 +45,12 @@ exports.OrderStatus = {
45
45
  CancelledTestkitDoNotProcess: "cancelled.testkit.do_not_process",
46
46
  CollectingSampleTestkitProblemInTransitCustomer: "collecting_sample.testkit.problem_in_transit_customer",
47
47
  CollectingSampleTestkitProblemInTransitLab: "collecting_sample.testkit.problem_in_transit_lab",
48
+ ReceivedOnSiteCollectionOrdered: "received.on_site_collection.ordered",
49
+ ReceivedOnSiteCollectionRequisitionCreated: "received.on_site_collection.requisition_created",
50
+ ReceivedOnSiteCollectionRequisitionBypassed: "received.on_site_collection.requisition_bypassed",
51
+ SampleWithLabOnSiteCollectionDrawCompleted: "sample_with_lab.on_site_collection.draw_completed",
52
+ CompletedOnSiteCollectionCompleted: "completed.on_site_collection.completed",
53
+ CancelledOnSiteCollectionCancelled: "cancelled.on_site_collection.cancelled",
54
+ SampleWithLabOnSiteCollectionPartialResults: "sample_with_lab.on_site_collection.partial_results",
55
+ FailedOnSiteCollectionSampleError: "failed.on_site_collection.sample_error",
48
56
  };
@@ -115,6 +115,8 @@ export * from "./ClientFacingMenstrualCycle";
115
115
  export * from "./ClientFacingMindfulnessMinutesTimeseries";
116
116
  export * from "./ClientFacingNoteSampleTagsItem";
117
117
  export * from "./ClientFacingNoteSample";
118
+ export * from "./ClientFacingOnSiteCollectionOrder";
119
+ export * from "./ClientFacingOnSiteCollectionOrderDetails";
118
120
  export * from "./ClientFacingOrderDetails";
119
121
  export * from "./ClientFacingOrder";
120
122
  export * from "./ClientFacingOrderEvent";
@@ -131,6 +131,8 @@ __exportStar(require("./ClientFacingMenstrualCycle"), exports);
131
131
  __exportStar(require("./ClientFacingMindfulnessMinutesTimeseries"), exports);
132
132
  __exportStar(require("./ClientFacingNoteSampleTagsItem"), exports);
133
133
  __exportStar(require("./ClientFacingNoteSample"), exports);
134
+ __exportStar(require("./ClientFacingOnSiteCollectionOrder"), exports);
135
+ __exportStar(require("./ClientFacingOnSiteCollectionOrderDetails"), exports);
134
136
  __exportStar(require("./ClientFacingOrderDetails"), exports);
135
137
  __exportStar(require("./ClientFacingOrder"), exports);
136
138
  __exportStar(require("./ClientFacingOrderEvent"), 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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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.264", "User-Agent": "@tryvital/vital-node/3.1.264", "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.266", "User-Agent": "@tryvital/vital-node/3.1.266", "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",