brainloper-ui 14.1.7 → 14.1.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/esm2020/public_api.mjs +2 -1
- package/esm2020/src/app/modules/brainloper-ui/components/report/template-fuel/template-fuel.component.mjs +2 -2
- package/esm2020/src/app/modules/brainloper-ui/components/report/template-ot/template-ot.component.mjs +2 -2
- package/esm2020/src/app/modules/interfaces/enum/httpResponseType.mjs +8 -0
- package/esm2020/src/app/modules/services/http.service.mjs +46 -17
- package/fesm2015/brainloper-ui.mjs +57 -21
- package/fesm2015/brainloper-ui.mjs.map +1 -1
- package/fesm2020/brainloper-ui.mjs +57 -21
- package/fesm2020/brainloper-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/src/app/modules/interfaces/enum/httpResponseType.d.ts +6 -0
- package/src/app/modules/services/http.service.d.ts +9 -8
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -53,3 +53,4 @@ export * from './src/app/modules/interfaces/buttons/button-icon';
|
|
|
53
53
|
export * from './src/app/modules/interfaces/data-table/rules';
|
|
54
54
|
export * from './src/app/modules/interfaces/enum/enumActions';
|
|
55
55
|
export * from './src/app/modules/interfaces/enum/enumRules';
|
|
56
|
+
export * from './src/app/modules/interfaces/enum/httpResponseType';
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { MessageService } from './message.service';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { HttpResponseType } from '../interfaces/enum/httpResponseType';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class HttpService {
|
|
5
6
|
private http;
|
|
6
7
|
private message;
|
|
7
8
|
constructor(http: HttpClient, message: MessageService);
|
|
8
9
|
private createParams;
|
|
9
|
-
getData(url: string, params?: any, withCredentials?: boolean): import("rxjs").Observable<
|
|
10
|
-
postData(url: string, body: any, params?: any, withCredentials?: boolean): import("rxjs").Observable<
|
|
11
|
-
putData(url: string, body: any, params?: any, withCredentials?: boolean): import("rxjs").Observable<
|
|
12
|
-
deleteData(url: string, params?: any, withCredentials?: boolean): import("rxjs").Observable<
|
|
13
|
-
getDataPromise(url: string, params?: any, withCredentials?: boolean): Promise<unknown>;
|
|
14
|
-
postDataPromise(url: string, body: any, params?: any, withCredentials?: boolean): Promise<unknown>;
|
|
15
|
-
putDataPromise(url: string, body: any, params?: any, withCredentials?: boolean): Promise<unknown>;
|
|
16
|
-
deleteDataPromise(url: string, params?: any, withCredentials?: boolean): Promise<unknown>;
|
|
10
|
+
getData(url: string, params?: any, withCredentials?: boolean, responseType?: HttpResponseType): import("rxjs").Observable<ArrayBuffer>;
|
|
11
|
+
postData(url: string, body: any, params?: any, withCredentials?: boolean, responseType?: HttpResponseType): import("rxjs").Observable<ArrayBuffer>;
|
|
12
|
+
putData(url: string, body: any, params?: any, withCredentials?: boolean, responseType?: HttpResponseType): import("rxjs").Observable<ArrayBuffer>;
|
|
13
|
+
deleteData(url: string, params?: any, withCredentials?: boolean, responseType?: HttpResponseType): import("rxjs").Observable<ArrayBuffer>;
|
|
14
|
+
getDataPromise(url: string, params?: any, withCredentials?: boolean, responseType?: HttpResponseType): Promise<unknown>;
|
|
15
|
+
postDataPromise(url: string, body: any, params?: any, withCredentials?: boolean, responseType?: HttpResponseType): Promise<unknown>;
|
|
16
|
+
putDataPromise(url: string, body: any, params?: any, withCredentials?: boolean, responseType?: HttpResponseType): Promise<unknown>;
|
|
17
|
+
deleteDataPromise(url: string, params?: any, withCredentials?: boolean, responseType?: HttpResponseType): Promise<unknown>;
|
|
17
18
|
getDataBody<T>(url: string, params?: any, withCredentials?: boolean): Promise<T>;
|
|
18
19
|
postDataBody<T>(url: string, body: any, params?: any, withCredentials?: boolean): Promise<T>;
|
|
19
20
|
putDataBody<T>(url: string, body: any, params?: any, withCredentials?: boolean): Promise<T>;
|