@openmrs/esm-framework 3.1.10-pre.92 → 3.1.11-pre.597
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/README.md +2 -8
- package/dist/openmrs-esm-framework.js +2 -21
- package/dist/openmrs-esm-framework.js.LICENSE.txt +16 -0
- package/dist/openmrs-esm-framework.js.map +1 -1
- package/docs/API.md +4381 -0
- package/docs/classes/OpenmrsFetchError.md +186 -0
- package/docs/enums/Type.md +85 -0
- package/docs/enums/VisitMode.md +41 -0
- package/docs/enums/VisitStatus.md +30 -0
- package/docs/interfaces/AppState.md +3 -0
- package/docs/interfaces/BreadcrumbRegistration.md +30 -0
- package/docs/interfaces/BreadcrumbSettings.md +70 -0
- package/docs/interfaces/CancelLoading.md +17 -0
- package/docs/interfaces/ClearDynamicRoutesMessage.md +29 -0
- package/docs/interfaces/ComponentConfig.md +30 -0
- package/docs/interfaces/ComponentDecoratorOptions.md +52 -0
- package/docs/interfaces/ComponentDefinition.md +101 -0
- package/docs/interfaces/Config.md +182 -0
- package/docs/interfaces/ConfigObject.md +182 -0
- package/docs/interfaces/ConfigSchema.md +45 -0
- package/docs/interfaces/ConfigStore.md +34 -0
- package/docs/interfaces/ConfigurableLinkProps.md +25 -0
- package/docs/interfaces/ConnectivityChangedEvent.md +19 -0
- package/docs/interfaces/CurrentPatientOptions.md +27 -0
- package/docs/interfaces/CurrentUserOptions.md +27 -0
- package/docs/interfaces/CurrentUserWithResponseOption.md +29 -0
- package/docs/interfaces/CurrentUserWithoutResponseOption.md +29 -0
- package/docs/interfaces/ExtensionComponentDefinition.md +153 -0
- package/docs/interfaces/ExtensionData.md +41 -0
- package/docs/interfaces/ExtensionDetails.md +81 -0
- package/docs/interfaces/ExtensionInfo.md +140 -0
- package/docs/interfaces/ExtensionInstance.md +19 -0
- package/docs/interfaces/ExtensionMeta.md +7 -0
- package/docs/interfaces/ExtensionProps.md +44 -0
- package/docs/interfaces/ExtensionRegistration.md +98 -0
- package/docs/interfaces/ExtensionSlotBaseProps.md +54 -0
- package/docs/interfaces/ExtensionSlotConfig.md +52 -0
- package/docs/interfaces/ExtensionSlotConfigObject.md +41 -0
- package/docs/interfaces/ExtensionSlotConfigsStore.md +32 -0
- package/docs/interfaces/ExtensionSlotConfigureValueObject.md +7 -0
- package/docs/interfaces/ExtensionSlotInfo.md +50 -0
- package/docs/interfaces/ExtensionSlotInstance.md +51 -0
- package/docs/interfaces/ExtensionStore.md +34 -0
- package/docs/interfaces/FHIRCode.md +30 -0
- package/docs/interfaces/FHIRRequestObj.md +41 -0
- package/docs/interfaces/FHIRResource.md +46 -0
- package/docs/interfaces/FetchHeaders.md +7 -0
- package/docs/interfaces/FetchResponse.md +285 -0
- package/docs/interfaces/ImplementerToolsConfigStore.md +19 -0
- package/docs/interfaces/ImportMap.md +19 -0
- package/docs/interfaces/LegacyAppExtensionDefinition.md +170 -0
- package/docs/interfaces/Lifecycle.md +68 -0
- package/docs/interfaces/Location.md +41 -0
- package/docs/interfaces/LoggedInUser.md +133 -0
- package/docs/interfaces/LoggedInUserFetchResponse.md +281 -0
- package/docs/interfaces/MessageServiceWorkerResult.md +47 -0
- package/docs/interfaces/ModernAppExtensionDefinition.md +196 -0
- package/docs/interfaces/NavigateOptions.md +19 -0
- package/docs/interfaces/NavigationContext.md +50 -0
- package/docs/interfaces/NetworkRequestFailedEvent.md +49 -0
- package/docs/interfaces/NewVisitPayload.md +74 -0
- package/docs/interfaces/OfflinePatientArgs.md +34 -0
- package/docs/interfaces/OfflinePatientDataSyncHandler.md +52 -0
- package/docs/interfaces/OfflinePatientDataSyncState.md +99 -0
- package/docs/interfaces/OfflinePatientDataSyncStore.md +37 -0
- package/docs/interfaces/OfflineSynchronizationStore.md +27 -0
- package/docs/interfaces/OmrsServiceWorkerEvent.md +31 -0
- package/docs/interfaces/OmrsServiceWorkerMessage.md +35 -0
- package/docs/interfaces/OnImportMapChangedMessage.md +40 -0
- package/docs/interfaces/OnlyThePatient.md +29 -0
- package/docs/interfaces/OpenmrsReactComponentProps.md +19 -0
- package/docs/interfaces/OpenmrsReactComponentState.md +41 -0
- package/docs/interfaces/OpenmrsResource.md +34 -0
- package/docs/interfaces/PageDefinition.md +149 -0
- package/docs/interfaces/PatientWithFullResponse.md +29 -0
- package/docs/interfaces/Person.md +41 -0
- package/docs/interfaces/PrecacheStaticDependenciesEvent.md +3 -0
- package/docs/interfaces/Privilege.md +41 -0
- package/docs/interfaces/QueueItemDescriptor.md +52 -0
- package/docs/interfaces/RegisterDynamicRouteMessage.md +51 -0
- package/docs/interfaces/ResourceLoader.md +23 -0
- package/docs/interfaces/RetryOptions.md +83 -0
- package/docs/interfaces/Role.md +41 -0
- package/docs/interfaces/SessionLocation.md +41 -0
- package/docs/interfaces/SessionUser.md +92 -0
- package/docs/interfaces/ShowNotificationEvent.md +63 -0
- package/docs/interfaces/ShowToastEvent.md +52 -0
- package/docs/interfaces/SpaConfig.md +77 -0
- package/docs/interfaces/SyncItem.md +92 -0
- package/docs/interfaces/SyncProcessOptions.md +69 -0
- package/docs/interfaces/UnauthenticatedUser.md +52 -0
- package/docs/interfaces/User.md +107 -0
- package/docs/interfaces/UserHasAccessProps.md +19 -0
- package/docs/interfaces/Visit.md +111 -0
- package/docs/interfaces/VisitItem.md +52 -0
- package/docs/interfaces/VisitType.md +41 -0
- package/docs/interfaces/WorkspaceItem.md +74 -0
- package/mock.tsx +253 -0
- package/package.json +15 -12
- package/src/index.ts +3 -1
- package/tsconfig.json +1 -0
- package/typedoc.json +7 -0
- package/webpack.config.js +4 -10
- package/src/set-public-path.ts +0 -3
- package/src/types.ts +0 -19
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / RetryOptions
|
|
2
|
+
|
|
3
|
+
# Interface: RetryOptions
|
|
4
|
+
|
|
5
|
+
Options for configuring the behavior of the [retry](../API.md#retry) function.
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Methods
|
|
10
|
+
|
|
11
|
+
- [getDelay](RetryOptions.md#getdelay)
|
|
12
|
+
- [onError](RetryOptions.md#onerror)
|
|
13
|
+
- [shouldRetry](RetryOptions.md#shouldretry)
|
|
14
|
+
|
|
15
|
+
## Methods
|
|
16
|
+
|
|
17
|
+
### getDelay
|
|
18
|
+
|
|
19
|
+
▸ `Optional` **getDelay**(`attempt`): `number`
|
|
20
|
+
|
|
21
|
+
Calculates the next delay (in milliseconds) before a retry attempt.
|
|
22
|
+
Returning a value for the inital attempt (`0`) delays the initial function invocation.
|
|
23
|
+
|
|
24
|
+
#### Parameters
|
|
25
|
+
|
|
26
|
+
| Name | Type | Description |
|
|
27
|
+
| :------ | :------ | :------ |
|
|
28
|
+
| `attempt` | `number` | The current (zero-based) retry attempt. `0` indicates the initial attempt. |
|
|
29
|
+
|
|
30
|
+
#### Returns
|
|
31
|
+
|
|
32
|
+
`number`
|
|
33
|
+
|
|
34
|
+
#### Defined in
|
|
35
|
+
|
|
36
|
+
[packages/framework/esm-utils/src/retry.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-utils/src/retry.ts#L16)
|
|
37
|
+
|
|
38
|
+
___
|
|
39
|
+
|
|
40
|
+
### onError
|
|
41
|
+
|
|
42
|
+
▸ `Optional` **onError**(`e`, `attempt`): `void`
|
|
43
|
+
|
|
44
|
+
Called when invoking the function resulted in an error.
|
|
45
|
+
Allows running side-effects on errors, e.g. logging.
|
|
46
|
+
|
|
47
|
+
#### Parameters
|
|
48
|
+
|
|
49
|
+
| Name | Type | Description |
|
|
50
|
+
| :------ | :------ | :------ |
|
|
51
|
+
| `e` | `any` | The error thrown by the function. |
|
|
52
|
+
| `attempt` | `number` | The current (zero-based) retry attempt. `0` indicates the initial attempt. |
|
|
53
|
+
|
|
54
|
+
#### Returns
|
|
55
|
+
|
|
56
|
+
`void`
|
|
57
|
+
|
|
58
|
+
#### Defined in
|
|
59
|
+
|
|
60
|
+
[packages/framework/esm-utils/src/retry.ts:23](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-utils/src/retry.ts#L23)
|
|
61
|
+
|
|
62
|
+
___
|
|
63
|
+
|
|
64
|
+
### shouldRetry
|
|
65
|
+
|
|
66
|
+
▸ `Optional` **shouldRetry**(`attempt`): `any`
|
|
67
|
+
|
|
68
|
+
Determines whether the retry function should retry executing the function after it failed
|
|
69
|
+
with an error on the current attempt.
|
|
70
|
+
|
|
71
|
+
#### Parameters
|
|
72
|
+
|
|
73
|
+
| Name | Type | Description |
|
|
74
|
+
| :------ | :------ | :------ |
|
|
75
|
+
| `attempt` | `number` | The current (zero-based) retry attempt. `0` indicates the initial attempt. |
|
|
76
|
+
|
|
77
|
+
#### Returns
|
|
78
|
+
|
|
79
|
+
`any`
|
|
80
|
+
|
|
81
|
+
#### Defined in
|
|
82
|
+
|
|
83
|
+
[packages/framework/esm-utils/src/retry.ts:10](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-utils/src/retry.ts#L10)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / Role
|
|
2
|
+
|
|
3
|
+
# Interface: Role
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [display](Role.md#display)
|
|
10
|
+
- [links](Role.md#links)
|
|
11
|
+
- [uuid](Role.md#uuid)
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### display
|
|
16
|
+
|
|
17
|
+
• **display**: `string`
|
|
18
|
+
|
|
19
|
+
#### Defined in
|
|
20
|
+
|
|
21
|
+
[packages/framework/esm-api/src/types/user-resource.ts:55](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L55)
|
|
22
|
+
|
|
23
|
+
___
|
|
24
|
+
|
|
25
|
+
### links
|
|
26
|
+
|
|
27
|
+
• **links**: `any`[]
|
|
28
|
+
|
|
29
|
+
#### Defined in
|
|
30
|
+
|
|
31
|
+
[packages/framework/esm-api/src/types/user-resource.ts:56](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L56)
|
|
32
|
+
|
|
33
|
+
___
|
|
34
|
+
|
|
35
|
+
### uuid
|
|
36
|
+
|
|
37
|
+
• **uuid**: `string`
|
|
38
|
+
|
|
39
|
+
#### Defined in
|
|
40
|
+
|
|
41
|
+
[packages/framework/esm-api/src/types/user-resource.ts:54](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L54)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / SessionLocation
|
|
2
|
+
|
|
3
|
+
# Interface: SessionLocation
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [display](SessionLocation.md#display)
|
|
10
|
+
- [links](SessionLocation.md#links)
|
|
11
|
+
- [uuid](SessionLocation.md#uuid)
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### display
|
|
16
|
+
|
|
17
|
+
• **display**: `string`
|
|
18
|
+
|
|
19
|
+
#### Defined in
|
|
20
|
+
|
|
21
|
+
[packages/framework/esm-api/src/types/user-resource.ts:37](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L37)
|
|
22
|
+
|
|
23
|
+
___
|
|
24
|
+
|
|
25
|
+
### links
|
|
26
|
+
|
|
27
|
+
• **links**: `any`[]
|
|
28
|
+
|
|
29
|
+
#### Defined in
|
|
30
|
+
|
|
31
|
+
[packages/framework/esm-api/src/types/user-resource.ts:38](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L38)
|
|
32
|
+
|
|
33
|
+
___
|
|
34
|
+
|
|
35
|
+
### uuid
|
|
36
|
+
|
|
37
|
+
• **uuid**: `string`
|
|
38
|
+
|
|
39
|
+
#### Defined in
|
|
40
|
+
|
|
41
|
+
[packages/framework/esm-api/src/types/user-resource.ts:36](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-api/src/types/user-resource.ts#L36)
|
|
@@ -0,0 +1,92 @@
|
|
|
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)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / ShowNotificationEvent
|
|
2
|
+
|
|
3
|
+
# Interface: ShowNotificationEvent
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [action](ShowNotificationEvent.md#action)
|
|
10
|
+
- [description](ShowNotificationEvent.md#description)
|
|
11
|
+
- [kind](ShowNotificationEvent.md#kind)
|
|
12
|
+
- [millis](ShowNotificationEvent.md#millis)
|
|
13
|
+
- [title](ShowNotificationEvent.md#title)
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### action
|
|
18
|
+
|
|
19
|
+
• `Optional` **action**: `any`
|
|
20
|
+
|
|
21
|
+
#### Defined in
|
|
22
|
+
|
|
23
|
+
[packages/framework/esm-globals/src/events.ts:61](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/events.ts#L61)
|
|
24
|
+
|
|
25
|
+
___
|
|
26
|
+
|
|
27
|
+
### description
|
|
28
|
+
|
|
29
|
+
• **description**: `any`
|
|
30
|
+
|
|
31
|
+
#### Defined in
|
|
32
|
+
|
|
33
|
+
[packages/framework/esm-globals/src/events.ts:52](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/events.ts#L52)
|
|
34
|
+
|
|
35
|
+
___
|
|
36
|
+
|
|
37
|
+
### kind
|
|
38
|
+
|
|
39
|
+
• `Optional` **kind**: ``"error"`` \| ``"info"`` \| ``"info-square"`` \| ``"success"`` \| ``"warning"`` \| ``"warning-alt"``
|
|
40
|
+
|
|
41
|
+
#### Defined in
|
|
42
|
+
|
|
43
|
+
[packages/framework/esm-globals/src/events.ts:53](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/events.ts#L53)
|
|
44
|
+
|
|
45
|
+
___
|
|
46
|
+
|
|
47
|
+
### millis
|
|
48
|
+
|
|
49
|
+
• `Optional` **millis**: `number`
|
|
50
|
+
|
|
51
|
+
#### Defined in
|
|
52
|
+
|
|
53
|
+
[packages/framework/esm-globals/src/events.ts:62](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/events.ts#L62)
|
|
54
|
+
|
|
55
|
+
___
|
|
56
|
+
|
|
57
|
+
### title
|
|
58
|
+
|
|
59
|
+
• `Optional` **title**: `string`
|
|
60
|
+
|
|
61
|
+
#### Defined in
|
|
62
|
+
|
|
63
|
+
[packages/framework/esm-globals/src/events.ts:60](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/events.ts#L60)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / ShowToastEvent
|
|
2
|
+
|
|
3
|
+
# Interface: ShowToastEvent
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [description](ShowToastEvent.md#description)
|
|
10
|
+
- [kind](ShowToastEvent.md#kind)
|
|
11
|
+
- [millis](ShowToastEvent.md#millis)
|
|
12
|
+
- [title](ShowToastEvent.md#title)
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### description
|
|
17
|
+
|
|
18
|
+
• **description**: `any`
|
|
19
|
+
|
|
20
|
+
#### Defined in
|
|
21
|
+
|
|
22
|
+
[packages/framework/esm-globals/src/events.ts:66](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/events.ts#L66)
|
|
23
|
+
|
|
24
|
+
___
|
|
25
|
+
|
|
26
|
+
### kind
|
|
27
|
+
|
|
28
|
+
• `Optional` **kind**: ``"error"`` \| ``"info"`` \| ``"info-square"`` \| ``"success"`` \| ``"warning"`` \| ``"warning-alt"``
|
|
29
|
+
|
|
30
|
+
#### Defined in
|
|
31
|
+
|
|
32
|
+
[packages/framework/esm-globals/src/events.ts:67](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/events.ts#L67)
|
|
33
|
+
|
|
34
|
+
___
|
|
35
|
+
|
|
36
|
+
### millis
|
|
37
|
+
|
|
38
|
+
• `Optional` **millis**: `number`
|
|
39
|
+
|
|
40
|
+
#### Defined in
|
|
41
|
+
|
|
42
|
+
[packages/framework/esm-globals/src/events.ts:75](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/events.ts#L75)
|
|
43
|
+
|
|
44
|
+
___
|
|
45
|
+
|
|
46
|
+
### title
|
|
47
|
+
|
|
48
|
+
• `Optional` **title**: `string`
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[packages/framework/esm-globals/src/events.ts:74](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/events.ts#L74)
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / SpaConfig
|
|
2
|
+
|
|
3
|
+
# Interface: SpaConfig
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [apiUrl](SpaConfig.md#apiurl)
|
|
10
|
+
- [configUrls](SpaConfig.md#configurls)
|
|
11
|
+
- [env](SpaConfig.md#env)
|
|
12
|
+
- [offline](SpaConfig.md#offline)
|
|
13
|
+
- [spaPath](SpaConfig.md#spapath)
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### apiUrl
|
|
18
|
+
|
|
19
|
+
• **apiUrl**: `string`
|
|
20
|
+
|
|
21
|
+
The base path or URL for the OpenMRS API / endpoints.
|
|
22
|
+
|
|
23
|
+
#### Defined in
|
|
24
|
+
|
|
25
|
+
[packages/framework/esm-globals/src/types.ts:57](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L57)
|
|
26
|
+
|
|
27
|
+
___
|
|
28
|
+
|
|
29
|
+
### configUrls
|
|
30
|
+
|
|
31
|
+
• `Optional` **configUrls**: `string`[]
|
|
32
|
+
|
|
33
|
+
URLs of configurations to load in the system.
|
|
34
|
+
|
|
35
|
+
#### Defined in
|
|
36
|
+
|
|
37
|
+
[packages/framework/esm-globals/src/types.ts:70](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L70)
|
|
38
|
+
|
|
39
|
+
___
|
|
40
|
+
|
|
41
|
+
### env
|
|
42
|
+
|
|
43
|
+
• `Optional` **env**: [`SpaEnvironment`](../API.md#spaenvironment)
|
|
44
|
+
|
|
45
|
+
The environment to use.
|
|
46
|
+
|
|
47
|
+
**`default`** production
|
|
48
|
+
|
|
49
|
+
#### Defined in
|
|
50
|
+
|
|
51
|
+
[packages/framework/esm-globals/src/types.ts:66](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L66)
|
|
52
|
+
|
|
53
|
+
___
|
|
54
|
+
|
|
55
|
+
### offline
|
|
56
|
+
|
|
57
|
+
• `Optional` **offline**: `boolean`
|
|
58
|
+
|
|
59
|
+
Defines if offline should be supported by installing a service worker.
|
|
60
|
+
|
|
61
|
+
**`default`** true
|
|
62
|
+
|
|
63
|
+
#### Defined in
|
|
64
|
+
|
|
65
|
+
[packages/framework/esm-globals/src/types.ts:75](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L75)
|
|
66
|
+
|
|
67
|
+
___
|
|
68
|
+
|
|
69
|
+
### spaPath
|
|
70
|
+
|
|
71
|
+
• **spaPath**: `string`
|
|
72
|
+
|
|
73
|
+
The base path for the SPA root path.
|
|
74
|
+
|
|
75
|
+
#### Defined in
|
|
76
|
+
|
|
77
|
+
[packages/framework/esm-globals/src/types.ts:61](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L61)
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / SyncItem
|
|
2
|
+
|
|
3
|
+
# Interface: SyncItem
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [content](SyncItem.md#content)
|
|
10
|
+
- [createdOn](SyncItem.md#createdon)
|
|
11
|
+
- [descriptor](SyncItem.md#descriptor)
|
|
12
|
+
- [id](SyncItem.md#id)
|
|
13
|
+
- [lastError](SyncItem.md#lasterror)
|
|
14
|
+
- [type](SyncItem.md#type)
|
|
15
|
+
- [userId](SyncItem.md#userid)
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
### content
|
|
20
|
+
|
|
21
|
+
• **content**: `any`
|
|
22
|
+
|
|
23
|
+
#### Defined in
|
|
24
|
+
|
|
25
|
+
[packages/framework/esm-offline/src/sync.ts:9](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L9)
|
|
26
|
+
|
|
27
|
+
___
|
|
28
|
+
|
|
29
|
+
### createdOn
|
|
30
|
+
|
|
31
|
+
• **createdOn**: `Date`
|
|
32
|
+
|
|
33
|
+
#### Defined in
|
|
34
|
+
|
|
35
|
+
[packages/framework/esm-offline/src/sync.ts:10](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L10)
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### descriptor
|
|
40
|
+
|
|
41
|
+
• **descriptor**: [`QueueItemDescriptor`](QueueItemDescriptor.md)
|
|
42
|
+
|
|
43
|
+
#### Defined in
|
|
44
|
+
|
|
45
|
+
[packages/framework/esm-offline/src/sync.ts:11](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L11)
|
|
46
|
+
|
|
47
|
+
___
|
|
48
|
+
|
|
49
|
+
### id
|
|
50
|
+
|
|
51
|
+
• `Optional` **id**: `number`
|
|
52
|
+
|
|
53
|
+
#### Defined in
|
|
54
|
+
|
|
55
|
+
[packages/framework/esm-offline/src/sync.ts:6](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L6)
|
|
56
|
+
|
|
57
|
+
___
|
|
58
|
+
|
|
59
|
+
### lastError
|
|
60
|
+
|
|
61
|
+
• `Optional` **lastError**: `Object`
|
|
62
|
+
|
|
63
|
+
#### Type declaration
|
|
64
|
+
|
|
65
|
+
| Name | Type |
|
|
66
|
+
| :------ | :------ |
|
|
67
|
+
| `message?` | `string` |
|
|
68
|
+
| `name?` | `string` |
|
|
69
|
+
|
|
70
|
+
#### Defined in
|
|
71
|
+
|
|
72
|
+
[packages/framework/esm-offline/src/sync.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L12)
|
|
73
|
+
|
|
74
|
+
___
|
|
75
|
+
|
|
76
|
+
### type
|
|
77
|
+
|
|
78
|
+
• **type**: `string`
|
|
79
|
+
|
|
80
|
+
#### Defined in
|
|
81
|
+
|
|
82
|
+
[packages/framework/esm-offline/src/sync.ts:8](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L8)
|
|
83
|
+
|
|
84
|
+
___
|
|
85
|
+
|
|
86
|
+
### userId
|
|
87
|
+
|
|
88
|
+
• **userId**: `string`
|
|
89
|
+
|
|
90
|
+
#### Defined in
|
|
91
|
+
|
|
92
|
+
[packages/framework/esm-offline/src/sync.ts:7](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L7)
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / SyncProcessOptions
|
|
2
|
+
|
|
3
|
+
# Interface: SyncProcessOptions<T\>
|
|
4
|
+
|
|
5
|
+
## Type parameters
|
|
6
|
+
|
|
7
|
+
| Name |
|
|
8
|
+
| :------ |
|
|
9
|
+
| `T` |
|
|
10
|
+
|
|
11
|
+
## Table of contents
|
|
12
|
+
|
|
13
|
+
### Properties
|
|
14
|
+
|
|
15
|
+
- [abort](SyncProcessOptions.md#abort)
|
|
16
|
+
- [dependencies](SyncProcessOptions.md#dependencies)
|
|
17
|
+
- [index](SyncProcessOptions.md#index)
|
|
18
|
+
- [items](SyncProcessOptions.md#items)
|
|
19
|
+
- [userId](SyncProcessOptions.md#userid)
|
|
20
|
+
|
|
21
|
+
## Properties
|
|
22
|
+
|
|
23
|
+
### abort
|
|
24
|
+
|
|
25
|
+
• **abort**: `AbortController`
|
|
26
|
+
|
|
27
|
+
#### Defined in
|
|
28
|
+
|
|
29
|
+
[packages/framework/esm-offline/src/sync.ts:256](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L256)
|
|
30
|
+
|
|
31
|
+
___
|
|
32
|
+
|
|
33
|
+
### dependencies
|
|
34
|
+
|
|
35
|
+
• **dependencies**: `any`[]
|
|
36
|
+
|
|
37
|
+
#### Defined in
|
|
38
|
+
|
|
39
|
+
[packages/framework/esm-offline/src/sync.ts:260](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L260)
|
|
40
|
+
|
|
41
|
+
___
|
|
42
|
+
|
|
43
|
+
### index
|
|
44
|
+
|
|
45
|
+
• **index**: `number`
|
|
46
|
+
|
|
47
|
+
#### Defined in
|
|
48
|
+
|
|
49
|
+
[packages/framework/esm-offline/src/sync.ts:258](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L258)
|
|
50
|
+
|
|
51
|
+
___
|
|
52
|
+
|
|
53
|
+
### items
|
|
54
|
+
|
|
55
|
+
• **items**: `T`[]
|
|
56
|
+
|
|
57
|
+
#### Defined in
|
|
58
|
+
|
|
59
|
+
[packages/framework/esm-offline/src/sync.ts:259](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L259)
|
|
60
|
+
|
|
61
|
+
___
|
|
62
|
+
|
|
63
|
+
### userId
|
|
64
|
+
|
|
65
|
+
• **userId**: `string`
|
|
66
|
+
|
|
67
|
+
#### Defined in
|
|
68
|
+
|
|
69
|
+
[packages/framework/esm-offline/src/sync.ts:257](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L257)
|
|
@@ -0,0 +1,52 @@
|
|
|
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)
|