@golemio/ndic 1.0.14 → 1.1.0-dev.770814460

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 CHANGED
@@ -35,10 +35,10 @@ The APIs may be unstable. Therefore, we recommend to install this module as an e
35
35
 
36
36
  ```bash
37
37
  # Latest version
38
- yarn add --exact @golemio/ndic@latest
38
+ npm install --save-exact @golemio/ndic@latest
39
39
 
40
40
  # Development version
41
- yarn add --exact @golemio/ndic@dev
41
+ npm install --save-exact @golemio/ndic@dev
42
42
  ```
43
43
 
44
44
  <!-- ## Description -->
package/docs/openapi.yaml CHANGED
@@ -31,11 +31,11 @@ paths:
31
31
  - name: moment
32
32
  in: query
33
33
  description: >-
34
- The traffic situation moment
34
+ Get restrictions valid on given moment. ISO8601 format.
35
35
  required: false
36
36
  schema:
37
37
  type: string
38
- example: 2021-06-21 10:00
38
+ example: 2021-06-21T10:00Z
39
39
  - name: situationRecordType
40
40
  in: query
41
41
  description: >-
@@ -54,6 +54,14 @@ paths:
54
54
  type: integer
55
55
  format: int64
56
56
  example: 10
57
+ - name: offset
58
+ in: query
59
+ description: Sets offset for pagination. Combine with limit accordingly.
60
+ required: false
61
+ schema:
62
+ type: integer
63
+ format: int64
64
+ example: 0
57
65
  responses:
58
66
  "200":
59
67
  description: successful operation
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@golemio/ndic",
3
- "version": "1.0.14",
3
+ "version": "1.1.0-dev.770814460",
4
4
  "description": "Golemio NDIC Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "rimraf ./dist && ttsc -p ./tsconfig.build.json",
9
- "build-minimal": "run-s 'build --sourceMap false --declaration false'",
10
- "build-watch": "run-s 'build --watch --preserveWatchOutput'",
9
+ "build-minimal": "run-s 'build -- --sourceMap false --declaration false'",
10
+ "build-watch": "run-s 'build -- --watch --preserveWatchOutput'",
11
11
  "pretest": "golemio import-db-data --postgres",
12
12
  "test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r dotenv/config 'test/**/*.test.ts'",
13
13
  "apidocs-test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' ts-node -r dotenv/config test/api-docs/index.ts",
14
- "test-debug": "run-s 'test --inspect-brk=9230'",
15
- "code-coverage": "nyc run-s 'test -r source-map-support/register'",
14
+ "test-debug": "run-s 'test -- --inspect-brk=9230'",
15
+ "code-coverage": "nyc run-s 'test -- -r source-map-support/register'",
16
16
  "generate-docs": "typedoc --out docs/typedoc src",
17
17
  "lint": "eslint \"{src,test}/**/*.ts\""
18
18
  },
@@ -25,7 +25,13 @@
25
25
  "type": "git",
26
26
  "url": "https://gitlab.com/operator-ict/golemio/code/modules/ndic"
27
27
  },
28
+ "engines": {
29
+ "node": ">=16.0.0",
30
+ "npm": ">=8.0.0",
31
+ "yarn": "Use npm!"
32
+ },
28
33
  "devDependencies": {
34
+ "@apideck/portman": "^1.13.0",
29
35
  "@commitlint/cli": "^11.0.0",
30
36
  "@commitlint/config-conventional": "^11.0.0",
31
37
  "@golemio/cli": "1.3.3",
@@ -64,8 +70,5 @@
64
70
  },
65
71
  "peerDependencies": {
66
72
  "@golemio/core": "^1.0.5"
67
- },
68
- "dependencies": {
69
- "@apideck/portman": "^1.13.0"
70
73
  }
71
- }
74
+ }