@medplum/core 5.0.3 → 5.0.4

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.
@@ -1028,6 +1028,12 @@ declare class EventTarget_2 {
1028
1028
  removeEventListener(type: string, callback: EventListener_2): void;
1029
1029
  dispatchEvent(event: Event_2): boolean;
1030
1030
  removeAllListeners(): void;
1031
+ /**
1032
+ * Gets the number of listeners for the provided Event type.
1033
+ * @param type - The name of the Event type.
1034
+ * @returns The number of listeners for this Event type.
1035
+ */
1036
+ listenerCount(type: string): number;
1031
1037
  }
1032
1038
  export { EventTarget_2 as EventTarget }
1033
1039
 
@@ -5442,7 +5448,7 @@ export declare type OAuthTokenType = (typeof OAuthTokenType)[keyof typeof OAuthT
5442
5448
 
5443
5449
  export declare class OperationOutcomeError extends Error {
5444
5450
  readonly outcome: OperationOutcome;
5445
- constructor(outcome: OperationOutcome, cause?: unknown);
5451
+ constructor(outcome: OperationOutcome, options?: ErrorOptions);
5446
5452
  }
5447
5453
 
5448
5454
  /**
@@ -6619,6 +6625,12 @@ export declare class ParserBuilder {
6619
6625
  addEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
6620
6626
  removeEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
6621
6627
  removeAllListeners(): void;
6628
+ /**
6629
+ * Gets the number of listeners for the provided Event type.
6630
+ * @param type - The name of the Event type.
6631
+ * @returns The number of listeners for this Event type.
6632
+ */
6633
+ listenerCount<TEventType extends keyof TEvents & string>(type: TEventType): number;
6622
6634
  }
6623
6635
 
6624
6636
  export declare interface TypedValue {
@@ -6673,6 +6685,8 @@ export declare class ParserBuilder {
6673
6685
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
6674
6686
  }
6675
6687
 
6688
+ export declare const unsupportedMediaType: OperationOutcome;
6689
+
6676
6690
  export declare const VALID_HOSTNAME_REGEX: RegExp;
6677
6691
 
6678
6692
  /**
@@ -1028,6 +1028,12 @@ declare class EventTarget_2 {
1028
1028
  removeEventListener(type: string, callback: EventListener_2): void;
1029
1029
  dispatchEvent(event: Event_2): boolean;
1030
1030
  removeAllListeners(): void;
1031
+ /**
1032
+ * Gets the number of listeners for the provided Event type.
1033
+ * @param type - The name of the Event type.
1034
+ * @returns The number of listeners for this Event type.
1035
+ */
1036
+ listenerCount(type: string): number;
1031
1037
  }
1032
1038
  export { EventTarget_2 as EventTarget }
1033
1039
 
@@ -5442,7 +5448,7 @@ export declare type OAuthTokenType = (typeof OAuthTokenType)[keyof typeof OAuthT
5442
5448
 
5443
5449
  export declare class OperationOutcomeError extends Error {
5444
5450
  readonly outcome: OperationOutcome;
5445
- constructor(outcome: OperationOutcome, cause?: unknown);
5451
+ constructor(outcome: OperationOutcome, options?: ErrorOptions);
5446
5452
  }
5447
5453
 
5448
5454
  /**
@@ -6619,6 +6625,12 @@ export declare class ParserBuilder {
6619
6625
  addEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
6620
6626
  removeEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
6621
6627
  removeAllListeners(): void;
6628
+ /**
6629
+ * Gets the number of listeners for the provided Event type.
6630
+ * @param type - The name of the Event type.
6631
+ * @returns The number of listeners for this Event type.
6632
+ */
6633
+ listenerCount<TEventType extends keyof TEvents & string>(type: TEventType): number;
6622
6634
  }
6623
6635
 
6624
6636
  export declare interface TypedValue {
@@ -6673,6 +6685,8 @@ export declare class ParserBuilder {
6673
6685
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
6674
6686
  }
6675
6687
 
6688
+ export declare const unsupportedMediaType: OperationOutcome;
6689
+
6676
6690
  export declare const VALID_HOSTNAME_REGEX: RegExp;
6677
6691
 
6678
6692
  /**