@medplum/core 3.2.8 → 3.2.10

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.
@@ -668,7 +668,7 @@ export declare interface CreateMediaOptions extends CreateBinaryOptions {
668
668
  export declare function createOperationOutcomeIssue(severity: IssueSeverity, code: IssueType, message: string, path: string, data?: Record<string, any>): OperationOutcomeIssue;
669
669
 
670
670
  export declare interface CreatePdfFunction {
671
- (docDefinition: TDocumentDefinitions, tableLayouts?: Record<string, CustomTableLayout> | undefined, fonts?: TFontDictionary | undefined): Promise<any>;
671
+ (docDefinition: TDocumentDefinitions, tableLayouts?: Record<string, CustomTableLayout>, fonts?: TFontDictionary): Promise<any>;
672
672
  }
673
673
 
674
674
  /**
@@ -713,6 +713,7 @@ export declare type DataTypesMap = {
713
713
  /**
714
714
  * Decodes a base64 string.
715
715
  * Handles both browser and Node environments.
716
+ * Supports Unicode characters.
716
717
  * @param data - The base-64 encoded input string.
717
718
  * @returns The decoded string.
718
719
  */
@@ -828,6 +829,7 @@ export declare class EmptySetAtom implements Atom {
828
829
  /**
829
830
  * Encodes a base64 string.
830
831
  * Handles both browser and Node environments.
832
+ * Supports Unicode characters.
831
833
  * @param data - The unencoded input string.
832
834
  * @returns The base-64 encoded string.
833
835
  */
@@ -1377,7 +1379,7 @@ export declare function formatCoding(coding: Coding | undefined): string;
1377
1379
  * @param options - Optional date format options.
1378
1380
  * @returns The formatted date string.
1379
1381
  */
1380
- export declare function formatDate(date: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
1382
+ export declare function formatDate(date: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
1381
1383
 
1382
1384
  /**
1383
1385
  * Formats a FHIR dateTime string as a human readable string.
@@ -1387,7 +1389,7 @@ export declare function formatDate(date: string | undefined, locales?: Intl.Loca
1387
1389
  * @param options - Optional dateTime format options.
1388
1390
  * @returns The formatted dateTime string.
1389
1391
  */
1390
- export declare function formatDateTime(dateTime: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
1392
+ export declare function formatDateTime(dateTime: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
1391
1393
 
1392
1394
  /**
1393
1395
  * Formats the family name portion of a FHIR HumanName element.
@@ -1434,7 +1436,7 @@ export declare function formatObservationValue(obs: Observation | ObservationCom
1434
1436
  * @param options - Optional period format options.
1435
1437
  * @returns The formatted period string.
1436
1438
  */
1437
- export declare function formatPeriod(period: Period | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
1439
+ export declare function formatPeriod(period: Period | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
1438
1440
 
1439
1441
  /**
1440
1442
  * Returns a human-readable string for a FHIR Quantity datatype, taking into account units and comparators
@@ -1469,7 +1471,7 @@ export declare function formatSearchQuery(definition: SearchRequest): string;
1469
1471
  * @param options - Optional time format options.
1470
1472
  * @returns The formatted time string.
1471
1473
  */
1472
- export declare function formatTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
1474
+ export declare function formatTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
1473
1475
 
1474
1476
  /**
1475
1477
  * Formats a FHIR Timing as a human readable string.
@@ -2368,6 +2370,8 @@ export declare function isTextObject(value: unknown): value is {
2368
2370
  text: string;
2369
2371
  };
2370
2372
 
2373
+ export declare function isUnauthenticated(outcome: OperationOutcome): boolean;
2374
+
2371
2375
  /**
2372
2376
  * Returns true if the input string is a UUID.
2373
2377
  * @param input - The input string.
@@ -2546,7 +2550,7 @@ export declare interface MailAddress {
2546
2550
  * Compatible with nodemailer Mail.Options.
2547
2551
  */
2548
2552
  export declare interface MailAttachment {
2549
- /** String, Buffer or a Stream contents for the attachmentent */
2553
+ /** String, Buffer or a Stream contents for the attachment */
2550
2554
  readonly content?: string;
2551
2555
  /** path to a file or an URL (data uris are allowed as well) if you want to stream the file instead of including it (better for larger attachments) */
2552
2556
  readonly path?: string;
@@ -3441,7 +3445,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
3441
3445
  /**
3442
3446
  * Creates a FHIR `Communication` resource with the provided data content.
3443
3447
  *
3444
- * This is a convenience method to handle commmon cases where a `Communication` resource is created with a `payload`.
3448
+ * This is a convenience method to handle common cases where a `Communication` resource is created with a `payload`.
3445
3449
  * @category Create
3446
3450
  * @param resource - The FHIR resource to comment on.
3447
3451
  * @param text - The text of the comment.
@@ -3745,8 +3749,8 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
3745
3749
  private addLogin;
3746
3750
  private refreshProfile;
3747
3751
  /**
3748
- * Returns true if the client is waiting for authentication.
3749
- * @returns True if the client is waiting for authentication.
3752
+ * Returns true if the client is waiting for initial authentication.
3753
+ * @returns True if the client is waiting for initial authentication.
3750
3754
  * @category Authentication
3751
3755
  */
3752
3756
  isLoading(): boolean;
@@ -4414,7 +4418,7 @@ export declare interface MedplumInfraConfig {
4414
4418
  rdsInstances: number;
4415
4419
  rdsInstanceType: string;
4416
4420
  rdsInstanceVersion?: string;
4417
- rdsInstanceParameters?: StringMap;
4421
+ rdsClusterParameters?: StringMap;
4418
4422
  rdsSecretsArn?: string;
4419
4423
  rdsReaderInstanceType?: string;
4420
4424
  rdsProxyEnabled?: boolean;
@@ -5216,20 +5220,20 @@ export declare class ReadablePromise<T> implements Promise<T> {
5216
5220
  * @param onrejected - The callback to execute when the Promise is rejected.
5217
5221
  * @returns A Promise for the completion of which ever callback is executed.
5218
5222
  */
5219
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
5223
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
5220
5224
  /**
5221
5225
  * Attaches a callback for only the rejection of the Promise.
5222
5226
  * @param onrejected - The callback to execute when the Promise is rejected.
5223
5227
  * @returns A Promise for the completion of the callback.
5224
5228
  */
5225
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
5229
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
5226
5230
  /**
5227
5231
  * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
5228
5232
  * resolved value cannot be modified from the callback.
5229
5233
  * @param onfinally - The callback to execute when the Promise is settled (fulfilled or rejected).
5230
5234
  * @returns A Promise for the completion of the callback.
5231
5235
  */
5232
- finally(onfinally?: (() => void) | undefined | null): Promise<T>;
5236
+ finally(onfinally?: (() => void) | null): Promise<T>;
5233
5237
  }
5234
5238
 
5235
5239
  export declare class ReconnectingWebSocket extends TypedEventTarget<WebSocketEventMap_2> implements IReconnectingWebSocket {
@@ -5901,6 +5905,10 @@ export declare class UnaryOperatorAtom extends PrefixOperatorAtom {
5901
5905
 
5902
5906
  export declare const unauthorized: OperationOutcome;
5903
5907
 
5908
+ export declare const unauthorizedTokenAudience: OperationOutcome;
5909
+
5910
+ export declare const unauthorizedTokenExpired: OperationOutcome;
5911
+
5904
5912
  export declare class UnionAtom extends InfixOperatorAtom {
5905
5913
  constructor(left: Atom, right: Atom);
5906
5914
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
@@ -668,7 +668,7 @@ export declare interface CreateMediaOptions extends CreateBinaryOptions {
668
668
  export declare function createOperationOutcomeIssue(severity: IssueSeverity, code: IssueType, message: string, path: string, data?: Record<string, any>): OperationOutcomeIssue;
669
669
 
670
670
  export declare interface CreatePdfFunction {
671
- (docDefinition: TDocumentDefinitions, tableLayouts?: Record<string, CustomTableLayout> | undefined, fonts?: TFontDictionary | undefined): Promise<any>;
671
+ (docDefinition: TDocumentDefinitions, tableLayouts?: Record<string, CustomTableLayout>, fonts?: TFontDictionary): Promise<any>;
672
672
  }
673
673
 
674
674
  /**
@@ -713,6 +713,7 @@ export declare type DataTypesMap = {
713
713
  /**
714
714
  * Decodes a base64 string.
715
715
  * Handles both browser and Node environments.
716
+ * Supports Unicode characters.
716
717
  * @param data - The base-64 encoded input string.
717
718
  * @returns The decoded string.
718
719
  */
@@ -828,6 +829,7 @@ export declare class EmptySetAtom implements Atom {
828
829
  /**
829
830
  * Encodes a base64 string.
830
831
  * Handles both browser and Node environments.
832
+ * Supports Unicode characters.
831
833
  * @param data - The unencoded input string.
832
834
  * @returns The base-64 encoded string.
833
835
  */
@@ -1377,7 +1379,7 @@ export declare function formatCoding(coding: Coding | undefined): string;
1377
1379
  * @param options - Optional date format options.
1378
1380
  * @returns The formatted date string.
1379
1381
  */
1380
- export declare function formatDate(date: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
1382
+ export declare function formatDate(date: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
1381
1383
 
1382
1384
  /**
1383
1385
  * Formats a FHIR dateTime string as a human readable string.
@@ -1387,7 +1389,7 @@ export declare function formatDate(date: string | undefined, locales?: Intl.Loca
1387
1389
  * @param options - Optional dateTime format options.
1388
1390
  * @returns The formatted dateTime string.
1389
1391
  */
1390
- export declare function formatDateTime(dateTime: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
1392
+ export declare function formatDateTime(dateTime: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
1391
1393
 
1392
1394
  /**
1393
1395
  * Formats the family name portion of a FHIR HumanName element.
@@ -1434,7 +1436,7 @@ export declare function formatObservationValue(obs: Observation | ObservationCom
1434
1436
  * @param options - Optional period format options.
1435
1437
  * @returns The formatted period string.
1436
1438
  */
1437
- export declare function formatPeriod(period: Period | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
1439
+ export declare function formatPeriod(period: Period | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
1438
1440
 
1439
1441
  /**
1440
1442
  * Returns a human-readable string for a FHIR Quantity datatype, taking into account units and comparators
@@ -1469,7 +1471,7 @@ export declare function formatSearchQuery(definition: SearchRequest): string;
1469
1471
  * @param options - Optional time format options.
1470
1472
  * @returns The formatted time string.
1471
1473
  */
1472
- export declare function formatTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
1474
+ export declare function formatTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
1473
1475
 
1474
1476
  /**
1475
1477
  * Formats a FHIR Timing as a human readable string.
@@ -2368,6 +2370,8 @@ export declare function isTextObject(value: unknown): value is {
2368
2370
  text: string;
2369
2371
  };
2370
2372
 
2373
+ export declare function isUnauthenticated(outcome: OperationOutcome): boolean;
2374
+
2371
2375
  /**
2372
2376
  * Returns true if the input string is a UUID.
2373
2377
  * @param input - The input string.
@@ -2546,7 +2550,7 @@ export declare interface MailAddress {
2546
2550
  * Compatible with nodemailer Mail.Options.
2547
2551
  */
2548
2552
  export declare interface MailAttachment {
2549
- /** String, Buffer or a Stream contents for the attachmentent */
2553
+ /** String, Buffer or a Stream contents for the attachment */
2550
2554
  readonly content?: string;
2551
2555
  /** path to a file or an URL (data uris are allowed as well) if you want to stream the file instead of including it (better for larger attachments) */
2552
2556
  readonly path?: string;
@@ -3441,7 +3445,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
3441
3445
  /**
3442
3446
  * Creates a FHIR `Communication` resource with the provided data content.
3443
3447
  *
3444
- * This is a convenience method to handle commmon cases where a `Communication` resource is created with a `payload`.
3448
+ * This is a convenience method to handle common cases where a `Communication` resource is created with a `payload`.
3445
3449
  * @category Create
3446
3450
  * @param resource - The FHIR resource to comment on.
3447
3451
  * @param text - The text of the comment.
@@ -3745,8 +3749,8 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
3745
3749
  private addLogin;
3746
3750
  private refreshProfile;
3747
3751
  /**
3748
- * Returns true if the client is waiting for authentication.
3749
- * @returns True if the client is waiting for authentication.
3752
+ * Returns true if the client is waiting for initial authentication.
3753
+ * @returns True if the client is waiting for initial authentication.
3750
3754
  * @category Authentication
3751
3755
  */
3752
3756
  isLoading(): boolean;
@@ -4414,7 +4418,7 @@ export declare interface MedplumInfraConfig {
4414
4418
  rdsInstances: number;
4415
4419
  rdsInstanceType: string;
4416
4420
  rdsInstanceVersion?: string;
4417
- rdsInstanceParameters?: StringMap;
4421
+ rdsClusterParameters?: StringMap;
4418
4422
  rdsSecretsArn?: string;
4419
4423
  rdsReaderInstanceType?: string;
4420
4424
  rdsProxyEnabled?: boolean;
@@ -5216,20 +5220,20 @@ export declare class ReadablePromise<T> implements Promise<T> {
5216
5220
  * @param onrejected - The callback to execute when the Promise is rejected.
5217
5221
  * @returns A Promise for the completion of which ever callback is executed.
5218
5222
  */
5219
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
5223
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
5220
5224
  /**
5221
5225
  * Attaches a callback for only the rejection of the Promise.
5222
5226
  * @param onrejected - The callback to execute when the Promise is rejected.
5223
5227
  * @returns A Promise for the completion of the callback.
5224
5228
  */
5225
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
5229
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
5226
5230
  /**
5227
5231
  * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
5228
5232
  * resolved value cannot be modified from the callback.
5229
5233
  * @param onfinally - The callback to execute when the Promise is settled (fulfilled or rejected).
5230
5234
  * @returns A Promise for the completion of the callback.
5231
5235
  */
5232
- finally(onfinally?: (() => void) | undefined | null): Promise<T>;
5236
+ finally(onfinally?: (() => void) | null): Promise<T>;
5233
5237
  }
5234
5238
 
5235
5239
  export declare class ReconnectingWebSocket extends TypedEventTarget<WebSocketEventMap_2> implements IReconnectingWebSocket {
@@ -5901,6 +5905,10 @@ export declare class UnaryOperatorAtom extends PrefixOperatorAtom {
5901
5905
 
5902
5906
  export declare const unauthorized: OperationOutcome;
5903
5907
 
5908
+ export declare const unauthorizedTokenAudience: OperationOutcome;
5909
+
5910
+ export declare const unauthorizedTokenExpired: OperationOutcome;
5911
+
5904
5912
  export declare class UnionAtom extends InfixOperatorAtom {
5905
5913
  constructor(left: Atom, right: Atom);
5906
5914
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];