@golemio/air-quality-stations 1.1.6-dev.892104186 → 1.1.6-dev.893762487
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/dist/output-gateway/models/AirQualityHistoryModel.d.ts +1 -1
- package/dist/output-gateway/models/AirQualityIndexesModel.d.ts +1 -1
- package/dist/output-gateway/models/AirQualityStationsModel.d.ts +1 -1
- package/dist/output-gateway/models/helpers/OutputDtoMapper.js +6 -1
- package/dist/output-gateway/models/helpers/OutputDtoMapper.js.map +1 -1
- package/dist/schema-definitions/models/AirQualityIndexModel.d.ts +1 -1
- package/package.json +11 -10
|
@@ -5,6 +5,6 @@ export default class HistoryModel extends SequelizeModel implements IBaseModel {
|
|
|
5
5
|
private stationModel;
|
|
6
6
|
private measurementsModel;
|
|
7
7
|
constructor();
|
|
8
|
-
GetAll: (options?: IHistoryFilterParameters
|
|
8
|
+
GetAll: (options?: IHistoryFilterParameters) => Promise<any>;
|
|
9
9
|
GetOne(id: any): Promise<any>;
|
|
10
10
|
}
|
|
@@ -2,7 +2,7 @@ import { IGeoJsonAllFilterParameters, SequelizeModel } from "@golemio/core/dist/
|
|
|
2
2
|
import { IGeoJsonModel } from "@golemio/core/dist/output-gateway/models/interfaces/IGeoJsonModel";
|
|
3
3
|
export default class AirQualityIndexesModel extends SequelizeModel implements IGeoJsonModel {
|
|
4
4
|
constructor();
|
|
5
|
-
GetAll: (options?: IGeoJsonAllFilterParameters
|
|
5
|
+
GetAll: (options?: IGeoJsonAllFilterParameters) => Promise<any>;
|
|
6
6
|
GetOne(id: any): Promise<any>;
|
|
7
7
|
GetProperties: () => never;
|
|
8
8
|
IsPrimaryIdNumber(idKey: string): Promise<boolean>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IGeoJsonAllFilterParameters, SequelizeModel } from "@golemio/core/dist/output-gateway";
|
|
2
2
|
export default class AirQualityStationsModel extends SequelizeModel {
|
|
3
3
|
constructor();
|
|
4
|
-
GetAll: (options?: IGeoJsonAllFilterParameters
|
|
4
|
+
GetAll: (options?: IGeoJsonAllFilterParameters) => Promise<any>;
|
|
5
5
|
GetOne(id: any): Promise<any>;
|
|
6
6
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const IAirQualityIndex_1 = __importDefault(require("../../../schema-definitions/models/interfaces/IAirQualityIndex"));
|
|
7
|
+
const IAirQualityMeasurement_1 = __importDefault(require("../../../schema-definitions/models/interfaces/IAirQualityMeasurement"));
|
|
3
8
|
class OutputDtoMapper {
|
|
4
9
|
static mapToMeasurementDto(indexCode, measurements) {
|
|
5
10
|
let measurement = {};
|
|
@@ -21,7 +26,6 @@ class OutputDtoMapper {
|
|
|
21
26
|
return measurement;
|
|
22
27
|
}
|
|
23
28
|
}
|
|
24
|
-
exports.default = OutputDtoMapper;
|
|
25
29
|
OutputDtoMapper.mapToHistoricItem = (result) => {
|
|
26
30
|
if (!result || !result.station || !result.measurements)
|
|
27
31
|
return undefined;
|
|
@@ -47,4 +51,5 @@ OutputDtoMapper.mapToFeatureItem = (result) => {
|
|
|
47
51
|
output.type = "Feature";
|
|
48
52
|
return output;
|
|
49
53
|
};
|
|
54
|
+
exports.default = OutputDtoMapper;
|
|
50
55
|
//# sourceMappingURL=OutputDtoMapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutputDtoMapper.js","sourceRoot":"","sources":["../../../../src/output-gateway/models/helpers/OutputDtoMapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OutputDtoMapper.js","sourceRoot":"","sources":["../../../../src/output-gateway/models/helpers/OutputDtoMapper.ts"],"names":[],"mappings":";;;;;AAAA,sHAAuE;AACvE,kIAAmF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B,EAAE;IACvF,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY;QAAE,OAAO,SAAS,CAAC;IAEzE,IAAI,MAAM,GAAG,EAAS,CAAC;IACvB,MAAM,CAAC,QAAQ,GAAG,EAAqB,CAAC;IACxC,MAAM,CAAC,QAAQ,CAAC,WAAW,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClF,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,OAAO,CAAC;IAC/B,MAAM,CAAC,UAAU,GAAG,EAAS,CAAC;IAC9B,MAAM,CAAC,UAAU,CAAC,WAAW,GAAG,eAAe,CAAC,mBAAmB,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;IAC5G,MAAM,CAAC,UAAU,CAAC,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC;IACxD,MAAM,CAAC,UAAU,CAAC,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC;IACrD,MAAM,CAAC,UAAU,CAAC,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;IACzD,MAAM,CAAC,UAAU,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;IACrD,MAAM,CAAC,IAAI,GAAG,SAAS,CAAC;IAExB,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;kBA5Be,eAAe"}
|
|
@@ -3,7 +3,7 @@ import { Model, ModelAttributes, ModelIndexesOptions } from "@golemio/core/dist/
|
|
|
3
3
|
import IAirQualityIndex from "./interfaces/IAirQualityIndex";
|
|
4
4
|
import IAirQualityMeasurement from "./interfaces/IAirQualityMeasurement";
|
|
5
5
|
import IAirQualityStation from "./interfaces/IAirQualityStation";
|
|
6
|
-
|
|
6
|
+
type AirQualityIndexWithoutAssociations = Omit<IAirQualityIndex, "station" | "measurements">;
|
|
7
7
|
export declare class AirQualityIndexModel extends Model<AirQualityIndexModel> implements IAirQualityIndex {
|
|
8
8
|
static tableName: string;
|
|
9
9
|
index_code: string;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/air-quality-stations",
|
|
3
|
-
"version": "1.1.6-dev.
|
|
3
|
+
"version": "1.1.6-dev.893762487",
|
|
4
4
|
"description": "Golemio Air Quality Stations Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "rimraf ./dist &&
|
|
8
|
+
"build": "rimraf ./dist && tspc -p ./tsconfig.build.json",
|
|
9
9
|
"build-minimal": "run-s 'build -- --sourceMap false --declaration false'",
|
|
10
10
|
"build-watch": "run-s 'build -- --watch --preserveWatchOutput'",
|
|
11
|
-
"test": "cross-env NODE_ENV=test
|
|
11
|
+
"test": "cross-env NODE_ENV=test mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r tsconfig-paths/register --file 'test/setup.ts' 'test/**/*.test.ts'",
|
|
12
12
|
"test-debug": "run-s 'test -- --inspect-brk=9230'",
|
|
13
13
|
"code-coverage": "nyc run-s 'test -- -r source-map-support/register'",
|
|
14
14
|
"generate-docs": "typedoc --out docs/typedoc src",
|
|
@@ -33,10 +33,9 @@
|
|
|
33
33
|
"@commitlint/config-conventional": "^11.0.0",
|
|
34
34
|
"@golemio/city-districts": "1.2.4",
|
|
35
35
|
"@golemio/cli": "1.4.2",
|
|
36
|
-
"@golemio/core": "1.
|
|
36
|
+
"@golemio/core": "1.7.5-dev.893702206",
|
|
37
37
|
"@golemio/db-common": "1.1.1",
|
|
38
38
|
"@golemio/eslint-config": "1.1.0",
|
|
39
|
-
"@ovos-media/ts-transform-paths": "^1.7.18-1",
|
|
40
39
|
"@types/chai": "4.2.3",
|
|
41
40
|
"@types/chai-as-promised": "7.1.2",
|
|
42
41
|
"@types/mocha": "^8.2.0",
|
|
@@ -54,11 +53,13 @@
|
|
|
54
53
|
"pretty-quick": "^3.1.3",
|
|
55
54
|
"rimraf": "^3.0.2",
|
|
56
55
|
"sinon": "^9.2.3",
|
|
57
|
-
"source-map-support": "0.5.
|
|
58
|
-
"ts-node": "^10.
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
56
|
+
"source-map-support": "0.5.21",
|
|
57
|
+
"ts-node": "^10.9.1",
|
|
58
|
+
"ts-patch": "3.0.0-beta3",
|
|
59
|
+
"tsconfig-paths": "^4.2.0",
|
|
60
|
+
"typedoc": "^0.24.8",
|
|
61
|
+
"typescript": "5.1.3",
|
|
62
|
+
"typescript-transform-paths": "^3.4.6"
|
|
62
63
|
},
|
|
63
64
|
"peerDependencies": {
|
|
64
65
|
"@golemio/city-districts": ">=1.0.5",
|