@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.
@@ -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`.