@medplum/core 3.2.26 → 3.2.28
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 +3 -3
- package/dist/cjs/index.d.ts +31 -6
- package/dist/esm/index.d.ts +31 -6
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -417,10 +417,11 @@ export declare function checkForNull(value: unknown, path: string, issues: Opera
|
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
419
|
* Tests that a given version string is a valid existing Medplum release version.
|
|
420
|
+
* @param appName - The name of the app to check the version for.
|
|
420
421
|
* @param version - A version to be checked against the existing Medplum repo releases.
|
|
421
422
|
* @returns `true` if `version` is a valid semver version that corresponds to an existing release, otherwise `false`.
|
|
422
423
|
*/
|
|
423
|
-
export declare function checkIfValidMedplumVersion(version: string): Promise<boolean>;
|
|
424
|
+
export declare function checkIfValidMedplumVersion(appName: string, version: string): Promise<boolean>;
|
|
424
425
|
|
|
425
426
|
/**
|
|
426
427
|
* Clears the locally-cached `ReleaseManifest`s for all versions.
|
|
@@ -535,6 +536,8 @@ export declare const ContentType: {
|
|
|
535
536
|
readonly TEXT: "text/plain";
|
|
536
537
|
readonly TYPESCRIPT: "text/typescript";
|
|
537
538
|
readonly PING: "x-application/ping";
|
|
539
|
+
readonly XML: "text/xml";
|
|
540
|
+
readonly CDA_XML: "application/cda+xml";
|
|
538
541
|
};
|
|
539
542
|
|
|
540
543
|
/**
|
|
@@ -962,17 +965,22 @@ export declare const ExternalSecretSystems: {
|
|
|
962
965
|
};
|
|
963
966
|
|
|
964
967
|
/**
|
|
968
|
+
* Fetches the latest Medplum release version string.
|
|
969
|
+
* @param appName - The name of the app to fetch the latest version for.
|
|
965
970
|
* @returns A version string corresponding to the latest Medplum release version.
|
|
966
971
|
*/
|
|
967
|
-
export declare function fetchLatestVersionString(): Promise<string>;
|
|
972
|
+
export declare function fetchLatestVersionString(appName: string): Promise<string>;
|
|
968
973
|
|
|
969
974
|
export declare type FetchLike = (url: string, options?: any) => Promise<any>;
|
|
970
975
|
|
|
971
976
|
/**
|
|
977
|
+
* Fetches the manifest for a given Medplum release version.
|
|
978
|
+
* @param appName - The name of the app to fetch the manifest for.
|
|
972
979
|
* @param version - The version to fetch. If no `version` is provided, defaults to the `latest` version.
|
|
980
|
+
* @param params - An optional list of key-value pairs to be appended to the URL query string.
|
|
973
981
|
* @returns - The manifest for the specified or latest version.
|
|
974
982
|
*/
|
|
975
|
-
export declare function fetchVersionManifest(version?: string): Promise<ReleaseManifest>;
|
|
983
|
+
export declare function fetchVersionManifest(appName: string, version?: string, params?: Record<string, string>): Promise<ReleaseManifest>;
|
|
976
984
|
|
|
977
985
|
export declare const FHIRCAST_EVENT_NAMES: {
|
|
978
986
|
readonly 'Patient-open': "Patient-open";
|
|
@@ -1796,8 +1804,6 @@ export declare function getValueSliceName(value: any, slices: SliceDefinitionWit
|
|
|
1796
1804
|
*/
|
|
1797
1805
|
export declare function getWebSocketUrl(baseUrl: URL | string, path: string): string;
|
|
1798
1806
|
|
|
1799
|
-
export declare const GITHUB_RELEASES_URL = "https://api.github.com/repos/medplum/medplum/releases";
|
|
1800
|
-
|
|
1801
1807
|
/**
|
|
1802
1808
|
* Global schema singleton.
|
|
1803
1809
|
*/
|
|
@@ -2084,7 +2090,7 @@ export declare interface IncludeTarget {
|
|
|
2084
2090
|
modifier?: 'iterate';
|
|
2085
2091
|
}
|
|
2086
2092
|
|
|
2087
|
-
export declare function indexDefaultSearchParameters(bundle: Bundle): void;
|
|
2093
|
+
export declare function indexDefaultSearchParameters(bundle: StructureDefinition[] | Bundle): void;
|
|
2088
2094
|
|
|
2089
2095
|
/**
|
|
2090
2096
|
* An IndexedStructureDefinition is a lookup-optimized version of a StructureDefinition.
|
|
@@ -2186,6 +2192,7 @@ export declare interface InternalTypeSchema {
|
|
|
2186
2192
|
path: string;
|
|
2187
2193
|
title?: string;
|
|
2188
2194
|
url?: string;
|
|
2195
|
+
version?: string;
|
|
2189
2196
|
kind?: string;
|
|
2190
2197
|
description?: string;
|
|
2191
2198
|
elements: Record<string, InternalSchemaElement>;
|
|
@@ -2753,6 +2760,8 @@ export declare function matchesSearchRequest(resource: Resource, searchRequest:
|
|
|
2753
2760
|
|
|
2754
2761
|
export declare const MEDPLUM_CLI_CLIENT_ID = "medplum-cli";
|
|
2755
2762
|
|
|
2763
|
+
export declare const MEDPLUM_RELEASES_URL = "https://meta.medplum.com/releases";
|
|
2764
|
+
|
|
2756
2765
|
export declare const MEDPLUM_VERSION: string;
|
|
2757
2766
|
|
|
2758
2767
|
/**
|
|
@@ -4629,6 +4638,8 @@ export declare interface MedplumInfraConfig {
|
|
|
4629
4638
|
scaleOutCooldown: number;
|
|
4630
4639
|
};
|
|
4631
4640
|
environment?: StringMap;
|
|
4641
|
+
rdsIdsMajorVersionSuffix?: boolean;
|
|
4642
|
+
rdsPersistentParameterGroups?: boolean;
|
|
4632
4643
|
}
|
|
4633
4644
|
|
|
4634
4645
|
export declare class MedplumKeyValueClient {
|
|
@@ -4675,6 +4686,11 @@ export declare interface MedplumRequestOptions extends RequestInit {
|
|
|
4675
4686
|
* Optional max number of retries that should be made in the case of a failed request. Default is `2`.
|
|
4676
4687
|
*/
|
|
4677
4688
|
maxRetries?: number;
|
|
4689
|
+
/**
|
|
4690
|
+
* Optional flag to disable auto-batching for this specific request.
|
|
4691
|
+
* Only applies when the client is configured with auto-batching enabled.
|
|
4692
|
+
*/
|
|
4693
|
+
disableAutoBatch?: boolean;
|
|
4678
4694
|
}
|
|
4679
4695
|
|
|
4680
4696
|
export declare interface MedplumSourceInfraConfig {
|
|
@@ -4752,6 +4768,8 @@ export declare interface MedplumSourceInfraConfig {
|
|
|
4752
4768
|
scaleOutCooldown: ValueOrExternalSecret<number>;
|
|
4753
4769
|
};
|
|
4754
4770
|
environment?: StringMap;
|
|
4771
|
+
rdsIdsMajorVersionSuffix?: boolean;
|
|
4772
|
+
rdsPersistentParameterGroups?: boolean;
|
|
4755
4773
|
}
|
|
4756
4774
|
|
|
4757
4775
|
/**
|
|
@@ -6189,6 +6207,13 @@ export declare interface ValueSetExpandParams {
|
|
|
6189
6207
|
count?: number;
|
|
6190
6208
|
}
|
|
6191
6209
|
|
|
6210
|
+
/**
|
|
6211
|
+
* Checks if a newer version of Medplum is available and logs a warning if so.
|
|
6212
|
+
* @param appName - The name of the app to check the version for.
|
|
6213
|
+
* @param params - An optional list of key-value pairs to be appended to the URL query string.
|
|
6214
|
+
*/
|
|
6215
|
+
export declare function warnIfNewerVersionAvailable(appName: string, params?: Record<string, string>): Promise<void>;
|
|
6216
|
+
|
|
6192
6217
|
declare type WebSocketEventMap_2 = {
|
|
6193
6218
|
close: CloseEvent_2;
|
|
6194
6219
|
error: ErrorEvent_2;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -417,10 +417,11 @@ export declare function checkForNull(value: unknown, path: string, issues: Opera
|
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
419
|
* Tests that a given version string is a valid existing Medplum release version.
|
|
420
|
+
* @param appName - The name of the app to check the version for.
|
|
420
421
|
* @param version - A version to be checked against the existing Medplum repo releases.
|
|
421
422
|
* @returns `true` if `version` is a valid semver version that corresponds to an existing release, otherwise `false`.
|
|
422
423
|
*/
|
|
423
|
-
export declare function checkIfValidMedplumVersion(version: string): Promise<boolean>;
|
|
424
|
+
export declare function checkIfValidMedplumVersion(appName: string, version: string): Promise<boolean>;
|
|
424
425
|
|
|
425
426
|
/**
|
|
426
427
|
* Clears the locally-cached `ReleaseManifest`s for all versions.
|
|
@@ -535,6 +536,8 @@ export declare const ContentType: {
|
|
|
535
536
|
readonly TEXT: "text/plain";
|
|
536
537
|
readonly TYPESCRIPT: "text/typescript";
|
|
537
538
|
readonly PING: "x-application/ping";
|
|
539
|
+
readonly XML: "text/xml";
|
|
540
|
+
readonly CDA_XML: "application/cda+xml";
|
|
538
541
|
};
|
|
539
542
|
|
|
540
543
|
/**
|
|
@@ -962,17 +965,22 @@ export declare const ExternalSecretSystems: {
|
|
|
962
965
|
};
|
|
963
966
|
|
|
964
967
|
/**
|
|
968
|
+
* Fetches the latest Medplum release version string.
|
|
969
|
+
* @param appName - The name of the app to fetch the latest version for.
|
|
965
970
|
* @returns A version string corresponding to the latest Medplum release version.
|
|
966
971
|
*/
|
|
967
|
-
export declare function fetchLatestVersionString(): Promise<string>;
|
|
972
|
+
export declare function fetchLatestVersionString(appName: string): Promise<string>;
|
|
968
973
|
|
|
969
974
|
export declare type FetchLike = (url: string, options?: any) => Promise<any>;
|
|
970
975
|
|
|
971
976
|
/**
|
|
977
|
+
* Fetches the manifest for a given Medplum release version.
|
|
978
|
+
* @param appName - The name of the app to fetch the manifest for.
|
|
972
979
|
* @param version - The version to fetch. If no `version` is provided, defaults to the `latest` version.
|
|
980
|
+
* @param params - An optional list of key-value pairs to be appended to the URL query string.
|
|
973
981
|
* @returns - The manifest for the specified or latest version.
|
|
974
982
|
*/
|
|
975
|
-
export declare function fetchVersionManifest(version?: string): Promise<ReleaseManifest>;
|
|
983
|
+
export declare function fetchVersionManifest(appName: string, version?: string, params?: Record<string, string>): Promise<ReleaseManifest>;
|
|
976
984
|
|
|
977
985
|
export declare const FHIRCAST_EVENT_NAMES: {
|
|
978
986
|
readonly 'Patient-open': "Patient-open";
|
|
@@ -1796,8 +1804,6 @@ export declare function getValueSliceName(value: any, slices: SliceDefinitionWit
|
|
|
1796
1804
|
*/
|
|
1797
1805
|
export declare function getWebSocketUrl(baseUrl: URL | string, path: string): string;
|
|
1798
1806
|
|
|
1799
|
-
export declare const GITHUB_RELEASES_URL = "https://api.github.com/repos/medplum/medplum/releases";
|
|
1800
|
-
|
|
1801
1807
|
/**
|
|
1802
1808
|
* Global schema singleton.
|
|
1803
1809
|
*/
|
|
@@ -2084,7 +2090,7 @@ export declare interface IncludeTarget {
|
|
|
2084
2090
|
modifier?: 'iterate';
|
|
2085
2091
|
}
|
|
2086
2092
|
|
|
2087
|
-
export declare function indexDefaultSearchParameters(bundle: Bundle): void;
|
|
2093
|
+
export declare function indexDefaultSearchParameters(bundle: StructureDefinition[] | Bundle): void;
|
|
2088
2094
|
|
|
2089
2095
|
/**
|
|
2090
2096
|
* An IndexedStructureDefinition is a lookup-optimized version of a StructureDefinition.
|
|
@@ -2186,6 +2192,7 @@ export declare interface InternalTypeSchema {
|
|
|
2186
2192
|
path: string;
|
|
2187
2193
|
title?: string;
|
|
2188
2194
|
url?: string;
|
|
2195
|
+
version?: string;
|
|
2189
2196
|
kind?: string;
|
|
2190
2197
|
description?: string;
|
|
2191
2198
|
elements: Record<string, InternalSchemaElement>;
|
|
@@ -2753,6 +2760,8 @@ export declare function matchesSearchRequest(resource: Resource, searchRequest:
|
|
|
2753
2760
|
|
|
2754
2761
|
export declare const MEDPLUM_CLI_CLIENT_ID = "medplum-cli";
|
|
2755
2762
|
|
|
2763
|
+
export declare const MEDPLUM_RELEASES_URL = "https://meta.medplum.com/releases";
|
|
2764
|
+
|
|
2756
2765
|
export declare const MEDPLUM_VERSION: string;
|
|
2757
2766
|
|
|
2758
2767
|
/**
|
|
@@ -4629,6 +4638,8 @@ export declare interface MedplumInfraConfig {
|
|
|
4629
4638
|
scaleOutCooldown: number;
|
|
4630
4639
|
};
|
|
4631
4640
|
environment?: StringMap;
|
|
4641
|
+
rdsIdsMajorVersionSuffix?: boolean;
|
|
4642
|
+
rdsPersistentParameterGroups?: boolean;
|
|
4632
4643
|
}
|
|
4633
4644
|
|
|
4634
4645
|
export declare class MedplumKeyValueClient {
|
|
@@ -4675,6 +4686,11 @@ export declare interface MedplumRequestOptions extends RequestInit {
|
|
|
4675
4686
|
* Optional max number of retries that should be made in the case of a failed request. Default is `2`.
|
|
4676
4687
|
*/
|
|
4677
4688
|
maxRetries?: number;
|
|
4689
|
+
/**
|
|
4690
|
+
* Optional flag to disable auto-batching for this specific request.
|
|
4691
|
+
* Only applies when the client is configured with auto-batching enabled.
|
|
4692
|
+
*/
|
|
4693
|
+
disableAutoBatch?: boolean;
|
|
4678
4694
|
}
|
|
4679
4695
|
|
|
4680
4696
|
export declare interface MedplumSourceInfraConfig {
|
|
@@ -4752,6 +4768,8 @@ export declare interface MedplumSourceInfraConfig {
|
|
|
4752
4768
|
scaleOutCooldown: ValueOrExternalSecret<number>;
|
|
4753
4769
|
};
|
|
4754
4770
|
environment?: StringMap;
|
|
4771
|
+
rdsIdsMajorVersionSuffix?: boolean;
|
|
4772
|
+
rdsPersistentParameterGroups?: boolean;
|
|
4755
4773
|
}
|
|
4756
4774
|
|
|
4757
4775
|
/**
|
|
@@ -6189,6 +6207,13 @@ export declare interface ValueSetExpandParams {
|
|
|
6189
6207
|
count?: number;
|
|
6190
6208
|
}
|
|
6191
6209
|
|
|
6210
|
+
/**
|
|
6211
|
+
* Checks if a newer version of Medplum is available and logs a warning if so.
|
|
6212
|
+
* @param appName - The name of the app to check the version for.
|
|
6213
|
+
* @param params - An optional list of key-value pairs to be appended to the URL query string.
|
|
6214
|
+
*/
|
|
6215
|
+
export declare function warnIfNewerVersionAvailable(appName: string, params?: Record<string, string>): Promise<void>;
|
|
6216
|
+
|
|
6192
6217
|
declare type WebSocketEventMap_2 = {
|
|
6193
6218
|
close: CloseEvent_2;
|
|
6194
6219
|
error: ErrorEvent_2;
|