phenoml 6.3.0 → 6.4.0
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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/agent/client/Client.d.ts +8 -1
- package/dist/cjs/api/resources/agent/client/Client.js +82 -1
- package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +2 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentStreamChatRequest.d.ts +31 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentStreamChatRequest.js +3 -0
- package/dist/cjs/api/resources/agent/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/types/AgentChatStreamEvent.d.ts +36 -0
- package/dist/cjs/api/resources/agent/types/AgentChatStreamEvent.js +16 -0
- package/dist/cjs/api/resources/agent/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/types/index.js +1 -0
- package/dist/cjs/api/resources/construe/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/construe/client/Client.js +6 -6
- package/dist/cjs/api/resources/fhir/client/Client.d.ts +49 -49
- package/dist/cjs/api/resources/fhir/client/Client.js +69 -69
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +25 -25
- package/dist/cjs/api/resources/fhirProvider/types/Provider.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/types/Provider.js +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +10 -10
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +20 -20
- package/dist/cjs/core/fetcher/Fetcher.js +12 -6
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +1 -0
- package/dist/cjs/core/stream/Stream.d.ts +47 -0
- package/dist/cjs/core/stream/Stream.js +175 -0
- package/dist/cjs/core/stream/index.d.ts +1 -0
- package/dist/cjs/core/stream/index.js +5 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +8 -1
- package/dist/esm/api/resources/agent/client/Client.mjs +82 -1
- package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +2 -0
- package/dist/esm/api/resources/agent/client/requests/AgentStreamChatRequest.d.mts +31 -0
- package/dist/esm/api/resources/agent/client/requests/AgentStreamChatRequest.mjs +2 -0
- package/dist/esm/api/resources/agent/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/types/AgentChatStreamEvent.d.mts +36 -0
- package/dist/esm/api/resources/agent/types/AgentChatStreamEvent.mjs +13 -0
- package/dist/esm/api/resources/agent/types/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/types/index.mjs +1 -0
- package/dist/esm/api/resources/construe/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/construe/client/Client.mjs +6 -6
- package/dist/esm/api/resources/fhir/client/Client.d.mts +49 -49
- package/dist/esm/api/resources/fhir/client/Client.mjs +69 -69
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +25 -25
- package/dist/esm/api/resources/fhirProvider/types/Provider.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/types/Provider.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +10 -10
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +20 -20
- package/dist/esm/core/fetcher/Fetcher.mjs +12 -6
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/core/stream/Stream.d.mts +47 -0
- package/dist/esm/core/stream/Stream.mjs +170 -0
- package/dist/esm/core/stream/index.d.mts +1 -0
- package/dist/esm/core/stream/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +115 -42
|
@@ -59,14 +59,14 @@ class Fhir {
|
|
|
59
59
|
*
|
|
60
60
|
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
61
61
|
*
|
|
62
|
-
* @param {string}
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* @param {string}
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
62
|
+
* @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
|
|
63
|
+
* - A UUID representing the provider ID
|
|
64
|
+
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
65
|
+
* @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
66
|
+
* Examples:
|
|
67
|
+
* - "Patient" (for resource type operations)
|
|
68
|
+
* - "Patient/123" (for specific resource operations)
|
|
69
|
+
* - "Patient/123/_history" (for history operations)
|
|
70
70
|
* @param {phenoml.fhir.FhirSearchRequest} request
|
|
71
71
|
* @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
72
|
*
|
|
@@ -82,11 +82,11 @@ class Fhir {
|
|
|
82
82
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..."
|
|
83
83
|
* })
|
|
84
84
|
*/
|
|
85
|
-
search(
|
|
86
|
-
return core.HttpResponsePromise.fromPromise(this.__search(
|
|
85
|
+
search(fhir_provider_id, fhir_path, request = {}, requestOptions) {
|
|
86
|
+
return core.HttpResponsePromise.fromPromise(this.__search(fhir_provider_id, fhir_path, request, requestOptions));
|
|
87
87
|
}
|
|
88
|
-
__search(
|
|
89
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
88
|
+
__search(fhir_provider_id_1, fhir_path_1) {
|
|
89
|
+
return __awaiter(this, arguments, void 0, function* (fhir_provider_id, fhir_path, request = {}, requestOptions) {
|
|
90
90
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
91
91
|
const { query_parameters: queryParameters, "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider, } = request;
|
|
92
92
|
const _queryParams = {};
|
|
@@ -99,7 +99,7 @@ class Fhir {
|
|
|
99
99
|
"X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
|
|
100
100
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
101
101
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
102
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
102
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
|
|
103
103
|
method: "GET",
|
|
104
104
|
headers: _headers,
|
|
105
105
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -154,14 +154,14 @@ class Fhir {
|
|
|
154
154
|
*
|
|
155
155
|
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
156
156
|
*
|
|
157
|
-
* @param {string}
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* @param {string}
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
157
|
+
* @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
|
|
158
|
+
* - A UUID representing the provider ID
|
|
159
|
+
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
160
|
+
* @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
161
|
+
* Examples:
|
|
162
|
+
* - "Patient" (for resource type operations)
|
|
163
|
+
* - "Patient/123" (for specific resource operations)
|
|
164
|
+
* - "Patient/123/_history" (for history operations)
|
|
165
165
|
* @param {phenoml.fhir.FhirCreateRequest} request
|
|
166
166
|
* @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
|
|
167
167
|
*
|
|
@@ -189,10 +189,10 @@ class Fhir {
|
|
|
189
189
|
* }
|
|
190
190
|
* })
|
|
191
191
|
*/
|
|
192
|
-
create(
|
|
193
|
-
return core.HttpResponsePromise.fromPromise(this.__create(
|
|
192
|
+
create(fhir_provider_id, fhir_path, request, requestOptions) {
|
|
193
|
+
return core.HttpResponsePromise.fromPromise(this.__create(fhir_provider_id, fhir_path, request, requestOptions));
|
|
194
194
|
}
|
|
195
|
-
__create(
|
|
195
|
+
__create(fhir_provider_id, fhir_path, request, requestOptions) {
|
|
196
196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
197
197
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
198
198
|
const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider, body: _body, } = request;
|
|
@@ -202,7 +202,7 @@ class Fhir {
|
|
|
202
202
|
"X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
|
|
203
203
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
204
204
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
205
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
205
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
|
|
206
206
|
method: "POST",
|
|
207
207
|
headers: _headers,
|
|
208
208
|
contentType: "application/fhir+json",
|
|
@@ -258,14 +258,14 @@ class Fhir {
|
|
|
258
258
|
*
|
|
259
259
|
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
260
260
|
*
|
|
261
|
-
* @param {string}
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
* @param {string}
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
*
|
|
261
|
+
* @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
|
|
262
|
+
* - A UUID representing the provider ID
|
|
263
|
+
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
264
|
+
* @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
265
|
+
* Examples:
|
|
266
|
+
* - "Patient" (for resource type operations)
|
|
267
|
+
* - "Patient/123" (for specific resource operations)
|
|
268
|
+
* - "Patient/123/_history" (for history operations)
|
|
269
269
|
* @param {phenoml.fhir.FhirUpsertRequest} request
|
|
270
270
|
* @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
|
|
271
271
|
*
|
|
@@ -295,10 +295,10 @@ class Fhir {
|
|
|
295
295
|
* }
|
|
296
296
|
* })
|
|
297
297
|
*/
|
|
298
|
-
upsert(
|
|
299
|
-
return core.HttpResponsePromise.fromPromise(this.__upsert(
|
|
298
|
+
upsert(fhir_provider_id, fhir_path, request, requestOptions) {
|
|
299
|
+
return core.HttpResponsePromise.fromPromise(this.__upsert(fhir_provider_id, fhir_path, request, requestOptions));
|
|
300
300
|
}
|
|
301
|
-
__upsert(
|
|
301
|
+
__upsert(fhir_provider_id, fhir_path, request, requestOptions) {
|
|
302
302
|
return __awaiter(this, void 0, void 0, function* () {
|
|
303
303
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
304
304
|
const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider, body: _body, } = request;
|
|
@@ -308,7 +308,7 @@ class Fhir {
|
|
|
308
308
|
"X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
|
|
309
309
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
310
310
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
311
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
311
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
|
|
312
312
|
method: "PUT",
|
|
313
313
|
headers: _headers,
|
|
314
314
|
contentType: "application/fhir+json",
|
|
@@ -364,14 +364,14 @@ class Fhir {
|
|
|
364
364
|
*
|
|
365
365
|
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
366
366
|
*
|
|
367
|
-
* @param {string}
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
* @param {string}
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
367
|
+
* @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
|
|
368
|
+
* - A UUID representing the provider ID
|
|
369
|
+
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
370
|
+
* @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
371
|
+
* Examples:
|
|
372
|
+
* - "Patient" (for resource type operations)
|
|
373
|
+
* - "Patient/123" (for specific resource operations)
|
|
374
|
+
* - "Patient/123/_history" (for history operations)
|
|
375
375
|
* @param {phenoml.fhir.FhirDeleteRequest} request
|
|
376
376
|
* @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
|
|
377
377
|
*
|
|
@@ -387,11 +387,11 @@ class Fhir {
|
|
|
387
387
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..."
|
|
388
388
|
* })
|
|
389
389
|
*/
|
|
390
|
-
delete(
|
|
391
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(
|
|
390
|
+
delete(fhir_provider_id, fhir_path, request = {}, requestOptions) {
|
|
391
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(fhir_provider_id, fhir_path, request, requestOptions));
|
|
392
392
|
}
|
|
393
|
-
__delete(
|
|
394
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
393
|
+
__delete(fhir_provider_id_1, fhir_path_1) {
|
|
394
|
+
return __awaiter(this, arguments, void 0, function* (fhir_provider_id, fhir_path, request = {}, requestOptions) {
|
|
395
395
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
396
396
|
const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider } = request;
|
|
397
397
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
@@ -400,7 +400,7 @@ class Fhir {
|
|
|
400
400
|
"X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
|
|
401
401
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
402
402
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
403
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
403
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
|
|
404
404
|
method: "DELETE",
|
|
405
405
|
headers: _headers,
|
|
406
406
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -460,14 +460,14 @@ class Fhir {
|
|
|
460
460
|
*
|
|
461
461
|
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
462
462
|
*
|
|
463
|
-
* @param {string}
|
|
464
|
-
*
|
|
465
|
-
*
|
|
466
|
-
* @param {string}
|
|
467
|
-
*
|
|
468
|
-
*
|
|
469
|
-
*
|
|
470
|
-
*
|
|
463
|
+
* @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
|
|
464
|
+
* - A UUID representing the provider ID
|
|
465
|
+
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
466
|
+
* @param {string} fhir_path - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
467
|
+
* Examples:
|
|
468
|
+
* - "Patient" (for resource type operations)
|
|
469
|
+
* - "Patient/123" (for specific resource operations)
|
|
470
|
+
* - "Patient/123/_history" (for history operations)
|
|
471
471
|
* @param {phenoml.fhir.FhirPatchRequest} request
|
|
472
472
|
* @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
|
|
473
473
|
*
|
|
@@ -539,10 +539,10 @@ class Fhir {
|
|
|
539
539
|
* }]
|
|
540
540
|
* })
|
|
541
541
|
*/
|
|
542
|
-
patch(
|
|
543
|
-
return core.HttpResponsePromise.fromPromise(this.__patch(
|
|
542
|
+
patch(fhir_provider_id, fhir_path, request, requestOptions) {
|
|
543
|
+
return core.HttpResponsePromise.fromPromise(this.__patch(fhir_provider_id, fhir_path, request, requestOptions));
|
|
544
544
|
}
|
|
545
|
-
__patch(
|
|
545
|
+
__patch(fhir_provider_id, fhir_path, request, requestOptions) {
|
|
546
546
|
return __awaiter(this, void 0, void 0, function* () {
|
|
547
547
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
548
548
|
const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider, body: _body, } = request;
|
|
@@ -552,7 +552,7 @@ class Fhir {
|
|
|
552
552
|
"X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
|
|
553
553
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
554
554
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
555
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
555
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
|
|
556
556
|
method: "PATCH",
|
|
557
557
|
headers: _headers,
|
|
558
558
|
contentType: "application/json-patch+json",
|
|
@@ -612,9 +612,9 @@ class Fhir {
|
|
|
612
612
|
*
|
|
613
613
|
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
614
614
|
*
|
|
615
|
-
* @param {string}
|
|
616
|
-
*
|
|
617
|
-
*
|
|
615
|
+
* @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
|
|
616
|
+
* - A UUID representing the provider ID
|
|
617
|
+
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
618
618
|
* @param {phenoml.fhir.FhirExecuteBundleRequest} request
|
|
619
619
|
* @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
|
|
620
620
|
*
|
|
@@ -661,10 +661,10 @@ class Fhir {
|
|
|
661
661
|
* }
|
|
662
662
|
* })
|
|
663
663
|
*/
|
|
664
|
-
executeBundle(
|
|
665
|
-
return core.HttpResponsePromise.fromPromise(this.__executeBundle(
|
|
664
|
+
executeBundle(fhir_provider_id, request, requestOptions) {
|
|
665
|
+
return core.HttpResponsePromise.fromPromise(this.__executeBundle(fhir_provider_id, request, requestOptions));
|
|
666
666
|
}
|
|
667
|
-
__executeBundle(
|
|
667
|
+
__executeBundle(fhir_provider_id, request, requestOptions) {
|
|
668
668
|
return __awaiter(this, void 0, void 0, function* () {
|
|
669
669
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
670
670
|
const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider, body: _body, } = request;
|
|
@@ -674,7 +674,7 @@ class Fhir {
|
|
|
674
674
|
"X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
|
|
675
675
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
676
676
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
677
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
677
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir`),
|
|
678
678
|
method: "POST",
|
|
679
679
|
headers: _headers,
|
|
680
680
|
contentType: "application/fhir+json",
|
|
@@ -55,7 +55,7 @@ export declare class FhirProvider {
|
|
|
55
55
|
* Sandbox providers return FhirProviderSandboxInfo.
|
|
56
56
|
* On shared instances, only sandbox providers can be accessed.
|
|
57
57
|
*
|
|
58
|
-
* @param {string}
|
|
58
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider to retrieve
|
|
59
59
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
60
|
*
|
|
61
61
|
* @throws {@link phenoml.fhirProvider.UnauthorizedError}
|
|
@@ -65,14 +65,14 @@ export declare class FhirProvider {
|
|
|
65
65
|
* @example
|
|
66
66
|
* await client.fhirProvider.get("fhir_provider_id")
|
|
67
67
|
*/
|
|
68
|
-
get(
|
|
68
|
+
get(fhir_provider_id: string, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderResponse>;
|
|
69
69
|
private __get;
|
|
70
70
|
/**
|
|
71
71
|
* Soft deletes a FHIR provider by setting is_active to false.
|
|
72
72
|
*
|
|
73
73
|
* Note: Sandbox providers cannot be deleted.
|
|
74
74
|
*
|
|
75
|
-
* @param {string}
|
|
75
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider to delete
|
|
76
76
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
77
|
*
|
|
78
78
|
* @throws {@link phenoml.fhirProvider.UnauthorizedError}
|
|
@@ -83,7 +83,7 @@ export declare class FhirProvider {
|
|
|
83
83
|
* @example
|
|
84
84
|
* await client.fhirProvider.delete("fhir_provider_id")
|
|
85
85
|
*/
|
|
86
|
-
delete(
|
|
86
|
+
delete(fhir_provider_id: string, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderDeleteResponse>;
|
|
87
87
|
private __delete;
|
|
88
88
|
/**
|
|
89
89
|
* Adds a new authentication configuration to an existing FHIR provider.
|
|
@@ -91,7 +91,7 @@ export declare class FhirProvider {
|
|
|
91
91
|
*
|
|
92
92
|
* Note: Sandbox providers cannot be modified.
|
|
93
93
|
*
|
|
94
|
-
* @param {string}
|
|
94
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider to add auth config to
|
|
95
95
|
* @param {phenoml.fhirProvider.FhirProviderAddAuthConfigRequest} request
|
|
96
96
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
97
|
*
|
|
@@ -106,7 +106,7 @@ export declare class FhirProvider {
|
|
|
106
106
|
* auth_method: "client_secret"
|
|
107
107
|
* })
|
|
108
108
|
*/
|
|
109
|
-
addAuthConfig(
|
|
109
|
+
addAuthConfig(fhir_provider_id: string, request: phenoml.fhirProvider.FhirProviderAddAuthConfigRequest, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderResponse>;
|
|
110
110
|
private __addAuthConfig;
|
|
111
111
|
/**
|
|
112
112
|
* Sets which authentication configuration should be active for a FHIR provider.
|
|
@@ -117,7 +117,7 @@ export declare class FhirProvider {
|
|
|
117
117
|
*
|
|
118
118
|
* Note: Sandbox providers cannot be modified.
|
|
119
119
|
*
|
|
120
|
-
* @param {string}
|
|
120
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider
|
|
121
121
|
* @param {phenoml.fhirProvider.FhirProviderSetActiveAuthConfigRequest} request
|
|
122
122
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
123
|
*
|
|
@@ -132,7 +132,7 @@ export declare class FhirProvider {
|
|
|
132
132
|
* auth_config_id: "auth-config-123"
|
|
133
133
|
* })
|
|
134
134
|
*/
|
|
135
|
-
setActiveAuthConfig(
|
|
135
|
+
setActiveAuthConfig(fhir_provider_id: string, request: phenoml.fhirProvider.FhirProviderSetActiveAuthConfigRequest, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderResponse>;
|
|
136
136
|
private __setActiveAuthConfig;
|
|
137
137
|
/**
|
|
138
138
|
* Removes an authentication configuration from a FHIR provider.
|
|
@@ -140,7 +140,7 @@ export declare class FhirProvider {
|
|
|
140
140
|
*
|
|
141
141
|
* Note: Sandbox providers cannot be modified.
|
|
142
142
|
*
|
|
143
|
-
* @param {string}
|
|
143
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider
|
|
144
144
|
* @param {phenoml.fhirProvider.FhirProviderRemoveAuthConfigRequest} request
|
|
145
145
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
146
146
|
*
|
|
@@ -155,7 +155,7 @@ export declare class FhirProvider {
|
|
|
155
155
|
* auth_config_id: "auth-config-123"
|
|
156
156
|
* })
|
|
157
157
|
*/
|
|
158
|
-
removeAuthConfig(
|
|
158
|
+
removeAuthConfig(fhir_provider_id: string, request: phenoml.fhirProvider.FhirProviderRemoveAuthConfigRequest, requestOptions?: FhirProvider.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderRemoveAuthConfigResponse>;
|
|
159
159
|
private __removeAuthConfig;
|
|
160
160
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
161
161
|
}
|
|
@@ -211,7 +211,7 @@ class FhirProvider {
|
|
|
211
211
|
* Sandbox providers return FhirProviderSandboxInfo.
|
|
212
212
|
* On shared instances, only sandbox providers can be accessed.
|
|
213
213
|
*
|
|
214
|
-
* @param {string}
|
|
214
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider to retrieve
|
|
215
215
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
216
216
|
*
|
|
217
217
|
* @throws {@link phenoml.fhirProvider.UnauthorizedError}
|
|
@@ -221,15 +221,15 @@ class FhirProvider {
|
|
|
221
221
|
* @example
|
|
222
222
|
* await client.fhirProvider.get("fhir_provider_id")
|
|
223
223
|
*/
|
|
224
|
-
get(
|
|
225
|
-
return core.HttpResponsePromise.fromPromise(this.__get(
|
|
224
|
+
get(fhir_provider_id, requestOptions) {
|
|
225
|
+
return core.HttpResponsePromise.fromPromise(this.__get(fhir_provider_id, requestOptions));
|
|
226
226
|
}
|
|
227
|
-
__get(
|
|
227
|
+
__get(fhir_provider_id, requestOptions) {
|
|
228
228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
229
229
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
230
230
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
231
231
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
232
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
232
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}`),
|
|
233
233
|
method: "GET",
|
|
234
234
|
headers: _headers,
|
|
235
235
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -283,7 +283,7 @@ class FhirProvider {
|
|
|
283
283
|
*
|
|
284
284
|
* Note: Sandbox providers cannot be deleted.
|
|
285
285
|
*
|
|
286
|
-
* @param {string}
|
|
286
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider to delete
|
|
287
287
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
288
288
|
*
|
|
289
289
|
* @throws {@link phenoml.fhirProvider.UnauthorizedError}
|
|
@@ -294,15 +294,15 @@ class FhirProvider {
|
|
|
294
294
|
* @example
|
|
295
295
|
* await client.fhirProvider.delete("fhir_provider_id")
|
|
296
296
|
*/
|
|
297
|
-
delete(
|
|
298
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(
|
|
297
|
+
delete(fhir_provider_id, requestOptions) {
|
|
298
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(fhir_provider_id, requestOptions));
|
|
299
299
|
}
|
|
300
|
-
__delete(
|
|
300
|
+
__delete(fhir_provider_id, requestOptions) {
|
|
301
301
|
return __awaiter(this, void 0, void 0, function* () {
|
|
302
302
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
303
303
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
304
304
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
305
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
305
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}`),
|
|
306
306
|
method: "DELETE",
|
|
307
307
|
headers: _headers,
|
|
308
308
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -359,7 +359,7 @@ class FhirProvider {
|
|
|
359
359
|
*
|
|
360
360
|
* Note: Sandbox providers cannot be modified.
|
|
361
361
|
*
|
|
362
|
-
* @param {string}
|
|
362
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider to add auth config to
|
|
363
363
|
* @param {phenoml.fhirProvider.FhirProviderAddAuthConfigRequest} request
|
|
364
364
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
365
365
|
*
|
|
@@ -374,15 +374,15 @@ class FhirProvider {
|
|
|
374
374
|
* auth_method: "client_secret"
|
|
375
375
|
* })
|
|
376
376
|
*/
|
|
377
|
-
addAuthConfig(
|
|
378
|
-
return core.HttpResponsePromise.fromPromise(this.__addAuthConfig(
|
|
377
|
+
addAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
378
|
+
return core.HttpResponsePromise.fromPromise(this.__addAuthConfig(fhir_provider_id, request, requestOptions));
|
|
379
379
|
}
|
|
380
|
-
__addAuthConfig(
|
|
380
|
+
__addAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
381
381
|
return __awaiter(this, void 0, void 0, function* () {
|
|
382
382
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
383
383
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
384
384
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
385
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
385
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/add-auth-config`),
|
|
386
386
|
method: "PATCH",
|
|
387
387
|
headers: _headers,
|
|
388
388
|
contentType: "application/json",
|
|
@@ -447,7 +447,7 @@ class FhirProvider {
|
|
|
447
447
|
*
|
|
448
448
|
* Note: Sandbox providers cannot be modified.
|
|
449
449
|
*
|
|
450
|
-
* @param {string}
|
|
450
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider
|
|
451
451
|
* @param {phenoml.fhirProvider.FhirProviderSetActiveAuthConfigRequest} request
|
|
452
452
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
453
453
|
*
|
|
@@ -462,15 +462,15 @@ class FhirProvider {
|
|
|
462
462
|
* auth_config_id: "auth-config-123"
|
|
463
463
|
* })
|
|
464
464
|
*/
|
|
465
|
-
setActiveAuthConfig(
|
|
466
|
-
return core.HttpResponsePromise.fromPromise(this.__setActiveAuthConfig(
|
|
465
|
+
setActiveAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
466
|
+
return core.HttpResponsePromise.fromPromise(this.__setActiveAuthConfig(fhir_provider_id, request, requestOptions));
|
|
467
467
|
}
|
|
468
|
-
__setActiveAuthConfig(
|
|
468
|
+
__setActiveAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
469
469
|
return __awaiter(this, void 0, void 0, function* () {
|
|
470
470
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
471
471
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
472
472
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
473
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
473
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/set-active-auth-config`),
|
|
474
474
|
method: "PATCH",
|
|
475
475
|
headers: _headers,
|
|
476
476
|
contentType: "application/json",
|
|
@@ -532,7 +532,7 @@ class FhirProvider {
|
|
|
532
532
|
*
|
|
533
533
|
* Note: Sandbox providers cannot be modified.
|
|
534
534
|
*
|
|
535
|
-
* @param {string}
|
|
535
|
+
* @param {string} fhir_provider_id - ID of the FHIR provider
|
|
536
536
|
* @param {phenoml.fhirProvider.FhirProviderRemoveAuthConfigRequest} request
|
|
537
537
|
* @param {FhirProvider.RequestOptions} requestOptions - Request-specific configuration.
|
|
538
538
|
*
|
|
@@ -547,15 +547,15 @@ class FhirProvider {
|
|
|
547
547
|
* auth_config_id: "auth-config-123"
|
|
548
548
|
* })
|
|
549
549
|
*/
|
|
550
|
-
removeAuthConfig(
|
|
551
|
-
return core.HttpResponsePromise.fromPromise(this.__removeAuthConfig(
|
|
550
|
+
removeAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
551
|
+
return core.HttpResponsePromise.fromPromise(this.__removeAuthConfig(fhir_provider_id, request, requestOptions));
|
|
552
552
|
}
|
|
553
|
-
__removeAuthConfig(
|
|
553
|
+
__removeAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
554
554
|
return __awaiter(this, void 0, void 0, function* () {
|
|
555
555
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
556
556
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
557
557
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
558
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(
|
|
558
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/remove-auth-config`),
|
|
559
559
|
method: "PATCH",
|
|
560
560
|
headers: _headers,
|
|
561
561
|
contentType: "application/json",
|
|
@@ -13,6 +13,7 @@ export declare const Provider: {
|
|
|
13
13
|
readonly GoogleHealthcare: "google_healthcare";
|
|
14
14
|
readonly Hapi: "hapi";
|
|
15
15
|
readonly Medplum: "medplum";
|
|
16
|
+
readonly Phenostore: "phenostore";
|
|
16
17
|
readonly Sandbox: "sandbox";
|
|
17
18
|
};
|
|
18
19
|
export type Provider = (typeof Provider)[keyof typeof Provider];
|
|
@@ -49,7 +49,7 @@ export declare class McpServer {
|
|
|
49
49
|
/**
|
|
50
50
|
* Gets a MCP server by ID
|
|
51
51
|
*
|
|
52
|
-
* @param {string}
|
|
52
|
+
* @param {string} mcp_server_id - ID of the MCP server to retrieve
|
|
53
53
|
* @param {McpServer.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -59,12 +59,12 @@ export declare class McpServer {
|
|
|
59
59
|
* @example
|
|
60
60
|
* await client.tools.mcpServer.get("mcp_server_id")
|
|
61
61
|
*/
|
|
62
|
-
get(
|
|
62
|
+
get(mcp_server_id: string, requestOptions?: McpServer.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
|
|
63
63
|
private __get;
|
|
64
64
|
/**
|
|
65
65
|
* Deletes a MCP server by ID
|
|
66
66
|
*
|
|
67
|
-
* @param {string}
|
|
67
|
+
* @param {string} mcp_server_id - ID of the MCP server to delete
|
|
68
68
|
* @param {McpServer.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
69
|
*
|
|
70
70
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -74,7 +74,7 @@ export declare class McpServer {
|
|
|
74
74
|
* @example
|
|
75
75
|
* await client.tools.mcpServer.delete("mcp_server_id")
|
|
76
76
|
*/
|
|
77
|
-
delete(
|
|
77
|
+
delete(mcp_server_id: string, requestOptions?: McpServer.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
|
|
78
78
|
private __delete;
|
|
79
79
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
80
80
|
}
|
|
@@ -203,7 +203,7 @@ class McpServer {
|
|
|
203
203
|
/**
|
|
204
204
|
* Gets a MCP server by ID
|
|
205
205
|
*
|
|
206
|
-
* @param {string}
|
|
206
|
+
* @param {string} mcp_server_id - ID of the MCP server to retrieve
|
|
207
207
|
* @param {McpServer.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
208
|
*
|
|
209
209
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -213,15 +213,15 @@ class McpServer {
|
|
|
213
213
|
* @example
|
|
214
214
|
* await client.tools.mcpServer.get("mcp_server_id")
|
|
215
215
|
*/
|
|
216
|
-
get(
|
|
217
|
-
return core.HttpResponsePromise.fromPromise(this.__get(
|
|
216
|
+
get(mcp_server_id, requestOptions) {
|
|
217
|
+
return core.HttpResponsePromise.fromPromise(this.__get(mcp_server_id, requestOptions));
|
|
218
218
|
}
|
|
219
|
-
__get(
|
|
219
|
+
__get(mcp_server_id, requestOptions) {
|
|
220
220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
221
221
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
222
222
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
223
223
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
224
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(
|
|
224
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(mcp_server_id)}`),
|
|
225
225
|
method: "GET",
|
|
226
226
|
headers: _headers,
|
|
227
227
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -270,7 +270,7 @@ class McpServer {
|
|
|
270
270
|
/**
|
|
271
271
|
* Deletes a MCP server by ID
|
|
272
272
|
*
|
|
273
|
-
* @param {string}
|
|
273
|
+
* @param {string} mcp_server_id - ID of the MCP server to delete
|
|
274
274
|
* @param {McpServer.RequestOptions} requestOptions - Request-specific configuration.
|
|
275
275
|
*
|
|
276
276
|
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
@@ -280,15 +280,15 @@ class McpServer {
|
|
|
280
280
|
* @example
|
|
281
281
|
* await client.tools.mcpServer.delete("mcp_server_id")
|
|
282
282
|
*/
|
|
283
|
-
delete(
|
|
284
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(
|
|
283
|
+
delete(mcp_server_id, requestOptions) {
|
|
284
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(mcp_server_id, requestOptions));
|
|
285
285
|
}
|
|
286
|
-
__delete(
|
|
286
|
+
__delete(mcp_server_id, requestOptions) {
|
|
287
287
|
return __awaiter(this, void 0, void 0, function* () {
|
|
288
288
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
289
289
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
290
290
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
291
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(
|
|
291
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `tools/mcp-server/${core.url.encodePathParam(mcp_server_id)}`),
|
|
292
292
|
method: "DELETE",
|
|
293
293
|
headers: _headers,
|
|
294
294
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|