@medplum/fhir-router 2.0.25 → 2.0.27

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.
@@ -96,7 +96,7 @@ export interface FhirRepository {
96
96
  * @param searchRequest The FHIR search request.
97
97
  * @returns The search results.
98
98
  */
99
- search<T extends Resource>(searchRequest: SearchRequest): Promise<Bundle<T>>;
99
+ search<T extends Resource>(searchRequest: SearchRequest<T>): Promise<Bundle<T>>;
100
100
  /**
101
101
  * Searches for a single FHIR resource.
102
102
  *
@@ -168,6 +168,6 @@ export declare class MemoryRepository extends BaseRepository implements FhirRepo
168
168
  readReferences(references: readonly Reference[]): Promise<(Resource | OperationOutcomeError)[]>;
169
169
  readHistory<T extends Resource>(resourceType: string, id: string): Promise<Bundle<T>>;
170
170
  readVersion<T extends Resource>(resourceType: string, id: string, versionId: string): Promise<T>;
171
- search<T extends Resource>(searchRequest: SearchRequest): Promise<Bundle<T>>;
171
+ search<T extends Resource>(searchRequest: SearchRequest<T>): Promise<Bundle<T>>;
172
172
  deleteResource(resourceType: string, id: string): Promise<void>;
173
173
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/fhir-router",
3
- "version": "2.0.25",
3
+ "version": "2.0.27",
4
4
  "description": "Medplum FHIR Router",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",
@@ -10,6 +10,9 @@
10
10
  "url": "https://github.com/medplum/medplum.git",
11
11
  "directory": "packages/fhir-router"
12
12
  },
13
+ "engines": {
14
+ "node": ">=18.0.0"
15
+ },
13
16
  "scripts": {
14
17
  "clean": "rimraf dist",
15
18
  "build": "npm run clean && tsc --project tsconfig.build.json && node esbuild.mjs",
@@ -20,7 +23,7 @@
20
23
  "@medplum/definitions": "*",
21
24
  "@medplum/fhirtypes": "*",
22
25
  "dataloader": "2.2.2",
23
- "graphql": "16.6.0",
26
+ "graphql": "16.7.1",
24
27
  "rfc6902": "5.0.1"
25
28
  },
26
29
  "main": "dist/cjs/index.cjs",