coer-elements 1.1.13 → 1.1.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coer-elements",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "author": "Christian Omar Escamilla Rodríguez",
5
5
  "keywords": [
6
6
  "COER",
@@ -1,6 +1,7 @@
1
1
  import { HttpClient } from "@angular/common/http";
2
2
  import { CoerAlert } from "./coer-alert/coer-alert.component";
3
3
  import { IHttpRequest, IHttpResponse } from "coer-elements/interfaces";
4
+ import { Subscription } from "rxjs";
4
5
  export declare class Service {
5
6
  protected readonly alert: CoerAlert;
6
7
  protected readonly http: HttpClient;
@@ -24,17 +25,17 @@ export declare class Service {
24
25
  private _PATCH$;
25
26
  private _DELETE$;
26
27
  /** */
27
- private ReleaseSubscription;
28
+ ReleaseSubscription(subscription: Subscription): void;
28
29
  /** HTTP GET */
29
30
  protected HTTP_GET<T>(request: IHttpRequest<T>, cancelPrevious?: boolean): Promise<IHttpResponse<T>>;
30
31
  /** HTTP POST */
31
32
  protected HTTP_POST<T>(request: IHttpRequest<T>, cancelPrevious?: boolean): Promise<IHttpResponse<T>>;
32
33
  /** HTTP PUT */
33
- protected HTTP_PUT<T>(request: IHttpRequest<T>, cancelPrevious?: boolean): Promise<IHttpResponse<void>>;
34
+ protected HTTP_PUT<T>(request: IHttpRequest<T>, cancelPrevious?: boolean): Promise<IHttpResponse<T>>;
34
35
  /** HTTP PATCH */
35
- protected HTTP_PATCH<T>(request: IHttpRequest<T>, cancelPrevious?: boolean): Promise<IHttpResponse<void>>;
36
+ protected HTTP_PATCH<T>(request: IHttpRequest<T>, cancelPrevious?: boolean): Promise<IHttpResponse<T>>;
36
37
  /** HTTP DELETE */
37
- protected HTTP_DELETE<T>(request: IHttpRequest<T>, cancelPrevious?: boolean): Promise<IHttpResponse<void>>;
38
+ protected HTTP_DELETE<T>(request: IHttpRequest<T>, cancelPrevious?: boolean): Promise<IHttpResponse<T>>;
38
39
  /** */
39
40
  protected DOWNLOAD_CSV(buffer: ArrayBuffer, fileName?: string): Blob;
40
41
  /** */