@openmrs/esm-framework 3.2.1-pre.1104 → 3.2.1-pre.1105
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/openmrs-esm-framework.js +1 -1
- package/dist/openmrs-esm-framework.js.map +1 -1
- package/docs/API.md +33 -24
- package/docs/interfaces/LoggedInUser.md +12 -12
- package/docs/interfaces/LoggedInUserFetchResponse.md +2 -2
- package/docs/interfaces/Person.md +3 -3
- package/docs/interfaces/Privilege.md +4 -4
- package/docs/interfaces/Role.md +3 -3
- package/docs/interfaces/Session.md +92 -0
- package/docs/interfaces/SessionLocation.md +3 -3
- package/package.json +13 -13
- package/docs/interfaces/SessionUser.md +0 -92
- package/docs/interfaces/UnauthenticatedUser.md +0 -52
- package/docs/interfaces/User.md +0 -107
package/docs/API.md
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
- [useCurrentPatient](API.md#usecurrentpatient)
|
|
26
26
|
- [useLocations](API.md#uselocations)
|
|
27
27
|
- [usePatient](API.md#usepatient)
|
|
28
|
+
- [useSession](API.md#usesession)
|
|
28
29
|
- [useSessionUser](API.md#usesessionuser)
|
|
29
30
|
- [useVisit](API.md#usevisit)
|
|
30
31
|
- [useVisitTypes](API.md#usevisittypes)
|
|
@@ -319,16 +320,6 @@ ___
|
|
|
319
320
|
|
|
320
321
|
___
|
|
321
322
|
|
|
322
|
-
### LoggedInUserData
|
|
323
|
-
|
|
324
|
-
Ƭ **LoggedInUserData**: [`UnauthenticatedUser`](interfaces/UnauthenticatedUser.md) & { `user?`: [`LoggedInUser`](interfaces/LoggedInUser.md) }
|
|
325
|
-
|
|
326
|
-
#### Defined in
|
|
327
|
-
|
|
328
|
-
[packages/framework/esm-api/src/types/fetch.ts:7](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/fetch.ts#L7)
|
|
329
|
-
|
|
330
|
-
___
|
|
331
|
-
|
|
332
323
|
### ProvidedConfig
|
|
333
324
|
|
|
334
325
|
Ƭ **ProvidedConfig**: `Object`
|
|
@@ -728,9 +719,9 @@ leak and source of bugs.
|
|
|
728
719
|
|
|
729
720
|
#### Defined in
|
|
730
721
|
|
|
731
|
-
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:
|
|
722
|
+
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:57](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/current-user.ts#L57)
|
|
732
723
|
|
|
733
|
-
▸ **getCurrentUser**(`opts`): `Observable`<[`
|
|
724
|
+
▸ **getCurrentUser**(`opts`): `Observable`<[`Session`](interfaces/Session.md)\>
|
|
734
725
|
|
|
735
726
|
#### Parameters
|
|
736
727
|
|
|
@@ -740,11 +731,11 @@ leak and source of bugs.
|
|
|
740
731
|
|
|
741
732
|
#### Returns
|
|
742
733
|
|
|
743
|
-
`Observable`<[`
|
|
734
|
+
`Observable`<[`Session`](interfaces/Session.md)\>
|
|
744
735
|
|
|
745
736
|
#### Defined in
|
|
746
737
|
|
|
747
|
-
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:
|
|
738
|
+
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:58](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/current-user.ts#L58)
|
|
748
739
|
|
|
749
740
|
▸ **getCurrentUser**(`opts`): `Observable`<[`LoggedInUser`](interfaces/LoggedInUser.md)\>
|
|
750
741
|
|
|
@@ -760,7 +751,7 @@ leak and source of bugs.
|
|
|
760
751
|
|
|
761
752
|
#### Defined in
|
|
762
753
|
|
|
763
|
-
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:
|
|
754
|
+
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:61](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/current-user.ts#L61)
|
|
764
755
|
|
|
765
756
|
___
|
|
766
757
|
|
|
@@ -788,7 +779,7 @@ ___
|
|
|
788
779
|
|
|
789
780
|
#### Defined in
|
|
790
781
|
|
|
791
|
-
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:
|
|
782
|
+
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:136](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/current-user.ts#L136)
|
|
792
783
|
|
|
793
784
|
___
|
|
794
785
|
|
|
@@ -802,7 +793,7 @@ ___
|
|
|
802
793
|
|
|
803
794
|
#### Defined in
|
|
804
795
|
|
|
805
|
-
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:
|
|
796
|
+
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:145](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/current-user.ts#L145)
|
|
806
797
|
|
|
807
798
|
___
|
|
808
799
|
|
|
@@ -1011,7 +1002,7 @@ refetchCurrentUser()
|
|
|
1011
1002
|
|
|
1012
1003
|
#### Defined in
|
|
1013
1004
|
|
|
1014
|
-
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:
|
|
1005
|
+
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:115](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/current-user.ts#L115)
|
|
1015
1006
|
|
|
1016
1007
|
___
|
|
1017
1008
|
|
|
@@ -1053,7 +1044,7 @@ ___
|
|
|
1053
1044
|
|
|
1054
1045
|
#### Defined in
|
|
1055
1046
|
|
|
1056
|
-
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:
|
|
1047
|
+
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:157](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/current-user.ts#L157)
|
|
1057
1048
|
|
|
1058
1049
|
___
|
|
1059
1050
|
|
|
@@ -1190,13 +1181,13 @@ a route listener is set up to update the patient whenever the route changes.
|
|
|
1190
1181
|
|
|
1191
1182
|
___
|
|
1192
1183
|
|
|
1193
|
-
###
|
|
1184
|
+
### useSession
|
|
1194
1185
|
|
|
1195
|
-
▸ **
|
|
1186
|
+
▸ **useSession**(): ``null`` \| [`Session`](interfaces/Session.md)
|
|
1196
1187
|
|
|
1197
1188
|
#### Returns
|
|
1198
1189
|
|
|
1199
|
-
``null`` \| [`
|
|
1190
|
+
``null`` \| [`Session`](interfaces/Session.md)
|
|
1200
1191
|
|
|
1201
1192
|
#### Defined in
|
|
1202
1193
|
|
|
@@ -1204,6 +1195,22 @@ ___
|
|
|
1204
1195
|
|
|
1205
1196
|
___
|
|
1206
1197
|
|
|
1198
|
+
### useSessionUser
|
|
1199
|
+
|
|
1200
|
+
▸ `Const` **useSessionUser**(): ``null`` \| [`Session`](interfaces/Session.md)
|
|
1201
|
+
|
|
1202
|
+
**`deprecated`**
|
|
1203
|
+
|
|
1204
|
+
#### Returns
|
|
1205
|
+
|
|
1206
|
+
``null`` \| [`Session`](interfaces/Session.md)
|
|
1207
|
+
|
|
1208
|
+
#### Defined in
|
|
1209
|
+
|
|
1210
|
+
[packages/framework/esm-react-utils/src/useSessionUser.tsx:21](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/useSessionUser.tsx#L21)
|
|
1211
|
+
|
|
1212
|
+
___
|
|
1213
|
+
|
|
1207
1214
|
### useVisit
|
|
1208
1215
|
|
|
1209
1216
|
▸ **useVisit**(`patientUuid`): `VisitReturnType`
|
|
@@ -1253,7 +1260,9 @@ ___
|
|
|
1253
1260
|
| Name | Type |
|
|
1254
1261
|
| :------ | :------ |
|
|
1255
1262
|
| `requiredPrivilege` | `string` |
|
|
1256
|
-
| `user` |
|
|
1263
|
+
| `user` | `Object` |
|
|
1264
|
+
| `user.privileges` | [`Privilege`](interfaces/Privilege.md)[] |
|
|
1265
|
+
| `user.roles` | [`Role`](interfaces/Role.md)[] |
|
|
1257
1266
|
|
|
1258
1267
|
#### Returns
|
|
1259
1268
|
|
|
@@ -1261,7 +1270,7 @@ ___
|
|
|
1261
1270
|
|
|
1262
1271
|
#### Defined in
|
|
1263
1272
|
|
|
1264
|
-
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:
|
|
1273
|
+
[packages/framework/esm-api/src/shared-api-objects/current-user.ts:129](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/shared-api-objects/current-user.ts#L129)
|
|
1265
1274
|
|
|
1266
1275
|
___
|
|
1267
1276
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
#### Defined in
|
|
32
32
|
|
|
33
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
33
|
+
[packages/framework/esm-api/src/types/user-resource.ts:34](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L34)
|
|
34
34
|
|
|
35
35
|
___
|
|
36
36
|
|
|
@@ -40,7 +40,7 @@ ___
|
|
|
40
40
|
|
|
41
41
|
#### Defined in
|
|
42
42
|
|
|
43
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
43
|
+
[packages/framework/esm-api/src/types/user-resource.ts:25](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L25)
|
|
44
44
|
|
|
45
45
|
___
|
|
46
46
|
|
|
@@ -50,7 +50,7 @@ ___
|
|
|
50
50
|
|
|
51
51
|
#### Defined in
|
|
52
52
|
|
|
53
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
53
|
+
[packages/framework/esm-api/src/types/user-resource.ts:33](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L33)
|
|
54
54
|
|
|
55
55
|
___
|
|
56
56
|
|
|
@@ -60,7 +60,7 @@ ___
|
|
|
60
60
|
|
|
61
61
|
#### Defined in
|
|
62
62
|
|
|
63
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
63
|
+
[packages/framework/esm-api/src/types/user-resource.ts:29](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L29)
|
|
64
64
|
|
|
65
65
|
___
|
|
66
66
|
|
|
@@ -70,7 +70,7 @@ ___
|
|
|
70
70
|
|
|
71
71
|
#### Defined in
|
|
72
72
|
|
|
73
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
73
|
+
[packages/framework/esm-api/src/types/user-resource.ts:30](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L30)
|
|
74
74
|
|
|
75
75
|
___
|
|
76
76
|
|
|
@@ -80,7 +80,7 @@ ___
|
|
|
80
80
|
|
|
81
81
|
#### Defined in
|
|
82
82
|
|
|
83
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
83
|
+
[packages/framework/esm-api/src/types/user-resource.ts:32](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L32)
|
|
84
84
|
|
|
85
85
|
___
|
|
86
86
|
|
|
@@ -90,7 +90,7 @@ ___
|
|
|
90
90
|
|
|
91
91
|
#### Defined in
|
|
92
92
|
|
|
93
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
93
|
+
[packages/framework/esm-api/src/types/user-resource.ts:31](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L31)
|
|
94
94
|
|
|
95
95
|
___
|
|
96
96
|
|
|
@@ -100,17 +100,17 @@ ___
|
|
|
100
100
|
|
|
101
101
|
#### Defined in
|
|
102
102
|
|
|
103
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
103
|
+
[packages/framework/esm-api/src/types/user-resource.ts:27](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L27)
|
|
104
104
|
|
|
105
105
|
___
|
|
106
106
|
|
|
107
107
|
### userProperties
|
|
108
108
|
|
|
109
|
-
• **userProperties**: `any
|
|
109
|
+
• **userProperties**: ``null`` \| { `[key: string]`: `any`; }
|
|
110
110
|
|
|
111
111
|
#### Defined in
|
|
112
112
|
|
|
113
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
113
|
+
[packages/framework/esm-api/src/types/user-resource.ts:28](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L28)
|
|
114
114
|
|
|
115
115
|
___
|
|
116
116
|
|
|
@@ -120,7 +120,7 @@ ___
|
|
|
120
120
|
|
|
121
121
|
#### Defined in
|
|
122
122
|
|
|
123
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
123
|
+
[packages/framework/esm-api/src/types/user-resource.ts:26](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L26)
|
|
124
124
|
|
|
125
125
|
___
|
|
126
126
|
|
|
@@ -130,4 +130,4 @@ ___
|
|
|
130
130
|
|
|
131
131
|
#### Defined in
|
|
132
132
|
|
|
133
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
133
|
+
[packages/framework/esm-api/src/types/user-resource.ts:24](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L24)
|
|
@@ -64,7 +64,7 @@ ___
|
|
|
64
64
|
|
|
65
65
|
### data
|
|
66
66
|
|
|
67
|
-
• **data**: [`
|
|
67
|
+
• **data**: [`Session`](Session.md)
|
|
68
68
|
|
|
69
69
|
#### Overrides
|
|
70
70
|
|
|
@@ -72,7 +72,7 @@ ___
|
|
|
72
72
|
|
|
73
73
|
#### Defined in
|
|
74
74
|
|
|
75
|
-
[packages/framework/esm-api/src/types/fetch.ts:
|
|
75
|
+
[packages/framework/esm-api/src/types/fetch.ts:8](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/fetch.ts#L8)
|
|
76
76
|
|
|
77
77
|
___
|
|
78
78
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
21
|
+
[packages/framework/esm-api/src/types/user-resource.ts:46](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L46)
|
|
22
22
|
|
|
23
23
|
___
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ ___
|
|
|
28
28
|
|
|
29
29
|
#### Defined in
|
|
30
30
|
|
|
31
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
31
|
+
[packages/framework/esm-api/src/types/user-resource.ts:47](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L47)
|
|
32
32
|
|
|
33
33
|
___
|
|
34
34
|
|
|
@@ -38,4 +38,4 @@ ___
|
|
|
38
38
|
|
|
39
39
|
#### Defined in
|
|
40
40
|
|
|
41
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
41
|
+
[packages/framework/esm-api/src/types/user-resource.ts:45](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L45)
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
21
|
+
[packages/framework/esm-api/src/types/user-resource.ts:52](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L52)
|
|
22
22
|
|
|
23
23
|
___
|
|
24
24
|
|
|
25
25
|
### links
|
|
26
26
|
|
|
27
|
-
• **links**: `any`[]
|
|
27
|
+
• `Optional` **links**: `any`[]
|
|
28
28
|
|
|
29
29
|
#### Defined in
|
|
30
30
|
|
|
31
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
31
|
+
[packages/framework/esm-api/src/types/user-resource.ts:53](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L53)
|
|
32
32
|
|
|
33
33
|
___
|
|
34
34
|
|
|
@@ -38,4 +38,4 @@ ___
|
|
|
38
38
|
|
|
39
39
|
#### Defined in
|
|
40
40
|
|
|
41
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
41
|
+
[packages/framework/esm-api/src/types/user-resource.ts:51](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L51)
|
package/docs/interfaces/Role.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
21
|
+
[packages/framework/esm-api/src/types/user-resource.ts:58](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L58)
|
|
22
22
|
|
|
23
23
|
___
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ ___
|
|
|
28
28
|
|
|
29
29
|
#### Defined in
|
|
30
30
|
|
|
31
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
31
|
+
[packages/framework/esm-api/src/types/user-resource.ts:59](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L59)
|
|
32
32
|
|
|
33
33
|
___
|
|
34
34
|
|
|
@@ -38,4 +38,4 @@ ___
|
|
|
38
38
|
|
|
39
39
|
#### Defined in
|
|
40
40
|
|
|
41
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
41
|
+
[packages/framework/esm-api/src/types/user-resource.ts:57](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L57)
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / Session
|
|
2
|
+
|
|
3
|
+
# Interface: Session
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [allowedLocales](Session.md#allowedlocales)
|
|
10
|
+
- [authenticated](Session.md#authenticated)
|
|
11
|
+
- [currentProvider](Session.md#currentprovider)
|
|
12
|
+
- [locale](Session.md#locale)
|
|
13
|
+
- [sessionId](Session.md#sessionid)
|
|
14
|
+
- [sessionLocation](Session.md#sessionlocation)
|
|
15
|
+
- [user](Session.md#user)
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
### allowedLocales
|
|
20
|
+
|
|
21
|
+
• `Optional` **allowedLocales**: `string`[]
|
|
22
|
+
|
|
23
|
+
#### Defined in
|
|
24
|
+
|
|
25
|
+
[packages/framework/esm-api/src/types/user-resource.ts:14](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L14)
|
|
26
|
+
|
|
27
|
+
___
|
|
28
|
+
|
|
29
|
+
### authenticated
|
|
30
|
+
|
|
31
|
+
• **authenticated**: `boolean`
|
|
32
|
+
|
|
33
|
+
#### Defined in
|
|
34
|
+
|
|
35
|
+
[packages/framework/esm-api/src/types/user-resource.ts:15](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L15)
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### currentProvider
|
|
40
|
+
|
|
41
|
+
• `Optional` **currentProvider**: `Object`
|
|
42
|
+
|
|
43
|
+
#### Type declaration
|
|
44
|
+
|
|
45
|
+
| Name | Type |
|
|
46
|
+
| :------ | :------ |
|
|
47
|
+
| `identifier` | `string` |
|
|
48
|
+
| `uuid` | `string` |
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[packages/framework/esm-api/src/types/user-resource.ts:19](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L19)
|
|
53
|
+
|
|
54
|
+
___
|
|
55
|
+
|
|
56
|
+
### locale
|
|
57
|
+
|
|
58
|
+
• `Optional` **locale**: `string`
|
|
59
|
+
|
|
60
|
+
#### Defined in
|
|
61
|
+
|
|
62
|
+
[packages/framework/esm-api/src/types/user-resource.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L16)
|
|
63
|
+
|
|
64
|
+
___
|
|
65
|
+
|
|
66
|
+
### sessionId
|
|
67
|
+
|
|
68
|
+
• **sessionId**: `string`
|
|
69
|
+
|
|
70
|
+
#### Defined in
|
|
71
|
+
|
|
72
|
+
[packages/framework/esm-api/src/types/user-resource.ts:17](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L17)
|
|
73
|
+
|
|
74
|
+
___
|
|
75
|
+
|
|
76
|
+
### sessionLocation
|
|
77
|
+
|
|
78
|
+
• `Optional` **sessionLocation**: [`SessionLocation`](SessionLocation.md)
|
|
79
|
+
|
|
80
|
+
#### Defined in
|
|
81
|
+
|
|
82
|
+
[packages/framework/esm-api/src/types/user-resource.ts:20](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L20)
|
|
83
|
+
|
|
84
|
+
___
|
|
85
|
+
|
|
86
|
+
### user
|
|
87
|
+
|
|
88
|
+
• `Optional` **user**: [`LoggedInUser`](LoggedInUser.md)
|
|
89
|
+
|
|
90
|
+
#### Defined in
|
|
91
|
+
|
|
92
|
+
[packages/framework/esm-api/src/types/user-resource.ts:18](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L18)
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
21
|
+
[packages/framework/esm-api/src/types/user-resource.ts:40](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L40)
|
|
22
22
|
|
|
23
23
|
___
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ ___
|
|
|
28
28
|
|
|
29
29
|
#### Defined in
|
|
30
30
|
|
|
31
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
31
|
+
[packages/framework/esm-api/src/types/user-resource.ts:41](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L41)
|
|
32
32
|
|
|
33
33
|
___
|
|
34
34
|
|
|
@@ -38,4 +38,4 @@ ___
|
|
|
38
38
|
|
|
39
39
|
#### Defined in
|
|
40
40
|
|
|
41
|
-
[packages/framework/esm-api/src/types/user-resource.ts:
|
|
41
|
+
[packages/framework/esm-api/src/types/user-resource.ts:39](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L39)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-framework",
|
|
3
|
-
"version": "3.2.1-pre.
|
|
3
|
+
"version": "3.2.1-pre.1105",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"browser": "dist/openmrs-esm-framework.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@openmrs/esm-api": "^3.2.1-pre.
|
|
39
|
-
"@openmrs/esm-breadcrumbs": "^3.2.1-pre.
|
|
40
|
-
"@openmrs/esm-config": "^3.2.1-pre.
|
|
41
|
-
"@openmrs/esm-error-handling": "^3.2.1-pre.
|
|
42
|
-
"@openmrs/esm-extensions": "^3.2.1-pre.
|
|
43
|
-
"@openmrs/esm-globals": "^3.2.1-pre.
|
|
44
|
-
"@openmrs/esm-offline": "^3.2.1-pre.
|
|
45
|
-
"@openmrs/esm-react-utils": "^3.2.1-pre.
|
|
46
|
-
"@openmrs/esm-state": "^3.2.1-pre.
|
|
47
|
-
"@openmrs/esm-styleguide": "^3.2.1-pre.
|
|
48
|
-
"@openmrs/esm-utils": "^3.2.1-pre.
|
|
38
|
+
"@openmrs/esm-api": "^3.2.1-pre.1105",
|
|
39
|
+
"@openmrs/esm-breadcrumbs": "^3.2.1-pre.1105",
|
|
40
|
+
"@openmrs/esm-config": "^3.2.1-pre.1105",
|
|
41
|
+
"@openmrs/esm-error-handling": "^3.2.1-pre.1105",
|
|
42
|
+
"@openmrs/esm-extensions": "^3.2.1-pre.1105",
|
|
43
|
+
"@openmrs/esm-globals": "^3.2.1-pre.1105",
|
|
44
|
+
"@openmrs/esm-offline": "^3.2.1-pre.1105",
|
|
45
|
+
"@openmrs/esm-react-utils": "^3.2.1-pre.1105",
|
|
46
|
+
"@openmrs/esm-state": "^3.2.1-pre.1105",
|
|
47
|
+
"@openmrs/esm-styleguide": "^3.2.1-pre.1105",
|
|
48
|
+
"@openmrs/esm-utils": "^3.2.1-pre.1105",
|
|
49
49
|
"dayjs": "^1.10.7"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "80de5d8a252933f92f700748af88592ac54c9ca8"
|
|
52
52
|
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
[@openmrs/esm-framework](../API.md) / SessionUser
|
|
2
|
-
|
|
3
|
-
# Interface: SessionUser
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [allowedLocales](SessionUser.md#allowedlocales)
|
|
10
|
-
- [authenticated](SessionUser.md#authenticated)
|
|
11
|
-
- [currentProvider](SessionUser.md#currentprovider)
|
|
12
|
-
- [locale](SessionUser.md#locale)
|
|
13
|
-
- [sessionId](SessionUser.md#sessionid)
|
|
14
|
-
- [sessionLocation](SessionUser.md#sessionlocation)
|
|
15
|
-
- [user](SessionUser.md#user)
|
|
16
|
-
|
|
17
|
-
## Properties
|
|
18
|
-
|
|
19
|
-
### allowedLocales
|
|
20
|
-
|
|
21
|
-
• **allowedLocales**: `string`[]
|
|
22
|
-
|
|
23
|
-
#### Defined in
|
|
24
|
-
|
|
25
|
-
[packages/framework/esm-api/src/types/openmrs-resource.ts:8](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/openmrs-resource.ts#L8)
|
|
26
|
-
|
|
27
|
-
___
|
|
28
|
-
|
|
29
|
-
### authenticated
|
|
30
|
-
|
|
31
|
-
• **authenticated**: `boolean`
|
|
32
|
-
|
|
33
|
-
#### Defined in
|
|
34
|
-
|
|
35
|
-
[packages/framework/esm-api/src/types/openmrs-resource.ts:9](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/openmrs-resource.ts#L9)
|
|
36
|
-
|
|
37
|
-
___
|
|
38
|
-
|
|
39
|
-
### currentProvider
|
|
40
|
-
|
|
41
|
-
• **currentProvider**: `Object`
|
|
42
|
-
|
|
43
|
-
#### Type declaration
|
|
44
|
-
|
|
45
|
-
| Name | Type |
|
|
46
|
-
| :------ | :------ |
|
|
47
|
-
| `identifier` | `string` |
|
|
48
|
-
| `uuid` | `string` |
|
|
49
|
-
|
|
50
|
-
#### Defined in
|
|
51
|
-
|
|
52
|
-
[packages/framework/esm-api/src/types/openmrs-resource.ts:13](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/openmrs-resource.ts#L13)
|
|
53
|
-
|
|
54
|
-
___
|
|
55
|
-
|
|
56
|
-
### locale
|
|
57
|
-
|
|
58
|
-
• **locale**: `string`
|
|
59
|
-
|
|
60
|
-
#### Defined in
|
|
61
|
-
|
|
62
|
-
[packages/framework/esm-api/src/types/openmrs-resource.ts:10](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/openmrs-resource.ts#L10)
|
|
63
|
-
|
|
64
|
-
___
|
|
65
|
-
|
|
66
|
-
### sessionId
|
|
67
|
-
|
|
68
|
-
• **sessionId**: `string`
|
|
69
|
-
|
|
70
|
-
#### Defined in
|
|
71
|
-
|
|
72
|
-
[packages/framework/esm-api/src/types/openmrs-resource.ts:11](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/openmrs-resource.ts#L11)
|
|
73
|
-
|
|
74
|
-
___
|
|
75
|
-
|
|
76
|
-
### sessionLocation
|
|
77
|
-
|
|
78
|
-
• **sessionLocation**: `any`
|
|
79
|
-
|
|
80
|
-
#### Defined in
|
|
81
|
-
|
|
82
|
-
[packages/framework/esm-api/src/types/openmrs-resource.ts:14](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/openmrs-resource.ts#L14)
|
|
83
|
-
|
|
84
|
-
___
|
|
85
|
-
|
|
86
|
-
### user
|
|
87
|
-
|
|
88
|
-
• **user**: [`User`](User.md)
|
|
89
|
-
|
|
90
|
-
#### Defined in
|
|
91
|
-
|
|
92
|
-
[packages/framework/esm-api/src/types/openmrs-resource.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/openmrs-resource.ts#L12)
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
[@openmrs/esm-framework](../API.md) / UnauthenticatedUser
|
|
2
|
-
|
|
3
|
-
# Interface: UnauthenticatedUser
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [authenticated](UnauthenticatedUser.md#authenticated)
|
|
10
|
-
- [sessionId](UnauthenticatedUser.md#sessionid)
|
|
11
|
-
- [sessionLocation](UnauthenticatedUser.md#sessionlocation)
|
|
12
|
-
- [user](UnauthenticatedUser.md#user)
|
|
13
|
-
|
|
14
|
-
## Properties
|
|
15
|
-
|
|
16
|
-
### authenticated
|
|
17
|
-
|
|
18
|
-
• **authenticated**: `boolean`
|
|
19
|
-
|
|
20
|
-
#### Defined in
|
|
21
|
-
|
|
22
|
-
[packages/framework/esm-api/src/types/user-resource.ts:30](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L30)
|
|
23
|
-
|
|
24
|
-
___
|
|
25
|
-
|
|
26
|
-
### sessionId
|
|
27
|
-
|
|
28
|
-
• **sessionId**: `string`
|
|
29
|
-
|
|
30
|
-
#### Defined in
|
|
31
|
-
|
|
32
|
-
[packages/framework/esm-api/src/types/user-resource.ts:29](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L29)
|
|
33
|
-
|
|
34
|
-
___
|
|
35
|
-
|
|
36
|
-
### sessionLocation
|
|
37
|
-
|
|
38
|
-
• `Optional` **sessionLocation**: [`SessionLocation`](SessionLocation.md)
|
|
39
|
-
|
|
40
|
-
#### Defined in
|
|
41
|
-
|
|
42
|
-
[packages/framework/esm-api/src/types/user-resource.ts:32](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L32)
|
|
43
|
-
|
|
44
|
-
___
|
|
45
|
-
|
|
46
|
-
### user
|
|
47
|
-
|
|
48
|
-
• `Optional` **user**: [`LoggedInUser`](LoggedInUser.md)
|
|
49
|
-
|
|
50
|
-
#### Defined in
|
|
51
|
-
|
|
52
|
-
[packages/framework/esm-api/src/types/user-resource.ts:31](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L31)
|