@medplum/core 4.2.0 → 4.2.2

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.
@@ -4108,7 +4108,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
4108
4108
  * @param options - Optional fetch options.
4109
4109
  * @returns Promise to the result. If waiting for response, the result is the response body. Otherwise, it is an operation outcome.
4110
4110
  */
4111
- pushToAgent(agent: Agent | Reference<Agent>, destination: Device | Reference<Device> | string, body: any, contentType?: string, waitForResponse?: boolean, options?: MedplumRequestOptions): Promise<any>;
4111
+ pushToAgent(agent: Agent | Reference<Agent>, destination: Device | Reference<Device> | string, body: any, contentType?: string, waitForResponse?: boolean, options?: PushToAgentOptions): Promise<any>;
4112
4112
  /**
4113
4113
  * @category Authentication
4114
4114
  * @returns The Login State
@@ -5645,6 +5645,13 @@ export declare const protectedResourceTypes: string[];
5645
5645
 
5646
5646
  export declare type ProtocolsProvider = null | string | string[];
5647
5647
 
5648
+ export declare interface PushToAgentOptions extends MedplumRequestOptions {
5649
+ /**
5650
+ * Time to wait before request timeout in milliseconds; defaults to `10000` (10 s)
5651
+ */
5652
+ waitTimeout?: number;
5653
+ }
5654
+
5648
5655
  export declare type QuantityUnit = Pick<Quantity, 'unit' | 'code' | 'system'>;
5649
5656
 
5650
5657
  /**
@@ -4108,7 +4108,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
4108
4108
  * @param options - Optional fetch options.
4109
4109
  * @returns Promise to the result. If waiting for response, the result is the response body. Otherwise, it is an operation outcome.
4110
4110
  */
4111
- pushToAgent(agent: Agent | Reference<Agent>, destination: Device | Reference<Device> | string, body: any, contentType?: string, waitForResponse?: boolean, options?: MedplumRequestOptions): Promise<any>;
4111
+ pushToAgent(agent: Agent | Reference<Agent>, destination: Device | Reference<Device> | string, body: any, contentType?: string, waitForResponse?: boolean, options?: PushToAgentOptions): Promise<any>;
4112
4112
  /**
4113
4113
  * @category Authentication
4114
4114
  * @returns The Login State
@@ -5645,6 +5645,13 @@ export declare const protectedResourceTypes: string[];
5645
5645
 
5646
5646
  export declare type ProtocolsProvider = null | string | string[];
5647
5647
 
5648
+ export declare interface PushToAgentOptions extends MedplumRequestOptions {
5649
+ /**
5650
+ * Time to wait before request timeout in milliseconds; defaults to `10000` (10 s)
5651
+ */
5652
+ waitTimeout?: number;
5653
+ }
5654
+
5648
5655
  export declare type QuantityUnit = Pick<Quantity, 'unit' | 'code' | 'system'>;
5649
5656
 
5650
5657
  /**