@fett/synology-api 0.0.3-beta.3 → 0.0.3-beta.4
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/errorcodes.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { SynologyApiKeysMap } from "./modules/index.js";
|
|
2
1
|
import { SynologyApiResponse } from "./types/index.js";
|
|
3
2
|
export declare const COMMON_CODES = "COMMON_CODES";
|
|
4
3
|
export declare const SYNOLOGY_ERROR_CODES: {
|
|
5
|
-
|
|
4
|
+
FileStation: {
|
|
6
5
|
400: string;
|
|
7
6
|
401: string;
|
|
8
7
|
402: string;
|
|
@@ -42,7 +41,7 @@ export declare const SYNOLOGY_ERROR_CODES: {
|
|
|
42
41
|
2001: string;
|
|
43
42
|
2002: string;
|
|
44
43
|
};
|
|
45
|
-
|
|
44
|
+
AudioStation: {};
|
|
46
45
|
COMMON_CODES: {
|
|
47
46
|
0: string;
|
|
48
47
|
100: string;
|
package/lib/errorcodes.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { SynologyApiKeysMap } from "./modules/index.js";
|
|
2
1
|
import { isUndfined } from "./utils/index.js";
|
|
3
2
|
const CODE_SUCCESS = 0;
|
|
4
3
|
const CODE_UNKNOWN = 9999;
|
|
5
4
|
export const COMMON_CODES = "COMMON_CODES";
|
|
6
5
|
export const SYNOLOGY_ERROR_CODES = {
|
|
7
|
-
[
|
|
6
|
+
['FileStation']: {
|
|
8
7
|
400: "Invalid parameter of file operation",
|
|
9
8
|
401: "Unknown error of file operation",
|
|
10
9
|
402: "System is too busy",
|
|
@@ -48,7 +47,7 @@ export const SYNOLOGY_ERROR_CODES = {
|
|
|
48
47
|
2001: "Cannot generate sharing link because too many sharing links exist.",
|
|
49
48
|
2002: " Failed to access sharing links.",
|
|
50
49
|
},
|
|
51
|
-
[
|
|
50
|
+
['AudioStation']: {},
|
|
52
51
|
["COMMON_CODES"]: {
|
|
53
52
|
[CODE_SUCCESS]: "Success",
|
|
54
53
|
100: "Unknown error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fett/synology-api",
|
|
3
|
-
"version": "0.0.3-beta.
|
|
3
|
+
"version": "0.0.3-beta.4",
|
|
4
4
|
"description": "synology api for nodejs",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"import": "./lib/index.js",
|
|
14
14
|
"require": "./lib/index.js",
|
|
15
15
|
"react-native": "./lib/index.rn.js"
|
|
16
|
+
},
|
|
17
|
+
"./react-native": {
|
|
18
|
+
"import": "./lib/index.rn.js",
|
|
19
|
+
"require": "./lib/index.rn.js"
|
|
16
20
|
}
|
|
17
21
|
},
|
|
18
22
|
"files": [
|