@tryvital/vital-node 3.1.185 → 3.1.187

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 (76) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.d.ts +3 -3
  3. package/api/resources/aggregate/client/Client.js +6 -6
  4. package/api/resources/body/client/Client.js +2 -2
  5. package/api/resources/devices/client/Client.js +1 -1
  6. package/api/resources/electrocardiogram/client/Client.js +1 -1
  7. package/api/resources/insurance/client/Client.js +3 -3
  8. package/api/resources/introspect/client/Client.js +2 -2
  9. package/api/resources/labTests/client/Client.js +61 -36
  10. package/api/resources/labTests/client/requests/LabTestsGetRequest.d.ts +14 -0
  11. package/api/resources/labTests/types/LabTestsGetRequestOrderDirection.d.ts +8 -0
  12. package/api/resources/labTests/types/LabTestsGetRequestOrderDirection.js +10 -0
  13. package/api/resources/labTests/types/LabTestsGetRequestOrderKey.d.ts +9 -0
  14. package/api/resources/labTests/types/LabTestsGetRequestOrderKey.js +11 -0
  15. package/api/resources/labTests/types/index.d.ts +2 -0
  16. package/api/resources/labTests/types/index.js +2 -0
  17. package/api/resources/link/client/Client.js +18 -18
  18. package/api/resources/meal/client/Client.js +1 -1
  19. package/api/resources/menstrualCycle/client/Client.js +1 -1
  20. package/api/resources/order/client/Client.js +1 -1
  21. package/api/resources/profile/client/Client.js +2 -2
  22. package/api/resources/providers/client/Client.js +1 -1
  23. package/api/resources/sleep/client/Client.js +4 -4
  24. package/api/resources/sleepCycle/client/Client.js +1 -1
  25. package/api/resources/team/client/Client.js +7 -7
  26. package/api/resources/testkit/client/Client.js +2 -2
  27. package/api/resources/user/client/Client.js +16 -16
  28. package/api/resources/vitals/client/Client.js +58 -58
  29. package/api/resources/workouts/client/Client.js +3 -3
  30. package/dist/api/resources/activity/client/Client.js +2 -2
  31. package/dist/api/resources/aggregate/client/Client.d.ts +3 -3
  32. package/dist/api/resources/aggregate/client/Client.js +6 -6
  33. package/dist/api/resources/body/client/Client.js +2 -2
  34. package/dist/api/resources/devices/client/Client.js +1 -1
  35. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  36. package/dist/api/resources/insurance/client/Client.js +3 -3
  37. package/dist/api/resources/introspect/client/Client.js +2 -2
  38. package/dist/api/resources/labTests/client/Client.js +61 -36
  39. package/dist/api/resources/labTests/client/requests/LabTestsGetRequest.d.ts +14 -0
  40. package/dist/api/resources/labTests/types/LabTestsGetRequestOrderDirection.d.ts +8 -0
  41. package/dist/api/resources/labTests/types/LabTestsGetRequestOrderDirection.js +10 -0
  42. package/dist/api/resources/labTests/types/LabTestsGetRequestOrderKey.d.ts +9 -0
  43. package/dist/api/resources/labTests/types/LabTestsGetRequestOrderKey.js +11 -0
  44. package/dist/api/resources/labTests/types/index.d.ts +2 -0
  45. package/dist/api/resources/labTests/types/index.js +2 -0
  46. package/dist/api/resources/link/client/Client.js +18 -18
  47. package/dist/api/resources/meal/client/Client.js +1 -1
  48. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  49. package/dist/api/resources/order/client/Client.js +1 -1
  50. package/dist/api/resources/profile/client/Client.js +2 -2
  51. package/dist/api/resources/providers/client/Client.js +1 -1
  52. package/dist/api/resources/sleep/client/Client.js +4 -4
  53. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  54. package/dist/api/resources/team/client/Client.js +7 -7
  55. package/dist/api/resources/testkit/client/Client.js +2 -2
  56. package/dist/api/resources/user/client/Client.js +16 -16
  57. package/dist/api/resources/vitals/client/Client.js +58 -58
  58. package/dist/api/resources/workouts/client/Client.js +3 -3
  59. package/dist/serialization/resources/labTests/types/LabTestsGetRequestOrderDirection.d.ts +10 -0
  60. package/dist/serialization/resources/labTests/types/LabTestsGetRequestOrderDirection.js +31 -0
  61. package/dist/serialization/resources/labTests/types/LabTestsGetRequestOrderKey.d.ts +10 -0
  62. package/dist/serialization/resources/labTests/types/LabTestsGetRequestOrderKey.js +31 -0
  63. package/dist/serialization/resources/labTests/types/index.d.ts +2 -0
  64. package/dist/serialization/resources/labTests/types/index.js +2 -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 +3 -3
  69. package/serialization/resources/labTests/types/LabTestsGetRequestOrderDirection.d.ts +10 -0
  70. package/serialization/resources/labTests/types/LabTestsGetRequestOrderDirection.js +31 -0
  71. package/serialization/resources/labTests/types/LabTestsGetRequestOrderKey.d.ts +10 -0
  72. package/serialization/resources/labTests/types/LabTestsGetRequestOrderKey.js +31 -0
  73. package/serialization/resources/labTests/types/index.d.ts +2 -0
  74. package/serialization/resources/labTests/types/index.js +2 -0
  75. package/version.d.ts +1 -1
  76. package/version.js +1 -1
@@ -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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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",
@@ -50,15 +50,15 @@ export declare class Aggregate {
50
50
  queryOne(userId: string, request: Vital.QueryBatch, requestOptions?: Aggregate.RequestOptions): Promise<Vital.AggregationResponse>;
51
51
  /**
52
52
  * @param {string} userId
53
- * @param {string} queryId
53
+ * @param {string} queryIdOrSlug
54
54
  * @param {Aggregate.RequestOptions} requestOptions - Request-specific configuration.
55
55
  *
56
56
  * @throws {@link Vital.UnprocessableEntityError}
57
57
  *
58
58
  * @example
59
- * await client.aggregate.getResultTableForContinuousQuery("user_id", "query_id")
59
+ * await client.aggregate.getResultTableForContinuousQuery("user_id", "query_id_or_slug")
60
60
  */
61
- getResultTableForContinuousQuery(userId: string, queryId: string, requestOptions?: Aggregate.RequestOptions): Promise<Vital.AggregationResult>;
61
+ getResultTableForContinuousQuery(userId: string, queryIdOrSlug: string, requestOptions?: Aggregate.RequestOptions): Promise<Vital.AggregationResult>;
62
62
  protected _getCustomAuthorizationHeaders(): Promise<{
63
63
  "x-vital-api-key": string | undefined;
64
64
  }>;
@@ -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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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" }),
@@ -130,21 +130,21 @@ class Aggregate {
130
130
  }
131
131
  /**
132
132
  * @param {string} userId
133
- * @param {string} queryId
133
+ * @param {string} queryIdOrSlug
134
134
  * @param {Aggregate.RequestOptions} requestOptions - Request-specific configuration.
135
135
  *
136
136
  * @throws {@link Vital.UnprocessableEntityError}
137
137
  *
138
138
  * @example
139
- * await client.aggregate.getResultTableForContinuousQuery("user_id", "query_id")
139
+ * await client.aggregate.getResultTableForContinuousQuery("user_id", "query_id_or_slug")
140
140
  */
141
- getResultTableForContinuousQuery(userId, queryId, requestOptions) {
141
+ getResultTableForContinuousQuery(userId, queryIdOrSlug, requestOptions) {
142
142
  var _a;
143
143
  return __awaiter(this, void 0, void 0, function* () {
144
144
  const _response = yield core.fetcher({
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(queryId)}/result_table`),
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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
147
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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,
@@ -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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.187", "User-Agent": "@tryvital/vital-node/3.1.187", "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",
@@ -63,7 +63,7 @@ class LabTests {
63
63
  get(request = {}, requestOptions) {
64
64
  var _a;
65
65
  return __awaiter(this, void 0, void 0, function* () {
66
- const { generationMethod, labSlug, collectionMethod, status } = request;
66
+ const { generationMethod, labSlug, collectionMethod, status, markerIds, providerIds, name, orderKey, orderDirection, } = request;
67
67
  const _queryParams = {};
68
68
  if (generationMethod != null) {
69
69
  _queryParams["generation_method"] = generationMethod;
@@ -77,10 +77,35 @@ class LabTests {
77
77
  if (status != null) {
78
78
  _queryParams["status"] = status;
79
79
  }
80
+ if (markerIds != null) {
81
+ if (Array.isArray(markerIds)) {
82
+ _queryParams["marker_ids"] = markerIds.map((item) => item.toString());
83
+ }
84
+ else {
85
+ _queryParams["marker_ids"] = markerIds.toString();
86
+ }
87
+ }
88
+ if (providerIds != null) {
89
+ if (Array.isArray(providerIds)) {
90
+ _queryParams["provider_ids"] = providerIds.map((item) => item);
91
+ }
92
+ else {
93
+ _queryParams["provider_ids"] = providerIds;
94
+ }
95
+ }
96
+ if (name != null) {
97
+ _queryParams["name"] = name;
98
+ }
99
+ if (orderKey != null) {
100
+ _queryParams["order_key"] = orderKey;
101
+ }
102
+ if (orderDirection != null) {
103
+ _queryParams["order_direction"] = orderDirection;
104
+ }
80
105
  const _response = yield core.fetcher({
81
106
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
82
107
  method: "GET",
83
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
108
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
109
  contentType: "application/json",
85
110
  queryParameters: _queryParams,
86
111
  requestType: "json",
@@ -146,7 +171,7 @@ class LabTests {
146
171
  const _response = yield core.fetcher({
147
172
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
148
173
  method: "POST",
149
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
174
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
150
175
  contentType: "application/json",
151
176
  requestType: "json",
152
177
  body: serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -210,7 +235,7 @@ class LabTests {
210
235
  const _response = yield core.fetcher({
211
236
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}`),
212
237
  method: "GET",
213
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
238
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
214
239
  contentType: "application/json",
215
240
  requestType: "json",
216
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -272,7 +297,7 @@ class LabTests {
272
297
  const _response = yield core.fetcher({
273
298
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}`),
274
299
  method: "PATCH",
275
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
300
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
276
301
  contentType: "application/json",
277
302
  requestType: "json",
278
303
  body: serializers.UpdateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -358,7 +383,7 @@ class LabTests {
358
383
  const _response = yield core.fetcher({
359
384
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/markers"),
360
385
  method: "GET",
361
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
386
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
362
387
  contentType: "application/json",
363
388
  queryParameters: _queryParams,
364
389
  requestType: "json",
@@ -430,7 +455,7 @@ class LabTests {
430
455
  const _response = yield core.fetcher({
431
456
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/list_order_set_markers"),
432
457
  method: "POST",
433
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
458
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
434
459
  contentType: "application/json",
435
460
  queryParameters: _queryParams,
436
461
  requestType: "json",
@@ -502,7 +527,7 @@ class LabTests {
502
527
  const _response = yield core.fetcher({
503
528
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}/markers`),
504
529
  method: "GET",
505
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
530
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
506
531
  contentType: "application/json",
507
532
  queryParameters: _queryParams,
508
533
  requestType: "json",
@@ -567,7 +592,7 @@ class LabTests {
567
592
  const _response = yield core.fetcher({
568
593
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labId)}/markers/${encodeURIComponent(providerId)}`),
569
594
  method: "GET",
570
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
595
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
571
596
  contentType: "application/json",
572
597
  requestType: "json",
573
598
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -627,7 +652,7 @@ class LabTests {
627
652
  const _response = yield core.fetcher({
628
653
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/labs"),
629
654
  method: "GET",
630
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
655
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
631
656
  contentType: "application/json",
632
657
  requestType: "json",
633
658
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -693,7 +718,7 @@ class LabTests {
693
718
  const _response = yield core.fetcher({
694
719
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/availability"),
695
720
  method: "POST",
696
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
721
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
697
722
  contentType: "application/json",
698
723
  queryParameters: _queryParams,
699
724
  requestType: "json",
@@ -761,7 +786,7 @@ class LabTests {
761
786
  const _response = yield core.fetcher({
762
787
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/book`),
763
788
  method: "POST",
764
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
789
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
765
790
  contentType: "application/json",
766
791
  requestType: "json",
767
792
  body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -834,7 +859,7 @@ class LabTests {
834
859
  const _response = yield core.fetcher({
835
860
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/request`),
836
861
  method: "POST",
837
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
862
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
838
863
  contentType: "application/json",
839
864
  requestType: "json",
840
865
  body: serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -901,7 +926,7 @@ class LabTests {
901
926
  const _response = yield core.fetcher({
902
927
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/reschedule`),
903
928
  method: "PATCH",
904
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
929
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
905
930
  contentType: "application/json",
906
931
  requestType: "json",
907
932
  body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -968,7 +993,7 @@ class LabTests {
968
993
  const _response = yield core.fetcher({
969
994
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/cancel`),
970
995
  method: "PATCH",
971
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
996
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
972
997
  contentType: "application/json",
973
998
  requestType: "json",
974
999
  body: serializers.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1029,7 +1054,7 @@ class LabTests {
1029
1054
  const _response = yield core.fetcher({
1030
1055
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/cancellation-reasons"),
1031
1056
  method: "GET",
1032
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1057
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1033
1058
  contentType: "application/json",
1034
1059
  requestType: "json",
1035
1060
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1082,7 +1107,7 @@ class LabTests {
1082
1107
  const _response = yield core.fetcher({
1083
1108
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment`),
1084
1109
  method: "GET",
1085
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1110
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1086
1111
  contentType: "application/json",
1087
1112
  requestType: "json",
1088
1113
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1161,7 +1186,7 @@ class LabTests {
1161
1186
  const _response = yield core.fetcher({
1162
1187
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/area/info"),
1163
1188
  method: "GET",
1164
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1189
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1165
1190
  contentType: "application/json",
1166
1191
  queryParameters: _queryParams,
1167
1192
  requestType: "json",
@@ -1233,7 +1258,7 @@ class LabTests {
1233
1258
  const _response = yield core.fetcher({
1234
1259
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/info"),
1235
1260
  method: "GET",
1236
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1261
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1237
1262
  contentType: "application/json",
1238
1263
  queryParameters: _queryParams,
1239
1264
  requestType: "json",
@@ -1301,7 +1326,7 @@ class LabTests {
1301
1326
  const _response = yield core.fetcher({
1302
1327
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/info`),
1303
1328
  method: "GET",
1304
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1329
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1305
1330
  contentType: "application/json",
1306
1331
  queryParameters: _queryParams,
1307
1332
  requestType: "json",
@@ -1358,7 +1383,7 @@ class LabTests {
1358
1383
  const _response = yield core.fetcher({
1359
1384
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result/pdf`),
1360
1385
  method: "GET",
1361
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1386
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1362
1387
  contentType: "application/json",
1363
1388
  requestType: "json",
1364
1389
  responseType: "streaming",
@@ -1418,7 +1443,7 @@ class LabTests {
1418
1443
  const _response = yield core.fetcher({
1419
1444
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result/metadata`),
1420
1445
  method: "GET",
1421
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1446
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1422
1447
  contentType: "application/json",
1423
1448
  requestType: "json",
1424
1449
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1481,7 +1506,7 @@ class LabTests {
1481
1506
  const _response = yield core.fetcher({
1482
1507
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result`),
1483
1508
  method: "GET",
1484
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1509
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1485
1510
  contentType: "application/json",
1486
1511
  requestType: "json",
1487
1512
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1543,7 +1568,7 @@ class LabTests {
1543
1568
  const _response = yield core.fetcher({
1544
1569
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/labels/pdf`),
1545
1570
  method: "GET",
1546
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1571
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1547
1572
  contentType: "application/json",
1548
1573
  queryParameters: _queryParams,
1549
1574
  requestType: "json",
@@ -1623,7 +1648,7 @@ class LabTests {
1623
1648
  const _response = yield core.fetcher({
1624
1649
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/appointment/availability"),
1625
1650
  method: "POST",
1626
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1651
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1627
1652
  contentType: "application/json",
1628
1653
  queryParameters: _queryParams,
1629
1654
  requestType: "json",
@@ -1688,7 +1713,7 @@ class LabTests {
1688
1713
  const _response = yield core.fetcher({
1689
1714
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment/book`),
1690
1715
  method: "POST",
1691
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1716
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1692
1717
  contentType: "application/json",
1693
1718
  requestType: "json",
1694
1719
  body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1753,7 +1778,7 @@ class LabTests {
1753
1778
  const _response = yield core.fetcher({
1754
1779
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment/reschedule`),
1755
1780
  method: "PATCH",
1756
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1781
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1757
1782
  contentType: "application/json",
1758
1783
  requestType: "json",
1759
1784
  body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1818,7 +1843,7 @@ class LabTests {
1818
1843
  const _response = yield core.fetcher({
1819
1844
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment/cancel`),
1820
1845
  method: "PATCH",
1821
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1846
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1822
1847
  contentType: "application/json",
1823
1848
  requestType: "json",
1824
1849
  body: serializers.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.jsonOrThrow(request, {
@@ -1879,7 +1904,7 @@ class LabTests {
1879
1904
  const _response = yield core.fetcher({
1880
1905
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/appointment/cancellation-reasons"),
1881
1906
  method: "GET",
1882
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1907
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1883
1908
  contentType: "application/json",
1884
1909
  requestType: "json",
1885
1910
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1932,7 +1957,7 @@ class LabTests {
1932
1957
  const _response = yield core.fetcher({
1933
1958
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment`),
1934
1959
  method: "GET",
1935
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1960
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1936
1961
  contentType: "application/json",
1937
1962
  requestType: "json",
1938
1963
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1988,7 +2013,7 @@ class LabTests {
1988
2013
  const _response = yield core.fetcher({
1989
2014
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/requisition/pdf`),
1990
2015
  method: "GET",
1991
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2016
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1992
2017
  contentType: "application/json",
1993
2018
  requestType: "json",
1994
2019
  responseType: "streaming",
@@ -2047,7 +2072,7 @@ class LabTests {
2047
2072
  const _response = yield core.fetcher({
2048
2073
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}`),
2049
2074
  method: "GET",
2050
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2075
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2051
2076
  contentType: "application/json",
2052
2077
  requestType: "json",
2053
2078
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2127,7 +2152,7 @@ class LabTests {
2127
2152
  const _response = yield core.fetcher({
2128
2153
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
2129
2154
  method: "POST",
2130
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2155
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2131
2156
  contentType: "application/json",
2132
2157
  requestType: "json",
2133
2158
  body: serializers.CreateOrderRequestCompatible.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -2191,7 +2216,7 @@ class LabTests {
2191
2216
  const _response = yield core.fetcher({
2192
2217
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/cancel`),
2193
2218
  method: "POST",
2194
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2219
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2195
2220
  contentType: "application/json",
2196
2221
  requestType: "json",
2197
2222
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2263,7 +2288,7 @@ class LabTests {
2263
2288
  const _response = yield core.fetcher({
2264
2289
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/test`),
2265
2290
  method: "POST",
2266
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2291
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2267
2292
  contentType: "application/json",
2268
2293
  queryParameters: _queryParams,
2269
2294
  requestType: "json",
@@ -2368,7 +2393,7 @@ class LabTests {
2368
2393
  const _response = yield core.fetcher({
2369
2394
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
2370
2395
  method: "GET",
2371
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2396
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.187", "User-Agent": "@tryvital/vital-node/3.1.187", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2372
2397
  contentType: "application/json",
2373
2398
  queryParameters: _queryParams,
2374
2399
  requestType: "json",
@@ -23,4 +23,18 @@ export interface LabTestsGetRequest {
23
23
  * Filter by the status of these lab tests.
24
24
  */
25
25
  status?: Vital.LabTestStatus;
26
+ /**
27
+ * Filter to only include lab tests containing these marker IDs.
28
+ */
29
+ markerIds?: number | number[];
30
+ /**
31
+ * Filter to only include lab tests containing these provider IDs.
32
+ */
33
+ providerIds?: string | string[];
34
+ /**
35
+ * Filter by the name of the lab test (a case-insensitive substring search).
36
+ */
37
+ name?: string;
38
+ orderKey?: Vital.LabTestsGetRequestOrderKey;
39
+ orderDirection?: Vital.LabTestsGetRequestOrderDirection;
26
40
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type LabTestsGetRequestOrderDirection = "asc" | "desc";
5
+ export declare const LabTestsGetRequestOrderDirection: {
6
+ readonly Asc: "asc";
7
+ readonly Desc: "desc";
8
+ };