@etsoo/appscript 1.3.23 → 1.3.24

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.
@@ -5,6 +5,10 @@ import { IApp } from '../app/IApp';
5
5
  export declare class BaseApi<T extends IApp = IApp> {
6
6
  protected app: T;
7
7
  protected api: import("@etsoo/restclient").IApi<any>;
8
+ /**
9
+ * API Last error
10
+ */
11
+ get lastError(): import("@etsoo/restclient").ApiDataError<any> | undefined;
8
12
  /**
9
13
  * Constructor
10
14
  * @param app Application
@@ -14,5 +14,11 @@ class BaseApi {
14
14
  this.app = app;
15
15
  this.api = api;
16
16
  }
17
+ /**
18
+ * API Last error
19
+ */
20
+ get lastError() {
21
+ return this.api.lastError;
22
+ }
17
23
  }
18
24
  exports.BaseApi = BaseApi;
@@ -5,6 +5,10 @@ import { IApp } from '../app/IApp';
5
5
  export declare class BaseApi<T extends IApp = IApp> {
6
6
  protected app: T;
7
7
  protected api: import("@etsoo/restclient").IApi<any>;
8
+ /**
9
+ * API Last error
10
+ */
11
+ get lastError(): import("@etsoo/restclient").ApiDataError<any> | undefined;
8
12
  /**
9
13
  * Constructor
10
14
  * @param app Application
@@ -11,4 +11,10 @@ export class BaseApi {
11
11
  this.app = app;
12
12
  this.api = api;
13
13
  }
14
+ /**
15
+ * API Last error
16
+ */
17
+ get lastError() {
18
+ return this.api.lastError;
19
+ }
14
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.3.23",
3
+ "version": "1.3.24",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -4,6 +4,13 @@ import { IApp } from '../app/IApp';
4
4
  * SmartERP base API
5
5
  */
6
6
  export class BaseApi<T extends IApp = IApp> {
7
+ /**
8
+ * API Last error
9
+ */
10
+ get lastError() {
11
+ return this.api.lastError;
12
+ }
13
+
7
14
  /**
8
15
  * Constructor
9
16
  * @param app Application