@golemio/fcd 1.0.6 → 1.0.7-dev.542461532

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
@@ -1,5 +1,46 @@
1
- # @golemio/fcd
1
+ <div align="center">
2
+ <p>
3
+ <a href="https://operatorict.cz">
4
+ <img src="https://gitlab.com/operator-ict/golemio/code/modules/core/-/raw/development/.assets/oict_logo.png" alt="oict" width="100px" height="100px" />
5
+ </a>
6
+ <a href="https://golemio.cz">
7
+ <img src="https://gitlab.com/operator-ict/golemio/code/modules/core/-/raw/development/.assets/golemio_logo.png" alt="golemio" width="100px" height="100px" />
8
+ </a>
9
+ </p>
2
10
 
3
- Floating Car Data (FCD) module of the Golemio data platform.
11
+ <h1>@golemio/fcd</h1>
4
12
 
5
- Developed by http://operatorict.cz
13
+ <p>
14
+ <a href="https://gitlab.com/operator-ict/golemio/code/modules/fcd/commits/master">
15
+ <img src="https://gitlab.com/operator-ict/golemio/code/modules/fcd/badges/master/pipeline.svg" alt="pipeline">
16
+ </a>
17
+ <a href="https://gitlab.com/operator-ict/golemio/code/modules/fcd/commits/master">
18
+ <img src="https://gitlab.com/operator-ict/golemio/code/modules/fcd/badges/master/coverage.svg" alt="coverage">
19
+ </a>
20
+ <a href="./LICENSE">
21
+ <img src="https://img.shields.io/npm/l/@golemio/fcd" alt="license">
22
+ </a>
23
+ </p>
24
+
25
+ <p>
26
+ <a href="#installation">Installation</a> · <a href="./docs">Documentation</a> · <a href="https://operator-ict.gitlab.io/golemio/code/modules/fcd">TypeDoc</a>
27
+ </p>
28
+ </div>
29
+
30
+ This module is intended for use with Golemio services. Refer [here](https://gitlab.com/operator-ict/golemio/code/modules/core/-/blob/development/README.md) for further information on usage, local development and more.
31
+
32
+ ## Installation
33
+
34
+ The APIs may be unstable. Therefore, we recommend to install this module as an exact version.
35
+
36
+ ```bash
37
+ # Latest version
38
+ yarn add --exact @golemio/fcd@latest
39
+
40
+ # Development version
41
+ yarn add --exact @golemio/fcd@dev
42
+ ```
43
+
44
+ <!-- ## Description -->
45
+
46
+ <!-- Insert module-specific info here -->
@@ -1,3 +1,3 @@
1
1
  {
2
- "schema": "fcd"
2
+ "schema": "fcd, public"
3
3
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "schema": "fcd"
2
+ "schema": "fcd, public"
3
3
  }
@@ -20,7 +20,7 @@ const _sch_1 = require("../../schema-definitions");
20
20
  class RsdTmcOsmMappingModel extends models_1.SequelizeModel {
21
21
  constructor() {
22
22
  super(_sch_1.FCD.rsd_tmc_osm_mapping.name + "Model", _sch_1.FCD.rsd_tmc_osm_mapping.pgTableName, _sch_1.FCD.rsd_tmc_osm_mapping.outputSequelizeAttributes, {
23
- schema: _sch_1.FCD.pgSchema,
23
+ schema: "public",
24
24
  });
25
25
  /**
26
26
  * @param {object} [options] Options object with params
@@ -1 +1 @@
1
- {"version":3,"file":"RsdTmcOsmMappingModel.js","sourceRoot":"","sources":["../../../src/output-gateway/models/RsdTmcOsmMappingModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oFAA4D;AAC5D,6EAAuE;AACvE,qEAA0E;AAC1E,mDAA2B;AAE3B,MAAa,qBAAsB,SAAQ,uBAAc;IACrD;QACI,KAAK,CACD,UAAG,CAAC,mBAAmB,CAAC,IAAI,GAAG,OAAO,EACtC,UAAG,CAAC,mBAAmB,CAAC,WAAW,EACnC,UAAG,CAAC,mBAAmB,CAAC,yBAAyB,EACjD;YACI,MAAM,EAAE,UAAG,CAAC,QAAQ;SACvB,CACJ,CAAC;QAGN;;;;;WAKG;QAEI,WAAM,GAAG,CAAO,OAA2C,EAAgB,EAAE;YAChF,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;YACjC,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK;gBAAE,OAAO,IAAI,CAAC;YAEpC,IAAI;gBACA,MAAM,EAAE,GAAG,mBAAS,CAAC,EAAE,CAAC;g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,WAAM,GAAG,GAAiC,EAAE;YAC/C,MAAM,IAAI,4BAAW,CAAC,iBAAiB,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC;QAC5E,CAAC,CAAA,CAAC;IA5CF,CAAC;CA6CJ;AAvDD,sDAuDC"}
package/package.json CHANGED
@@ -1,83 +1,83 @@
1
1
  {
2
- "name": "@golemio/fcd",
3
- "version": "1.0.6",
4
- "description": "Golemio Floating Car Data Module",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "scripts": {
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'",
11
- "pretest": "golemio mdb reset --postgres && golemio mdb up --postgres && golemio import-db-data --postgres",
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
- "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'",
16
- "generate-docs": "typedoc --out docs/typedoc src",
17
- "lint": "eslint \"{src,test}/**/*.ts\""
18
- },
19
- "keywords": [
20
- "golemio",
21
- "fcd"
22
- ],
23
- "author": "Operator ICT, a.s.",
24
- "license": "MIT",
25
- "repository": {
26
- "type": "git",
27
- "url": "https://gitlab.com/operator-ict/golemio/code/modules/fcd"
28
- },
29
- "devDependencies": {
30
- "@commitlint/cli": "^11.0.0",
31
- "@commitlint/config-conventional": "^11.0.0",
32
- "@golemio/cli": "1.2.2",
33
- "@golemio/core": "1.2.7",
34
- "@golemio/db-common": "1.0.0",
35
- "@golemio/eslint-config": "^1.0.2",
36
- "@types/body-parser-xml": "^1.1.0",
37
- "@types/chai": "4.2.3",
38
- "@types/chai-as-promised": "7.1.2",
39
- "@types/mocha": "^8.2.0",
40
- "@types/node": "^14.14.20",
41
- "@types/sinon": "^9.0.10",
42
- "@types/supertest": "^2.0.10",
43
- "@zerollup/ts-transform-paths": "^1.7.18",
44
- "body-parser": "^1.19.0",
45
- "body-parser-xml": "^2.0.0",
46
- "chai": "4.2.0",
47
- "chai-as-promised": "7.1.1",
48
- "cross-env": "^7.0.3",
49
- "dotenv": "^8.2.0",
50
- "eslint": "^7.17.0",
51
- "husky": "^4.3.7",
52
- "mocha": "^8.2.1",
53
- "npm-run-all": "^4.1.5",
54
- "nyc": "^15.1.0",
55
- "prettier": "^2.2.1",
56
- "pretty-quick": "^3.1.0",
57
- "rimraf": "^3.0.2",
58
- "sinon": "^9.2.3",
59
- "source-map-support": "0.5.19",
60
- "supertest": "^6.0.1",
61
- "ts-node": "^9.1.1",
62
- "ttypescript": "^1.5.12",
63
- "typedoc": "^0.21.4",
64
- "typescript": "^4.1.3"
65
- },
66
- "peerDependencies": {
67
- "@golemio/core": "^1.0.5"
68
- },
69
- "dependencies": {
70
- "@apideck/portman": "^1.14.2",
71
- "ajv": "^8.2.0",
72
- "xmldom": "github:xmldom/xmldom#0.7.0"
73
- },
74
- "resolutions": {
75
- "@commitlint/cli/**/trim-newlines": "^3.0.1",
76
- "hosted-git-info": "^3.0.8",
77
- "xmldom": "github:xmldom/xmldom#0.7.0",
78
- "mpath": "^0.8.4",
79
- "minimist": "^1.2.6",
80
- "follow-redirects": "1.14.7",
81
- "xsd2jsonschema/urijs": "^1.19.10"
82
- }
2
+ "name": "@golemio/fcd",
3
+ "version": "1.0.7-dev.542461532",
4
+ "description": "Golemio Floating Car Data Module",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
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'",
11
+ "pretest": "golemio mdb reset --postgres && golemio mdb up --postgres && golemio import-db-data --postgres",
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
+ "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'",
16
+ "generate-docs": "typedoc --out docs/typedoc src",
17
+ "lint": "eslint \"{src,test}/**/*.ts\""
18
+ },
19
+ "keywords": [
20
+ "golemio",
21
+ "fcd"
22
+ ],
23
+ "author": "Operator ICT, a.s.",
24
+ "license": "MIT",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://gitlab.com/operator-ict/golemio/code/modules/fcd"
28
+ },
29
+ "devDependencies": {
30
+ "@commitlint/cli": "^11.0.0",
31
+ "@commitlint/config-conventional": "^11.0.0",
32
+ "@golemio/cli": "1.2.2",
33
+ "@golemio/core": "1.2.7",
34
+ "@golemio/db-common": "1.0.1-dev.540050269",
35
+ "@golemio/eslint-config": "^1.0.2",
36
+ "@types/body-parser-xml": "^1.1.0",
37
+ "@types/chai": "4.2.3",
38
+ "@types/chai-as-promised": "7.1.2",
39
+ "@types/mocha": "^8.2.0",
40
+ "@types/node": "^14.14.20",
41
+ "@types/sinon": "^9.0.10",
42
+ "@types/supertest": "^2.0.10",
43
+ "@zerollup/ts-transform-paths": "^1.7.18",
44
+ "body-parser": "^1.19.0",
45
+ "body-parser-xml": "^2.0.0",
46
+ "chai": "4.2.0",
47
+ "chai-as-promised": "7.1.1",
48
+ "cross-env": "^7.0.3",
49
+ "dotenv": "^8.2.0",
50
+ "eslint": "^7.17.0",
51
+ "husky": "^4.3.7",
52
+ "mocha": "^8.2.1",
53
+ "npm-run-all": "^4.1.5",
54
+ "nyc": "^15.1.0",
55
+ "prettier": "^2.2.1",
56
+ "pretty-quick": "^3.1.0",
57
+ "rimraf": "^3.0.2",
58
+ "sinon": "^9.2.3",
59
+ "source-map-support": "0.5.19",
60
+ "supertest": "^6.0.1",
61
+ "ts-node": "^9.1.1",
62
+ "ttypescript": "^1.5.12",
63
+ "typedoc": "^0.21.4",
64
+ "typescript": "^4.1.3"
65
+ },
66
+ "peerDependencies": {
67
+ "@golemio/core": "^1.0.5"
68
+ },
69
+ "dependencies": {
70
+ "@apideck/portman": "^1.14.2",
71
+ "ajv": "^8.2.0",
72
+ "xmldom": "github:xmldom/xmldom#0.7.0"
73
+ },
74
+ "resolutions": {
75
+ "@commitlint/cli/**/trim-newlines": "^3.0.1",
76
+ "hosted-git-info": "^3.0.8",
77
+ "xmldom": "github:xmldom/xmldom#0.7.0",
78
+ "mpath": "^0.8.4",
79
+ "minimist": "^1.2.6",
80
+ "follow-redirects": "1.14.7",
81
+ "xsd2jsonschema/urijs": "^1.19.10"
82
+ }
83
83
  }
@@ -1,53 +0,0 @@
1
- 'use strict';
2
-
3
- var dbm;
4
- var type;
5
- var seed;
6
- var fs = require('fs');
7
- var path = require('path');
8
- var Promise;
9
-
10
- /**
11
- * We receive the dbmigrate dependency from dbmigrate initially.
12
- * This enables us to not have to rely on NODE_PATH.
13
- */
14
- exports.setup = function(options, seedLink) {
15
- dbm = options.dbmigrate;
16
- type = dbm.dataType;
17
- seed = seedLink;
18
- Promise = options.Promise;
19
- };
20
-
21
- exports.up = function(db) {
22
- var filePath = path.join(__dirname, 'sqls', '20210922124116-intermodal20210922-up.sql');
23
- return new Promise( function( resolve, reject ) {
24
- fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
25
- if (err) return reject(err);
26
- console.log('received data: ' + data);
27
-
28
- resolve(data);
29
- });
30
- })
31
- .then(function(data) {
32
- return db.runSql(data);
33
- });
34
- };
35
-
36
- exports.down = function(db) {
37
- var filePath = path.join(__dirname, 'sqls', '20210922124116-intermodal20210922-down.sql');
38
- return new Promise( function( resolve, reject ) {
39
- fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
40
- if (err) return reject(err);
41
- console.log('received data: ' + data);
42
-
43
- resolve(data);
44
- });
45
- })
46
- .then(function(data) {
47
- return db.runSql(data);
48
- });
49
- };
50
-
51
- exports._meta = {
52
- "version": 1
53
- };
@@ -1 +0,0 @@
1
- drop TABLE rsd_tmc_osm_mapping ;
@@ -1,5 +0,0 @@
1
- CREATE TABLE rsd_tmc_osm_mapping (
2
- lt_start int8 NULL,
3
- lt_end int8 NULL,
4
- osm_path text NULL
5
- );