@cxbox-ui/core 1.37.2-alpha.6 → 1.37.2-alpha.8
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 +4 -17
- package/dist/api/ObservableApi.d.ts +10 -2
- package/dist/api/ObservableApiWrapper.d.ts +1 -1
- package/dist/cxbox-ui-core.cjs.development.js +364 -172
- package/dist/cxbox-ui-core.cjs.production.min.js +1 -1
- package/dist/cxbox-ui-core.esm.js +418 -226
- package/dist/cxbox-ui-core.modern.development.js +411 -225
- package/dist/cxbox-ui-core.modern.js +411 -225
- package/dist/cxbox-ui-core.modern.production.min.js +1 -1
- package/dist/interfaces/bc.d.ts +5 -4
- package/dist/middlewares/index.d.ts +1 -0
- package/dist/middlewares/popupMiddleware.d.ts +5 -0
- package/dist/middlewares/requiredFieldsMiddleware.d.ts +1 -1
- package/dist/utils/api.d.ts +1 -10
- package/dist/utils/bc.d.ts +1 -1
- package/dist/utils/cancelRequestEpic.d.ts +1 -1
- package/dist/utils/filters.d.ts +2 -2
- 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;
|
|
@@ -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>;
|