@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.
@@ -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<Route, string>;
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").ActionCreatorWithOptionalPayload<null, string>;
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: Record<string, any>, context: ApiCallContext, params?: GetParamsMap): import("rxjs").Observable<{
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?: AxiosInstance);
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>;