@medplum/core 4.3.12 → 4.3.13
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 +17 -2
- package/dist/esm/index.d.ts +17 -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
|
@@ -3613,10 +3613,11 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3613
3613
|
* @category Read
|
|
3614
3614
|
* @param resourceType - The FHIR resource type.
|
|
3615
3615
|
* @param id - The resource ID.
|
|
3616
|
-
* @param options - Optional
|
|
3616
|
+
* @param options - Optional history options.
|
|
3617
|
+
* @param requestOptions - Optional fetch options.
|
|
3617
3618
|
* @returns Promise to the resource history.
|
|
3618
3619
|
*/
|
|
3619
|
-
readHistory<RT extends ResourceType>(resourceType: RT, id: string, options?: MedplumRequestOptions): ReadablePromise<Bundle<WithId<ExtractResource<RT>>>>;
|
|
3620
|
+
readHistory<RT extends ResourceType>(resourceType: RT, id: string, options?: ReadHistoryOptions, requestOptions?: MedplumRequestOptions): ReadablePromise<Bundle<WithId<ExtractResource<RT>>>>;
|
|
3620
3621
|
/**
|
|
3621
3622
|
* Reads a specific version of a resource by resource type, ID, and version ID.
|
|
3622
3623
|
*
|
|
@@ -5789,6 +5790,11 @@ export declare class ReadablePromise<T> implements Promise<T> {
|
|
|
5789
5790
|
finally(onfinally?: (() => void) | null): Promise<T>;
|
|
5790
5791
|
}
|
|
5791
5792
|
|
|
5793
|
+
export declare interface ReadHistoryOptions {
|
|
5794
|
+
readonly count?: number;
|
|
5795
|
+
readonly offset?: number;
|
|
5796
|
+
}
|
|
5797
|
+
|
|
5792
5798
|
export declare const readInteractions: AccessPolicyInteraction[];
|
|
5793
5799
|
|
|
5794
5800
|
export declare class ReconnectingWebSocket<WS extends IWebSocket = WebSocket> extends TypedEventTarget<WebSocketEventMap_2> implements IReconnectingWebSocket {
|
|
@@ -6046,6 +6052,15 @@ export declare interface SelectionStructure {
|
|
|
6046
6052
|
unionAll?: SelectionStructure[];
|
|
6047
6053
|
}
|
|
6048
6054
|
|
|
6055
|
+
/**
|
|
6056
|
+
* Serializes an Error object into a plain object, including nested causes and custom properties.
|
|
6057
|
+
* @param error - The error to serialize.
|
|
6058
|
+
* @param depth - The current depth of recursion.
|
|
6059
|
+
* @param maxDepth - The maximum depth of recursion.
|
|
6060
|
+
* @returns A serialized representation of the error.
|
|
6061
|
+
*/
|
|
6062
|
+
export declare function serializeError(error: Error, depth?: number, maxDepth?: number): Record<string, any>;
|
|
6063
|
+
|
|
6049
6064
|
/**
|
|
6050
6065
|
* Creates a serialized url-encoded payload for a `FHIRcast` subscription from a `SubscriptionRequest` object that can be directly used in an HTTP request to the Hub.
|
|
6051
6066
|
*
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -3613,10 +3613,11 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3613
3613
|
* @category Read
|
|
3614
3614
|
* @param resourceType - The FHIR resource type.
|
|
3615
3615
|
* @param id - The resource ID.
|
|
3616
|
-
* @param options - Optional
|
|
3616
|
+
* @param options - Optional history options.
|
|
3617
|
+
* @param requestOptions - Optional fetch options.
|
|
3617
3618
|
* @returns Promise to the resource history.
|
|
3618
3619
|
*/
|
|
3619
|
-
readHistory<RT extends ResourceType>(resourceType: RT, id: string, options?: MedplumRequestOptions): ReadablePromise<Bundle<WithId<ExtractResource<RT>>>>;
|
|
3620
|
+
readHistory<RT extends ResourceType>(resourceType: RT, id: string, options?: ReadHistoryOptions, requestOptions?: MedplumRequestOptions): ReadablePromise<Bundle<WithId<ExtractResource<RT>>>>;
|
|
3620
3621
|
/**
|
|
3621
3622
|
* Reads a specific version of a resource by resource type, ID, and version ID.
|
|
3622
3623
|
*
|
|
@@ -5789,6 +5790,11 @@ export declare class ReadablePromise<T> implements Promise<T> {
|
|
|
5789
5790
|
finally(onfinally?: (() => void) | null): Promise<T>;
|
|
5790
5791
|
}
|
|
5791
5792
|
|
|
5793
|
+
export declare interface ReadHistoryOptions {
|
|
5794
|
+
readonly count?: number;
|
|
5795
|
+
readonly offset?: number;
|
|
5796
|
+
}
|
|
5797
|
+
|
|
5792
5798
|
export declare const readInteractions: AccessPolicyInteraction[];
|
|
5793
5799
|
|
|
5794
5800
|
export declare class ReconnectingWebSocket<WS extends IWebSocket = WebSocket> extends TypedEventTarget<WebSocketEventMap_2> implements IReconnectingWebSocket {
|
|
@@ -6046,6 +6052,15 @@ export declare interface SelectionStructure {
|
|
|
6046
6052
|
unionAll?: SelectionStructure[];
|
|
6047
6053
|
}
|
|
6048
6054
|
|
|
6055
|
+
/**
|
|
6056
|
+
* Serializes an Error object into a plain object, including nested causes and custom properties.
|
|
6057
|
+
* @param error - The error to serialize.
|
|
6058
|
+
* @param depth - The current depth of recursion.
|
|
6059
|
+
* @param maxDepth - The maximum depth of recursion.
|
|
6060
|
+
* @returns A serialized representation of the error.
|
|
6061
|
+
*/
|
|
6062
|
+
export declare function serializeError(error: Error, depth?: number, maxDepth?: number): Record<string, any>;
|
|
6063
|
+
|
|
6049
6064
|
/**
|
|
6050
6065
|
* Creates a serialized url-encoded payload for a `FHIRcast` subscription from a `SubscriptionRequest` object that can be directly used in an HTTP request to the Hub.
|
|
6051
6066
|
*
|