@cxbox-ui/core 2.0.0-alpha.7 → 2.0.0-alpha.9
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 +261 -28
- package/dist/core.d.ts +4274 -0
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -0
- package/package.json +19 -30
- package/dist/actions/index.d.ts +0 -1081
- package/dist/api/ObservableApi.d.ts +0 -53
- package/dist/api/ObservableApiWrapper.d.ts +0 -11
- package/dist/api/index.d.ts +0 -1
- package/dist/cxbox-ui-core.cjs.development.js +0 -3674
- package/dist/cxbox-ui-core.cjs.production.min.js +0 -2
- package/dist/cxbox-ui-core.esm.js +0 -3638
- package/dist/cxbox-ui-core.modern.development.js +0 -3568
- package/dist/cxbox-ui-core.modern.js +0 -3568
- package/dist/cxbox-ui-core.modern.production.min.js +0 -2
- package/dist/epics/data/bcCancelCreateDataEpic.d.ts +0 -9
- package/dist/epics/data/bcDeleteDataEpic.d.ts +0 -2
- package/dist/epics/data/bcFetchDataEpic.d.ts +0 -15
- package/dist/epics/data/bcFetchRowMetaRequestEpic.d.ts +0 -17
- package/dist/epics/data/bcLoadMoreEpic.d.ts +0 -2
- package/dist/epics/data/bcNewDataEpic.d.ts +0 -14
- package/dist/epics/data/bcSaveDataEpic.d.ts +0 -24
- package/dist/epics/data/bcSelectDepthRecordEpic.d.ts +0 -2
- package/dist/epics/data/bcSelectRecordEpic.d.ts +0 -2
- package/dist/epics/data/changeAssociationEpic.d.ts +0 -2
- package/dist/epics/data/changeAssociationFullEpic.d.ts +0 -5
- package/dist/epics/data/changeAssociationSameBcEpic.d.ts +0 -5
- package/dist/epics/data/changeChildrenAssociationsEpic.d.ts +0 -2
- package/dist/epics/data/changeChildrenAssociationsSameBcEpic.d.ts +0 -2
- package/dist/epics/data/changeDescendantsAssociationsFullEpic.d.ts +0 -5
- package/dist/epics/data/index.d.ts +0 -20
- package/dist/epics/data/inlinePickListFetchDataEpic.d.ts +0 -2
- package/dist/epics/data/removeMultivalueTagEpic.d.ts +0 -17
- package/dist/epics/data/saveAssociationsActiveEpic.d.ts +0 -7
- package/dist/epics/data/saveAssociationsPassiveEpic.d.ts +0 -7
- package/dist/epics/data/selectViewEpic.d.ts +0 -11
- package/dist/epics/index.d.ts +0 -6
- package/dist/epics/router/changeLocationEpic.d.ts +0 -10
- package/dist/epics/router/drilldownEpic.d.ts +0 -2
- package/dist/epics/router/handleRouterEpic.d.ts +0 -2
- package/dist/epics/router/index.d.ts +0 -10
- package/dist/epics/router/loginDoneEpic.d.ts +0 -9
- package/dist/epics/router/selectScreenEpic.d.ts +0 -7
- package/dist/epics/router/selectScreenFailEpic.d.ts +0 -7
- package/dist/epics/router/selectViewEpic.d.ts +0 -7
- package/dist/epics/router/selectViewFailEpic.d.ts +0 -6
- package/dist/epics/router/userDrillDownEpic.d.ts +0 -6
- package/dist/epics/router/userDrilldownChangeCursorsEpic.d.ts +0 -2
- package/dist/epics/screen/apiErrorEpic.d.ts +0 -2
- package/dist/epics/screen/downloadFileByUrlEpic.d.ts +0 -2
- package/dist/epics/screen/downloadFileEpic.d.ts +0 -2
- package/dist/epics/screen/httpError401Epic.d.ts +0 -2
- package/dist/epics/screen/httpError409Epic.d.ts +0 -2
- package/dist/epics/screen/httpError418Epic.d.ts +0 -2
- package/dist/epics/screen/httpError500Epic.d.ts +0 -2
- package/dist/epics/screen/httpErrorDefaultEpic.d.ts +0 -2
- package/dist/epics/screen/index.d.ts +0 -10
- package/dist/epics/screen/processPostInvokeConfirmEpic.d.ts +0 -2
- package/dist/epics/screen/processPostInvokeEpic.d.ts +0 -2
- package/dist/epics/session/index.d.ts +0 -5
- package/dist/epics/session/loginByAnotherRoleEpic.d.ts +0 -5
- package/dist/epics/session/loginDoneEpic.d.ts +0 -6
- package/dist/epics/session/refreshMetaAndReloadPageEpic.d.ts +0 -2
- package/dist/epics/session/refreshMetaEpic.d.ts +0 -5
- package/dist/epics/session/switchRoleEpic.d.ts +0 -5
- package/dist/epics/utils/postOperationRoutine.d.ts +0 -13
- package/dist/epics/view/clearPendingDataChangesAfterCursorChangeEpic.d.ts +0 -7
- package/dist/epics/view/fileUploadConfirmEpic.d.ts +0 -11
- package/dist/epics/view/getRowMetaByForceActiveEpic.d.ts +0 -5
- package/dist/epics/view/index.d.ts +0 -9
- package/dist/epics/view/selectTableCellInitEpic.d.ts +0 -2
- package/dist/epics/view/sendOperationAssociateEpic.d.ts +0 -5
- package/dist/epics/view/sendOperationEpic.d.ts +0 -10
- package/dist/epics/view/showAllTableRecordsInitEpic.d.ts +0 -2
- package/dist/epics/view/showAssocPopupEpic.d.ts +0 -2
- package/dist/epics/view/showFileUploadPopupEpic.d.ts +0 -5
- package/dist/index.d.ts +0 -7
- package/dist/interfaces/bc.d.ts +0 -79
- package/dist/interfaces/customEpics.d.ts +0 -15
- package/dist/interfaces/customMiddlewares.d.ts +0 -35
- package/dist/interfaces/data.d.ts +0 -48
- package/dist/interfaces/filters.d.ts +0 -32
- package/dist/interfaces/index.d.ts +0 -27
- package/dist/interfaces/navigation.d.ts +0 -48
- package/dist/interfaces/objectMap.d.ts +0 -36
- package/dist/interfaces/operation.d.ts +0 -336
- package/dist/interfaces/router.d.ts +0 -17
- package/dist/interfaces/rowMeta.d.ts +0 -74
- package/dist/interfaces/screen.d.ts +0 -28
- package/dist/interfaces/session.d.ts +0 -83
- package/dist/interfaces/store.d.ts +0 -14
- package/dist/interfaces/tree.d.ts +0 -66
- package/dist/interfaces/view.d.ts +0 -202
- package/dist/interfaces/widget.d.ts +0 -209
- package/dist/middlewares/autosaveMiddleware.d.ts +0 -2
- package/dist/middlewares/index.d.ts +0 -6
- package/dist/middlewares/popupMiddleware.d.ts +0 -2
- package/dist/middlewares/preInvokeMiddleware.d.ts +0 -5
- package/dist/middlewares/requiredFieldsMiddleware.d.ts +0 -30
- package/dist/reducers/ReducerBuilderManager.d.ts +0 -19
- package/dist/reducers/data.d.ts +0 -4
- package/dist/reducers/depthData.d.ts +0 -4
- package/dist/reducers/index.d.ts +0 -6
- package/dist/reducers/router.d.ts +0 -9
- package/dist/reducers/screen.d.ts +0 -10
- package/dist/reducers/session.d.ts +0 -10
- package/dist/reducers/view.d.ts +0 -10
- package/dist/utils/api.d.ts +0 -25
- package/dist/utils/apiError.d.ts +0 -19
- package/dist/utils/autosave.d.ts +0 -37
- package/dist/utils/bc.d.ts +0 -27
- package/dist/utils/breadthFirst.d.ts +0 -21
- package/dist/utils/cancelRequestEpic.d.ts +0 -27
- package/dist/utils/combineMiddlewares.d.ts +0 -3
- package/dist/utils/deleteUndefinedFromObject.d.ts +0 -1
- package/dist/utils/exportState.d.ts +0 -0
- package/dist/utils/extendPopupWidgetTypes.d.ts +0 -8
- package/dist/utils/filters.d.ts +0 -63
- package/dist/utils/hierarchy.d.ts +0 -17
- package/dist/utils/highlightJson.d.ts +0 -12
- package/dist/utils/history.d.ts +0 -50
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/operations.d.ts +0 -21
- package/dist/utils/others.d.ts +0 -6
- package/dist/utils/strings.d.ts +0 -44
- package/dist/utils/tree.d.ts +0 -43
- package/dist/utils/viewTabs.d.ts +0 -20
package/dist/actions/index.d.ts
DELETED
|
@@ -1,1081 +0,0 @@
|
|
|
1
|
-
import { SessionScreen, PendingRequest, NotificationKeys, LoginResponse } from '../interfaces';
|
|
2
|
-
import { DrillDownType, Route } from '../interfaces/router';
|
|
3
|
-
import { ViewMetaResponse, ApplicationError, PopupType } from '../interfaces';
|
|
4
|
-
import { DataItem, MultivalueSingleValue, PendingDataItem, PickMap } from '../interfaces/data';
|
|
5
|
-
import { RowMeta, AppNotificationType, OperationPostInvokeAny, OperationTypeCrud, AssociatedItem, OperationErrorEntity, OperationPostInvokeConfirm, OperationPreInvoke, BcFilter, BcSorter, Notification } from '../interfaces';
|
|
6
|
-
import { AxiosError } from 'axios';
|
|
7
|
-
import { ApiCallContext } from '../utils';
|
|
8
|
-
import { AnyAction } from '@reduxjs/toolkit';
|
|
9
|
-
export declare const changeLocation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
10
|
-
location: Route;
|
|
11
|
-
forceUpdate?: boolean;
|
|
12
|
-
}, string>;
|
|
13
|
-
/**
|
|
14
|
-
* Authentication request
|
|
15
|
-
*/
|
|
16
|
-
export declare const login: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
17
|
-
/**
|
|
18
|
-
* User-provided login
|
|
19
|
-
*/
|
|
20
|
-
login: string;
|
|
21
|
-
/**
|
|
22
|
-
* User-provided password
|
|
23
|
-
*/
|
|
24
|
-
password: string;
|
|
25
|
-
/**
|
|
26
|
-
* Optionally user can choose a role to authentificate with
|
|
27
|
-
*/
|
|
28
|
-
role?: string;
|
|
29
|
-
}, string>;
|
|
30
|
-
/**
|
|
31
|
-
* Login was successful
|
|
32
|
-
*/
|
|
33
|
-
export declare const loginDone: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<LoginResponse, string>;
|
|
34
|
-
/**
|
|
35
|
-
* Login was unsuccesful
|
|
36
|
-
*/
|
|
37
|
-
export declare const loginFail: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
38
|
-
/**
|
|
39
|
-
* Reason could be provided
|
|
40
|
-
*/
|
|
41
|
-
errorMsg: string;
|
|
42
|
-
}, string>;
|
|
43
|
-
/**
|
|
44
|
-
* Logout was requested, manually or through stale session
|
|
45
|
-
*/
|
|
46
|
-
export declare const logout: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<null, string>;
|
|
47
|
-
/**
|
|
48
|
-
* User successfully was logged out
|
|
49
|
-
*/
|
|
50
|
-
export declare const logoutDone: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<null, string>;
|
|
51
|
-
/**
|
|
52
|
-
* Request to change active screen was initiated
|
|
53
|
-
*
|
|
54
|
-
* TODO: 2.0.0 Should be string (just the screen name) instead;
|
|
55
|
-
*
|
|
56
|
-
* Initially this was due to `screen` reducer did not having access to `session` part of redux store
|
|
57
|
-
*/
|
|
58
|
-
export declare const selectScreen: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
59
|
-
/**
|
|
60
|
-
* Request initiated with all the meta from login response
|
|
61
|
-
*/
|
|
62
|
-
screen: SessionScreen;
|
|
63
|
-
}, string>;
|
|
64
|
-
/**
|
|
65
|
-
* Request to change active screen was unsuccesful (incorrect path, unknown screen, etc.)
|
|
66
|
-
*/
|
|
67
|
-
export declare const selectScreenFail: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
68
|
-
/**
|
|
69
|
-
* Which screen was requested originally
|
|
70
|
-
*/
|
|
71
|
-
screenName: string;
|
|
72
|
-
}, string>;
|
|
73
|
-
/**
|
|
74
|
-
* Request to change active view was initiated
|
|
75
|
-
*
|
|
76
|
-
* TODO: 2.0.0 Should be string (just the view name) instead;
|
|
77
|
-
* Initially this was due to `screen` and `view` reducers did not having access to `session` part of redux store
|
|
78
|
-
*/
|
|
79
|
-
export declare const selectView: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ViewMetaResponse, string>;
|
|
80
|
-
/**
|
|
81
|
-
* Request to change active view was unsuccesful (incorrect path, unknown screen, etc.)
|
|
82
|
-
*
|
|
83
|
-
* @param selectViewFail Which view was requested originally
|
|
84
|
-
*/
|
|
85
|
-
export declare const selectViewFail: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
86
|
-
viewName: string;
|
|
87
|
-
}, string>;
|
|
88
|
-
/**
|
|
89
|
-
* Fetch data request for business component was initiated
|
|
90
|
-
*/
|
|
91
|
-
export declare const bcFetchDataRequest: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
92
|
-
/**
|
|
93
|
-
* The business component to fetch data for
|
|
94
|
-
*
|
|
95
|
-
* @deprecated TODO: 2.0.0 Should be removed in favor of widgetName
|
|
96
|
-
*/
|
|
97
|
-
bcName?: string;
|
|
98
|
-
/**
|
|
99
|
-
* The level of hierarchy to fetch data for
|
|
100
|
-
*
|
|
101
|
-
* @deprecated Do not use; TODO: Will be removed in 2.0.0
|
|
102
|
-
*/
|
|
103
|
-
depth?: number;
|
|
104
|
-
/**
|
|
105
|
-
* What widget requires data (widget can only request its own data here)
|
|
106
|
-
*/
|
|
107
|
-
widgetName: string;
|
|
108
|
-
/**
|
|
109
|
-
* Page size should be ignored
|
|
110
|
-
*
|
|
111
|
-
* Used mostly for hierarchy widgets which does not have controls
|
|
112
|
-
* for navigating between pages aside of root level.
|
|
113
|
-
*/
|
|
114
|
-
ignorePageLimit?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Pending changes should not be dropped when performing this request
|
|
117
|
-
* (due to hierarchy expanging through cursor change, for same BC hierarchy this leads to data loss)
|
|
118
|
-
*/
|
|
119
|
-
keepDelta?: boolean;
|
|
120
|
-
}, string>;
|
|
121
|
-
/**
|
|
122
|
-
* Fetch data request request for specific pages range
|
|
123
|
-
*/
|
|
124
|
-
export declare const bcFetchDataPages: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
125
|
-
/**
|
|
126
|
-
* The business component to fetch data for
|
|
127
|
-
*
|
|
128
|
-
* @deprecated TODO: 2.0.0 Should be removed in favor of widgetName
|
|
129
|
-
*/
|
|
130
|
-
bcName: string;
|
|
131
|
-
/**
|
|
132
|
-
* Fisrt page to fetch (default is 1)
|
|
133
|
-
*/
|
|
134
|
-
widgetName: string;
|
|
135
|
-
/**
|
|
136
|
-
* What widget requires data (widget can only request its own data here)
|
|
137
|
-
*/
|
|
138
|
-
from?: number;
|
|
139
|
-
/**
|
|
140
|
-
* Last page to fetch (default is current page)
|
|
141
|
-
*/
|
|
142
|
-
to?: number;
|
|
143
|
-
}, string>;
|
|
144
|
-
/**
|
|
145
|
-
* Fetch data request for searchable fields
|
|
146
|
-
*/
|
|
147
|
-
export declare const inlinePickListFetchDataRequest: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
148
|
-
/**
|
|
149
|
-
* The business component to fetch data for
|
|
150
|
-
*/
|
|
151
|
-
bcName: string;
|
|
152
|
-
/**
|
|
153
|
-
* Search expression // TODO: Check format
|
|
154
|
-
*/
|
|
155
|
-
searchSpec: string;
|
|
156
|
-
/**
|
|
157
|
-
* Value to search for
|
|
158
|
-
*/
|
|
159
|
-
searchString: string;
|
|
160
|
-
}, string>;
|
|
161
|
-
/**
|
|
162
|
-
* Fetch data request was succesful
|
|
163
|
-
*/
|
|
164
|
-
export declare const bcFetchDataSuccess: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
165
|
-
/**
|
|
166
|
-
* Business component that requested data
|
|
167
|
-
*
|
|
168
|
-
* @deprecated TODO: 2.0.0 Remove in favor of widgetName
|
|
169
|
-
*/
|
|
170
|
-
bcName: string;
|
|
171
|
-
/**
|
|
172
|
-
* Data records from response for this business component
|
|
173
|
-
*/
|
|
174
|
-
data: DataItem[];
|
|
175
|
-
/**
|
|
176
|
-
* For same BC hierarchies, the level which was requested
|
|
177
|
-
*
|
|
178
|
-
* @deprecated TODO: 2.0.0 Should be all moved to separate hierarchy-specific action
|
|
179
|
-
*/
|
|
180
|
-
depth?: number;
|
|
181
|
-
/**
|
|
182
|
-
* BC url with respect of parents cursors
|
|
183
|
-
*/
|
|
184
|
-
bcUrl: string;
|
|
185
|
-
/**
|
|
186
|
-
* If there are more data to fetch (other pages etc.)
|
|
187
|
-
*/
|
|
188
|
-
hasNext?: boolean;
|
|
189
|
-
}, string>;
|
|
190
|
-
/**
|
|
191
|
-
* Fetch data request wac unsuccesful
|
|
192
|
-
*/
|
|
193
|
-
export declare const bcFetchDataFail: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
194
|
-
/**
|
|
195
|
-
* Business component that initiated data fetch
|
|
196
|
-
*/
|
|
197
|
-
bcName: string;
|
|
198
|
-
/**
|
|
199
|
-
* BC url with respect of parents cursors
|
|
200
|
-
*/
|
|
201
|
-
bcUrl: string;
|
|
202
|
-
/**
|
|
203
|
-
* For same BC hierarchies, the level which was requested
|
|
204
|
-
*
|
|
205
|
-
* @deprecated TODO: 2.0.0 Should be all moved to separate hierarchy-specific action
|
|
206
|
-
*/
|
|
207
|
-
depth?: number;
|
|
208
|
-
}, string>;
|
|
209
|
-
/**
|
|
210
|
-
* Fetch next chunk of data for table widgets with infinite scroll
|
|
211
|
-
*/
|
|
212
|
-
export declare const bcLoadMore: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
213
|
-
/**
|
|
214
|
-
* Business component that initiated data fetch
|
|
215
|
-
*/
|
|
216
|
-
bcName: string;
|
|
217
|
-
/**
|
|
218
|
-
* Widget that initiated row meta fetch
|
|
219
|
-
*/
|
|
220
|
-
widgetName?: string;
|
|
221
|
-
}, string>;
|
|
222
|
-
/**
|
|
223
|
-
* Fetch meta information for active record of business component
|
|
224
|
-
*/
|
|
225
|
-
export declare const bcFetchRowMeta: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
* Business component that initiated row meta fetch
|
|
229
|
-
*
|
|
230
|
-
* @deprecated TODO: 2.0.0 Remove in favor of widgetName
|
|
231
|
-
*/
|
|
232
|
-
bcName: string;
|
|
233
|
-
/**
|
|
234
|
-
* Widget that initiated row meta fetch
|
|
235
|
-
*/
|
|
236
|
-
widgetName: string;
|
|
237
|
-
}, string>;
|
|
238
|
-
/**
|
|
239
|
-
* Puts row meta received from Cxbox API to the store.
|
|
240
|
-
*
|
|
241
|
-
* Updates values in `data` store slice with new values from row meta when possible.
|
|
242
|
-
*/
|
|
243
|
-
export declare const bcFetchRowMetaSuccess: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
244
|
-
/**
|
|
245
|
-
* Business component that initiated row meta fetch
|
|
246
|
-
*/
|
|
247
|
-
bcName: string;
|
|
248
|
-
/**
|
|
249
|
-
* Path to BC with respect to ancestors BC and their cursors
|
|
250
|
-
*/
|
|
251
|
-
bcUrl: string;
|
|
252
|
-
/**
|
|
253
|
-
* Row meta returned by Cxbox API
|
|
254
|
-
*/
|
|
255
|
-
rowMeta: RowMeta;
|
|
256
|
-
/**
|
|
257
|
-
* Cursor for a record that initiated row meta fetch.
|
|
258
|
-
*
|
|
259
|
-
* Can be empty (e.g. BC has no records) or will be set to new id for `create` operation.
|
|
260
|
-
*/
|
|
261
|
-
cursor?: string;
|
|
262
|
-
}, string>;
|
|
263
|
-
/**
|
|
264
|
-
* Fetch request for row meta was unsuccesful
|
|
265
|
-
*/
|
|
266
|
-
export declare const bcFetchRowMetaFail: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
267
|
-
/**
|
|
268
|
-
* Business component initiated row meta fetch
|
|
269
|
-
*/
|
|
270
|
-
bcName: string;
|
|
271
|
-
}, string>;
|
|
272
|
-
/**
|
|
273
|
-
* @deprecated Not used; `sendOperationEpic` with `create` role is used instead
|
|
274
|
-
*
|
|
275
|
-
* TODO: Remove in 2.0.0
|
|
276
|
-
*/
|
|
277
|
-
export declare const bcNewData: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
278
|
-
/**
|
|
279
|
-
* Business component for which to create a new record
|
|
280
|
-
*/
|
|
281
|
-
bcName: string;
|
|
282
|
-
}, string>;
|
|
283
|
-
/**
|
|
284
|
-
* Put new record draft to `data` store slice
|
|
285
|
-
*/
|
|
286
|
-
export declare const bcNewDataSuccess: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
287
|
-
/**
|
|
288
|
-
* Business component for which new record was created
|
|
289
|
-
*/
|
|
290
|
-
bcName: string;
|
|
291
|
-
/**
|
|
292
|
-
* New record with `id` returned by Cxbox API and vstamp = -1 (denoting a record draft)
|
|
293
|
-
*/
|
|
294
|
-
dataItem: DataItem;
|
|
295
|
-
/**
|
|
296
|
-
* Path to BC with respect to ancestors BC and their cursors
|
|
297
|
-
*/
|
|
298
|
-
bcUrl: string;
|
|
299
|
-
}, string>;
|
|
300
|
-
/**
|
|
301
|
-
* Dispatched when record creation failed
|
|
302
|
-
*/
|
|
303
|
-
export declare const bcNewDataFail: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
304
|
-
/**
|
|
305
|
-
* Business component for which record creation failed
|
|
306
|
-
*/
|
|
307
|
-
bcName: string;
|
|
308
|
-
}, string>;
|
|
309
|
-
/**
|
|
310
|
-
* Delete record request was
|
|
311
|
-
*/
|
|
312
|
-
export declare const bcDeleteDataFail: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
313
|
-
/**
|
|
314
|
-
* Business component initiated delete record
|
|
315
|
-
*/
|
|
316
|
-
bcName: string;
|
|
317
|
-
}, string>;
|
|
318
|
-
/**
|
|
319
|
-
* Request to change Force active field was unsuccesful
|
|
320
|
-
*/
|
|
321
|
-
export declare const forceActiveChangeFail: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
322
|
-
/**
|
|
323
|
-
* Business component initiated force active change
|
|
324
|
-
*/
|
|
325
|
-
bcName: string;
|
|
326
|
-
/**
|
|
327
|
-
* Cursors hierarchy at the time of force active change to
|
|
328
|
-
*/
|
|
329
|
-
bcUrl: string;
|
|
330
|
-
/**
|
|
331
|
-
* Error to show in modal
|
|
332
|
-
*/
|
|
333
|
-
viewError: string;
|
|
334
|
-
/**
|
|
335
|
-
* Validation errors on fields
|
|
336
|
-
*/
|
|
337
|
-
entityError: OperationErrorEntity;
|
|
338
|
-
}, string>;
|
|
339
|
-
/**
|
|
340
|
-
* Perform CustomAction
|
|
341
|
-
*/
|
|
342
|
-
export declare const sendOperation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
343
|
-
/**
|
|
344
|
-
* The business component to fetch data for
|
|
345
|
-
*/
|
|
346
|
-
bcName: string;
|
|
347
|
-
/**
|
|
348
|
-
* Type of operation to be performed
|
|
349
|
-
*/
|
|
350
|
-
operationType: OperationTypeCrud | string;
|
|
351
|
-
/**
|
|
352
|
-
* What widget requires data
|
|
353
|
-
*/
|
|
354
|
-
widgetName: string;
|
|
355
|
-
/**
|
|
356
|
-
* Any other action
|
|
357
|
-
*/
|
|
358
|
-
onSuccessAction?: AnyAction;
|
|
359
|
-
/**
|
|
360
|
-
* params for confirm modal
|
|
361
|
-
*/
|
|
362
|
-
confirm?: string;
|
|
363
|
-
/**
|
|
364
|
-
* key called bk
|
|
365
|
-
*
|
|
366
|
-
* @deprecated TODO: Remove in 2.0.0
|
|
367
|
-
*/
|
|
368
|
-
bcKey?: string;
|
|
369
|
-
/**
|
|
370
|
-
* @deprecated TODO: Remove in 2.0.0 in favor of sendOperationWithConfirm
|
|
371
|
-
*/
|
|
372
|
-
confirmOperation?: OperationPreInvoke;
|
|
373
|
-
}, string>;
|
|
374
|
-
/**
|
|
375
|
-
* Send operation request was unsuccessful
|
|
376
|
-
*/
|
|
377
|
-
export declare const sendOperationFail: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
378
|
-
/**
|
|
379
|
-
* Business component initiated send operation request
|
|
380
|
-
*/
|
|
381
|
-
bcName: string;
|
|
382
|
-
/**
|
|
383
|
-
* Cursors hierarchy at the time when request was fired
|
|
384
|
-
*/
|
|
385
|
-
bcUrl: string;
|
|
386
|
-
/**
|
|
387
|
-
* Error to show in modal
|
|
388
|
-
*/
|
|
389
|
-
viewError: string;
|
|
390
|
-
/**
|
|
391
|
-
* Validation errors on fields
|
|
392
|
-
*/
|
|
393
|
-
entityError: OperationErrorEntity;
|
|
394
|
-
}, string>;
|
|
395
|
-
/**
|
|
396
|
-
* Send operation request was successful
|
|
397
|
-
*/
|
|
398
|
-
export declare const sendOperationSuccess: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
399
|
-
/**
|
|
400
|
-
* Business component initiated the request
|
|
401
|
-
*/
|
|
402
|
-
bcName: string;
|
|
403
|
-
/**
|
|
404
|
-
* Cursor which initiated the request
|
|
405
|
-
*/
|
|
406
|
-
cursor: string;
|
|
407
|
-
/**
|
|
408
|
-
* New record with `id` returned by Cxbox API and vstamp = -1 (denoting a record draft)
|
|
409
|
-
*/
|
|
410
|
-
dataItem?: DataItem;
|
|
411
|
-
}, string>;
|
|
412
|
-
/**
|
|
413
|
-
* TODO
|
|
414
|
-
*/
|
|
415
|
-
export declare const processPostInvoke: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
416
|
-
/**
|
|
417
|
-
* @deprecated TODO: Prefer widgetName instead (2.0.0)
|
|
418
|
-
*/
|
|
419
|
-
bcName: string;
|
|
420
|
-
postInvoke: OperationPostInvokeAny;
|
|
421
|
-
cursor?: string;
|
|
422
|
-
/**
|
|
423
|
-
* What widget initiated original operation, TODO: mandatory in 2.0.0
|
|
424
|
-
*/
|
|
425
|
-
widgetName?: string;
|
|
426
|
-
}, string>;
|
|
427
|
-
/**
|
|
428
|
-
* Operation to perform preInvoke actions
|
|
429
|
-
*/
|
|
430
|
-
export declare const processPreInvoke: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
431
|
-
/**
|
|
432
|
-
* The business component to fetch data for
|
|
433
|
-
*/
|
|
434
|
-
bcName: string;
|
|
435
|
-
/**
|
|
436
|
-
* Type of operation to be performed
|
|
437
|
-
*/
|
|
438
|
-
operationType: string;
|
|
439
|
-
/**
|
|
440
|
-
* What widget requires data
|
|
441
|
-
*/
|
|
442
|
-
widgetName: string;
|
|
443
|
-
/**
|
|
444
|
-
* Action that will be performed before the main operation
|
|
445
|
-
*/
|
|
446
|
-
preInvoke: OperationPreInvoke;
|
|
447
|
-
}, string>;
|
|
448
|
-
/**
|
|
449
|
-
* Operation to perform postInvokeConfirm actions
|
|
450
|
-
*/
|
|
451
|
-
export declare const processPostInvokeConfirm: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
452
|
-
/**
|
|
453
|
-
* The business component to fetch data for
|
|
454
|
-
*/
|
|
455
|
-
bcName: string;
|
|
456
|
-
/**
|
|
457
|
-
* Type of operation to be performed
|
|
458
|
-
*/
|
|
459
|
-
operationType: string;
|
|
460
|
-
/**
|
|
461
|
-
* What widget requires data
|
|
462
|
-
*/
|
|
463
|
-
widgetName: string;
|
|
464
|
-
/**
|
|
465
|
-
* Action that will be performed after the main operation and confirmation
|
|
466
|
-
*/
|
|
467
|
-
postInvokeConfirm: OperationPostInvokeConfirm;
|
|
468
|
-
}, string>;
|
|
469
|
-
/**
|
|
470
|
-
* TODO
|
|
471
|
-
*/
|
|
472
|
-
export declare const userDrillDown: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
473
|
-
widgetName: string;
|
|
474
|
-
bcName: string;
|
|
475
|
-
cursor: string;
|
|
476
|
-
fieldKey: string;
|
|
477
|
-
}, string>;
|
|
478
|
-
/**
|
|
479
|
-
* TODO
|
|
480
|
-
*/
|
|
481
|
-
export declare const userDrillDownSuccess: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
482
|
-
bcUrl: string;
|
|
483
|
-
bcName: string;
|
|
484
|
-
cursor: string;
|
|
485
|
-
}, string>;
|
|
486
|
-
/**
|
|
487
|
-
* TODO
|
|
488
|
-
*/
|
|
489
|
-
export declare const drillDown: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
490
|
-
url: string;
|
|
491
|
-
drillDownType?: DrillDownType;
|
|
492
|
-
urlName?: string;
|
|
493
|
-
route: Route;
|
|
494
|
-
widgetName?: string;
|
|
495
|
-
}, string>;
|
|
496
|
-
/**
|
|
497
|
-
* TODO
|
|
498
|
-
*/
|
|
499
|
-
export declare const bcChangeCursors: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
500
|
-
cursorsMap: Record<string, string>;
|
|
501
|
-
keepDelta?: boolean;
|
|
502
|
-
}, string>;
|
|
503
|
-
/**
|
|
504
|
-
* Sets a cursor for the specified depth level of hierarchy widget
|
|
505
|
-
* builded around a single business component.
|
|
506
|
-
*/
|
|
507
|
-
export declare const bcChangeDepthCursor: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
508
|
-
/**
|
|
509
|
-
* Business component for the hierarchy widget
|
|
510
|
-
*/
|
|
511
|
-
bcName: string;
|
|
512
|
-
/**
|
|
513
|
-
* Depth level for which cursor is set
|
|
514
|
-
*/
|
|
515
|
-
depth: number;
|
|
516
|
-
/**
|
|
517
|
-
* Cursor set for specific depth level of the hierarchy widget.
|
|
518
|
-
*
|
|
519
|
-
* Controls the collapsed state of the record and which data are fetched for the next level of hierarchy
|
|
520
|
-
*/
|
|
521
|
-
cursor: string;
|
|
522
|
-
}, string>;
|
|
523
|
-
/**
|
|
524
|
-
* TODO
|
|
525
|
-
*/
|
|
526
|
-
export declare const changeDataItem: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
527
|
-
bcName: string;
|
|
528
|
-
bcUrl: string;
|
|
529
|
-
cursor: string;
|
|
530
|
-
dataItem: PendingDataItem;
|
|
531
|
-
disableRetry?: boolean;
|
|
532
|
-
}, string>;
|
|
533
|
-
/**
|
|
534
|
-
* TODO
|
|
535
|
-
*/
|
|
536
|
-
export declare const changeDataItems: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
537
|
-
bcName: string;
|
|
538
|
-
cursors: string[];
|
|
539
|
-
dataItems: PendingDataItem[];
|
|
540
|
-
}, string>;
|
|
541
|
-
/**
|
|
542
|
-
* TODO
|
|
543
|
-
*/
|
|
544
|
-
export declare const forceActiveRmUpdate: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
545
|
-
/**
|
|
546
|
-
* current data for record that initiated rowMeta fetch
|
|
547
|
-
*/
|
|
548
|
-
currentRecordData: DataItem;
|
|
549
|
-
rowMeta: RowMeta;
|
|
550
|
-
bcName: string;
|
|
551
|
-
bcUrl: string;
|
|
552
|
-
cursor: string;
|
|
553
|
-
}, string>;
|
|
554
|
-
/**
|
|
555
|
-
* TODO
|
|
556
|
-
*/
|
|
557
|
-
export declare const showViewPopup: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
558
|
-
/**
|
|
559
|
-
* BC name of popup widget
|
|
560
|
-
*
|
|
561
|
-
* @deprecated TODO: Remove in 2.0.0 in favor of widget name
|
|
562
|
-
*/
|
|
563
|
-
bcName: string;
|
|
564
|
-
/**
|
|
565
|
-
* Name of popup widget
|
|
566
|
-
*/
|
|
567
|
-
widgetName?: string;
|
|
568
|
-
/**
|
|
569
|
-
* It's BC name of `caller` widget actually
|
|
570
|
-
*
|
|
571
|
-
* @deprecated TODO: Remove in 2.0.0 in favor of widget name
|
|
572
|
-
*/
|
|
573
|
-
calleeBCName?: string;
|
|
574
|
-
/**
|
|
575
|
-
* Name of `caller` widget actually
|
|
576
|
-
*
|
|
577
|
-
* TODO: 2.0.0 : Rename to `callerWidgetName`
|
|
578
|
-
*/
|
|
579
|
-
calleeWidgetName?: string;
|
|
580
|
-
/**
|
|
581
|
-
* Popup widget field key associated to `assocValueKey` of caller widget
|
|
582
|
-
*/
|
|
583
|
-
associateFieldKey?: string;
|
|
584
|
-
/**
|
|
585
|
-
* Caller widget field key associated to `associateFieldKey` of popup widget
|
|
586
|
-
*/
|
|
587
|
-
assocValueKey?: string;
|
|
588
|
-
/**
|
|
589
|
-
* If `true` then backend's method of association is used
|
|
590
|
-
*/
|
|
591
|
-
active?: boolean;
|
|
592
|
-
/**
|
|
593
|
-
* Whether popup is used as filter
|
|
594
|
-
*/
|
|
595
|
-
isFilter?: boolean;
|
|
596
|
-
/**
|
|
597
|
-
* Type of popup
|
|
598
|
-
*/
|
|
599
|
-
type?: PopupType;
|
|
600
|
-
}, string>;
|
|
601
|
-
/**
|
|
602
|
-
* TODO
|
|
603
|
-
*/
|
|
604
|
-
export declare const showFileUploadPopup: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
605
|
-
/**
|
|
606
|
-
* Name of the widget that initiated popup opening
|
|
607
|
-
*/
|
|
608
|
-
widgetName: string;
|
|
609
|
-
}, string>;
|
|
610
|
-
/**
|
|
611
|
-
* Closes currently active popup on view
|
|
612
|
-
*/
|
|
613
|
-
export declare const closeViewPopup: import("@reduxjs/toolkit").ActionCreatorWithNonInferrablePayload<string>;
|
|
614
|
-
/**
|
|
615
|
-
* TODO
|
|
616
|
-
*/
|
|
617
|
-
export declare const viewPutPickMap: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
618
|
-
map: PickMap;
|
|
619
|
-
bcName: string;
|
|
620
|
-
}, string>;
|
|
621
|
-
/**
|
|
622
|
-
* TODO
|
|
623
|
-
*/
|
|
624
|
-
export declare const viewClearPickMap: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<null, string>;
|
|
625
|
-
/**
|
|
626
|
-
* TODO
|
|
627
|
-
*/
|
|
628
|
-
export declare const saveAssociations: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
629
|
-
bcNames: string[];
|
|
630
|
-
/**
|
|
631
|
-
* For usage outside Popup (without opening multivalue)
|
|
632
|
-
*/
|
|
633
|
-
calleeBcName?: string;
|
|
634
|
-
associateFieldKey?: string;
|
|
635
|
-
}, string>;
|
|
636
|
-
/**
|
|
637
|
-
* Sets intermediate state for association widget by storing associated records in pseudo-business component.
|
|
638
|
-
*
|
|
639
|
-
* Name for this pseudo-BC is formed as `${bcName}Delta`.
|
|
640
|
-
*/
|
|
641
|
-
export declare const changeAssociations: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
642
|
-
/**
|
|
643
|
-
* Assoc widget's business component
|
|
644
|
-
*/
|
|
645
|
-
bcName: string;
|
|
646
|
-
/**
|
|
647
|
-
* Records that marked as `associated` for this widget
|
|
648
|
-
*
|
|
649
|
-
* TODO: Will be mandatory in 2.0.0
|
|
650
|
-
*/
|
|
651
|
-
records?: DataItem[];
|
|
652
|
-
}, string>;
|
|
653
|
-
/**
|
|
654
|
-
* TODO
|
|
655
|
-
*/
|
|
656
|
-
export declare const removeMultivalueTag: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
657
|
-
bcName: string;
|
|
658
|
-
popupBcName: string;
|
|
659
|
-
cursor: string;
|
|
660
|
-
associateFieldKey: string;
|
|
661
|
-
dataItem: MultivalueSingleValue[];
|
|
662
|
-
removedItem: MultivalueSingleValue;
|
|
663
|
-
}, string>;
|
|
664
|
-
/**
|
|
665
|
-
* TODO
|
|
666
|
-
*/
|
|
667
|
-
export declare const bcSaveDataSuccess: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
668
|
-
bcName: string;
|
|
669
|
-
cursor: string;
|
|
670
|
-
dataItem: DataItem;
|
|
671
|
-
}, string>;
|
|
672
|
-
/**
|
|
673
|
-
* TODO
|
|
674
|
-
*/
|
|
675
|
-
export declare const bcSaveDataFail: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
676
|
-
bcName: string;
|
|
677
|
-
bcUrl: string;
|
|
678
|
-
entityError?: OperationErrorEntity;
|
|
679
|
-
viewError?: string;
|
|
680
|
-
}, string>;
|
|
681
|
-
/**
|
|
682
|
-
* Save info about current operation for confirm modal
|
|
683
|
-
*/
|
|
684
|
-
export declare const operationConfirmation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
685
|
-
/**
|
|
686
|
-
* Current operation
|
|
687
|
-
*/
|
|
688
|
-
operation: {
|
|
689
|
-
bcName: string;
|
|
690
|
-
operationType: OperationTypeCrud | string;
|
|
691
|
-
widgetName: string;
|
|
692
|
-
};
|
|
693
|
-
/**
|
|
694
|
-
* Text for confirm modal
|
|
695
|
-
*/
|
|
696
|
-
confirmOperation: OperationPostInvokeConfirm;
|
|
697
|
-
}, string>;
|
|
698
|
-
/**
|
|
699
|
-
* Manually update business component by fetching its data and and row meta
|
|
700
|
-
*/
|
|
701
|
-
export declare const bcForceUpdate: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
702
|
-
/**
|
|
703
|
-
* @deprecated Will be removed in 2.0.0 in favor of `widgetName`
|
|
704
|
-
*/
|
|
705
|
-
bcName: string;
|
|
706
|
-
/**
|
|
707
|
-
* What widget requires data (widget can only request its own data here)
|
|
708
|
-
*
|
|
709
|
-
* TODO: Will be mandatory in 2.0.0
|
|
710
|
-
*/
|
|
711
|
-
widgetName?: string;
|
|
712
|
-
}, string>;
|
|
713
|
-
/**
|
|
714
|
-
* TODO
|
|
715
|
-
*/
|
|
716
|
-
export declare const uploadFile: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<null, string>;
|
|
717
|
-
/**
|
|
718
|
-
* TODO
|
|
719
|
-
*/
|
|
720
|
-
export declare const uploadFileDone: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<null, string>;
|
|
721
|
-
/**
|
|
722
|
-
* TODO
|
|
723
|
-
*/
|
|
724
|
-
export declare const uploadFileFailed: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<null, string>;
|
|
725
|
-
/**
|
|
726
|
-
* TODO
|
|
727
|
-
*/
|
|
728
|
-
export declare const bcCancelPendingChanges: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
729
|
-
bcNames: string[];
|
|
730
|
-
}, string>;
|
|
731
|
-
/**
|
|
732
|
-
* TODO
|
|
733
|
-
*/
|
|
734
|
-
export declare const bcSelectRecord: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
735
|
-
bcName: string;
|
|
736
|
-
cursor: string;
|
|
737
|
-
ignoreChildrenPageLimit?: boolean;
|
|
738
|
-
keepDelta?: boolean;
|
|
739
|
-
}, string>;
|
|
740
|
-
/**
|
|
741
|
-
* Wrapper action to sets a cursor for the specified depth level of hierarchy widget
|
|
742
|
-
* builded around a single business component and fetch children for that record.
|
|
743
|
-
*
|
|
744
|
-
* @deprecated Do not use. TODO: Will be removed in 2.0.0
|
|
745
|
-
*/
|
|
746
|
-
export declare const bcSelectDepthRecord: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
747
|
-
/**
|
|
748
|
-
* Business component for the hierarchy widget
|
|
749
|
-
*/
|
|
750
|
-
bcName: string;
|
|
751
|
-
/**
|
|
752
|
-
* Depth level for which cursor is set
|
|
753
|
-
*/
|
|
754
|
-
depth: number;
|
|
755
|
-
/**
|
|
756
|
-
* Cursor set for specific depth level of the hierarchy widget.
|
|
757
|
-
*
|
|
758
|
-
* Controls the collapsed state of the record and which data are fetched for the next level of hierarchy
|
|
759
|
-
*/
|
|
760
|
-
cursor: string;
|
|
761
|
-
}, string>;
|
|
762
|
-
/**
|
|
763
|
-
* TODO
|
|
764
|
-
*/
|
|
765
|
-
export declare const changeAssociation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
766
|
-
bcName: string;
|
|
767
|
-
widgetName: string;
|
|
768
|
-
dataItem: AssociatedItem;
|
|
769
|
-
assocValueKey: string;
|
|
770
|
-
}, string>;
|
|
771
|
-
/**
|
|
772
|
-
* TODO
|
|
773
|
-
*/
|
|
774
|
-
export declare const changeAssociationSameBc: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
775
|
-
bcName: string;
|
|
776
|
-
depth: number;
|
|
777
|
-
widgetName: string;
|
|
778
|
-
dataItem: AssociatedItem;
|
|
779
|
-
assocValueKey: string;
|
|
780
|
-
}, string>;
|
|
781
|
-
/**
|
|
782
|
-
* TODO
|
|
783
|
-
*/
|
|
784
|
-
export declare const changeAssociationFull: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
785
|
-
bcName: string;
|
|
786
|
-
depth: number;
|
|
787
|
-
widgetName: string;
|
|
788
|
-
dataItem: AssociatedItem;
|
|
789
|
-
/**
|
|
790
|
-
* @deprecated TODO: Remove in 2.0.0 in favor of store.view.popupData.assocValueKey instead
|
|
791
|
-
*/
|
|
792
|
-
assocValueKey?: string;
|
|
793
|
-
}, string>;
|
|
794
|
-
/**
|
|
795
|
-
* TODO
|
|
796
|
-
*/
|
|
797
|
-
export declare const changeChildrenAssociations: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
798
|
-
bcName: string;
|
|
799
|
-
assocValueKey: string;
|
|
800
|
-
selected: boolean;
|
|
801
|
-
}, string>;
|
|
802
|
-
/**
|
|
803
|
-
* TODO
|
|
804
|
-
*/
|
|
805
|
-
export declare const changeChildrenAssociationsSameBc: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
806
|
-
bcName: string;
|
|
807
|
-
depth: number;
|
|
808
|
-
assocValueKey: string;
|
|
809
|
-
selected: boolean;
|
|
810
|
-
}, string>;
|
|
811
|
-
/**
|
|
812
|
-
* TODO
|
|
813
|
-
*/
|
|
814
|
-
export declare const changeDescendantsAssociationsFull: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
815
|
-
bcName: string;
|
|
816
|
-
parentId: string;
|
|
817
|
-
depth: number;
|
|
818
|
-
assocValueKey: string;
|
|
819
|
-
selected: boolean;
|
|
820
|
-
}, string>;
|
|
821
|
-
/**
|
|
822
|
-
* TODO
|
|
823
|
-
*/
|
|
824
|
-
export declare const dropAllAssociations: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
825
|
-
bcNames: string[];
|
|
826
|
-
}, string>;
|
|
827
|
-
/**
|
|
828
|
-
* TODO
|
|
829
|
-
*/
|
|
830
|
-
export declare const dropAllAssociationsSameBc: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
831
|
-
bcName: string;
|
|
832
|
-
depthFrom: number;
|
|
833
|
-
}, string>;
|
|
834
|
-
/**
|
|
835
|
-
* TODO
|
|
836
|
-
*/
|
|
837
|
-
export declare const dropAllAssociationsFull: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
838
|
-
bcName: string;
|
|
839
|
-
depth: number;
|
|
840
|
-
dropDescendants?: boolean;
|
|
841
|
-
}, string>;
|
|
842
|
-
/**
|
|
843
|
-
* For server side routing where {@link RouteType.router | routes are handled by Cxbox API endpoint}, this action is dispatched
|
|
844
|
-
* to process requested route.
|
|
845
|
-
*/
|
|
846
|
-
export declare const handleRouter: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
847
|
-
/**
|
|
848
|
-
* An URL that will be passed to Cxbox API router endpoint
|
|
849
|
-
*/
|
|
850
|
-
path: string;
|
|
851
|
-
/**
|
|
852
|
-
* AJAX request parameters for the requests
|
|
853
|
-
*/
|
|
854
|
-
params: Record<string, unknown>;
|
|
855
|
-
}, string>;
|
|
856
|
-
/**
|
|
857
|
-
* TODO
|
|
858
|
-
*/
|
|
859
|
-
export declare const selectTableCellInit: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
860
|
-
widgetName: string;
|
|
861
|
-
rowId: string;
|
|
862
|
-
fieldKey: string;
|
|
863
|
-
}, string>;
|
|
864
|
-
/**
|
|
865
|
-
* TODO
|
|
866
|
-
*/
|
|
867
|
-
export declare const selectTableCell: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
868
|
-
widgetName: string;
|
|
869
|
-
rowId: string;
|
|
870
|
-
fieldKey: string;
|
|
871
|
-
}, string>;
|
|
872
|
-
/**
|
|
873
|
-
* TODO
|
|
874
|
-
*/
|
|
875
|
-
export declare const showAllTableRecordsInit: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
876
|
-
bcName: string;
|
|
877
|
-
cursor: string;
|
|
878
|
-
/**
|
|
879
|
-
* @deprecated Remove in 2.0 (accessible from the store)
|
|
880
|
-
*/
|
|
881
|
-
route?: Route;
|
|
882
|
-
}, string>;
|
|
883
|
-
/**
|
|
884
|
-
* TODO
|
|
885
|
-
*/
|
|
886
|
-
export declare const showNotification: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
887
|
-
type: AppNotificationType;
|
|
888
|
-
message: string;
|
|
889
|
-
}, string>;
|
|
890
|
-
/**
|
|
891
|
-
* TODO
|
|
892
|
-
*/
|
|
893
|
-
export declare const closeNotification: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
894
|
-
id: number;
|
|
895
|
-
}, string>;
|
|
896
|
-
/**
|
|
897
|
-
* TODO
|
|
898
|
-
*/
|
|
899
|
-
export declare const bcAddFilter: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
900
|
-
/**
|
|
901
|
-
* TODO: Will be mandatory in 2.0.0
|
|
902
|
-
*/
|
|
903
|
-
widgetName?: string;
|
|
904
|
-
/**
|
|
905
|
-
* @deprecated TODO: Remove in 2.0.0 in favor of widgetName
|
|
906
|
-
*/
|
|
907
|
-
bcName: string;
|
|
908
|
-
filter: BcFilter;
|
|
909
|
-
}, string>;
|
|
910
|
-
/**
|
|
911
|
-
* TODO
|
|
912
|
-
*/
|
|
913
|
-
export declare const bcRemoveFilter: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
914
|
-
bcName: string;
|
|
915
|
-
filter: BcFilter;
|
|
916
|
-
}, string>;
|
|
917
|
-
/**
|
|
918
|
-
* Remove all filters at once
|
|
919
|
-
*/
|
|
920
|
-
export declare const bcRemoveAllFilters: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
921
|
-
bcName: string;
|
|
922
|
-
}, string>;
|
|
923
|
-
/**
|
|
924
|
-
* TODO
|
|
925
|
-
*/
|
|
926
|
-
export declare const bcAddSorter: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
927
|
-
bcName: string;
|
|
928
|
-
sorter: BcSorter | BcSorter[];
|
|
929
|
-
}, string>;
|
|
930
|
-
/**
|
|
931
|
-
* TODO
|
|
932
|
-
*/
|
|
933
|
-
export declare const bcRemoveSorter: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
934
|
-
bcName: string;
|
|
935
|
-
sorter: BcSorter;
|
|
936
|
-
}, string>;
|
|
937
|
-
/**
|
|
938
|
-
* Fetches data for the new page of business component, replacing existing data
|
|
939
|
-
*/
|
|
940
|
-
export declare const bcChangePage: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
941
|
-
/**
|
|
942
|
-
* Business component changing the page
|
|
943
|
-
*
|
|
944
|
-
* @deprecated TODO: Will be removed in 2.0.0 in favor of `widgetNam`
|
|
945
|
-
*/
|
|
946
|
-
bcName: string;
|
|
947
|
-
/**
|
|
948
|
-
* Requested page number
|
|
949
|
-
*/
|
|
950
|
-
page: number;
|
|
951
|
-
/**
|
|
952
|
-
* Widget changing the page
|
|
953
|
-
*/
|
|
954
|
-
widgetName?: string;
|
|
955
|
-
}, string>;
|
|
956
|
-
/**
|
|
957
|
-
* TODO
|
|
958
|
-
*/
|
|
959
|
-
export declare const showViewError: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
960
|
-
error: ApplicationError;
|
|
961
|
-
}, string>;
|
|
962
|
-
/**
|
|
963
|
-
* TODO
|
|
964
|
-
*/
|
|
965
|
-
export declare const closeViewError: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<null, string>;
|
|
966
|
-
/**
|
|
967
|
-
* Close confirm modal window
|
|
968
|
-
*/
|
|
969
|
-
export declare const closeConfirmModal: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<null, string>;
|
|
970
|
-
/**
|
|
971
|
-
* TODO
|
|
972
|
-
*/
|
|
973
|
-
export declare const clearValidationFails: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<null, string>;
|
|
974
|
-
/**
|
|
975
|
-
* TODO
|
|
976
|
-
*/
|
|
977
|
-
export declare const downloadFile: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
978
|
-
fileId: string;
|
|
979
|
-
}, string>;
|
|
980
|
-
/**
|
|
981
|
-
* TODO
|
|
982
|
-
*/
|
|
983
|
-
export declare const downloadFileByUrl: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
984
|
-
url: string;
|
|
985
|
-
}, string>;
|
|
986
|
-
/**
|
|
987
|
-
* Save uploaded files to the widget
|
|
988
|
-
*/
|
|
989
|
-
export declare const bulkUploadFiles: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
990
|
-
/**
|
|
991
|
-
* default true
|
|
992
|
-
*/
|
|
993
|
-
isPopup?: boolean;
|
|
994
|
-
/**
|
|
995
|
-
* If not specified, then taken from state.view.popupData.bcName
|
|
996
|
-
*/
|
|
997
|
-
bcName?: string;
|
|
998
|
-
/**
|
|
999
|
-
* Ids of uploaded files
|
|
1000
|
-
*/
|
|
1001
|
-
fileIds: string[];
|
|
1002
|
-
}, string>;
|
|
1003
|
-
/**
|
|
1004
|
-
* An error occured during API request
|
|
1005
|
-
*/
|
|
1006
|
-
export declare const apiError: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
1007
|
-
/**
|
|
1008
|
-
* Axios error object
|
|
1009
|
-
* https://redux.js.org/style-guide/#do-not-put-non-serializable-values-in-state-or-actions
|
|
1010
|
-
*/
|
|
1011
|
-
error: AxiosError;
|
|
1012
|
-
/**
|
|
1013
|
-
* Request context
|
|
1014
|
-
*/
|
|
1015
|
-
callContext: ApiCallContext;
|
|
1016
|
-
}, string>;
|
|
1017
|
-
/**
|
|
1018
|
-
* Fires for specific HTTP status code
|
|
1019
|
-
*/
|
|
1020
|
-
export declare const httpError: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
1021
|
-
/**
|
|
1022
|
-
* Status code for failed request caught by `onErrorHook`
|
|
1023
|
-
*/
|
|
1024
|
-
statusCode: number;
|
|
1025
|
-
/**
|
|
1026
|
-
* Axios error object
|
|
1027
|
-
*/
|
|
1028
|
-
error: AxiosError;
|
|
1029
|
-
/**
|
|
1030
|
-
* Request context
|
|
1031
|
-
*/
|
|
1032
|
-
callContext: ApiCallContext;
|
|
1033
|
-
}, string>;
|
|
1034
|
-
/**
|
|
1035
|
-
* Enable/disable debug mode
|
|
1036
|
-
*/
|
|
1037
|
-
export declare const switchDebugMode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, string>;
|
|
1038
|
-
/**
|
|
1039
|
-
* Download state to device
|
|
1040
|
-
*/
|
|
1041
|
-
export declare const exportState: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<null, string>;
|
|
1042
|
-
/**
|
|
1043
|
-
* TODO
|
|
1044
|
-
*/
|
|
1045
|
-
export declare const emptyAction: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<null, string>;
|
|
1046
|
-
/**
|
|
1047
|
-
* refresh screens, views and widgets meta
|
|
1048
|
-
*/
|
|
1049
|
-
export declare const refreshMeta: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"refreshMeta">;
|
|
1050
|
-
/**
|
|
1051
|
-
* refresh refreshMeta was successful
|
|
1052
|
-
*/
|
|
1053
|
-
export declare const refreshMetaDone: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"refreshMetaDone">;
|
|
1054
|
-
/**
|
|
1055
|
-
* refresh refreshMeta was unsuccessful
|
|
1056
|
-
*/
|
|
1057
|
-
export declare const refreshMetaFail: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"refreshMetaFail">;
|
|
1058
|
-
/**
|
|
1059
|
-
* Refresh meta data (see action above) and reload page
|
|
1060
|
-
*/
|
|
1061
|
-
export declare const refreshMetaAndReloadPage: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<null, string>;
|
|
1062
|
-
/**
|
|
1063
|
-
* Switch to another user role
|
|
1064
|
-
*/
|
|
1065
|
-
export declare const switchRole: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
1066
|
-
role: string;
|
|
1067
|
-
}, string>;
|
|
1068
|
-
/**
|
|
1069
|
-
* Add pending request for tracking and blocking race conditions
|
|
1070
|
-
*/
|
|
1071
|
-
export declare const addPendingRequest: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
1072
|
-
request: PendingRequest;
|
|
1073
|
-
}, string>;
|
|
1074
|
-
/**
|
|
1075
|
-
* Remove pending request
|
|
1076
|
-
*/
|
|
1077
|
-
export declare const removePendingRequest: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
1078
|
-
requestId: string;
|
|
1079
|
-
}, string>;
|
|
1080
|
-
export declare const addNotification: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<Notification, string>;
|
|
1081
|
-
export declare const removeNotifications: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<NotificationKeys, string>;
|