@openmrs/esm-framework 3.4.1-pre.98 → 4.0.1-pre.204
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 +16 -138
- package/dist/openmrs-esm-framework.js +1 -1
- package/dist/openmrs-esm-framework.js.LICENSE.txt +9 -21
- package/dist/openmrs-esm-framework.js.map +1 -1
- package/docs/API.md +588 -756
- package/docs/classes/OpenmrsFetchError.md +4 -10
- package/docs/enums/Type.md +20 -20
- package/docs/enums/VisitMode.md +8 -8
- package/docs/enums/VisitStatus.md +6 -6
- package/docs/interfaces/AssignedExtension.md +7 -9
- package/docs/interfaces/BreadcrumbRegistration.md +2 -2
- package/docs/interfaces/BreadcrumbSettings.md +4 -22
- package/docs/interfaces/CancelLoading.md +1 -1
- package/docs/interfaces/ClearDynamicRoutesMessage.md +1 -1
- package/docs/interfaces/ComponentDefinition.md +7 -19
- package/docs/interfaces/Config.md +3 -17
- package/docs/interfaces/ConfigObject.md +14 -17
- package/docs/interfaces/ConfigSchema.md +3 -3
- package/docs/interfaces/ConfigurableLinkProps.md +12 -1
- package/docs/interfaces/ConnectedExtension.md +4 -6
- package/docs/interfaces/ConnectivityChangedEvent.md +1 -1
- package/docs/interfaces/CurrentPatientOptions.md +1 -1
- package/docs/interfaces/DisplayConditionsConfigObject.md +19 -0
- package/docs/interfaces/DynamicOfflineData.md +63 -0
- package/docs/interfaces/DynamicOfflineDataHandler.md +88 -0
- package/docs/interfaces/DynamicOfflineDataSyncState.md +63 -0
- package/docs/interfaces/ErrorStateProps.md +30 -0
- package/docs/interfaces/ExtensionData.md +3 -3
- package/docs/interfaces/ExtensionDefinition.md +13 -37
- package/docs/interfaces/ExtensionProps.md +2 -2
- package/docs/interfaces/ExtensionRegistration.md +18 -7
- package/docs/interfaces/ExtensionSlotBaseProps.md +15 -4
- package/docs/interfaces/ExtensionSlotConfig.md +4 -4
- package/docs/interfaces/ExtensionSlotConfigObject.md +3 -9
- package/docs/interfaces/ExtensionSlotState.md +2 -2
- package/docs/interfaces/ExtensionStore.md +1 -1
- package/docs/interfaces/FHIRCode.md +13 -2
- package/docs/interfaces/FHIRRequestObj.md +3 -3
- package/docs/interfaces/FHIRRequestOptions.md +41 -0
- package/docs/interfaces/FHIRResource.md +4 -1
- package/docs/interfaces/FetchResponse.md +1 -1
- package/docs/interfaces/FetchResponseJson.md +7 -0
- package/docs/interfaces/ImportMap.md +1 -1
- package/docs/interfaces/Lifecycle.md +4 -4
- package/docs/interfaces/Location.md +3 -3
- package/docs/interfaces/LoggedInUser.md +11 -11
- package/docs/interfaces/LoggedInUserFetchResponse.md +1 -1
- package/docs/interfaces/MessageServiceWorkerResult.md +3 -3
- package/docs/interfaces/NavigateOptions.md +12 -1
- package/docs/interfaces/NewVisitPayload.md +6 -6
- package/docs/interfaces/NotificationDescriptor.md +6 -6
- package/docs/interfaces/OfflineModeResult.md +3 -3
- package/docs/interfaces/OfflinePatientArgs.md +2 -6
- package/docs/interfaces/OfflinePatientDataSyncHandler.md +5 -14
- package/docs/interfaces/OfflinePatientDataSyncState.md +6 -24
- package/docs/interfaces/OfflinePatientDataSyncStore.md +2 -9
- package/docs/interfaces/OldExtensionSlotBaseProps.md +65 -0
- package/docs/interfaces/OmrsServiceWorkerMessage.md +1 -1
- package/docs/interfaces/OnImportMapChangedMessage.md +2 -2
- package/docs/interfaces/OnlyThePatient.md +1 -1
- package/docs/interfaces/OpenmrsResource.md +2 -2
- package/docs/interfaces/PageDefinition.md +9 -25
- package/docs/interfaces/PatientWithFullResponse.md +1 -1
- package/docs/interfaces/Person.md +3 -3
- package/docs/interfaces/Privilege.md +3 -3
- package/docs/interfaces/QueueItemDescriptor.md +4 -9
- package/docs/interfaces/RegisterDynamicRouteMessage.md +4 -4
- package/docs/interfaces/ResourceLoader.md +1 -1
- package/docs/interfaces/RetryOptions.md +7 -18
- package/docs/interfaces/Role.md +3 -3
- package/docs/interfaces/Session.md +7 -7
- package/docs/interfaces/SessionLocation.md +3 -3
- package/docs/interfaces/ShowNotificationEvent.md +5 -5
- package/docs/interfaces/ShowToastEvent.md +4 -4
- package/docs/interfaces/SpaConfig.md +5 -19
- package/docs/interfaces/SyncItem.md +7 -11
- package/docs/interfaces/SyncProcessOptions.md +5 -7
- package/docs/interfaces/ToastDescriptor.md +5 -5
- package/docs/interfaces/ToastNotificationMeta.md +6 -6
- package/docs/interfaces/UserHasAccessProps.md +24 -2
- package/docs/interfaces/Visit.md +9 -9
- package/docs/interfaces/VisitItem.md +4 -4
- package/docs/interfaces/VisitType.md +3 -3
- package/jest.config.js +8 -0
- package/mock.tsx +4 -7
- package/package.json +13 -13
- package/src/integration-tests/extension-config.test.tsx +218 -21
- package/typedoc.json +1 -1
|
@@ -15,11 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
• **patientUuid**: `string`
|
|
17
17
|
|
|
18
|
-
The UUID of the patient that should be made available offline.
|
|
19
|
-
|
|
20
18
|
#### Defined in
|
|
21
19
|
|
|
22
|
-
[packages/framework/esm-offline/src/offline-patient-data.ts:
|
|
20
|
+
[packages/framework/esm-offline/src/offline-patient-data.ts:32](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/offline-patient-data.ts#L32)
|
|
23
21
|
|
|
24
22
|
___
|
|
25
23
|
|
|
@@ -27,8 +25,6 @@ ___
|
|
|
27
25
|
|
|
28
26
|
• **signal**: `AbortSignal`
|
|
29
27
|
|
|
30
|
-
An {@link AbortSignal} which notifies about the cancellation of the operation.
|
|
31
|
-
|
|
32
28
|
#### Defined in
|
|
33
29
|
|
|
34
|
-
[packages/framework/esm-offline/src/offline-patient-data.ts:
|
|
30
|
+
[packages/framework/esm-offline/src/offline-patient-data.ts:33](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/offline-patient-data.ts#L33)
|
|
@@ -18,12 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
• `Readonly` **displayName**: `string`
|
|
20
20
|
|
|
21
|
-
A name of the handler registration which can be displayed to the user.
|
|
22
|
-
This is ideally translated.
|
|
23
|
-
|
|
24
21
|
#### Defined in
|
|
25
22
|
|
|
26
|
-
[packages/framework/esm-offline/src/offline-patient-data.ts:
|
|
23
|
+
[packages/framework/esm-offline/src/offline-patient-data.ts:26](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/offline-patient-data.ts#L26)
|
|
27
24
|
|
|
28
25
|
## Methods
|
|
29
26
|
|
|
@@ -31,22 +28,16 @@ This is ideally translated.
|
|
|
31
28
|
|
|
32
29
|
▸ **onOfflinePatientAdded**(`args`): `Promise`<`void`\>
|
|
33
30
|
|
|
34
|
-
A function which is invoked when a patient is added to the app's offline patient cache.
|
|
35
|
-
Signals to the handler that the patient's data must be made available offline.
|
|
36
|
-
|
|
37
31
|
#### Parameters
|
|
38
32
|
|
|
39
|
-
| Name | Type |
|
|
40
|
-
| :------ | :------ |
|
|
41
|
-
| `args` | [`OfflinePatientArgs`](OfflinePatientArgs.md) |
|
|
33
|
+
| Name | Type |
|
|
34
|
+
| :------ | :------ |
|
|
35
|
+
| `args` | [`OfflinePatientArgs`](OfflinePatientArgs.md) |
|
|
42
36
|
|
|
43
37
|
#### Returns
|
|
44
38
|
|
|
45
39
|
`Promise`<`void`\>
|
|
46
40
|
|
|
47
|
-
A promise which should resolve if all data could be cached and reject when there was an issue
|
|
48
|
-
caching the data.
|
|
49
|
-
|
|
50
41
|
#### Defined in
|
|
51
42
|
|
|
52
|
-
[packages/framework/esm-offline/src/offline-patient-data.ts:
|
|
43
|
+
[packages/framework/esm-offline/src/offline-patient-data.ts:27](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/offline-patient-data.ts#L27)
|
|
@@ -22,11 +22,9 @@
|
|
|
22
22
|
|
|
23
23
|
• `Readonly` **errors**: `Record`<`string`, `string`\>
|
|
24
24
|
|
|
25
|
-
A set of error messages associated with the identifers of the failed handlers.
|
|
26
|
-
|
|
27
25
|
#### Defined in
|
|
28
26
|
|
|
29
|
-
[packages/framework/esm-offline/src/offline-patient-data.ts:
|
|
27
|
+
[packages/framework/esm-offline/src/offline-patient-data.ts:20](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/offline-patient-data.ts#L20)
|
|
30
28
|
|
|
31
29
|
___
|
|
32
30
|
|
|
@@ -34,12 +32,9 @@ ___
|
|
|
34
32
|
|
|
35
33
|
• `Readonly` **failedHandlers**: `string`[]
|
|
36
34
|
|
|
37
|
-
A list of the data sync handler registration identifiers which failed to synchronize the
|
|
38
|
-
patient's data.
|
|
39
|
-
|
|
40
35
|
#### Defined in
|
|
41
36
|
|
|
42
|
-
[packages/framework/esm-offline/src/offline-patient-data.ts:
|
|
37
|
+
[packages/framework/esm-offline/src/offline-patient-data.ts:19](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/offline-patient-data.ts#L19)
|
|
43
38
|
|
|
44
39
|
___
|
|
45
40
|
|
|
@@ -47,12 +42,9 @@ ___
|
|
|
47
42
|
|
|
48
43
|
• `Readonly` **syncedHandlers**: `string`[]
|
|
49
44
|
|
|
50
|
-
A list of the data sync handler registration identifiers which successfully synchronized the
|
|
51
|
-
patient's data.
|
|
52
|
-
|
|
53
45
|
#### Defined in
|
|
54
46
|
|
|
55
|
-
[packages/framework/esm-offline/src/offline-patient-data.ts:
|
|
47
|
+
[packages/framework/esm-offline/src/offline-patient-data.ts:18](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/offline-patient-data.ts#L18)
|
|
56
48
|
|
|
57
49
|
___
|
|
58
50
|
|
|
@@ -60,12 +52,9 @@ ___
|
|
|
60
52
|
|
|
61
53
|
• `Readonly` **syncingHandlers**: `string`[]
|
|
62
54
|
|
|
63
|
-
A list of the data sync handler registration identifiers which are still in the process
|
|
64
|
-
of synchronizing the patient's data.
|
|
65
|
-
|
|
66
55
|
#### Defined in
|
|
67
56
|
|
|
68
|
-
[packages/framework/esm-offline/src/offline-patient-data.ts:
|
|
57
|
+
[packages/framework/esm-offline/src/offline-patient-data.ts:17](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/offline-patient-data.ts#L17)
|
|
69
58
|
|
|
70
59
|
___
|
|
71
60
|
|
|
@@ -73,11 +62,9 @@ ___
|
|
|
73
62
|
|
|
74
63
|
• `Readonly` **timestamp**: `Date`
|
|
75
64
|
|
|
76
|
-
The time when this state snapshot was initially created.
|
|
77
|
-
|
|
78
65
|
#### Defined in
|
|
79
66
|
|
|
80
|
-
[packages/framework/esm-offline/src/offline-patient-data.ts:
|
|
67
|
+
[packages/framework/esm-offline/src/offline-patient-data.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/offline-patient-data.ts#L16)
|
|
81
68
|
|
|
82
69
|
## Methods
|
|
83
70
|
|
|
@@ -85,15 +72,10 @@ The time when this state snapshot was initially created.
|
|
|
85
72
|
|
|
86
73
|
▸ **abort**(): `boolean`
|
|
87
74
|
|
|
88
|
-
Aborts the process of downloading data.
|
|
89
|
-
|
|
90
75
|
#### Returns
|
|
91
76
|
|
|
92
77
|
`boolean`
|
|
93
78
|
|
|
94
|
-
`true` if the cancellation could be triggered (that is, if there were any syncing handlers);
|
|
95
|
-
`false` if not.
|
|
96
|
-
|
|
97
79
|
#### Defined in
|
|
98
80
|
|
|
99
|
-
[packages/framework/esm-offline/src/offline-patient-data.ts:
|
|
81
|
+
[packages/framework/esm-offline/src/offline-patient-data.ts:21](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/offline-patient-data.ts#L21)
|
|
@@ -15,13 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
• **handlers**: `Record`<`string`, [`OfflinePatientDataSyncHandler`](OfflinePatientDataSyncHandler.md)\>
|
|
17
17
|
|
|
18
|
-
Holds the list of currently registered handlers which deal with patients that should be available offline.
|
|
19
|
-
The key is a unique identifier which, once defined, should never change as it gives identity to
|
|
20
|
-
the handler registration.
|
|
21
|
-
|
|
22
18
|
#### Defined in
|
|
23
19
|
|
|
24
|
-
[packages/framework/esm-offline/src/offline-patient-data.ts:
|
|
20
|
+
[packages/framework/esm-offline/src/offline-patient-data.ts:11](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/offline-patient-data.ts#L11)
|
|
25
21
|
|
|
26
22
|
___
|
|
27
23
|
|
|
@@ -29,9 +25,6 @@ ___
|
|
|
29
25
|
|
|
30
26
|
• **offlinePatientDataSyncState**: `Record`<`string`, [`OfflinePatientDataSyncState`](OfflinePatientDataSyncState.md)\>
|
|
31
27
|
|
|
32
|
-
For each patient ID of the patients whose data is currently made available offline, provides
|
|
33
|
-
the current data synchronizaton state.
|
|
34
|
-
|
|
35
28
|
#### Defined in
|
|
36
29
|
|
|
37
|
-
[packages/framework/esm-offline/src/offline-patient-data.ts:10](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
30
|
+
[packages/framework/esm-offline/src/offline-patient-data.ts:10](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/offline-patient-data.ts#L10)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[@openmrs/esm-framework](../API.md) / OldExtensionSlotBaseProps
|
|
2
|
+
|
|
3
|
+
# Interface: OldExtensionSlotBaseProps
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [extensionSlotName](OldExtensionSlotBaseProps.md#extensionslotname)
|
|
10
|
+
- [name](OldExtensionSlotBaseProps.md#name)
|
|
11
|
+
- [state](OldExtensionSlotBaseProps.md#state)
|
|
12
|
+
|
|
13
|
+
### Methods
|
|
14
|
+
|
|
15
|
+
- [select](OldExtensionSlotBaseProps.md#select)
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
### extensionSlotName
|
|
20
|
+
|
|
21
|
+
• **extensionSlotName**: `string`
|
|
22
|
+
|
|
23
|
+
#### Defined in
|
|
24
|
+
|
|
25
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:18](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L18)
|
|
26
|
+
|
|
27
|
+
___
|
|
28
|
+
|
|
29
|
+
### name
|
|
30
|
+
|
|
31
|
+
• `Optional` **name**: `string`
|
|
32
|
+
|
|
33
|
+
#### Defined in
|
|
34
|
+
|
|
35
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L16)
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### state
|
|
40
|
+
|
|
41
|
+
• `Optional` **state**: `Record`<`string`, `any`\>
|
|
42
|
+
|
|
43
|
+
#### Defined in
|
|
44
|
+
|
|
45
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:20](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L20)
|
|
46
|
+
|
|
47
|
+
## Methods
|
|
48
|
+
|
|
49
|
+
### select
|
|
50
|
+
|
|
51
|
+
▸ `Optional` **select**(`extensions`): [`ConnectedExtension`](ConnectedExtension.md)[]
|
|
52
|
+
|
|
53
|
+
#### Parameters
|
|
54
|
+
|
|
55
|
+
| Name | Type |
|
|
56
|
+
| :------ | :------ |
|
|
57
|
+
| `extensions` | [`ConnectedExtension`](ConnectedExtension.md)[] |
|
|
58
|
+
|
|
59
|
+
#### Returns
|
|
60
|
+
|
|
61
|
+
[`ConnectedExtension`](ConnectedExtension.md)[]
|
|
62
|
+
|
|
63
|
+
#### Defined in
|
|
64
|
+
|
|
65
|
+
[packages/framework/esm-react-utils/src/ExtensionSlot.tsx:19](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/ExtensionSlot.tsx#L19)
|
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
|
|
33
33
|
#### Defined in
|
|
34
34
|
|
|
35
|
-
[packages/framework/esm-offline/src/service-worker-messaging.ts:28](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
35
|
+
[packages/framework/esm-offline/src/service-worker-messaging.ts:28](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/service-worker-messaging.ts#L28)
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
#### Defined in
|
|
25
25
|
|
|
26
|
-
[packages/framework/esm-offline/src/service-worker-messaging.ts:33](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
26
|
+
[packages/framework/esm-offline/src/service-worker-messaging.ts:33](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/service-worker-messaging.ts#L33)
|
|
27
27
|
|
|
28
28
|
___
|
|
29
29
|
|
|
@@ -37,4 +37,4 @@ ___
|
|
|
37
37
|
|
|
38
38
|
#### Defined in
|
|
39
39
|
|
|
40
|
-
[packages/framework/esm-offline/src/service-worker-messaging.ts:28](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
40
|
+
[packages/framework/esm-offline/src/service-worker-messaging.ts:28](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/service-worker-messaging.ts#L28)
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
|
|
27
27
|
#### Defined in
|
|
28
28
|
|
|
29
|
-
[packages/framework/esm-api/src/shared-api-objects/current-patient.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
29
|
+
[packages/framework/esm-api/src/shared-api-objects/current-patient.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/current-patient.ts#L16)
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
#### Defined in
|
|
23
23
|
|
|
24
|
-
[packages/framework/esm-api/src/types/openmrs-resource.ts:3](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
24
|
+
[packages/framework/esm-api/src/types/openmrs-resource.ts:3](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/openmrs-resource.ts#L3)
|
|
25
25
|
|
|
26
26
|
___
|
|
27
27
|
|
|
@@ -31,4 +31,4 @@ ___
|
|
|
31
31
|
|
|
32
32
|
#### Defined in
|
|
33
33
|
|
|
34
|
-
[packages/framework/esm-api/src/types/openmrs-resource.ts:2](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
34
|
+
[packages/framework/esm-api/src/types/openmrs-resource.ts:2](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/openmrs-resource.ts#L2)
|
|
@@ -30,15 +30,13 @@
|
|
|
30
30
|
|
|
31
31
|
• **appName**: `string`
|
|
32
32
|
|
|
33
|
-
The module/app that defines the component
|
|
34
|
-
|
|
35
33
|
#### Inherited from
|
|
36
34
|
|
|
37
35
|
[ComponentDefinition](ComponentDefinition.md).[appName](ComponentDefinition.md#appname)
|
|
38
36
|
|
|
39
37
|
#### Defined in
|
|
40
38
|
|
|
41
|
-
[packages/framework/esm-globals/src/types.ts:99](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
39
|
+
[packages/framework/esm-globals/src/types.ts:99](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L99)
|
|
42
40
|
|
|
43
41
|
___
|
|
44
42
|
|
|
@@ -46,15 +44,13 @@ ___
|
|
|
46
44
|
|
|
47
45
|
• `Optional` **offline**: `boolean` \| `object`
|
|
48
46
|
|
|
49
|
-
Defines the offline support / properties of the component.
|
|
50
|
-
|
|
51
47
|
#### Inherited from
|
|
52
48
|
|
|
53
49
|
[ComponentDefinition](ComponentDefinition.md).[offline](ComponentDefinition.md#offline)
|
|
54
50
|
|
|
55
51
|
#### Defined in
|
|
56
52
|
|
|
57
|
-
[packages/framework/esm-globals/src/types.ts:111](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
53
|
+
[packages/framework/esm-globals/src/types.ts:111](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L111)
|
|
58
54
|
|
|
59
55
|
___
|
|
60
56
|
|
|
@@ -62,15 +58,13 @@ ___
|
|
|
62
58
|
|
|
63
59
|
• `Optional` **online**: `boolean` \| `object`
|
|
64
60
|
|
|
65
|
-
Defines the online support / properties of the component.
|
|
66
|
-
|
|
67
61
|
#### Inherited from
|
|
68
62
|
|
|
69
63
|
[ComponentDefinition](ComponentDefinition.md).[online](ComponentDefinition.md#online)
|
|
70
64
|
|
|
71
65
|
#### Defined in
|
|
72
66
|
|
|
73
|
-
[packages/framework/esm-globals/src/types.ts:107](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
67
|
+
[packages/framework/esm-globals/src/types.ts:107](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L107)
|
|
74
68
|
|
|
75
69
|
___
|
|
76
70
|
|
|
@@ -78,19 +72,15 @@ ___
|
|
|
78
72
|
|
|
79
73
|
• **order**: `number`
|
|
80
74
|
|
|
81
|
-
The order in which to load the page. This determines DOM order.
|
|
82
|
-
|
|
83
75
|
#### Defined in
|
|
84
76
|
|
|
85
|
-
[packages/framework/esm-globals/src/types.ts:
|
|
77
|
+
[packages/framework/esm-globals/src/types.ts:146](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L146)
|
|
86
78
|
|
|
87
79
|
___
|
|
88
80
|
|
|
89
81
|
### privilege
|
|
90
82
|
|
|
91
|
-
• `Optional` **privilege**: `string`
|
|
92
|
-
|
|
93
|
-
Defines the access privilege required for this component, if any.
|
|
83
|
+
• `Optional` **privilege**: `string` \| `string`[]
|
|
94
84
|
|
|
95
85
|
#### Inherited from
|
|
96
86
|
|
|
@@ -98,7 +88,7 @@ Defines the access privilege required for this component, if any.
|
|
|
98
88
|
|
|
99
89
|
#### Defined in
|
|
100
90
|
|
|
101
|
-
[packages/framework/esm-globals/src/types.ts:
|
|
91
|
+
[packages/framework/esm-globals/src/types.ts:116](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L116)
|
|
102
92
|
|
|
103
93
|
___
|
|
104
94
|
|
|
@@ -106,15 +96,13 @@ ___
|
|
|
106
96
|
|
|
107
97
|
• `Optional` **resources**: `Record`<`string`, [`ResourceLoader`](ResourceLoader.md)<`any`\>\>
|
|
108
98
|
|
|
109
|
-
Defines resources that are loaded when the component should mount.
|
|
110
|
-
|
|
111
99
|
#### Inherited from
|
|
112
100
|
|
|
113
101
|
[ComponentDefinition](ComponentDefinition.md).[resources](ComponentDefinition.md#resources)
|
|
114
102
|
|
|
115
103
|
#### Defined in
|
|
116
104
|
|
|
117
|
-
[packages/framework/esm-globals/src/types.ts:
|
|
105
|
+
[packages/framework/esm-globals/src/types.ts:120](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L120)
|
|
118
106
|
|
|
119
107
|
___
|
|
120
108
|
|
|
@@ -122,11 +110,9 @@ ___
|
|
|
122
110
|
|
|
123
111
|
• **route**: `string`
|
|
124
112
|
|
|
125
|
-
The route of the page.
|
|
126
|
-
|
|
127
113
|
#### Defined in
|
|
128
114
|
|
|
129
|
-
[packages/framework/esm-globals/src/types.ts:
|
|
115
|
+
[packages/framework/esm-globals/src/types.ts:142](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L142)
|
|
130
116
|
|
|
131
117
|
## Methods
|
|
132
118
|
|
|
@@ -134,8 +120,6 @@ The route of the page.
|
|
|
134
120
|
|
|
135
121
|
▸ **load**(): `Promise`<`any`\>
|
|
136
122
|
|
|
137
|
-
Defines a function to use for actually loading the component's lifecycle.
|
|
138
|
-
|
|
139
123
|
#### Returns
|
|
140
124
|
|
|
141
125
|
`Promise`<`any`\>
|
|
@@ -146,4 +130,4 @@ Defines a function to use for actually loading the component's lifecycle.
|
|
|
146
130
|
|
|
147
131
|
#### Defined in
|
|
148
132
|
|
|
149
|
-
[packages/framework/esm-globals/src/types.ts:103](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
133
|
+
[packages/framework/esm-globals/src/types.ts:103](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L103)
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
|
|
27
27
|
#### Defined in
|
|
28
28
|
|
|
29
|
-
[packages/framework/esm-api/src/shared-api-objects/current-patient.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
29
|
+
[packages/framework/esm-api/src/shared-api-objects/current-patient.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/current-patient.ts#L12)
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[packages/framework/esm-api/src/types/user-resource.ts:34](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
21
|
+
[packages/framework/esm-api/src/types/user-resource.ts:34](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/user-resource.ts#L34)
|
|
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:35](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
31
|
+
[packages/framework/esm-api/src/types/user-resource.ts:35](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/user-resource.ts#L35)
|
|
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:33](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
41
|
+
[packages/framework/esm-api/src/types/user-resource.ts:33](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/user-resource.ts#L33)
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[packages/framework/esm-api/src/types/user-resource.ts:40](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
21
|
+
[packages/framework/esm-api/src/types/user-resource.ts:40](https://github.com/openmrs/openmrs-esm-core/blob/main/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:41](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
31
|
+
[packages/framework/esm-api/src/types/user-resource.ts:41](https://github.com/openmrs/openmrs-esm-core/blob/main/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:39](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
41
|
+
[packages/framework/esm-api/src/types/user-resource.ts:39](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/user-resource.ts#L39)
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: QueueItemDescriptor
|
|
4
4
|
|
|
5
|
-
Contains information about the sync item which has been provided externally by the caller
|
|
6
|
-
who added the item to the queue.
|
|
7
|
-
This information is all optional, but, when provided while enqueuing the item, can be used in other
|
|
8
|
-
locations to better represent the sync item, e.g. in the UI.
|
|
9
|
-
|
|
10
5
|
## Table of contents
|
|
11
6
|
|
|
12
7
|
### Offline Properties
|
|
@@ -24,7 +19,7 @@ locations to better represent the sync item, e.g. in the UI.
|
|
|
24
19
|
|
|
25
20
|
#### Defined in
|
|
26
21
|
|
|
27
|
-
[packages/framework/esm-offline/src/sync.ts:
|
|
22
|
+
[packages/framework/esm-offline/src/sync.ts:33](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/sync.ts#L33)
|
|
28
23
|
|
|
29
24
|
___
|
|
30
25
|
|
|
@@ -34,7 +29,7 @@ ___
|
|
|
34
29
|
|
|
35
30
|
#### Defined in
|
|
36
31
|
|
|
37
|
-
[packages/framework/esm-offline/src/sync.ts:
|
|
32
|
+
[packages/framework/esm-offline/src/sync.ts:38](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/sync.ts#L38)
|
|
38
33
|
|
|
39
34
|
___
|
|
40
35
|
|
|
@@ -44,7 +39,7 @@ ___
|
|
|
44
39
|
|
|
45
40
|
#### Defined in
|
|
46
41
|
|
|
47
|
-
[packages/framework/esm-offline/src/sync.ts:
|
|
42
|
+
[packages/framework/esm-offline/src/sync.ts:32](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/sync.ts#L32)
|
|
48
43
|
|
|
49
44
|
___
|
|
50
45
|
|
|
@@ -54,4 +49,4 @@ ___
|
|
|
54
49
|
|
|
55
50
|
#### Defined in
|
|
56
51
|
|
|
57
|
-
[packages/framework/esm-offline/src/sync.ts:
|
|
52
|
+
[packages/framework/esm-offline/src/sync.ts:37](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/sync.ts#L37)
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
#### Defined in
|
|
27
27
|
|
|
28
|
-
[packages/framework/esm-offline/src/service-worker-messaging.ts:41](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
28
|
+
[packages/framework/esm-offline/src/service-worker-messaging.ts:41](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/service-worker-messaging.ts#L41)
|
|
29
29
|
|
|
30
30
|
___
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ ___
|
|
|
35
35
|
|
|
36
36
|
#### Defined in
|
|
37
37
|
|
|
38
|
-
[packages/framework/esm-offline/src/service-worker-messaging.ts:43](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
38
|
+
[packages/framework/esm-offline/src/service-worker-messaging.ts:43](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/service-worker-messaging.ts#L43)
|
|
39
39
|
|
|
40
40
|
___
|
|
41
41
|
|
|
@@ -49,7 +49,7 @@ ___
|
|
|
49
49
|
|
|
50
50
|
#### Defined in
|
|
51
51
|
|
|
52
|
-
[packages/framework/esm-offline/src/service-worker-messaging.ts:28](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
52
|
+
[packages/framework/esm-offline/src/service-worker-messaging.ts:28](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/service-worker-messaging.ts#L28)
|
|
53
53
|
|
|
54
54
|
___
|
|
55
55
|
|
|
@@ -59,4 +59,4 @@ ___
|
|
|
59
59
|
|
|
60
60
|
#### Defined in
|
|
61
61
|
|
|
62
|
-
[packages/framework/esm-offline/src/service-worker-messaging.ts:42](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
62
|
+
[packages/framework/esm-offline/src/service-worker-messaging.ts:42](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-offline/src/service-worker-messaging.ts#L42)
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
|
|
21
21
|
#### Defined in
|
|
22
22
|
|
|
23
|
-
[packages/framework/esm-globals/src/types.ts:92](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
23
|
+
[packages/framework/esm-globals/src/types.ts:92](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L92)
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: RetryOptions
|
|
4
4
|
|
|
5
|
-
Options for configuring the behavior of the [retry](../API.md#retry) function.
|
|
6
|
-
|
|
7
5
|
## Table of contents
|
|
8
6
|
|
|
9
7
|
### Methods
|
|
@@ -18,14 +16,11 @@ Options for configuring the behavior of the [retry](../API.md#retry) function.
|
|
|
18
16
|
|
|
19
17
|
▸ `Optional` **getDelay**(`attempt`): `number`
|
|
20
18
|
|
|
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
19
|
#### Parameters
|
|
25
20
|
|
|
26
21
|
| Name | Type | Description |
|
|
27
22
|
| :------ | :------ | :------ |
|
|
28
|
-
| `attempt` | `number` |
|
|
23
|
+
| `attempt` | `number` | |
|
|
29
24
|
|
|
30
25
|
#### Returns
|
|
31
26
|
|
|
@@ -33,7 +28,7 @@ Returning a value for the inital attempt (`0`) delays the initial function invoc
|
|
|
33
28
|
|
|
34
29
|
#### Defined in
|
|
35
30
|
|
|
36
|
-
[packages/framework/esm-utils/src/retry.ts:18](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
31
|
+
[packages/framework/esm-utils/src/retry.ts:18](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/retry.ts#L18)
|
|
37
32
|
|
|
38
33
|
___
|
|
39
34
|
|
|
@@ -41,15 +36,12 @@ ___
|
|
|
41
36
|
|
|
42
37
|
▸ `Optional` **onError**(`e`, `attempt`): `void`
|
|
43
38
|
|
|
44
|
-
Called when invoking the function resulted in an error.
|
|
45
|
-
Allows running side-effects on errors, e.g. logging.
|
|
46
|
-
|
|
47
39
|
#### Parameters
|
|
48
40
|
|
|
49
41
|
| Name | Type | Description |
|
|
50
42
|
| :------ | :------ | :------ |
|
|
51
|
-
| `e` | `any` |
|
|
52
|
-
| `attempt` | `number` |
|
|
43
|
+
| `e` | `any` | |
|
|
44
|
+
| `attempt` | `number` | |
|
|
53
45
|
|
|
54
46
|
#### Returns
|
|
55
47
|
|
|
@@ -57,7 +49,7 @@ Allows running side-effects on errors, e.g. logging.
|
|
|
57
49
|
|
|
58
50
|
#### Defined in
|
|
59
51
|
|
|
60
|
-
[packages/framework/esm-utils/src/retry.ts:25](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
52
|
+
[packages/framework/esm-utils/src/retry.ts:25](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/retry.ts#L25)
|
|
61
53
|
|
|
62
54
|
___
|
|
63
55
|
|
|
@@ -65,14 +57,11 @@ ___
|
|
|
65
57
|
|
|
66
58
|
▸ `Optional` **shouldRetry**(`attempt`): `any`
|
|
67
59
|
|
|
68
|
-
Determines whether the retry function should retry executing the function after it failed
|
|
69
|
-
with an error on the current attempt.
|
|
70
|
-
|
|
71
60
|
#### Parameters
|
|
72
61
|
|
|
73
62
|
| Name | Type | Description |
|
|
74
63
|
| :------ | :------ | :------ |
|
|
75
|
-
| `attempt` | `number` |
|
|
64
|
+
| `attempt` | `number` | |
|
|
76
65
|
|
|
77
66
|
#### Returns
|
|
78
67
|
|
|
@@ -80,4 +69,4 @@ with an error on the current attempt.
|
|
|
80
69
|
|
|
81
70
|
#### Defined in
|
|
82
71
|
|
|
83
|
-
[packages/framework/esm-utils/src/retry.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/
|
|
72
|
+
[packages/framework/esm-utils/src/retry.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/retry.ts#L12)
|