@medplum/mock 3.0.11 → 3.0.12

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.
@@ -2,9 +2,11 @@ import { AccessPolicy } from '@medplum/fhirtypes';
2
2
  import { Agent } from '@medplum/fhirtypes';
3
3
  import { AuditEvent } from '@medplum/fhirtypes';
4
4
  import { Binary } from '@medplum/fhirtypes';
5
+ import { BinarySource } from '@medplum/core';
5
6
  import { Bot } from '@medplum/fhirtypes';
6
7
  import { ClientApplication } from '@medplum/fhirtypes';
7
8
  import { Communication } from '@medplum/fhirtypes';
9
+ import { CreateBinaryOptions } from '@medplum/core';
8
10
  import type { CustomTableLayout } from 'pdfmake/interfaces';
9
11
  import { Device } from '@medplum/fhirtypes';
10
12
  import { DiagnosticReport } from '@medplum/fhirtypes';
@@ -165,7 +167,7 @@ export declare class MockClient extends MedplumClient {
165
167
  setProfile(profile: ProfileResource | undefined): void;
166
168
  getActiveLogin(): LoginState | undefined;
167
169
  getLogins(): LoginState[];
168
- createBinary(data: string | File | Blob | Uint8Array, filename: string | undefined, contentType: string, onProgress?: (e: ProgressEvent) => void): Promise<Binary>;
170
+ createBinary(arg1: BinarySource | CreateBinaryOptions, arg2: string | undefined | MedplumRequestOptions, arg3?: string, arg4?: (e: ProgressEvent) => void): Promise<Binary>;
169
171
  pushToAgent(agent: Agent | Reference<Agent>, destination: Device | Reference<Device> | string, body: any, contentType?: string | undefined, _waitForResponse?: boolean | undefined, _options?: MedplumRequestOptions | undefined): Promise<any>;
170
172
  setAgentAvailable(value: boolean): void;
171
173
  getSubscriptionManager(): MockSubscriptionManager;
@@ -2,9 +2,11 @@ import { AccessPolicy } from '@medplum/fhirtypes';
2
2
  import { Agent } from '@medplum/fhirtypes';
3
3
  import { AuditEvent } from '@medplum/fhirtypes';
4
4
  import { Binary } from '@medplum/fhirtypes';
5
+ import { BinarySource } from '@medplum/core';
5
6
  import { Bot } from '@medplum/fhirtypes';
6
7
  import { ClientApplication } from '@medplum/fhirtypes';
7
8
  import { Communication } from '@medplum/fhirtypes';
9
+ import { CreateBinaryOptions } from '@medplum/core';
8
10
  import type { CustomTableLayout } from 'pdfmake/interfaces';
9
11
  import { Device } from '@medplum/fhirtypes';
10
12
  import { DiagnosticReport } from '@medplum/fhirtypes';
@@ -165,7 +167,7 @@ export declare class MockClient extends MedplumClient {
165
167
  setProfile(profile: ProfileResource | undefined): void;
166
168
  getActiveLogin(): LoginState | undefined;
167
169
  getLogins(): LoginState[];
168
- createBinary(data: string | File | Blob | Uint8Array, filename: string | undefined, contentType: string, onProgress?: (e: ProgressEvent) => void): Promise<Binary>;
170
+ createBinary(arg1: BinarySource | CreateBinaryOptions, arg2: string | undefined | MedplumRequestOptions, arg3?: string, arg4?: (e: ProgressEvent) => void): Promise<Binary>;
169
171
  pushToAgent(agent: Agent | Reference<Agent>, destination: Device | Reference<Device> | string, body: any, contentType?: string | undefined, _waitForResponse?: boolean | undefined, _options?: MedplumRequestOptions | undefined): Promise<any>;
170
172
  setAgentAvailable(value: boolean): void;
171
173
  getSubscriptionManager(): MockSubscriptionManager;