@pgds/api-interface 1.3.4 → 1.4.1
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/README.md +0 -1
- package/constants/index.d.ts +1 -0
- package/constants/index.js +2 -1
- package/constants/index.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +16 -0
- package/dist/lib/constants/constants.d.ts +2 -0
- package/dist/lib/index.d.ts +188 -0
- package/dist/lib/index.js +331 -0
- package/dist/lib/models/Http.d.ts +61 -0
- package/dist/lib/models/User.d.ts +8 -0
- package/dist/lib/utils/jsonSchemaUtils.d.ts +7 -0
- package/dist/lib/utils/logger.d.ts +4 -0
- package/dist/lib/utils/metadataUtils.d.ts +2 -0
- package/dist/lib/utils/urlUtils.d.ts +1 -0
- package/index.d.ts +2 -2
- package/index.js +1 -2
- package/lib/auth/mustbeConfig.d.ts +1 -1
- package/lib/auth/mustbeConfig.js +5 -9
- package/lib/auth/mustbeConfig.js.map +1 -1
- package/lib/index.d.ts +20 -25
- package/lib/index.js +17 -58
- package/lib/index.js.map +1 -1
- package/lib/server/server.d.ts +1 -2
- package/lib/server/server.js +3 -7
- package/lib/server/server.js.map +1 -1
- package/lib/utils/jsonSchemaUtils.js +2 -2
- package/lib/utils/jsonSchemaUtils.js.map +1 -1
- package/lib/utils/logger.d.ts +3 -5
- package/lib/utils/logger.js +11 -28
- package/lib/utils/logger.js.map +1 -1
- package/package.json +99 -101
- package/types/hiot.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,103 +1,101 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
"name": "@pgds/api-interface",
|
|
3
|
+
"description": "Api interface for pgds services",
|
|
4
|
+
"authors": "Florry",
|
|
5
|
+
"version": "1.4.1",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"types": "types/",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"prepublish": "npm run build",
|
|
10
|
+
"build": "tsc",
|
|
11
|
+
"pretest": "npm run build",
|
|
12
|
+
"test": "nyc --require ts-node/register --reporter=html mocha --colors",
|
|
13
|
+
"clean": "git clean -f -x -e node_modules/ -e coverage/"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"**/*.d.ts",
|
|
17
|
+
"./index.js",
|
|
18
|
+
"lib/**/*.js",
|
|
19
|
+
"lib/**/*.js.map",
|
|
20
|
+
"lib/**/*.d.ts",
|
|
21
|
+
"errors/**/*.js",
|
|
22
|
+
"errors/**/*.js.map",
|
|
23
|
+
"errors/**/*.d.ts",
|
|
24
|
+
"constants/**/*.js",
|
|
25
|
+
"constants/**/*.js.map",
|
|
26
|
+
"constants/**/*.d.ts",
|
|
27
|
+
"utils/**/*.js",
|
|
28
|
+
"utils/**/*.js.map",
|
|
29
|
+
"utils/**/*.d.ts",
|
|
30
|
+
"client/**/*.js",
|
|
31
|
+
"client/**/*.js.map",
|
|
32
|
+
"client/**/*.d.ts"
|
|
33
|
+
],
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@types/restify": "^8.5.12",
|
|
36
|
+
"@types/restify-errors": "^4.3.9",
|
|
37
|
+
"@pgds/utils": "1.0.7",
|
|
38
|
+
"ajv": "8.17.1",
|
|
39
|
+
"ajv-formats": "3.0.1",
|
|
40
|
+
"axios": "1.7.9",
|
|
41
|
+
"mustbe": "0.4.0",
|
|
42
|
+
"nyc": "^17.1.0",
|
|
43
|
+
"prom-client": "^12.0.0",
|
|
44
|
+
"restify": "^11.1.0",
|
|
45
|
+
"restify-errors": "8.0.2",
|
|
46
|
+
"semver": "^7.3.8",
|
|
47
|
+
"ts-node": "^10.9.2",
|
|
48
|
+
"ts-node-test-register": "^10.0.0",
|
|
49
|
+
"uuid": "9.0.1",
|
|
50
|
+
"typescript": "^5.7.2",
|
|
51
|
+
"typescript-json-schema": "0.65.1"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@types/chai": "4.3.12",
|
|
55
|
+
"@types/mocha": "^10.0.6",
|
|
56
|
+
"@types/mockery": "^1.4.30",
|
|
57
|
+
"@types/nock": "11.1.0",
|
|
58
|
+
"@types/semver": "^7.3.13",
|
|
59
|
+
"@types/supertest": "^2.0.11",
|
|
60
|
+
"@types/uuid": "^8.3.4",
|
|
61
|
+
"chai": "^4.3.6",
|
|
62
|
+
"chai-subset": "^1.6.0",
|
|
63
|
+
"mocha": "10.2.0",
|
|
64
|
+
"mockery": "2.1.0",
|
|
65
|
+
"supertest": "6.3.4",
|
|
66
|
+
"nock": "13.5.5"
|
|
67
|
+
},
|
|
68
|
+
"directories": {
|
|
69
|
+
"example": "examples",
|
|
70
|
+
"lib": "lib",
|
|
71
|
+
"types": "types"
|
|
72
|
+
},
|
|
73
|
+
"repository": {
|
|
74
|
+
"type": "git",
|
|
75
|
+
"url": "git+https://github.com/hiotlabs/hiot-api-interface.git"
|
|
76
|
+
},
|
|
77
|
+
"keywords": [
|
|
78
|
+
"restify"
|
|
79
|
+
],
|
|
80
|
+
"author": "",
|
|
81
|
+
"license": "ISC",
|
|
82
|
+
"bugs": {
|
|
83
|
+
"url": "https://github.com/hiotlabs/hiot-api-interface/issues"
|
|
84
|
+
},
|
|
85
|
+
"homepage": "https://github.com/hiotlabs/hiot-api-interface#readme",
|
|
86
|
+
"mocha": {
|
|
87
|
+
"extension": [
|
|
88
|
+
"ts",
|
|
89
|
+
"js"
|
|
33
90
|
],
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"restify": "^11.1.0",
|
|
46
|
-
"restify-errors": "8.0.2",
|
|
47
|
-
"semver": "^7.3.8",
|
|
48
|
-
"ts-node": "^10.9.2",
|
|
49
|
-
"ts-node-test-register": "^10.0.0",
|
|
50
|
-
"uuid": "9.0.1",
|
|
51
|
-
"typescript": "^5.7.2",
|
|
52
|
-
"typescript-json-schema": "0.65.1"
|
|
53
|
-
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@types/bunyan-format": "0.2.9",
|
|
56
|
-
"@types/chai": "4.3.12",
|
|
57
|
-
"@types/mocha": "^10.0.6",
|
|
58
|
-
"@types/mockery": "^1.4.30",
|
|
59
|
-
"@types/nock": "11.1.0",
|
|
60
|
-
"@types/semver": "^7.3.13",
|
|
61
|
-
"@types/supertest": "^2.0.11",
|
|
62
|
-
"@types/uuid": "^8.3.4",
|
|
63
|
-
"chai": "^4.3.6",
|
|
64
|
-
"chai-subset": "^1.6.0",
|
|
65
|
-
"mocha": "10.2.0",
|
|
66
|
-
"mockery": "2.1.0",
|
|
67
|
-
"supertest": "6.3.4",
|
|
68
|
-
"nock": "13.5.5"
|
|
69
|
-
},
|
|
70
|
-
"directories": {
|
|
71
|
-
"example": "examples",
|
|
72
|
-
"lib": "lib",
|
|
73
|
-
"types": "types"
|
|
74
|
-
},
|
|
75
|
-
"repository": {
|
|
76
|
-
"type": "git",
|
|
77
|
-
"url": "git+https://github.com/hiotlabs/hiot-api-interface.git"
|
|
78
|
-
},
|
|
79
|
-
"keywords": [
|
|
80
|
-
"restify"
|
|
81
|
-
],
|
|
82
|
-
"author": "",
|
|
83
|
-
"license": "ISC",
|
|
84
|
-
"bugs": {
|
|
85
|
-
"url": "https://github.com/hiotlabs/hiot-api-interface/issues"
|
|
86
|
-
},
|
|
87
|
-
"homepage": "https://github.com/hiotlabs/hiot-api-interface#readme",
|
|
88
|
-
"mocha": {
|
|
89
|
-
"extension": [
|
|
90
|
-
"ts",
|
|
91
|
-
"js"
|
|
92
|
-
],
|
|
93
|
-
"spec": "test/**/*.test.{ts,js}"
|
|
94
|
-
},
|
|
95
|
-
"nyc": {
|
|
96
|
-
"exclude": [
|
|
97
|
-
"coverage",
|
|
98
|
-
"test",
|
|
99
|
-
"**/*.d.ts",
|
|
100
|
-
"**/*.js.map"
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
}
|
|
91
|
+
"spec": "test/**/*.test.{ts,js}"
|
|
92
|
+
},
|
|
93
|
+
"nyc": {
|
|
94
|
+
"exclude": [
|
|
95
|
+
"coverage",
|
|
96
|
+
"test",
|
|
97
|
+
"**/*.d.ts",
|
|
98
|
+
"**/*.js.map"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
}
|
package/types/hiot.d.ts
CHANGED
|
@@ -71,9 +71,11 @@ declare module "hiot-app" {
|
|
|
71
71
|
function failed(logger: Logger): (reason: string) => void;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
/** @deprecated */
|
|
74
75
|
declare module "hiot-app/debug" {
|
|
75
76
|
import { Locator } from "hiot";
|
|
76
77
|
|
|
78
|
+
/** @deprecated */
|
|
77
79
|
function debug(): (...args: any[]) => any;
|
|
78
80
|
|
|
79
81
|
export = debug;
|