coer-elements 1.1.1 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,8 @@ import { HttpHeaders, HttpParams } from "@angular/common/http";
2
2
  import { IPatch } from "./patch.interface";
3
3
  export interface IHttpRequest<T> {
4
4
  url: string;
5
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
6
+ withCredentials?: boolean;
5
7
  body?: T | IPatch[] | {};
6
8
  queryParams?: HttpParams;
7
9
  headers?: HttpHeaders;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coer-elements",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "author": "Christian Omar Escamilla Rodríguez",
5
5
  "keywords": [
6
6
  "COER",
@@ -36,5 +36,7 @@ export declare class Service {
36
36
  /** HTTP DELETE */
37
37
  protected HTTP_DELETE<T>(request: IHttpRequest<T>, cancelPrevious?: boolean): Promise<IHttpResponse<void>>;
38
38
  /** */
39
+ protected DOWNLOAD_CSV(buffer: ArrayBuffer, fileName?: string): Blob;
40
+ /** */
39
41
  private AlertError;
40
42
  }