@golemio/energetics 1.5.3-dev.2180893364 → 1.6.0-rc.2190888529
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/integration-engine/commodity-providers/transformations/AveMeasurementTransformation.d.ts +2 -3
- package/dist/integration-engine/commodity-providers/transformations/AveMeasurementTransformation.js +1 -2
- package/dist/integration-engine/commodity-providers/transformations/AveMeasurementTransformation.js.map +1 -1
- package/dist/integration-engine/commodity-providers/transformations/CemMeasurementTransformation.d.ts +0 -2
- package/dist/integration-engine/commodity-providers/transformations/CemMeasurementTransformation.js +0 -1
- package/dist/integration-engine/commodity-providers/transformations/CemMeasurementTransformation.js.map +1 -1
- package/dist/integration-engine/commodity-providers/transformations/PreElectroTransformation.js +0 -1
- package/dist/integration-engine/commodity-providers/transformations/PreElectroTransformation.js.map +1 -1
- package/dist/integration-engine/commodity-providers/transformations/PreMeasurementTransformation.js +0 -1
- package/dist/integration-engine/commodity-providers/transformations/PreMeasurementTransformation.js.map +1 -1
- package/dist/integration-engine/commodity-providers/transformations/PtasWebMeasurementTransformation.js +0 -1
- package/dist/integration-engine/commodity-providers/transformations/PtasWebMeasurementTransformation.js.map +1 -1
- package/dist/integration-engine/commodity-providers/workers/tasks/FetchPpasEEMeasurementsTask.js +1 -2
- package/dist/integration-engine/commodity-providers/workers/tasks/FetchPpasEEMeasurementsTask.js.map +1 -1
- package/dist/integration-engine/commodity-providers/workers/tasks/FetchPpasMeasurementsTask.js +1 -2
- package/dist/integration-engine/commodity-providers/workers/tasks/FetchPpasMeasurementsTask.js.map +1 -1
- package/dist/integration-engine/commodity-providers/workers/tasks/FetchPreMeasurementDataTask.js +1 -1
- package/dist/integration-engine/commodity-providers/workers/tasks/FetchPreMeasurementDataTask.js.map +1 -1
- package/dist/integration-engine/commodity-providers/workers/tasks/FetchVeoliaMeasurementsTask.js +1 -3
- package/dist/integration-engine/commodity-providers/workers/tasks/FetchVeoliaMeasurementsTask.js.map +1 -1
- package/dist/integration-engine/enapo/constants.d.ts +0 -1
- package/dist/integration-engine/enapo/constants.js +1 -2
- package/dist/integration-engine/enapo/constants.js.map +1 -1
- package/dist/integration-engine/enapo/datasources/eno/EnoDatasource.js +0 -10
- package/dist/integration-engine/enapo/datasources/eno/EnoDatasource.js.map +1 -1
- package/dist/integration-engine/enapo/datasources/eno/EnoDatasourceFactory.d.ts +1 -3
- package/dist/integration-engine/enapo/datasources/eno/EnoDatasourceFactory.js +0 -2
- package/dist/integration-engine/enapo/datasources/eno/EnoDatasourceFactory.js.map +1 -1
- package/dist/integration-engine/enapo/datasources/eno/EnoOperationEnum.d.ts +0 -6
- package/dist/integration-engine/enapo/datasources/eno/EnoOperationEnum.js +1 -8
- package/dist/integration-engine/enapo/datasources/eno/EnoOperationEnum.js.map +1 -1
- package/dist/integration-engine/enapo/ioc/Di.js +2 -11
- package/dist/integration-engine/enapo/ioc/Di.js.map +1 -1
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.d.ts +0 -4
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.js +0 -4
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.js.map +1 -1
- package/dist/integration-engine/enapo/workers/EnapoWorker.js +0 -2
- package/dist/integration-engine/enapo/workers/EnapoWorker.js.map +1 -1
- package/dist/integration-engine/enapo/workers/interfaces/IEnoBuildingTaskInput.d.ts +5 -0
- package/dist/integration-engine/enapo/{interfaces/eno/IEnoStructureInfo.js → workers/interfaces/IEnoBuildingTaskInput.js} +1 -1
- package/dist/integration-engine/enapo/workers/interfaces/IEnoBuildingTaskInput.js.map +1 -0
- package/dist/integration-engine/enapo/workers/schema/EnoBuildingTaskInputSchema.d.ts +6 -0
- package/dist/integration-engine/enapo/workers/schema/{EnoDataTaskInputSchema.js → EnoBuildingTaskInputSchema.js} +8 -9
- package/dist/integration-engine/enapo/workers/schema/EnoBuildingTaskInputSchema.js.map +1 -0
- package/dist/integration-engine/enapo/workers/task/EnoBuildingTask.d.ts +7 -6
- package/dist/integration-engine/enapo/workers/task/EnoBuildingTask.js +6 -11
- package/dist/integration-engine/enapo/workers/task/EnoBuildingTask.js.map +1 -1
- package/dist/schema-definitions/datasources/StaticMeterSettingsJsonSchema.js +3 -4
- package/dist/schema-definitions/datasources/StaticMeterSettingsJsonSchema.js.map +1 -1
- package/dist/schema-definitions/datasources/interfaces/IStaticMeterSettings.d.ts +2 -3
- package/dist/schema-definitions/models/MeasurementsModel.d.ts +0 -1
- package/dist/schema-definitions/models/MeasurementsModel.js +1 -15
- package/dist/schema-definitions/models/MeasurementsModel.js.map +1 -1
- package/dist/schema-definitions/models/eno/EJLookupModel.js +1 -1
- package/dist/schema-definitions/models/eno/EJLookupModel.js.map +1 -1
- package/dist/schema-definitions/models/interfaces/IMeasurementDto.d.ts +0 -1
- package/docs/asyncapi.yaml +0 -54
- package/docs/implementation_documentation.md +0 -74
- package/package.json +4 -4
- package/db/migrations/postgresql/20250213141826-add-device-serial-id.js +0 -53
- package/db/migrations/postgresql/20251119123216-eno-stavby-geometrie.js +0 -53
- package/db/migrations/postgresql/20251126125250-eno-ej-lookup-type-fix.js +0 -53
- package/db/migrations/postgresql/sqls/20250213141826-add-device-serial-id-down.sql +0 -1
- package/db/migrations/postgresql/sqls/20250213141826-add-device-serial-id-up.sql +0 -1
- package/db/migrations/postgresql/sqls/20251119123216-eno-stavby-geometrie-down.sql +0 -2
- package/db/migrations/postgresql/sqls/20251119123216-eno-stavby-geometrie-up.sql +0 -37
- package/db/migrations/postgresql/sqls/20251126125250-eno-ej-lookup-type-fix-down.sql +0 -1
- package/db/migrations/postgresql/sqls/20251126125250-eno-ej-lookup-type-fix-up.sql +0 -1
- package/dist/integration-engine/enapo/helpers/Chunker.d.ts +0 -3
- package/dist/integration-engine/enapo/helpers/Chunker.js +0 -14
- package/dist/integration-engine/enapo/helpers/Chunker.js.map +0 -1
- package/dist/integration-engine/enapo/interfaces/eno/IEnoStructureInfo.d.ts +0 -10
- package/dist/integration-engine/enapo/interfaces/eno/IEnoStructureInfo.js.map +0 -1
- package/dist/integration-engine/enapo/interfaces/eno/IGeometryInputWithIndex.d.ts +0 -4
- package/dist/integration-engine/enapo/interfaces/eno/IGeometryInputWithIndex.js +0 -3
- package/dist/integration-engine/enapo/interfaces/eno/IGeometryInputWithIndex.js.map +0 -1
- package/dist/integration-engine/enapo/repositories/eno/EnoGeometryRepository.d.ts +0 -5
- package/dist/integration-engine/enapo/repositories/eno/EnoGeometryRepository.js +0 -32
- package/dist/integration-engine/enapo/repositories/eno/EnoGeometryRepository.js.map +0 -1
- package/dist/integration-engine/enapo/repositories/eno/EnoStructureRepository.d.ts +0 -5
- package/dist/integration-engine/enapo/repositories/eno/EnoStructureRepository.js +0 -32
- package/dist/integration-engine/enapo/repositories/eno/EnoStructureRepository.js.map +0 -1
- package/dist/integration-engine/enapo/transformations/eno/EnoGeometryTransformation.d.ts +0 -11
- package/dist/integration-engine/enapo/transformations/eno/EnoGeometryTransformation.js +0 -34
- package/dist/integration-engine/enapo/transformations/eno/EnoGeometryTransformation.js.map +0 -1
- package/dist/integration-engine/enapo/transformations/eno/EnoStructureTransformation.d.ts +0 -13
- package/dist/integration-engine/enapo/transformations/eno/EnoStructureTransformation.js +0 -92
- package/dist/integration-engine/enapo/transformations/eno/EnoStructureTransformation.js.map +0 -1
- package/dist/integration-engine/enapo/workers/interfaces/IEnoDataTaskInput.d.ts +0 -9
- package/dist/integration-engine/enapo/workers/interfaces/IEnoDataTaskInput.js +0 -9
- package/dist/integration-engine/enapo/workers/interfaces/IEnoDataTaskInput.js.map +0 -1
- package/dist/integration-engine/enapo/workers/interfaces/IEnoGeometryTaskInput.d.ts +0 -4
- package/dist/integration-engine/enapo/workers/interfaces/IEnoGeometryTaskInput.js +0 -3
- package/dist/integration-engine/enapo/workers/interfaces/IEnoGeometryTaskInput.js.map +0 -1
- package/dist/integration-engine/enapo/workers/schema/EnoDataTaskInputSchema.d.ts +0 -6
- package/dist/integration-engine/enapo/workers/schema/EnoDataTaskInputSchema.js.map +0 -1
- package/dist/integration-engine/enapo/workers/schema/EnoGeometryTaskInputSchema.d.ts +0 -5
- package/dist/integration-engine/enapo/workers/schema/EnoGeometryTaskInputSchema.js +0 -27
- package/dist/integration-engine/enapo/workers/schema/EnoGeometryTaskInputSchema.js.map +0 -1
- package/dist/integration-engine/enapo/workers/task/EnoGeometryTask.d.ts +0 -15
- package/dist/integration-engine/enapo/workers/task/EnoGeometryTask.js +0 -69
- package/dist/integration-engine/enapo/workers/task/EnoGeometryTask.js.map +0 -1
- package/dist/integration-engine/enapo/workers/task/EnoStructureTask.d.ts +0 -33
- package/dist/integration-engine/enapo/workers/task/EnoStructureTask.js +0 -150
- package/dist/integration-engine/enapo/workers/task/EnoStructureTask.js.map +0 -1
- package/dist/schema-definitions/datasources/eno/EnoGeometryJsonSchema.d.ts +0 -5
- package/dist/schema-definitions/datasources/eno/EnoGeometryJsonSchema.js +0 -24
- package/dist/schema-definitions/datasources/eno/EnoGeometryJsonSchema.js.map +0 -1
- package/dist/schema-definitions/datasources/eno/EnoStructureInfoJsonSchema.d.ts +0 -5
- package/dist/schema-definitions/datasources/eno/EnoStructureInfoJsonSchema.js +0 -102
- package/dist/schema-definitions/datasources/eno/EnoStructureInfoJsonSchema.js.map +0 -1
- package/dist/schema-definitions/datasources/eno/interfaces/IGeometryInput.d.ts +0 -7
- package/dist/schema-definitions/datasources/eno/interfaces/IGeometryInput.js +0 -3
- package/dist/schema-definitions/datasources/eno/interfaces/IGeometryInput.js.map +0 -1
- package/dist/schema-definitions/datasources/eno/interfaces/IStructureInfoInput.d.ts +0 -10
- package/dist/schema-definitions/datasources/eno/interfaces/IStructureInfoInput.js +0 -3
- package/dist/schema-definitions/datasources/eno/interfaces/IStructureInfoInput.js.map +0 -1
- package/dist/schema-definitions/datasources/eno/interfaces/IStructureInput.d.ts +0 -20
- package/dist/schema-definitions/datasources/eno/interfaces/IStructureInput.js +0 -3
- package/dist/schema-definitions/datasources/eno/interfaces/IStructureInput.js.map +0 -1
- package/dist/schema-definitions/models/eno/GeometryModel.d.ts +0 -15
- package/dist/schema-definitions/models/eno/GeometryModel.js +0 -43
- package/dist/schema-definitions/models/eno/GeometryModel.js.map +0 -1
- package/dist/schema-definitions/models/eno/StructureModel.d.ts +0 -27
- package/dist/schema-definitions/models/eno/StructureModel.js +0 -80
- package/dist/schema-definitions/models/eno/StructureModel.js.map +0 -1
- package/dist/schema-definitions/models/eno/interfaces/IGeometry.d.ts +0 -9
- package/dist/schema-definitions/models/eno/interfaces/IGeometry.js +0 -3
- package/dist/schema-definitions/models/eno/interfaces/IGeometry.js.map +0 -1
- package/dist/schema-definitions/models/eno/interfaces/IStructure.d.ts +0 -21
- package/dist/schema-definitions/models/eno/interfaces/IStructure.js +0 -3
- package/dist/schema-definitions/models/eno/interfaces/IStructure.js.map +0 -1
|
@@ -1,150 +0,0 @@
|
|
|
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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
var EnoStructureTask_1;
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.EnoStructureTask = void 0;
|
|
17
|
-
const constants_1 = require("../../constants");
|
|
18
|
-
const EnoDatasourceFactory_1 = require("../../datasources/eno/EnoDatasourceFactory");
|
|
19
|
-
const EnoOperationEnum_1 = require("../../datasources/eno/EnoOperationEnum");
|
|
20
|
-
const Chunker_1 = require("../../helpers/Chunker");
|
|
21
|
-
const EnapoWorkerContainerToken_1 = require("../../ioc/EnapoWorkerContainerToken");
|
|
22
|
-
const EnoAddressRepository_1 = require("../../repositories/eno/EnoAddressRepository");
|
|
23
|
-
const EnoLocationRepository_1 = require("../../repositories/eno/EnoLocationRepository");
|
|
24
|
-
const EnoPropertyRepository_1 = require("../../repositories/eno/EnoPropertyRepository");
|
|
25
|
-
const EnoRemovedGIDRepository_1 = require("../../repositories/eno/EnoRemovedGIDRepository");
|
|
26
|
-
const EnoStructureRepository_1 = require("../../repositories/eno/EnoStructureRepository");
|
|
27
|
-
const EnoStructureTransformation_1 = require("../../transformations/eno/EnoStructureTransformation");
|
|
28
|
-
const EnumGIDTypes_1 = require("../../../../schema-definitions/models/eno/helpers/EnumGIDTypes");
|
|
29
|
-
const CoreToken_1 = require("@golemio/core/dist/helpers/ioc/CoreToken");
|
|
30
|
-
const QueueManager_1 = require("@golemio/core/dist/integration-engine/queueprocessors/QueueManager");
|
|
31
|
-
const AbstractTask_1 = require("@golemio/core/dist/integration-engine/workers/AbstractTask");
|
|
32
|
-
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
33
|
-
const luxon_1 = require("@golemio/core/dist/shared/luxon");
|
|
34
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
35
|
-
const IEnoDataTaskInput_1 = require("../interfaces/IEnoDataTaskInput");
|
|
36
|
-
const EnoDataTaskInputSchema_1 = require("../schema/EnoDataTaskInputSchema");
|
|
37
|
-
let EnoStructureTask = exports.EnoStructureTask = EnoStructureTask_1 = class EnoStructureTask extends AbstractTask_1.AbstractTask {
|
|
38
|
-
constructor(enoDatasourceFactory, enoStructureRepository, enoPropertyRepository, enoLocationRepository, enoAddressRepository, enoRemovedGIDRepository, logger, dbConnector, simpleConfig) {
|
|
39
|
-
super(constants_1.ENAPO_WORKER_NAME);
|
|
40
|
-
this.enoDatasourceFactory = enoDatasourceFactory;
|
|
41
|
-
this.enoStructureRepository = enoStructureRepository;
|
|
42
|
-
this.enoPropertyRepository = enoPropertyRepository;
|
|
43
|
-
this.enoLocationRepository = enoLocationRepository;
|
|
44
|
-
this.enoAddressRepository = enoAddressRepository;
|
|
45
|
-
this.enoRemovedGIDRepository = enoRemovedGIDRepository;
|
|
46
|
-
this.logger = logger;
|
|
47
|
-
this.dbConnector = dbConnector;
|
|
48
|
-
this.simpleConfig = simpleConfig;
|
|
49
|
-
this.schema = EnoDataTaskInputSchema_1.EnoDataTaskInputSchema;
|
|
50
|
-
this.queueName = "processEnoStructures";
|
|
51
|
-
this.queueTtl = 60 * 60 * 1000;
|
|
52
|
-
this.removedBuldingsStartDate = this.simpleConfig.getValue("module.energetics.eno.removedBuldingsStartDate", "2025-01-01T00:00:00+01:00");
|
|
53
|
-
}
|
|
54
|
-
async execute(data) {
|
|
55
|
-
try {
|
|
56
|
-
const datasource = this.enoDatasourceFactory.getDatasource(EnoDatasourceFactory_1.ENO_ENDPOINT.STRUCTURE, data.source);
|
|
57
|
-
const listGID = data.type === IEnoDataTaskInput_1.EnumEnoDataType.CURRENT
|
|
58
|
-
? await this.getCurrentStructureList(datasource, data)
|
|
59
|
-
: await this.getRemovedStructureList(datasource, data);
|
|
60
|
-
if (!listGID || (Array.isArray(listGID.return) && listGID.return.length === 0)) {
|
|
61
|
-
this.logger.info(`No Structures found for source: ${data.source} type: ${data.type} ${data.daysBack ? data.daysBack + " days back incremenetal synchronization" : "full synchronization"}`);
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
const batches = Chunker_1.Slicer.chunkArray(listGID.return, EnoStructureTask_1.BATCH_SIZE);
|
|
65
|
-
for (const batch of batches) {
|
|
66
|
-
const structureDetails = await datasource.getData(EnoOperationEnum_1.EnoOperationStructureEnum.DETAIL, "", {
|
|
67
|
-
idOrganizace: 1,
|
|
68
|
-
seznamGID: batch,
|
|
69
|
-
});
|
|
70
|
-
if (structureDetails) {
|
|
71
|
-
const transformation = new EnoStructureTransformation_1.EnoStructureTransformation(data.source);
|
|
72
|
-
const transformedData = transformation.transformArray(structureDetails.return);
|
|
73
|
-
await this.saveData(transformedData);
|
|
74
|
-
}
|
|
75
|
-
QueueManager_1.QueueManager.sendMessageToExchange(this.queuePrefix, "processEnoGeometry", {
|
|
76
|
-
source: data.source,
|
|
77
|
-
listGid: batch,
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (err) {
|
|
82
|
-
if (err instanceof golemio_errors_1.AbstractGolemioError) {
|
|
83
|
-
throw err;
|
|
84
|
-
}
|
|
85
|
-
throw new golemio_errors_1.GeneralError("Failed to save ENO Structure data", this.constructor.name, err);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
async saveData(transformedData) {
|
|
89
|
-
const structures = transformedData.map((el) => el.structure);
|
|
90
|
-
const property = transformedData.map((el) => el.property);
|
|
91
|
-
const address = transformedData.flatMap((el) => el.address);
|
|
92
|
-
const location = transformedData.flatMap((el) => el.location);
|
|
93
|
-
const transaction = await this.dbConnector.getConnection().transaction();
|
|
94
|
-
try {
|
|
95
|
-
await this.enoStructureRepository.bulkSave(structures, undefined, undefined, undefined, transaction);
|
|
96
|
-
await this.enoAddressRepository.bulkSave(address, undefined, undefined, undefined, transaction);
|
|
97
|
-
await this.enoPropertyRepository.bulkSave(property, undefined, undefined, undefined, transaction);
|
|
98
|
-
await this.enoLocationRepository.bulkSave(location, undefined, undefined, undefined, transaction);
|
|
99
|
-
await transaction.commit();
|
|
100
|
-
}
|
|
101
|
-
catch (err) {
|
|
102
|
-
await transaction.rollback();
|
|
103
|
-
throw err;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
async getCurrentStructureList(datasource, data) {
|
|
107
|
-
const listGID = await datasource.getData(EnoOperationEnum_1.EnoOperationStructureEnum.LIST_BY_ORG, "", {
|
|
108
|
-
idOrganizace: constants_1.ENO_DEFAULT_ORGANIZATION_ID,
|
|
109
|
-
...(data.daysBack ? { datum: luxon_1.DateTime.now().minus({ days: data.daysBack }).toISO() } : {}),
|
|
110
|
-
});
|
|
111
|
-
return listGID;
|
|
112
|
-
}
|
|
113
|
-
async getRemovedStructureList(datasource, data) {
|
|
114
|
-
const listRemovedStructureGID = await datasource.getData(EnoOperationEnum_1.EnoOperationStructureEnum.REMOVED_LIST, "", {
|
|
115
|
-
idOrganizace: constants_1.ENO_DEFAULT_ORGANIZATION_ID,
|
|
116
|
-
datum: data.daysBack ? luxon_1.DateTime.now().minus({ days: data.daysBack }).toISO() : this.removedBuldingsStartDate,
|
|
117
|
-
});
|
|
118
|
-
if (listRemovedStructureGID) {
|
|
119
|
-
const removedGids = listRemovedStructureGID.return.map((gid) => {
|
|
120
|
-
return {
|
|
121
|
-
gid: gid,
|
|
122
|
-
gid_typ: EnumGIDTypes_1.EnumGidTypes.STRUCTURE,
|
|
123
|
-
zdroj: data.source,
|
|
124
|
-
};
|
|
125
|
-
});
|
|
126
|
-
await this.enoRemovedGIDRepository.bulkSave(removedGids);
|
|
127
|
-
}
|
|
128
|
-
return listRemovedStructureGID;
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
EnoStructureTask.BATCH_SIZE = 1000;
|
|
132
|
-
exports.EnoStructureTask = EnoStructureTask = EnoStructureTask_1 = __decorate([
|
|
133
|
-
(0, tsyringe_1.injectable)(),
|
|
134
|
-
__param(0, (0, tsyringe_1.inject)(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoDatasourceFactory)),
|
|
135
|
-
__param(1, (0, tsyringe_1.inject)(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoStructureRepository)),
|
|
136
|
-
__param(2, (0, tsyringe_1.inject)(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoPropertyRepository)),
|
|
137
|
-
__param(3, (0, tsyringe_1.inject)(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoLocationRepository)),
|
|
138
|
-
__param(4, (0, tsyringe_1.inject)(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoAddressRepository)),
|
|
139
|
-
__param(5, (0, tsyringe_1.inject)(EnapoWorkerContainerToken_1.EnapoWorkerContainerToken.EnoRemovedGIDRepository)),
|
|
140
|
-
__param(6, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
141
|
-
__param(7, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.PostgresConnector)),
|
|
142
|
-
__param(8, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.SimpleConfig)),
|
|
143
|
-
__metadata("design:paramtypes", [EnoDatasourceFactory_1.EnoDatasourceFactory,
|
|
144
|
-
EnoStructureRepository_1.EnoStructureRepository,
|
|
145
|
-
EnoPropertyRepository_1.EnoPropertyRepository,
|
|
146
|
-
EnoLocationRepository_1.EnoLocationRepository,
|
|
147
|
-
EnoAddressRepository_1.EnoAddressRepository,
|
|
148
|
-
EnoRemovedGIDRepository_1.EnoRemovedGIDRepository, Object, Object, Object])
|
|
149
|
-
], EnoStructureTask);
|
|
150
|
-
//# sourceMappingURL=EnoStructureTask.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnoStructureTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/workers/task/EnoStructureTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAqF;AAErF,qFAAoG;AACpG,6EAAuF;AACvF,mDAAmD;AAEnD,mFAAoF;AACpF,sFAAuF;AACvF,wFAAyF;AACzF,wFAAyF;AACzF,4FAA6F;AAC7F,0FAA2F;AAC3F,qGAAsG;AAEtG,iGAAoE;AAKpE,wEAAqE;AACrE,qGAAkG;AA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CAAC,uBAAuB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;SAC5D;QAED,OAAO,uBAAuB,CAAC;IACnC,CAAC;;AA3GuB,2BAAU,GAAG,IAAI,AAAP,CAAQ;2BALjC,gBAAgB;IAD5B,IAAA,qBAAU,GAAE;IASJ,WAAA,IAAA,iBAAM,EAAC,qDAAyB,CAAC,oBAAoB,CAAC,CAAA;IACtD,WAAA,IAAA,iBAAM,EAAC,qDAAyB,CAAC,sBAAsB,CAAC,CAAA;IACxD,WAAA,IAAA,iBAAM,EAAC,qDAAyB,CAAC,qBAAqB,CAAC,CAAA;IACvD,WAAA,IAAA,iBAAM,EAAC,qDAAyB,CAAC,qBAAqB,CAAC,CAAA;IACvD,WAAA,IAAA,iBAAM,EAAC,qDAAyB,CAAC,oBAAoB,CAAC,CAAA;IACtD,WAAA,IAAA,iBAAM,EAAC,qDAAyB,CAAC,uBAAuB,CAAC,CAAA;IACzD,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,MAAM,CAAC,CAAA;IACxB,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAA,IAAA,iBAAM,EAAC,qBAAS,CAAC,YAAY,CAAC,CAAA;qCARuD,2CAAoB;QAChB,+CAAsB;QACxB,6CAAqB;QACrB,6CAAqB;QACvB,2CAAoB;QACd,iDAAuB;GAb9G,gBAAgB,CAiH5B"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.enoGeometryInputJsonSchema = void 0;
|
|
4
|
-
exports.enoGeometryInputJsonSchema = {
|
|
5
|
-
type: "object",
|
|
6
|
-
properties: {
|
|
7
|
-
return: {
|
|
8
|
-
type: "array",
|
|
9
|
-
items: {
|
|
10
|
-
type: "object",
|
|
11
|
-
properties: {
|
|
12
|
-
gid: { type: "string" },
|
|
13
|
-
idOrganizace: { type: "integer" },
|
|
14
|
-
uzivatelskyZakres: { type: "boolean" },
|
|
15
|
-
zakres: { type: "string" },
|
|
16
|
-
epsgCode: { type: "string", nullable: true },
|
|
17
|
-
},
|
|
18
|
-
required: ["gid"],
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
required: ["return"],
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=EnoGeometryJsonSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnoGeometryJsonSchema.js","sourceRoot":"","sources":["../../../../src/schema-definitions/datasources/eno/EnoGeometryJsonSchema.ts"],"names":[],"mappings":";;;AAGa,QAAA,0BAA0B,GAAiD;IACpF,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACvB,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACjC,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACtC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC1B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;iBAC/C;gBACD,QAAQ,EAAE,CAAC,KAAK,CAAC;aACpB;SACJ;KACJ;IACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;CACvB,CAAC"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.enoStructureInfoInputJsonSchema = void 0;
|
|
4
|
-
exports.enoStructureInfoInputJsonSchema = {
|
|
5
|
-
type: "object",
|
|
6
|
-
properties: {
|
|
7
|
-
return: {
|
|
8
|
-
type: "array",
|
|
9
|
-
items: {
|
|
10
|
-
type: "object",
|
|
11
|
-
properties: {
|
|
12
|
-
adresy: {
|
|
13
|
-
type: "array",
|
|
14
|
-
items: {
|
|
15
|
-
type: "object",
|
|
16
|
-
properties: {
|
|
17
|
-
hlavniAdresa: { type: "boolean" },
|
|
18
|
-
idAdresa: { type: "integer" },
|
|
19
|
-
popisAdresa: { type: "string" },
|
|
20
|
-
},
|
|
21
|
-
required: [],
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
stavba: {
|
|
25
|
-
type: "object",
|
|
26
|
-
properties: {
|
|
27
|
-
delka: { type: "number" },
|
|
28
|
-
denVystavbaStavba: { type: "integer" },
|
|
29
|
-
gid: { type: "string" },
|
|
30
|
-
idCZCC: { type: "integer" },
|
|
31
|
-
idObjekt: { type: "integer" },
|
|
32
|
-
kodDruhStavba: { type: "string" },
|
|
33
|
-
kodOchranaStavba: { type: "string" },
|
|
34
|
-
material: { type: "string" },
|
|
35
|
-
mesicVystavbaStavba: { type: "integer" },
|
|
36
|
-
nazev: { type: "string" },
|
|
37
|
-
nazevDruhStavba: { type: "string" },
|
|
38
|
-
nazevOchranaStavba: { type: "string" },
|
|
39
|
-
platnostDo: {
|
|
40
|
-
type: "object",
|
|
41
|
-
required: ["toISOString"],
|
|
42
|
-
},
|
|
43
|
-
platnostOd: {
|
|
44
|
-
type: "object",
|
|
45
|
-
required: ["toISOString"],
|
|
46
|
-
},
|
|
47
|
-
profil: { type: "string" },
|
|
48
|
-
rokVystavbaStavba: { type: "integer" },
|
|
49
|
-
sirka: { type: "number" },
|
|
50
|
-
vyska: { type: "number" },
|
|
51
|
-
},
|
|
52
|
-
required: ["gid"],
|
|
53
|
-
},
|
|
54
|
-
majetek: {
|
|
55
|
-
type: "object",
|
|
56
|
-
properties: {
|
|
57
|
-
datumNabyti: {
|
|
58
|
-
type: "object",
|
|
59
|
-
required: ["toISOString"],
|
|
60
|
-
},
|
|
61
|
-
datumPozbyti: {
|
|
62
|
-
type: "object",
|
|
63
|
-
required: ["toISOString"],
|
|
64
|
-
},
|
|
65
|
-
idMajEvidencniJednotka: { type: "integer" },
|
|
66
|
-
idMajSpravceMandatni: { type: "integer" },
|
|
67
|
-
idMajSpravceUcetJednotka: { type: "integer" },
|
|
68
|
-
idVlastnik: { type: "integer" },
|
|
69
|
-
penb: { type: "boolean" },
|
|
70
|
-
penbPlatnostOd: {
|
|
71
|
-
type: "object",
|
|
72
|
-
required: ["toISOString"],
|
|
73
|
-
},
|
|
74
|
-
penbPoznamka: { type: "string" },
|
|
75
|
-
podilMajetekCitatel: { type: "integer" },
|
|
76
|
-
podilMajetekJmenovatel: { type: "integer" },
|
|
77
|
-
VMajetku: { type: "boolean" },
|
|
78
|
-
VMajetkuStatu: { type: "boolean" },
|
|
79
|
-
VProcesuSvereni: { type: "boolean" },
|
|
80
|
-
},
|
|
81
|
-
required: [],
|
|
82
|
-
},
|
|
83
|
-
umisteni: {
|
|
84
|
-
type: "array",
|
|
85
|
-
items: {
|
|
86
|
-
type: "object",
|
|
87
|
-
properties: {
|
|
88
|
-
hlavniParcelaUmisteni: { type: "boolean" },
|
|
89
|
-
idPracelaOrig: { type: "integer" },
|
|
90
|
-
popisUmisteni: { type: "string" },
|
|
91
|
-
},
|
|
92
|
-
required: [],
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
required: ["stavba", "majetek"],
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
required: ["return"],
|
|
101
|
-
};
|
|
102
|
-
//# sourceMappingURL=EnoStructureInfoJsonSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnoStructureInfoJsonSchema.js","sourceRoot":"","sources":["../../../../src/schema-definitions/datasources/eno/EnoStructureInfoJsonSchema.ts"],"names":[],"mappings":";;;AAGa,QAAA,+BAA+B,GAAsD;IAC9F,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE,OAAO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AE;4BACH,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACR,qBAAqB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gCAC1C,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gCAClC,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;6BACpC;4BACD,QAAQ,EAAE,EAAE;yBACf;qBACJ;iBACJ;gBACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;aAClC;SACJ;KACJ;IACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;CACvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IGeometryInput.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/datasources/eno/interfaces/IGeometryInput.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IAddressInput } from "./IAddressInput";
|
|
2
|
-
import { IStructureInput } from "./IStructureInput";
|
|
3
|
-
import { ILocationInput } from "./ILocationInput";
|
|
4
|
-
import { IPropertyInput } from "./IPropertyInput";
|
|
5
|
-
export interface IStructureInfoInput {
|
|
6
|
-
adresy: IAddressInput[];
|
|
7
|
-
stavba: IStructureInput;
|
|
8
|
-
majetek: IPropertyInput;
|
|
9
|
-
umisteni: ILocationInput[];
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IStructureInfoInput.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/datasources/eno/interfaces/IStructureInfoInput.ts"],"names":[],"mappings":""}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface IStructureInput {
|
|
2
|
-
delka: number;
|
|
3
|
-
denVystavbaStavba: number;
|
|
4
|
-
gid: string;
|
|
5
|
-
idCZCC: number;
|
|
6
|
-
idObjekt: number;
|
|
7
|
-
kodDruhStavba: string;
|
|
8
|
-
kodOchranaStavba: string;
|
|
9
|
-
material: string;
|
|
10
|
-
mesicVystavbaStavba: number;
|
|
11
|
-
nazev: string;
|
|
12
|
-
nazevDruhStavba: string;
|
|
13
|
-
nazevOchranaStavba: string;
|
|
14
|
-
platnostDo: Date;
|
|
15
|
-
platnostOd: Date;
|
|
16
|
-
profil: string;
|
|
17
|
-
rokVystavbaStavba: number;
|
|
18
|
-
sirka: number;
|
|
19
|
-
vyska: number;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IStructureInput.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/datasources/eno/interfaces/IStructureInput.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
-
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
-
import { IGeometry } from "./interfaces/IGeometry";
|
|
4
|
-
export declare class GeometryModel extends Model<IGeometry> implements IGeometry {
|
|
5
|
-
static readonly TABLE_NAME = "eno_geometrie";
|
|
6
|
-
gid: string;
|
|
7
|
-
zdroj: string;
|
|
8
|
-
poradi: number;
|
|
9
|
-
id_organizace: number;
|
|
10
|
-
uzivatelsky_zakres: boolean;
|
|
11
|
-
zakres: string;
|
|
12
|
-
epsg_code: string | null;
|
|
13
|
-
static attributeModel: ModelAttributes<GeometryModel, IGeometry>;
|
|
14
|
-
static jsonSchema: JSONSchemaType<IGeometry[]>;
|
|
15
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GeometryModel = void 0;
|
|
4
|
-
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
-
class GeometryModel extends sequelize_1.Model {
|
|
6
|
-
}
|
|
7
|
-
exports.GeometryModel = GeometryModel;
|
|
8
|
-
GeometryModel.TABLE_NAME = "eno_geometrie";
|
|
9
|
-
GeometryModel.attributeModel = {
|
|
10
|
-
gid: {
|
|
11
|
-
primaryKey: true,
|
|
12
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
13
|
-
},
|
|
14
|
-
zdroj: {
|
|
15
|
-
primaryKey: true,
|
|
16
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
17
|
-
},
|
|
18
|
-
poradi: {
|
|
19
|
-
primaryKey: true,
|
|
20
|
-
type: sequelize_1.DataTypes.NUMBER,
|
|
21
|
-
},
|
|
22
|
-
id_organizace: sequelize_1.DataTypes.NUMBER,
|
|
23
|
-
uzivatelsky_zakres: sequelize_1.DataTypes.BOOLEAN,
|
|
24
|
-
zakres: sequelize_1.DataTypes.TEXT,
|
|
25
|
-
epsg_code: sequelize_1.DataTypes.TEXT,
|
|
26
|
-
};
|
|
27
|
-
GeometryModel.jsonSchema = {
|
|
28
|
-
type: "array",
|
|
29
|
-
items: {
|
|
30
|
-
type: "object",
|
|
31
|
-
properties: {
|
|
32
|
-
gid: { type: "string" },
|
|
33
|
-
zdroj: { type: "string" },
|
|
34
|
-
poradi: { type: "integer" },
|
|
35
|
-
id_organizace: { type: "integer" },
|
|
36
|
-
uzivatelsky_zakres: { type: "boolean" },
|
|
37
|
-
zakres: { type: "string" },
|
|
38
|
-
epsg_code: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
39
|
-
},
|
|
40
|
-
required: ["gid", "zdroj", "poradi"],
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=GeometryModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GeometryModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/models/eno/GeometryModel.ts"],"names":[],"mappings":";;;AACA,mEAAwF;AAGxF,MAAa,aAAc,SAAQ,iBAAgB;;AAAnD,sCA8CC;AA7C0B,wBAAU,GAAG,eAAe,CAAC;AAUtC,4BAAc,GAA8C;IACtE,GAAG,EAAE;QACD,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,IAAI;KACvB;IACD,KAAK,EAAE;QACH,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,IAAI;KACvB;IACD,MAAM,EAAE;QACJ,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,MAAM;KACzB;IACD,aAAa,EAAE,qBAAS,CAAC,MAAM;IAC/B,kBAAkB,EAAE,qBAAS,CAAC,OAAO;IACrC,MAAM,EAAE,qBAAS,CAAC,IAAI;IACtB,SAAS,EAAE,qBAAS,CAAC,IAAI;CAC5B,CAAC;AAEY,wBAAU,GAAgC;IACpD,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACvB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAC3B,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,kBAAkB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YACvC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC1B,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;SAC/E;QACD,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC;KACvC;CACJ,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
-
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
-
import { IStructure } from "./interfaces/IStructure";
|
|
4
|
-
export declare class StructureModel extends Model<IStructure> implements IStructure {
|
|
5
|
-
static readonly TABLE_NAME = "eno_stavba";
|
|
6
|
-
gid: string;
|
|
7
|
-
zdroj: string;
|
|
8
|
-
delka: number;
|
|
9
|
-
den_vystavba: number;
|
|
10
|
-
id_czcc: number;
|
|
11
|
-
id_objekt: number;
|
|
12
|
-
kod_druh_stavba: string;
|
|
13
|
-
kod_ochrana_stavba: string;
|
|
14
|
-
material: string;
|
|
15
|
-
mesic_vystavba: number;
|
|
16
|
-
nazev: string;
|
|
17
|
-
nazev_druh_stavba: string;
|
|
18
|
-
nazev_ochrana_stavba: string;
|
|
19
|
-
platnost_do: Date | null;
|
|
20
|
-
platnost_od: Date | null;
|
|
21
|
-
profil: string;
|
|
22
|
-
rok_vystavba: number;
|
|
23
|
-
sirka: number;
|
|
24
|
-
vyska: number;
|
|
25
|
-
static attributeModel: ModelAttributes<StructureModel, IStructure>;
|
|
26
|
-
static jsonSchema: JSONSchemaType<IStructure[]>;
|
|
27
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StructureModel = void 0;
|
|
4
|
-
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
-
class StructureModel extends sequelize_1.Model {
|
|
6
|
-
}
|
|
7
|
-
exports.StructureModel = StructureModel;
|
|
8
|
-
StructureModel.TABLE_NAME = "eno_stavba";
|
|
9
|
-
StructureModel.attributeModel = {
|
|
10
|
-
gid: {
|
|
11
|
-
primaryKey: true,
|
|
12
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
13
|
-
},
|
|
14
|
-
zdroj: {
|
|
15
|
-
primaryKey: true,
|
|
16
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
17
|
-
},
|
|
18
|
-
delka: sequelize_1.DataTypes.DECIMAL,
|
|
19
|
-
den_vystavba: sequelize_1.DataTypes.NUMBER,
|
|
20
|
-
id_czcc: sequelize_1.DataTypes.NUMBER,
|
|
21
|
-
id_objekt: sequelize_1.DataTypes.NUMBER,
|
|
22
|
-
kod_druh_stavba: sequelize_1.DataTypes.TEXT,
|
|
23
|
-
kod_ochrana_stavba: sequelize_1.DataTypes.TEXT,
|
|
24
|
-
material: sequelize_1.DataTypes.TEXT,
|
|
25
|
-
mesic_vystavba: sequelize_1.DataTypes.NUMBER,
|
|
26
|
-
nazev: sequelize_1.DataTypes.TEXT,
|
|
27
|
-
nazev_druh_stavba: sequelize_1.DataTypes.TEXT,
|
|
28
|
-
nazev_ochrana_stavba: sequelize_1.DataTypes.TEXT,
|
|
29
|
-
platnost_do: sequelize_1.DataTypes.DATE,
|
|
30
|
-
platnost_od: sequelize_1.DataTypes.DATE,
|
|
31
|
-
profil: sequelize_1.DataTypes.TEXT,
|
|
32
|
-
rok_vystavba: sequelize_1.DataTypes.NUMBER,
|
|
33
|
-
sirka: sequelize_1.DataTypes.DECIMAL,
|
|
34
|
-
vyska: sequelize_1.DataTypes.DECIMAL,
|
|
35
|
-
};
|
|
36
|
-
StructureModel.jsonSchema = {
|
|
37
|
-
type: "array",
|
|
38
|
-
items: {
|
|
39
|
-
type: "object",
|
|
40
|
-
properties: {
|
|
41
|
-
gid: { type: "string" },
|
|
42
|
-
zdroj: { type: "string" },
|
|
43
|
-
delka: { type: "number" },
|
|
44
|
-
den_vystavba: { type: "integer" },
|
|
45
|
-
id_czcc: { type: "integer" },
|
|
46
|
-
id_objekt: { type: "integer" },
|
|
47
|
-
kod_druh_stavba: { type: "string" },
|
|
48
|
-
kod_ochrana_stavba: { type: "string" },
|
|
49
|
-
material: { type: "string" },
|
|
50
|
-
mesic_vystavba: { type: "integer" },
|
|
51
|
-
nazev: { type: "string" },
|
|
52
|
-
nazev_druh_stavba: { type: "string" },
|
|
53
|
-
nazev_ochrana_stavba: { type: "string" },
|
|
54
|
-
platnost_do: {
|
|
55
|
-
oneOf: [
|
|
56
|
-
{
|
|
57
|
-
type: "object",
|
|
58
|
-
required: ["toISOString"],
|
|
59
|
-
},
|
|
60
|
-
{ type: "null", nullable: true },
|
|
61
|
-
],
|
|
62
|
-
},
|
|
63
|
-
platnost_od: {
|
|
64
|
-
oneOf: [
|
|
65
|
-
{
|
|
66
|
-
type: "object",
|
|
67
|
-
required: ["toISOString"],
|
|
68
|
-
},
|
|
69
|
-
{ type: "null", nullable: true },
|
|
70
|
-
],
|
|
71
|
-
},
|
|
72
|
-
profil: { type: "string" },
|
|
73
|
-
rok_vystavba: { type: "integer" },
|
|
74
|
-
sirka: { type: "number" },
|
|
75
|
-
vyska: { type: "number" },
|
|
76
|
-
},
|
|
77
|
-
required: ["gid", "zdroj"],
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
//# sourceMappingURL=StructureModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StructureModel.js","sourceRoot":"","sources":["../../../../src/schema-definitions/models/eno/StructureModel.ts"],"names":[],"mappings":";;;AACA,mEAAwF;AAGxF,MAAa,cAAe,SAAQ,iBAAiB;;AAArD,wCA+FC;AA9F0B,yBAAU,GAAG,YAAY,CAAC;AAsBnC,6BAAc,GAAgD;IACxE,GAAG,EAAE;QACD,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,IAAI;KACvB;IACD,KAAK,EAAE;QACH,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,IAAI;KACvB;IACD,KAAK,EAAE,qBAAS,CAAC,OAAO;IACxB,YAAY,EAAE,qBAAS,CAAC,MAAM;IAC9B,OAAO,EAAE,qBAAS,CAAC,MAAM;IACzB,SAAS,EAAE,qBAAS,CAAC,MAAM;IAC3B,eAAe,EAAE,qBAAS,CAAC,IAAI;IAC/B,kBAAkB,EAAE,qBAAS,CAAC,IAAI;IAClC,QAAQ,EAAE,qBAAS,CAAC,IAAI;IACxB,cAAc,EAAE,qBAAS,CAAC,MAAM;IAChC,KAAK,EAAE,qBAAS,CAAC,IAAI;IACrB,iBAAiB,EAAE,qBAAS,CAAC,IAAI;IACjC,oBAAoB,EAAE,qB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ACH;wBACI,IAAI,EAAE,QAAQ;wBACd,QAAQ,EAAE,CAAC,aAAa,CAAC;qBAC5B;oBACD,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACnC;aACJ;YACD,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC1B,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YACjC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC5B;QACD,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC;KAC7B;CACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IGeometry.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/models/eno/interfaces/IGeometry.ts"],"names":[],"mappings":""}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface IStructure {
|
|
2
|
-
gid: string;
|
|
3
|
-
zdroj: string;
|
|
4
|
-
delka: number;
|
|
5
|
-
den_vystavba: number;
|
|
6
|
-
id_czcc: number;
|
|
7
|
-
id_objekt: number;
|
|
8
|
-
kod_druh_stavba: string;
|
|
9
|
-
kod_ochrana_stavba: string;
|
|
10
|
-
material: string;
|
|
11
|
-
mesic_vystavba: number;
|
|
12
|
-
nazev: string;
|
|
13
|
-
nazev_druh_stavba: string;
|
|
14
|
-
nazev_ochrana_stavba: string;
|
|
15
|
-
platnost_do: Date | null;
|
|
16
|
-
platnost_od: Date | null;
|
|
17
|
-
profil: string;
|
|
18
|
-
rok_vystavba: number;
|
|
19
|
-
sirka: number;
|
|
20
|
-
vyska: number;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IStructure.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/models/eno/interfaces/IStructure.ts"],"names":[],"mappings":""}
|