@medplum/core 5.0.3 → 5.0.5

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.
@@ -45,7 +45,7 @@ import type { Quantity } from '@medplum/fhirtypes';
45
45
  import type { QuestionnaireResponse } from '@medplum/fhirtypes';
46
46
  import type { QuestionnaireResponseItemAnswer } from '@medplum/fhirtypes';
47
47
  import type { Range as Range_2 } from '@medplum/fhirtypes';
48
- import type { Readable } from 'stream';
48
+ import type { Readable } from 'node:stream';
49
49
  import type { Reference } from '@medplum/fhirtypes';
50
50
  import type { RelatedPerson } from '@medplum/fhirtypes';
51
51
  import type { Resource } from '@medplum/fhirtypes';
@@ -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
 
@@ -5407,6 +5413,22 @@ export declare const OAuthGrantType: {
5407
5413
 
5408
5414
  export declare type OAuthGrantType = (typeof OAuthGrantType)[keyof typeof OAuthGrantType];
5409
5415
 
5416
+ /**
5417
+ * OAuth Signing Algorithms
5418
+ * See {@link https://datatracker.ietf.org/doc/html/rfc7519 | RFC 7519} for full details.
5419
+ */
5420
+ export declare const OAuthSigningAlgorithm: {
5421
+ readonly ES256: "ES256";
5422
+ readonly ES384: "ES384";
5423
+ readonly ES512: "ES512";
5424
+ readonly HS256: "HS256";
5425
+ readonly RS256: "RS256";
5426
+ readonly RS384: "RS384";
5427
+ readonly RS512: "RS512";
5428
+ };
5429
+
5430
+ export declare type OAuthSigningAlgorithm = (typeof OAuthSigningAlgorithm)[keyof typeof OAuthSigningAlgorithm];
5431
+
5410
5432
  /**
5411
5433
  * OAuth 2.0 Client Authentication Methods
5412
5434
  * See: https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication
@@ -5442,7 +5464,7 @@ export declare type OAuthTokenType = (typeof OAuthTokenType)[keyof typeof OAuthT
5442
5464
 
5443
5465
  export declare class OperationOutcomeError extends Error {
5444
5466
  readonly outcome: OperationOutcome;
5445
- constructor(outcome: OperationOutcome, cause?: unknown);
5467
+ constructor(outcome: OperationOutcome, options?: ErrorOptions);
5446
5468
  }
5447
5469
 
5448
5470
  /**
@@ -5768,7 +5790,7 @@ export declare class ParserBuilder {
5768
5790
 
5769
5791
  /**
5770
5792
  * List of property types.
5771
- * http://www.hl7.org/fhir/valueset-defined-types.html
5793
+ * http://www.hl7.org/fhir/R4/valueset-defined-types.html
5772
5794
  * The list here includes additions found from StructureDefinition resources.
5773
5795
  */
5774
5796
  export declare const PropertyType: {
@@ -5787,6 +5809,8 @@ export declare class ParserBuilder {
5787
5809
  readonly Distance: "Distance";
5788
5810
  readonly Dosage: "Dosage";
5789
5811
  readonly Duration: "Duration";
5812
+ readonly Element: "Element";
5813
+ readonly ElementDefinition: "ElementDefinition";
5790
5814
  readonly Expression: "Expression";
5791
5815
  readonly Extension: "Extension";
5792
5816
  readonly HumanName: "HumanName";
@@ -5794,6 +5818,7 @@ export declare class ParserBuilder {
5794
5818
  readonly MarketingStatus: "MarketingStatus";
5795
5819
  readonly Meta: "Meta";
5796
5820
  readonly Money: "Money";
5821
+ readonly MoneyQuantity: "MoneyQuantity";
5797
5822
  readonly Narrative: "Narrative";
5798
5823
  readonly ParameterDefinition: "ParameterDefinition";
5799
5824
  readonly Period: "Period";
@@ -5807,6 +5832,7 @@ export declare class ParserBuilder {
5807
5832
  readonly RelatedArtifact: "RelatedArtifact";
5808
5833
  readonly SampledData: "SampledData";
5809
5834
  readonly Signature: "Signature";
5835
+ readonly SimpleQuantity: "SimpleQuantity";
5810
5836
  readonly SubstanceAmount: "SubstanceAmount";
5811
5837
  readonly SystemString: "http://hl7.org/fhirpath/System.String";
5812
5838
  readonly Timing: "Timing";
@@ -5831,6 +5857,7 @@ export declare class ParserBuilder {
5831
5857
  readonly uri: "uri";
5832
5858
  readonly url: "url";
5833
5859
  readonly uuid: "uuid";
5860
+ readonly xhtml: "xhtml";
5834
5861
  };
5835
5862
 
5836
5863
  /**
@@ -6619,6 +6646,12 @@ export declare class ParserBuilder {
6619
6646
  addEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
6620
6647
  removeEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
6621
6648
  removeAllListeners(): void;
6649
+ /**
6650
+ * Gets the number of listeners for the provided Event type.
6651
+ * @param type - The name of the Event type.
6652
+ * @returns The number of listeners for this Event type.
6653
+ */
6654
+ listenerCount<TEventType extends keyof TEvents & string>(type: TEventType): number;
6622
6655
  }
6623
6656
 
6624
6657
  export declare interface TypedValue {
@@ -6673,6 +6706,8 @@ export declare class ParserBuilder {
6673
6706
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
6674
6707
  }
6675
6708
 
6709
+ export declare const unsupportedMediaType: OperationOutcome;
6710
+
6676
6711
  export declare const VALID_HOSTNAME_REGEX: RegExp;
6677
6712
 
6678
6713
  /**
@@ -45,7 +45,7 @@ import type { Quantity } from '@medplum/fhirtypes';
45
45
  import type { QuestionnaireResponse } from '@medplum/fhirtypes';
46
46
  import type { QuestionnaireResponseItemAnswer } from '@medplum/fhirtypes';
47
47
  import type { Range as Range_2 } from '@medplum/fhirtypes';
48
- import type { Readable } from 'stream';
48
+ import type { Readable } from 'node:stream';
49
49
  import type { Reference } from '@medplum/fhirtypes';
50
50
  import type { RelatedPerson } from '@medplum/fhirtypes';
51
51
  import type { Resource } from '@medplum/fhirtypes';
@@ -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
 
@@ -5407,6 +5413,22 @@ export declare const OAuthGrantType: {
5407
5413
 
5408
5414
  export declare type OAuthGrantType = (typeof OAuthGrantType)[keyof typeof OAuthGrantType];
5409
5415
 
5416
+ /**
5417
+ * OAuth Signing Algorithms
5418
+ * See {@link https://datatracker.ietf.org/doc/html/rfc7519 | RFC 7519} for full details.
5419
+ */
5420
+ export declare const OAuthSigningAlgorithm: {
5421
+ readonly ES256: "ES256";
5422
+ readonly ES384: "ES384";
5423
+ readonly ES512: "ES512";
5424
+ readonly HS256: "HS256";
5425
+ readonly RS256: "RS256";
5426
+ readonly RS384: "RS384";
5427
+ readonly RS512: "RS512";
5428
+ };
5429
+
5430
+ export declare type OAuthSigningAlgorithm = (typeof OAuthSigningAlgorithm)[keyof typeof OAuthSigningAlgorithm];
5431
+
5410
5432
  /**
5411
5433
  * OAuth 2.0 Client Authentication Methods
5412
5434
  * See: https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication
@@ -5442,7 +5464,7 @@ export declare type OAuthTokenType = (typeof OAuthTokenType)[keyof typeof OAuthT
5442
5464
 
5443
5465
  export declare class OperationOutcomeError extends Error {
5444
5466
  readonly outcome: OperationOutcome;
5445
- constructor(outcome: OperationOutcome, cause?: unknown);
5467
+ constructor(outcome: OperationOutcome, options?: ErrorOptions);
5446
5468
  }
5447
5469
 
5448
5470
  /**
@@ -5768,7 +5790,7 @@ export declare class ParserBuilder {
5768
5790
 
5769
5791
  /**
5770
5792
  * List of property types.
5771
- * http://www.hl7.org/fhir/valueset-defined-types.html
5793
+ * http://www.hl7.org/fhir/R4/valueset-defined-types.html
5772
5794
  * The list here includes additions found from StructureDefinition resources.
5773
5795
  */
5774
5796
  export declare const PropertyType: {
@@ -5787,6 +5809,8 @@ export declare class ParserBuilder {
5787
5809
  readonly Distance: "Distance";
5788
5810
  readonly Dosage: "Dosage";
5789
5811
  readonly Duration: "Duration";
5812
+ readonly Element: "Element";
5813
+ readonly ElementDefinition: "ElementDefinition";
5790
5814
  readonly Expression: "Expression";
5791
5815
  readonly Extension: "Extension";
5792
5816
  readonly HumanName: "HumanName";
@@ -5794,6 +5818,7 @@ export declare class ParserBuilder {
5794
5818
  readonly MarketingStatus: "MarketingStatus";
5795
5819
  readonly Meta: "Meta";
5796
5820
  readonly Money: "Money";
5821
+ readonly MoneyQuantity: "MoneyQuantity";
5797
5822
  readonly Narrative: "Narrative";
5798
5823
  readonly ParameterDefinition: "ParameterDefinition";
5799
5824
  readonly Period: "Period";
@@ -5807,6 +5832,7 @@ export declare class ParserBuilder {
5807
5832
  readonly RelatedArtifact: "RelatedArtifact";
5808
5833
  readonly SampledData: "SampledData";
5809
5834
  readonly Signature: "Signature";
5835
+ readonly SimpleQuantity: "SimpleQuantity";
5810
5836
  readonly SubstanceAmount: "SubstanceAmount";
5811
5837
  readonly SystemString: "http://hl7.org/fhirpath/System.String";
5812
5838
  readonly Timing: "Timing";
@@ -5831,6 +5857,7 @@ export declare class ParserBuilder {
5831
5857
  readonly uri: "uri";
5832
5858
  readonly url: "url";
5833
5859
  readonly uuid: "uuid";
5860
+ readonly xhtml: "xhtml";
5834
5861
  };
5835
5862
 
5836
5863
  /**
@@ -6619,6 +6646,12 @@ export declare class ParserBuilder {
6619
6646
  addEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
6620
6647
  removeEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
6621
6648
  removeAllListeners(): void;
6649
+ /**
6650
+ * Gets the number of listeners for the provided Event type.
6651
+ * @param type - The name of the Event type.
6652
+ * @returns The number of listeners for this Event type.
6653
+ */
6654
+ listenerCount<TEventType extends keyof TEvents & string>(type: TEventType): number;
6622
6655
  }
6623
6656
 
6624
6657
  export declare interface TypedValue {
@@ -6673,6 +6706,8 @@ export declare class ParserBuilder {
6673
6706
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
6674
6707
  }
6675
6708
 
6709
+ export declare const unsupportedMediaType: OperationOutcome;
6710
+
6676
6711
  export declare const VALID_HOSTNAME_REGEX: RegExp;
6677
6712
 
6678
6713
  /**