@medplum/core 5.1.1 → 5.1.3
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 +7 -7
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/cjs/index.d.ts +79 -0
- package/dist/esm/index.d.ts +79 -0
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -3509,6 +3509,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3509
3509
|
private readonly onUnauthenticated?;
|
|
3510
3510
|
private readonly autoBatchTime;
|
|
3511
3511
|
private readonly autoBatchQueue;
|
|
3512
|
+
private readonly maxRetryTime;
|
|
3512
3513
|
private readonly refreshGracePeriod;
|
|
3513
3514
|
private subscriptionManager?;
|
|
3514
3515
|
private medplumServer?;
|
|
@@ -5290,6 +5291,16 @@ export declare interface MedplumClientOptions {
|
|
|
5290
5291
|
* Default value is `0`, which disables auto batching.
|
|
5291
5292
|
*/
|
|
5292
5293
|
autoBatchTime?: number;
|
|
5294
|
+
/**
|
|
5295
|
+
* The maximum time in milliseconds to wait between retries for failed requests.
|
|
5296
|
+
*
|
|
5297
|
+
* When the client encounters a rate-limited response (HTTP 429) or a server error (HTTP 5xx), it will automatically retry the request after a delay. The delay is calculated using an exponential backoff strategy, and this setting defines the maximum delay time.
|
|
5298
|
+
*
|
|
5299
|
+
* If the retry delay exceeds this maximum time, the client will not retry the request and will return the error response to the caller immediately. Setting this value to zero disables retries for failed requests.
|
|
5300
|
+
*
|
|
5301
|
+
* Default value is `2000` (2 seconds).
|
|
5302
|
+
*/
|
|
5303
|
+
maxRetryTime?: number;
|
|
5293
5304
|
/**
|
|
5294
5305
|
* The refresh grace period in milliseconds.
|
|
5295
5306
|
*
|
|
@@ -5511,6 +5522,40 @@ export declare interface MedplumInfraConfig {
|
|
|
5511
5522
|
scaleOutCooldown: number;
|
|
5512
5523
|
};
|
|
5513
5524
|
environment?: StringMap;
|
|
5525
|
+
workers?: {
|
|
5526
|
+
enabled?: string[];
|
|
5527
|
+
bullmq?: Record<string, unknown>;
|
|
5528
|
+
};
|
|
5529
|
+
workerServices?: {
|
|
5530
|
+
id: string;
|
|
5531
|
+
serverImage?: string;
|
|
5532
|
+
serverMemory?: number;
|
|
5533
|
+
serverCpu?: number;
|
|
5534
|
+
desiredCount: number;
|
|
5535
|
+
environment?: StringMap;
|
|
5536
|
+
workers?: {
|
|
5537
|
+
enabled?: string[];
|
|
5538
|
+
bullmq?: Record<string, unknown>;
|
|
5539
|
+
};
|
|
5540
|
+
fargateAutoScaling?: {
|
|
5541
|
+
minCapacity: number;
|
|
5542
|
+
maxCapacity: number;
|
|
5543
|
+
targetUtilizationPercent: number;
|
|
5544
|
+
scaleInCooldown: number;
|
|
5545
|
+
scaleOutCooldown: number;
|
|
5546
|
+
};
|
|
5547
|
+
additionalContainers?: {
|
|
5548
|
+
name: string;
|
|
5549
|
+
image: string;
|
|
5550
|
+
cpu?: number;
|
|
5551
|
+
memory?: number;
|
|
5552
|
+
essential?: boolean;
|
|
5553
|
+
command?: string[];
|
|
5554
|
+
environment?: {
|
|
5555
|
+
[key: string]: string;
|
|
5556
|
+
};
|
|
5557
|
+
}[];
|
|
5558
|
+
}[];
|
|
5514
5559
|
rdsIdsMajorVersionSuffix?: boolean;
|
|
5515
5560
|
rdsPersistentParameterGroups?: boolean;
|
|
5516
5561
|
fireLens?: {
|
|
@@ -5694,6 +5739,40 @@ export declare interface MedplumSourceInfraConfig {
|
|
|
5694
5739
|
scaleOutCooldown: ValueOrExternalSecret<number>;
|
|
5695
5740
|
};
|
|
5696
5741
|
environment?: StringMap;
|
|
5742
|
+
workers?: {
|
|
5743
|
+
enabled?: string[];
|
|
5744
|
+
bullmq?: Record<string, unknown>;
|
|
5745
|
+
};
|
|
5746
|
+
workerServices?: {
|
|
5747
|
+
id: ValueOrExternalSecret<string>;
|
|
5748
|
+
serverImage?: ValueOrExternalSecret<string>;
|
|
5749
|
+
serverMemory?: ValueOrExternalSecret<number>;
|
|
5750
|
+
serverCpu?: ValueOrExternalSecret<number>;
|
|
5751
|
+
desiredCount: ValueOrExternalSecret<number>;
|
|
5752
|
+
environment?: StringMap;
|
|
5753
|
+
workers?: {
|
|
5754
|
+
enabled?: string[];
|
|
5755
|
+
bullmq?: Record<string, unknown>;
|
|
5756
|
+
};
|
|
5757
|
+
fargateAutoScaling?: {
|
|
5758
|
+
minCapacity: ValueOrExternalSecret<number>;
|
|
5759
|
+
maxCapacity: ValueOrExternalSecret<number>;
|
|
5760
|
+
targetUtilizationPercent: ValueOrExternalSecret<number>;
|
|
5761
|
+
scaleInCooldown: ValueOrExternalSecret<number>;
|
|
5762
|
+
scaleOutCooldown: ValueOrExternalSecret<number>;
|
|
5763
|
+
};
|
|
5764
|
+
additionalContainers?: {
|
|
5765
|
+
name: ValueOrExternalSecret<string>;
|
|
5766
|
+
image: ValueOrExternalSecret<string>;
|
|
5767
|
+
cpu?: ValueOrExternalSecret<number>;
|
|
5768
|
+
memory?: ValueOrExternalSecret<number>;
|
|
5769
|
+
essential?: ValueOrExternalSecret<boolean>;
|
|
5770
|
+
command?: ValueOrExternalSecret<string>[];
|
|
5771
|
+
environment?: {
|
|
5772
|
+
[key: string]: ValueOrExternalSecret<string>;
|
|
5773
|
+
};
|
|
5774
|
+
}[];
|
|
5775
|
+
}[];
|
|
5697
5776
|
rdsIdsMajorVersionSuffix?: ValueOrExternalSecret<boolean>;
|
|
5698
5777
|
rdsPersistentParameterGroups?: ValueOrExternalSecret<boolean>;
|
|
5699
5778
|
fireLens?: {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -3509,6 +3509,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3509
3509
|
private readonly onUnauthenticated?;
|
|
3510
3510
|
private readonly autoBatchTime;
|
|
3511
3511
|
private readonly autoBatchQueue;
|
|
3512
|
+
private readonly maxRetryTime;
|
|
3512
3513
|
private readonly refreshGracePeriod;
|
|
3513
3514
|
private subscriptionManager?;
|
|
3514
3515
|
private medplumServer?;
|
|
@@ -5290,6 +5291,16 @@ export declare interface MedplumClientOptions {
|
|
|
5290
5291
|
* Default value is `0`, which disables auto batching.
|
|
5291
5292
|
*/
|
|
5292
5293
|
autoBatchTime?: number;
|
|
5294
|
+
/**
|
|
5295
|
+
* The maximum time in milliseconds to wait between retries for failed requests.
|
|
5296
|
+
*
|
|
5297
|
+
* When the client encounters a rate-limited response (HTTP 429) or a server error (HTTP 5xx), it will automatically retry the request after a delay. The delay is calculated using an exponential backoff strategy, and this setting defines the maximum delay time.
|
|
5298
|
+
*
|
|
5299
|
+
* If the retry delay exceeds this maximum time, the client will not retry the request and will return the error response to the caller immediately. Setting this value to zero disables retries for failed requests.
|
|
5300
|
+
*
|
|
5301
|
+
* Default value is `2000` (2 seconds).
|
|
5302
|
+
*/
|
|
5303
|
+
maxRetryTime?: number;
|
|
5293
5304
|
/**
|
|
5294
5305
|
* The refresh grace period in milliseconds.
|
|
5295
5306
|
*
|
|
@@ -5511,6 +5522,40 @@ export declare interface MedplumInfraConfig {
|
|
|
5511
5522
|
scaleOutCooldown: number;
|
|
5512
5523
|
};
|
|
5513
5524
|
environment?: StringMap;
|
|
5525
|
+
workers?: {
|
|
5526
|
+
enabled?: string[];
|
|
5527
|
+
bullmq?: Record<string, unknown>;
|
|
5528
|
+
};
|
|
5529
|
+
workerServices?: {
|
|
5530
|
+
id: string;
|
|
5531
|
+
serverImage?: string;
|
|
5532
|
+
serverMemory?: number;
|
|
5533
|
+
serverCpu?: number;
|
|
5534
|
+
desiredCount: number;
|
|
5535
|
+
environment?: StringMap;
|
|
5536
|
+
workers?: {
|
|
5537
|
+
enabled?: string[];
|
|
5538
|
+
bullmq?: Record<string, unknown>;
|
|
5539
|
+
};
|
|
5540
|
+
fargateAutoScaling?: {
|
|
5541
|
+
minCapacity: number;
|
|
5542
|
+
maxCapacity: number;
|
|
5543
|
+
targetUtilizationPercent: number;
|
|
5544
|
+
scaleInCooldown: number;
|
|
5545
|
+
scaleOutCooldown: number;
|
|
5546
|
+
};
|
|
5547
|
+
additionalContainers?: {
|
|
5548
|
+
name: string;
|
|
5549
|
+
image: string;
|
|
5550
|
+
cpu?: number;
|
|
5551
|
+
memory?: number;
|
|
5552
|
+
essential?: boolean;
|
|
5553
|
+
command?: string[];
|
|
5554
|
+
environment?: {
|
|
5555
|
+
[key: string]: string;
|
|
5556
|
+
};
|
|
5557
|
+
}[];
|
|
5558
|
+
}[];
|
|
5514
5559
|
rdsIdsMajorVersionSuffix?: boolean;
|
|
5515
5560
|
rdsPersistentParameterGroups?: boolean;
|
|
5516
5561
|
fireLens?: {
|
|
@@ -5694,6 +5739,40 @@ export declare interface MedplumSourceInfraConfig {
|
|
|
5694
5739
|
scaleOutCooldown: ValueOrExternalSecret<number>;
|
|
5695
5740
|
};
|
|
5696
5741
|
environment?: StringMap;
|
|
5742
|
+
workers?: {
|
|
5743
|
+
enabled?: string[];
|
|
5744
|
+
bullmq?: Record<string, unknown>;
|
|
5745
|
+
};
|
|
5746
|
+
workerServices?: {
|
|
5747
|
+
id: ValueOrExternalSecret<string>;
|
|
5748
|
+
serverImage?: ValueOrExternalSecret<string>;
|
|
5749
|
+
serverMemory?: ValueOrExternalSecret<number>;
|
|
5750
|
+
serverCpu?: ValueOrExternalSecret<number>;
|
|
5751
|
+
desiredCount: ValueOrExternalSecret<number>;
|
|
5752
|
+
environment?: StringMap;
|
|
5753
|
+
workers?: {
|
|
5754
|
+
enabled?: string[];
|
|
5755
|
+
bullmq?: Record<string, unknown>;
|
|
5756
|
+
};
|
|
5757
|
+
fargateAutoScaling?: {
|
|
5758
|
+
minCapacity: ValueOrExternalSecret<number>;
|
|
5759
|
+
maxCapacity: ValueOrExternalSecret<number>;
|
|
5760
|
+
targetUtilizationPercent: ValueOrExternalSecret<number>;
|
|
5761
|
+
scaleInCooldown: ValueOrExternalSecret<number>;
|
|
5762
|
+
scaleOutCooldown: ValueOrExternalSecret<number>;
|
|
5763
|
+
};
|
|
5764
|
+
additionalContainers?: {
|
|
5765
|
+
name: ValueOrExternalSecret<string>;
|
|
5766
|
+
image: ValueOrExternalSecret<string>;
|
|
5767
|
+
cpu?: ValueOrExternalSecret<number>;
|
|
5768
|
+
memory?: ValueOrExternalSecret<number>;
|
|
5769
|
+
essential?: ValueOrExternalSecret<boolean>;
|
|
5770
|
+
command?: ValueOrExternalSecret<string>[];
|
|
5771
|
+
environment?: {
|
|
5772
|
+
[key: string]: ValueOrExternalSecret<string>;
|
|
5773
|
+
};
|
|
5774
|
+
}[];
|
|
5775
|
+
}[];
|
|
5697
5776
|
rdsIdsMajorVersionSuffix?: ValueOrExternalSecret<boolean>;
|
|
5698
5777
|
rdsPersistentParameterGroups?: ValueOrExternalSecret<boolean>;
|
|
5699
5778
|
fireLens?: {
|