@cxbox-ui/core 1.37.2-alpha.7 → 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.
@@ -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
  */
@@ -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>;