@cxbox-ui/core 1.37.2-alpha.1 → 1.37.2-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/index.d.ts +14 -18
- package/dist/api/ObservableApi.d.ts +10 -2
- package/dist/api/ObservableApiWrapper.d.ts +1 -1
- package/dist/cxbox-ui-core.cjs.development.js +956 -500
- package/dist/cxbox-ui-core.cjs.production.min.js +1 -1
- package/dist/cxbox-ui-core.esm.js +799 -335
- package/dist/cxbox-ui-core.modern.development.js +788 -331
- package/dist/cxbox-ui-core.modern.js +788 -331
- package/dist/cxbox-ui-core.modern.production.min.js +1 -1
- package/dist/epics/screen/apiErrorEpic.d.ts +0 -1
- package/dist/index.d.ts +1 -0
- package/dist/interfaces/bc.d.ts +5 -4
- package/dist/interfaces/session.d.ts +1 -0
- package/dist/interfaces/widget.d.ts +2 -1
- package/dist/middlewares/autosaveMiddleware.d.ts +2 -17
- package/dist/middlewares/index.d.ts +2 -12
- package/dist/middlewares/popupMiddleware.d.ts +2 -0
- package/dist/middlewares/preInvokeMiddleware.d.ts +2 -5
- package/dist/middlewares/requiredFieldsMiddleware.d.ts +3 -6
- package/dist/utils/api.d.ts +1 -10
- package/dist/utils/apiError.d.ts +19 -0
- package/dist/utils/bc.d.ts +1 -1
- package/dist/utils/cancelRequestEpic.d.ts +1 -1
- package/dist/utils/combineMiddlewares.d.ts +1 -12
- package/dist/utils/filters.d.ts +2 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/strings.d.ts +2 -2
- package/package.json +2 -2
package/dist/actions/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SessionScreen, PendingRequest, NotificationKeys } from '../interfaces';
|
|
1
|
+
import { SessionScreen, PendingRequest, NotificationKeys, LoginResponse } from '../interfaces';
|
|
2
2
|
import { DrillDownType, Route } from '../interfaces/router';
|
|
3
3
|
import { ViewMetaResponse, ApplicationError, PopupType } from '../interfaces';
|
|
4
4
|
import { DataItem, MultivalueSingleValue, PendingDataItem, PickMap } from '../interfaces/data';
|
|
@@ -6,22 +6,8 @@ import { RowMeta, AppNotificationType, OperationPostInvokeAny, OperationTypeCrud
|
|
|
6
6
|
import { AxiosError } from 'axios';
|
|
7
7
|
import { ApiCallContext } from '../utils';
|
|
8
8
|
import { AnyAction } from '@reduxjs/toolkit';
|
|
9
|
-
/**
|
|
10
|
-
* Browser location change occured (either through history listener or manually)
|
|
11
|
-
*/
|
|
12
9
|
export declare const changeLocation: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
13
|
-
|
|
14
|
-
* Change was requested to browser url
|
|
15
|
-
*/
|
|
16
|
-
url?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Change was requested to precalculated application route
|
|
19
|
-
*/
|
|
20
|
-
route?: Route;
|
|
21
|
-
/**
|
|
22
|
-
* History API type, usually 'PUSH'
|
|
23
|
-
*/
|
|
24
|
-
action: any;
|
|
10
|
+
location: Route;
|
|
25
11
|
}, string>;
|
|
26
12
|
/**
|
|
27
13
|
* Authentication request
|
|
@@ -43,7 +29,7 @@ export declare const login: import("@reduxjs/toolkit").ActionCreatorWithOptional
|
|
|
43
29
|
/**
|
|
44
30
|
* Login was successful
|
|
45
31
|
*/
|
|
46
|
-
export declare const loginDone: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<
|
|
32
|
+
export declare const loginDone: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<LoginResponse, string>;
|
|
47
33
|
/**
|
|
48
34
|
* Login was unsuccesful
|
|
49
35
|
*/
|
|
@@ -534,6 +520,7 @@ export declare const bcChangeDepthCursor: import("@reduxjs/toolkit").ActionCreat
|
|
|
534
520
|
*/
|
|
535
521
|
export declare const changeDataItem: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
536
522
|
bcName: string;
|
|
523
|
+
bcUrl: string;
|
|
537
524
|
cursor: string;
|
|
538
525
|
dataItem: PendingDataItem;
|
|
539
526
|
disableRetry?: boolean;
|
|
@@ -1006,6 +993,7 @@ export declare const bulkUploadFiles: import("@reduxjs/toolkit").ActionCreatorWi
|
|
|
1006
993
|
export declare const apiError: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
|
|
1007
994
|
/**
|
|
1008
995
|
* Axios error object
|
|
996
|
+
* https://redux.js.org/style-guide/#do-not-put-non-serializable-values-in-state-or-actions
|
|
1009
997
|
*/
|
|
1010
998
|
error: AxiosError;
|
|
1011
999
|
/**
|
|
@@ -1045,7 +1033,15 @@ export declare const emptyAction: import("@reduxjs/toolkit").ActionCreatorWithOp
|
|
|
1045
1033
|
/**
|
|
1046
1034
|
* refresh screens, views and widgets meta
|
|
1047
1035
|
*/
|
|
1048
|
-
export declare const refreshMeta: import("@reduxjs/toolkit").
|
|
1036
|
+
export declare const refreshMeta: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"refreshMeta">;
|
|
1037
|
+
/**
|
|
1038
|
+
* refresh refreshMeta was successful
|
|
1039
|
+
*/
|
|
1040
|
+
export declare const refreshMetaDone: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"refreshMetaDone">;
|
|
1041
|
+
/**
|
|
1042
|
+
* refresh refreshMeta was unsuccessful
|
|
1043
|
+
*/
|
|
1044
|
+
export declare const refreshMetaFail: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"refreshMetaFail">;
|
|
1049
1045
|
/**
|
|
1050
1046
|
* Refresh meta data (see action above) and reload page
|
|
1051
1047
|
*/
|
|
@@ -26,15 +26,23 @@ export declare class Api {
|
|
|
26
26
|
postActions?: import("../interfaces").OperationPostInvokeAny[];
|
|
27
27
|
preInvoke?: import("../interfaces").OperationPreInvoke;
|
|
28
28
|
}>;
|
|
29
|
-
customAction(screenName: string, bcUrl: string, data
|
|
29
|
+
customAction(screenName: string, bcUrl: string, data?: Record<string, any>, context?: ApiCallContext, params?: GetParamsMap): import("rxjs").Observable<{
|
|
30
30
|
record: DataItem;
|
|
31
31
|
postActions?: import("../interfaces").OperationPostInvokeAny[];
|
|
32
32
|
preInvoke?: import("../interfaces").OperationPreInvoke;
|
|
33
33
|
}>;
|
|
34
34
|
associate(screenName: string, bcUrl: string, data: AssociatedItem[] | Record<string, AssociatedItem[]>, params?: GetParamsMap): import("rxjs").Observable<any>;
|
|
35
|
-
getRmByForceActive(screenName: string, bcUrl: string, data: PendingDataItem & {
|
|
35
|
+
getRmByForceActive(screenName: string, bcUrl: string | null, data: PendingDataItem & {
|
|
36
36
|
vstamp: number;
|
|
37
37
|
}, params?: GetParamsMap): import("rxjs").Observable<import("../interfaces").RowMeta>;
|
|
38
|
+
/**
|
|
39
|
+
* Get Cxbox API file upload endpoint based on baseURL of axios instance
|
|
40
|
+
*
|
|
41
|
+
* Handles empty baseURL and trailing slash
|
|
42
|
+
*
|
|
43
|
+
* @returns File upload endpoint
|
|
44
|
+
*/
|
|
45
|
+
get fileUploadEndpoint(): string;
|
|
38
46
|
refreshMeta(): import("rxjs").Observable<import("../interfaces").CxboxResponse>;
|
|
39
47
|
loginByRoleRequest(role: string): import("rxjs").Observable<LoginResponse>;
|
|
40
48
|
createCanceler(): {
|
|
@@ -3,7 +3,7 @@ import { CxboxResponse } from '../interfaces';
|
|
|
3
3
|
import { ApiCallContext } from '../utils';
|
|
4
4
|
export declare class ObservableApiWrapper {
|
|
5
5
|
instance: AxiosInstance;
|
|
6
|
-
constructor(instance
|
|
6
|
+
constructor(instance: AxiosInstance);
|
|
7
7
|
get<ResponsePayload extends CxboxResponse>(path: string, config?: AxiosRequestConfig, callContext?: ApiCallContext): import("rxjs").Observable<ResponsePayload>;
|
|
8
8
|
put<ResponsePayload extends CxboxResponse>(path: string, data: any, callContext?: ApiCallContext): import("rxjs").Observable<ResponsePayload>;
|
|
9
9
|
post<ResponsePayload extends CxboxResponse>(path: string, data: any, config?: AxiosRequestConfig, callContext?: ApiCallContext): import("rxjs").Observable<ResponsePayload>;
|