@golemio/energetics 1.12.2-dev.2727447026 → 1.12.2-dev.2740928370
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 -13
- package/db/migrations/postgresql/{20260730120000-enapo-om-detail-porsenna.js → 20260805090000-ppas-distribution-installation.js} +2 -8
- package/db/migrations/postgresql/sqls/20260805090000-ppas-distribution-installation-down.sql +86 -0
- package/db/migrations/postgresql/sqls/20260805090000-ppas-distribution-installation-up.sql +124 -0
- package/dist/integration-engine/enapo/datasources/ppas/distribution/PpasDistributionDatasource.js +2 -5
- package/dist/integration-engine/enapo/datasources/ppas/distribution/PpasDistributionDatasource.js.map +1 -1
- package/dist/integration-engine/enapo/ioc/Di.js +2 -0
- package/dist/integration-engine/enapo/ioc/Di.js.map +1 -1
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.d.ts +1 -0
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.js +1 -0
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.js.map +1 -1
- package/dist/integration-engine/enapo/repositories/ppas/PpasDistributionInvoiceInstallationRepository.d.ts +7 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasDistributionInvoiceInstallationRepository.js +36 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasDistributionInvoiceInstallationRepository.js.map +1 -0
- package/dist/integration-engine/enapo/transformations/ppas/PpasDistributionTransformation.d.ts +7 -0
- package/dist/integration-engine/enapo/transformations/ppas/PpasDistributionTransformation.js +133 -122
- package/dist/integration-engine/enapo/transformations/ppas/PpasDistributionTransformation.js.map +1 -1
- package/dist/integration-engine/enapo/workers/task/EnapoPpasDistributionTask.d.ts +3 -1
- package/dist/integration-engine/enapo/workers/task/EnapoPpasDistributionTask.js +10 -5
- package/dist/integration-engine/enapo/workers/task/EnapoPpasDistributionTask.js.map +1 -1
- package/dist/output-gateway/constants/Links.d.ts +0 -1
- package/dist/output-gateway/constants/Links.js +1 -2
- package/dist/output-gateway/constants/Links.js.map +1 -1
- package/dist/output-gateway/index.js +1 -8
- package/dist/output-gateway/index.js.map +1 -1
- package/dist/output-gateway/ioc/Di.js +1 -9
- package/dist/output-gateway/ioc/Di.js.map +1 -1
- package/dist/output-gateway/ioc/ModuleContainerToken.d.ts +0 -4
- package/dist/output-gateway/ioc/ModuleContainerToken.js +0 -4
- package/dist/output-gateway/ioc/ModuleContainerToken.js.map +1 -1
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/IPpasDistributionInvoiceDetailInput.d.ts +10 -10
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/IPpasDistributionInvoiceListInput.d.ts +1 -1
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/PpasDistributionSchema.d.ts +1 -3
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/PpasDistributionSchema.js +57 -72
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/PpasDistributionSchema.js.map +1 -1
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceDeviceModel.d.ts +9 -8
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceDeviceModel.js +10 -8
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceDeviceModel.js.map +1 -1
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceInstallationModel.d.ts +26 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceInstallationModel.js +56 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceInstallationModel.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceModel.d.ts +1 -17
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceModel.js +1 -33
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceModel.js.map +1 -1
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoicePriceModel.d.ts +2 -1
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoicePriceModel.js +5 -3
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoicePriceModel.js.map +1 -1
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoice.d.ts +1 -17
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoiceDevice.d.ts +9 -7
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoiceInstallation.d.ts +20 -0
- package/dist/{output-gateway/models/interfaces/IEnoBuildingDetailView.js → schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoiceInstallation.js} +1 -1
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoiceInstallation.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoicePrice.d.ts +3 -1
- package/dist/schema-definitions/models/eno/AddressModel.d.ts +1 -1
- package/dist/schema-definitions/models/eno/AddressModel.js +1 -1
- package/dist/schema-definitions/models/eno/AddressModel.js.map +1 -1
- package/dist/schema-definitions/models/eno/interfaces/IAddress.d.ts +1 -1
- package/docs/implementation_documentation.md +4 -41
- package/docs/openapi-output.yaml +1 -260
- package/package.json +1 -1
- package/db/example/06_eno.sql +0 -25
- package/db/example/07_enapo_om_detail.sql +0 -131
- package/db/migrations/postgresql/20260729100000-enapo-gid-mapping-om-detail.js +0 -53
- package/db/migrations/postgresql/sqls/20260729100000-enapo-gid-mapping-om-detail-down.sql +0 -3
- package/db/migrations/postgresql/sqls/20260729100000-enapo-gid-mapping-om-detail-up.sql +0 -179
- package/db/migrations/postgresql/sqls/20260730120000-enapo-om-detail-porsenna-down.sql +0 -132
- package/db/migrations/postgresql/sqls/20260730120000-enapo-om-detail-porsenna-up.sql +0 -287
- package/db/scripts/ded_gid_mapping_mock_import.sql +0 -48
- package/dist/output-gateway/controllers/v2/EnoBuildingsController.d.ts +0 -11
- package/dist/output-gateway/controllers/v2/EnoBuildingsController.js +0 -53
- package/dist/output-gateway/controllers/v2/EnoBuildingsController.js.map +0 -1
- package/dist/output-gateway/helpers/objectMappers.d.ts +0 -10
- package/dist/output-gateway/helpers/objectMappers.js +0 -37
- package/dist/output-gateway/helpers/objectMappers.js.map +0 -1
- package/dist/output-gateway/models/EnoBuildingDetailViewModel.d.ts +0 -35
- package/dist/output-gateway/models/EnoBuildingDetailViewModel.js +0 -43
- package/dist/output-gateway/models/EnoBuildingDetailViewModel.js.map +0 -1
- package/dist/output-gateway/models/EnoConsumptionPointViewModel.d.ts +0 -105
- package/dist/output-gateway/models/EnoConsumptionPointViewModel.js +0 -118
- package/dist/output-gateway/models/EnoConsumptionPointViewModel.js.map +0 -1
- package/dist/output-gateway/models/EnoPorsennaDeviceViewModel.d.ts +0 -27
- package/dist/output-gateway/models/EnoPorsennaDeviceViewModel.js +0 -41
- package/dist/output-gateway/models/EnoPorsennaDeviceViewModel.js.map +0 -1
- package/dist/output-gateway/models/interfaces/IEnoBuildingDetailView.d.ts +0 -30
- package/dist/output-gateway/models/interfaces/IEnoBuildingDetailView.js.map +0 -1
- package/dist/output-gateway/models/interfaces/IEnoConsumptionPointView.d.ts +0 -104
- package/dist/output-gateway/models/interfaces/IEnoConsumptionPointView.js +0 -3
- package/dist/output-gateway/models/interfaces/IEnoConsumptionPointView.js.map +0 -1
- package/dist/output-gateway/models/interfaces/IEnoPorsennaDeviceView.d.ts +0 -22
- package/dist/output-gateway/models/interfaces/IEnoPorsennaDeviceView.js +0 -3
- package/dist/output-gateway/models/interfaces/IEnoPorsennaDeviceView.js.map +0 -1
- package/dist/output-gateway/repositories/AbstractNumericParsingRepository.d.ts +0 -12
- package/dist/output-gateway/repositories/AbstractNumericParsingRepository.js +0 -41
- package/dist/output-gateway/repositories/AbstractNumericParsingRepository.js.map +0 -1
- package/dist/output-gateway/repositories/EnoBuildingAddressesRepository.d.ts +0 -8
- package/dist/output-gateway/repositories/EnoBuildingAddressesRepository.js +0 -62
- package/dist/output-gateway/repositories/EnoBuildingAddressesRepository.js.map +0 -1
- package/dist/output-gateway/repositories/EnoBuildingDetailRepository.d.ts +0 -18
- package/dist/output-gateway/repositories/EnoBuildingDetailRepository.js +0 -100
- package/dist/output-gateway/repositories/EnoBuildingDetailRepository.js.map +0 -1
- package/dist/output-gateway/repositories/EnoConsumptionPointsRepository.d.ts +0 -8
- package/dist/output-gateway/repositories/EnoConsumptionPointsRepository.js +0 -51
- package/dist/output-gateway/repositories/EnoConsumptionPointsRepository.js.map +0 -1
- package/dist/output-gateway/repositories/EnoPorsennaDevicesRepository.d.ts +0 -8
- package/dist/output-gateway/repositories/EnoPorsennaDevicesRepository.js +0 -51
- package/dist/output-gateway/repositories/EnoPorsennaDevicesRepository.js.map +0 -1
- package/dist/output-gateway/repositories/PorsennaConsumptionsRepository.d.ts +0 -8
- package/dist/output-gateway/repositories/PorsennaConsumptionsRepository.js +0 -52
- package/dist/output-gateway/repositories/PorsennaConsumptionsRepository.js.map +0 -1
- package/dist/output-gateway/repositories/PpasInvoiceChildRepository.d.ts +0 -13
- package/dist/output-gateway/repositories/PpasInvoiceChildRepository.js +0 -39
- package/dist/output-gateway/repositories/PpasInvoiceChildRepository.js.map +0 -1
- package/dist/output-gateway/repositories/interfaces/IEnoBuildingDetailAggregate.d.ts +0 -22
- package/dist/output-gateway/repositories/interfaces/IEnoBuildingDetailAggregate.js +0 -3
- package/dist/output-gateway/repositories/interfaces/IEnoBuildingDetailAggregate.js.map +0 -1
- package/dist/output-gateway/routers/interfaces/IEnoBuildingDetailResponse.d.ts +0 -106
- package/dist/output-gateway/routers/interfaces/IEnoBuildingDetailResponse.js +0 -3
- package/dist/output-gateway/routers/interfaces/IEnoBuildingDetailResponse.js.map +0 -1
- package/dist/output-gateway/routers/v2/V2EnoBuildingsRouter.d.ts +0 -9
- package/dist/output-gateway/routers/v2/V2EnoBuildingsRouter.js +0 -40
- package/dist/output-gateway/routers/v2/V2EnoBuildingsRouter.js.map +0 -1
- package/dist/output-gateway/transformations/EnoBuildingDetailTransformation.d.ts +0 -14
- package/dist/output-gateway/transformations/EnoBuildingDetailTransformation.js +0 -149
- package/dist/output-gateway/transformations/EnoBuildingDetailTransformation.js.map +0 -1
- package/dist/schema-definitions/models/enapo/EnapoGidMappingModel.d.ts +0 -17
- package/dist/schema-definitions/models/enapo/EnapoGidMappingModel.js +0 -63
- package/dist/schema-definitions/models/enapo/EnapoGidMappingModel.js.map +0 -1
- package/dist/schema-definitions/models/enapo/interfaces/IEnapoGidMapping.d.ts +0 -11
- package/dist/schema-definitions/models/enapo/interfaces/IEnapoGidMapping.js +0 -3
- package/dist/schema-definitions/models/enapo/interfaces/IEnapoGidMapping.js.map +0 -1
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnoConsumptionPointViewModel = void 0;
|
|
4
|
-
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
-
class EnoConsumptionPointViewModel extends sequelize_1.Model {
|
|
6
|
-
}
|
|
7
|
-
exports.EnoConsumptionPointViewModel = EnoConsumptionPointViewModel;
|
|
8
|
-
EnoConsumptionPointViewModel.tableName = "v_enapo_building_consumption_points";
|
|
9
|
-
EnoConsumptionPointViewModel.modelName = "EnoConsumptionPointViewModelData";
|
|
10
|
-
EnoConsumptionPointViewModel.attributeModel = {
|
|
11
|
-
gid: {
|
|
12
|
-
primaryKey: true,
|
|
13
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
14
|
-
},
|
|
15
|
-
place_id: {
|
|
16
|
-
primaryKey: true,
|
|
17
|
-
type: sequelize_1.DataTypes.STRING(50),
|
|
18
|
-
},
|
|
19
|
-
id_type: sequelize_1.DataTypes.STRING(10),
|
|
20
|
-
commodity: sequelize_1.DataTypes.STRING(20),
|
|
21
|
-
is_first_gid: sequelize_1.DataTypes.BOOLEAN,
|
|
22
|
-
link_source: {
|
|
23
|
-
primaryKey: true,
|
|
24
|
-
type: sequelize_1.DataTypes.STRING(50),
|
|
25
|
-
},
|
|
26
|
-
valid_from: sequelize_1.DataTypes.DATEONLY,
|
|
27
|
-
valid_to: sequelize_1.DataTypes.DATEONLY,
|
|
28
|
-
is_active: sequelize_1.DataTypes.BOOLEAN,
|
|
29
|
-
md_year: sequelize_1.DataTypes.INTEGER,
|
|
30
|
-
md_month: sequelize_1.DataTypes.INTEGER,
|
|
31
|
-
md_month_name: sequelize_1.DataTypes.TEXT,
|
|
32
|
-
md_days_in_stored_month: sequelize_1.DataTypes.INTEGER,
|
|
33
|
-
md_consumption_point: sequelize_1.DataTypes.TEXT,
|
|
34
|
-
md_address: sequelize_1.DataTypes.TEXT,
|
|
35
|
-
md_location_type: sequelize_1.DataTypes.TEXT,
|
|
36
|
-
md_company_name: sequelize_1.DataTypes.TEXT,
|
|
37
|
-
md_company_id: sequelize_1.DataTypes.TEXT,
|
|
38
|
-
md_tarif_type: sequelize_1.DataTypes.TEXT,
|
|
39
|
-
md_tarif_1t2t: sequelize_1.DataTypes.TEXT,
|
|
40
|
-
md_phases: sequelize_1.DataTypes.TEXT,
|
|
41
|
-
md_circuit_breaker: sequelize_1.DataTypes.TEXT,
|
|
42
|
-
md_type_b_meter: sequelize_1.DataTypes.TEXT,
|
|
43
|
-
md_meter_replaced: sequelize_1.DataTypes.TEXT,
|
|
44
|
-
di_id: sequelize_1.DataTypes.TEXT,
|
|
45
|
-
di_preceding_id: sequelize_1.DataTypes.TEXT,
|
|
46
|
-
di_customer_id: sequelize_1.DataTypes.TEXT,
|
|
47
|
-
di_customer_company_id: sequelize_1.DataTypes.TEXT,
|
|
48
|
-
di_customer_name: sequelize_1.DataTypes.TEXT,
|
|
49
|
-
di_customer_contract_account_id: sequelize_1.DataTypes.TEXT,
|
|
50
|
-
di_customer_address_street: sequelize_1.DataTypes.TEXT,
|
|
51
|
-
di_customer_address_house_number: sequelize_1.DataTypes.TEXT,
|
|
52
|
-
di_customer_address_house_org_number: sequelize_1.DataTypes.TEXT,
|
|
53
|
-
di_customer_address_city: sequelize_1.DataTypes.TEXT,
|
|
54
|
-
di_customer_address_city_part: sequelize_1.DataTypes.TEXT,
|
|
55
|
-
di_customer_address_post_code: sequelize_1.DataTypes.TEXT,
|
|
56
|
-
di_customer_address_country: sequelize_1.DataTypes.TEXT,
|
|
57
|
-
di_customer_address_ruian_id: sequelize_1.DataTypes.BIGINT,
|
|
58
|
-
di_facts_doc_date: sequelize_1.DataTypes.DATEONLY,
|
|
59
|
-
di_facts_net_date: sequelize_1.DataTypes.DATEONLY,
|
|
60
|
-
di_facts_billing_transaction: sequelize_1.DataTypes.TEXT,
|
|
61
|
-
di_facts_to_pay_amount: sequelize_1.DataTypes.DECIMAL,
|
|
62
|
-
di_facts_currency: sequelize_1.DataTypes.TEXT,
|
|
63
|
-
di_facts_price_brutto: sequelize_1.DataTypes.DECIMAL,
|
|
64
|
-
di_is_canceled: sequelize_1.DataTypes.BOOLEAN,
|
|
65
|
-
di_canceled_reason: sequelize_1.DataTypes.TEXT,
|
|
66
|
-
di_installations_billing_class: sequelize_1.DataTypes.TEXT,
|
|
67
|
-
di_installations_measurement_type: sequelize_1.DataTypes.TEXT,
|
|
68
|
-
di_installations_contract_contract_id: sequelize_1.DataTypes.TEXT,
|
|
69
|
-
di_installations_contract_move_in_date: sequelize_1.DataTypes.DATEONLY,
|
|
70
|
-
di_installations_contract_move_out_date: sequelize_1.DataTypes.DATEONLY,
|
|
71
|
-
di_installations_tdd_class: sequelize_1.DataTypes.TEXT,
|
|
72
|
-
di_installations_address_street: sequelize_1.DataTypes.TEXT,
|
|
73
|
-
di_installations_address_house_number: sequelize_1.DataTypes.TEXT,
|
|
74
|
-
di_installations_address_house_org_number: sequelize_1.DataTypes.TEXT,
|
|
75
|
-
di_installations_address_city: sequelize_1.DataTypes.TEXT,
|
|
76
|
-
di_installations_address_city_part: sequelize_1.DataTypes.TEXT,
|
|
77
|
-
di_installations_address_post_code: sequelize_1.DataTypes.TEXT,
|
|
78
|
-
di_installations_address_country: sequelize_1.DataTypes.TEXT,
|
|
79
|
-
di_installations_address_ruian_id: sequelize_1.DataTypes.BIGINT,
|
|
80
|
-
ci_id: sequelize_1.DataTypes.TEXT,
|
|
81
|
-
ci_preceding_id: sequelize_1.DataTypes.TEXT,
|
|
82
|
-
ci_customer_id: sequelize_1.DataTypes.TEXT,
|
|
83
|
-
ci_customer_company_id: sequelize_1.DataTypes.TEXT,
|
|
84
|
-
ci_customer_name: sequelize_1.DataTypes.TEXT,
|
|
85
|
-
ci_customer_contract_account_id: sequelize_1.DataTypes.TEXT,
|
|
86
|
-
ci_customer_address_street: sequelize_1.DataTypes.TEXT,
|
|
87
|
-
ci_customer_address_house_number: sequelize_1.DataTypes.TEXT,
|
|
88
|
-
ci_customer_address_house_org_number: sequelize_1.DataTypes.TEXT,
|
|
89
|
-
ci_customer_address_city: sequelize_1.DataTypes.TEXT,
|
|
90
|
-
ci_customer_address_city_part: sequelize_1.DataTypes.TEXT,
|
|
91
|
-
ci_customer_address_post_code: sequelize_1.DataTypes.TEXT,
|
|
92
|
-
ci_customer_address_country: sequelize_1.DataTypes.TEXT,
|
|
93
|
-
ci_customer_address_ruian_id: sequelize_1.DataTypes.BIGINT,
|
|
94
|
-
ci_facts_doc_date: sequelize_1.DataTypes.DATEONLY,
|
|
95
|
-
ci_facts_net_date: sequelize_1.DataTypes.DATEONLY,
|
|
96
|
-
ci_facts_billing_transaction: sequelize_1.DataTypes.TEXT,
|
|
97
|
-
ci_facts_to_pay_amount: sequelize_1.DataTypes.DECIMAL,
|
|
98
|
-
ci_facts_currency: sequelize_1.DataTypes.TEXT,
|
|
99
|
-
ci_facts_price_brutto: sequelize_1.DataTypes.DECIMAL,
|
|
100
|
-
ci_is_canceled: sequelize_1.DataTypes.BOOLEAN,
|
|
101
|
-
ci_canceled_reason: sequelize_1.DataTypes.TEXT,
|
|
102
|
-
cii_place_id: sequelize_1.DataTypes.TEXT,
|
|
103
|
-
cii_billing_class: sequelize_1.DataTypes.TEXT,
|
|
104
|
-
cii_measurement_type: sequelize_1.DataTypes.TEXT,
|
|
105
|
-
cii_contract_contract_id: sequelize_1.DataTypes.TEXT,
|
|
106
|
-
cii_contract_move_in_date: sequelize_1.DataTypes.DATEONLY,
|
|
107
|
-
cii_contract_move_out_date: sequelize_1.DataTypes.DATEONLY,
|
|
108
|
-
cii_tdd_class: sequelize_1.DataTypes.TEXT,
|
|
109
|
-
cii_address_street: sequelize_1.DataTypes.TEXT,
|
|
110
|
-
cii_address_house_number: sequelize_1.DataTypes.TEXT,
|
|
111
|
-
cii_address_house_org_number: sequelize_1.DataTypes.TEXT,
|
|
112
|
-
cii_address_city: sequelize_1.DataTypes.TEXT,
|
|
113
|
-
cii_address_city_part: sequelize_1.DataTypes.TEXT,
|
|
114
|
-
cii_address_post_code: sequelize_1.DataTypes.TEXT,
|
|
115
|
-
cii_address_country: sequelize_1.DataTypes.TEXT,
|
|
116
|
-
cii_address_ruian_id: sequelize_1.DataTypes.BIGINT,
|
|
117
|
-
};
|
|
118
|
-
//# sourceMappingURL=EnoConsumptionPointViewModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnoConsumptionPointViewModel.js","sourceRoot":"","sources":["../../../src/output-gateway/models/EnoConsumptionPointViewModel.ts"],"names":[],"mappings":";;;AACA,mEAAwF;AAGxF,MAAa,4BAA6B,SAAQ,iBAA+B;;AAAjF,oEAkNC;AAjNiB,sCAAS,GAAG,qCAAqC,CAAC;AAClD,sCAAS,GAAG,kCAAkC,CAAC;AAoG/C,2CAAc,GAA4E;IACpG,GAAG,EAAE;QACD,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,IAAI;KACvB;IACD,QAAQ,EAAE;QACN,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,EAAE,CAAC;KAC7B;IACD,OAAO,EAAE,qBAAS,CAAC,MAAM,CAAC,EAAE,CAAC;IAC7B,SAAS,EAAE,qBAAS,CAAC,MAA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AC,IAAI;IACrC,mBAAmB,EAAE,qBAAS,CAAC,IAAI;IACnC,oBAAoB,EAAE,qBAAS,CAAC,MAAM;CACzC,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
2
|
-
import { IEnoPorsennaDeviceView } from "./interfaces/IEnoPorsennaDeviceView";
|
|
3
|
-
export declare class EnoPorsennaDeviceViewModel extends Model<IEnoPorsennaDeviceView> implements IEnoPorsennaDeviceView {
|
|
4
|
-
static tableName: string;
|
|
5
|
-
static modelName: string;
|
|
6
|
-
gid: string;
|
|
7
|
-
source: string;
|
|
8
|
-
device_id: string;
|
|
9
|
-
parent_device_id: string | null;
|
|
10
|
-
identifier: string | null;
|
|
11
|
-
type: string | null;
|
|
12
|
-
level: string | null;
|
|
13
|
-
name: string | null;
|
|
14
|
-
measurement_target: string | null;
|
|
15
|
-
meter_number: string | null;
|
|
16
|
-
supply_point_number: string | null;
|
|
17
|
-
disabled_at: Date | null;
|
|
18
|
-
show_in_output: boolean | null;
|
|
19
|
-
building_id: number;
|
|
20
|
-
building_name: string | null;
|
|
21
|
-
building_street: string | null;
|
|
22
|
-
building_house_number: string | null;
|
|
23
|
-
building_street_number: string | null;
|
|
24
|
-
building_city: string | null;
|
|
25
|
-
building_postcode: string | null;
|
|
26
|
-
static attributeModel: ModelAttributes<EnoPorsennaDeviceViewModel, IEnoPorsennaDeviceView>;
|
|
27
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnoPorsennaDeviceViewModel = void 0;
|
|
4
|
-
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
-
class EnoPorsennaDeviceViewModel extends sequelize_1.Model {
|
|
6
|
-
}
|
|
7
|
-
exports.EnoPorsennaDeviceViewModel = EnoPorsennaDeviceViewModel;
|
|
8
|
-
EnoPorsennaDeviceViewModel.tableName = "v_enapo_building_porsenna_devices";
|
|
9
|
-
EnoPorsennaDeviceViewModel.modelName = "EnoPorsennaDeviceViewModelData";
|
|
10
|
-
EnoPorsennaDeviceViewModel.attributeModel = {
|
|
11
|
-
gid: {
|
|
12
|
-
primaryKey: true,
|
|
13
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
14
|
-
},
|
|
15
|
-
source: {
|
|
16
|
-
primaryKey: true,
|
|
17
|
-
type: sequelize_1.DataTypes.STRING(50),
|
|
18
|
-
},
|
|
19
|
-
device_id: {
|
|
20
|
-
primaryKey: true,
|
|
21
|
-
type: sequelize_1.DataTypes.UUID,
|
|
22
|
-
},
|
|
23
|
-
parent_device_id: sequelize_1.DataTypes.UUID,
|
|
24
|
-
identifier: sequelize_1.DataTypes.TEXT,
|
|
25
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
26
|
-
level: sequelize_1.DataTypes.TEXT,
|
|
27
|
-
name: sequelize_1.DataTypes.TEXT,
|
|
28
|
-
measurement_target: sequelize_1.DataTypes.TEXT,
|
|
29
|
-
meter_number: sequelize_1.DataTypes.TEXT,
|
|
30
|
-
supply_point_number: sequelize_1.DataTypes.TEXT,
|
|
31
|
-
disabled_at: sequelize_1.DataTypes.DATE,
|
|
32
|
-
show_in_output: sequelize_1.DataTypes.BOOLEAN,
|
|
33
|
-
building_id: sequelize_1.DataTypes.INTEGER,
|
|
34
|
-
building_name: sequelize_1.DataTypes.TEXT,
|
|
35
|
-
building_street: sequelize_1.DataTypes.TEXT,
|
|
36
|
-
building_house_number: sequelize_1.DataTypes.TEXT,
|
|
37
|
-
building_street_number: sequelize_1.DataTypes.TEXT,
|
|
38
|
-
building_city: sequelize_1.DataTypes.TEXT,
|
|
39
|
-
building_postcode: sequelize_1.DataTypes.TEXT,
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=EnoPorsennaDeviceViewModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"En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
export interface IEnoBuildingDetailView {
|
|
2
|
-
gid: string;
|
|
3
|
-
zdroj: string | null;
|
|
4
|
-
nazev: string | null;
|
|
5
|
-
oznaceni: string | null;
|
|
6
|
-
druh_vytapeni: string | null;
|
|
7
|
-
pripojka_elektro: string | null;
|
|
8
|
-
pripojka_voda: string | null;
|
|
9
|
-
pripojka_kanalizace: string | null;
|
|
10
|
-
budova_rozdelena_byt_nebyt: string | null;
|
|
11
|
-
celkova_plocha_budova: number | null;
|
|
12
|
-
celkova_plocha_byt_budova: number | null;
|
|
13
|
-
celkova_plocha_nebyt_budova: number | null;
|
|
14
|
-
zastavena_plocha: number | null;
|
|
15
|
-
obestaveny_prostor: number | null;
|
|
16
|
-
pocet_byt: number | null;
|
|
17
|
-
pocet_nebyt_budova: number | null;
|
|
18
|
-
pocet_nadzem_podlazi: number | null;
|
|
19
|
-
pocet_podzem_podlazi: number | null;
|
|
20
|
-
pocet_podkrovi: number | null;
|
|
21
|
-
vytah: boolean | null;
|
|
22
|
-
czcc: number | null;
|
|
23
|
-
id_cuzk: number | null;
|
|
24
|
-
id_objekt: number | null;
|
|
25
|
-
kod_vyuziti: string | null;
|
|
26
|
-
nazev_vyuziti: string | null;
|
|
27
|
-
kod_ochrana: string | null;
|
|
28
|
-
nazev_ochrana: string | null;
|
|
29
|
-
platnost_od: Date | null;
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IEnoBuildingDetailView.js","sourceRoot":"","sources":["../../../../src/output-gateway/models/interfaces/IEnoBuildingDetailView.ts"],"names":[],"mappings":""}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { EnapoCommodity } from "../../../schema-definitions/models/enapo/interfaces/IEnapoGidMapping";
|
|
2
|
-
export interface IEnoConsumptionPointView {
|
|
3
|
-
gid: string;
|
|
4
|
-
place_id: string;
|
|
5
|
-
id_type: "ean" | "eic" | "om";
|
|
6
|
-
commodity: EnapoCommodity;
|
|
7
|
-
is_first_gid: boolean;
|
|
8
|
-
link_source: string;
|
|
9
|
-
valid_from: string | null;
|
|
10
|
-
valid_to: string | null;
|
|
11
|
-
is_active: boolean;
|
|
12
|
-
/** PRE metadata (electricity, latest month) */
|
|
13
|
-
md_year: number | null;
|
|
14
|
-
md_month: number | null;
|
|
15
|
-
md_month_name: string | null;
|
|
16
|
-
md_days_in_stored_month: number | null;
|
|
17
|
-
md_consumption_point: string | null;
|
|
18
|
-
md_address: string | null;
|
|
19
|
-
md_location_type: string | null;
|
|
20
|
-
md_company_name: string | null;
|
|
21
|
-
md_company_id: string | null;
|
|
22
|
-
md_tarif_type: string | null;
|
|
23
|
-
md_tarif_1t2t: string | null;
|
|
24
|
-
md_phases: string | null;
|
|
25
|
-
md_circuit_breaker: string | null;
|
|
26
|
-
md_type_b_meter: string | null;
|
|
27
|
-
md_meter_replaced: string | null;
|
|
28
|
-
/** PPAS distribution invoice (gas, latest non-canceled) */
|
|
29
|
-
di_id: string | null;
|
|
30
|
-
di_preceding_id: string | null;
|
|
31
|
-
di_customer_id: string | null;
|
|
32
|
-
di_customer_company_id: string | null;
|
|
33
|
-
di_customer_name: string | null;
|
|
34
|
-
di_customer_contract_account_id: string | null;
|
|
35
|
-
di_customer_address_street: string | null;
|
|
36
|
-
di_customer_address_house_number: string | null;
|
|
37
|
-
di_customer_address_house_org_number: string | null;
|
|
38
|
-
di_customer_address_city: string | null;
|
|
39
|
-
di_customer_address_city_part: string | null;
|
|
40
|
-
di_customer_address_post_code: string | null;
|
|
41
|
-
di_customer_address_country: string | null;
|
|
42
|
-
di_customer_address_ruian_id: number | null;
|
|
43
|
-
di_facts_doc_date: string | null;
|
|
44
|
-
di_facts_net_date: string | null;
|
|
45
|
-
di_facts_billing_transaction: string | null;
|
|
46
|
-
di_facts_to_pay_amount: number | null;
|
|
47
|
-
di_facts_currency: string | null;
|
|
48
|
-
di_facts_price_brutto: number | null;
|
|
49
|
-
di_is_canceled: boolean | null;
|
|
50
|
-
di_canceled_reason: string | null;
|
|
51
|
-
di_installations_billing_class: string | null;
|
|
52
|
-
di_installations_measurement_type: string | null;
|
|
53
|
-
di_installations_contract_contract_id: string | null;
|
|
54
|
-
di_installations_contract_move_in_date: string | null;
|
|
55
|
-
di_installations_contract_move_out_date: string | null;
|
|
56
|
-
di_installations_tdd_class: string | null;
|
|
57
|
-
di_installations_address_street: string | null;
|
|
58
|
-
di_installations_address_house_number: string | null;
|
|
59
|
-
di_installations_address_house_org_number: string | null;
|
|
60
|
-
di_installations_address_city: string | null;
|
|
61
|
-
di_installations_address_city_part: string | null;
|
|
62
|
-
di_installations_address_post_code: string | null;
|
|
63
|
-
di_installations_address_country: string | null;
|
|
64
|
-
di_installations_address_ruian_id: number | null;
|
|
65
|
-
/** PPAS commercial invoice (gas, latest non-canceled) */
|
|
66
|
-
ci_id: string | null;
|
|
67
|
-
ci_preceding_id: string | null;
|
|
68
|
-
ci_customer_id: string | null;
|
|
69
|
-
ci_customer_company_id: string | null;
|
|
70
|
-
ci_customer_name: string | null;
|
|
71
|
-
ci_customer_contract_account_id: string | null;
|
|
72
|
-
ci_customer_address_street: string | null;
|
|
73
|
-
ci_customer_address_house_number: string | null;
|
|
74
|
-
ci_customer_address_house_org_number: string | null;
|
|
75
|
-
ci_customer_address_city: string | null;
|
|
76
|
-
ci_customer_address_city_part: string | null;
|
|
77
|
-
ci_customer_address_post_code: string | null;
|
|
78
|
-
ci_customer_address_country: string | null;
|
|
79
|
-
ci_customer_address_ruian_id: number | null;
|
|
80
|
-
ci_facts_doc_date: string | null;
|
|
81
|
-
ci_facts_net_date: string | null;
|
|
82
|
-
ci_facts_billing_transaction: string | null;
|
|
83
|
-
ci_facts_to_pay_amount: number | null;
|
|
84
|
-
ci_facts_currency: string | null;
|
|
85
|
-
ci_facts_price_brutto: number | null;
|
|
86
|
-
ci_is_canceled: boolean | null;
|
|
87
|
-
ci_canceled_reason: string | null;
|
|
88
|
-
/** PPAS commercial invoice installation (gas) — cii_place_id is PPAS-internal, used only to scope devices/prices */
|
|
89
|
-
cii_place_id: string | null;
|
|
90
|
-
cii_billing_class: string | null;
|
|
91
|
-
cii_measurement_type: string | null;
|
|
92
|
-
cii_contract_contract_id: string | null;
|
|
93
|
-
cii_contract_move_in_date: string | null;
|
|
94
|
-
cii_contract_move_out_date: string | null;
|
|
95
|
-
cii_tdd_class: string | null;
|
|
96
|
-
cii_address_street: string | null;
|
|
97
|
-
cii_address_house_number: string | null;
|
|
98
|
-
cii_address_house_org_number: string | null;
|
|
99
|
-
cii_address_city: string | null;
|
|
100
|
-
cii_address_city_part: string | null;
|
|
101
|
-
cii_address_post_code: string | null;
|
|
102
|
-
cii_address_country: string | null;
|
|
103
|
-
cii_address_ruian_id: number | null;
|
|
104
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IEnoConsumptionPointView.js","sourceRoot":"","sources":["../../../../src/output-gateway/models/interfaces/IEnoConsumptionPointView.ts"],"names":[],"mappings":""}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface IEnoPorsennaDeviceView {
|
|
2
|
-
gid: string;
|
|
3
|
-
source: string;
|
|
4
|
-
device_id: string;
|
|
5
|
-
parent_device_id: string | null;
|
|
6
|
-
identifier: string | null;
|
|
7
|
-
type: string | null;
|
|
8
|
-
level: string | null;
|
|
9
|
-
name: string | null;
|
|
10
|
-
measurement_target: string | null;
|
|
11
|
-
meter_number: string | null;
|
|
12
|
-
supply_point_number: string | null;
|
|
13
|
-
disabled_at: Date | null;
|
|
14
|
-
show_in_output: boolean | null;
|
|
15
|
-
building_id: number;
|
|
16
|
-
building_name: string | null;
|
|
17
|
-
building_street: string | null;
|
|
18
|
-
building_house_number: string | null;
|
|
19
|
-
building_street_number: string | null;
|
|
20
|
-
building_city: string | null;
|
|
21
|
-
building_postcode: string | null;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IEnoPorsennaDeviceView.js","sourceRoot":"","sources":["../../../../src/output-gateway/models/interfaces/IEnoPorsennaDeviceView.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SequelizeModel } from "@golemio/core/dist/output-gateway";
|
|
2
|
-
/**
|
|
3
|
-
* Base for read repositories over tables/views with NUMERIC or BIGINT columns, which pg returns
|
|
4
|
-
* as strings. Derives the affected columns from the Sequelize attribute definitions and coerces
|
|
5
|
-
* them back to numbers, so `raw: true` rows match the declared model typing.
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class AbstractNumericParsingRepository extends SequelizeModel {
|
|
8
|
-
private numericAttributeNames;
|
|
9
|
-
protected parseNumericColumns: <T extends object>(rows: T[]) => T[];
|
|
10
|
-
protected parseNumericRow: <T extends object>(row: T | null) => T | null;
|
|
11
|
-
private getNumericAttributeNames;
|
|
12
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AbstractNumericParsingRepository = void 0;
|
|
4
|
-
const objectMappers_1 = require("../helpers/objectMappers");
|
|
5
|
-
const output_gateway_1 = require("@golemio/core/dist/output-gateway");
|
|
6
|
-
const NUMERIC_TYPE_KEYS = ["DECIMAL", "BIGINT"];
|
|
7
|
-
/**
|
|
8
|
-
* Base for read repositories over tables/views with NUMERIC or BIGINT columns, which pg returns
|
|
9
|
-
* as strings. Derives the affected columns from the Sequelize attribute definitions and coerces
|
|
10
|
-
* them back to numbers, so `raw: true` rows match the declared model typing.
|
|
11
|
-
*/
|
|
12
|
-
class AbstractNumericParsingRepository extends output_gateway_1.SequelizeModel {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.numericAttributeNames = null;
|
|
16
|
-
this.parseNumericColumns = (rows) => {
|
|
17
|
-
const keys = this.getNumericAttributeNames();
|
|
18
|
-
if (keys.length === 0) {
|
|
19
|
-
return rows;
|
|
20
|
-
}
|
|
21
|
-
return rows.map((row) => (0, objectMappers_1.parseNumericFields)(row, keys));
|
|
22
|
-
};
|
|
23
|
-
this.parseNumericRow = (row) => {
|
|
24
|
-
return row === null ? null : this.parseNumericColumns([row])[0];
|
|
25
|
-
};
|
|
26
|
-
this.getNumericAttributeNames = () => {
|
|
27
|
-
if (this.numericAttributeNames === null) {
|
|
28
|
-
this.numericAttributeNames = Object.entries(this.sequelizeModel.getAttributes())
|
|
29
|
-
.filter(([, attribute]) => {
|
|
30
|
-
const type = attribute.type;
|
|
31
|
-
const typeKey = typeof type === "string" ? type : type.key;
|
|
32
|
-
return typeKey !== undefined && NUMERIC_TYPE_KEYS.includes(typeKey);
|
|
33
|
-
})
|
|
34
|
-
.map(([name]) => name);
|
|
35
|
-
}
|
|
36
|
-
return this.numericAttributeNames;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.AbstractNumericParsingRepository = AbstractNumericParsingRepository;
|
|
41
|
-
//# sourceMappingURL=AbstractNumericParsingRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractNumericParsingRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/AbstractNumericParsingRepository.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAC/D,sEAAmE;AAEnE,MAAM,iBAAiB,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AAEhD;;;;GAIG;AACH,MAAsB,gCAAiC,SAAQ,+BAAc;IAA7E;;QACY,0BAAqB,GAAoB,IAAI,CAAC;QAE5C,wBAAmB,GAAG,CAAmB,IAAS,EAAO,EAAE;YACjE,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,EAAoB,CAAC;YAC/D,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACpB,OAAO,IAAI,CAAC;YAChB,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,kCAAkB,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;QAC5D,CAAC,CAAC;QAEQ,oBAAe,GAAG,CAAmB,GAAa,EAAY,EAAE;YACtE,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpE,CAAC,CAAC;QAEM,6BAAwB,GAAG,GAAa,EAAE;YAC9C,IAAI,IAAI,CAAC,qBAAqB,KAAK,IAAI,EAAE,CAAC;gBACtC,IAAI,CAAC,qBAAqB,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC;qBAC3E,MAAM,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,EAAE;oBACtB,MAAM,IAAI,GAAY,SAAS,CAAC,IAAI,CAAC;oBACrC,MAAM,OAAO,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAE,IAAyB,CAAC,GAAG,CAAC;oBACjF,OAAO,OAAO,KAAK,SAAS,IAAI,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;gBACxE,CAAC,CAAC;qBACD,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;YAC/B,CAAC;YAED,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACtC,CAAC,CAAC;IACN,CAAC;CAAA;AA7BD,4EA6BC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IAddress } from "../../schema-definitions/models/eno/interfaces/IAddress";
|
|
2
|
-
import { AbstractNumericParsingRepository } from "./AbstractNumericParsingRepository";
|
|
3
|
-
export declare class EnoBuildingAddressesRepository extends AbstractNumericParsingRepository {
|
|
4
|
-
constructor();
|
|
5
|
-
GetByGid(gid: string): Promise<IAddress[]>;
|
|
6
|
-
GetAll(): never;
|
|
7
|
-
GetOne(): never;
|
|
8
|
-
}
|
|
@@ -1,62 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EnoBuildingAddressesRepository = void 0;
|
|
13
|
-
const AddressModel_1 = require("../../schema-definitions/models/eno/AddressModel");
|
|
14
|
-
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
15
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
16
|
-
const AbstractNumericParsingRepository_1 = require("./AbstractNumericParsingRepository");
|
|
17
|
-
let EnoBuildingAddressesRepository = class EnoBuildingAddressesRepository extends AbstractNumericParsingRepository_1.AbstractNumericParsingRepository {
|
|
18
|
-
constructor() {
|
|
19
|
-
super("EnoBuildingAddressesModelData", AddressModel_1.AddressModel.TABLE_NAME, AddressModel_1.AddressModel.attributeModel, {
|
|
20
|
-
schema: "energetics",
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
async GetByGid(gid) {
|
|
24
|
-
try {
|
|
25
|
-
const rows = this.parseNumericColumns((await this.sequelizeModel.findAll({
|
|
26
|
-
where: { gid },
|
|
27
|
-
order: [
|
|
28
|
-
["hlavni", "DESC"],
|
|
29
|
-
["poradi", "ASC"],
|
|
30
|
-
],
|
|
31
|
-
raw: true,
|
|
32
|
-
})));
|
|
33
|
-
const addresses = [];
|
|
34
|
-
const seenPopis = new Set();
|
|
35
|
-
for (const row of rows) {
|
|
36
|
-
if (row.popis === null) {
|
|
37
|
-
addresses.push(row);
|
|
38
|
-
}
|
|
39
|
-
else if (!seenPopis.has(row.popis)) {
|
|
40
|
-
seenPopis.add(row.popis);
|
|
41
|
-
addresses.push(row);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return addresses;
|
|
45
|
-
}
|
|
46
|
-
catch (err) {
|
|
47
|
-
throw new golemio_errors_1.GeneralError("Database error ~ GetByGid EnoBuildingAddressesRepository", this.name, err, 500);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
GetAll() {
|
|
51
|
-
throw new Error("Not implemented");
|
|
52
|
-
}
|
|
53
|
-
GetOne() {
|
|
54
|
-
throw new Error("Not implemented");
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
exports.EnoBuildingAddressesRepository = EnoBuildingAddressesRepository;
|
|
58
|
-
exports.EnoBuildingAddressesRepository = EnoBuildingAddressesRepository = __decorate([
|
|
59
|
-
(0, tsyringe_1.injectable)(),
|
|
60
|
-
__metadata("design:paramtypes", [])
|
|
61
|
-
], EnoBuildingAddressesRepository);
|
|
62
|
-
//# sourceMappingURL=EnoBuildingAddressesRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnoBuildingAddressesRepository.js","sourceRoot":"","sources":["../../../src/output-gateway/repositories/EnoBuildingAddressesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mFAA4D;AAE5D,6EAAwE;AACxE,iEAAgE;AAChE,yFAAsF;AAG/E,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,mEAAgC;IAChF;QACI,KAAK,CAAC,+BAA+B,EAAE,2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,CAAC;IACvC,CAAC;CACJ,CAAA;AA5CY,wEAA8B;yCAA9B,8BAA8B;IAD1C,IAAA,qBAAU,GAAE;;GACA,8BAA8B,CA4C1C"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AbstractNumericParsingRepository } from "./AbstractNumericParsingRepository";
|
|
2
|
-
import { IEnoBuildingDetailAggregate } from "./interfaces/IEnoBuildingDetailAggregate";
|
|
3
|
-
export declare class EnoBuildingDetailRepository extends AbstractNumericParsingRepository {
|
|
4
|
-
private addressesRepository;
|
|
5
|
-
private consumptionPointsRepository;
|
|
6
|
-
private distributionDevicesRepository;
|
|
7
|
-
private distributionPricesRepository;
|
|
8
|
-
private commercialDevicesRepository;
|
|
9
|
-
private commercialPricesRepository;
|
|
10
|
-
private porsennaDevicesRepository;
|
|
11
|
-
private porsennaConsumptionsRepository;
|
|
12
|
-
constructor();
|
|
13
|
-
GetDetail(gid: string): Promise<IEnoBuildingDetailAggregate | null>;
|
|
14
|
-
GetAll(): never;
|
|
15
|
-
GetOne(): never;
|
|
16
|
-
private findBuilding;
|
|
17
|
-
private collectIds;
|
|
18
|
-
}
|
|
@@ -1,100 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EnoBuildingDetailRepository = void 0;
|
|
13
|
-
const EnoBuildingDetailViewModel_1 = require("../models/EnoBuildingDetailViewModel");
|
|
14
|
-
const PpasCommercialInvoiceDeviceModel_1 = require("../../schema-definitions/models/enapo/ppas/PpasCommercialInvoiceDeviceModel");
|
|
15
|
-
const PpasCommercialInvoicePriceModel_1 = require("../../schema-definitions/models/enapo/ppas/PpasCommercialInvoicePriceModel");
|
|
16
|
-
const PpasDistributionInvoiceDeviceModel_1 = require("../../schema-definitions/models/enapo/ppas/PpasDistributionInvoiceDeviceModel");
|
|
17
|
-
const PpasDistributionInvoicePriceModel_1 = require("../../schema-definitions/models/enapo/ppas/PpasDistributionInvoicePriceModel");
|
|
18
|
-
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
19
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
20
|
-
const AbstractNumericParsingRepository_1 = require("./AbstractNumericParsingRepository");
|
|
21
|
-
const EnoBuildingAddressesRepository_1 = require("./EnoBuildingAddressesRepository");
|
|
22
|
-
const EnoConsumptionPointsRepository_1 = require("./EnoConsumptionPointsRepository");
|
|
23
|
-
const EnoPorsennaDevicesRepository_1 = require("./EnoPorsennaDevicesRepository");
|
|
24
|
-
const PorsennaConsumptionsRepository_1 = require("./PorsennaConsumptionsRepository");
|
|
25
|
-
const PpasInvoiceChildRepository_1 = require("./PpasInvoiceChildRepository");
|
|
26
|
-
let EnoBuildingDetailRepository = class EnoBuildingDetailRepository extends AbstractNumericParsingRepository_1.AbstractNumericParsingRepository {
|
|
27
|
-
constructor() {
|
|
28
|
-
super(EnoBuildingDetailViewModel_1.EnoBuildingDetailViewModel.modelName, EnoBuildingDetailViewModel_1.EnoBuildingDetailViewModel.tableName, EnoBuildingDetailViewModel_1.EnoBuildingDetailViewModel.attributeModel, {
|
|
29
|
-
schema: "energetics",
|
|
30
|
-
});
|
|
31
|
-
this.addressesRepository = new EnoBuildingAddressesRepository_1.EnoBuildingAddressesRepository();
|
|
32
|
-
this.consumptionPointsRepository = new EnoConsumptionPointsRepository_1.EnoConsumptionPointsRepository();
|
|
33
|
-
this.distributionDevicesRepository = new PpasInvoiceChildRepository_1.PpasInvoiceChildRepository("EnoPpasDistributionInvoiceDeviceModelData", PpasDistributionInvoiceDeviceModel_1.PpasDistributionInvoiceDeviceModel.TABLE_NAME, PpasDistributionInvoiceDeviceModel_1.PpasDistributionInvoiceDeviceModel.attributeModel);
|
|
34
|
-
this.distributionPricesRepository = new PpasInvoiceChildRepository_1.PpasInvoiceChildRepository("EnoPpasDistributionInvoicePriceModelData", PpasDistributionInvoicePriceModel_1.PpasDistributionInvoicePriceModel.TABLE_NAME, PpasDistributionInvoicePriceModel_1.PpasDistributionInvoicePriceModel.attributeModel);
|
|
35
|
-
this.commercialDevicesRepository = new PpasInvoiceChildRepository_1.PpasInvoiceChildRepository("EnoPpasCommercialInvoiceDeviceModelData", PpasCommercialInvoiceDeviceModel_1.PpasCommercialInvoiceDeviceModel.TABLE_NAME, PpasCommercialInvoiceDeviceModel_1.PpasCommercialInvoiceDeviceModel.attributeModel);
|
|
36
|
-
this.commercialPricesRepository = new PpasInvoiceChildRepository_1.PpasInvoiceChildRepository("EnoPpasCommercialInvoicePriceModelData", PpasCommercialInvoicePriceModel_1.PpasCommercialInvoicePriceModel.TABLE_NAME, PpasCommercialInvoicePriceModel_1.PpasCommercialInvoicePriceModel.attributeModel);
|
|
37
|
-
this.porsennaDevicesRepository = new EnoPorsennaDevicesRepository_1.EnoPorsennaDevicesRepository();
|
|
38
|
-
this.porsennaConsumptionsRepository = new PorsennaConsumptionsRepository_1.PorsennaConsumptionsRepository();
|
|
39
|
-
}
|
|
40
|
-
async GetDetail(gid) {
|
|
41
|
-
const [building, addresses, points, porsennaDevices] = await Promise.all([
|
|
42
|
-
this.findBuilding(gid),
|
|
43
|
-
this.addressesRepository.GetByGid(gid),
|
|
44
|
-
this.consumptionPointsRepository.GetByGid(gid),
|
|
45
|
-
this.porsennaDevicesRepository.GetByGid(gid),
|
|
46
|
-
]);
|
|
47
|
-
if (building === null && addresses.length === 0 && points.length === 0 && porsennaDevices.length === 0) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
const distributionInvoiceIds = this.collectIds(points.map((point) => point.di_id));
|
|
51
|
-
const commercialInvoiceIds = this.collectIds(points.map((point) => point.ci_id));
|
|
52
|
-
const porsennaDeviceIds = this.collectIds(porsennaDevices.map((device) => device.device_id));
|
|
53
|
-
const [distributionDevices, distributionPrices, commercialDevices, commercialPrices, porsennaConsumption] = await Promise.all([
|
|
54
|
-
this.distributionDevicesRepository.GetByInvoiceIds(distributionInvoiceIds),
|
|
55
|
-
this.distributionPricesRepository.GetByInvoiceIds(distributionInvoiceIds),
|
|
56
|
-
this.commercialDevicesRepository.GetByInvoiceIds(commercialInvoiceIds),
|
|
57
|
-
this.commercialPricesRepository.GetByInvoiceIds(commercialInvoiceIds),
|
|
58
|
-
this.porsennaConsumptionsRepository.GetByDeviceIds(porsennaDeviceIds),
|
|
59
|
-
]);
|
|
60
|
-
return {
|
|
61
|
-
gid,
|
|
62
|
-
building,
|
|
63
|
-
addresses,
|
|
64
|
-
points,
|
|
65
|
-
distributionDevices,
|
|
66
|
-
distributionPrices,
|
|
67
|
-
commercialDevices,
|
|
68
|
-
commercialPrices,
|
|
69
|
-
porsennaDevices,
|
|
70
|
-
porsennaConsumption,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
GetAll() {
|
|
74
|
-
throw new Error("Not implemented");
|
|
75
|
-
}
|
|
76
|
-
GetOne() {
|
|
77
|
-
throw new Error("Not implemented");
|
|
78
|
-
}
|
|
79
|
-
async findBuilding(gid) {
|
|
80
|
-
try {
|
|
81
|
-
const row = (await this.sequelizeModel.findOne({
|
|
82
|
-
where: { gid },
|
|
83
|
-
raw: true,
|
|
84
|
-
}));
|
|
85
|
-
return this.parseNumericRow(row);
|
|
86
|
-
}
|
|
87
|
-
catch (err) {
|
|
88
|
-
throw new golemio_errors_1.GeneralError("Database error ~ GetDetail EnoBuildingDetailRepository", this.name, err, 500);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
collectIds(ids) {
|
|
92
|
-
return [...new Set(ids.filter((id) => id !== null))];
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
exports.EnoBuildingDetailRepository = EnoBuildingDetailRepository;
|
|
96
|
-
exports.EnoBuildingDetailRepository = EnoBuildingDetailRepository = __decorate([
|
|
97
|
-
(0, tsyringe_1.injectable)(),
|
|
98
|
-
__metadata("design:paramtypes", [])
|
|
99
|
-
], EnoBuildingDetailRepository);
|
|
100
|
-
//# sourceMappingURL=EnoBuildingDetailRepository.js.map
|