@golemio/municipal-libraries 1.1.3-dev.708281309 → 1.2.0-dev.779985641
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
|
-
|
|
38
|
+
npm install --save-exact @golemio/municipal-libraries@latest
|
|
39
39
|
|
|
40
40
|
# Development version
|
|
41
|
-
|
|
41
|
+
npm install --save-exact @golemio/municipal-libraries@dev
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
<!-- ## Description -->
|
|
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.UpdateDistrictsTask = void 0;
|
|
16
16
|
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
|
|
17
17
|
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
18
|
-
const
|
|
18
|
+
const CityDistrictPostgresRepository_1 = __importDefault(require("@golemio/city-districts/dist/integration-engine/repositories/CityDistrictPostgresRepository"));
|
|
19
19
|
const repositories_1 = require("../../repositories");
|
|
20
20
|
const UpdateDistrictSchema_1 = require("../schemas/UpdateDistrictSchema");
|
|
21
21
|
class UpdateDistrictsTask extends integration_engine_1.AbstractTask {
|
|
@@ -25,7 +25,7 @@ class UpdateDistrictsTask extends integration_engine_1.AbstractTask {
|
|
|
25
25
|
this.queueTtl = 59 * 60 * 1000; // 59 minutes
|
|
26
26
|
this.schema = UpdateDistrictSchema_1.UpdateDistrictValidationSchema;
|
|
27
27
|
this.repository = new repositories_1.MunicipalLibrariesRepository();
|
|
28
|
-
this.cityDistrictsModel = new
|
|
28
|
+
this.cityDistrictsModel = new CityDistrictPostgresRepository_1.default();
|
|
29
29
|
}
|
|
30
30
|
execute(msg) {
|
|
31
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateDistrictsTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/UpdateDistrictsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8EAAqE;AACrE,6EAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"UpdateDistrictsTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/UpdateDistrictsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8EAAqE;AACrE,6EAAuE;AACvE,iKAA6H;AAC7H,qDAAgE;AAChE,0EAAgH;AAGhH,MAAa,mBAAoB,SAAQ,iCAAkC;IAQvE,YAAY,WAAmB;QAC3B,KAAK,CAAC,WAAW,CAAC,CAAC;QARP,cAAS,GAAG,gBAAgB,CAAC;QAC7B,aAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa;QACxC,WAAM,GAAG,qDAA8B,CAAC;QAOpD,IAAI,CAAC,UAAU,GAAG,IAAI,2CAA4B,EAAE,CAAC;QACrD,IAAI,CAAC,kBAAkB,GAAG,IAAI,wCAAkB,EAAE,CAAC;IACvD,CAAC;IAEe,OAAO,CAAC,GAAyB;;YAC7C,IAAI;gBACA,MAAM,IAAI,GAAmB,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;oBACvD,KAAK,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE;oBACrB,GAAG,EAAE,IAAI;iBACZ,CAAC,CAAC;gBAEH,IAAI,CAAC,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;gBAEtH,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;aACtC;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,4BAAW,CAAC,qCAAqC,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;aACxG;QACL,CAAC;KAAA;CACJ;AA5BD,kDA4BC"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/municipal-libraries",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-dev.779985641",
|
|
4
4
|
"description": "Golemio Municipal Libraries 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
|
"migrate-db": "golemio migrate-db up --postgres",
|
|
16
16
|
"generate-docs": "typedoc --out docs/typedoc src",
|
|
17
17
|
"lint": "eslint \"{src,test}/**/*.ts\""
|
|
@@ -25,10 +25,15 @@
|
|
|
25
25
|
"type": "git",
|
|
26
26
|
"url": "https://gitlab.com/operator-ict/golemio/code/modules/municipal-libraries"
|
|
27
27
|
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=16.0.0",
|
|
30
|
+
"npm": ">=8.0.0",
|
|
31
|
+
"yarn": "Use npm!"
|
|
32
|
+
},
|
|
28
33
|
"devDependencies": {
|
|
29
34
|
"@commitlint/cli": "^11.0.0",
|
|
30
35
|
"@commitlint/config-conventional": "^11.0.0",
|
|
31
|
-
"@golemio/city-districts": "1.0.
|
|
36
|
+
"@golemio/city-districts": "1.2.0-dev.775903079",
|
|
32
37
|
"@golemio/cli": "1.3.3",
|
|
33
38
|
"@golemio/core": "1.2.22",
|
|
34
39
|
"@golemio/db-common": "1.0.2",
|