@openmrs/esm-framework 10.0.1-pre.5607 → 10.0.1-pre.5616
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/.turbo/turbo-build.log +1 -1
- package/docs/API.md +26 -26
- package/docs/classes/OpenmrsFetchError.md +4 -4
- package/docs/functions/clearCurrentUser.md +1 -1
- package/docs/functions/getCurrentUser.md +5 -4
- package/docs/functions/getLoggedInUser.md +1 -1
- package/docs/functions/getSessionLocation.md +1 -1
- package/docs/functions/getSessionStore.md +1 -1
- package/docs/functions/refetchCurrentUser.md +7 -2
- package/docs/functions/setSessionLocation.md +3 -3
- package/docs/functions/setUserLanguage.md +1 -1
- package/docs/functions/setUserProperties.md +1 -1
- package/docs/functions/userHasAccess.md +1 -1
- package/docs/interfaces/FetchConfig.md +11 -3
- package/docs/interfaces/FetchError.md +3 -3
- package/docs/interfaces/FetchHeaders.md +1 -1
- package/docs/interfaces/FetchResponseJson.md +1 -1
- package/docs/type-aliases/UnloadedSessionStore.md +10 -0
- package/package.json +19 -19
package/.turbo/turbo-build.log
CHANGED
package/docs/API.md
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
# O3 Framework
|
|
2
2
|
|
|
3
|
+
## Config Validation
|
|
4
|
+
|
|
5
|
+
- [validator](functions/validator.md)
|
|
6
|
+
- [inRange](functions/inRange.md)
|
|
7
|
+
- [isUrlWithTemplateParameters](functions/isUrlWithTemplateParameters.md)
|
|
8
|
+
- [oneOf](functions/oneOf.md)
|
|
9
|
+
|
|
10
|
+
## Context
|
|
11
|
+
|
|
12
|
+
- [registerContext](functions/registerContext.md)
|
|
13
|
+
- [unregisterContext](functions/unregisterContext.md)
|
|
14
|
+
- [getContext](functions/getContext.md)
|
|
15
|
+
- [updateContext](functions/updateContext.md)
|
|
16
|
+
- [subscribeToContext](functions/subscribeToContext.md)
|
|
17
|
+
- [OpenmrsAppContext](functions/OpenmrsAppContext.md)
|
|
18
|
+
- [OpenmrsAppContextProps](interfaces/OpenmrsAppContextProps.md)
|
|
19
|
+
- [useAppContext](functions/useAppContext.md)
|
|
20
|
+
- [useDefineAppContext](functions/useDefineAppContext.md)
|
|
21
|
+
|
|
3
22
|
## API
|
|
4
23
|
|
|
5
|
-
- [makeUrl](functions/makeUrl.md)
|
|
6
|
-
- [openmrsFetch](functions/openmrsFetch.md)
|
|
7
|
-
- [OpenmrsFetchError](classes/OpenmrsFetchError.md)
|
|
8
|
-
- [FetchConfig](interfaces/FetchConfig.md)
|
|
9
|
-
- [FetchHeaders](interfaces/FetchHeaders.md)
|
|
10
|
-
- [FetchResponseJson](interfaces/FetchResponseJson.md)
|
|
11
|
-
- [FetchError](interfaces/FetchError.md)
|
|
12
24
|
- [getAttachmentByUuid](functions/getAttachmentByUuid.md)
|
|
13
25
|
- [getAttachments](functions/getAttachments.md)
|
|
14
26
|
- [getAttachmentsUrl](functions/getAttachmentsUrl.md)
|
|
@@ -50,27 +62,15 @@
|
|
|
50
62
|
- [setUserLanguage](functions/setUserLanguage.md)
|
|
51
63
|
- [setUserProperties](functions/setUserProperties.md)
|
|
52
64
|
- [userHasAccess](functions/userHasAccess.md)
|
|
65
|
+
- [makeUrl](functions/makeUrl.md)
|
|
66
|
+
- [openmrsFetch](functions/openmrsFetch.md)
|
|
67
|
+
- [OpenmrsFetchError](classes/OpenmrsFetchError.md)
|
|
68
|
+
- [FetchConfig](interfaces/FetchConfig.md)
|
|
69
|
+
- [FetchError](interfaces/FetchError.md)
|
|
70
|
+
- [FetchHeaders](interfaces/FetchHeaders.md)
|
|
71
|
+
- [FetchResponseJson](interfaces/FetchResponseJson.md)
|
|
53
72
|
- [useSession](functions/useSession.md)
|
|
54
73
|
|
|
55
|
-
## Config Validation
|
|
56
|
-
|
|
57
|
-
- [validator](functions/validator.md)
|
|
58
|
-
- [inRange](functions/inRange.md)
|
|
59
|
-
- [isUrlWithTemplateParameters](functions/isUrlWithTemplateParameters.md)
|
|
60
|
-
- [oneOf](functions/oneOf.md)
|
|
61
|
-
|
|
62
|
-
## Context
|
|
63
|
-
|
|
64
|
-
- [registerContext](functions/registerContext.md)
|
|
65
|
-
- [unregisterContext](functions/unregisterContext.md)
|
|
66
|
-
- [getContext](functions/getContext.md)
|
|
67
|
-
- [updateContext](functions/updateContext.md)
|
|
68
|
-
- [subscribeToContext](functions/subscribeToContext.md)
|
|
69
|
-
- [OpenmrsAppContext](functions/OpenmrsAppContext.md)
|
|
70
|
-
- [OpenmrsAppContextProps](interfaces/OpenmrsAppContextProps.md)
|
|
71
|
-
- [useAppContext](functions/useAppContext.md)
|
|
72
|
-
- [useDefineAppContext](functions/useDefineAppContext.md)
|
|
73
|
-
|
|
74
74
|
## Error Handling
|
|
75
75
|
|
|
76
76
|
- [reportError](functions/reportError.md)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: OpenmrsFetchError
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:
|
|
5
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:272](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L272)
|
|
6
6
|
|
|
7
7
|
## Extends
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:285](https://github
|
|
|
18
18
|
|
|
19
19
|
> **new OpenmrsFetchError**(`url`, `response`, `responseBody`, `requestStacktrace`): `OpenmrsFetchError`
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:
|
|
21
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:273](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L273)
|
|
22
22
|
|
|
23
23
|
#### Parameters
|
|
24
24
|
|
|
@@ -88,7 +88,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1076
|
|
|
88
88
|
|
|
89
89
|
> **response**: `Response`
|
|
90
90
|
|
|
91
|
-
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:
|
|
91
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:281](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L281)
|
|
92
92
|
|
|
93
93
|
#### Implementation of
|
|
94
94
|
|
|
@@ -100,7 +100,7 @@ Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:294](https://github
|
|
|
100
100
|
|
|
101
101
|
> **responseBody**: `null` \| `string` \| [`FetchResponseJson`](../interfaces/FetchResponseJson.md)
|
|
102
102
|
|
|
103
|
-
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:
|
|
103
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:282](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L282)
|
|
104
104
|
|
|
105
105
|
#### Implementation of
|
|
106
106
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **clearCurrentUser**(): `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-api/src/current-user.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:276](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L276)
|
|
8
8
|
|
|
9
9
|
Clears the current user session from the session store, setting the session
|
|
10
10
|
to an unauthenticated state. This is typically called during logout to reset
|
|
@@ -6,13 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
> **getCurrentUser**(): `Promise`\<[`Session`](../interfaces/Session.md)\>
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/framework/esm-api/src/current-user.ts:
|
|
9
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:91](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L91)
|
|
10
10
|
|
|
11
11
|
The getCurrentUser function returns a Promise that resolves once with the
|
|
12
12
|
current user's session. If the session hasn't been loaded, was loaded more than
|
|
13
13
|
a minute ago, or is in the middle of being refetched, the Promise waits for the
|
|
14
14
|
fetch in question rather than resolving with data that may be out of date. The
|
|
15
|
-
session it resolves with is therefore never more than a minute old
|
|
15
|
+
session it resolves with is therefore never more than a minute old, unless that fetch fails,
|
|
16
|
+
in which case it resolves with the last session that loaded.
|
|
16
17
|
|
|
17
18
|
The function accepts an optional `opts` object with an `includeAuthStatus` boolean
|
|
18
19
|
property that defaults to `true`. When `true`, the entire [Session](../interfaces/Session.md) object
|
|
@@ -43,7 +44,7 @@ console.log(session.authenticated)
|
|
|
43
44
|
|
|
44
45
|
> **getCurrentUser**(`opts`): `Promise`\<[`Session`](../interfaces/Session.md)\>
|
|
45
46
|
|
|
46
|
-
Defined in: [packages/framework/esm-api/src/current-user.ts:
|
|
47
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:98](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L98)
|
|
47
48
|
|
|
48
49
|
### Parameters
|
|
49
50
|
|
|
@@ -68,7 +69,7 @@ A Promise resolving to a [Session](../interfaces/Session.md) object.
|
|
|
68
69
|
|
|
69
70
|
> **getCurrentUser**(`opts`): `Promise`\<[`LoggedInUser`](../interfaces/LoggedInUser.md)\>
|
|
70
71
|
|
|
71
|
-
Defined in: [packages/framework/esm-api/src/current-user.ts:
|
|
72
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:105](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L105)
|
|
72
73
|
|
|
73
74
|
### Parameters
|
|
74
75
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **getLoggedInUser**(): `Promise`\<[`LoggedInUser`](../interfaces/LoggedInUser.md)\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-api/src/current-user.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:336](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L336)
|
|
8
8
|
|
|
9
9
|
Returns a Promise that resolves with the currently logged-in user object.
|
|
10
10
|
If the user is already loaded in the session store, the Promise resolves immediately.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **getSessionLocation**(): `Promise`\<`undefined` \| [`SessionLocation`](../interfaces/SessionLocation.md)\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-api/src/current-user.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:374](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L374)
|
|
8
8
|
|
|
9
9
|
Returns a Promise that resolves with the current session location, if one is set.
|
|
10
10
|
The session location represents the physical location where the user is currently
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **getSessionStore**(): `StoreApi`\<[`SessionStore`](../type-aliases/SessionStore.md)\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-api/src/current-user.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:150](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L150)
|
|
8
8
|
|
|
9
9
|
Returns the global session store containing the current user's session information.
|
|
10
10
|
If the session data is stale (older than 1 minute) or not yet loaded, this function
|
|
@@ -4,12 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
> **refetchCurrentUser**(`username?`, `password?`): `Promise`\<[`SessionStore`](../type-aliases/SessionStore.md)\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-api/src/current-user.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:237](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L237)
|
|
8
8
|
|
|
9
9
|
The `refetchCurrentUser` function causes a network request to redownload
|
|
10
10
|
the user. All subscribers to the session store will be notified of the
|
|
11
11
|
new user once the new version of the user object is downloaded.
|
|
12
12
|
|
|
13
|
+
If the server rejects the request as unauthenticated (401 or 403), the store records a
|
|
14
|
+
logged-out session. If the request fails for any other reason, a session that has already
|
|
15
|
+
loaded is kept; otherwise the store records the error.
|
|
16
|
+
|
|
13
17
|
## Parameters
|
|
14
18
|
|
|
15
19
|
### username?
|
|
@@ -24,7 +28,8 @@ new user once the new version of the user object is downloaded.
|
|
|
24
28
|
|
|
25
29
|
`Promise`\<[`SessionStore`](../type-aliases/SessionStore.md)\>
|
|
26
30
|
|
|
27
|
-
A Promise resolving to the updated session store state.
|
|
31
|
+
A Promise resolving to the updated session store state. It rejects with the
|
|
32
|
+
store state if the request fails for a reason other than authentication.
|
|
28
33
|
|
|
29
34
|
## Example
|
|
30
35
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
# Function: setSessionLocation()
|
|
4
4
|
|
|
5
|
-
> **setSessionLocation**(`locationUuid`, `abortController
|
|
5
|
+
> **setSessionLocation**(`locationUuid`, `abortController?`): `Promise`\<`any`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-api/src/current-user.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:396](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L396)
|
|
8
8
|
|
|
9
9
|
Sets the session location for the current user. The session location represents
|
|
10
10
|
the physical location where the user is working (e.g., a clinic or ward).
|
|
@@ -19,7 +19,7 @@ session store.
|
|
|
19
19
|
|
|
20
20
|
The UUID of the location to set as the session location.
|
|
21
21
|
|
|
22
|
-
### abortController
|
|
22
|
+
### abortController?
|
|
23
23
|
|
|
24
24
|
`AbortController`
|
|
25
25
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **setUserLanguage**(`data`): `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-api/src/current-user.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:181](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L181)
|
|
8
8
|
|
|
9
9
|
Sets the document's language attribute based on the user's locale preference
|
|
10
10
|
from the session data. This affects the HTML `lang` attribute which is used
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **setUserProperties**(`userUuid`, `userProperties`, `abortController?`): `Promise`\<[`SessionStore`](../type-aliases/SessionStore.md)\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-api/src/current-user.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:463](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L463)
|
|
8
8
|
|
|
9
9
|
Updates the user properties for a specific user. User properties are key-value
|
|
10
10
|
pairs that store user-specific settings and preferences. After updating the
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **userHasAccess**(`requiredPrivilege`, `user`): `boolean`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-api/src/current-user.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:304](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L304)
|
|
8
8
|
|
|
9
9
|
Checks whether the given user has access based on the required privilege(s).
|
|
10
10
|
A user has access if they have the required privilege(s) or if they are a
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: FetchConfig
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:
|
|
5
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:285](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L285)
|
|
6
6
|
|
|
7
7
|
## Extends
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:298](https://github
|
|
|
14
14
|
|
|
15
15
|
> `optional` **body**: `string` \| `FetchBody`
|
|
16
16
|
|
|
17
|
-
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:
|
|
17
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:287](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L287)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -50,7 +50,7 @@ A string indicating whether credentials will be sent with the request always, ne
|
|
|
50
50
|
|
|
51
51
|
> `optional` **headers**: [`FetchHeaders`](FetchHeaders.md)
|
|
52
52
|
|
|
53
|
-
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:
|
|
53
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:286](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L286)
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
@@ -164,6 +164,14 @@ A referrer policy to set request's referrerPolicy.
|
|
|
164
164
|
|
|
165
165
|
***
|
|
166
166
|
|
|
167
|
+
### rejectAuthFailure?
|
|
168
|
+
|
|
169
|
+
> `optional` **rejectAuthFailure**: `boolean`
|
|
170
|
+
|
|
171
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:288](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L288)
|
|
172
|
+
|
|
173
|
+
***
|
|
174
|
+
|
|
167
175
|
### signal?
|
|
168
176
|
|
|
169
177
|
> `optional` **signal**: `null` \| `AbortSignal`
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: FetchError
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:
|
|
5
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:305](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L305)
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:317](https://github
|
|
|
10
10
|
|
|
11
11
|
> **response**: `Response`
|
|
12
12
|
|
|
13
|
-
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:
|
|
13
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:306](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L306)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,4 +18,4 @@ Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:318](https://github
|
|
|
18
18
|
|
|
19
19
|
> **responseBody**: `null` \| `ResponseBody`
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:
|
|
21
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:307](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L307)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: FetchHeaders
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:
|
|
5
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:293](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L293)
|
|
6
6
|
|
|
7
7
|
## Indexable
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: FetchResponseJson
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:
|
|
5
|
+
Defined in: [packages/framework/esm-api/src/openmrs-fetch.ts:301](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L301)
|
|
6
6
|
|
|
7
7
|
## Indexable
|
|
8
8
|
|
|
@@ -8,6 +8,16 @@ Defined in: [packages/framework/esm-api/src/current-user.ts:15](https://github.c
|
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
+
### error?
|
|
12
|
+
|
|
13
|
+
> `optional` **error**: `Error`
|
|
14
|
+
|
|
15
|
+
Defined in: [packages/framework/esm-api/src/current-user.ts:19](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/current-user.ts#L19)
|
|
16
|
+
|
|
17
|
+
Set when fetching the session failed before any session had loaded.
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
11
21
|
### loaded
|
|
12
22
|
|
|
13
23
|
> **loaded**: `false`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-framework",
|
|
3
|
-
"version": "10.0.1-pre.
|
|
3
|
+
"version": "10.0.1-pre.5616",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -60,23 +60,23 @@
|
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@openmrs/esm-api": "10.0.1-pre.
|
|
64
|
-
"@openmrs/esm-config": "10.0.1-pre.
|
|
65
|
-
"@openmrs/esm-context": "10.0.1-pre.
|
|
66
|
-
"@openmrs/esm-dynamic-loading": "10.0.1-pre.
|
|
67
|
-
"@openmrs/esm-emr-api": "10.0.1-pre.
|
|
68
|
-
"@openmrs/esm-error-handling": "10.0.1-pre.
|
|
69
|
-
"@openmrs/esm-expression-evaluator": "10.0.1-pre.
|
|
70
|
-
"@openmrs/esm-extensions": "10.0.1-pre.
|
|
71
|
-
"@openmrs/esm-feature-flags": "10.0.1-pre.
|
|
72
|
-
"@openmrs/esm-globals": "10.0.1-pre.
|
|
73
|
-
"@openmrs/esm-navigation": "10.0.1-pre.
|
|
74
|
-
"@openmrs/esm-react-utils": "10.0.1-pre.
|
|
75
|
-
"@openmrs/esm-routes": "10.0.1-pre.
|
|
76
|
-
"@openmrs/esm-state": "10.0.1-pre.
|
|
77
|
-
"@openmrs/esm-styleguide": "10.0.1-pre.
|
|
78
|
-
"@openmrs/esm-translations": "10.0.1-pre.
|
|
79
|
-
"@openmrs/esm-utils": "10.0.1-pre.
|
|
63
|
+
"@openmrs/esm-api": "10.0.1-pre.5616",
|
|
64
|
+
"@openmrs/esm-config": "10.0.1-pre.5616",
|
|
65
|
+
"@openmrs/esm-context": "10.0.1-pre.5616",
|
|
66
|
+
"@openmrs/esm-dynamic-loading": "10.0.1-pre.5616",
|
|
67
|
+
"@openmrs/esm-emr-api": "10.0.1-pre.5616",
|
|
68
|
+
"@openmrs/esm-error-handling": "10.0.1-pre.5616",
|
|
69
|
+
"@openmrs/esm-expression-evaluator": "10.0.1-pre.5616",
|
|
70
|
+
"@openmrs/esm-extensions": "10.0.1-pre.5616",
|
|
71
|
+
"@openmrs/esm-feature-flags": "10.0.1-pre.5616",
|
|
72
|
+
"@openmrs/esm-globals": "10.0.1-pre.5616",
|
|
73
|
+
"@openmrs/esm-navigation": "10.0.1-pre.5616",
|
|
74
|
+
"@openmrs/esm-react-utils": "10.0.1-pre.5616",
|
|
75
|
+
"@openmrs/esm-routes": "10.0.1-pre.5616",
|
|
76
|
+
"@openmrs/esm-state": "10.0.1-pre.5616",
|
|
77
|
+
"@openmrs/esm-styleguide": "10.0.1-pre.5616",
|
|
78
|
+
"@openmrs/esm-translations": "10.0.1-pre.5616",
|
|
79
|
+
"@openmrs/esm-utils": "10.0.1-pre.5616"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"dayjs": "1.x",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"swr": "2.x"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@openmrs/typedoc-plugin-file-categories": "10.0.1-pre.
|
|
91
|
+
"@openmrs/typedoc-plugin-file-categories": "10.0.1-pre.5616",
|
|
92
92
|
"@swc/cli": "0.8.1",
|
|
93
93
|
"@swc/core": "1.15.21",
|
|
94
94
|
"@vitest/coverage-v8": "^4.1.2",
|