@medplum/core 4.5.2 → 5.0.1

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.
@@ -481,7 +481,9 @@ export declare function clearReleaseCache(): void;
481
481
  */
482
482
  export declare class ClientStorage implements IClientStorage {
483
483
  private readonly storage;
484
- constructor(storage?: Storage);
484
+ private readonly prefix;
485
+ constructor(storage?: Storage, prefix?: string);
486
+ makeKey(key: string): string;
485
487
  clear(): void;
486
488
  getString(key: string): string | undefined;
487
489
  setString(key: string, value: string | undefined): void;
@@ -2312,6 +2314,7 @@ export declare interface IClientStorage {
2312
2314
  setString(key: string, value: string | undefined): void;
2313
2315
  getObject<T>(key: string): T | undefined;
2314
2316
  setObject<T>(key: string, value: T): void;
2317
+ makeKey(key: string): string;
2315
2318
  }
2316
2319
 
2317
2320
  export declare interface ILogger {
@@ -2467,6 +2470,8 @@ export declare interface InternalTypeSchema {
2467
2470
  mandatoryProperties?: Set<string>;
2468
2471
  }
2469
2472
 
2473
+ export declare function invalidSearchOperator(operator: Operator, searchParameterCodeOrId: string): OperationOutcome;
2474
+
2470
2475
  export declare interface InviteRequest {
2471
2476
  resourceType: 'Patient' | 'Practitioner' | 'RelatedPerson';
2472
2477
  firstName: string;
@@ -4970,6 +4975,12 @@ export declare interface MedplumClientOptions {
4970
4975
  * This can be used to set custom headers such as Cookies or Authorization headers.
4971
4976
  */
4972
4977
  defaultHeaders?: Record<string, string>;
4978
+ /**
4979
+ * Prefix to add to all keys when using `localStorage` as the backing store for `ClientStorage` (the default option in the browser).
4980
+ *
4981
+ * Default is `''` (no prefix).
4982
+ */
4983
+ storagePrefix?: string;
4973
4984
  }
4974
4985
 
4975
4986
  export declare interface MedplumInfraConfig {
@@ -5004,6 +5015,7 @@ export declare interface MedplumInfraConfig {
5004
5015
  rdsInstanceType: string;
5005
5016
  rdsInstanceVersion?: string;
5006
5017
  rdsClusterParameters?: StringMap;
5018
+ rdsAutoMinorVersionUpgrade?: boolean;
5007
5019
  rdsSecretsArn?: string;
5008
5020
  rdsReaderInstanceType?: string;
5009
5021
  rdsProxyEnabled?: boolean;
@@ -5035,8 +5047,6 @@ export declare interface MedplumInfraConfig {
5035
5047
  };
5036
5048
  }[];
5037
5049
  containerRegistryCredentialsSecretArn?: string;
5038
- /** @deprecated Use containerInsightsV2 instead */
5039
- containerInsights?: boolean;
5040
5050
  containerInsightsV2?: 'enabled' | 'disabled' | 'enhanced';
5041
5051
  cloudTrailAlarms?: {
5042
5052
  logGroupName: string;
@@ -5164,6 +5174,7 @@ export declare interface MedplumSourceInfraConfig {
5164
5174
  rdsReaderInstanceType?: ValueOrExternalSecret<string>;
5165
5175
  rdsProxyEnabled?: ValueOrExternalSecret<boolean>;
5166
5176
  rdsClusterParameters?: StringMap;
5177
+ rdsAutoMinorVersionUpgrade?: ValueOrExternalSecret<boolean>;
5167
5178
  cacheNodeType?: ValueOrExternalSecret<string>;
5168
5179
  cacheSecurityGroupId?: ValueOrExternalSecret<string>;
5169
5180
  desiredServerCount: ValueOrExternalSecret<number>;
@@ -5192,8 +5203,6 @@ export declare interface MedplumSourceInfraConfig {
5192
5203
  };
5193
5204
  }[];
5194
5205
  containerRegistryCredentialsSecretArn?: ValueOrExternalSecret<string>;
5195
- /** @deprecated Use containerInsightsV2 instead */
5196
- containerInsights?: ValueOrExternalSecret<boolean>;
5197
5206
  containerInsightsV2?: ValueOrExternalSecret<'enabled' | 'disabled' | 'enhanced'>;
5198
5207
  cloudTrailAlarms?: {
5199
5208
  logGroupName: ValueOrExternalSecret<string>;
@@ -5209,8 +5218,8 @@ export declare interface MedplumSourceInfraConfig {
5209
5218
  scaleOutCooldown: ValueOrExternalSecret<number>;
5210
5219
  };
5211
5220
  environment?: StringMap;
5212
- rdsIdsMajorVersionSuffix?: boolean;
5213
- rdsPersistentParameterGroups?: boolean;
5221
+ rdsIdsMajorVersionSuffix?: ValueOrExternalSecret<boolean>;
5222
+ rdsPersistentParameterGroups?: ValueOrExternalSecret<boolean>;
5214
5223
  fireLens?: {
5215
5224
  enabled: true;
5216
5225
  logDriverConfig?: {
@@ -6708,6 +6717,9 @@ export declare class ParserBuilder {
6708
6717
 
6709
6718
  export declare interface ValidatorOptions {
6710
6719
  profile?: StructureDefinition;
6720
+ collect?: {
6721
+ tokens?: Record<string, TypedValueWithPath[]>;
6722
+ };
6711
6723
  }
6712
6724
 
6713
6725
  export declare type ValueOrExternalSecret<T extends ExternalSecretPrimitive> = T | ExternalSecret<T>;
@@ -481,7 +481,9 @@ export declare function clearReleaseCache(): void;
481
481
  */
482
482
  export declare class ClientStorage implements IClientStorage {
483
483
  private readonly storage;
484
- constructor(storage?: Storage);
484
+ private readonly prefix;
485
+ constructor(storage?: Storage, prefix?: string);
486
+ makeKey(key: string): string;
485
487
  clear(): void;
486
488
  getString(key: string): string | undefined;
487
489
  setString(key: string, value: string | undefined): void;
@@ -2312,6 +2314,7 @@ export declare interface IClientStorage {
2312
2314
  setString(key: string, value: string | undefined): void;
2313
2315
  getObject<T>(key: string): T | undefined;
2314
2316
  setObject<T>(key: string, value: T): void;
2317
+ makeKey(key: string): string;
2315
2318
  }
2316
2319
 
2317
2320
  export declare interface ILogger {
@@ -2467,6 +2470,8 @@ export declare interface InternalTypeSchema {
2467
2470
  mandatoryProperties?: Set<string>;
2468
2471
  }
2469
2472
 
2473
+ export declare function invalidSearchOperator(operator: Operator, searchParameterCodeOrId: string): OperationOutcome;
2474
+
2470
2475
  export declare interface InviteRequest {
2471
2476
  resourceType: 'Patient' | 'Practitioner' | 'RelatedPerson';
2472
2477
  firstName: string;
@@ -4970,6 +4975,12 @@ export declare interface MedplumClientOptions {
4970
4975
  * This can be used to set custom headers such as Cookies or Authorization headers.
4971
4976
  */
4972
4977
  defaultHeaders?: Record<string, string>;
4978
+ /**
4979
+ * Prefix to add to all keys when using `localStorage` as the backing store for `ClientStorage` (the default option in the browser).
4980
+ *
4981
+ * Default is `''` (no prefix).
4982
+ */
4983
+ storagePrefix?: string;
4973
4984
  }
4974
4985
 
4975
4986
  export declare interface MedplumInfraConfig {
@@ -5004,6 +5015,7 @@ export declare interface MedplumInfraConfig {
5004
5015
  rdsInstanceType: string;
5005
5016
  rdsInstanceVersion?: string;
5006
5017
  rdsClusterParameters?: StringMap;
5018
+ rdsAutoMinorVersionUpgrade?: boolean;
5007
5019
  rdsSecretsArn?: string;
5008
5020
  rdsReaderInstanceType?: string;
5009
5021
  rdsProxyEnabled?: boolean;
@@ -5035,8 +5047,6 @@ export declare interface MedplumInfraConfig {
5035
5047
  };
5036
5048
  }[];
5037
5049
  containerRegistryCredentialsSecretArn?: string;
5038
- /** @deprecated Use containerInsightsV2 instead */
5039
- containerInsights?: boolean;
5040
5050
  containerInsightsV2?: 'enabled' | 'disabled' | 'enhanced';
5041
5051
  cloudTrailAlarms?: {
5042
5052
  logGroupName: string;
@@ -5164,6 +5174,7 @@ export declare interface MedplumSourceInfraConfig {
5164
5174
  rdsReaderInstanceType?: ValueOrExternalSecret<string>;
5165
5175
  rdsProxyEnabled?: ValueOrExternalSecret<boolean>;
5166
5176
  rdsClusterParameters?: StringMap;
5177
+ rdsAutoMinorVersionUpgrade?: ValueOrExternalSecret<boolean>;
5167
5178
  cacheNodeType?: ValueOrExternalSecret<string>;
5168
5179
  cacheSecurityGroupId?: ValueOrExternalSecret<string>;
5169
5180
  desiredServerCount: ValueOrExternalSecret<number>;
@@ -5192,8 +5203,6 @@ export declare interface MedplumSourceInfraConfig {
5192
5203
  };
5193
5204
  }[];
5194
5205
  containerRegistryCredentialsSecretArn?: ValueOrExternalSecret<string>;
5195
- /** @deprecated Use containerInsightsV2 instead */
5196
- containerInsights?: ValueOrExternalSecret<boolean>;
5197
5206
  containerInsightsV2?: ValueOrExternalSecret<'enabled' | 'disabled' | 'enhanced'>;
5198
5207
  cloudTrailAlarms?: {
5199
5208
  logGroupName: ValueOrExternalSecret<string>;
@@ -5209,8 +5218,8 @@ export declare interface MedplumSourceInfraConfig {
5209
5218
  scaleOutCooldown: ValueOrExternalSecret<number>;
5210
5219
  };
5211
5220
  environment?: StringMap;
5212
- rdsIdsMajorVersionSuffix?: boolean;
5213
- rdsPersistentParameterGroups?: boolean;
5221
+ rdsIdsMajorVersionSuffix?: ValueOrExternalSecret<boolean>;
5222
+ rdsPersistentParameterGroups?: ValueOrExternalSecret<boolean>;
5214
5223
  fireLens?: {
5215
5224
  enabled: true;
5216
5225
  logDriverConfig?: {
@@ -6708,6 +6717,9 @@ export declare class ParserBuilder {
6708
6717
 
6709
6718
  export declare interface ValidatorOptions {
6710
6719
  profile?: StructureDefinition;
6720
+ collect?: {
6721
+ tokens?: Record<string, TypedValueWithPath[]>;
6722
+ };
6711
6723
  }
6712
6724
 
6713
6725
  export declare type ValueOrExternalSecret<T extends ExternalSecretPrimitive> = T | ExternalSecret<T>;