@golemio/air-quality-stations 1.0.5-dev.560508308 → 1.0.5
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.buildIndexesQuery = void 0;
|
|
4
|
+
const index_1 = require("../../../schema-definitions/index");
|
|
4
5
|
const allIndexes = `
|
|
5
6
|
select
|
|
6
7
|
"aqi"."index_code",
|
|
@@ -28,7 +29,7 @@ select
|
|
|
28
29
|
"stations"."updated_by" as "station.updated_by",
|
|
29
30
|
(SELECT json_agg(item) FROM (
|
|
30
31
|
select component_code, aggregation_interval, value
|
|
31
|
-
from airqualitystations_measurements am
|
|
32
|
+
from ${index_1.AirQualityStations.pgSchema}.airqualitystations_measurements am
|
|
32
33
|
where am.station_id = "currentData".station_id
|
|
33
34
|
and am.measured_from = "currentData".measured_from
|
|
34
35
|
and am.measured_to = "currentData".measured_to
|
|
@@ -41,13 +42,13 @@ from
|
|
|
41
42
|
max(measured_from) as "measured_from",
|
|
42
43
|
max(measured_to) as "measured_to"
|
|
43
44
|
from
|
|
44
|
-
|
|
45
|
+
${index_1.AirQualityStations.pgSchema}.airqualitystations_indexes ai
|
|
45
46
|
where
|
|
46
|
-
station_id in (select id from airqualitystations a where a.region_code = 'A')
|
|
47
|
+
station_id in (select id from ${index_1.AirQualityStations.pgSchema}.airqualitystations a where a.region_code = 'A')
|
|
47
48
|
group by station_id) as "currentData"
|
|
48
|
-
inner join
|
|
49
|
+
inner join ${index_1.AirQualityStations.pgSchema}.airqualitystations as "stations" on
|
|
49
50
|
"currentData"."station_id" = "stations"."id"
|
|
50
|
-
inner join
|
|
51
|
+
inner join ${index_1.AirQualityStations.pgSchema}.airqualitystations_indexes as "aqi" on
|
|
51
52
|
"currentData"."station_id" = "aqi"."station_id"
|
|
52
53
|
and "currentData"."measured_from" = "aqi"."measured_from"
|
|
53
54
|
and "currentData"."measured_to" = "aqi"."measured_to"`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RawQueryProvider.js","sourceRoot":"","sources":["../../../../src/output-gateway/models/helpers/RawQueryProvider.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"RawQueryProvider.js","sourceRoot":"","sources":["../../../../src/output-gateway/models/helpers/RawQueryProvider.ts"],"names":[],"mappings":";;;AACA,6DAAgD;AAEhD,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;eA2BJ,0BAAkB,CAAC,QAAQ;;;;;;;;;;;;;GAavC,0BAAkB,CAAC,QAAQ;;kCAEI,0BAAkB,CAAC,QAAQ;;aAEhD,0BAAkB,CAAC,QAAQ;;aAE3B,0BAAkB,CAAC,QAAQ;;;uDAGe,CAAC;AAExD,MAAM,aAAa,GAAG,sCAAsC,CAAC;AAC7D,MAAM,YAAY,GAAG;;;;GAIlB,CAAC;AACJ,MAAM,aAAa,GAAG,uCAAuC,CAAC;AAC9D,MAAM,cAAc,GAAG;;;wBAGC,CAAC;AACzB,MAAM,OAAO,GAAG,+BAA+B,CAAC;AAChD,MAAM,WAAW,GAAG,eAAe,CAAC;AACpC,MAAM,YAAY,GAAG,iBAAiB,CAAC;AAEhC,MAAM,iBAAiB,GAAG,CAAC,OAAgD,EAAU,EAAE;IAC1F,IAAI,aAAa,GAAG,UAAU,CAAC;IAC/B,aAAa,GAAG,UAAU,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,MAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAA,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAE9G,IAAI,eAAe,GAAG,EAAE,CAAC;IACzB,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;QAAE,eAAe,CAAC,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-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
2
|
+
"name": "@golemio/air-quality-stations",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Golemio Air Quality Stations 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
|
+
"test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' mocha --exit --check-leaks --timeout 120000 -r ts-node/register 'test/**/*.test.ts'",
|
|
12
|
+
"test-debug": "run-s 'test --inspect-brk=9230'",
|
|
13
|
+
"code-coverage": "nyc run-s 'test -r source-map-support/register'",
|
|
14
|
+
"generate-docs": "typedoc --out docs/typedoc src",
|
|
15
|
+
"lint": "eslint \"{src,test}/**/*.ts\""
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"golemio"
|
|
19
|
+
],
|
|
20
|
+
"author": "Operator ICT, a.s.",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://gitlab.com/operator-ict/golemio/code/modules/air-quality-stations"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@commitlint/cli": "^11.0.0",
|
|
28
|
+
"@commitlint/config-conventional": "^11.0.0",
|
|
29
|
+
"@golemio/city-districts": "1.0.5",
|
|
30
|
+
"@golemio/cli": "1.2.2",
|
|
31
|
+
"@golemio/core": "1.2.13",
|
|
32
|
+
"@golemio/db-common": "1.0.1",
|
|
33
|
+
"@golemio/eslint-config": "^1.1.0",
|
|
34
|
+
"@ovos-media/ts-transform-paths": "^1.7.18-1",
|
|
35
|
+
"@types/chai": "4.2.3",
|
|
36
|
+
"@types/chai-as-promised": "7.1.2",
|
|
37
|
+
"@types/mocha": "^8.2.0",
|
|
38
|
+
"@types/node": "^16.11.35",
|
|
39
|
+
"@types/sinon": "^9.0.10",
|
|
40
|
+
"chai": "4.2.0",
|
|
41
|
+
"chai-as-promised": "7.1.1",
|
|
42
|
+
"cross-env": "^7.0.3",
|
|
43
|
+
"eslint": "^8.1.1",
|
|
44
|
+
"husky": "^4.3.7",
|
|
45
|
+
"mocha": "^8.2.1",
|
|
46
|
+
"npm-run-all": "^4.1.5",
|
|
47
|
+
"nyc": "^15.1.0",
|
|
48
|
+
"prettier": "^2.5.1",
|
|
49
|
+
"pretty-quick": "^3.1.3",
|
|
50
|
+
"rimraf": "^3.0.2",
|
|
51
|
+
"sinon": "^9.2.3",
|
|
52
|
+
"source-map-support": "0.5.9",
|
|
53
|
+
"ts-node": "^10.7.0",
|
|
54
|
+
"ttypescript": "^1.5.13",
|
|
55
|
+
"typedoc": "^0.22.15",
|
|
56
|
+
"typescript": "4.6.4"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"@golemio/city-districts": "^1.0.0",
|
|
60
|
+
"@golemio/core": "^1.0.5"
|
|
61
|
+
}
|
|
62
62
|
}
|