phenoml 11.4.0 → 12.0.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/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +12 -0
- package/dist/cjs/Client.js +67 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +0 -17
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +0 -60
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/resources/auth/index.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/resources/auth/index.js +0 -1
- package/dist/cjs/api/resources/authtoken/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/resources/index.js +0 -1
- package/dist/cjs/api/resources/authtoken/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/authtoken/types/index.js +0 -2
- package/dist/cjs/api/resources/fhir/client/Client.d.ts +2 -23
- package/dist/cjs/api/resources/fhir/client/Client.js +2 -23
- package/dist/cjs/api/resources/fhir/client/requests/FhirCreateRequest.d.ts +1 -11
- package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.d.ts +1 -12
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/index.d.ts +2 -0
- package/dist/cjs/core/fetcher/index.js +3 -1
- package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/cjs/core/fetcher/makePassthroughRequest.js +135 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +12 -0
- package/dist/esm/Client.mjs +34 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +0 -17
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +0 -60
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/resources/auth/index.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/resources/auth/index.mjs +0 -1
- package/dist/esm/api/resources/authtoken/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/resources/index.mjs +0 -1
- package/dist/esm/api/resources/authtoken/types/index.d.mts +0 -2
- package/dist/esm/api/resources/authtoken/types/index.mjs +0 -2
- package/dist/esm/api/resources/fhir/client/Client.d.mts +2 -23
- package/dist/esm/api/resources/fhir/client/Client.mjs +2 -23
- package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.d.mts +1 -11
- package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +1 -1
- package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.d.mts +1 -12
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/index.d.mts +2 -0
- package/dist/esm/core/fetcher/index.mjs +1 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
- package/dist/esm/core/fetcher/makePassthroughRequest.mjs +132 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +7 -7
- package/reference.md +2 -89
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.ts +0 -13
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.js +0 -3
- package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.ts +0 -4
- package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.js +0 -3
- package/dist/cjs/api/resources/authtoken/resources/auth/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/resources/auth/types/index.js +0 -17
- package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.d.ts +0 -5
- package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.js +0 -3
- package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.d.ts +0 -5
- package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.js +0 -3
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.mts +0 -13
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.mjs +0 -2
- package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.mts +0 -4
- package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.mjs +0 -2
- package/dist/esm/api/resources/authtoken/resources/auth/types/index.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/resources/auth/types/index.mjs +0 -1
- package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.d.mts +0 -5
- package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.mjs +0 -2
- package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.d.mts +0 -5
- package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.mjs +0 -2
package/reference.md
CHANGED
|
@@ -1081,72 +1081,6 @@ await client.agent.prompts.loadDefaults();
|
|
|
1081
1081
|
</details>
|
|
1082
1082
|
|
|
1083
1083
|
## Authtoken Auth
|
|
1084
|
-
<details><summary><code>client.authtoken.auth.<a href="/src/api/resources/authtoken/resources/auth/client/Client.ts">generateToken</a>({ ...params }) -> phenoml.AuthGenerateTokenResponse</code></summary>
|
|
1085
|
-
<dl>
|
|
1086
|
-
<dd>
|
|
1087
|
-
|
|
1088
|
-
#### 📝 Description
|
|
1089
|
-
|
|
1090
|
-
<dl>
|
|
1091
|
-
<dd>
|
|
1092
|
-
|
|
1093
|
-
<dl>
|
|
1094
|
-
<dd>
|
|
1095
|
-
|
|
1096
|
-
Obtain an access token using client credentials
|
|
1097
|
-
</dd>
|
|
1098
|
-
</dl>
|
|
1099
|
-
</dd>
|
|
1100
|
-
</dl>
|
|
1101
|
-
|
|
1102
|
-
#### 🔌 Usage
|
|
1103
|
-
|
|
1104
|
-
<dl>
|
|
1105
|
-
<dd>
|
|
1106
|
-
|
|
1107
|
-
<dl>
|
|
1108
|
-
<dd>
|
|
1109
|
-
|
|
1110
|
-
```typescript
|
|
1111
|
-
await client.authtoken.auth.generateToken({
|
|
1112
|
-
username: "username",
|
|
1113
|
-
password: "password"
|
|
1114
|
-
});
|
|
1115
|
-
|
|
1116
|
-
```
|
|
1117
|
-
</dd>
|
|
1118
|
-
</dl>
|
|
1119
|
-
</dd>
|
|
1120
|
-
</dl>
|
|
1121
|
-
|
|
1122
|
-
#### ⚙️ Parameters
|
|
1123
|
-
|
|
1124
|
-
<dl>
|
|
1125
|
-
<dd>
|
|
1126
|
-
|
|
1127
|
-
<dl>
|
|
1128
|
-
<dd>
|
|
1129
|
-
|
|
1130
|
-
**request:** `phenoml.authtoken.AuthGenerateTokenRequest`
|
|
1131
|
-
|
|
1132
|
-
</dd>
|
|
1133
|
-
</dl>
|
|
1134
|
-
|
|
1135
|
-
<dl>
|
|
1136
|
-
<dd>
|
|
1137
|
-
|
|
1138
|
-
**requestOptions:** `AuthClient.RequestOptions`
|
|
1139
|
-
|
|
1140
|
-
</dd>
|
|
1141
|
-
</dl>
|
|
1142
|
-
</dd>
|
|
1143
|
-
</dl>
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
</dd>
|
|
1147
|
-
</dl>
|
|
1148
|
-
</details>
|
|
1149
|
-
|
|
1150
1084
|
<details><summary><code>client.authtoken.auth.<a href="/src/api/resources/authtoken/resources/auth/client/Client.ts">getToken</a>({ ...params }) -> phenoml.TokenResponse</code></summary>
|
|
1151
1085
|
<dl>
|
|
1152
1086
|
<dd>
|
|
@@ -2255,17 +2189,7 @@ await client.fhir.create("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
|
2255
2189
|
"X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
2256
2190
|
"X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
2257
2191
|
body: {
|
|
2258
|
-
resourceType: "Patient"
|
|
2259
|
-
name: [
|
|
2260
|
-
{
|
|
2261
|
-
"family": "Doe",
|
|
2262
|
-
"given": [
|
|
2263
|
-
"Jane"
|
|
2264
|
-
]
|
|
2265
|
-
}
|
|
2266
|
-
],
|
|
2267
|
-
gender: "female",
|
|
2268
|
-
birthDate: "1990-01-01"
|
|
2192
|
+
resourceType: "Patient"
|
|
2269
2193
|
}
|
|
2270
2194
|
});
|
|
2271
2195
|
|
|
@@ -2363,18 +2287,7 @@ await client.fhir.upsert("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
|
2363
2287
|
"X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
2364
2288
|
body: {
|
|
2365
2289
|
resourceType: "Patient",
|
|
2366
|
-
id: "123"
|
|
2367
|
-
name: [
|
|
2368
|
-
{
|
|
2369
|
-
"family": "Doe",
|
|
2370
|
-
"given": [
|
|
2371
|
-
"John",
|
|
2372
|
-
"Updated"
|
|
2373
|
-
]
|
|
2374
|
-
}
|
|
2375
|
-
],
|
|
2376
|
-
gender: "male",
|
|
2377
|
-
birthDate: "1985-05-15"
|
|
2290
|
+
id: "123"
|
|
2378
2291
|
}
|
|
2379
2292
|
});
|
|
2380
2293
|
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @example
|
|
3
|
-
* {
|
|
4
|
-
* username: "username",
|
|
5
|
-
* password: "password"
|
|
6
|
-
* }
|
|
7
|
-
*/
|
|
8
|
-
export interface AuthGenerateTokenRequest {
|
|
9
|
-
/** The API credential client ID */
|
|
10
|
-
username: string;
|
|
11
|
-
/** The API credential client secret */
|
|
12
|
-
password: string;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./AuthGenerateTokenResponse.js";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./AuthGenerateTokenResponse.js"), exports);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @example
|
|
3
|
-
* {
|
|
4
|
-
* username: "username",
|
|
5
|
-
* password: "password"
|
|
6
|
-
* }
|
|
7
|
-
*/
|
|
8
|
-
export interface AuthGenerateTokenRequest {
|
|
9
|
-
/** The API credential client ID */
|
|
10
|
-
username: string;
|
|
11
|
-
/** The API credential client secret */
|
|
12
|
-
password: string;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./AuthGenerateTokenResponse.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./AuthGenerateTokenResponse.mjs";
|