@golemio/energetics 1.3.5-dev.1300843460 → 1.3.5
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/example/00_clear_test_data.sql +0 -6
- package/db/migrations/postgresql/.config.json +1 -1
- package/dist/integration-engine/repositories/oict-energetika/BuildingsRepository.d.ts +4 -0
- package/dist/integration-engine/repositories/oict-energetika/BuildingsRepository.js +19 -0
- package/dist/integration-engine/repositories/oict-energetika/BuildingsRepository.js.map +1 -0
- package/dist/integration-engine/repositories/oict-energetika/DevicesRepository.d.ts +4 -0
- package/dist/integration-engine/repositories/oict-energetika/DevicesRepository.js +19 -0
- package/dist/integration-engine/repositories/oict-energetika/DevicesRepository.js.map +1 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchBuildingsTask.d.ts +9 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchBuildingsTask.js +44 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchBuildingsTask.js.map +1 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchDataTask.js +2 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchDataTask.js.map +1 -1
- package/dist/integration-engine/tasks/oict-energetika/FetchDevicesTask.d.ts +9 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchDevicesTask.js +44 -0
- package/dist/integration-engine/tasks/oict-energetika/FetchDevicesTask.js.map +1 -0
- package/dist/integration-engine/transformations/oict-energetika/BuildingsTransformation.d.ts +7 -0
- package/dist/integration-engine/transformations/oict-energetika/BuildingsTransformation.js +166 -0
- package/dist/integration-engine/transformations/oict-energetika/BuildingsTransformation.js.map +1 -0
- package/dist/integration-engine/transformations/oict-energetika/DevicesTransformation.d.ts +7 -0
- package/dist/integration-engine/transformations/oict-energetika/DevicesTransformation.js +41 -0
- package/dist/integration-engine/transformations/oict-energetika/DevicesTransformation.js.map +1 -0
- package/dist/integration-engine/workers/oict-energetika/OictEnergetikaWorker.js +4 -0
- package/dist/integration-engine/workers/oict-energetika/OictEnergetikaWorker.js.map +1 -1
- package/docs/implementation_documentation.md +41 -41
- package/package.json +2 -4
- package/db/example/01_buildings.sql +0 -206
- package/db/example/02_organizations.sql +0 -24
- package/db/example/03_devices.sql +0 -24
- package/db/migrations/postgresql/20240514074033-buildings.js +0 -53
- package/db/migrations/postgresql/20240514111900-organizations.js +0 -53
- package/db/migrations/postgresql/sqls/20240514074033-buildings-down.sql +0 -2
- package/db/migrations/postgresql/sqls/20240514074033-buildings-up.sql +0 -138
- package/db/migrations/postgresql/sqls/20240514111900-organizations-down.sql +0 -3
- package/db/migrations/postgresql/sqls/20240514111900-organizations-up.sql +0 -37
- package/dist/output-gateway/constants/Links.d.ts +0 -3
- package/dist/output-gateway/constants/Links.js +0 -7
- package/dist/output-gateway/constants/Links.js.map +0 -1
- package/dist/output-gateway/constants/RouteVersion.d.ts +0 -3
- package/dist/output-gateway/constants/RouteVersion.js +0 -8
- package/dist/output-gateway/constants/RouteVersion.js.map +0 -1
- package/dist/output-gateway/controllers/v2/BuildingsController.d.ts +0 -11
- package/dist/output-gateway/controllers/v2/BuildingsController.js +0 -74
- package/dist/output-gateway/controllers/v2/BuildingsController.js.map +0 -1
- package/dist/output-gateway/controllers/v2/V2DevicesController.d.ts +0 -11
- package/dist/output-gateway/controllers/v2/V2DevicesController.js +0 -67
- package/dist/output-gateway/controllers/v2/V2DevicesController.js.map +0 -1
- package/dist/output-gateway/controllers/v2/V2OrganizationsController.d.ts +0 -13
- package/dist/output-gateway/controllers/v2/V2OrganizationsController.js +0 -79
- package/dist/output-gateway/controllers/v2/V2OrganizationsController.js.map +0 -1
- package/dist/output-gateway/helpers/CreateLinkHelper.d.ts +0 -6
- package/dist/output-gateway/helpers/CreateLinkHelper.js +0 -32
- package/dist/output-gateway/helpers/CreateLinkHelper.js.map +0 -1
- package/dist/output-gateway/index.d.ts +0 -1
- package/dist/output-gateway/index.js +0 -10
- package/dist/output-gateway/index.js.map +0 -1
- package/dist/output-gateway/ioc/Di.d.ts +0 -3
- package/dist/output-gateway/ioc/Di.js +0 -51
- package/dist/output-gateway/ioc/Di.js.map +0 -1
- package/dist/output-gateway/ioc/ModuleContainerToken.d.ts +0 -22
- package/dist/output-gateway/ioc/ModuleContainerToken.js +0 -26
- package/dist/output-gateway/ioc/ModuleContainerToken.js.map +0 -1
- package/dist/output-gateway/models/BuildingsPrimaryModel.d.ts +0 -17
- package/dist/output-gateway/models/BuildingsPrimaryModel.js +0 -49
- package/dist/output-gateway/models/BuildingsPrimaryModel.js.map +0 -1
- package/dist/output-gateway/models/BuildingsSecondaryModel.d.ts +0 -124
- package/dist/output-gateway/models/BuildingsSecondaryModel.js +0 -338
- package/dist/output-gateway/models/BuildingsSecondaryModel.js.map +0 -1
- package/dist/output-gateway/models/interfaces/IBuildingsTransformationOutput.d.ts +0 -6
- package/dist/output-gateway/models/interfaces/IBuildingsTransformationOutput.js +0 -2
- package/dist/output-gateway/models/interfaces/IBuildingsTransformationOutput.js.map +0 -1
- package/dist/output-gateway/models/interfaces/IFullTransformationSchemaItem.d.ts +0 -156
- package/dist/output-gateway/models/interfaces/IFullTransformationSchemaItem.js +0 -3
- package/dist/output-gateway/models/interfaces/IFullTransformationSchemaItem.js.map +0 -1
- package/dist/output-gateway/models/interfaces/IPrimaryBuildings.d.ts +0 -10
- package/dist/output-gateway/models/interfaces/IPrimaryBuildings.js +0 -3
- package/dist/output-gateway/models/interfaces/IPrimaryBuildings.js.map +0 -1
- package/dist/output-gateway/models/interfaces/ISecondaryBuildings.d.ts +0 -114
- package/dist/output-gateway/models/interfaces/ISecondaryBuildings.js +0 -3
- package/dist/output-gateway/models/interfaces/ISecondaryBuildings.js.map +0 -1
- package/dist/output-gateway/models/interfaces/ISecondaryBuildingsOutput.d.ts +0 -117
- package/dist/output-gateway/models/interfaces/ISecondaryBuildingsOutput.js +0 -3
- package/dist/output-gateway/models/interfaces/ISecondaryBuildingsOutput.js.map +0 -1
- package/dist/output-gateway/repositories/DevicesRepository.d.ts +0 -8
- package/dist/output-gateway/repositories/DevicesRepository.js +0 -64
- package/dist/output-gateway/repositories/DevicesRepository.js.map +0 -1
- package/dist/output-gateway/repositories/OrganizationBuildingsRepository.d.ts +0 -6
- package/dist/output-gateway/repositories/OrganizationBuildingsRepository.js +0 -47
- package/dist/output-gateway/repositories/OrganizationBuildingsRepository.js.map +0 -1
- package/dist/output-gateway/repositories/OrganizationResponsibleUsersRepository.d.ts +0 -6
- package/dist/output-gateway/repositories/OrganizationResponsibleUsersRepository.js +0 -47
- package/dist/output-gateway/repositories/OrganizationResponsibleUsersRepository.js.map +0 -1
- package/dist/output-gateway/repositories/OrganizationsRepository.d.ts +0 -17
- package/dist/output-gateway/repositories/OrganizationsRepository.js +0 -133
- package/dist/output-gateway/repositories/OrganizationsRepository.js.map +0 -1
- package/dist/output-gateway/repositories/PrimaryBuildingsRepository.d.ts +0 -15
- package/dist/output-gateway/repositories/PrimaryBuildingsRepository.js +0 -86
- package/dist/output-gateway/repositories/PrimaryBuildingsRepository.js.map +0 -1
- package/dist/output-gateway/repositories/SecondaryBuildingsRepository.d.ts +0 -6
- package/dist/output-gateway/repositories/SecondaryBuildingsRepository.js +0 -33
- package/dist/output-gateway/repositories/SecondaryBuildingsRepository.js.map +0 -1
- package/dist/output-gateway/repositories/helpers/OrganizationsAssociations.d.ts +0 -9
- package/dist/output-gateway/repositories/helpers/OrganizationsAssociations.js +0 -47
- package/dist/output-gateway/repositories/helpers/OrganizationsAssociations.js.map +0 -1
- package/dist/output-gateway/repositories/interfaces/IOrganizationBuildingDto.d.ts +0 -5
- package/dist/output-gateway/repositories/interfaces/IOrganizationBuildingDto.js +0 -3
- package/dist/output-gateway/repositories/interfaces/IOrganizationBuildingDto.js.map +0 -1
- package/dist/output-gateway/repositories/interfaces/IOrganizationDetailDto.d.ts +0 -18
- package/dist/output-gateway/repositories/interfaces/IOrganizationDetailDto.js +0 -3
- package/dist/output-gateway/repositories/interfaces/IOrganizationDetailDto.js.map +0 -1
- package/dist/output-gateway/repositories/interfaces/IOrganizationDto.d.ts +0 -4
- package/dist/output-gateway/repositories/interfaces/IOrganizationDto.js +0 -3
- package/dist/output-gateway/repositories/interfaces/IOrganizationDto.js.map +0 -1
- package/dist/output-gateway/repositories/interfaces/IOrganizationResponsibleUserDto.d.ts +0 -8
- package/dist/output-gateway/repositories/interfaces/IOrganizationResponsibleUserDto.js +0 -3
- package/dist/output-gateway/repositories/interfaces/IOrganizationResponsibleUserDto.js.map +0 -1
- package/dist/output-gateway/routers/helpers/parseParams.d.ts +0 -4
- package/dist/output-gateway/routers/helpers/parseParams.js +0 -17
- package/dist/output-gateway/routers/helpers/parseParams.js.map +0 -1
- package/dist/output-gateway/routers/interfaces/IDeviceResponse.d.ts +0 -6
- package/dist/output-gateway/routers/interfaces/IDeviceResponse.js +0 -3
- package/dist/output-gateway/routers/interfaces/IDeviceResponse.js.map +0 -1
- package/dist/output-gateway/routers/interfaces/IOrganizationDetailResponse.d.ts +0 -34
- package/dist/output-gateway/routers/interfaces/IOrganizationDetailResponse.js +0 -3
- package/dist/output-gateway/routers/interfaces/IOrganizationDetailResponse.js.map +0 -1
- package/dist/output-gateway/routers/interfaces/IOrganizationResponse.d.ts +0 -4
- package/dist/output-gateway/routers/interfaces/IOrganizationResponse.js +0 -3
- package/dist/output-gateway/routers/interfaces/IOrganizationResponse.js.map +0 -1
- package/dist/output-gateway/routers/interfaces/IPaginationParams.d.ts +0 -4
- package/dist/output-gateway/routers/interfaces/IPaginationParams.js +0 -3
- package/dist/output-gateway/routers/interfaces/IPaginationParams.js.map +0 -1
- package/dist/output-gateway/routers/v2/BuildingsRouter.d.ts +0 -10
- package/dist/output-gateway/routers/v2/BuildingsRouter.js +0 -26
- package/dist/output-gateway/routers/v2/BuildingsRouter.js.map +0 -1
- package/dist/output-gateway/routers/v2/V2DevicesRouter.d.ts +0 -7
- package/dist/output-gateway/routers/v2/V2DevicesRouter.js +0 -41
- package/dist/output-gateway/routers/v2/V2DevicesRouter.js.map +0 -1
- package/dist/output-gateway/routers/v2/V2OrganizationsRouter.d.ts +0 -7
- package/dist/output-gateway/routers/v2/V2OrganizationsRouter.js +0 -41
- package/dist/output-gateway/routers/v2/V2OrganizationsRouter.js.map +0 -1
- package/dist/output-gateway/transformations/BuildingTransformationFull.d.ts +0 -14
- package/dist/output-gateway/transformations/BuildingTransformationFull.js +0 -215
- package/dist/output-gateway/transformations/BuildingTransformationFull.js.map +0 -1
- package/dist/output-gateway/transformations/BuildingsTransformation.d.ts +0 -8
- package/dist/output-gateway/transformations/BuildingsTransformation.js +0 -38
- package/dist/output-gateway/transformations/BuildingsTransformation.js.map +0 -1
- package/dist/output-gateway/transformations/DeviceDtoTransformation.d.ts +0 -8
- package/dist/output-gateway/transformations/DeviceDtoTransformation.js +0 -43
- package/dist/output-gateway/transformations/DeviceDtoTransformation.js.map +0 -1
- package/dist/output-gateway/transformations/OrganizationDetailDtoTransformation.d.ts +0 -9
- package/dist/output-gateway/transformations/OrganizationDetailDtoTransformation.js +0 -64
- package/dist/output-gateway/transformations/OrganizationDetailDtoTransformation.js.map +0 -1
- package/dist/output-gateway/transformations/OrganizationDtoTransformation.d.ts +0 -9
- package/dist/output-gateway/transformations/OrganizationDtoTransformation.js +0 -36
- package/dist/output-gateway/transformations/OrganizationDtoTransformation.js.map +0 -1
- package/dist/schema-definitions/models/OrganizationBuildingModel.d.ts +0 -10
- package/dist/schema-definitions/models/OrganizationBuildingModel.js +0 -33
- package/dist/schema-definitions/models/OrganizationBuildingModel.js.map +0 -1
- package/dist/schema-definitions/models/OrganizationResponsibleUsersModel.d.ts +0 -16
- package/dist/schema-definitions/models/OrganizationResponsibleUsersModel.js +0 -44
- package/dist/schema-definitions/models/OrganizationResponsibleUsersModel.js.map +0 -1
- package/dist/schema-definitions/models/OrganizationsModel.d.ts +0 -21
- package/dist/schema-definitions/models/OrganizationsModel.js +0 -59
- package/dist/schema-definitions/models/OrganizationsModel.js.map +0 -1
- package/dist/schema-definitions/models/interfaces/IOrganizationBuildingsModel.d.ts +0 -4
- package/dist/schema-definitions/models/interfaces/IOrganizationBuildingsModel.js +0 -3
- package/dist/schema-definitions/models/interfaces/IOrganizationBuildingsModel.js.map +0 -1
- package/dist/schema-definitions/models/interfaces/IOrganizationResponsibleUsersModel.d.ts +0 -10
- package/dist/schema-definitions/models/interfaces/IOrganizationResponsibleUsersModel.js +0 -3
- package/dist/schema-definitions/models/interfaces/IOrganizationResponsibleUsersModel.js.map +0 -1
- package/dist/schema-definitions/models/interfaces/IOrganizationsModel.d.ts +0 -15
- package/dist/schema-definitions/models/interfaces/IOrganizationsModel.js +0 -3
- package/dist/schema-definitions/models/interfaces/IOrganizationsModel.js.map +0 -1
- package/docs/openapi-output.yaml +0 -834
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { Geometry } from "@golemio/core/dist/shared/geojson";
|
|
2
|
-
export interface IFullTransformationSchemaItem {
|
|
3
|
-
id: number;
|
|
4
|
-
name: string | null;
|
|
5
|
-
mainUse: string | null;
|
|
6
|
-
methodOfProtection: string | null;
|
|
7
|
-
address: {
|
|
8
|
-
city: string | null;
|
|
9
|
-
country: string | null;
|
|
10
|
-
houseNumber: string | null;
|
|
11
|
-
mail: string | null;
|
|
12
|
-
phone: string | null;
|
|
13
|
-
street: string | null;
|
|
14
|
-
webAddress: string | null;
|
|
15
|
-
} | null;
|
|
16
|
-
allotmentNumber: number | null;
|
|
17
|
-
bedsCount: number | null;
|
|
18
|
-
buildingAddressCode: string | null;
|
|
19
|
-
buildingEnvelope: {
|
|
20
|
-
fillingOfHole: {
|
|
21
|
-
area: number | null;
|
|
22
|
-
construction: string | null;
|
|
23
|
-
technicalCondition: string | null;
|
|
24
|
-
yearOfAdjustment: string | null;
|
|
25
|
-
} | null;
|
|
26
|
-
floorOfTheLowestHeatedFloor: {
|
|
27
|
-
area: number | null;
|
|
28
|
-
construction: string | null;
|
|
29
|
-
yearOfAdjustment: string | null;
|
|
30
|
-
technicalCondition: string | null;
|
|
31
|
-
thermalInsulation: string | null;
|
|
32
|
-
} | null;
|
|
33
|
-
roof: {
|
|
34
|
-
area: number | null;
|
|
35
|
-
construction: string | null;
|
|
36
|
-
technicalCondition: string | null;
|
|
37
|
-
thermalInsulation: string | null;
|
|
38
|
-
yearOfAdjustment: string | null;
|
|
39
|
-
} | null;
|
|
40
|
-
sideWall: {
|
|
41
|
-
area: number | null;
|
|
42
|
-
heatInsulation: string | null;
|
|
43
|
-
prevailingConstruction: string | null;
|
|
44
|
-
technicalCondition: string | null;
|
|
45
|
-
yearOfAdjustment: string | null;
|
|
46
|
-
} | null;
|
|
47
|
-
} | null;
|
|
48
|
-
label: string | null;
|
|
49
|
-
builtUpArea: number | null;
|
|
50
|
-
classroomsCount: number | null;
|
|
51
|
-
csuCode: string | null;
|
|
52
|
-
currentNote: string | null;
|
|
53
|
-
description: string | null;
|
|
54
|
-
employeesCount: number | null;
|
|
55
|
-
energeticManagement: string | null;
|
|
56
|
-
energyAudits: {
|
|
57
|
-
createdAt: string | null;
|
|
58
|
-
eaRegistrationNumber: number | null;
|
|
59
|
-
energyAudit: string | null;
|
|
60
|
-
} | null;
|
|
61
|
-
enoId: string | null;
|
|
62
|
-
fuelAndEnergy: {
|
|
63
|
-
coal: boolean | null;
|
|
64
|
-
czt: boolean | null;
|
|
65
|
-
electricity: boolean | null;
|
|
66
|
-
gas: boolean | null;
|
|
67
|
-
other: boolean | null;
|
|
68
|
-
oze: boolean | null;
|
|
69
|
-
} | null;
|
|
70
|
-
heatedBuldingVolume: number | null;
|
|
71
|
-
kuCode: string | null;
|
|
72
|
-
location: Geometry;
|
|
73
|
-
link: string;
|
|
74
|
-
ozeEnergyProduction: {
|
|
75
|
-
heatPump: string | null;
|
|
76
|
-
integratedTurbinesWindEnergy: string | null;
|
|
77
|
-
solarEnergyPhotothermal: string | null;
|
|
78
|
-
solarEnergyPhotovoltaic: string | null;
|
|
79
|
-
} | null;
|
|
80
|
-
penb: {
|
|
81
|
-
buildingEnvelope: number | null;
|
|
82
|
-
buildingEnvelopeCategory: string | null;
|
|
83
|
-
cooling: number | null;
|
|
84
|
-
coolingCategory: string | null;
|
|
85
|
-
heating: number | null;
|
|
86
|
-
heatingCategory: string | null;
|
|
87
|
-
humidityAdjustment: number | null;
|
|
88
|
-
humidityAdjustmentCategory: string | null;
|
|
89
|
-
issueDate: string | null;
|
|
90
|
-
lighting: number | null;
|
|
91
|
-
lightingCategory: string | null;
|
|
92
|
-
penbNumber: number | null;
|
|
93
|
-
primaryNonRenewableEnergy: number | null;
|
|
94
|
-
primaryNonRenewableEnergyCategory: string | null;
|
|
95
|
-
totalBuildingEnvelopeArea: number | null;
|
|
96
|
-
totalEnergyReferenceArea: number | null;
|
|
97
|
-
totalProvidedEnergy: number | null;
|
|
98
|
-
totalProvidedEnergyCategory: string | null;
|
|
99
|
-
ventilation: number | null;
|
|
100
|
-
ventilationCategory: string | null;
|
|
101
|
-
volumeFactorOfAVShape: string | null;
|
|
102
|
-
warmWater: number | null;
|
|
103
|
-
warmWaterCategory: string | null;
|
|
104
|
-
} | null;
|
|
105
|
-
registrationUnit: string | null;
|
|
106
|
-
secondaryUse: string | null;
|
|
107
|
-
studentsCount: number | null;
|
|
108
|
-
technicalEquipment: {
|
|
109
|
-
cooling: {
|
|
110
|
-
coolingAreaPercentage: number | null;
|
|
111
|
-
coolingSystem: string | null;
|
|
112
|
-
technicalCondition: string | null;
|
|
113
|
-
year: string | null;
|
|
114
|
-
} | null;
|
|
115
|
-
heating: {
|
|
116
|
-
heatPercentage: number | null;
|
|
117
|
-
heatingSystem: string | null;
|
|
118
|
-
mainSourceOfHeat: string | null;
|
|
119
|
-
secondarySourceOfHeat: string | null;
|
|
120
|
-
technicalCondition: string | null;
|
|
121
|
-
year: string | null;
|
|
122
|
-
} | null;
|
|
123
|
-
hotWater: {
|
|
124
|
-
hotWaterSource: string | null;
|
|
125
|
-
predominantWayOfHeatingTv: string | null;
|
|
126
|
-
technicalCondition: string | null;
|
|
127
|
-
year: string | null;
|
|
128
|
-
} | null;
|
|
129
|
-
humidityAdjustment: {
|
|
130
|
-
humidityAdjustment: string | null;
|
|
131
|
-
technicalCondition: string | null;
|
|
132
|
-
year: string | null;
|
|
133
|
-
} | null;
|
|
134
|
-
lighting: {
|
|
135
|
-
lighting: string | null;
|
|
136
|
-
measurementMethod: string | null;
|
|
137
|
-
otherTechnologicalElements: string | null;
|
|
138
|
-
technicalCondition: string | null;
|
|
139
|
-
year: string | null;
|
|
140
|
-
} | null;
|
|
141
|
-
ventilation: {
|
|
142
|
-
technicalCondition: string | null;
|
|
143
|
-
ventilation: string | null;
|
|
144
|
-
year: string | null;
|
|
145
|
-
} | null;
|
|
146
|
-
} | null;
|
|
147
|
-
wasteAndEmissions: {
|
|
148
|
-
operatingCo2Emissions: string | null;
|
|
149
|
-
solidWasteProduction: string | null;
|
|
150
|
-
soxEmissions: string | null;
|
|
151
|
-
tiedCo2Emissions: string | null;
|
|
152
|
-
} | null;
|
|
153
|
-
weekendOpeningHours: string | null;
|
|
154
|
-
openingHours: string | null;
|
|
155
|
-
yearOfConstruction: number | null;
|
|
156
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IFullTransformationSchemaItem.js","sourceRoot":"","sources":["../../../../src/output-gateway/models/interfaces/IFullTransformationSchemaItem.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface IBuildingsPrimary {
|
|
2
|
-
id: number;
|
|
3
|
-
building_name: string | null;
|
|
4
|
-
description: string | null;
|
|
5
|
-
building_address_code: string | null;
|
|
6
|
-
building_label: string | null;
|
|
7
|
-
main_use: string | null;
|
|
8
|
-
secondary_use: string | null;
|
|
9
|
-
year_of_construction: number | null;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IPrimaryBuildings.js","sourceRoot":"","sources":["../../../../src/output-gateway/models/interfaces/IPrimaryBuildings.ts"],"names":[],"mappings":""}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { Geometry } from "@golemio/core/dist/shared/geojson";
|
|
2
|
-
export interface ISecondaryBuildings {
|
|
3
|
-
id: number;
|
|
4
|
-
building_address_code: string | null;
|
|
5
|
-
building_label: string | null;
|
|
6
|
-
current_note: string | null;
|
|
7
|
-
method_of_protection: string | null;
|
|
8
|
-
built_up_area: number | null;
|
|
9
|
-
heated_bulding_volume: number | null;
|
|
10
|
-
students_count: number | null;
|
|
11
|
-
employees_count: number | null;
|
|
12
|
-
classrooms_count: number | null;
|
|
13
|
-
beds_count: number | null;
|
|
14
|
-
eno_id: string | null;
|
|
15
|
-
csu_code: string | null;
|
|
16
|
-
ku_code: string | null;
|
|
17
|
-
allotment_number: number | null;
|
|
18
|
-
registration_unit: string | null;
|
|
19
|
-
energetic_management: string | null;
|
|
20
|
-
opening_hours: string | null;
|
|
21
|
-
weekend_opening_hours: string | null;
|
|
22
|
-
location: Geometry;
|
|
23
|
-
address_street: string | null;
|
|
24
|
-
address_house_number: string | null;
|
|
25
|
-
address_city: string | null;
|
|
26
|
-
address_country: string | null;
|
|
27
|
-
address_mail: string | null;
|
|
28
|
-
address_phone: string | null;
|
|
29
|
-
address_web_address: string | null;
|
|
30
|
-
penb_penbnumber: number | null;
|
|
31
|
-
penb_issue_date: string | null;
|
|
32
|
-
penb_total_building_envelope_area: number | null;
|
|
33
|
-
penb_volume_factor_of_avshape: string | null;
|
|
34
|
-
penb_total_energy_reference_area: number | null;
|
|
35
|
-
penb_total_provided_energy: number | null;
|
|
36
|
-
penb_total_provided_energy_category: string | null;
|
|
37
|
-
penb_primary_non_renewable_energy: number | null;
|
|
38
|
-
penb_primary_non_renewable_energy_category: string | null;
|
|
39
|
-
penb_building_envelope: number | null;
|
|
40
|
-
penb_building_envelope_category: string | null;
|
|
41
|
-
penb_heating: number | null;
|
|
42
|
-
penb_heating_category: string | null;
|
|
43
|
-
penb_cooling: number | null;
|
|
44
|
-
penb_cooling_category: string | null;
|
|
45
|
-
penb_ventilation: number | null;
|
|
46
|
-
penb_ventilation_category: string | null;
|
|
47
|
-
penb_humidity_adjustment: number | null;
|
|
48
|
-
penb_humidity_adjustment_category: string | null;
|
|
49
|
-
penb_warm_water: number | null;
|
|
50
|
-
penb_warm_water_category: string | null;
|
|
51
|
-
penb_lighting: number | null;
|
|
52
|
-
penb_lighting_category: string | null;
|
|
53
|
-
energy_audits_energy_audit: string | null;
|
|
54
|
-
energy_audits_earegistration_number: number | null;
|
|
55
|
-
energy_audits_created_at: string | null;
|
|
56
|
-
building_envelope_side_wall_prevailing_construction: string | null;
|
|
57
|
-
building_envelope_side_wall_area: number | null;
|
|
58
|
-
building_envelope_side_wall_heat_insulation: string | null;
|
|
59
|
-
building_envelope_side_wall_year_of_adjustment: string | null;
|
|
60
|
-
building_envelope_side_wall_technical_condition: string | null;
|
|
61
|
-
building_envelope_filling_of_hole_construction: string | null;
|
|
62
|
-
building_envelope_filling_of_hole_area: number | null;
|
|
63
|
-
building_envelope_filling_of_hole_year_of_adjustment: string | null;
|
|
64
|
-
building_envelope_filling_of_hole_technical_condition: string | null;
|
|
65
|
-
building_envelope_roof_construction: string | null;
|
|
66
|
-
building_envelope_roof_area: number | null;
|
|
67
|
-
building_envelope_roof_thermal_insulation: string | null;
|
|
68
|
-
building_envelope_roof_year_of_adjustment: string | null;
|
|
69
|
-
building_envelope_roof_technical_condition: string | null;
|
|
70
|
-
building_envelope_floor_of_the_lowest_heated_floor_construction: string | null;
|
|
71
|
-
building_envelope_floor_of_the_lowest_heated_floor_area: number | null;
|
|
72
|
-
floor_of_the_lowest_heated_floor_thermal_insulation: string | null;
|
|
73
|
-
building_envelope_floor_of_the_lowest_heated_floor_year_of_adju: string | null;
|
|
74
|
-
floor_of_the_lowest_heated_floor_technical_condition: string | null;
|
|
75
|
-
fuel_and_energy_coal: boolean | null;
|
|
76
|
-
fuel_and_energy_gas: boolean | null;
|
|
77
|
-
fuel_and_energy_electricity: boolean | null;
|
|
78
|
-
fuel_and_energy_czt: boolean | null;
|
|
79
|
-
fuel_and_energy_oze: boolean | null;
|
|
80
|
-
fuel_and_energy_other: boolean | null;
|
|
81
|
-
technical_equipment_heating_main_source_of_heat: string | null;
|
|
82
|
-
technical_equipment_heating_heat_percentage: number | null;
|
|
83
|
-
technical_equipment_heating_secondary_source_of_heat: string | null;
|
|
84
|
-
technical_equipment_heating_heating_system: string | null;
|
|
85
|
-
technical_equipment_heating_year: string | null;
|
|
86
|
-
technical_equipment_heating_technical_condition: string | null;
|
|
87
|
-
technical_equipment_cooling_cooling_system: string | null;
|
|
88
|
-
technical_equipment_cooling_cooling_area_percentage: number | null;
|
|
89
|
-
technical_equipment_cooling_year: string | null;
|
|
90
|
-
technical_equipment_cooling_technical_condition: string | null;
|
|
91
|
-
technical_equipment_ventilation_ventilation: string | null;
|
|
92
|
-
technical_equipment_ventilation_year: string | null;
|
|
93
|
-
technical_equipment_ventilation_technical_condition: string | null;
|
|
94
|
-
technical_equipment_humidity_adjustment_humidity_adjustment: string | null;
|
|
95
|
-
technical_equipment_humidity_adjustment_year: string | null;
|
|
96
|
-
technical_equipment_humidity_adjustment_technical_condition: string | null;
|
|
97
|
-
technical_equipment_hot_water_predominant_way_of_heating_tv: string | null;
|
|
98
|
-
technical_equipment_hot_water_hot_water_source: string | null;
|
|
99
|
-
technical_equipment_hot_water_year: string | null;
|
|
100
|
-
technical_equipment_hot_water_technical_condition: string | null;
|
|
101
|
-
technical_equipment_lighting_lighting: string | null;
|
|
102
|
-
technical_equipment_lighting_year: string | null;
|
|
103
|
-
technical_equipment_lighting_technical_condition: string | null;
|
|
104
|
-
technical_equipment_lighting_other_technological_elements: string | null;
|
|
105
|
-
technical_equipment_lighting_measurement_method: string | null;
|
|
106
|
-
oze_energy_production_solar_energy_photovoltaic: string | null;
|
|
107
|
-
oze_energy_production_solar_energy_photothermal: string | null;
|
|
108
|
-
oze_energy_production_integrated_turbines_wind_energy: string | null;
|
|
109
|
-
oze_energy_production_heat_pump: string | null;
|
|
110
|
-
waste_and_emissions_solid_waste_production: string | null;
|
|
111
|
-
waste_and_emissions_tied_co2_emissions: string | null;
|
|
112
|
-
waste_and_emissions_sox_emissions: string | null;
|
|
113
|
-
waste_and_emissions_operating_co_2emissions: string | null;
|
|
114
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ISecondaryBuildings.js","sourceRoot":"","sources":["../../../../src/output-gateway/models/interfaces/ISecondaryBuildings.ts"],"names":[],"mappings":""}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { Geometry } from "@golemio/core/dist/shared/geojson";
|
|
2
|
-
export interface ISecondaryBuildingsOutput {
|
|
3
|
-
address_house_number: string | null;
|
|
4
|
-
allotment_number: number | null;
|
|
5
|
-
penb_penbnumber: number | null;
|
|
6
|
-
id: number;
|
|
7
|
-
building_address_code: string | null;
|
|
8
|
-
building_label: string | null;
|
|
9
|
-
current_note: string | null;
|
|
10
|
-
method_of_protection: string | null;
|
|
11
|
-
built_up_area: string | null;
|
|
12
|
-
heated_bulding_volume: string | null;
|
|
13
|
-
students_count: string | null;
|
|
14
|
-
employees_count: string | null;
|
|
15
|
-
classrooms_count: string | null;
|
|
16
|
-
beds_count: string | null;
|
|
17
|
-
eno_id: string | null;
|
|
18
|
-
csu_code: string | null;
|
|
19
|
-
ku_code: string | null;
|
|
20
|
-
allotment_string: string | null;
|
|
21
|
-
registration_unit: string | null;
|
|
22
|
-
energetic_management: string | null;
|
|
23
|
-
opening_hours: string | null;
|
|
24
|
-
weekend_opening_hours: string | null;
|
|
25
|
-
location: Geometry;
|
|
26
|
-
address_street: string | null;
|
|
27
|
-
address_house_string: string | null;
|
|
28
|
-
address_city: string | null;
|
|
29
|
-
address_country: string | null;
|
|
30
|
-
address_mail: string | null;
|
|
31
|
-
address_phone: string | null;
|
|
32
|
-
address_web_address: string | null;
|
|
33
|
-
penb_penbstring: string | null;
|
|
34
|
-
penb_issue_date: string | null;
|
|
35
|
-
penb_total_building_envelope_area: string | null;
|
|
36
|
-
penb_volume_factor_of_avshape: string | null;
|
|
37
|
-
penb_total_energy_reference_area: string | null;
|
|
38
|
-
penb_total_provided_energy: string | null;
|
|
39
|
-
penb_total_provided_energy_category: string | null;
|
|
40
|
-
penb_primary_non_renewable_energy: string | null;
|
|
41
|
-
penb_primary_non_renewable_energy_category: string | null;
|
|
42
|
-
penb_building_envelope: string | null;
|
|
43
|
-
penb_building_envelope_category: string | null;
|
|
44
|
-
penb_heating: string | null;
|
|
45
|
-
penb_heating_category: string | null;
|
|
46
|
-
penb_cooling: string | null;
|
|
47
|
-
penb_cooling_category: string | null;
|
|
48
|
-
penb_ventilation: string | null;
|
|
49
|
-
penb_ventilation_category: string | null;
|
|
50
|
-
penb_humidity_adjustment: string | null;
|
|
51
|
-
penb_humidity_adjustment_category: string | null;
|
|
52
|
-
penb_warm_water: string | null;
|
|
53
|
-
penb_warm_water_category: string | null;
|
|
54
|
-
penb_lighting: string | null;
|
|
55
|
-
penb_lighting_category: string | null;
|
|
56
|
-
energy_audits_energy_audit: string | null;
|
|
57
|
-
energy_audits_earegistration_string: string | null;
|
|
58
|
-
energy_audits_created_at: string | null;
|
|
59
|
-
building_envelope_side_wall_prevailing_construction: string | null;
|
|
60
|
-
building_envelope_side_wall_area: string | null;
|
|
61
|
-
building_envelope_side_wall_heat_insulation: string | null;
|
|
62
|
-
building_envelope_side_wall_year_of_adjustment: string | null;
|
|
63
|
-
building_envelope_side_wall_technical_condition: string | null;
|
|
64
|
-
building_envelope_filling_of_hole_construction: string | null;
|
|
65
|
-
building_envelope_filling_of_hole_area: string | null;
|
|
66
|
-
building_envelope_filling_of_hole_year_of_adjustment: string | null;
|
|
67
|
-
building_envelope_filling_of_hole_technical_condition: string | null;
|
|
68
|
-
building_envelope_roof_construction: string | null;
|
|
69
|
-
building_envelope_roof_area: string | null;
|
|
70
|
-
building_envelope_roof_thermal_insulation: string | null;
|
|
71
|
-
building_envelope_roof_year_of_adjustment: string | null;
|
|
72
|
-
building_envelope_roof_technical_condition: string | null;
|
|
73
|
-
building_envelope_floor_of_the_lowest_heated_floor_construction: string | null;
|
|
74
|
-
building_envelope_floor_of_the_lowest_heated_floor_area: string | null;
|
|
75
|
-
floor_of_the_lowest_heated_floor_thermal_insulation: string | null;
|
|
76
|
-
building_envelope_floor_of_the_lowest_heated_floor_year_of_adju: string | null;
|
|
77
|
-
floor_of_the_lowest_heated_floor_technical_condition: string | null;
|
|
78
|
-
fuel_and_energy_coal: boolean | null;
|
|
79
|
-
fuel_and_energy_gas: boolean | null;
|
|
80
|
-
fuel_and_energy_electricity: boolean | null;
|
|
81
|
-
fuel_and_energy_czt: boolean | null;
|
|
82
|
-
fuel_and_energy_oze: boolean | null;
|
|
83
|
-
fuel_and_energy_other: boolean | null;
|
|
84
|
-
technical_equipment_heating_main_source_of_heat: string | null;
|
|
85
|
-
technical_equipment_heating_heat_percentage: string | null;
|
|
86
|
-
technical_equipment_heating_secondary_source_of_heat: string | null;
|
|
87
|
-
technical_equipment_heating_heating_system: string | null;
|
|
88
|
-
technical_equipment_heating_year: string | null;
|
|
89
|
-
technical_equipment_heating_technical_condition: string | null;
|
|
90
|
-
technical_equipment_cooling_cooling_system: string | null;
|
|
91
|
-
technical_equipment_cooling_cooling_area_percentage: string | null;
|
|
92
|
-
technical_equipment_cooling_year: string | null;
|
|
93
|
-
technical_equipment_cooling_technical_condition: string | null;
|
|
94
|
-
technical_equipment_ventilation_ventilation: string | null;
|
|
95
|
-
technical_equipment_ventilation_year: string | null;
|
|
96
|
-
technical_equipment_ventilation_technical_condition: string | null;
|
|
97
|
-
technical_equipment_humidity_adjustment_humidity_adjustment: string | null;
|
|
98
|
-
technical_equipment_humidity_adjustment_year: string | null;
|
|
99
|
-
technical_equipment_humidity_adjustment_technical_condition: string | null;
|
|
100
|
-
technical_equipment_hot_water_predominant_way_of_heating_tv: string | null;
|
|
101
|
-
technical_equipment_hot_water_hot_water_source: string | null;
|
|
102
|
-
technical_equipment_hot_water_year: string | null;
|
|
103
|
-
technical_equipment_hot_water_technical_condition: string | null;
|
|
104
|
-
technical_equipment_lighting_lighting: string | null;
|
|
105
|
-
technical_equipment_lighting_year: string | null;
|
|
106
|
-
technical_equipment_lighting_technical_condition: string | null;
|
|
107
|
-
technical_equipment_lighting_other_technological_elements: string | null;
|
|
108
|
-
technical_equipment_lighting_measurement_method: string | null;
|
|
109
|
-
oze_energy_production_solar_energy_photovoltaic: string | null;
|
|
110
|
-
oze_energy_production_solar_energy_photothermal: string | null;
|
|
111
|
-
oze_energy_production_integrated_turbines_wind_energy: string | null;
|
|
112
|
-
oze_energy_production_heat_pump: string | null;
|
|
113
|
-
waste_and_emissions_solid_waste_production: string | null;
|
|
114
|
-
waste_and_emissions_tied_co2_emissions: string | null;
|
|
115
|
-
waste_and_emissions_sox_emissions: string | null;
|
|
116
|
-
waste_and_emissions_operating_co_2emissions: string | null;
|
|
117
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ISecondaryBuildingsOutput.js","sourceRoot":"","sources":["../../../../src/output-gateway/models/interfaces/ISecondaryBuildingsOutput.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SequelizeModel } from "@golemio/core/dist/output-gateway";
|
|
2
|
-
import { IPaginationParams } from "../routers/interfaces/IPaginationParams";
|
|
3
|
-
import { IDevicesModel } from "../../schema-definitions/models/interfaces";
|
|
4
|
-
export declare class DevicesRepository extends SequelizeModel {
|
|
5
|
-
constructor();
|
|
6
|
-
GetAll(params: IPaginationParams): Promise<IDevicesModel[]>;
|
|
7
|
-
GetOne(id: string): Promise<IDevicesModel | null>;
|
|
8
|
-
}
|
|
@@ -1,64 +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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.DevicesRepository = void 0;
|
|
22
|
-
const _sch_1 = require("../../schema-definitions");
|
|
23
|
-
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
24
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
25
|
-
const models_1 = require("../../schema-definitions/models");
|
|
26
|
-
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
27
|
-
let DevicesRepository = exports.DevicesRepository = class DevicesRepository extends output_gateway_1.SequelizeModel {
|
|
28
|
-
constructor() {
|
|
29
|
-
super("DevicesRepository", models_1.DevicesModel.TABLE_NAME, models_1.DevicesModel.attributeModel, {
|
|
30
|
-
schema: _sch_1.EnergeticsSchema.pgSchema,
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
GetAll(params) {
|
|
34
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
try {
|
|
36
|
-
return yield this.sequelizeModel.findAll({
|
|
37
|
-
order: [["id", "ASC"]],
|
|
38
|
-
limit: params.limit,
|
|
39
|
-
offset: params.offset,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
catch (err) {
|
|
43
|
-
throw new golemio_errors_1.GeneralError("Database error - GetAll", this.name, err, 500);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
GetOne(id) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
try {
|
|
50
|
-
return yield this.sequelizeModel.findOne({
|
|
51
|
-
where: { id },
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
catch (err) {
|
|
55
|
-
throw new golemio_errors_1.GeneralError("Database error - GetOne", this.name, err, 500);
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
exports.DevicesRepository = DevicesRepository = __decorate([
|
|
61
|
-
(0, tsyringe_1.injectable)(),
|
|
62
|
-
__metadata("design:paramtypes", [])
|
|
63
|
-
], DevicesRepository);
|
|
64
|
-
//# sourceMappingURL=DevicesRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DevicesRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/DevicesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,mDAAwC;AACxC,sEAAmE;AACnE,iEAAgE;AAChE,4DAA2C;AAE3C,6EAAwE;AAIjE,IAAM,iBAAiB,+BAAvB,MAAM,iBAAkB,SAAQ,+BAAc;IACjD;QACI,KAAK,CAAC,mBAAmB,EAAE,qBAAY,CAAC,UAAU,EAAE,qBAAY,CAAC,cAAc,EAAE;YAC7E,MAAM,EAAE,uBAAgB,CAAC,QAAQ;SACpC,CAAC,CAAC;IACP,CAAC;IAEY,MAAM,CAAC,MAAyB;;YACzC,IAAI;gBACA,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;oBACrC,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;oBACtB,KAAK,EAAE,MAAM,CAAC,KAAK;oBACnB,MAAM,EAAE,MAAM,CAAC,MAAM;iBACxB,CAAC,CAAC;aACN;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,yBAAyB,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aAC1E;QACL,CAAC;KAAA;IAEY,MAAM,CAAC,EAAU;;YAC1B,IAAI;gBACA,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;oBACrC,KAAK,EAAE,EAAE,EAAE,EAAE;iBAChB,CAAC,CAAC;aACN;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,6BAAY,CAAC,yBAAyB,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aAC1E;QACL,CAAC;KAAA;CACJ,CAAA;4BA5BY,iBAAiB;IAD7B,IAAA,qBAAU,GAAE;;GACA,iBAAiB,CA4B7B"}
|
|
@@ -1,47 +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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.OrganizationBuildingsRepository = void 0;
|
|
22
|
-
const _sch_1 = require("../../schema-definitions");
|
|
23
|
-
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
24
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
25
|
-
const OrganizationBuildingModel_1 = require("../../schema-definitions/models/OrganizationBuildingModel");
|
|
26
|
-
let OrganizationBuildingsRepository = exports.OrganizationBuildingsRepository = class OrganizationBuildingsRepository extends output_gateway_1.SequelizeModel {
|
|
27
|
-
constructor() {
|
|
28
|
-
super("OrganizationBuildingsRepository", OrganizationBuildingModel_1.OrganizationBuildingModel.TABLE_NAME, OrganizationBuildingModel_1.OrganizationBuildingModel.attributeModel, {
|
|
29
|
-
schema: _sch_1.EnergeticsSchema.pgSchema,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
GetAll() {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
throw new Error("OrganizationBuildingsRepository - GetAll not implemented");
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
GetOne() {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
throw new Error("OrganizationBuildingsRepository - GetOne not implemented");
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
exports.OrganizationBuildingsRepository = OrganizationBuildingsRepository = __decorate([
|
|
44
|
-
(0, tsyringe_1.injectable)(),
|
|
45
|
-
__metadata("design:paramtypes", [])
|
|
46
|
-
], OrganizationBuildingsRepository);
|
|
47
|
-
//# sourceMappingURL=OrganizationBuildingsRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationBuildingsRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/OrganizationBuildingsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,mDAAwC;AACxC,sEAAmE;AACnE,iEAAgE;AAChE,yGAAkF;AAG3E,IAAM,+BAA+B,6CAArC,MAAM,+BAAgC,SAAQ,+BAAc;IAC/D;QACI,KAAK,CAAC,iCAAiC,EAAE,qDAAyB,CAAC,UAAU,EAAE,qDAAyB,CAAC,cAAc,EAAE;YACrH,MAAM,EAAE,uBAAgB,CAAC,QAAQ;SACpC,CAAC,CAAC;IACP,CAAC;IAEY,MAAM;;YACf,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;QAChF,CAAC;KAAA;IAEY,MAAM;;YACf,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;QAChF,CAAC;KAAA;CACJ,CAAA;0CAdY,+BAA+B;IAD3C,IAAA,qBAAU,GAAE;;GACA,+BAA+B,CAc3C"}
|
|
@@ -1,47 +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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.OrganizationResponsibleUsersRepository = void 0;
|
|
22
|
-
const _sch_1 = require("../../schema-definitions");
|
|
23
|
-
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
24
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
25
|
-
const OrganizationResponsibleUsersModel_1 = require("../../schema-definitions/models/OrganizationResponsibleUsersModel");
|
|
26
|
-
let OrganizationResponsibleUsersRepository = exports.OrganizationResponsibleUsersRepository = class OrganizationResponsibleUsersRepository extends output_gateway_1.SequelizeModel {
|
|
27
|
-
constructor() {
|
|
28
|
-
super("OrganizationResponsibleUsersRepository", OrganizationResponsibleUsersModel_1.OrganizationResponsibleUsersModel.TABLE_NAME, OrganizationResponsibleUsersModel_1.OrganizationResponsibleUsersModel.attributeModel, {
|
|
29
|
-
schema: _sch_1.EnergeticsSchema.pgSchema,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
GetAll() {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
throw new Error("OrganizationResponsibleUsersRepository - GetAll not implemented");
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
GetOne() {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
throw new Error("OrganizationResponsibleUsersRepository - GetOne not implemented");
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
exports.OrganizationResponsibleUsersRepository = OrganizationResponsibleUsersRepository = __decorate([
|
|
44
|
-
(0, tsyringe_1.injectable)(),
|
|
45
|
-
__metadata("design:paramtypes", [])
|
|
46
|
-
], OrganizationResponsibleUsersRepository);
|
|
47
|
-
//# sourceMappingURL=OrganizationResponsibleUsersRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationResponsibleUsersRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/OrganizationResponsibleUsersRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,mDAAwC;AACxC,sEAAmE;AACnE,iEAAgE;AAChE,yHAAkG;AAG3F,IAAM,sCAAsC,oDAA5C,MAAM,sCAAuC,SAAQ,+BAAc;IACtE;QACI,KAAK,CACD,wCAAwC,EACxC,qEAAiC,CAAC,UAAU,EAC5C,qEAAiC,CAAC,cAAc,EAChD;YACI,MAAM,EAAE,uBAAgB,CAAC,QAAQ;SACpC,CACJ,CAAC;IACN,CAAC;IAEY,MAAM;;YACf,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;QACvF,CAAC;KAAA;IAEY,MAAM;;YACf,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;QACvF,CAAC;KAAA;CACJ,CAAA;iDAnBY,sCAAsC;IADlD,IAAA,qBAAU,GAAE;;GACA,sCAAsC,CAmBlD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SequelizeModel } from "@golemio/core/dist/output-gateway";
|
|
2
|
-
import { IPaginationParams } from "../routers/interfaces/IPaginationParams";
|
|
3
|
-
import { OrganizationResponsibleUsersRepository } from "./OrganizationResponsibleUsersRepository";
|
|
4
|
-
import { IOrganizationDto } from "./interfaces/IOrganizationDto";
|
|
5
|
-
import { IOrganizationDetailDto } from "./interfaces/IOrganizationDetailDto";
|
|
6
|
-
import { PrimaryBuildingsRepository } from "./PrimaryBuildingsRepository";
|
|
7
|
-
import { OrganizationBuildingsRepository } from "./OrganizationBuildingsRepository";
|
|
8
|
-
export declare class OrganizationsRepository extends SequelizeModel {
|
|
9
|
-
private userRepository;
|
|
10
|
-
private organizationBuildingsRepository;
|
|
11
|
-
private buildingsRepository;
|
|
12
|
-
constructor(userRepository: OrganizationResponsibleUsersRepository, organizationBuildingsRepository: OrganizationBuildingsRepository, buildingsRepository: PrimaryBuildingsRepository);
|
|
13
|
-
associate(): void;
|
|
14
|
-
GetAllPublic(params: IPaginationParams): Promise<IOrganizationDto[]>;
|
|
15
|
-
GetAll(params: IPaginationParams): Promise<IOrganizationDetailDto[]>;
|
|
16
|
-
GetOne(id: string): Promise<IOrganizationDetailDto | null>;
|
|
17
|
-
}
|