@medplum/fhir-router 5.0.9 → 5.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.
@@ -246,10 +246,12 @@ export declare function makeSimpleRequest(method: HttpMethod, path: string, body
246
246
  export declare class MemoryRepository extends FhirRepository<undefined> {
247
247
  private readonly resources;
248
248
  private readonly history;
249
+ private seeding;
249
250
  constructor();
251
+ withSeeding<T>(fn: () => T | Promise<T>): Promise<T>;
250
252
  clear(): void;
251
253
  setMode(_mode: RepositoryMode): void;
252
- createResource<T extends Resource>(resource: T): Promise<WithId<T>>;
254
+ createResource<T extends Resource>(resource: T, options?: CreateResourceOptions, update?: boolean): Promise<WithId<T>>;
253
255
  generateId(): string;
254
256
  updateResource<T extends Resource>(resource: T, options?: UpdateResourceOptions): Promise<WithId<T>>;
255
257
  patchResource<T extends Resource>(resourceType: T['resourceType'], id: string, patch: Operation[]): Promise<WithId<T>>;
@@ -246,10 +246,12 @@ export declare function makeSimpleRequest(method: HttpMethod, path: string, body
246
246
  export declare class MemoryRepository extends FhirRepository<undefined> {
247
247
  private readonly resources;
248
248
  private readonly history;
249
+ private seeding;
249
250
  constructor();
251
+ withSeeding<T>(fn: () => T | Promise<T>): Promise<T>;
250
252
  clear(): void;
251
253
  setMode(_mode: RepositoryMode): void;
252
- createResource<T extends Resource>(resource: T): Promise<WithId<T>>;
254
+ createResource<T extends Resource>(resource: T, options?: CreateResourceOptions, update?: boolean): Promise<WithId<T>>;
253
255
  generateId(): string;
254
256
  updateResource<T extends Resource>(resource: T, options?: UpdateResourceOptions): Promise<WithId<T>>;
255
257
  patchResource<T extends Resource>(resourceType: T['resourceType'], id: string, patch: Operation[]): Promise<WithId<T>>;