@etsoo/appscript 1.2.40 → 1.2.41
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/lib/cjs/result/ActionResult.d.ts +2 -2
- package/lib/cjs/result/IActionResult.d.ts +1 -8
- package/lib/cjs/result/InitCallResult.d.ts +2 -2
- package/lib/mjs/result/ActionResult.d.ts +2 -2
- package/lib/mjs/result/IActionResult.d.ts +1 -8
- package/lib/mjs/result/InitCallResult.d.ts +2 -2
- package/package.json +1 -1
- package/src/result/ActionResult.ts +2 -2
- package/src/result/IActionResult.ts +1 -9
- package/src/result/InitCallResult.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IActionResult
|
|
1
|
+
import { IActionResult } from './IActionResult';
|
|
2
2
|
/**
|
|
3
3
|
* Action result
|
|
4
4
|
*/
|
|
@@ -7,5 +7,5 @@ export declare class ActionResult {
|
|
|
7
7
|
* Create a result from error
|
|
8
8
|
* @returns Action result interface
|
|
9
9
|
*/
|
|
10
|
-
static create<D extends
|
|
10
|
+
static create<D extends {} = {}>(error: Error): IActionResult<D>;
|
|
11
11
|
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { DataTypes } from '@etsoo/shared';
|
|
2
|
-
/**
|
|
3
|
-
* Result data
|
|
4
|
-
* Indexable type
|
|
5
|
-
*/
|
|
6
|
-
export interface IResultData {
|
|
7
|
-
readonly [key: string]: unknown;
|
|
8
|
-
}
|
|
9
2
|
/**
|
|
10
3
|
* Result errors
|
|
11
4
|
* Indexable type
|
|
@@ -16,7 +9,7 @@ export interface IResultErrors {
|
|
|
16
9
|
/**
|
|
17
10
|
* Operation result interface
|
|
18
11
|
*/
|
|
19
|
-
export interface IActionResult<D extends
|
|
12
|
+
export interface IActionResult<D extends {} = {}> {
|
|
20
13
|
/**
|
|
21
14
|
* Status code
|
|
22
15
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IActionResult
|
|
1
|
+
import { IActionResult } from './IActionResult';
|
|
2
2
|
/**
|
|
3
3
|
* Init call result data
|
|
4
4
|
*/
|
|
5
|
-
export interface InitCallResultData
|
|
5
|
+
export interface InitCallResultData {
|
|
6
6
|
/**
|
|
7
7
|
* Device id
|
|
8
8
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IActionResult
|
|
1
|
+
import { IActionResult } from './IActionResult';
|
|
2
2
|
/**
|
|
3
3
|
* Action result
|
|
4
4
|
*/
|
|
@@ -7,5 +7,5 @@ export declare class ActionResult {
|
|
|
7
7
|
* Create a result from error
|
|
8
8
|
* @returns Action result interface
|
|
9
9
|
*/
|
|
10
|
-
static create<D extends
|
|
10
|
+
static create<D extends {} = {}>(error: Error): IActionResult<D>;
|
|
11
11
|
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { DataTypes } from '@etsoo/shared';
|
|
2
|
-
/**
|
|
3
|
-
* Result data
|
|
4
|
-
* Indexable type
|
|
5
|
-
*/
|
|
6
|
-
export interface IResultData {
|
|
7
|
-
readonly [key: string]: unknown;
|
|
8
|
-
}
|
|
9
2
|
/**
|
|
10
3
|
* Result errors
|
|
11
4
|
* Indexable type
|
|
@@ -16,7 +9,7 @@ export interface IResultErrors {
|
|
|
16
9
|
/**
|
|
17
10
|
* Operation result interface
|
|
18
11
|
*/
|
|
19
|
-
export interface IActionResult<D extends
|
|
12
|
+
export interface IActionResult<D extends {} = {}> {
|
|
20
13
|
/**
|
|
21
14
|
* Status code
|
|
22
15
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IActionResult
|
|
1
|
+
import { IActionResult } from './IActionResult';
|
|
2
2
|
/**
|
|
3
3
|
* Init call result data
|
|
4
4
|
*/
|
|
5
|
-
export interface InitCallResultData
|
|
5
|
+
export interface InitCallResultData {
|
|
6
6
|
/**
|
|
7
7
|
* Device id
|
|
8
8
|
*/
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiError } from '@etsoo/restclient';
|
|
2
|
-
import { IActionResult
|
|
2
|
+
import { IActionResult } from './IActionResult';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Action result
|
|
@@ -9,7 +9,7 @@ export class ActionResult {
|
|
|
9
9
|
* Create a result from error
|
|
10
10
|
* @returns Action result interface
|
|
11
11
|
*/
|
|
12
|
-
static create<D extends
|
|
12
|
+
static create<D extends {} = {}>(error: Error) {
|
|
13
13
|
// If the error is ApiError, hold the status
|
|
14
14
|
const status = error instanceof ApiError ? error.status : undefined;
|
|
15
15
|
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { DataTypes } from '@etsoo/shared';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Result data
|
|
5
|
-
* Indexable type
|
|
6
|
-
*/
|
|
7
|
-
export interface IResultData {
|
|
8
|
-
readonly [key: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
3
|
/**
|
|
12
4
|
* Result errors
|
|
13
5
|
* Indexable type
|
|
@@ -19,7 +11,7 @@ export interface IResultErrors {
|
|
|
19
11
|
/**
|
|
20
12
|
* Operation result interface
|
|
21
13
|
*/
|
|
22
|
-
export interface IActionResult<D extends
|
|
14
|
+
export interface IActionResult<D extends {} = {}> {
|
|
23
15
|
/**
|
|
24
16
|
* Status code
|
|
25
17
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IActionResult
|
|
1
|
+
import { IActionResult } from './IActionResult';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Init call result data
|
|
5
5
|
*/
|
|
6
|
-
export interface InitCallResultData
|
|
6
|
+
export interface InitCallResultData {
|
|
7
7
|
/**
|
|
8
8
|
* Device id
|
|
9
9
|
*/
|