@golemio/energetics 1.10.1-dev.2604738012 → 1.10.1-dev.2634930492
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/20260619000001-ppas-commercial-invoice.js +47 -0
- package/db/migrations/postgresql/sqls/20260619000001-ppas-commercial-invoice-down.sql +4 -0
- package/db/migrations/postgresql/sqls/20260619000001-ppas-commercial-invoice-up.sql +99 -0
- package/dist/integration-engine/commodity-providers/datasources/ppas-ave-api/helpers/PpasAveApiHelper.js +1 -1
- package/dist/integration-engine/commodity-providers/datasources/ppas-ave-api/helpers/PpasAveApiHelper.js.map +1 -1
- package/dist/integration-engine/enapo/datasources/ppas/AbstractPpasDatasource.d.ts +16 -0
- package/dist/integration-engine/enapo/datasources/ppas/AbstractPpasDatasource.js +88 -0
- package/dist/integration-engine/enapo/datasources/ppas/AbstractPpasDatasource.js.map +1 -0
- package/dist/integration-engine/enapo/datasources/ppas/commercial/PpasCommercialDatasource.d.ts +13 -0
- package/dist/integration-engine/enapo/datasources/ppas/commercial/PpasCommercialDatasource.js +66 -0
- package/dist/integration-engine/enapo/datasources/ppas/commercial/PpasCommercialDatasource.js.map +1 -0
- package/dist/integration-engine/enapo/datasources/ppas/distribution/PpasDistributionDatasource.d.ts +3 -14
- package/dist/integration-engine/enapo/datasources/ppas/distribution/PpasDistributionDatasource.js +6 -86
- package/dist/integration-engine/enapo/datasources/ppas/distribution/PpasDistributionDatasource.js.map +1 -1
- package/dist/integration-engine/enapo/ioc/Di.js +14 -0
- package/dist/integration-engine/enapo/ioc/Di.js.map +1 -1
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.d.ts +7 -0
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.js +7 -0
- package/dist/integration-engine/enapo/ioc/EnapoWorkerContainerToken.js.map +1 -1
- package/dist/integration-engine/enapo/repositories/ppas/PpasCommercialInvoiceDeviceRepository.d.ts +7 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasCommercialInvoiceDeviceRepository.js +35 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasCommercialInvoiceDeviceRepository.js.map +1 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasCommercialInvoiceInstallationRepository.d.ts +7 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasCommercialInvoiceInstallationRepository.js +35 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasCommercialInvoiceInstallationRepository.js.map +1 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasCommercialInvoicePriceRepository.d.ts +7 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasCommercialInvoicePriceRepository.js +35 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasCommercialInvoicePriceRepository.js.map +1 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasCommercialInvoiceRepository.d.ts +7 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasCommercialInvoiceRepository.js +35 -0
- package/dist/integration-engine/enapo/repositories/ppas/PpasCommercialInvoiceRepository.js.map +1 -0
- package/dist/integration-engine/enapo/transformations/ppas/PpasCommercialTransformation.d.ts +28 -0
- package/dist/integration-engine/enapo/transformations/ppas/PpasCommercialTransformation.js +184 -0
- package/dist/integration-engine/enapo/transformations/ppas/PpasCommercialTransformation.js.map +1 -0
- package/dist/integration-engine/enapo/transformations/ppas/PpasDistributionTransformation.d.ts +0 -18
- package/dist/integration-engine/enapo/transformations/ppas/PpasDistributionTransformation.js +14 -82
- package/dist/integration-engine/enapo/transformations/ppas/PpasDistributionTransformation.js.map +1 -1
- package/dist/integration-engine/enapo/transformations/ppas/PpasInvoicePriceTypeHelper.d.ts +33 -0
- package/dist/integration-engine/enapo/transformations/ppas/PpasInvoicePriceTypeHelper.js +87 -0
- package/dist/integration-engine/enapo/transformations/ppas/PpasInvoicePriceTypeHelper.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/IEnapoPpasCommercialParams.d.ts +4 -0
- package/dist/integration-engine/enapo/workers/interfaces/IEnapoPpasCommercialParams.js +3 -0
- package/dist/integration-engine/enapo/workers/interfaces/IEnapoPpasCommercialParams.js.map +1 -0
- package/dist/integration-engine/enapo/workers/schema/EnapoPpasCommercialParamsSchema.d.ts +5 -0
- package/dist/integration-engine/enapo/workers/schema/EnapoPpasCommercialParamsSchema.js +29 -0
- package/dist/integration-engine/enapo/workers/schema/EnapoPpasCommercialParamsSchema.js.map +1 -0
- package/dist/integration-engine/enapo/workers/task/EnapoPpasCommercialTask.d.ts +34 -0
- package/dist/integration-engine/enapo/workers/task/EnapoPpasCommercialTask.js +181 -0
- package/dist/integration-engine/enapo/workers/task/EnapoPpasCommercialTask.js.map +1 -0
- package/dist/integration-engine/enapo/workers/task/EnapoPpasDistributionTask.js.map +1 -1
- package/dist/schema-definitions/datasources/enapo/ppas/IPpasInvoiceCommon.d.ts +23 -0
- package/dist/schema-definitions/datasources/enapo/ppas/IPpasInvoiceCommon.js +3 -0
- package/dist/schema-definitions/datasources/enapo/ppas/IPpasInvoiceCommon.js.map +1 -0
- package/dist/schema-definitions/datasources/enapo/ppas/commercial/IPpasCommercialInvoiceDetailInput.d.ts +62 -0
- package/dist/schema-definitions/datasources/enapo/ppas/commercial/IPpasCommercialInvoiceDetailInput.js +3 -0
- package/dist/schema-definitions/datasources/enapo/ppas/commercial/IPpasCommercialInvoiceDetailInput.js.map +1 -0
- package/dist/schema-definitions/datasources/enapo/ppas/commercial/IPpasCommercialInvoiceListInput.d.ts +26 -0
- package/dist/schema-definitions/datasources/enapo/ppas/commercial/IPpasCommercialInvoiceListInput.js +3 -0
- package/dist/schema-definitions/datasources/enapo/ppas/commercial/IPpasCommercialInvoiceListInput.js.map +1 -0
- package/dist/schema-definitions/datasources/enapo/ppas/commercial/PpasCommercialSchema.d.ts +5 -0
- package/dist/schema-definitions/datasources/enapo/ppas/commercial/PpasCommercialSchema.js +185 -0
- package/dist/schema-definitions/datasources/enapo/ppas/commercial/PpasCommercialSchema.js.map +1 -0
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/IPpasDistributionInvoiceDetailInput.d.ts +7 -6
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/IPpasDistributionInvoiceListInput.d.ts +5 -27
- package/dist/schema-definitions/datasources/enapo/ppas/distribution/PpasDistributionSchema.js.map +1 -1
- package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoiceDeviceModel.d.ts +24 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoiceDeviceModel.js +54 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoiceDeviceModel.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoiceInstallationModel.d.ts +26 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoiceInstallationModel.js +56 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoiceInstallationModel.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoiceModel.d.ts +30 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoiceModel.js +64 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoiceModel.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoicePriceModel.d.ts +23 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoicePriceModel.js +52 -0
- package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoicePriceModel.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasCommercialInvoice.d.ts +24 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasCommercialInvoice.js +3 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasCommercialInvoice.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasCommercialInvoiceDevice.d.ts +19 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasCommercialInvoiceDevice.js +3 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasCommercialInvoiceDevice.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasCommercialInvoiceInstallation.d.ts +20 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasCommercialInvoiceInstallation.js +3 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasCommercialInvoiceInstallation.js.map +1 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasCommercialInvoicePrice.d.ts +18 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasCommercialInvoicePrice.js +3 -0
- package/dist/schema-definitions/models/enapo/ppas/interfaces/IPpasCommercialInvoicePrice.js.map +1 -0
- package/docs/implementation_documentation.md +60 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnapoPpasDistributionTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/workers/task/EnapoPpasDistributionTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAwD;AACxD,+GAAgH;AAChH,mFAAoF;AACpF,6HAA8H;AAC9H,2HAA4H;AAC5H,iHAAkH;AAClH,8GAA+G;AAG/G,wEAAqE;
|
|
1
|
+
{"version":3,"file":"EnapoPpasDistributionTask.js","sourceRoot":"","sources":["../../../../../src/integration-engine/enapo/workers/task/EnapoPpasDistributionTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAwD;AACxD,+GAAgH;AAChH,mFAAoF;AACpF,6HAA8H;AAC9H,2HAA4H;AAC5H,iHAAkH;AAClH,8GAA+G;AAG/G,wEAAqE;AACrE,8EAAqE;AACrE,6EAA8F;AAC9F,2DAA2D;AAC3D,iEAAwE;AAExE,mGAAgG;AAGzF,IAAM,yBAAyB,uCAA/B,MAAM,yBAA0B,SAAQ,iCAA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C,qDAAyB,CAAC,+BAA+B,CAAC,CAAA;IACjE,WAAA,IAAA,iBAAM,EAAC,qDAAyB,CAAC,uCAAuC,CAAC,CAAA;IAEzE,WAAA,IAAA,iBAAM,EAAC,qDAAyB,CAAC,sCAAsC,CAAC,CAAA;IAExE,WAAA,IAAA,iBAAM,EAAC,qDAAyB,CAAC,iCAAiC,CAAC,CAAA;IAEnE,WAAA,IAAA,iBAAM,EAAC,qDAAyB,CAAC,8BAA8B,CAAC,CAAA;qDAPwB,uDAA0B;QAEhE,iFAAuC;QAExC,+EAAsC;QAE3C,qEAAiC;QAEpC,+DAA8B;GAjBnE,yBAAyB,CA2ErC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface IPpasInvoiceId {
|
|
2
|
+
num: string | number;
|
|
3
|
+
intNum: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IPpasInvoiceCustomer {
|
|
6
|
+
id: string;
|
|
7
|
+
companyId: string | number;
|
|
8
|
+
name: string;
|
|
9
|
+
contractAccountId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IPpasInvoiceFacts {
|
|
12
|
+
docDate: string;
|
|
13
|
+
netDate: string;
|
|
14
|
+
billingTransaction: string;
|
|
15
|
+
toPayAmount: number;
|
|
16
|
+
currency: string;
|
|
17
|
+
priceBrutto: number;
|
|
18
|
+
}
|
|
19
|
+
export interface IPpasInvoiceCancellation {
|
|
20
|
+
isCanceled: boolean;
|
|
21
|
+
id: IPpasInvoiceId;
|
|
22
|
+
reason: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPpasInvoiceCommon.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/datasources/enapo/ppas/IPpasInvoiceCommon.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { IPpasInvoiceCancellation, IPpasInvoiceCustomer, IPpasInvoiceFacts, IPpasInvoiceId } from "../IPpasInvoiceCommon";
|
|
2
|
+
import { ICommercialInvoiceAddress } from "./IPpasCommercialInvoiceListInput";
|
|
3
|
+
export type CommercialReadingType = {
|
|
4
|
+
dateFrom?: string;
|
|
5
|
+
dateTo?: string;
|
|
6
|
+
kind?: string;
|
|
7
|
+
readingFrom?: number;
|
|
8
|
+
readingTo?: number;
|
|
9
|
+
consumption?: number;
|
|
10
|
+
unit?: string;
|
|
11
|
+
mrKind?: string | number;
|
|
12
|
+
gas?: {
|
|
13
|
+
consumptionKwh: number;
|
|
14
|
+
volumeCoefficient: number;
|
|
15
|
+
combustionHeat: number;
|
|
16
|
+
normometersNm3: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type CommercialReadings = CommercialReadingType | CommercialReadingType[];
|
|
20
|
+
export type CommercialDeviceType = {
|
|
21
|
+
number: string;
|
|
22
|
+
type: string;
|
|
23
|
+
readings: CommercialReadings;
|
|
24
|
+
};
|
|
25
|
+
export type CommercialDevices = CommercialDeviceType | CommercialDeviceType[];
|
|
26
|
+
export type CommercialInstallationType = {
|
|
27
|
+
pointOfDelivery: string;
|
|
28
|
+
installation: string;
|
|
29
|
+
billingClass: string;
|
|
30
|
+
measurementType: string;
|
|
31
|
+
contract: {
|
|
32
|
+
id: string | number;
|
|
33
|
+
moveInDate: string;
|
|
34
|
+
moveOutDate: string;
|
|
35
|
+
};
|
|
36
|
+
tddClass: string;
|
|
37
|
+
address: ICommercialInvoiceAddress;
|
|
38
|
+
devices: CommercialDevices;
|
|
39
|
+
prices: Array<{
|
|
40
|
+
dateFrom: string;
|
|
41
|
+
dateTo: string;
|
|
42
|
+
kind: string;
|
|
43
|
+
description: string;
|
|
44
|
+
priceGroup: string;
|
|
45
|
+
quantity: number;
|
|
46
|
+
unit: string;
|
|
47
|
+
unitPrice: number;
|
|
48
|
+
timeSlot?: number | string | null;
|
|
49
|
+
priceNetto: number;
|
|
50
|
+
currency: string;
|
|
51
|
+
taxRate: number;
|
|
52
|
+
}>;
|
|
53
|
+
};
|
|
54
|
+
export interface IPpasCommercialInvoiceDetailInput {
|
|
55
|
+
id: IPpasInvoiceId;
|
|
56
|
+
precedingId?: IPpasInvoiceId;
|
|
57
|
+
customer: IPpasInvoiceCustomer;
|
|
58
|
+
customerAddress: ICommercialInvoiceAddress;
|
|
59
|
+
facts: IPpasInvoiceFacts;
|
|
60
|
+
cancellation?: IPpasInvoiceCancellation | null;
|
|
61
|
+
installations: CommercialInstallationType[];
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPpasCommercialInvoiceDetailInput.js","sourceRoot":"","sources":["../../../../../../src/schema-definitions/datasources/enapo/ppas/commercial/IPpasCommercialInvoiceDetailInput.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IPpasInvoiceCancellation, IPpasInvoiceCustomer, IPpasInvoiceId } from "../IPpasInvoiceCommon";
|
|
2
|
+
export interface ICommercialInvoiceAddress {
|
|
3
|
+
street: string;
|
|
4
|
+
houseNumber: number | string;
|
|
5
|
+
houseOrgNumber: number | string;
|
|
6
|
+
city: string;
|
|
7
|
+
cityPart: string;
|
|
8
|
+
postCode: string;
|
|
9
|
+
country: string;
|
|
10
|
+
ruianId: number | string;
|
|
11
|
+
}
|
|
12
|
+
export interface IPpasCommercialInvoiceListFacts {
|
|
13
|
+
docDate: string;
|
|
14
|
+
netDate: string;
|
|
15
|
+
billingTransaction: string;
|
|
16
|
+
toPayAmount: number;
|
|
17
|
+
currency: string;
|
|
18
|
+
priceBrutto?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface IPpasCommercialInvoiceListInput {
|
|
21
|
+
id: IPpasInvoiceId;
|
|
22
|
+
customer: IPpasInvoiceCustomer;
|
|
23
|
+
customerAddress: ICommercialInvoiceAddress;
|
|
24
|
+
facts: IPpasCommercialInvoiceListFacts;
|
|
25
|
+
cancellation?: IPpasInvoiceCancellation | null;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPpasCommercialInvoiceListInput.js","sourceRoot":"","sources":["../../../../../../src/schema-definitions/datasources/enapo/ppas/commercial/IPpasCommercialInvoiceListInput.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
+
import { IPpasCommercialInvoiceDetailInput } from "./IPpasCommercialInvoiceDetailInput";
|
|
3
|
+
import { IPpasCommercialInvoiceListInput } from "./IPpasCommercialInvoiceListInput";
|
|
4
|
+
export declare const ppasCommercialInvoiceListInputJsonSchema: JSONSchemaType<IPpasCommercialInvoiceListInput | IPpasCommercialInvoiceListInput[]>;
|
|
5
|
+
export declare const ppasCommercialInvoiceDetailInputJsonSchema: JSONSchemaType<IPpasCommercialInvoiceDetailInput>;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ppasCommercialInvoiceDetailInputJsonSchema = exports.ppasCommercialInvoiceListInputJsonSchema = void 0;
|
|
4
|
+
const commercialInvoiceIdSchema = {
|
|
5
|
+
type: "object",
|
|
6
|
+
properties: {
|
|
7
|
+
num: { type: ["string", "number"] },
|
|
8
|
+
intNum: { type: "string" },
|
|
9
|
+
},
|
|
10
|
+
required: ["intNum"],
|
|
11
|
+
};
|
|
12
|
+
const commercialInvoiceCustomerSchema = {
|
|
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 commercialInvoiceAddressSchema = {
|
|
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: ["string", "number"] },
|
|
33
|
+
},
|
|
34
|
+
required: [],
|
|
35
|
+
};
|
|
36
|
+
const commercialInvoiceListFactsSchema = {
|
|
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", nullable: true },
|
|
45
|
+
},
|
|
46
|
+
required: [],
|
|
47
|
+
};
|
|
48
|
+
const commercialInvoiceDetailFactsSchema = {
|
|
49
|
+
type: "object",
|
|
50
|
+
properties: {
|
|
51
|
+
docDate: { type: "string" },
|
|
52
|
+
netDate: { type: "string" },
|
|
53
|
+
billingTransaction: { type: "string" },
|
|
54
|
+
toPayAmount: { type: "number" },
|
|
55
|
+
currency: { type: "string" },
|
|
56
|
+
priceBrutto: { type: "number" },
|
|
57
|
+
},
|
|
58
|
+
required: [],
|
|
59
|
+
};
|
|
60
|
+
const commercialInvoiceCancellationSchema = {
|
|
61
|
+
type: "object",
|
|
62
|
+
properties: {
|
|
63
|
+
isCanceled: { type: "boolean" },
|
|
64
|
+
id: commercialInvoiceIdSchema,
|
|
65
|
+
reason: { type: "string" },
|
|
66
|
+
},
|
|
67
|
+
required: [],
|
|
68
|
+
};
|
|
69
|
+
const commercialInvoiceListItemSchema = {
|
|
70
|
+
type: "object",
|
|
71
|
+
properties: {
|
|
72
|
+
id: commercialInvoiceIdSchema,
|
|
73
|
+
customer: commercialInvoiceCustomerSchema,
|
|
74
|
+
customerAddress: commercialInvoiceAddressSchema,
|
|
75
|
+
facts: commercialInvoiceListFactsSchema,
|
|
76
|
+
cancellation: { ...commercialInvoiceCancellationSchema, nullable: true },
|
|
77
|
+
},
|
|
78
|
+
required: [],
|
|
79
|
+
};
|
|
80
|
+
// Commercial list API returns a plain array at root (no InvoiceList wrapper), but a single object
|
|
81
|
+
// when only one invoice matches the query — accept both, caller normalizes to an array.
|
|
82
|
+
exports.ppasCommercialInvoiceListInputJsonSchema = {
|
|
83
|
+
anyOf: [{ type: "array", items: commercialInvoiceListItemSchema }, commercialInvoiceListItemSchema],
|
|
84
|
+
};
|
|
85
|
+
const commercialReadingSchema = {
|
|
86
|
+
type: "object",
|
|
87
|
+
properties: {
|
|
88
|
+
dateFrom: { type: "string", nullable: true },
|
|
89
|
+
dateTo: { type: "string", nullable: true },
|
|
90
|
+
kind: { type: "string", nullable: true },
|
|
91
|
+
readingFrom: { type: "number", nullable: true },
|
|
92
|
+
readingTo: { type: "number", nullable: true },
|
|
93
|
+
consumption: { type: "number", nullable: true },
|
|
94
|
+
unit: { type: "string", nullable: true },
|
|
95
|
+
mrKind: { type: ["string", "number"], nullable: true },
|
|
96
|
+
gas: {
|
|
97
|
+
type: "object",
|
|
98
|
+
nullable: true,
|
|
99
|
+
properties: {
|
|
100
|
+
consumptionKwh: { type: "number" },
|
|
101
|
+
volumeCoefficient: { type: "number" },
|
|
102
|
+
combustionHeat: { type: "number" },
|
|
103
|
+
normometersNm3: { type: "number" },
|
|
104
|
+
},
|
|
105
|
+
required: [],
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
required: [],
|
|
109
|
+
};
|
|
110
|
+
const commercialReadingsSchema = {
|
|
111
|
+
anyOf: [{ type: "array", items: commercialReadingSchema }, commercialReadingSchema],
|
|
112
|
+
};
|
|
113
|
+
const commercialDeviceSchema = {
|
|
114
|
+
type: "object",
|
|
115
|
+
additionalProperties: false,
|
|
116
|
+
properties: {
|
|
117
|
+
number: { type: "string" },
|
|
118
|
+
type: { type: "string" },
|
|
119
|
+
readings: commercialReadingsSchema,
|
|
120
|
+
},
|
|
121
|
+
required: ["number"],
|
|
122
|
+
};
|
|
123
|
+
const commercialDevicesSchema = {
|
|
124
|
+
anyOf: [{ type: "array", items: commercialDeviceSchema }, commercialDeviceSchema],
|
|
125
|
+
};
|
|
126
|
+
const commercialInstallationSchema = {
|
|
127
|
+
type: "object",
|
|
128
|
+
properties: {
|
|
129
|
+
pointOfDelivery: { type: "string" },
|
|
130
|
+
installation: { type: "string" },
|
|
131
|
+
billingClass: { type: "string" },
|
|
132
|
+
measurementType: { type: "string" },
|
|
133
|
+
contract: {
|
|
134
|
+
type: "object",
|
|
135
|
+
properties: {
|
|
136
|
+
id: { type: ["string", "number"] },
|
|
137
|
+
moveInDate: { type: "string" },
|
|
138
|
+
moveOutDate: { type: "string" },
|
|
139
|
+
},
|
|
140
|
+
required: [],
|
|
141
|
+
},
|
|
142
|
+
tddClass: { type: "string" },
|
|
143
|
+
address: commercialInvoiceAddressSchema,
|
|
144
|
+
devices: commercialDevicesSchema,
|
|
145
|
+
prices: {
|
|
146
|
+
type: "array",
|
|
147
|
+
items: {
|
|
148
|
+
type: "object",
|
|
149
|
+
properties: {
|
|
150
|
+
dateFrom: { type: "string" },
|
|
151
|
+
dateTo: { type: "string" },
|
|
152
|
+
kind: { type: "string" },
|
|
153
|
+
description: { type: "string" },
|
|
154
|
+
priceGroup: { type: "string" },
|
|
155
|
+
quantity: { type: "number" },
|
|
156
|
+
unit: { type: "string" },
|
|
157
|
+
unitPrice: { type: "number" },
|
|
158
|
+
timeSlot: { type: ["number", "string"], nullable: true },
|
|
159
|
+
priceNetto: { type: "number" },
|
|
160
|
+
currency: { type: "string" },
|
|
161
|
+
taxRate: { type: "number" },
|
|
162
|
+
},
|
|
163
|
+
required: [],
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
required: [],
|
|
168
|
+
};
|
|
169
|
+
exports.ppasCommercialInvoiceDetailInputJsonSchema = {
|
|
170
|
+
type: "object",
|
|
171
|
+
properties: {
|
|
172
|
+
id: commercialInvoiceIdSchema,
|
|
173
|
+
precedingId: { ...commercialInvoiceIdSchema, nullable: true },
|
|
174
|
+
customer: commercialInvoiceCustomerSchema,
|
|
175
|
+
customerAddress: commercialInvoiceAddressSchema,
|
|
176
|
+
facts: commercialInvoiceDetailFactsSchema,
|
|
177
|
+
cancellation: { ...commercialInvoiceCancellationSchema, nullable: true },
|
|
178
|
+
installations: {
|
|
179
|
+
type: "array",
|
|
180
|
+
items: commercialInstallationSchema,
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
required: ["id", "installations"],
|
|
184
|
+
};
|
|
185
|
+
//# sourceMappingURL=PpasCommercialSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PpasCommercialSchema.js","sourceRoot":"","sources":["../../../../../../src/schema-definitions/datasources/enapo/ppas/commercial/PpasCommercialSchema.ts"],"names":[],"mappings":";;;AAgBA,MAAM,yBAAyB,GAAmC;IAC9D,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,+BAA+B,GAAyC;IAC1E,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,8BAA8B,GAA8C;IAC9E,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,MAAM,EAAE,EAAE,IAA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BACxD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC9B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC5B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBAC9B;gBACD,QAAQ,EAAE,EAAE;aACf;SACJ;KACJ;IACD,QAAQ,EAAE,EAAE;CACf,CAAC;AAEW,QAAA,0CAA0C,GAAsD;IACzG,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,EAAE,EAAE,yBAAyB;QAC7B,WAAW,EAAE,EAAE,GAAG,yBAAyB,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7D,QAAQ,EAAE,+BAA+B;QACzC,eAAe,EAAE,8BAA8B;QAC/C,KAAK,EAAE,kCAAkC;QACzC,YAAY,EAAE,EAAE,GAAG,mCAAmC,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxE,aAAa,EAAE;YACX,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,4BAA4B;SACtC;KACJ;IACD,QAAQ,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC;CACpC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IPpasInvoiceCancellation, IPpasInvoiceCustomer, IPpasInvoiceFacts, IPpasInvoiceId } from "../IPpasInvoiceCommon";
|
|
2
|
+
import { IPpasDistributionInvoiceCustomerAddress } from "./IPpasDistributionInvoiceListInput";
|
|
2
3
|
export type ReadingType = {
|
|
3
4
|
dateFrom: string;
|
|
4
5
|
dateTo: string;
|
|
@@ -23,12 +24,12 @@ export type DeviceType = {
|
|
|
23
24
|
};
|
|
24
25
|
export type Devices = DeviceType | DeviceType[];
|
|
25
26
|
export interface IPpasDistributionInvoiceDetailInput {
|
|
26
|
-
id:
|
|
27
|
-
precedingId:
|
|
28
|
-
customer:
|
|
27
|
+
id: IPpasInvoiceId;
|
|
28
|
+
precedingId: IPpasInvoiceId;
|
|
29
|
+
customer: IPpasInvoiceCustomer;
|
|
29
30
|
customerAddress: IPpasDistributionInvoiceCustomerAddress;
|
|
30
|
-
facts:
|
|
31
|
-
cancellation?:
|
|
31
|
+
facts: IPpasInvoiceFacts;
|
|
32
|
+
cancellation?: IPpasInvoiceCancellation;
|
|
32
33
|
installations: {
|
|
33
34
|
pointOfDelivery: string;
|
|
34
35
|
installation: string;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
num: string | number;
|
|
3
|
-
intNum: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IPpasDistributionInvoiceCustomer {
|
|
6
|
-
id: string;
|
|
7
|
-
companyId: string | number;
|
|
8
|
-
name: string;
|
|
9
|
-
contractAccountId: string;
|
|
10
|
-
}
|
|
1
|
+
import { IPpasInvoiceCancellation, IPpasInvoiceCustomer, IPpasInvoiceFacts, IPpasInvoiceId } from "../IPpasInvoiceCommon";
|
|
11
2
|
export interface IPpasDistributionInvoiceCustomerAddress {
|
|
12
3
|
street: string;
|
|
13
4
|
houseNumber: number | string;
|
|
@@ -18,23 +9,10 @@ export interface IPpasDistributionInvoiceCustomerAddress {
|
|
|
18
9
|
country: string;
|
|
19
10
|
ruianId: number;
|
|
20
11
|
}
|
|
21
|
-
export interface IPpasDistributionInvoiceFacts {
|
|
22
|
-
docDate: string;
|
|
23
|
-
netDate: string;
|
|
24
|
-
billingTransaction: string;
|
|
25
|
-
toPayAmount: number;
|
|
26
|
-
currency: string;
|
|
27
|
-
priceBrutto: number;
|
|
28
|
-
}
|
|
29
|
-
export interface IPpasDistributionInvoiceCancellation {
|
|
30
|
-
isCanceled: boolean;
|
|
31
|
-
id: IPpasDistributionInvoiceId;
|
|
32
|
-
reason: string;
|
|
33
|
-
}
|
|
34
12
|
export interface IPpasDistributionInvoiceListInput {
|
|
35
|
-
id:
|
|
36
|
-
customer:
|
|
13
|
+
id: IPpasInvoiceId;
|
|
14
|
+
customer: IPpasInvoiceCustomer;
|
|
37
15
|
customerAddress: IPpasDistributionInvoiceCustomerAddress;
|
|
38
|
-
facts:
|
|
39
|
-
cancellation:
|
|
16
|
+
facts: IPpasInvoiceFacts;
|
|
17
|
+
cancellation: IPpasInvoiceCancellation;
|
|
40
18
|
}
|
package/dist/schema-definitions/datasources/enapo/ppas/distribution/PpasDistributionSchema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PpasDistributionSchema.js","sourceRoot":"","sources":["../../../../../../src/schema-definitions/datasources/enapo/ppas/distribution/PpasDistributionSchema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PpasDistributionSchema.js","sourceRoot":"","sources":["../../../../../../src/schema-definitions/datasources/enapo/ppas/distribution/PpasDistributionSchema.ts"],"names":[],"mappings":";;;AAWA,MAAM,+BAA+B,GAAmC;IACpE,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,GAAyC;IAChF,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,QA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E;4BAC5B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;yBAC9B;wBACD,QAAQ,EAAE,EAAE;qBACf;iBACJ;aACJ;YACD,QAAQ,EAAE,EAAE;SACf;KACJ;IACD,QAAQ,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC;CACpC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
2
|
+
import { IPpasCommercialInvoiceDevice } from "./interfaces/IPpasCommercialInvoiceDevice";
|
|
3
|
+
export declare class PpasCommercialInvoiceDeviceModel extends Model<IPpasCommercialInvoiceDevice> implements IPpasCommercialInvoiceDevice {
|
|
4
|
+
static TABLE_NAME: string;
|
|
5
|
+
device_serial_number: string;
|
|
6
|
+
invoice_id: string;
|
|
7
|
+
place_id: string;
|
|
8
|
+
date_from: string;
|
|
9
|
+
date_to: string;
|
|
10
|
+
type: string;
|
|
11
|
+
kind: string;
|
|
12
|
+
reading_type: string;
|
|
13
|
+
reading_from: number | null;
|
|
14
|
+
reading_to: number | null;
|
|
15
|
+
consumption: number | null;
|
|
16
|
+
unit: string | null;
|
|
17
|
+
meter_reading_type: string | null;
|
|
18
|
+
gas_consumption_kwh: number | null;
|
|
19
|
+
volume_coefficient: number | null;
|
|
20
|
+
combustion_heat: number | null;
|
|
21
|
+
normometers_nm3: number | null;
|
|
22
|
+
static attributeModel: ModelAttributes<PpasCommercialInvoiceDeviceModel, IPpasCommercialInvoiceDevice>;
|
|
23
|
+
static jsonSchema: object;
|
|
24
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PpasCommercialInvoiceDeviceModel = void 0;
|
|
4
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
+
class PpasCommercialInvoiceDeviceModel extends sequelize_1.Model {
|
|
6
|
+
}
|
|
7
|
+
exports.PpasCommercialInvoiceDeviceModel = PpasCommercialInvoiceDeviceModel;
|
|
8
|
+
PpasCommercialInvoiceDeviceModel.TABLE_NAME = "enapo_ppas_commercial_invoice_device";
|
|
9
|
+
PpasCommercialInvoiceDeviceModel.attributeModel = {
|
|
10
|
+
device_serial_number: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
11
|
+
invoice_id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
12
|
+
place_id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
13
|
+
date_from: { type: sequelize_1.DataTypes.DATEONLY, primaryKey: true },
|
|
14
|
+
date_to: { type: sequelize_1.DataTypes.DATEONLY, primaryKey: true },
|
|
15
|
+
type: { type: sequelize_1.DataTypes.STRING },
|
|
16
|
+
kind: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
17
|
+
reading_type: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
18
|
+
reading_from: { type: sequelize_1.DataTypes.DECIMAL },
|
|
19
|
+
reading_to: { type: sequelize_1.DataTypes.DECIMAL },
|
|
20
|
+
consumption: { type: sequelize_1.DataTypes.DECIMAL },
|
|
21
|
+
unit: { type: sequelize_1.DataTypes.STRING },
|
|
22
|
+
meter_reading_type: { type: sequelize_1.DataTypes.STRING },
|
|
23
|
+
gas_consumption_kwh: { type: sequelize_1.DataTypes.DECIMAL },
|
|
24
|
+
volume_coefficient: { type: sequelize_1.DataTypes.DOUBLE },
|
|
25
|
+
combustion_heat: { type: sequelize_1.DataTypes.DOUBLE },
|
|
26
|
+
normometers_nm3: { type: sequelize_1.DataTypes.DOUBLE },
|
|
27
|
+
};
|
|
28
|
+
PpasCommercialInvoiceDeviceModel.jsonSchema = {
|
|
29
|
+
type: "array",
|
|
30
|
+
items: {
|
|
31
|
+
type: "object",
|
|
32
|
+
properties: {
|
|
33
|
+
device_serial_number: { type: "string" },
|
|
34
|
+
invoice_id: { type: "string" },
|
|
35
|
+
place_id: { type: "string" },
|
|
36
|
+
date_from: { type: "string" },
|
|
37
|
+
date_to: { type: "string" },
|
|
38
|
+
type: { type: "string" },
|
|
39
|
+
kind: { type: "string" },
|
|
40
|
+
reading_type: { type: "string" },
|
|
41
|
+
reading_from: { anyOf: [{ type: "number" }, { type: "null" }] },
|
|
42
|
+
reading_to: { anyOf: [{ type: "number" }, { type: "null" }] },
|
|
43
|
+
consumption: { anyOf: [{ type: "number" }, { type: "null" }] },
|
|
44
|
+
unit: { anyOf: [{ type: "string" }, { type: "null" }] },
|
|
45
|
+
meter_reading_type: { anyOf: [{ type: "string" }, { type: "null" }] },
|
|
46
|
+
gas_consumption_kwh: { anyOf: [{ type: "number" }, { type: "null" }] },
|
|
47
|
+
volume_coefficient: { anyOf: [{ type: "number" }, { type: "null" }] },
|
|
48
|
+
combustion_heat: { anyOf: [{ type: "number" }, { type: "null" }] },
|
|
49
|
+
normometers_nm3: { anyOf: [{ type: "number" }, { type: "null" }] },
|
|
50
|
+
},
|
|
51
|
+
required: ["device_serial_number", "invoice_id", "place_id", "date_from", "date_to", "reading_type", "kind"],
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=PpasCommercialInvoiceDeviceModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PpasCommercialInvoiceDeviceModel.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/models/enapo/ppas/PpasCommercialInvoiceDeviceModel.ts"],"names":[],"mappings":";;;AAAA,mEAAwF;AAGxF,MAAa,gCACT,SAAQ,iBAAmC;;AAD/C,4EAsEC;AAlEiB,2CAAU,GAAG,sCAAsC,CAAC;AAoBpD,+CAAc,GAAoF;IAC5G,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,QAAQ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,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE;YAClE,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE;SACrE;QACD,QAAQ,EAAE,CAAC,sBAAsB,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,CAAC;KAC/G;CACJ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
|
|
2
|
+
import { Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
|
|
3
|
+
import { IPpasCommercialInvoiceInstallation } from "./interfaces/IPpasCommercialInvoiceInstallation";
|
|
4
|
+
export declare class PpasCommercialInvoiceInstallationModel extends Model<IPpasCommercialInvoiceInstallation> implements IPpasCommercialInvoiceInstallation {
|
|
5
|
+
static TABLE_NAME: string;
|
|
6
|
+
invoice_id: string;
|
|
7
|
+
customer_id: string;
|
|
8
|
+
place_id: string;
|
|
9
|
+
eic: string;
|
|
10
|
+
billing_class: string;
|
|
11
|
+
measurement_type: string;
|
|
12
|
+
contract_contract_id: string;
|
|
13
|
+
contract_move_in_date: string;
|
|
14
|
+
contract_move_out_date: string;
|
|
15
|
+
tdd_class: string;
|
|
16
|
+
address_street: string;
|
|
17
|
+
address_house_number: string;
|
|
18
|
+
address_house_org_number: string;
|
|
19
|
+
address_city: string;
|
|
20
|
+
address_city_part: string;
|
|
21
|
+
address_post_code: string;
|
|
22
|
+
address_country: string;
|
|
23
|
+
address_ruian_id: number | null;
|
|
24
|
+
static attributeModel: ModelAttributes<PpasCommercialInvoiceInstallationModel, IPpasCommercialInvoiceInstallation>;
|
|
25
|
+
static jsonSchema: JSONSchemaType<IPpasCommercialInvoiceInstallation[]>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PpasCommercialInvoiceInstallationModel = void 0;
|
|
4
|
+
const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
|
|
5
|
+
class PpasCommercialInvoiceInstallationModel extends sequelize_1.Model {
|
|
6
|
+
}
|
|
7
|
+
exports.PpasCommercialInvoiceInstallationModel = PpasCommercialInvoiceInstallationModel;
|
|
8
|
+
PpasCommercialInvoiceInstallationModel.TABLE_NAME = "enapo_ppas_commercial_invoice_installations";
|
|
9
|
+
PpasCommercialInvoiceInstallationModel.attributeModel = {
|
|
10
|
+
invoice_id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
11
|
+
customer_id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
12
|
+
place_id: { type: sequelize_1.DataTypes.STRING, primaryKey: true },
|
|
13
|
+
eic: { type: sequelize_1.DataTypes.STRING },
|
|
14
|
+
billing_class: { type: sequelize_1.DataTypes.STRING },
|
|
15
|
+
measurement_type: { type: sequelize_1.DataTypes.STRING },
|
|
16
|
+
contract_contract_id: { type: sequelize_1.DataTypes.STRING },
|
|
17
|
+
contract_move_in_date: { type: sequelize_1.DataTypes.DATEONLY },
|
|
18
|
+
contract_move_out_date: { type: sequelize_1.DataTypes.DATEONLY },
|
|
19
|
+
tdd_class: { type: sequelize_1.DataTypes.STRING },
|
|
20
|
+
address_street: { type: sequelize_1.DataTypes.STRING },
|
|
21
|
+
address_house_number: { type: sequelize_1.DataTypes.STRING },
|
|
22
|
+
address_house_org_number: { type: sequelize_1.DataTypes.STRING },
|
|
23
|
+
address_city: { type: sequelize_1.DataTypes.STRING },
|
|
24
|
+
address_city_part: { type: sequelize_1.DataTypes.STRING },
|
|
25
|
+
address_post_code: { type: sequelize_1.DataTypes.STRING },
|
|
26
|
+
address_country: { type: sequelize_1.DataTypes.STRING },
|
|
27
|
+
address_ruian_id: { type: sequelize_1.DataTypes.BIGINT },
|
|
28
|
+
};
|
|
29
|
+
PpasCommercialInvoiceInstallationModel.jsonSchema = {
|
|
30
|
+
type: "array",
|
|
31
|
+
items: {
|
|
32
|
+
type: "object",
|
|
33
|
+
properties: {
|
|
34
|
+
invoice_id: { type: "string" },
|
|
35
|
+
customer_id: { type: "string" },
|
|
36
|
+
place_id: { type: "string" },
|
|
37
|
+
eic: { type: "string" },
|
|
38
|
+
billing_class: { type: "string" },
|
|
39
|
+
measurement_type: { type: "string" },
|
|
40
|
+
contract_contract_id: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
41
|
+
contract_move_in_date: { type: "string" },
|
|
42
|
+
contract_move_out_date: { type: "string" },
|
|
43
|
+
tdd_class: { type: "string" },
|
|
44
|
+
address_street: { type: "string" },
|
|
45
|
+
address_house_number: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
46
|
+
address_house_org_number: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
|
|
47
|
+
address_city: { type: "string" },
|
|
48
|
+
address_city_part: { type: "string" },
|
|
49
|
+
address_post_code: { type: "string" },
|
|
50
|
+
address_country: { type: "string" },
|
|
51
|
+
address_ruian_id: { oneOf: [{ type: "number" }, { type: "null", nullable: true }] },
|
|
52
|
+
},
|
|
53
|
+
required: ["invoice_id", "customer_id", "place_id"],
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=PpasCommercialInvoiceInstallationModel.js.map
|
package/dist/schema-definitions/models/enapo/ppas/PpasCommercialInvoiceInstallationModel.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PpasCommercialInvoiceInstallationModel.js","sourceRoot":"","sources":["../../../../../src/schema-definitions/models/enapo/ppas/PpasCommercialInvoiceInstallationModel.ts"],"names":[],"mappings":";;;AACA,mEAAwF;AAGxF,MAAa,sCACT,SAAQ,iBAAyC;;AADrD,wFAyEC;AArEiB,iDAAU,GAAG,6CAA6C,CA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