@golemio/energetics 1.5.3-dev.2164524892 → 1.5.3-dev.2177936068
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/db/migrations/postgresql/20251119123216-eno-stavby-geometrie.js +53 -0
- package/db/migrations/postgresql/sqls/20251119123216-eno-stavby-geometrie-down.sql +2 -0
- package/db/migrations/postgresql/sqls/20251119123216-eno-stavby-geometrie-up.sql +37 -0
- package/dist/integration-engine/enapo/constants.d.ts +1 -0
- package/dist/integration-engine/enapo/constants.js +2 -1
- package/dist/integration-engine/enapo/constants.js.map +1 -1
- package/dist/integration-engine/enapo/datasources/eno/EnoDatasource.js +10 -0
- package/dist/integration-engine/enapo/datasources/eno/EnoDatasource.js.map +1 -1
- package/dist/integration-engine/enapo/datasources/eno/EnoDatasourceFactory.d.ts +3 -1
- package/dist/integration-engine/enapo/datasources/eno/EnoDatasourceFactory.js +2 -0
- package/dist/integration-engine/enapo/datasources/eno/EnoDatasourceFactory.js.map +1 -1
- package/dist/integration-engine/enapo/datasources/eno/EnoOperationEnum.d.ts +6 -0
- package/dist/integration-engine/enapo/datasources/eno/EnoOperationEnum.js +8 -1
- package/dist/integration-engine/enapo/datasources/eno/EnoOperationEnum.js.map +1 -1
- package/dist/integration-engine/enapo/helpers/Chunker.d.ts +3 -0
- package/dist/integration-engine/enapo/helpers/Chunker.js +14 -0
- package/dist/integration-engine/enapo/helpers/Chunker.js.map +1 -0
- package/dist/integration-engine/enapo/interfaces/eno/IEnoStructureInfo.d.ts +10 -0
- package/dist/integration-engine/enapo/{workers/interfaces/IEnoBuildingTaskInput.js → interfaces/eno/IEnoStructureInfo.js} +1 -1
- package/dist/integration-engine/enapo/interfaces/eno/IEnoStructureInfo.js.map +1 -0
- package/dist/integration-engine/enapo/interfaces/eno/IGeometryInputWithIndex.d.ts +4 -0
- package/dist/integration-engine/enapo/interfaces/eno/IGeometryInputWithIndex.js +3 -0
- package/dist/integration-engine/enapo/interfaces/eno/IGeometryInputWithIndex.js.map +1 -0
- package/dist/integration-engine/enapo/ioc/Di.js +11 -2
- package/dist/integration-engine/enapo/ioc/Di.js.map +1 -1
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.d.ts +4 -0
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.js +4 -0
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.js.map +1 -1
- package/dist/integration-engine/enapo/repositories/eno/EnoGeometryRepository.d.ts +5 -0
- package/dist/integration-engine/enapo/repositories/eno/EnoGeometryRepository.js +32 -0
- package/dist/integration-engine/enapo/repositories/eno/EnoGeometryRepository.js.map +1 -0
- package/dist/integration-engine/enapo/repositories/eno/EnoStructureRepository.d.ts +5 -0
- package/dist/integration-engine/enapo/repositories/eno/EnoStructureRepository.js +32 -0
- package/dist/integration-engine/enapo/repositories/eno/EnoStructureRepository.js.map +1 -0
- package/dist/integration-engine/enapo/transformations/eno/EnoGeometryTransformation.d.ts +11 -0
- package/dist/integration-engine/enapo/transformations/eno/EnoGeometryTransformation.js +34 -0
- package/dist/integration-engine/enapo/transformations/eno/EnoGeometryTransformation.js.map +1 -0
- package/dist/integration-engine/enapo/transformations/eno/EnoStructureTransformation.d.ts +13 -0
- package/dist/integration-engine/enapo/transformations/eno/EnoStructureTransformation.js +92 -0
- package/dist/integration-engine/enapo/transformations/eno/EnoStructureTransformation.js.map +1 -0
- package/dist/integration-engine/enapo/workers/EnapoWorker.js +2 -0
- package/dist/integration-engine/enapo/workers/EnapoWorker.js.map +1 -1
- package/dist/integration-engine/enapo/workers/interfaces/IEnoDataTaskInput.d.ts +9 -0
- package/dist/integration-engine/enapo/workers/interfaces/IEnoDataTaskInput.js +9 -0
- package/dist/integration-engine/enapo/workers/interfaces/IEnoDataTaskInput.js.map +1 -0
- package/dist/integration-engine/enapo/workers/interfaces/IEnoGeometryTaskInput.d.ts +4 -0
- package/dist/integration-engine/enapo/workers/interfaces/IEnoGeometryTaskInput.js +3 -0
- package/dist/integration-engine/enapo/workers/interfaces/IEnoGeometryTaskInput.js.map +1 -0
- package/dist/integration-engine/enapo/workers/schema/EnoDataTaskInputSchema.d.ts +6 -0
- package/dist/integration-engine/enapo/workers/schema/{EnoBuildingTaskInputSchema.js → EnoDataTaskInputSchema.js} +9 -8
- package/dist/integration-engine/enapo/workers/schema/EnoDataTaskInputSchema.js.map +1 -0
- package/dist/integration-engine/enapo/workers/schema/EnoGeometryTaskInputSchema.d.ts +5 -0
- package/dist/integration-engine/enapo/workers/schema/EnoGeometryTaskInputSchema.js +27 -0
- package/dist/integration-engine/enapo/workers/schema/EnoGeometryTaskInputSchema.js.map +1 -0
- package/dist/integration-engine/enapo/workers/task/EnoBuildingTask.d.ts +6 -7
- package/dist/integration-engine/enapo/workers/task/EnoBuildingTask.js +11 -6
- package/dist/integration-engine/enapo/workers/task/EnoBuildingTask.js.map +1 -1
- package/dist/integration-engine/enapo/workers/task/EnoGeometryTask.d.ts +15 -0
- package/dist/integration-engine/enapo/workers/task/EnoGeometryTask.js +69 -0
- package/dist/integration-engine/enapo/workers/task/EnoGeometryTask.js.map +1 -0
- package/dist/integration-engine/enapo/workers/task/EnoStructureTask.d.ts +33 -0
- package/dist/integration-engine/enapo/workers/task/EnoStructureTask.js +150 -0
- package/dist/integration-engine/enapo/workers/task/EnoStructureTask.js.map +1 -0
- package/dist/schema-definitions/datasources/eno/EnoGeometryJsonSchema.d.ts +5 -0
- package/dist/schema-definitions/datasources/eno/EnoGeometryJsonSchema.js +24 -0
- package/dist/schema-definitions/datasources/eno/EnoGeometryJsonSchema.js.map +1 -0
- package/dist/schema-definitions/datasources/eno/EnoStructureInfoJsonSchema.d.ts +5 -0
- package/dist/schema-definitions/datasources/eno/EnoStructureInfoJsonSchema.js +102 -0
- package/dist/schema-definitions/datasources/eno/EnoStructureInfoJsonSchema.js.map +1 -0
- package/dist/schema-definitions/datasources/eno/interfaces/IGeometryInput.d.ts +7 -0
- package/dist/schema-definitions/datasources/eno/interfaces/IGeometryInput.js +3 -0
- package/dist/schema-definitions/datasources/eno/interfaces/IGeometryInput.js.map +1 -0
- package/dist/schema-definitions/datasources/eno/interfaces/IStructureInfoInput.d.ts +10 -0
- package/dist/schema-definitions/datasources/eno/interfaces/IStructureInfoInput.js +3 -0
- package/dist/schema-definitions/datasources/eno/interfaces/IStructureInfoInput.js.map +1 -0
- package/dist/schema-definitions/datasources/eno/interfaces/IStructureInput.d.ts +20 -0
- package/dist/schema-definitions/datasources/eno/interfaces/IStructureInput.js +3 -0
- package/dist/schema-definitions/datasources/eno/interfaces/IStructureInput.js.map +1 -0
- package/dist/schema-definitions/models/eno/GeometryModel.d.ts +15 -0
- package/dist/schema-definitions/models/eno/GeometryModel.js +43 -0
- package/dist/schema-definitions/models/eno/GeometryModel.js.map +1 -0
- package/dist/schema-definitions/models/eno/StructureModel.d.ts +27 -0
- package/dist/schema-definitions/models/eno/StructureModel.js +80 -0
- package/dist/schema-definitions/models/eno/StructureModel.js.map +1 -0
- package/dist/schema-definitions/models/eno/interfaces/IGeometry.d.ts +9 -0
- package/dist/schema-definitions/models/eno/interfaces/IGeometry.js +3 -0
- package/dist/schema-definitions/models/eno/interfaces/IGeometry.js.map +1 -0
- package/dist/schema-definitions/models/eno/interfaces/IStructure.d.ts +21 -0
- package/dist/schema-definitions/models/eno/interfaces/IStructure.js +3 -0
- package/dist/schema-definitions/models/eno/interfaces/IStructure.js.map +1 -0
- package/docs/asyncapi.yaml +54 -0
- package/docs/implementation_documentation.md +74 -0
- package/package.json +1 -1
- package/dist/integration-engine/enapo/workers/interfaces/IEnoBuildingTaskInput.d.ts +0 -5
- package/dist/integration-engine/enapo/workers/interfaces/IEnoBuildingTaskInput.js.map +0 -1
- package/dist/integration-engine/enapo/workers/schema/EnoBuildingTaskInputSchema.d.ts +0 -6
- package/dist/integration-engine/enapo/workers/schema/EnoBuildingTaskInputSchema.js.map +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
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', '20251119123216-eno-stavby-geometrie-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', '20251119123216-eno-stavby-geometrie-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
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
CREATE TABLE eno_stavba (
|
|
2
|
+
gid varchar NOT NULL,
|
|
3
|
+
zdroj varchar NULL,
|
|
4
|
+
id_czcc int4 NULL,
|
|
5
|
+
id_objekt int4 NULL,
|
|
6
|
+
material varchar NULL,
|
|
7
|
+
nazev varchar NULL,
|
|
8
|
+
kod_druh_stavba varchar NULL,
|
|
9
|
+
nazev_druh_stavba varchar NULL,
|
|
10
|
+
kod_ochrana_stavba varchar NULL,
|
|
11
|
+
nazev_ochrana_stavba varchar NULL,
|
|
12
|
+
platnost_do timestamptz NULL,
|
|
13
|
+
platnost_od timestamptz NULL,
|
|
14
|
+
profil varchar NULL,
|
|
15
|
+
den_vystavba int4 NULL,
|
|
16
|
+
mesic_vystavba int4 NULL,
|
|
17
|
+
rok_vystavba int4 NULL,
|
|
18
|
+
delka numeric NULL,
|
|
19
|
+
sirka numeric NULL,
|
|
20
|
+
vyska numeric NULL,
|
|
21
|
+
created_at timestamptz DEFAULT now() NULL,
|
|
22
|
+
updated_at timestamptz NULL,
|
|
23
|
+
CONSTRAINT eno_stavba_pk PRIMARY KEY (gid, zdroj)
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
CREATE TABLE eno_geometrie (
|
|
27
|
+
gid varchar NULL,
|
|
28
|
+
zdroj varchar NULL,
|
|
29
|
+
poradi int4 null,
|
|
30
|
+
id_organizace int4 NULL,
|
|
31
|
+
uzivatelsky_zakres bool NULL,
|
|
32
|
+
zakres text NULL,
|
|
33
|
+
epsg_code varchar NULL,
|
|
34
|
+
created_at timestamptz DEFAULT now() NULL,
|
|
35
|
+
updated_at timestamptz NULL,
|
|
36
|
+
CONSTRAINT eno_geometrie_pk PRIMARY KEY (gid, zdroj, poradi)
|
|
37
|
+
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ENAPO_WORKER_NAME = void 0;
|
|
3
|
+
exports.ENO_DEFAULT_ORGANIZATION_ID = exports.ENAPO_WORKER_NAME = void 0;
|
|
4
4
|
exports.ENAPO_WORKER_NAME = "EnapoEnergetics";
|
|
5
|
+
exports.ENO_DEFAULT_ORGANIZATION_ID = 1;
|
|
5
6
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/integration-engine/enapo/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/integration-engine/enapo/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,iBAAiB,CAAC;AACtC,QAAA,2BAA2B,GAAG,CAAC,CAAC"}
|
|
@@ -34,6 +34,8 @@ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
|
34
34
|
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
35
35
|
const soap = __importStar(require("soap"));
|
|
36
36
|
const EnoOperationEnum_1 = require("./EnoOperationEnum");
|
|
37
|
+
const EnoStructureInfoJsonSchema_1 = require("../../../../schema-definitions/datasources/eno/EnoStructureInfoJsonSchema");
|
|
38
|
+
const EnoGeometryJsonSchema_1 = require("../../../../schema-definitions/datasources/eno/EnoGeometryJsonSchema");
|
|
37
39
|
class EnoDatasource {
|
|
38
40
|
constructor(url, security) {
|
|
39
41
|
this.wsdlUrl = url;
|
|
@@ -73,6 +75,14 @@ class EnoDatasource {
|
|
|
73
75
|
return new golemio_validator_1.JSONSchemaValidator("EnoDatasourceBuildingDetailValidator", EnoBuldingInfoJsonSchema_1.enoBuildingInfoInputJsonSchema);
|
|
74
76
|
case EnoOperationEnum_1.EnoOperationBuildingEnum.REMOVED_LIST:
|
|
75
77
|
return new golemio_validator_1.JSONSchemaValidator("EnoDatasourceRemovedBuildingsValidator", EnoGIDListInputJsonSchema_1.enoGIDListInputJsonSchema);
|
|
78
|
+
case EnoOperationEnum_1.EnoOperationStructureEnum.LIST_BY_ORG:
|
|
79
|
+
return new golemio_validator_1.JSONSchemaValidator("EnoDatasourceListBuildingsValidator", EnoGIDListInputJsonSchema_1.enoGIDListInputJsonSchema);
|
|
80
|
+
case EnoOperationEnum_1.EnoOperationStructureEnum.DETAIL:
|
|
81
|
+
return new golemio_validator_1.JSONSchemaValidator("EnoDatasourceBuildingDetailValidator", EnoStructureInfoJsonSchema_1.enoStructureInfoInputJsonSchema);
|
|
82
|
+
case EnoOperationEnum_1.EnoOperationStructureEnum.REMOVED_LIST:
|
|
83
|
+
return new golemio_validator_1.JSONSchemaValidator("EnoDatasourceRemovedBuildingsValidator", EnoGIDListInputJsonSchema_1.enoGIDListInputJsonSchema);
|
|
84
|
+
case EnoOperationEnum_1.ENO_GEOMETRY_OPERATION:
|
|
85
|
+
return new golemio_validator_1.JSONSchemaValidator("EnoDatasourceGeometryValidator", EnoGeometryJsonSchema_1.enoGeometryInputJsonSchema);
|
|
76
86
|
default:
|
|
77
87
|
throw new golemio_errors_1.GeneralError("Unknown operation", this.constructor.name);
|
|
78
88
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnoDatasource.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/datasources/eno/EnoDatasource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sHAA+F;AAC/F,8GAAiF;AACjF,wHAA2F;AAC3F,wHAA2F;AAC3F,kIAAqG;AACrG,oIAAuG;AACvG,6EAAwE;AACxE,mFAAkF;AAClF,2CAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"EnoDatasource.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/datasources/eno/EnoDatasource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sHAA+F;AAC/F,8GAAiF;AACjF,wHAA2F;AAC3F,wHAA2F;AAC3F,kI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configuration/ISimpleC
|
|
|
2
2
|
import { EnoDatasource } from "./EnoDatasource";
|
|
3
3
|
export declare enum ENO_ENDPOINT {
|
|
4
4
|
LOOKUPS = "wsdlLookupUrl",
|
|
5
|
-
BUILDINGS = "wsdlBuildingUrl"
|
|
5
|
+
BUILDINGS = "wsdlBuildingUrl",
|
|
6
|
+
STRUCTURE = "wsdlStructureUrl",
|
|
7
|
+
GEOMETRY = "wsdlGeometryUrl"
|
|
6
8
|
}
|
|
7
9
|
export declare class EnoDatasourceFactory {
|
|
8
10
|
private simpleConfig;
|
|
@@ -21,6 +21,8 @@ var ENO_ENDPOINT;
|
|
|
21
21
|
(function (ENO_ENDPOINT) {
|
|
22
22
|
ENO_ENDPOINT["LOOKUPS"] = "wsdlLookupUrl";
|
|
23
23
|
ENO_ENDPOINT["BUILDINGS"] = "wsdlBuildingUrl";
|
|
24
|
+
ENO_ENDPOINT["STRUCTURE"] = "wsdlStructureUrl";
|
|
25
|
+
ENO_ENDPOINT["GEOMETRY"] = "wsdlGeometryUrl";
|
|
24
26
|
})(ENO_ENDPOINT || (exports.ENO_ENDPOINT = ENO_ENDPOINT = {}));
|
|
25
27
|
let EnoDatasourceFactory = exports.EnoDatasourceFactory = class EnoDatasourceFactory {
|
|
26
28
|
constructor(simpleConfig) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnoDatasourceFactory.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/datasources/eno/EnoDatasourceFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,wEAAqE;AACrE,iEAAwE;AACxE,+BAAyC;AACzC,mDAAgD;AAEhD,IAAY,
|
|
1
|
+
{"version":3,"file":"EnoDatasourceFactory.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/datasources/eno/EnoDatasourceFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,wEAAqE;AACrE,iEAAwE;AACxE,+BAAyC;AACzC,mDAAgD;AAEhD,IAAY,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|
+
export declare enum EnoOperationStructureEnum {
|
|
13
|
+
LIST_BY_ORG = "getStavbyVMajetku",
|
|
14
|
+
DETAIL = "getDetailStavby",
|
|
15
|
+
REMOVED_LIST = "getVyrazeneStavby"
|
|
16
|
+
}
|
|
17
|
+
export declare const ENO_GEOMETRY_OPERATION = "getGeometrie";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnoOperationBuildingEnum = exports.EnoOperationLookupEnum = void 0;
|
|
3
|
+
exports.ENO_GEOMETRY_OPERATION = exports.EnoOperationStructureEnum = exports.EnoOperationBuildingEnum = exports.EnoOperationLookupEnum = void 0;
|
|
4
4
|
var EnoOperationLookupEnum;
|
|
5
5
|
(function (EnoOperationLookupEnum) {
|
|
6
6
|
EnoOperationLookupEnum["STRUCTURE_TYPE"] = "getDruhStavba";
|
|
@@ -14,4 +14,11 @@ var EnoOperationBuildingEnum;
|
|
|
14
14
|
EnoOperationBuildingEnum["DETAIL"] = "getDetailBudovy";
|
|
15
15
|
EnoOperationBuildingEnum["REMOVED_LIST"] = "getVyrazeneBudovy";
|
|
16
16
|
})(EnoOperationBuildingEnum || (exports.EnoOperationBuildingEnum = EnoOperationBuildingEnum = {}));
|
|
17
|
+
var EnoOperationStructureEnum;
|
|
18
|
+
(function (EnoOperationStructureEnum) {
|
|
19
|
+
EnoOperationStructureEnum["LIST_BY_ORG"] = "getStavbyVMajetku";
|
|
20
|
+
EnoOperationStructureEnum["DETAIL"] = "getDetailStavby";
|
|
21
|
+
EnoOperationStructureEnum["REMOVED_LIST"] = "getVyrazeneStavby";
|
|
22
|
+
})(EnoOperationStructureEnum || (exports.EnoOperationStructureEnum = EnoOperationStructureEnum = {}));
|
|
23
|
+
exports.ENO_GEOMETRY_OPERATION = "getGeometrie";
|
|
17
24
|
//# sourceMappingURL=EnoOperationEnum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnoOperationEnum.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/datasources/eno/EnoOperationEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAC9B,0DAAgC,CAAA;IAChC,wDAA8B,CAAA;IAC9B,gDAAsB,CAAA;IACtB,qDAA2B,CAAA;AAC/B,CAAC,EALW,sBAAsB,sCAAtB,sBAAsB,QAKjC;AAED,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAChC,6DAAiC,CAAA;IACjC,sDAA0B,CAAA;IAC1B,8DAAkC,CAAA;AACtC,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC"}
|
|
1
|
+
{"version":3,"file":"EnoOperationEnum.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/datasources/eno/EnoOperationEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAC9B,0DAAgC,CAAA;IAChC,wDAA8B,CAAA;IAC9B,gDAAsB,CAAA;IACtB,qDAA2B,CAAA;AAC/B,CAAC,EALW,sBAAsB,sCAAtB,sBAAsB,QAKjC;AAED,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAChC,6DAAiC,CAAA;IACjC,sDAA0B,CAAA;IAC1B,8DAAkC,CAAA;AACtC,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC;AAED,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACjC,8DAAiC,CAAA;IACjC,uDAA0B,CAAA;IAC1B,+DAAkC,CAAA;AACtC,CAAC,EAJW,yBAAyB,yCAAzB,yBAAyB,QAIpC;AAEY,QAAA,sBAAsB,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Slicer = void 0;
|
|
4
|
+
class Slicer {
|
|
5
|
+
static chunkArray(array, size) {
|
|
6
|
+
const chunks = [];
|
|
7
|
+
for (let i = 0; i < array.length; i += size) {
|
|
8
|
+
chunks.push(array.slice(i, i + size));
|
|
9
|
+
}
|
|
10
|
+
return chunks;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.Slicer = Slicer;
|
|
14
|
+
//# sourceMappingURL=Chunker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chunker.js","sourceRoot":"","sources":["../../../../src/integration-engine/enapo/helpers/Chunker.ts"],"names":[],"mappings":";;;AAAA,MAAa,MAAM;IACR,MAAM,CAAC,UAAU,CAAI,KAAU,EAAE,IAAY;QAChD,MAAM,MAAM,GAAU,EAAE,CAAC;QACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,IAAI,EAAE;YACzC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;SACzC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AARD,wBAQC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IAddress } from "../../../../schema-definitions/models/eno/interfaces/IAddress";
|
|
2
|
+
import { ILocation } from "../../../../schema-definitions/models/eno/interfaces/ILocation";
|
|
3
|
+
import { IProperty } from "../../../../schema-definitions/models/eno/interfaces/IProperty";
|
|
4
|
+
import { IStructure } from "../../../../schema-definitions/models/eno/interfaces/IStructure";
|
|
5
|
+
export interface IEnoStructureInfo {
|
|
6
|
+
structure: IStructure;
|
|
7
|
+
property: IProperty;
|
|
8
|
+
address: IAddress[];
|
|
9
|
+
location: ILocation[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEnoStructureInfo.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/interfaces/eno/IEnoStructureInfo.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IGeometryInputWithIndex.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/interfaces/eno/IGeometryInputWithIndex.ts"],"names":[],"mappings":""}
|
|
@@ -12,11 +12,13 @@ const PreIncomingDataLogRepository_1 = require("../repositories/PreIncomingDataL
|
|
|
12
12
|
const EnoAddressRepository_1 = require("../repositories/eno/EnoAddressRepository");
|
|
13
13
|
const EnoBuildingRepository_1 = require("../repositories/eno/EnoBuildingRepository");
|
|
14
14
|
const EnoEJRepository_1 = require("../repositories/eno/EnoEJRepository");
|
|
15
|
+
const EnoGeometryRepository_1 = require("../repositories/eno/EnoGeometryRepository");
|
|
15
16
|
const EnoLocationRepository_1 = require("../repositories/eno/EnoLocationRepository");
|
|
16
17
|
const EnoManagerRepository_1 = require("../repositories/eno/EnoManagerRepository");
|
|
17
18
|
const EnoOrganizationRepository_1 = require("../repositories/eno/EnoOrganizationRepository");
|
|
18
19
|
const EnoPropertyRepository_1 = require("../repositories/eno/EnoPropertyRepository");
|
|
19
20
|
const EnoRemovedGIDRepository_1 = require("../repositories/eno/EnoRemovedGIDRepository");
|
|
21
|
+
const EnoStructureRepository_1 = require("../repositories/eno/EnoStructureRepository");
|
|
20
22
|
const EnoStructureTypeRepository_1 = require("../repositories/eno/EnoStructureTypeRepository");
|
|
21
23
|
const PPasMeasurementTransformation_1 = require("../transformations/PPasMeasurementTransformation");
|
|
22
24
|
const EnoEJTransformation_1 = require("../transformations/eno/EnoEJTransformation");
|
|
@@ -29,7 +31,9 @@ const PreMetadataTransfromation_1 = require("../transformations/pre/PreMetadataT
|
|
|
29
31
|
const EnapoPpasTask_1 = require("../workers/task/EnapoPpasTask");
|
|
30
32
|
const EnapoPrediTask_1 = require("../workers/task/EnapoPrediTask");
|
|
31
33
|
const EnoBuildingTask_1 = require("../workers/task/EnoBuildingTask");
|
|
34
|
+
const EnoGeometryTask_1 = require("../workers/task/EnoGeometryTask");
|
|
32
35
|
const EnoLookupTask_1 = require("../workers/task/EnoLookupTask");
|
|
36
|
+
const EnoStructureTask_1 = require("../workers/task/EnoStructureTask");
|
|
33
37
|
const EnapoWorkerContainerToken_1 = require("./EnapoWorkerContainerToken");
|
|
34
38
|
//#region Initialization
|
|
35
39
|
const EnapoContainer = Di_1.IntegrationEngineContainer.createChildContainer();
|
|
@@ -52,7 +56,9 @@ EnapoContainer.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.En
|
|
|
52
56
|
.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoAddressRepository, EnoAddressRepository_1.EnoAddressRepository)
|
|
53
57
|
.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoPropertyRepository, EnoPropertyRepository_1.EnoPropertyRepository)
|
|
54
58
|
.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoLocationRepository, EnoLocationRepository_1.EnoLocationRepository)
|
|
55
|
-
.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoRemovedGIDRepository, EnoRemovedGIDRepository_1.EnoRemovedGIDRepository)
|
|
59
|
+
.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoRemovedGIDRepository, EnoRemovedGIDRepository_1.EnoRemovedGIDRepository)
|
|
60
|
+
.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoStructureRepository, EnoStructureRepository_1.EnoStructureRepository)
|
|
61
|
+
.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoGeometryRepository, EnoGeometryRepository_1.EnoGeometryRepository);
|
|
56
62
|
//#endregion
|
|
57
63
|
//#region Transformation
|
|
58
64
|
EnapoContainer.registerSingleton(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.PPasMeasurementTransformation, PPasMeasurementTransformation_1.PPasMeasurementTransformation);
|
|
@@ -67,5 +73,8 @@ EnapoContainer.registerSingleton(EnapoWorkerContainerToken_1.EnapoWorkerContaine
|
|
|
67
73
|
//#region Tasks
|
|
68
74
|
EnapoContainer.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnapoPpasTask, EnapoPpasTask_1.EnapoPpasTask);
|
|
69
75
|
EnapoContainer.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnapoPrediTask, EnapoPrediTask_1.EnapoPrediTask);
|
|
70
|
-
EnapoContainer.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoLookupTask, EnoLookupTask_1.EnoLookupTask)
|
|
76
|
+
EnapoContainer.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoLookupTask, EnoLookupTask_1.EnoLookupTask)
|
|
77
|
+
.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoBuildingTask, EnoBuildingTask_1.EnoBuildingTask)
|
|
78
|
+
.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoStructureTask, EnoStructureTask_1.EnoStructureTask)
|
|
79
|
+
.register(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoGeometryTask, EnoGeometryTask_1.EnoGeometryTask);
|
|
71
80
|
//# sourceMappingURL=Di.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../../src/integration-engine/enapo/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,iIAA4H;AAC5H,qHAAgH;AAChH,kIAA6H;AAC7H,6FAAwF;AACxF,qEAA0F;AAE1F,kFAA+E;AAC/E,6FAA0F;AAC1F,+FAA4F;AAC5F,mFAAgF;AAChF,qFAAkF;AAClF,yEAAsE;AACtE,qFAAkF;AAClF,mFAAgF;AAChF,6FAA0F;AAC1F,qFAAkF;AAClF,yFAAsF;AACtF,+FAA4F;AAC5F,oGAAiG;AACjG,oFAAiF;AACjF,8FAA2F;AAC3F,wGAAqG;AACrG,0GAAuG;AACvG,kHAA+G;AAC/G,wGAAqG;AACrG,gGAA6F;AAC7F,iEAA8D;AAC9D,mEAAgE;AAChE,qEAAkE;AAClE,iEAA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AC,6BAA6B,EAAE,6DAA6B,CAAC;KACzG,iBAAiB,CAAC,qDAAyB,CAAC,wBAAwB,EAAE,mDAAwB,CAAC;KAC/F,iBAAiB,CAAC,qDAAyB,CAAC,mBAAmB,EAAE,yCAAmB,CAAC,CAAC;AAC3F,YAAY;AAEZ,eAAe;AACf,cAAc,CAAC,QAAQ,CAAC,qDAAyB,CAAC,aAAa,EAAE,6BAAa,CAAC,CAAC;AAChF,cAAc,CAAC,QAAQ,CAAC,qDAAyB,CAAC,cAAc,EAAE,+BAAc,CAAC,CAAC;AAClF,cAAc,CAAC,QAAQ,CAAC,qDAAyB,CAAC,aAAa,EAAE,6BAAa,CAAC;KAC1E,QAAQ,CAAC,qDAAyB,CAAC,eAAe,EAAE,iCAAe,CAAC;KACpE,QAAQ,CAAC,qDAAyB,CAAC,gBAAgB,EAAE,mCAAgB,CAAC;KACtE,QAAQ,CAAC,qDAAyB,CAAC,eAAe,EAAE,iCAAe,CAAC,CAAC"}
|
|
@@ -23,7 +23,11 @@ declare const EnapoWorkerContainerToken: {
|
|
|
23
23
|
EnoLocationRepository: symbol;
|
|
24
24
|
EnoPropertyRepository: symbol;
|
|
25
25
|
EnoRemovedGIDRepository: symbol;
|
|
26
|
+
EnoStructureRepository: symbol;
|
|
27
|
+
EnoGeometryRepository: symbol;
|
|
26
28
|
EnoLookupTask: symbol;
|
|
27
29
|
EnoBuildingTask: symbol;
|
|
30
|
+
EnoStructureTask: symbol;
|
|
31
|
+
EnoGeometryTask: symbol;
|
|
28
32
|
};
|
|
29
33
|
export { EnapoWorkerContainerToken };
|
|
@@ -35,8 +35,12 @@ const EnapoWorkerContainerToken = {
|
|
|
35
35
|
EnoLocationRepository: Symbol(),
|
|
36
36
|
EnoPropertyRepository: Symbol(),
|
|
37
37
|
EnoRemovedGIDRepository: Symbol(),
|
|
38
|
+
EnoStructureRepository: Symbol(),
|
|
39
|
+
EnoGeometryRepository: Symbol(),
|
|
38
40
|
EnoLookupTask: Symbol(),
|
|
39
41
|
EnoBuildingTask: Symbol(),
|
|
42
|
+
EnoStructureTask: Symbol(),
|
|
43
|
+
EnoGeometryTask: Symbol(),
|
|
40
44
|
//#endregion
|
|
41
45
|
};
|
|
42
46
|
exports.EnapoWorkerContainerToken = EnapoWorkerContainerToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnapoWorkerContainerToken.js","sourceRoot":"","sources":["../../../../src/integration-engine/enapo/ioc/EnapoWorkerContainerToken.ts"],"names":[],"mappings":";;;AAAA,MAAM,yBAAyB,GAAG;IAC9B,oBAAoB;IACpB,kCAAkC,EAAE,MAAM,EAAE;IAC5C,YAAY;IAEZ,sBAAsB;IACtB,2BAA2B,EAAE,MAAM,EAAE;IACrC,uBAAuB,EAAE,MAAM,EAAE;IACjC,4BAA4B,EAAE,MAAM,EAAE;IACtC,YAAY;IAEZ,yBAAyB;IACzB,6BAA6B,EAAE,MAAM,EAAE;IACvC,6BAA6B,EAAE,MAAM,EAAE;IACvC,kCAAkC,EAAE,MAAM,EAAE;IAC5C,yBAAyB,EAAE,MAAM,EAAE;IACnC,YAAY;IAEZ,eAAe;IACf,aAAa,EAAE,MAAM,EAAE;IACvB,cAAc,EAAE,MAAM,EAAE;IACxB,YAAY;IAEZ,aAAa;IACb,oBAAoB,EAAE,MAAM,EAAE;IAE9B,8BAA8B,EAAE,MAAM,EAAE;IACxC,6BAA6B,EAAE,MAAM,EAAE;IACvC,wBAAwB,EAAE,MAAM,EAAE;IAClC,mBAAmB,EAAE,MAAM,EAAE;IAE7B,0BAA0B,EAAE,MAAM,EAAE;IACpC,yBAAyB,EAAE,MAAM,EAAE;IACnC,oBAAoB,EAAE,MAAM,EAAE;IAC9B,eAAe,EAAE,MAAM,EAAE;IACzB,qBAAqB,EAAE,MAAM,EAAE;IAC/B,oBAAoB,EAAE,MAAM,EAAE;IAC9B,qBAAqB,EAAE,MAAM,EAAE;IAC/B,qBAAqB,EAAE,MAAM,EAAE;IAC/B,uBAAuB,EAAE,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"EnapoWorkerContainerToken.js","sourceRoot":"","sources":["../../../../src/integration-engine/enapo/ioc/EnapoWorkerContainerToken.ts"],"names":[],"mappings":";;;AAAA,MAAM,yBAAyB,GAAG;IAC9B,oBAAoB;IACpB,kCAAkC,EAAE,MAAM,EAAE;IAC5C,YAAY;IAEZ,sBAAsB;IACtB,2BAA2B,EAAE,MAAM,EAAE;IACrC,uBAAuB,EAAE,MAAM,EAAE;IACjC,4BAA4B,EAAE,MAAM,EAAE;IACtC,YAAY;IAEZ,yBAAyB;IACzB,6BAA6B,EAAE,MAAM,EAAE;IACvC,6BAA6B,EAAE,MAAM,EAAE;IACvC,kCAAkC,EAAE,MAAM,EAAE;IAC5C,yBAAyB,EAAE,MAAM,EAAE;IACnC,YAAY;IAEZ,eAAe;IACf,aAAa,EAAE,MAAM,EAAE;IACvB,cAAc,EAAE,MAAM,EAAE;IACxB,YAAY;IAEZ,aAAa;IACb,oBAAoB,EAAE,MAAM,EAAE;IAE9B,8BAA8B,EAAE,MAAM,EAAE;IACxC,6BAA6B,EAAE,MAAM,EAAE;IACvC,wBAAwB,EAAE,MAAM,EAAE;IAClC,mBAAmB,EAAE,MAAM,EAAE;IAE7B,0BAA0B,EAAE,MAAM,EAAE;IACpC,yBAAyB,EAAE,MAAM,EAAE;IACnC,oBAAoB,EAAE,MAAM,EAAE;IAC9B,eAAe,EAAE,MAAM,EAAE;IACzB,qBAAqB,EAAE,MAAM,EAAE;IAC/B,oBAAoB,EAAE,MAAM,EAAE;IAC9B,qBAAqB,EAAE,MAAM,EAAE;IAC/B,qBAAqB,EAAE,MAAM,EAAE;IAC/B,uBAAuB,EAAE,MAAM,EAAE;IACjC,sBAAsB,EAAE,MAAM,EAAE;IAChC,qBAAqB,EAAE,MAAM,EAAE;IAE/B,aAAa,EAAE,MAAM,EAAE;IACvB,eAAe,EAAE,MAAM,EAAE;IACzB,gBAAgB,EAAE,MAAM,EAAE;IAC1B,eAAe,EAAE,MAAM,EAAE;IACzB,YAAY;CACf,CAAC;AAEO,8DAAyB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IModel } from "@golemio/core/dist/integration-engine/models/IModel";
|
|
2
|
+
import { PostgresModel } from "@golemio/core/dist/integration-engine/models/PostgresModel";
|
|
3
|
+
export declare class EnoGeometryRepository extends PostgresModel implements IModel {
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EnoGeometryRepository = void 0;
|
|
13
|
+
const _sch_1 = require("../../../../schema-definitions");
|
|
14
|
+
const GeometryModel_1 = require("../../../../schema-definitions/models/eno/GeometryModel");
|
|
15
|
+
const PostgresModel_1 = require("@golemio/core/dist/integration-engine/models/PostgresModel");
|
|
16
|
+
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
17
|
+
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
18
|
+
let EnoGeometryRepository = exports.EnoGeometryRepository = class EnoGeometryRepository extends PostgresModel_1.PostgresModel {
|
|
19
|
+
constructor() {
|
|
20
|
+
super("EnoGeometryRepository", {
|
|
21
|
+
pgTableName: GeometryModel_1.GeometryModel.TABLE_NAME,
|
|
22
|
+
pgSchema: _sch_1.EnergeticsSchema.pgSchema,
|
|
23
|
+
outputSequelizeAttributes: GeometryModel_1.GeometryModel.attributeModel,
|
|
24
|
+
savingType: "insertOrUpdate",
|
|
25
|
+
}, new golemio_validator_1.JSONSchemaValidator("EnoGeometryRepositoryValidation", GeometryModel_1.GeometryModel.jsonSchema));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.EnoGeometryRepository = EnoGeometryRepository = __decorate([
|
|
29
|
+
(0, tsyringe_1.injectable)(),
|
|
30
|
+
__metadata("design:paramtypes", [])
|
|
31
|
+
], EnoGeometryRepository);
|
|
32
|
+
//# sourceMappingURL=EnoGeometryRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnoGeometryRepository.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/repositories/eno/EnoGeometryRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAwC;AACxC,2FAA8D;AAE9D,8FAA2F;AAC3F,mFAAkF;AAClF,iEAAgE;AAGzD,IAAM,qBAAqB,mCAA3B,MAAM,qBAAsB,SAAQ,6BAAa;IACpD;QACI,KAAK,CACD,uBAAuB,EACvB;YACI,WAAW,EAAE,6BAAa,CAAC,UAAU;YACrC,QAAQ,EAAE,uBAAgB,CAAC,QAAQ;YACnC,yBAAyB,EAAE,6BAAa,CAAC,cAAc;YACvD,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CAAC,iCAAiC,EAAE,6BAAa,CAAC,UAAU,CAAC,CACvF,CAAC;IACN,CAAC;CACJ,CAAA;gCAbY,qBAAqB;IADjC,IAAA,qBAAU,GAAE;;GACA,qBAAqB,CAajC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IModel } from "@golemio/core/dist/integration-engine/models/IModel";
|
|
2
|
+
import { PostgresModel } from "@golemio/core/dist/integration-engine/models/PostgresModel";
|
|
3
|
+
export declare class EnoStructureRepository extends PostgresModel implements IModel {
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EnoStructureRepository = void 0;
|
|
13
|
+
const _sch_1 = require("../../../../schema-definitions");
|
|
14
|
+
const StructureModel_1 = require("../../../../schema-definitions/models/eno/StructureModel");
|
|
15
|
+
const PostgresModel_1 = require("@golemio/core/dist/integration-engine/models/PostgresModel");
|
|
16
|
+
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
17
|
+
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
18
|
+
let EnoStructureRepository = exports.EnoStructureRepository = class EnoStructureRepository extends PostgresModel_1.PostgresModel {
|
|
19
|
+
constructor() {
|
|
20
|
+
super("EnoStructureRepository", {
|
|
21
|
+
pgTableName: StructureModel_1.StructureModel.TABLE_NAME,
|
|
22
|
+
pgSchema: _sch_1.EnergeticsSchema.pgSchema,
|
|
23
|
+
outputSequelizeAttributes: StructureModel_1.StructureModel.attributeModel,
|
|
24
|
+
savingType: "insertOrUpdate",
|
|
25
|
+
}, new golemio_validator_1.JSONSchemaValidator("EnoStructureRepositoryValidation", StructureModel_1.StructureModel.jsonSchema));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.EnoStructureRepository = EnoStructureRepository = __decorate([
|
|
29
|
+
(0, tsyringe_1.injectable)(),
|
|
30
|
+
__metadata("design:paramtypes", [])
|
|
31
|
+
], EnoStructureRepository);
|
|
32
|
+
//# sourceMappingURL=EnoStructureRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnoStructureRepository.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/repositories/eno/EnoStructureRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAwC;AACxC,6FAAgE;AAEhE,8FAA2F;AAC3F,mFAAkF;AAClF,iEAAgE;AAGzD,IAAM,sBAAsB,oCAA5B,MAAM,sBAAuB,SAAQ,6BAAa;IACrD;QACI,KAAK,CACD,wBAAwB,EACxB;YACI,WAAW,EAAE,+BAAc,CAAC,UAAU;YACtC,QAAQ,EAAE,uBAAgB,CAAC,QAAQ;YACnC,yBAAyB,EAAE,+BAAc,CAAC,cAAc;YACxD,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CAAC,kCAAkC,EAAE,+BAAc,CAAC,UAAU,CAAC,CACzF,CAAC;IACN,CAAC;CACJ,CAAA;iCAbY,sBAAsB;IADlC,IAAA,qBAAU,GAAE;;GACA,sBAAsB,CAalC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IGeometryInput } from "../../../../schema-definitions/datasources/eno/interfaces/IGeometryInput";
|
|
2
|
+
import { IGeometry } from "../../../../schema-definitions/models/eno/interfaces/IGeometry";
|
|
3
|
+
import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
|
|
4
|
+
export declare class EnoGeometryTransformation extends AbstractTransformation<IGeometryInput, IGeometry> {
|
|
5
|
+
private source;
|
|
6
|
+
name: string;
|
|
7
|
+
private indexMemory;
|
|
8
|
+
constructor(source: string);
|
|
9
|
+
protected transformInternal: (element: IGeometryInput) => IGeometry;
|
|
10
|
+
private getIndex;
|
|
11
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnoGeometryTransformation = void 0;
|
|
4
|
+
const AbstractTransformation_1 = require("@golemio/core/dist/helpers/transformation/AbstractTransformation");
|
|
5
|
+
class EnoGeometryTransformation extends AbstractTransformation_1.AbstractTransformation {
|
|
6
|
+
constructor(source) {
|
|
7
|
+
super();
|
|
8
|
+
this.source = source;
|
|
9
|
+
this.name = "EnoGeometryTransformation";
|
|
10
|
+
this.indexMemory = {};
|
|
11
|
+
this.transformInternal = (element) => {
|
|
12
|
+
return {
|
|
13
|
+
gid: element.gid,
|
|
14
|
+
zdroj: this.source,
|
|
15
|
+
poradi: this.getIndex(element.gid),
|
|
16
|
+
id_organizace: element.idOrganizace,
|
|
17
|
+
uzivatelsky_zakres: element.uzivatelskyZakres,
|
|
18
|
+
zakres: element.zakres,
|
|
19
|
+
epsg_code: element.epsgCode ?? null,
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
getIndex(gid) {
|
|
24
|
+
if (!this.indexMemory[gid]) {
|
|
25
|
+
this.indexMemory[gid] = 1;
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
this.indexMemory[gid]++;
|
|
29
|
+
}
|
|
30
|
+
return this.indexMemory[gid];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.EnoGeometryTransformation = EnoGeometryTransformation;
|
|
34
|
+
//# sourceMappingURL=EnoGeometryTransformation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnoGeometryTransformation.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/transformations/eno/EnoGeometryTransformation.ts"],"names":[],"mappings":";;;AAEA,6GAA0G;AAE1G,MAAa,yBAA0B,SAAQ,+CAAiD;IAI5F,YAAoB,MAAc;QAC9B,KAAK,EAAE,CAAC;QADQ,WAAM,GAAN,MAAM,CAAQ;QAH3B,SAAI,GAAG,2BAA2B,CAAC;QAClC,gBAAW,GAA2B,EAAE,CAAC;QAMvC,sBAAiB,GAAG,CAAC,OAAuB,EAAa,EAAE;YACjE,OAAO;gBACH,GAAG,EAAE,OAAO,CAAC,GAAG;gBAChB,KAAK,EAAE,IAAI,CAAC,MAAM;gBAClB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC;gBAClC,aAAa,EAAE,OAAO,CAAC,YAAY;gBACnC,kBAAkB,EAAE,OAAO,CAAC,iBAAiB;gBAC7C,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,SAAS,EAAE,OAAO,CAAC,QAAQ,IAAI,IAAI;aACtC,CAAC;QACN,CAAC,CAAC;IAZF,CAAC;IAcO,QAAQ,CAAC,GAAW;QACxB,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE;YACxB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC7B;aAAM;YACH,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;SAC3B;QAED,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;CACJ;AA7BD,8DA6BC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IEnoStructureInfo } from "../../interfaces/eno/IEnoStructureInfo";
|
|
2
|
+
import { IStructureInfoInput } from "../../../../schema-definitions/datasources/eno/interfaces/IStructureInfoInput";
|
|
3
|
+
import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
|
|
4
|
+
export declare class EnoStructureTransformation extends AbstractTransformation<IStructureInfoInput, IEnoStructureInfo> {
|
|
5
|
+
private source;
|
|
6
|
+
name: string;
|
|
7
|
+
constructor(source: string);
|
|
8
|
+
protected transformInternal: (input: IStructureInfoInput) => IEnoStructureInfo;
|
|
9
|
+
private transformStructure;
|
|
10
|
+
private transformAddress;
|
|
11
|
+
private transformLocation;
|
|
12
|
+
private transformProperty;
|
|
13
|
+
}
|