@medplum/core 3.2.26 → 3.2.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.
- package/dist/cjs/index.cjs +7 -7
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +18 -5
- package/dist/esm/index.d.ts +18 -5
- 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.
|
|
@@ -962,17 +963,22 @@ export declare const ExternalSecretSystems: {
|
|
|
962
963
|
};
|
|
963
964
|
|
|
964
965
|
/**
|
|
966
|
+
* Fetches the latest Medplum release version string.
|
|
967
|
+
* @param appName - The name of the app to fetch the latest version for.
|
|
965
968
|
* @returns A version string corresponding to the latest Medplum release version.
|
|
966
969
|
*/
|
|
967
|
-
export declare function fetchLatestVersionString(): Promise<string>;
|
|
970
|
+
export declare function fetchLatestVersionString(appName: string): Promise<string>;
|
|
968
971
|
|
|
969
972
|
export declare type FetchLike = (url: string, options?: any) => Promise<any>;
|
|
970
973
|
|
|
971
974
|
/**
|
|
975
|
+
* Fetches the manifest for a given Medplum release version.
|
|
976
|
+
* @param appName - The name of the app to fetch the manifest for.
|
|
972
977
|
* @param version - The version to fetch. If no `version` is provided, defaults to the `latest` version.
|
|
978
|
+
* @param params - An optional list of key-value pairs to be appended to the URL query string.
|
|
973
979
|
* @returns - The manifest for the specified or latest version.
|
|
974
980
|
*/
|
|
975
|
-
export declare function fetchVersionManifest(version?: string): Promise<ReleaseManifest>;
|
|
981
|
+
export declare function fetchVersionManifest(appName: string, version?: string, params?: Record<string, string>): Promise<ReleaseManifest>;
|
|
976
982
|
|
|
977
983
|
export declare const FHIRCAST_EVENT_NAMES: {
|
|
978
984
|
readonly 'Patient-open': "Patient-open";
|
|
@@ -1796,8 +1802,6 @@ export declare function getValueSliceName(value: any, slices: SliceDefinitionWit
|
|
|
1796
1802
|
*/
|
|
1797
1803
|
export declare function getWebSocketUrl(baseUrl: URL | string, path: string): string;
|
|
1798
1804
|
|
|
1799
|
-
export declare const GITHUB_RELEASES_URL = "https://api.github.com/repos/medplum/medplum/releases";
|
|
1800
|
-
|
|
1801
1805
|
/**
|
|
1802
1806
|
* Global schema singleton.
|
|
1803
1807
|
*/
|
|
@@ -2753,6 +2757,8 @@ export declare function matchesSearchRequest(resource: Resource, searchRequest:
|
|
|
2753
2757
|
|
|
2754
2758
|
export declare const MEDPLUM_CLI_CLIENT_ID = "medplum-cli";
|
|
2755
2759
|
|
|
2760
|
+
export declare const MEDPLUM_RELEASES_URL = "https://meta.medplum.com/releases";
|
|
2761
|
+
|
|
2756
2762
|
export declare const MEDPLUM_VERSION: string;
|
|
2757
2763
|
|
|
2758
2764
|
/**
|
|
@@ -6189,6 +6195,13 @@ export declare interface ValueSetExpandParams {
|
|
|
6189
6195
|
count?: number;
|
|
6190
6196
|
}
|
|
6191
6197
|
|
|
6198
|
+
/**
|
|
6199
|
+
* Checks if a newer version of Medplum is available and logs a warning if so.
|
|
6200
|
+
* @param appName - The name of the app to check the version for.
|
|
6201
|
+
* @param params - An optional list of key-value pairs to be appended to the URL query string.
|
|
6202
|
+
*/
|
|
6203
|
+
export declare function warnIfNewerVersionAvailable(appName: string, params?: Record<string, string>): Promise<void>;
|
|
6204
|
+
|
|
6192
6205
|
declare type WebSocketEventMap_2 = {
|
|
6193
6206
|
close: CloseEvent_2;
|
|
6194
6207
|
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.
|
|
@@ -962,17 +963,22 @@ export declare const ExternalSecretSystems: {
|
|
|
962
963
|
};
|
|
963
964
|
|
|
964
965
|
/**
|
|
966
|
+
* Fetches the latest Medplum release version string.
|
|
967
|
+
* @param appName - The name of the app to fetch the latest version for.
|
|
965
968
|
* @returns A version string corresponding to the latest Medplum release version.
|
|
966
969
|
*/
|
|
967
|
-
export declare function fetchLatestVersionString(): Promise<string>;
|
|
970
|
+
export declare function fetchLatestVersionString(appName: string): Promise<string>;
|
|
968
971
|
|
|
969
972
|
export declare type FetchLike = (url: string, options?: any) => Promise<any>;
|
|
970
973
|
|
|
971
974
|
/**
|
|
975
|
+
* Fetches the manifest for a given Medplum release version.
|
|
976
|
+
* @param appName - The name of the app to fetch the manifest for.
|
|
972
977
|
* @param version - The version to fetch. If no `version` is provided, defaults to the `latest` version.
|
|
978
|
+
* @param params - An optional list of key-value pairs to be appended to the URL query string.
|
|
973
979
|
* @returns - The manifest for the specified or latest version.
|
|
974
980
|
*/
|
|
975
|
-
export declare function fetchVersionManifest(version?: string): Promise<ReleaseManifest>;
|
|
981
|
+
export declare function fetchVersionManifest(appName: string, version?: string, params?: Record<string, string>): Promise<ReleaseManifest>;
|
|
976
982
|
|
|
977
983
|
export declare const FHIRCAST_EVENT_NAMES: {
|
|
978
984
|
readonly 'Patient-open': "Patient-open";
|
|
@@ -1796,8 +1802,6 @@ export declare function getValueSliceName(value: any, slices: SliceDefinitionWit
|
|
|
1796
1802
|
*/
|
|
1797
1803
|
export declare function getWebSocketUrl(baseUrl: URL | string, path: string): string;
|
|
1798
1804
|
|
|
1799
|
-
export declare const GITHUB_RELEASES_URL = "https://api.github.com/repos/medplum/medplum/releases";
|
|
1800
|
-
|
|
1801
1805
|
/**
|
|
1802
1806
|
* Global schema singleton.
|
|
1803
1807
|
*/
|
|
@@ -2753,6 +2757,8 @@ export declare function matchesSearchRequest(resource: Resource, searchRequest:
|
|
|
2753
2757
|
|
|
2754
2758
|
export declare const MEDPLUM_CLI_CLIENT_ID = "medplum-cli";
|
|
2755
2759
|
|
|
2760
|
+
export declare const MEDPLUM_RELEASES_URL = "https://meta.medplum.com/releases";
|
|
2761
|
+
|
|
2756
2762
|
export declare const MEDPLUM_VERSION: string;
|
|
2757
2763
|
|
|
2758
2764
|
/**
|
|
@@ -6189,6 +6195,13 @@ export declare interface ValueSetExpandParams {
|
|
|
6189
6195
|
count?: number;
|
|
6190
6196
|
}
|
|
6191
6197
|
|
|
6198
|
+
/**
|
|
6199
|
+
* Checks if a newer version of Medplum is available and logs a warning if so.
|
|
6200
|
+
* @param appName - The name of the app to check the version for.
|
|
6201
|
+
* @param params - An optional list of key-value pairs to be appended to the URL query string.
|
|
6202
|
+
*/
|
|
6203
|
+
export declare function warnIfNewerVersionAvailable(appName: string, params?: Record<string, string>): Promise<void>;
|
|
6204
|
+
|
|
6192
6205
|
declare type WebSocketEventMap_2 = {
|
|
6193
6206
|
close: CloseEvent_2;
|
|
6194
6207
|
error: ErrorEvent_2;
|