@medplum/mock 3.0.10 → 3.0.11
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 +4 -4
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +7 -2
- package/dist/esm/index.d.ts +7 -2
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +5 -5
package/dist/cjs/index.d.ts
CHANGED
|
@@ -155,13 +155,14 @@ export declare class MockClient extends MedplumClient {
|
|
|
155
155
|
readonly debug: boolean;
|
|
156
156
|
activeLoginOverride?: LoginState;
|
|
157
157
|
private agentAvailable;
|
|
158
|
-
private
|
|
158
|
+
private profile;
|
|
159
159
|
subManager: MockSubscriptionManager | undefined;
|
|
160
160
|
constructor(clientOptions?: MockClientOptions);
|
|
161
161
|
clear(): void;
|
|
162
162
|
getProfile(): ProfileResource | undefined;
|
|
163
163
|
getUserConfiguration(): UserConfiguration | undefined;
|
|
164
164
|
setActiveLoginOverride(activeLoginOverride: LoginState): void;
|
|
165
|
+
setProfile(profile: ProfileResource | undefined): void;
|
|
165
166
|
getActiveLogin(): LoginState | undefined;
|
|
166
167
|
getLogins(): LoginState[];
|
|
167
168
|
createBinary(data: string | File | Blob | Uint8Array, filename: string | undefined, contentType: string, onProgress?: (e: ProgressEvent) => void): Promise<Binary>;
|
|
@@ -206,11 +207,15 @@ export declare class MockFetchClient {
|
|
|
206
207
|
private mockFhirHandler;
|
|
207
208
|
}
|
|
208
209
|
|
|
210
|
+
export declare interface MockSubManagerOptions {
|
|
211
|
+
mockRobustWebSocket?: boolean;
|
|
212
|
+
}
|
|
213
|
+
|
|
209
214
|
export declare class MockSubscriptionManager extends SubscriptionManager {
|
|
210
215
|
emitters: Map<string, SubscriptionEmitter>;
|
|
211
216
|
counts: Map<string, number>;
|
|
212
217
|
masterEmitter: SubscriptionEmitter;
|
|
213
|
-
constructor(medplum: MedplumClient,
|
|
218
|
+
constructor(medplum: MedplumClient, _wsUrl: string, options?: MockSubManagerOptions);
|
|
214
219
|
addCriteria(criteria: string): SubscriptionEmitter;
|
|
215
220
|
removeCriteria(criteria: string): void;
|
|
216
221
|
closeWebSocket(): void;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -155,13 +155,14 @@ export declare class MockClient extends MedplumClient {
|
|
|
155
155
|
readonly debug: boolean;
|
|
156
156
|
activeLoginOverride?: LoginState;
|
|
157
157
|
private agentAvailable;
|
|
158
|
-
private
|
|
158
|
+
private profile;
|
|
159
159
|
subManager: MockSubscriptionManager | undefined;
|
|
160
160
|
constructor(clientOptions?: MockClientOptions);
|
|
161
161
|
clear(): void;
|
|
162
162
|
getProfile(): ProfileResource | undefined;
|
|
163
163
|
getUserConfiguration(): UserConfiguration | undefined;
|
|
164
164
|
setActiveLoginOverride(activeLoginOverride: LoginState): void;
|
|
165
|
+
setProfile(profile: ProfileResource | undefined): void;
|
|
165
166
|
getActiveLogin(): LoginState | undefined;
|
|
166
167
|
getLogins(): LoginState[];
|
|
167
168
|
createBinary(data: string | File | Blob | Uint8Array, filename: string | undefined, contentType: string, onProgress?: (e: ProgressEvent) => void): Promise<Binary>;
|
|
@@ -206,11 +207,15 @@ export declare class MockFetchClient {
|
|
|
206
207
|
private mockFhirHandler;
|
|
207
208
|
}
|
|
208
209
|
|
|
210
|
+
export declare interface MockSubManagerOptions {
|
|
211
|
+
mockRobustWebSocket?: boolean;
|
|
212
|
+
}
|
|
213
|
+
|
|
209
214
|
export declare class MockSubscriptionManager extends SubscriptionManager {
|
|
210
215
|
emitters: Map<string, SubscriptionEmitter>;
|
|
211
216
|
counts: Map<string, number>;
|
|
212
217
|
masterEmitter: SubscriptionEmitter;
|
|
213
|
-
constructor(medplum: MedplumClient,
|
|
218
|
+
constructor(medplum: MedplumClient, _wsUrl: string, options?: MockSubManagerOptions);
|
|
214
219
|
addCriteria(criteria: string): SubscriptionEmitter;
|
|
215
220
|
removeCriteria(criteria: string): void;
|
|
216
221
|
closeWebSocket(): void;
|