@golemio/playgrounds 1.0.8-dev.708278906 → 1.1.0-dev.779985978
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 +2 -2
- package/dist/integration-engine/helpers/AddressHelper.d.ts +1 -1
- package/dist/integration-engine/workers/playgrounds/tasks/UpdateAddressAndDistrictTask.js +2 -2
- package/dist/integration-engine/workers/playgrounds/tasks/UpdateAddressAndDistrictTask.js.map +1 -1
- package/dist/schema-definitions/json-schema/OutputSchemaProvider.d.ts +1 -1
- package/dist/schema-definitions/json-schema/SourceSchemaProvider.d.ts +1 -1
- package/package.json +11 -6
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
|
-
|
|
38
|
+
npm install --save-exact @golemio/playgrounds@latest
|
|
39
39
|
|
|
40
40
|
# Development version
|
|
41
|
-
|
|
41
|
+
npm install --save-exact @golemio/playgrounds@dev
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
<!-- ## Description -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPlayground } from "../../schema-definitions/sequelize-models/interfaces/IPlayground";
|
|
2
2
|
import { Playground } from "../../schema-definitions/sequelize-models/Playground";
|
|
3
|
-
import CityDistrictsModel from "@golemio/city-districts/dist/integration-engine/
|
|
3
|
+
import CityDistrictsModel from "@golemio/city-districts/dist/integration-engine/repositories/CityDistrictPostgresRepository";
|
|
4
4
|
import { Point } from "geojson";
|
|
5
5
|
export declare class AddressHelper {
|
|
6
6
|
static isLocationChanged: (point1: Point, point2: Point) => boolean;
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.UpdateAddressAndDistrictTask = void 0;
|
|
16
16
|
const workers_1 = require("@golemio/core/dist/integration-engine/workers");
|
|
17
|
-
const
|
|
17
|
+
const CityDistrictPostgresRepository_1 = __importDefault(require("@golemio/city-districts/dist/integration-engine/repositories/CityDistrictPostgresRepository"));
|
|
18
18
|
const AddressHelper_1 = require("../../../helpers/AddressHelper");
|
|
19
19
|
const schema_1 = require("../../../schema");
|
|
20
20
|
const PlaygroundsModel_1 = require("../../../models/PlaygroundsModel");
|
|
@@ -25,7 +25,7 @@ class UpdateAddressAndDistrictTask extends workers_1.AbstractTask {
|
|
|
25
25
|
this.queueTtl = 23 * 60 * 60 * 1000; // 23 hours
|
|
26
26
|
this.schema = schema_1.PlaygroundsValidationSchema;
|
|
27
27
|
this.model = new PlaygroundsModel_1.PlaygroundsModel();
|
|
28
|
-
this.cityDistrictsModel = new
|
|
28
|
+
this.cityDistrictsModel = new CityDistrictPostgresRepository_1.default();
|
|
29
29
|
}
|
|
30
30
|
execute(data) {
|
|
31
31
|
return __awaiter(this, void 0, void 0, function* () {
|
package/dist/integration-engine/workers/playgrounds/tasks/UpdateAddressAndDistrictTask.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateAddressAndDistrictTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/workers/playgrounds/tasks/UpdateAddressAndDistrictTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2EAA6E;AAC7E,
|
|
1
|
+
{"version":3,"file":"UpdateAddressAndDistrictTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/workers/playgrounds/tasks/UpdateAddressAndDistrictTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2EAA6E;AAC7E,iKAA6H;AAE7H,kEAA0D;AAC1D,4CAA2E;AAC3E,uEAA+D;AAE/D,MAAa,4BAA6B,SAAQ,sBAA8B;IAQ5E,YAAY,WAAmB;QAC3B,KAAK,CAAC,WAAW,CAAC,CAAC;QARP,cAAS,GAAG,0BAA0B,CAAC;QACvC,aAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW;QAC3C,WAAM,GAAG,oCAA2B,CAAC;QAOjD,IAAI,CAAC,KAAK,GAAG,IAAI,mCAAgB,EAAE,CAAC;QACpC,IAAI,CAAC,kBAAkB,GAAG,IAAI,wCAAkB,EAAE,CAAC;IACvD,CAAC;IAEe,OAAO,CAAC,IAAsB;;YAC1C,MAAM,MAAM,GAAe,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;gBAChD,KAAK,EAAE,IAAI;aACd,CAAC,CAAC;YAEH,MAAM,6BAAa,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;YACpE,MAAM,6BAAa,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC9C,CAAC;KAAA;CACJ;AAtBD,oEAsBC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IPlayground } from "../sequelize-models/interfaces/IPlayground";
|
|
2
2
|
import { IPlaygroundProperty } from "../sequelize-models/interfaces/IPlaygroundProperty";
|
|
3
3
|
import { IProperty } from "../sequelize-models/interfaces/IProperty";
|
|
4
|
-
import { JSONSchemaType } from "@golemio/core/
|
|
4
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
5
5
|
export declare class OutputSchemaProvider {
|
|
6
6
|
static playgroundOutput: JSONSchemaType<IPlayground[]>;
|
|
7
7
|
static property: JSONSchemaType<IProperty[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSONSchemaType } from "@golemio/core/
|
|
1
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
2
|
import { ISourcePlayground } from "./interfaces/ISourcePlayground";
|
|
3
3
|
export declare class SourceSchemaProvider {
|
|
4
4
|
static playground: JSONSchemaType<ISourcePlayground[]>;
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/playgrounds",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0-dev.779985978",
|
|
4
4
|
"description": "Golemio Playgrounds 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
|
-
"test-debug": "run-s 'test --inspect-brk=9230'",
|
|
14
|
-
"code-coverage": "nyc run-s 'test -r source-map-support/register'",
|
|
13
|
+
"test-debug": "run-s 'test -- --inspect-brk=9230'",
|
|
14
|
+
"code-coverage": "nyc run-s 'test -- -r source-map-support/register'",
|
|
15
15
|
"generate-docs": "typedoc --out docs/typedoc src",
|
|
16
16
|
"lint": "eslint \"{src,test}/**/*.ts\""
|
|
17
17
|
},
|
|
@@ -24,10 +24,15 @@
|
|
|
24
24
|
"type": "git",
|
|
25
25
|
"url": "https://gitlab.com/operator-ict/golemio/code/modules/playgrounds"
|
|
26
26
|
},
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=16.0.0",
|
|
29
|
+
"npm": ">=8.0.0",
|
|
30
|
+
"yarn": "Use npm!"
|
|
31
|
+
},
|
|
27
32
|
"devDependencies": {
|
|
28
33
|
"@commitlint/cli": "^11.0.0",
|
|
29
34
|
"@commitlint/config-conventional": "^11.0.0",
|
|
30
|
-
"@golemio/city-districts": "1.0.
|
|
35
|
+
"@golemio/city-districts": "1.2.0-dev.775903079",
|
|
31
36
|
"@golemio/cli": "1.3.3",
|
|
32
37
|
"@golemio/core": "1.2.22",
|
|
33
38
|
"@golemio/db-common": "1.0.2",
|