@medplum/core 5.0.2 → 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.
- package/dist/cjs/index.cjs +7 -7
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +31 -2
- package/dist/esm/index.d.ts +31 -2
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1002,7 +1002,7 @@ export declare function evalFhirPath(expression: string | FhirPathAtom, input: u
|
|
|
1002
1002
|
* @param cache - Cache for parsed ASTs.
|
|
1003
1003
|
* @returns The result of the FHIRPath expression against the resource or object.
|
|
1004
1004
|
*/
|
|
1005
|
-
export declare function evalFhirPathTyped(expression: string | FhirPathAtom, input: TypedValue[], variables?: Record<string, TypedValue>, cache?: LRUCache<FhirPathAtom> | undefined): TypedValue[];
|
|
1005
|
+
export declare function evalFhirPathTyped(expression: string | FhirPathAtom, input: TypedValue[], variables?: Record<string, TypedValue>, cache?: LRUCache<FhirPathAtom> | undefined): (TypedValue | TypedValueWithPath)[];
|
|
1006
1006
|
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Evaluates a SQL-on-FHIR view on a set of FHIR resources.
|
|
@@ -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
|
|
|
@@ -4592,6 +4598,21 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
4592
4598
|
* @param clientSecret - The client secret.
|
|
4593
4599
|
*/
|
|
4594
4600
|
setBasicAuth(clientId: string, clientSecret: string): void;
|
|
4601
|
+
/**
|
|
4602
|
+
* Sets the verbose mode for the client.
|
|
4603
|
+
* When verbose is enabled, the client will log all requests and responses to the console.
|
|
4604
|
+
*
|
|
4605
|
+
* @example
|
|
4606
|
+
* ```typescript
|
|
4607
|
+
* medplum.setVerbose(true);
|
|
4608
|
+
* // Now all requests and responses will be logged
|
|
4609
|
+
* await medplum.searchResources('Patient');
|
|
4610
|
+
* ```
|
|
4611
|
+
*
|
|
4612
|
+
* @category HTTP
|
|
4613
|
+
* @param verbose - Whether to enable verbose logging.
|
|
4614
|
+
*/
|
|
4615
|
+
setVerbose(verbose: boolean): void;
|
|
4595
4616
|
/**
|
|
4596
4617
|
* Subscribes to a specified topic, listening for a list of specified events.
|
|
4597
4618
|
*
|
|
@@ -5427,7 +5448,7 @@ export declare type OAuthTokenType = (typeof OAuthTokenType)[keyof typeof OAuthT
|
|
|
5427
5448
|
|
|
5428
5449
|
export declare class OperationOutcomeError extends Error {
|
|
5429
5450
|
readonly outcome: OperationOutcome;
|
|
5430
|
-
constructor(outcome: OperationOutcome,
|
|
5451
|
+
constructor(outcome: OperationOutcome, options?: ErrorOptions);
|
|
5431
5452
|
}
|
|
5432
5453
|
|
|
5433
5454
|
/**
|
|
@@ -6604,6 +6625,12 @@ export declare class ParserBuilder {
|
|
|
6604
6625
|
addEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
|
|
6605
6626
|
removeEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
|
|
6606
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;
|
|
6607
6634
|
}
|
|
6608
6635
|
|
|
6609
6636
|
export declare interface TypedValue {
|
|
@@ -6658,6 +6685,8 @@ export declare class ParserBuilder {
|
|
|
6658
6685
|
eval(context: AtomContext, input: TypedValue[]): TypedValue[];
|
|
6659
6686
|
}
|
|
6660
6687
|
|
|
6688
|
+
export declare const unsupportedMediaType: OperationOutcome;
|
|
6689
|
+
|
|
6661
6690
|
export declare const VALID_HOSTNAME_REGEX: RegExp;
|
|
6662
6691
|
|
|
6663
6692
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1002,7 +1002,7 @@ export declare function evalFhirPath(expression: string | FhirPathAtom, input: u
|
|
|
1002
1002
|
* @param cache - Cache for parsed ASTs.
|
|
1003
1003
|
* @returns The result of the FHIRPath expression against the resource or object.
|
|
1004
1004
|
*/
|
|
1005
|
-
export declare function evalFhirPathTyped(expression: string | FhirPathAtom, input: TypedValue[], variables?: Record<string, TypedValue>, cache?: LRUCache<FhirPathAtom> | undefined): TypedValue[];
|
|
1005
|
+
export declare function evalFhirPathTyped(expression: string | FhirPathAtom, input: TypedValue[], variables?: Record<string, TypedValue>, cache?: LRUCache<FhirPathAtom> | undefined): (TypedValue | TypedValueWithPath)[];
|
|
1006
1006
|
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Evaluates a SQL-on-FHIR view on a set of FHIR resources.
|
|
@@ -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
|
|
|
@@ -4592,6 +4598,21 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
4592
4598
|
* @param clientSecret - The client secret.
|
|
4593
4599
|
*/
|
|
4594
4600
|
setBasicAuth(clientId: string, clientSecret: string): void;
|
|
4601
|
+
/**
|
|
4602
|
+
* Sets the verbose mode for the client.
|
|
4603
|
+
* When verbose is enabled, the client will log all requests and responses to the console.
|
|
4604
|
+
*
|
|
4605
|
+
* @example
|
|
4606
|
+
* ```typescript
|
|
4607
|
+
* medplum.setVerbose(true);
|
|
4608
|
+
* // Now all requests and responses will be logged
|
|
4609
|
+
* await medplum.searchResources('Patient');
|
|
4610
|
+
* ```
|
|
4611
|
+
*
|
|
4612
|
+
* @category HTTP
|
|
4613
|
+
* @param verbose - Whether to enable verbose logging.
|
|
4614
|
+
*/
|
|
4615
|
+
setVerbose(verbose: boolean): void;
|
|
4595
4616
|
/**
|
|
4596
4617
|
* Subscribes to a specified topic, listening for a list of specified events.
|
|
4597
4618
|
*
|
|
@@ -5427,7 +5448,7 @@ export declare type OAuthTokenType = (typeof OAuthTokenType)[keyof typeof OAuthT
|
|
|
5427
5448
|
|
|
5428
5449
|
export declare class OperationOutcomeError extends Error {
|
|
5429
5450
|
readonly outcome: OperationOutcome;
|
|
5430
|
-
constructor(outcome: OperationOutcome,
|
|
5451
|
+
constructor(outcome: OperationOutcome, options?: ErrorOptions);
|
|
5431
5452
|
}
|
|
5432
5453
|
|
|
5433
5454
|
/**
|
|
@@ -6604,6 +6625,12 @@ export declare class ParserBuilder {
|
|
|
6604
6625
|
addEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
|
|
6605
6626
|
removeEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
|
|
6606
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;
|
|
6607
6634
|
}
|
|
6608
6635
|
|
|
6609
6636
|
export declare interface TypedValue {
|
|
@@ -6658,6 +6685,8 @@ export declare class ParserBuilder {
|
|
|
6658
6685
|
eval(context: AtomContext, input: TypedValue[]): TypedValue[];
|
|
6659
6686
|
}
|
|
6660
6687
|
|
|
6688
|
+
export declare const unsupportedMediaType: OperationOutcome;
|
|
6689
|
+
|
|
6661
6690
|
export declare const VALID_HOSTNAME_REGEX: RegExp;
|
|
6662
6691
|
|
|
6663
6692
|
/**
|