@medplum/core 5.1.14 → 5.1.16
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 +6 -6
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +13 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.mjs +5 -5
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -2133,6 +2133,8 @@ export declare function getDisplayString(resource: Resource): string;
|
|
|
2133
2133
|
*/
|
|
2134
2134
|
export declare function getElementDefinition(typeName: string, propertyName: string, profileUrl?: string): InternalSchemaElement | undefined;
|
|
2135
2135
|
|
|
2136
|
+
export declare function getElementDefinitionForPath(typeName: string, path: string, profileUrl?: string): InternalSchemaElement | undefined;
|
|
2137
|
+
|
|
2136
2138
|
/**
|
|
2137
2139
|
* Returns an element definition from mapping of elements by property name.
|
|
2138
2140
|
* @param elements - A mapping of property names to element definitions
|
|
@@ -5053,6 +5055,17 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
5053
5055
|
getLogins(): LoginState[];
|
|
5054
5056
|
private addLogin;
|
|
5055
5057
|
private refreshProfile;
|
|
5058
|
+
/**
|
|
5059
|
+
* Updates the persisted login state for the active login with the live project name.
|
|
5060
|
+
*
|
|
5061
|
+
* The `display` on a stored {@link LoginState} is a snapshot captured at login time, so it goes
|
|
5062
|
+
* stale if the project is later renamed. After `auth/me` resolves we have the current `Project`
|
|
5063
|
+
* resource, so we write its name back into both the active login and the logins list. Because the
|
|
5064
|
+
* active token is scoped to a single project, this is the only project whose name we can refresh;
|
|
5065
|
+
* each login's display therefore self-heals the next time that login is used (e.g. the account
|
|
5066
|
+
* switcher in HeaderDropdown).
|
|
5067
|
+
*/
|
|
5068
|
+
private syncStoredLoginProject;
|
|
5056
5069
|
/**
|
|
5057
5070
|
* Returns true if the client is waiting for initial authentication.
|
|
5058
5071
|
* @returns True if the client is waiting for initial authentication.
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2133,6 +2133,8 @@ export declare function getDisplayString(resource: Resource): string;
|
|
|
2133
2133
|
*/
|
|
2134
2134
|
export declare function getElementDefinition(typeName: string, propertyName: string, profileUrl?: string): InternalSchemaElement | undefined;
|
|
2135
2135
|
|
|
2136
|
+
export declare function getElementDefinitionForPath(typeName: string, path: string, profileUrl?: string): InternalSchemaElement | undefined;
|
|
2137
|
+
|
|
2136
2138
|
/**
|
|
2137
2139
|
* Returns an element definition from mapping of elements by property name.
|
|
2138
2140
|
* @param elements - A mapping of property names to element definitions
|
|
@@ -5053,6 +5055,17 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
5053
5055
|
getLogins(): LoginState[];
|
|
5054
5056
|
private addLogin;
|
|
5055
5057
|
private refreshProfile;
|
|
5058
|
+
/**
|
|
5059
|
+
* Updates the persisted login state for the active login with the live project name.
|
|
5060
|
+
*
|
|
5061
|
+
* The `display` on a stored {@link LoginState} is a snapshot captured at login time, so it goes
|
|
5062
|
+
* stale if the project is later renamed. After `auth/me` resolves we have the current `Project`
|
|
5063
|
+
* resource, so we write its name back into both the active login and the logins list. Because the
|
|
5064
|
+
* active token is scoped to a single project, this is the only project whose name we can refresh;
|
|
5065
|
+
* each login's display therefore self-heals the next time that login is used (e.g. the account
|
|
5066
|
+
* switcher in HeaderDropdown).
|
|
5067
|
+
*/
|
|
5068
|
+
private syncStoredLoginProject;
|
|
5056
5069
|
/**
|
|
5057
5070
|
* Returns true if the client is waiting for initial authentication.
|
|
5058
5071
|
* @returns True if the client is waiting for initial authentication.
|