@medplum/core 2.0.0 → 2.0.2
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.d.ts +18 -2
- package/dist/cjs/index.cjs +370 -703
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/types.d.ts +6 -0
- package/dist/esm/base-schema.json.mjs +219 -690
- package/dist/esm/base-schema.json.mjs.map +1 -1
- package/dist/esm/client.d.ts +18 -2
- package/dist/esm/client.mjs +115 -13
- package/dist/esm/client.mjs.map +1 -1
- package/dist/esm/index.min.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/node_modules/tslib/tslib.es6.mjs.map +1 -1
- package/dist/esm/types.d.ts +6 -0
- package/dist/esm/types.mjs +36 -1
- package/dist/esm/types.mjs.map +1 -1
- package/package.json +1 -1
- package/rollup.config.mjs +0 -103
package/dist/cjs/client.d.ts
CHANGED
|
@@ -71,6 +71,14 @@ export interface MedplumClientOptions {
|
|
|
71
71
|
* See: https://developer.mozilla.org/en-US/docs/Web/API/Request/cache
|
|
72
72
|
*/
|
|
73
73
|
cacheTime?: number;
|
|
74
|
+
/**
|
|
75
|
+
* The length of time in milliseconds to delay requests for auto batching.
|
|
76
|
+
*
|
|
77
|
+
* Auto batching attempts to group multiple requests together into a single batch request.
|
|
78
|
+
*
|
|
79
|
+
* Default value is 0, which disables auto batching.
|
|
80
|
+
*/
|
|
81
|
+
autoBatchTime?: number;
|
|
74
82
|
/**
|
|
75
83
|
* Fetch implementation.
|
|
76
84
|
*
|
|
@@ -216,7 +224,7 @@ export interface BotEvent<T = Resource | Hl7Message | string | Record<string, an
|
|
|
216
224
|
}
|
|
217
225
|
/**
|
|
218
226
|
* JSONPatch patch operation.
|
|
219
|
-
* Compatible with fast-json-patch Operation.
|
|
227
|
+
* Compatible with fast-json-patch and rfc6902 Operation.
|
|
220
228
|
*/
|
|
221
229
|
export interface PatchOperation {
|
|
222
230
|
readonly op: 'add' | 'remove' | 'replace' | 'copy' | 'move' | 'test';
|
|
@@ -488,7 +496,7 @@ export declare class MedplumClient extends EventTarget {
|
|
|
488
496
|
* Does not invalidate tokens with the server.
|
|
489
497
|
* @category Authentication
|
|
490
498
|
*/
|
|
491
|
-
signOut(): void
|
|
499
|
+
signOut(): Promise<void>;
|
|
492
500
|
/**
|
|
493
501
|
* Tries to sign in the user.
|
|
494
502
|
* Returns true if the user is signed in.
|
|
@@ -503,6 +511,14 @@ export declare class MedplumClient extends EventTarget {
|
|
|
503
511
|
* @category Authentication
|
|
504
512
|
*/
|
|
505
513
|
signOutWithRedirect(): void;
|
|
514
|
+
/**
|
|
515
|
+
* Initiates sign in with an external identity provider.
|
|
516
|
+
* @param authorizeUrl The external authorization URL.
|
|
517
|
+
* @param clientId The external client ID.
|
|
518
|
+
* @param redirectUri The external identity provider redirect URI.
|
|
519
|
+
* @param baseLogin The Medplum login request.
|
|
520
|
+
*/
|
|
521
|
+
signInWithExternalAuth(authorizeUrl: string, clientId: string, redirectUri: string, baseLogin: BaseLoginRequest): Promise<void>;
|
|
506
522
|
/**
|
|
507
523
|
* Builds a FHIR URL from a collection of URL path components.
|
|
508
524
|
* For example, `buildUrl('/Patient', '123')` returns `fhir/R4/Patient/123`.
|