@medplum/fhir-router 4.0.3 → 4.1.0

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.
@@ -210,6 +210,7 @@ export declare type FhirResponse = [OperationOutcome] | [OperationOutcome, Resou
210
210
 
211
211
  export declare type FhirResponseOptions = {
212
212
  contentType?: string;
213
+ forceRawBinaryResponse?: boolean;
213
214
  };
214
215
 
215
216
  export declare type FhirRouteHandler = (req: FhirRequest, repo: FhirRepository, router: FhirRouter, options?: FhirRouteOptions) => Promise<FhirResponse>;
@@ -267,10 +268,12 @@ export declare type PathSegment = {
267
268
  param?: boolean;
268
269
  };
269
270
 
270
- export declare enum RepositoryMode {
271
- READER = "reader",
272
- WRITER = "writer"
273
- }
271
+ export declare const RepositoryMode: {
272
+ readonly READER: "reader";
273
+ readonly WRITER: "writer";
274
+ };
275
+
276
+ export declare type RepositoryMode = (typeof RepositoryMode)[keyof typeof RepositoryMode];
274
277
 
275
278
  /** @see http://hl7.org/fhir/R4/codesystem-restful-interaction.html */
276
279
  export declare type RestInteraction = CapabilityStatementRestInteraction['code'] | CapabilityStatementRestResourceInteraction['code'] | 'operation';
@@ -210,6 +210,7 @@ export declare type FhirResponse = [OperationOutcome] | [OperationOutcome, Resou
210
210
 
211
211
  export declare type FhirResponseOptions = {
212
212
  contentType?: string;
213
+ forceRawBinaryResponse?: boolean;
213
214
  };
214
215
 
215
216
  export declare type FhirRouteHandler = (req: FhirRequest, repo: FhirRepository, router: FhirRouter, options?: FhirRouteOptions) => Promise<FhirResponse>;
@@ -267,10 +268,12 @@ export declare type PathSegment = {
267
268
  param?: boolean;
268
269
  };
269
270
 
270
- export declare enum RepositoryMode {
271
- READER = "reader",
272
- WRITER = "writer"
273
- }
271
+ export declare const RepositoryMode: {
272
+ readonly READER: "reader";
273
+ readonly WRITER: "writer";
274
+ };
275
+
276
+ export declare type RepositoryMode = (typeof RepositoryMode)[keyof typeof RepositoryMode];
274
277
 
275
278
  /** @see http://hl7.org/fhir/R4/codesystem-restful-interaction.html */
276
279
  export declare type RestInteraction = CapabilityStatementRestInteraction['code'] | CapabilityStatementRestResourceInteraction['code'] | 'operation';