@golemio/energetics 1.7.1-dev.2195848807 → 1.7.1-dev.2249489220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db/migrations/postgresql/20251210082937-ppas-distribution-invoice-data.js +53 -0
- package/db/migrations/postgresql/sqls/20251210082937-ppas-distribution-invoice-data-down.sql +3 -0
- package/db/migrations/postgresql/sqls/20251210082937-ppas-distribution-invoice-data-up.sql +89 -0
- package/dist/input-gateway/transformations/PreCsvInputTransformation.d.ts +1 -1
- package/dist/integration-engine/commodity-providers/transformations/PreMeasurementTransformation.d.ts +1 -1
- package/dist/integration-engine/commodity-providers/workers/schema/PreEanMeasurementSchema.d.ts +1 -1
- package/dist/integration-engine/commodity-providers/workers/tasks/ProcessPreEanMeasurementsTask.d.ts +1 -1
- package/dist/integration-engine/enapo/datasources/ppas/distribution/PpasDistributionDatasource.d.ts +20 -0
- package/dist/integration-engine/enapo/datasources/ppas/distribution/PpasDistributionDatasource.js +118 -0
- package/dist/integration-engine/enapo/datasources/ppas/distribution/PpasDistributionDatasource.js.map +1 -0
- package/dist/integration-engine/enapo/ioc/Di.js +15 -3
- package/dist/integration-engine/enapo/ioc/Di.js.map +1 -1
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.d.ts +6 -0
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.js +6 -0
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.js.map +1 -1
- package/dist/integration-engine/enapo/repositories/ppas/PpasDistributionInvoiceDeviceRepository.d.ts +7 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasDistributionInvoiceDeviceRepository.js +35 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasDistributionInvoiceDeviceRepository.js.map +1 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasDistributionInvoicePriceRepository.d.ts +7 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasDistributionInvoicePriceRepository.js +35 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasDistributionInvoicePriceRepository.js.map +1 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasDistributionInvoiceRepository.d.ts +7 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasDistributionInvoiceRepository.js +35 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasDistributionInvoiceRepository.js.map +1 -0
- package/dist/integration-engine/enapo/transformations/ppas/PpasDistributionTransformation.d.ts +32 -0
- package/dist/integration-engine/enapo/transformations/ppas/PpasDistributionTransformation.js +197 -0
- package/dist/integration-engine/enapo/transformations/ppas/PpasDistributionTransformation.js.map +1 -0
- package/dist/integration-engine/enapo/workers/EnapoWorker.js +1 -0
- package/dist/integration-engine/enapo/workers/EnapoWorker.js.map +1 -1
- package/dist/integration-engine/enapo/workers/interfaces/IEnapoPpasDistributionParams.d.ts +4 -0
- package/dist/integration-engine/enapo/{interfaces/predi/IPrediMetadata.js → workers/interfaces/IEnapoPpasDistributionParams.js} +1 -1
- package/dist/integration-engine/enapo/workers/interfaces/IEnapoPpasDistributionParams.js.map +1 -0
- package/dist/integration-engine/enapo/workers/schema/EnapoPpasDistributionParamsSchema.d.ts +5 -0
- package/dist/integration-engine/enapo/workers/schema/EnapoPpasDistributionParamsSchema.js +29 -0
- package/dist/integration-engine/enapo/workers/schema/EnapoPpasDistributionParamsSchema.js.map +1 -0
- package/dist/integration-engine/enapo/workers/task/EnapoPpasDistributionTask.d.ts +27 -0
- package/dist/integration-engine/enapo/workers/task/EnapoPpasDistributionTask.js +95 -0
- package/dist/integration-engine/enapo/workers/task/EnapoPpasDistributionTask.js.map +1 -0
- package/dist/schema-definitions/datasources/commodity-providers/IPreEanMeasurement.js.map +1 -0
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/IPpasDistributionInvoiceDetailInput.d.ts +78 -0
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/IPpasDistributionInvoiceDetailInput.js +3 -0
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/IPpasDistributionInvoiceDetailInput.js.map +1 -0
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/IPpasDistributionInvoiceListInput.d.ts +40 -0
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/IPpasDistributionInvoiceListInput.js +3 -0
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/IPpasDistributionInvoiceListInput.js.map +1 -0
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/PpasDistributionSchema.d.ts +7 -0
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/PpasDistributionSchema.js +224 -0
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/PpasDistributionSchema.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceDeviceModel.d.ts +24 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceDeviceModel.js +52 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceDeviceModel.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceModel.d.ts +46 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceModel.js +102 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceModel.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoicePriceModel.d.ts +23 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoicePriceModel.js +50 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasDistributionInvoicePriceModel.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoice.d.ts +40 -0
- package/dist/{integration-engine/enapo/interfaces/IPPasMeasurementData.js → schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoice.js} +1 -1
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoice.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoiceDevice.d.ts +18 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoiceDevice.js +3 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoiceDevice.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoicePrice.d.ts +17 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoicePrice.js +3 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoicePrice.js.map +1 -0
- package/docs/implementation_documentation.md +57 -0
- package/package.json +1 -1
- package/dist/integration-engine/commodity-providers/workers/interfaces/IPreEanMeasurement.js.map +0 -1
- package/dist/integration-engine/enapo/interfaces/IPPasMeasurementData.d.ts +0 -28
- package/dist/integration-engine/enapo/interfaces/IPPasMeasurementData.js.map +0 -1
- package/dist/integration-engine/enapo/interfaces/predi/IPrediMetadata.d.ts +0 -17
- package/dist/integration-engine/enapo/interfaces/predi/IPrediMetadata.js.map +0 -1
- /package/dist/{integration-engine/commodity-providers/workers/interfaces → schema-definitions/datasources/commodity-providers}/IPreEanMeasurement.d.ts +0 -0
- /package/dist/{integration-engine/commodity-providers/workers/interfaces → schema-definitions/datasources/commodity-providers}/IPreEanMeasurement.js +0 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ppasDistributionInvoiceDetailInputJsonSchema = exports.ppasDistributionInvoiceListInputJsonSchema = void 0;
|
|
4
|
+
const ppasDistributionInvoiceIdSchema = {
|
|
5
|
+
type: "object",
|
|
6
|
+
properties: {
|
|
7
|
+
num: { type: ["string", "number"] },
|
|
8
|
+
intNum: { type: "string" },
|
|
9
|
+
},
|
|
10
|
+
required: ["intNum"],
|
|
11
|
+
};
|
|
12
|
+
const ppasDistributionInvoiceCustomerSchema = {
|
|
13
|
+
type: "object",
|
|
14
|
+
properties: {
|
|
15
|
+
id: { type: "string" },
|
|
16
|
+
companyId: { type: ["string", "number"] },
|
|
17
|
+
name: { type: "string" },
|
|
18
|
+
contractAccountId: { type: "string" },
|
|
19
|
+
},
|
|
20
|
+
required: [],
|
|
21
|
+
};
|
|
22
|
+
const ppasDistributionInvoiceCustomerAddressSchema = {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {
|
|
25
|
+
street: { type: "string" },
|
|
26
|
+
houseNumber: { type: ["string", "number"] },
|
|
27
|
+
houseOrgNumber: { type: ["string", "number"] },
|
|
28
|
+
city: { type: "string" },
|
|
29
|
+
cityPart: { type: "string" },
|
|
30
|
+
postCode: { type: "string" },
|
|
31
|
+
country: { type: "string" },
|
|
32
|
+
ruianId: { type: "number" },
|
|
33
|
+
},
|
|
34
|
+
required: [],
|
|
35
|
+
};
|
|
36
|
+
const ppasDistributionInvoiceFactsSchema = {
|
|
37
|
+
type: "object",
|
|
38
|
+
properties: {
|
|
39
|
+
docDate: { type: "string" },
|
|
40
|
+
netDate: { type: "string" },
|
|
41
|
+
billingTransaction: { type: "string" },
|
|
42
|
+
toPayAmount: { type: "number" },
|
|
43
|
+
currency: { type: "string" },
|
|
44
|
+
priceBrutto: { type: "number" },
|
|
45
|
+
},
|
|
46
|
+
required: [],
|
|
47
|
+
};
|
|
48
|
+
const ppasDistributionInvoiceCancellationSchema = {
|
|
49
|
+
type: "object",
|
|
50
|
+
properties: {
|
|
51
|
+
isCanceled: { type: "boolean" },
|
|
52
|
+
id: ppasDistributionInvoiceIdSchema,
|
|
53
|
+
reason: { type: "string" },
|
|
54
|
+
},
|
|
55
|
+
required: [],
|
|
56
|
+
};
|
|
57
|
+
exports.ppasDistributionInvoiceListInputJsonSchema = {
|
|
58
|
+
type: "object",
|
|
59
|
+
properties: {
|
|
60
|
+
InvoiceList: {
|
|
61
|
+
oneOf: [
|
|
62
|
+
{
|
|
63
|
+
type: "array",
|
|
64
|
+
items: {
|
|
65
|
+
type: "object",
|
|
66
|
+
properties: {
|
|
67
|
+
id: ppasDistributionInvoiceIdSchema,
|
|
68
|
+
customer: ppasDistributionInvoiceCustomerSchema,
|
|
69
|
+
customerAddress: ppasDistributionInvoiceCustomerAddressSchema,
|
|
70
|
+
facts: ppasDistributionInvoiceFactsSchema,
|
|
71
|
+
cancellation: ppasDistributionInvoiceCancellationSchema,
|
|
72
|
+
},
|
|
73
|
+
required: [],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
type: "object",
|
|
78
|
+
properties: {
|
|
79
|
+
id: ppasDistributionInvoiceIdSchema,
|
|
80
|
+
customer: ppasDistributionInvoiceCustomerSchema,
|
|
81
|
+
customerAddress: ppasDistributionInvoiceCustomerAddressSchema,
|
|
82
|
+
facts: ppasDistributionInvoiceFactsSchema,
|
|
83
|
+
cancellation: ppasDistributionInvoiceCancellationSchema,
|
|
84
|
+
},
|
|
85
|
+
required: [],
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
required: ["InvoiceList"],
|
|
91
|
+
};
|
|
92
|
+
const readingSchema = {
|
|
93
|
+
type: "object",
|
|
94
|
+
additionalProperties: false,
|
|
95
|
+
properties: {
|
|
96
|
+
dateFrom: { type: "string" },
|
|
97
|
+
dateTo: { type: "string" },
|
|
98
|
+
kind: { type: "string" },
|
|
99
|
+
readingFrom: { type: "number" },
|
|
100
|
+
readingTo: { type: "number" },
|
|
101
|
+
consumption: { type: "number" },
|
|
102
|
+
unit: { type: "string" },
|
|
103
|
+
mrType: { type: ["string", "number"] },
|
|
104
|
+
gas: {
|
|
105
|
+
type: "object",
|
|
106
|
+
additionalProperties: false,
|
|
107
|
+
properties: {
|
|
108
|
+
consumptionKwh: { type: "number" },
|
|
109
|
+
volumeCoefficient: { type: "number" },
|
|
110
|
+
combustionHeat: { type: "number" },
|
|
111
|
+
normometersNm3: { type: "number" },
|
|
112
|
+
},
|
|
113
|
+
required: ["consumptionKwh", "volumeCoefficient", "combustionHeat", "normometersNm3"],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
required: ["dateFrom", "dateTo", "kind", "readingFrom", "readingTo", "consumption", "unit", "mrType"],
|
|
117
|
+
};
|
|
118
|
+
const readingsSchema = {
|
|
119
|
+
anyOf: [{ type: "array", items: readingSchema }, readingSchema],
|
|
120
|
+
};
|
|
121
|
+
const deviceSchema = {
|
|
122
|
+
type: "object",
|
|
123
|
+
additionalProperties: false,
|
|
124
|
+
properties: {
|
|
125
|
+
number: { type: "string" },
|
|
126
|
+
type: { type: "string" },
|
|
127
|
+
readings: readingsSchema,
|
|
128
|
+
},
|
|
129
|
+
required: ["number", "type", "readings"],
|
|
130
|
+
};
|
|
131
|
+
const devicesSchema = {
|
|
132
|
+
anyOf: [{ type: "array", items: deviceSchema }, deviceSchema],
|
|
133
|
+
};
|
|
134
|
+
exports.ppasDistributionInvoiceDetailInputJsonSchema = {
|
|
135
|
+
type: "object",
|
|
136
|
+
properties: {
|
|
137
|
+
id: ppasDistributionInvoiceIdSchema,
|
|
138
|
+
precedingId: ppasDistributionInvoiceIdSchema,
|
|
139
|
+
customer: ppasDistributionInvoiceCustomerSchema,
|
|
140
|
+
customerAddress: ppasDistributionInvoiceCustomerAddressSchema,
|
|
141
|
+
facts: ppasDistributionInvoiceFactsSchema,
|
|
142
|
+
cancellation: {
|
|
143
|
+
...ppasDistributionInvoiceCancellationSchema,
|
|
144
|
+
nullable: true,
|
|
145
|
+
},
|
|
146
|
+
charges: {
|
|
147
|
+
type: "array",
|
|
148
|
+
items: {
|
|
149
|
+
type: "object",
|
|
150
|
+
properties: {
|
|
151
|
+
dateFrom: { type: "string" },
|
|
152
|
+
dateTo: { type: "string" },
|
|
153
|
+
id: { type: "string" },
|
|
154
|
+
description: { type: "string" },
|
|
155
|
+
priceNetto: { type: "number" },
|
|
156
|
+
currency: { type: "string" },
|
|
157
|
+
taxRate: { type: "number" },
|
|
158
|
+
},
|
|
159
|
+
required: [],
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
installations: {
|
|
163
|
+
type: "object",
|
|
164
|
+
properties: {
|
|
165
|
+
pointOfDelivery: { type: "string" },
|
|
166
|
+
installation: { type: "string" },
|
|
167
|
+
billingClass: { type: "string" },
|
|
168
|
+
measurementType: { type: "string" },
|
|
169
|
+
contract: {
|
|
170
|
+
type: "object",
|
|
171
|
+
properties: {
|
|
172
|
+
contractId: { type: ["string", "number"] },
|
|
173
|
+
moveInDate: { type: "string" },
|
|
174
|
+
moveOutDate: { type: "string" },
|
|
175
|
+
},
|
|
176
|
+
required: [],
|
|
177
|
+
},
|
|
178
|
+
tddClass: { type: "string" },
|
|
179
|
+
address: ppasDistributionInvoiceCustomerAddressSchema,
|
|
180
|
+
devices: devicesSchema,
|
|
181
|
+
prices: {
|
|
182
|
+
type: "array",
|
|
183
|
+
items: {
|
|
184
|
+
type: "object",
|
|
185
|
+
properties: {
|
|
186
|
+
dateFrom: { type: "string" },
|
|
187
|
+
dateTo: { type: "string" },
|
|
188
|
+
kind: { type: "string" },
|
|
189
|
+
description: { type: "string" },
|
|
190
|
+
priceGroup: { type: "string" },
|
|
191
|
+
quantity: { type: "number" },
|
|
192
|
+
unit: { type: "string" },
|
|
193
|
+
unitPrice: { type: "number" },
|
|
194
|
+
timeSlot: { type: "number" },
|
|
195
|
+
priceNetto: { type: "number" },
|
|
196
|
+
currency: { type: "string" },
|
|
197
|
+
taxRate: { type: "number" },
|
|
198
|
+
},
|
|
199
|
+
required: [],
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
charges: {
|
|
203
|
+
type: "array",
|
|
204
|
+
items: {
|
|
205
|
+
type: "object",
|
|
206
|
+
properties: {
|
|
207
|
+
dateFrom: { type: "string" },
|
|
208
|
+
dateTo: { type: "string" },
|
|
209
|
+
id: { type: "string" },
|
|
210
|
+
description: { type: "string" },
|
|
211
|
+
priceNetto: { type: "number" },
|
|
212
|
+
currency: { type: "string" },
|
|
213
|
+
taxRate: { type: "number" },
|
|
214
|
+
},
|
|
215
|
+
required: [],
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
required: [],
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
required: ["id", "installations"],
|
|
223
|
+
};
|
|
224
|
+
//# sourceMappingURL=PpasDistributionSchema.js.map
|
package/dist/schema-definitions/datasources/enapo/ppas/distribution/PpasDistributionSchema.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PpasDistributionSchema.js","sourceRoot":"","sources":["../../../../../../src/schema-definitions/datasources/enapo/ppas/distribution/PpasDistributionSchema.ts"],"names":[],"mappings":";;;AAiBA,MAAM,+BAA+B,GAA+C;IAChF,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;QACnC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC7B;IACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;CACvB,CAAC;AAEF,MAAM,qCAAqC,GAAqD;IAC5F,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtB,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;QACzC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KACxC;IACD,QAAQ,EAAE,EAAE;CACf,CAAC;AAEF,MAAM,4CAA4C,GAA4D;IAC1G,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1B,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;QAC3C,cAAc,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;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voiceDevice } from "./interfaces/IPpasDistributionInvoiceDevice";
|
|
3
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
4
|
+
export declare class PpasDistributionInvoiceDeviceModel extends Model<IPpasDistributionInvoiceDevice> implements IPpasDistributionInvoiceDevice {
|
|
5
|
+
static TABLE_NAME: string;
|
|
6
|
+
device_serial_number: string;
|
|
7
|
+
invoice_id: string;
|
|
8
|
+
date_from: string;
|
|
9
|
+
date_to: string;
|
|
10
|
+
type: string;
|
|
11
|
+
kind: string;
|
|
12
|
+
reading_type: string;
|
|
13
|
+
reading_from: number;
|
|
14
|
+
reading_to: number;
|
|
15
|
+
consumption: number;
|
|
16
|
+
unit: string;
|
|
17
|
+
meter_reading_type: string;
|
|
18
|
+
gas_consumption_kwh: number;
|
|
19
|
+
volume_coefficient: number;
|
|
20
|
+
combustion_heat: number;
|
|
21
|
+
normometers_nm3: number;
|
|
22
|
+
static attributeModel: ModelAttributes<PpasDistributionInvoiceDeviceModel, IPpasDistributionInvoiceDevice>;
|
|
23
|
+
static jsonSchema: JSONSchemaType<IPpasDistributionInvoiceDevice[]>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PpasDistributionInvoiceDeviceModel = void 0;
|
|
4
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
+
class PpasDistributionInvoiceDeviceModel extends sequelize_1.Model {
|
|
6
|
+
}
|
|
7
|
+
exports.PpasDistributionInvoiceDeviceModel = PpasDistributionInvoiceDeviceModel;
|
|
8
|
+
PpasDistributionInvoiceDeviceModel.TABLE_NAME = "enapo_ppas_distribution_invoice_device";
|
|
9
|
+
PpasDistributionInvoiceDeviceModel.attributeModel = {
|
|
10
|
+
device_serial_number: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
11
|
+
invoice_id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
12
|
+
date_from: { type: sequelize_1.DataTypes.DATEONLY, primaryKey: true },
|
|
13
|
+
date_to: { type: sequelize_1.DataTypes.DATEONLY, primaryKey: true },
|
|
14
|
+
type: { type: sequelize_1.DataTypes.STRING },
|
|
15
|
+
kind: { type: sequelize_1.DataTypes.STRING },
|
|
16
|
+
reading_type: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
17
|
+
reading_from: { type: sequelize_1.DataTypes.DECIMAL },
|
|
18
|
+
reading_to: { type: sequelize_1.DataTypes.DECIMAL },
|
|
19
|
+
consumption: { type: sequelize_1.DataTypes.DECIMAL },
|
|
20
|
+
unit: { type: sequelize_1.DataTypes.STRING },
|
|
21
|
+
meter_reading_type: { type: sequelize_1.DataTypes.STRING },
|
|
22
|
+
gas_consumption_kwh: { type: sequelize_1.DataTypes.DECIMAL },
|
|
23
|
+
volume_coefficient: { type: sequelize_1.DataTypes.DOUBLE },
|
|
24
|
+
combustion_heat: { type: sequelize_1.DataTypes.DOUBLE },
|
|
25
|
+
normometers_nm3: { type: sequelize_1.DataTypes.DOUBLE },
|
|
26
|
+
};
|
|
27
|
+
PpasDistributionInvoiceDeviceModel.jsonSchema = {
|
|
28
|
+
type: "array",
|
|
29
|
+
items: {
|
|
30
|
+
type: "object",
|
|
31
|
+
properties: {
|
|
32
|
+
device_serial_number: { type: "string" },
|
|
33
|
+
invoice_id: { type: "string" },
|
|
34
|
+
date_from: { type: "string" },
|
|
35
|
+
date_to: { type: "string" },
|
|
36
|
+
type: { type: "string" },
|
|
37
|
+
kind: { type: "string" },
|
|
38
|
+
reading_type: { type: "string" },
|
|
39
|
+
reading_from: { type: "number" },
|
|
40
|
+
reading_to: { type: "number" },
|
|
41
|
+
consumption: { type: "number" },
|
|
42
|
+
unit: { type: "string" },
|
|
43
|
+
meter_reading_type: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
44
|
+
gas_consumption_kwh: { type: "number" },
|
|
45
|
+
volume_coefficient: { type: "number" },
|
|
46
|
+
combustion_heat: { type: "number" },
|
|
47
|
+
normometers_nm3: { type: "number" },
|
|
48
|
+
},
|
|
49
|
+
required: ["device_serial_number", "invoice_id", "date_from", "date_to", "reading_type"],
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=PpasDistributionInvoiceDeviceModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PpasDistributionInvoiceDeviceModel.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceDeviceModel.ts"],"names":[],"mappings":";;;AAAA,mEAAwF;AAIxF,MAAa,kCACT,SAAQ,iBAAqC;;AADjD,gFAmEC;AA/DiB,6CAAU,GAAG,wCAAwC,CAAC;AAmBtD,iDAAc,GAAwF;IAChH,oBAAoB,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IAClE,UAAU,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IACxD,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE;IACzD,OAAO,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE;IACvD,IAAI,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IAChC,IAAI,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IAChC,YAAY,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IAC1D,YAAY,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,EAAE;IACzC,UAAU,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,EAAE;IACvC,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,C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AAE,IAAI,EAAE,QAAQ,EAAE;YACvC,kBAAkB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACtC,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACnC,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACtC;QACD,QAAQ,EAAE,CAAC,sBAAsB,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,CAAC;KAC3F;CACJ,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
+
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
+
import { IPpasDistributionInvoice } from "./interfaces/IPpasDistributionInvoice";
|
|
4
|
+
export declare class PpasDistributionInvoiceModel extends Model<IPpasDistributionInvoice> implements IPpasDistributionInvoice {
|
|
5
|
+
static TABLE_NAME: string;
|
|
6
|
+
id: string;
|
|
7
|
+
preceding_id: string;
|
|
8
|
+
customer_id: string;
|
|
9
|
+
customer_company_id: string;
|
|
10
|
+
customer_name: string;
|
|
11
|
+
customer_contract_account_id: string;
|
|
12
|
+
customer_address_street: string;
|
|
13
|
+
customer_address_house_number: string;
|
|
14
|
+
customer_address_house_org_number: string;
|
|
15
|
+
customer_address_city: string;
|
|
16
|
+
customer_address_city_part: string;
|
|
17
|
+
customer_address_post_code: string;
|
|
18
|
+
customer_address_country: string;
|
|
19
|
+
customer_address_ruian_id: number;
|
|
20
|
+
facts_doc_date: string;
|
|
21
|
+
facts_net_date: string;
|
|
22
|
+
facts_billing_transaction: string;
|
|
23
|
+
facts_to_pay_amount: number;
|
|
24
|
+
facts_currency: string;
|
|
25
|
+
facts_price_brutto: number;
|
|
26
|
+
is_canceled: boolean;
|
|
27
|
+
canceled_reason: string;
|
|
28
|
+
eic: string;
|
|
29
|
+
place_id: string;
|
|
30
|
+
installations_billing_class: string;
|
|
31
|
+
installations_measurement_type: string;
|
|
32
|
+
installations_contract_contract_id: string;
|
|
33
|
+
installations_contract_move_in_date: string;
|
|
34
|
+
installations_contract_move_out_date: string;
|
|
35
|
+
installations_tdd_class: string;
|
|
36
|
+
installations_address_street: string;
|
|
37
|
+
installations_address_house_number: string;
|
|
38
|
+
installations_address_house_org_number: string;
|
|
39
|
+
installations_address_city: string;
|
|
40
|
+
installations_address_city_part: string;
|
|
41
|
+
installations_address_post_code: string;
|
|
42
|
+
installations_address_country: string;
|
|
43
|
+
installations_address_ruian_id: number;
|
|
44
|
+
static attributeModel: ModelAttributes<PpasDistributionInvoiceModel, IPpasDistributionInvoice>;
|
|
45
|
+
static jsonSchema: JSONSchemaType<IPpasDistributionInvoice[]>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PpasDistributionInvoiceModel = void 0;
|
|
4
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
+
class PpasDistributionInvoiceModel extends sequelize_1.Model {
|
|
6
|
+
}
|
|
7
|
+
exports.PpasDistributionInvoiceModel = PpasDistributionInvoiceModel;
|
|
8
|
+
PpasDistributionInvoiceModel.TABLE_NAME = "enapo_ppas_distribution_invoice";
|
|
9
|
+
PpasDistributionInvoiceModel.attributeModel = {
|
|
10
|
+
id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
11
|
+
preceding_id: { type: sequelize_1.DataTypes.STRING },
|
|
12
|
+
customer_id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
13
|
+
customer_company_id: { type: sequelize_1.DataTypes.STRING },
|
|
14
|
+
customer_name: { type: sequelize_1.DataTypes.STRING },
|
|
15
|
+
customer_contract_account_id: { type: sequelize_1.DataTypes.STRING },
|
|
16
|
+
customer_address_street: { type: sequelize_1.DataTypes.STRING },
|
|
17
|
+
customer_address_house_number: { type: sequelize_1.DataTypes.STRING },
|
|
18
|
+
customer_address_house_org_number: { type: sequelize_1.DataTypes.STRING },
|
|
19
|
+
customer_address_city: { type: sequelize_1.DataTypes.STRING },
|
|
20
|
+
customer_address_city_part: { type: sequelize_1.DataTypes.STRING },
|
|
21
|
+
customer_address_post_code: { type: sequelize_1.DataTypes.STRING },
|
|
22
|
+
customer_address_country: { type: sequelize_1.DataTypes.STRING },
|
|
23
|
+
customer_address_ruian_id: { type: sequelize_1.DataTypes.BIGINT },
|
|
24
|
+
facts_doc_date: { type: sequelize_1.DataTypes.DATEONLY },
|
|
25
|
+
facts_net_date: { type: sequelize_1.DataTypes.DATEONLY },
|
|
26
|
+
facts_billing_transaction: { type: sequelize_1.DataTypes.STRING },
|
|
27
|
+
facts_to_pay_amount: { type: sequelize_1.DataTypes.DECIMAL },
|
|
28
|
+
facts_currency: { type: sequelize_1.DataTypes.STRING },
|
|
29
|
+
facts_price_brutto: { type: sequelize_1.DataTypes.DECIMAL },
|
|
30
|
+
is_canceled: { type: sequelize_1.DataTypes.BOOLEAN },
|
|
31
|
+
canceled_reason: { type: sequelize_1.DataTypes.STRING },
|
|
32
|
+
eic: { type: sequelize_1.DataTypes.STRING },
|
|
33
|
+
place_id: { type: sequelize_1.DataTypes.STRING },
|
|
34
|
+
installations_billing_class: { type: sequelize_1.DataTypes.STRING },
|
|
35
|
+
installations_measurement_type: { type: sequelize_1.DataTypes.STRING },
|
|
36
|
+
installations_contract_contract_id: { type: sequelize_1.DataTypes.STRING },
|
|
37
|
+
installations_contract_move_in_date: { type: sequelize_1.DataTypes.DATEONLY },
|
|
38
|
+
installations_contract_move_out_date: { type: sequelize_1.DataTypes.DATEONLY },
|
|
39
|
+
installations_tdd_class: { type: sequelize_1.DataTypes.STRING },
|
|
40
|
+
installations_address_street: { type: sequelize_1.DataTypes.STRING },
|
|
41
|
+
installations_address_house_number: { type: sequelize_1.DataTypes.STRING },
|
|
42
|
+
installations_address_house_org_number: { type: sequelize_1.DataTypes.STRING },
|
|
43
|
+
installations_address_city: { type: sequelize_1.DataTypes.STRING },
|
|
44
|
+
installations_address_city_part: { type: sequelize_1.DataTypes.STRING },
|
|
45
|
+
installations_address_post_code: { type: sequelize_1.DataTypes.STRING },
|
|
46
|
+
installations_address_country: { type: sequelize_1.DataTypes.STRING },
|
|
47
|
+
installations_address_ruian_id: { type: sequelize_1.DataTypes.BIGINT },
|
|
48
|
+
};
|
|
49
|
+
PpasDistributionInvoiceModel.jsonSchema = {
|
|
50
|
+
type: "array",
|
|
51
|
+
items: {
|
|
52
|
+
type: "object",
|
|
53
|
+
properties: {
|
|
54
|
+
id: { type: "string" },
|
|
55
|
+
preceding_id: { type: "string", nullable: true },
|
|
56
|
+
customer_id: { type: "string" },
|
|
57
|
+
customer_company_id: { type: "string" },
|
|
58
|
+
customer_name: { type: "string" },
|
|
59
|
+
customer_contract_account_id: { type: "string" },
|
|
60
|
+
customer_address_street: { type: "string" },
|
|
61
|
+
customer_address_house_number: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
62
|
+
customer_address_house_org_number: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
63
|
+
customer_address_city: { type: "string" },
|
|
64
|
+
customer_address_city_part: { type: "string" },
|
|
65
|
+
customer_address_post_code: { type: "string" },
|
|
66
|
+
customer_address_country: { type: "string" },
|
|
67
|
+
customer_address_ruian_id: { type: "number" },
|
|
68
|
+
facts_doc_date: { type: "string" },
|
|
69
|
+
facts_net_date: { type: "string" },
|
|
70
|
+
facts_billing_transaction: { type: "string" },
|
|
71
|
+
facts_to_pay_amount: { type: "number" },
|
|
72
|
+
facts_currency: { type: "string" },
|
|
73
|
+
facts_price_brutto: { type: "number" },
|
|
74
|
+
is_canceled: {
|
|
75
|
+
type: "boolean",
|
|
76
|
+
nullable: true,
|
|
77
|
+
},
|
|
78
|
+
canceled_reason: {
|
|
79
|
+
type: "string",
|
|
80
|
+
nullable: true,
|
|
81
|
+
},
|
|
82
|
+
eic: { type: "string" },
|
|
83
|
+
place_id: { type: "string" },
|
|
84
|
+
installations_billing_class: { type: "string" },
|
|
85
|
+
installations_measurement_type: { type: "string" },
|
|
86
|
+
installations_contract_contract_id: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
87
|
+
installations_contract_move_in_date: { type: "string" },
|
|
88
|
+
installations_contract_move_out_date: { type: "string" },
|
|
89
|
+
installations_tdd_class: { type: "string" },
|
|
90
|
+
installations_address_street: { type: "string" },
|
|
91
|
+
installations_address_house_number: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
92
|
+
installations_address_house_org_number: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
93
|
+
installations_address_city: { type: "string" },
|
|
94
|
+
installations_address_city_part: { type: "string" },
|
|
95
|
+
installations_address_post_code: { type: "string" },
|
|
96
|
+
installations_address_country: { type: "string" },
|
|
97
|
+
installations_address_ruian_id: { type: "number" },
|
|
98
|
+
},
|
|
99
|
+
required: ["id", "customer_id"],
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=PpasDistributionInvoiceModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PpasDistributionInvoiceModel.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/models/enapo/ppas/PpasDistributionInvoiceModel.ts"],"names":[],"mappings":";;;AACA,mEAAwF;AAGxF,MAAa,4BAA6B,SAAQ,iBAA+B;;AAAjF,oEAwIC;AAvIiB,uCAAU,GAAG,iCAAiC,CAAC;AAyC/C,2CAAc,GAA4E;IACpG,EAAE,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IAChD,YAAY,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IACxC,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IACzD,mBAAmB,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,E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ributes } from "@golemio/core/dist/shared/sequelize";
|
|
2
|
+
import { IPpasDistributionInvoicePrice } from "./interfaces/IPpasDistributionInvoicePrice";
|
|
3
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
4
|
+
export declare class PpasDistributionInvoicePriceModel extends Model<IPpasDistributionInvoicePrice> implements IPpasDistributionInvoicePrice {
|
|
5
|
+
static TABLE_NAME: string;
|
|
6
|
+
invoice_id: string;
|
|
7
|
+
customer_id: string;
|
|
8
|
+
date_from: string;
|
|
9
|
+
date_to: string;
|
|
10
|
+
kind: string;
|
|
11
|
+
description: string;
|
|
12
|
+
price_group: string;
|
|
13
|
+
quantity: number;
|
|
14
|
+
unit: string;
|
|
15
|
+
unit_price: number;
|
|
16
|
+
time_slot: number;
|
|
17
|
+
price_netto: number;
|
|
18
|
+
price_type: string;
|
|
19
|
+
currency: string;
|
|
20
|
+
tax_rate: number;
|
|
21
|
+
static attributeModel: ModelAttributes<PpasDistributionInvoicePriceModel, IPpasDistributionInvoicePrice>;
|
|
22
|
+
static jsonSchema: JSONSchemaType<IPpasDistributionInvoicePrice[]>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PpasDistributionInvoicePriceModel = void 0;
|
|
4
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
+
class PpasDistributionInvoicePriceModel extends sequelize_1.Model {
|
|
6
|
+
}
|
|
7
|
+
exports.PpasDistributionInvoicePriceModel = PpasDistributionInvoicePriceModel;
|
|
8
|
+
PpasDistributionInvoicePriceModel.TABLE_NAME = "enapo_ppas_distribution_invoice_price";
|
|
9
|
+
PpasDistributionInvoicePriceModel.attributeModel = {
|
|
10
|
+
invoice_id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
11
|
+
customer_id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
12
|
+
date_from: { type: sequelize_1.DataTypes.DATEONLY, primaryKey: true },
|
|
13
|
+
date_to: { type: sequelize_1.DataTypes.DATEONLY, primaryKey: true },
|
|
14
|
+
kind: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
15
|
+
description: { type: sequelize_1.DataTypes.STRING },
|
|
16
|
+
price_group: { type: sequelize_1.DataTypes.STRING },
|
|
17
|
+
quantity: { type: sequelize_1.DataTypes.DECIMAL },
|
|
18
|
+
unit: { type: sequelize_1.DataTypes.STRING },
|
|
19
|
+
unit_price: { type: sequelize_1.DataTypes.DECIMAL },
|
|
20
|
+
time_slot: { type: sequelize_1.DataTypes.INTEGER },
|
|
21
|
+
price_netto: { type: sequelize_1.DataTypes.DECIMAL },
|
|
22
|
+
price_type: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
23
|
+
currency: { type: sequelize_1.DataTypes.STRING },
|
|
24
|
+
tax_rate: { type: sequelize_1.DataTypes.DECIMAL },
|
|
25
|
+
};
|
|
26
|
+
PpasDistributionInvoicePriceModel.jsonSchema = {
|
|
27
|
+
type: "array",
|
|
28
|
+
items: {
|
|
29
|
+
type: "object",
|
|
30
|
+
properties: {
|
|
31
|
+
invoice_id: { type: "string" },
|
|
32
|
+
customer_id: { type: "string" },
|
|
33
|
+
date_from: { type: "string" },
|
|
34
|
+
date_to: { type: "string" },
|
|
35
|
+
kind: { type: "string" },
|
|
36
|
+
description: { type: "string" },
|
|
37
|
+
price_group: { type: "string" },
|
|
38
|
+
quantity: { type: "number" },
|
|
39
|
+
unit: { type: "string" },
|
|
40
|
+
unit_price: { type: "number" },
|
|
41
|
+
time_slot: { type: "number" },
|
|
42
|
+
price_netto: { type: "number" },
|
|
43
|
+
price_type: { type: "string" },
|
|
44
|
+
currency: { type: "string" },
|
|
45
|
+
tax_rate: { type: "number" },
|
|
46
|
+
},
|
|
47
|
+
required: ["invoice_id", "customer_id", "date_from", "date_to", "kind", "price_type"],
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=PpasDistributionInvoicePriceModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PpasDistributionInvoicePriceModel.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/models/enapo/ppas/PpasDistributionInvoicePriceModel.ts"],"names":[],"mappings":";;;AAAA,mEAAwF;AAIxF,MAAa,iCACT,SAAQ,iBAAoC;;AADhD,8EAgEC;AA5DiB,4CAAU,GAAG,uCAAuC,CAAC;AAkBrD,gDAAc,GAAsF;IAC9G,UAAU,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IACxD,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IACzD,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE;IACzD,OAAO,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE;IACvD,IAAI,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IAClD,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IACvC,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IACvC,QAAQ,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,EAAE;IACrC,IAAI,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,EAAE;IAChC,UAAU,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,EAAE;IACvC,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,EAAE;IACtC,WAAW,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,OAAO,EAAE;IACxC,UAAU,EAAE,EAAE,IAAI,EAAE,qBAA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
+
id: string;
|
|
3
|
+
preceding_id?: string;
|
|
4
|
+
customer_id: string;
|
|
5
|
+
customer_company_id: string;
|
|
6
|
+
customer_name: string;
|
|
7
|
+
customer_contract_account_id: string;
|
|
8
|
+
customer_address_street: string;
|
|
9
|
+
customer_address_house_number: string | null;
|
|
10
|
+
customer_address_house_org_number: string | null;
|
|
11
|
+
customer_address_city: string;
|
|
12
|
+
customer_address_city_part: string;
|
|
13
|
+
customer_address_post_code: string;
|
|
14
|
+
customer_address_country: string;
|
|
15
|
+
customer_address_ruian_id: number;
|
|
16
|
+
facts_doc_date: string;
|
|
17
|
+
facts_net_date: string;
|
|
18
|
+
facts_billing_transaction: string;
|
|
19
|
+
facts_to_pay_amount: number;
|
|
20
|
+
facts_currency: string;
|
|
21
|
+
facts_price_brutto: number;
|
|
22
|
+
is_canceled?: boolean;
|
|
23
|
+
canceled_reason?: string;
|
|
24
|
+
eic: string;
|
|
25
|
+
place_id: string;
|
|
26
|
+
installations_billing_class: string;
|
|
27
|
+
installations_measurement_type: string;
|
|
28
|
+
installations_contract_contract_id: string | null;
|
|
29
|
+
installations_contract_move_in_date: string;
|
|
30
|
+
installations_contract_move_out_date: string;
|
|
31
|
+
installations_tdd_class: string;
|
|
32
|
+
installations_address_street: string;
|
|
33
|
+
installations_address_house_number: string | null;
|
|
34
|
+
installations_address_house_org_number: string | null;
|
|
35
|
+
installations_address_city: string;
|
|
36
|
+
installations_address_city_part: string;
|
|
37
|
+
installations_address_post_code: string;
|
|
38
|
+
installations_address_country: string;
|
|
39
|
+
installations_address_ruian_id: number;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPpasDistributionInvoice.js","sourceRoot":"","sources":["../../../../../../src/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoice.ts"],"names":[],"mappings":""}
|
package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoiceDevice.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface IPpasDistributionInvoiceDevice {
|
|
2
|
+
device_serial_number: string;
|
|
3
|
+
invoice_id: string;
|
|
4
|
+
date_from: string;
|
|
5
|
+
date_to: string;
|
|
6
|
+
reading_type: string;
|
|
7
|
+
type: string;
|
|
8
|
+
kind: string;
|
|
9
|
+
reading_from: number;
|
|
10
|
+
reading_to: number;
|
|
11
|
+
consumption: number;
|
|
12
|
+
unit: string;
|
|
13
|
+
meter_reading_type: string | null;
|
|
14
|
+
gas_consumption_kwh: number;
|
|
15
|
+
volume_coefficient: number;
|
|
16
|
+
combustion_heat: number;
|
|
17
|
+
normometers_nm3: number;
|
|
18
|
+
}
|
package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoiceDevice.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPpasDistributionInvoiceDevice.js","sourceRoot":"","sources":["../../../../../../src/schema-definitions/models/enapo/ppas/interfaces/IPpasDistributionInvoiceDevice.ts"],"names":[],"mappings":""}
|